Fix nan issue in features
[trackerpp.git] / include / Engine.h
index 93d6c9c..8443e19 100644 (file)
@@ -32,10 +32,11 @@ public:
     // virtual void capture(bool bb = false);
     void addObserver(EngineObserver* o);
     void setVideoSrc(VideoSrcType type, const std::string& url);
+    // stream the video source as http, return the url
+    std::string setPreview(bool isPreview, bool showBB = false){return "";} 
 
 protected:
     friend class MultiTracker;
-    void onStatusChanged();
     void onPersonsIn(const std::vector<Person>& p);
     void onPersonsOut(const std::vector<Person>& p);
 
@@ -43,6 +44,7 @@ private:
     Engine();
     void run();
     WorkerThread eventThread {"EventThread"};
+    WorkerThread writeImgThread {"WriteImgThread"};
     DetectorPtr detector;
     MultiTrackerPtr multiTracker;
     std::set<EngineObserver *> observer_list;