diff --git a/README.md b/README.md index d215376..3ef0d28 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Using this API, detection components can be built to provide: * [OpenMPF Python Component SDK](https://github.com/openmpf/openmpf-python-component-sdk) - [OpenMPF Build Tools](https://github.com/openmpf/openmpf-build-tools) - [OpenMPF Web Site Source](https://github.com/openmpf/openmpf.github.io) +- [OpenMPF Docker](https://github.com/openmpf/openmpf-docker) ## Getting Started diff --git a/detection/api/CMakeLists.txt b/detection/api/CMakeLists.txt index 96fe38b..093d436 100644 --- a/detection/api/CMakeLists.txt +++ b/detection/api/CMakeLists.txt @@ -36,6 +36,7 @@ find_package(OpenCV 3.3 EXACT REQUIRED PATHS /opt/opencv-3.3.0 include_directories(include) set(SOURCE_FILES + include/MPFDetectionObjects.h include/MPFDetectionComponent.h include/MPFStreamingDetectionComponent.h diff --git a/detection/api/include/MPFVideoCapture.h b/detection/api/include/MPFVideoCapture.h index f11cc6c..ab74348 100644 --- a/detection/api/include/MPFVideoCapture.h +++ b/detection/api/include/MPFVideoCapture.h @@ -57,6 +57,8 @@ namespace MPF { namespace COMPONENT { explicit MPFVideoCapture(const MPFVideoJob &videoJob, bool enableFrameTransformers=true, bool enableFrameFiltering=true); + explicit MPFVideoCapture(const std::string &videoPath); + bool Read(cv::Mat &frame); diff --git a/detection/api/src/MPFVideoCapture.cpp b/detection/api/src/MPFVideoCapture.cpp index c057fff..b5205fe 100644 --- a/detection/api/src/MPFVideoCapture.cpp +++ b/detection/api/src/MPFVideoCapture.cpp @@ -60,6 +60,12 @@ namespace MPF { namespace COMPONENT { } + MPFVideoCapture::MPFVideoCapture(const std::string &videoPath) + : MPFVideoCapture(MPFVideoJob("", videoPath, 0, -1, {}, {}), false, false) + { + } + + IFrameTransformer::Ptr MPFVideoCapture::GetFrameTransformer(bool enableFrameTransformers, const MPFVideoJob &job) const { if (enableFrameTransformers) { diff --git a/detection/examples/AudioOnlyComponent/plugin-files/descriptor/descriptor.json b/detection/examples/AudioOnlyComponent/plugin-files/descriptor/descriptor.json index 858598c..ce3b5e9 100644 --- a/detection/examples/AudioOnlyComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/AudioOnlyComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "AudioOnlyComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/AudioOnlyComponent/lib/libmpfAudioOnly.so", "environmentVariables": [ diff --git a/detection/examples/FrameDataComponent/plugin-files/descriptor/descriptor.json b/detection/examples/FrameDataComponent/plugin-files/descriptor/descriptor.json index 81bd2ee..7cf9bef 100644 --- a/detection/examples/FrameDataComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/FrameDataComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "FrameDataComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/FrameDataComponent/lib/libmpfFrameData.so", "environmentVariables": [ diff --git a/detection/examples/GenericComponent/plugin-files/descriptor/descriptor.json b/detection/examples/GenericComponent/plugin-files/descriptor/descriptor.json index e43dc70..e72e22f 100644 --- a/detection/examples/GenericComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/GenericComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "GenericComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/GenericComponent/lib/libmpfGeneric.so", "environmentVariables": [ diff --git a/detection/examples/HelloWorldComponent/plugin-files/descriptor/descriptor.json b/detection/examples/HelloWorldComponent/plugin-files/descriptor/descriptor.json index 9889608..5190920 100644 --- a/detection/examples/HelloWorldComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/HelloWorldComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "HelloWorldComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/HelloWorldComponent/lib/libmpfHelloWorld.so", "streamLibrary": "${MPF_HOME}/plugins/HelloWorldComponent/lib/libmpfStreamingHelloWorld.so", diff --git a/detection/examples/ImageTransformerComponent/plugin-files/descriptor/descriptor.json b/detection/examples/ImageTransformerComponent/plugin-files/descriptor/descriptor.json index 9a6138b..f2633a6 100644 --- a/detection/examples/ImageTransformerComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/ImageTransformerComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "ImageTransformerComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/ImageTransformerComponent/lib/libmpfImageTransformer.so", "environmentVariables": [ diff --git a/detection/examples/VideoCaptureComponent/plugin-files/descriptor/descriptor.json b/detection/examples/VideoCaptureComponent/plugin-files/descriptor/descriptor.json index 5b365c3..5f5e462 100644 --- a/detection/examples/VideoCaptureComponent/plugin-files/descriptor/descriptor.json +++ b/detection/examples/VideoCaptureComponent/plugin-files/descriptor/descriptor.json @@ -1,7 +1,7 @@ { "componentName": "VideoCaptureComponent", - "componentVersion": "2.1.0", - "middlewareVersion": "2.1.0", + "componentVersion": "3.0.0", + "middlewareVersion": "3.0.0", "sourceLanguage": "c++", "batchLibrary": "${MPF_HOME}/plugins/VideoCaptureComponent/lib/libmpfVideoCapture.so", "environmentVariables": [