X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=main.cpp;h=1dbaef54d04937abdd4671eca97e8cbd18c721fa;hb=e45efc2cf76f6dc89e8b02484bf69a400cb93cf9;hp=e8999d7a04053978b1f87d7695ba743be2e401d4;hpb=b5342c4a4bbfb17346e7bffc5dae129290d184be;p=trackerpp.git diff --git a/main.cpp b/main.cpp index e8999d7..1dbaef5 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,7 @@ #include -#include "src/Engine.h" +#include "Engine.h" #include -#include "src/Logger.h" +#include "Logger.h" #define TAG "Main" @@ -10,13 +10,11 @@ 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()) }; }; @@ -25,12 +23,12 @@ class Callback : public EngineObserver 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->start(); e->destroy();