| 95 | |
| 96 | /// |
| 97 | std::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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected