Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions detection/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions detection/api/include/MPFVideoCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 6 additions & 0 deletions detection/api/src/MPFVideoCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down