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
5 changes: 0 additions & 5 deletions cpp/motion/MogMotionDetection/MotionDetection_MOG2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ void displayTracks(const std::string& origPath, int frameCount,
const std::vector<MPFVideoTrack> &tracks);



std::string MotionDetection_MOG2::GetDetectionType() {
return "MOTION";
}

bool MotionDetection_MOG2::Init() {
motion_logger_ = log4cxx::Logger::getLogger("MogMotionDetection");
return true;
Expand Down
2 changes: 0 additions & 2 deletions cpp/motion/MogMotionDetection/MotionDetection_MOG2.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ class MotionDetection_MOG2 : public MPF::COMPONENT::MPFImageAndVideoDetectionCom
std::vector<MPF::COMPONENT::MPFImageLocation> GetDetections(
const MPF::COMPONENT::MPFImageJob &job) override;

std::string GetDetectionType() override;

private:
log4cxx::LoggerPtr motion_logger_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"name": "MOG",
"description": "Detects motion in videos using a Mixture of Gaussians (MOG) model.",
"actionType": "DETECTION",
"trackType": "MOTION",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ using namespace COMPONENT;
void displayTracks(const std::string &origPath, int frameCount,
const std::vector<MPFVideoTrack> &tracks);

std::string MotionDetection_Subsense::GetDetectionType() {
return "MOTION";
}

bool MotionDetection_Subsense::Init() {
motion_logger_ = log4cxx::Logger::getLogger("SubsenseMotionDetection");
return true;
Expand Down
2 changes: 0 additions & 2 deletions cpp/motion/SubsenseMotionDetection/MotionDetection_Subsense.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class MotionDetection_Subsense : public MPF::COMPONENT::MPFImageAndVideoDetectio
std::vector<MPF::COMPONENT::MPFImageLocation> GetDetections(
const MPF::COMPONENT::MPFImageJob &job) override ;

std::string GetDetectionType() override;

private:
log4cxx::LoggerPtr motion_logger_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ class SubsenseStreamingDetection : public MPF::COMPONENT::MPFStreamingDetectionC
bool ProcessFrame(const cv::Mat &frame, int frame_number) override;
std::vector<MPF::COMPONENT::MPFVideoTrack> EndSegment() override;

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

private:
SubsenseStreamingDetection(const MPF::COMPONENT::MPFStreamingVideoJob &job,
const SubsenseConfig &config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"name": "SUBSENSE",
"description": "Detects motion in videos using a Self-Balanced SENsitivity SEgmenter (SuBSENSE).",
"actionType": "DETECTION",
"trackType": "MOTION",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand Down