projects
/
trackerpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
re-locate config file
[trackerpp.git]
/
src
/
Engine.cpp
diff --git
a/src/Engine.cpp
b/src/Engine.cpp
index
be5ceda
..
49a17da
100644
(file)
--- a/
src/Engine.cpp
+++ b/
src/Engine.cpp
@@
-42,7
+42,7
@@
void Engine::destroy()
void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
{
void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
{
- videoSrc = url;
+
//
videoSrc = url;
reader = VideoReaderFactory::createVideoReader(type, url);
}
reader = VideoReaderFactory::createVideoReader(type, url);
}
@@
-50,9
+50,12
@@
void Engine::run()
{
LOG_DEBUG(TAG, "run");
cv::Mat frame;
{
LOG_DEBUG(TAG, "run");
cv::Mat frame;
+ Detection detections[128];
while (reader->read(frame)){
LOG_DEBUG(TAG, "Size: " << frame.cols << "x" << frame.rows);
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);
}
}
}
}