void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
{
- videoSrc = url;
+// videoSrc = url;
reader = VideoReaderFactory::createVideoReader(type, url);
}
{
LOG_DEBUG(TAG, "run");
cv::Mat frame;
+ Detection detections[128];
while (reader->read(frame)){
LOG_DEBUG(TAG, "Size: " << frame.cols << "x" << frame.rows);
- detector->detect(frame);
+ // TODO
+ int total = detector->detect(frame, detections);
+ multiTracker->update(total, detections, frame);
}
}