MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / CreateDetectorKV

Method CreateDetectorKV

src/Detector/BaseDetector.cpp:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96///
97std::unique_ptr<BaseDetector> BaseDetector::CreateDetectorKV(tracking::Detectors detectorType, const KeyVal& config, const cv::Mat& gray)
98{
99 config_t mconfig;
100 for (auto kv : config.m_config)
101 {
102 mconfig.emplace(kv.first, kv.second);
103 }
104 cv::UMat uframe = gray.getUMat(cv::ACCESS_READ);
105 return CreateDetector(detectorType, mconfig, uframe);
106}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected