projects
/
trackerpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add boost python, and predictor wrapper
[trackerpp.git]
/
src
/
Engine.cpp
diff --git
a/src/Engine.cpp
b/src/Engine.cpp
index
49a17da
..
6d44f3c
100644
(file)
--- a/
src/Engine.cpp
+++ b/
src/Engine.cpp
@@
-2,6
+2,7
@@
#include <thread>
#include "Engine.h"
#include "Logger.h"
#include <thread>
#include "Engine.h"
#include "Logger.h"
+#include "PredictorWrapper.h"
using namespace suanzi;
using namespace suanzi;
@@
-42,8
+43,13
@@
void Engine::destroy()
void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
{
void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
{
+ PredictorWrapperPtr pp = PredictorWrapper::create("./python/model.pkl");
+
+ pp->dump();
+
// videoSrc = url;
// videoSrc = url;
- reader = VideoReaderFactory::createVideoReader(type, url);
+ //reader = VideoReaderFactory::createVideoReader(type, url);
+
}
void Engine::run()
}
void Engine::run()