Go to the documentation of this file.
9 #ifndef CscDetectorEngineMultiple_h
10 #define CscDetectorEngineMultiple_h
18 #include <opencv2/opencv.hpp>
20 using std::optional, std::string, std::vector, std::function;
43 vector<CscDetectorEngine *> detectors;
44 vector<DetectorIsEnabledFunction> enabledFunctions;
45 bool drawPredictionOnImage;
47 optional<float> duplicateIoUThreshold = {};
49 std::unique_ptr<CscLogger> logger;
57 CscDetectorEngineMultiple(
const string & name,
const vector<CscDetectorEngine *> & detectors = {},
bool drawPredictionOnImage =
false);
67 detectors.push_back(detector);
68 enabledFunctions.push_back(shouldEnable);
81 duplicateIoUThreshold = iouThreshold;
85 this->drawPredictionOnImage = drawPredictionOnImage;
Definition: CscDetectorEngine.h:107
void addDetector(CscDetectorEngine *detector, DetectorIsEnabledFunction shouldEnable=alwaysEnableDetector)
Definition: CscDetectorEngineMultiple.h:66
void enableDuplicateDeletion(float iouThreshold)
Definition: CscDetectorEngineMultiple.h:80
Definition: ConscienceVisionDetectorRepository.cpp:30
function< bool(const OngoingDetectionResult &detectionResult)> DetectorIsEnabledFunction
Definition: CscDetectorEngineMultiple.h:32
const string const string EntityVideoSourcesCommandDataType CscPoint3d CscPoint3d bool
Definition: environmentEntitiesCommands.h:545
void setDrawPredictionOnImage(bool drawPredictionOnImage)
Definition: CscDetectorEngineMultiple.h:84
ptr< DetectionResult > detectOnImage(const DetectorSourceImage &image, ptr< DetectionParameters > parameters) override
Definition: CscDetectorEngineMultiple.cpp:31
bool addDetectorIfNew(CscDetectorEngine *detector, DetectorIsEnabledFunction shouldEnable=alwaysEnableDetector)
Definition: CscDetectorEngineMultiple.cpp:136
Definition: CscDetectorEngine.h:66
virtual bool equals(CscDetectorEngine *) const override
Definition: CscDetectorEngineMultiple.cpp:146
vector< CscWorldObject * > detectedObjects
Definition: CscDetectorEngineMultiple.h:29
Definition: CscDetectorEngineMultiple.h:28
CscDetectorEngineMultiple(const string &name, const vector< CscDetectorEngine * > &detectors={}, bool drawPredictionOnImage=false)
Definition: CscDetectorEngineMultiple.cpp:21
std::shared_ptr< T > ptr
Definition: CscCommon.h:29
Definition: CscDetectorEngineMultiple.h:41