Skip to content
Merged
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ cmake-build-debug/
# IDE
*.iml
*.idea*
.vscode
2 changes: 0 additions & 2 deletions detection/api/include/MPFDetectionComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ namespace MPF { namespace COMPONENT {

virtual bool Supports(MPFDetectionDataType data_type) = 0;

virtual std::string GetDetectionType() = 0;

MPFComponentType GetComponentType() override { return MPF_DETECTION_COMPONENT; };

protected:
Expand Down
2 changes: 0 additions & 2 deletions detection/api/include/MPFStreamingDetectionComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ namespace MPF { namespace COMPONENT {
public:
virtual ~MPFStreamingDetectionComponent() = default;

virtual std::string GetDetectionType() = 0;

// Optional
virtual void BeginSegment(const VideoSegmentInfo &segment_info) { };

Expand Down
3 changes: 0 additions & 3 deletions detection/examples/AudioOnlyComponent/AudioOnly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ std::vector<MPFAudioTrack> AudioOnly::GetDetections(const MPFAudioJob &job) {
}

//-----------------------------------------------------------------------------
std::string AudioOnly::GetDetectionType() {
return "TEST_AUDIO";
}

MPF_COMPONENT_CREATOR(AudioOnly);
MPF_COMPONENT_DELETER();
Expand Down
2 changes: 0 additions & 2 deletions detection/examples/AudioOnlyComponent/AudioOnly.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class AudioOnly : public MPFAudioDetectionComponentAdapter {
bool Close() override;

std::vector<MPFAudioTrack> GetDetections(const MPFAudioJob &job) override;

std::string GetDetectionType() override;
};

#endif //OPENMPF_CPP_COMPONENT_SDK_AUDIOONLY_H
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"name": "AudioOnly",
"description": "This is a dummy detection component.",
"actionType": "DETECTION",
"trackType": "TEST_AUDIO",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand All @@ -28,4 +29,3 @@
}
}
}

3 changes: 0 additions & 3 deletions detection/examples/GenericComponent/GenericComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ bool GenericComponent::Supports(MPFDetectionDataType data_type) {
}

//-----------------------------------------------------------------------------
std::string GenericComponent::GetDetectionType() {
return "GENERIC";
}

MPF_COMPONENT_CREATOR(GenericComponent);
MPF_COMPONENT_DELETER();
Expand Down
2 changes: 0 additions & 2 deletions detection/examples/GenericComponent/GenericComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class GenericComponent : public MPFGenericDetectionComponentAdapter {
std::vector<MPFGenericTrack> GetDetections(const MPFGenericJob &job) override;

bool Supports(MPFDetectionDataType data_type) override;

std::string GetDetectionType() override;
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"name": "Generic",
"description": "This is a dummy detection component.",
"actionType": "DETECTION",
"trackType": "GENERIC",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand All @@ -35,4 +36,3 @@
}
}
}

3 changes: 0 additions & 3 deletions detection/examples/HelloWorldComponent/HelloWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ bool HelloWorld::Supports(MPFDetectionDataType data_type) {
}

//-----------------------------------------------------------------------------
std::string HelloWorld::GetDetectionType() {
return "HELLO";
}

MPF_COMPONENT_CREATOR(HelloWorld);
MPF_COMPONENT_DELETER();
Expand Down
2 changes: 0 additions & 2 deletions detection/examples/HelloWorldComponent/HelloWorld.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class HelloWorld : public MPF::COMPONENT::MPFDetectionComponent {

bool Supports(MPF::COMPONENT::MPFDetectionDataType data_type) override;

std::string GetDetectionType() override;

private:
log4cxx::LoggerPtr hw_logger_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ std::vector<MPFVideoTrack> StreamingHelloWorld::EndSegment() {
}


std::string StreamingHelloWorld::GetDetectionType() {
return "HELLO";
}


StreamingHelloWorld::~StreamingHelloWorld() {
LOG4CXX_INFO(hw_logger_, "[" << job_name_ << "] Destroying component");
}
Expand Down
2 changes: 0 additions & 2 deletions detection/examples/HelloWorldComponent/StreamingHelloWorld.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class StreamingHelloWorld : public MPF::COMPONENT::MPFStreamingDetectionComponen

~StreamingHelloWorld() override;

std::string GetDetectionType() override;

void BeginSegment(const MPF::COMPONENT::VideoSegmentInfo &segment_info) override;

bool ProcessFrame(const cv::Mat &frame, int frame_number) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"name": "HelloWorld",
"description": "This is a dummy detection component.",
"actionType": "DETECTION",
"trackType": "HELLO",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand Down Expand Up @@ -74,4 +75,3 @@
}
]
}

Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ namespace MPF { namespace COMPONENT {
class ImageTransformerComponent : public MPFImageDetectionComponentAdapter {

public:
std::string GetDetectionType() override { return "IMAGE_DATA"; }

bool Init() override;

bool Close() override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"name": "TransformImage",
"description": "This is a dummy detection component.",
"actionType": "DETECTION",
"trackType": "IMAGE_DATA",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand All @@ -35,4 +36,3 @@
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ namespace MPF { namespace COMPONENT {
class VideoCaptureComponent : public MPFVideoDetectionComponentAdapter {

public:
std::string GetDetectionType() override { return "VIDEO"; }

bool Init() override;

bool Close() override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"name": "VideoCapture",
"description": "This is a dummy detection component.",
"actionType": "DETECTION",
"trackType": "VIDEO",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand All @@ -35,4 +36,3 @@
}
}
}