Covert vector to python list
[trackerpp.git] / main.cpp
index e8999d7..bfc076d 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1,7 +1,7 @@
 #include<iostream>
-#include "src/Engine.h"
+#include "Engine.h"
 #include <string>
-#include "src/Logger.h"
+#include "Logger.h"
 
 #define TAG "Main"
 
@@ -10,29 +10,24 @@ using namespace suanzi;
 class Callback : public EngineObserver
 {
     void onPersonIn(Person& p){
-//        std::cout << "onPersonIn "  << p.toString() << std::endl;
         LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
 
     };
 
     void onPersonOut(Person& p) {
-//        std::cout << "onPersonOut " << std::endl;
         LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
     };
 };
 
-
-
 int main(int argc, char* argv[])
 {
-    InitLogger("log4cpp.properties");
+    initLogger("./config/log4cpp.properties");
     LOG_DEBUG(TAG, "==================================");
-
-    Engine* e = Engine::create();
+    EnginePtr e = Engine::create();
     e->addObserver(new Callback());
-    e->setVideoSrc("xxxx");
+    //e->setVideoSrc(VideoSrcType::URL, "rtsp://192.168.1.75:554/stream1");
+    e->setVideoSrc(VideoSrcType::URL, "rtsp://192.168.56.101:5454/test.mp4");
     e->start();
-
     e->destroy();
     log4cpp::Category::shutdown();
 }