8 using namespace suanzi;
10 class Callback : public EngineObserver
12 void onPersonIn(Person& p){
13 LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
17 void onPersonOut(Person& p) {
18 LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
24 int main(int argc, char* argv[])
26 initLogger("./config/log4cpp.properties");
27 LOG_DEBUG(TAG, "==================================");
29 EnginePtr e = Engine::create();
30 e->addObserver(new Callback());
31 e->setVideoSrc(VideoSrcType::URL, "rtsp://192.168.1.75:554/stream1");
35 log4cpp::Category::shutdown();