Skip to content

Commit afd40ed

Browse files
authored
Feat/wfm trigger (#121)
1 parent ee74408 commit afd40ed

18 files changed

Lines changed: 6 additions & 35 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ cmake-build-debug/
4242
# IDE
4343
*.iml
4444
*.idea*
45+
.vscode

detection/api/include/MPFDetectionComponent.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ namespace MPF { namespace COMPONENT {
213213

214214
virtual bool Supports(MPFDetectionDataType data_type) = 0;
215215

216-
virtual std::string GetDetectionType() = 0;
217-
218216
MPFComponentType GetComponentType() override { return MPF_DETECTION_COMPONENT; };
219217

220218
protected:

detection/api/include/MPFStreamingDetectionComponent.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ namespace MPF { namespace COMPONENT {
8080
public:
8181
virtual ~MPFStreamingDetectionComponent() = default;
8282

83-
virtual std::string GetDetectionType() = 0;
84-
8583
// Optional
8684
virtual void BeginSegment(const VideoSegmentInfo &segment_info) { };
8785

detection/examples/AudioOnlyComponent/AudioOnly.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ std::vector<MPFAudioTrack> AudioOnly::GetDetections(const MPFAudioJob &job) {
7474
}
7575

7676
//-----------------------------------------------------------------------------
77-
std::string AudioOnly::GetDetectionType() {
78-
return "TEST_AUDIO";
79-
}
8077

8178
MPF_COMPONENT_CREATOR(AudioOnly);
8279
MPF_COMPONENT_DELETER();

detection/examples/AudioOnlyComponent/AudioOnly.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class AudioOnly : public MPFAudioDetectionComponentAdapter {
4545
bool Close() override;
4646

4747
std::vector<MPFAudioTrack> GetDetections(const MPFAudioJob &job) override;
48-
49-
std::string GetDetectionType() override;
5048
};
5149

5250
#endif //OPENMPF_CPP_COMPONENT_SDK_AUDIOONLY_H

detection/examples/AudioOnlyComponent/plugin-files/descriptor/descriptor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"name": "AudioOnly",
1515
"description": "This is a dummy detection component.",
1616
"actionType": "DETECTION",
17+
"trackType": "TEST_AUDIO",
1718
"outputChangedCounter" : 1,
1819
"requiresCollection": {
1920
"states": []
@@ -28,4 +29,3 @@
2829
}
2930
}
3031
}
31-

detection/examples/GenericComponent/GenericComponent.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ bool GenericComponent::Supports(MPFDetectionDataType data_type) {
8484
}
8585

8686
//-----------------------------------------------------------------------------
87-
std::string GenericComponent::GetDetectionType() {
88-
return "GENERIC";
89-
}
9087

9188
MPF_COMPONENT_CREATOR(GenericComponent);
9289
MPF_COMPONENT_DELETER();

detection/examples/GenericComponent/GenericComponent.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class GenericComponent : public MPFGenericDetectionComponentAdapter {
4646
std::vector<MPFGenericTrack> GetDetections(const MPFGenericJob &job) override;
4747

4848
bool Supports(MPFDetectionDataType data_type) override;
49-
50-
std::string GetDetectionType() override;
5149
};
5250

5351

detection/examples/GenericComponent/plugin-files/descriptor/descriptor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"name": "Generic",
1515
"description": "This is a dummy detection component.",
1616
"actionType": "DETECTION",
17+
"trackType": "GENERIC",
1718
"outputChangedCounter" : 1,
1819
"requiresCollection": {
1920
"states": []
@@ -35,4 +36,3 @@
3536
}
3637
}
3738
}
38-

detection/examples/HelloWorldComponent/HelloWorld.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ bool HelloWorld::Supports(MPFDetectionDataType data_type) {
218218
}
219219

220220
//-----------------------------------------------------------------------------
221-
std::string HelloWorld::GetDetectionType() {
222-
return "HELLO";
223-
}
224221

225222
MPF_COMPONENT_CREATOR(HelloWorld);
226223
MPF_COMPONENT_DELETER();

0 commit comments

Comments
 (0)