RtspFace/demo/src/tools.cpp
@@ -2,14 +2,15 @@ tools::tools() { std::cout<<"tools() start"<<std::endl; my_db mydb= {"root","Basic@2017","localhost","demo",3306}; dbu = DBuntil(mydb); std::cout<<"tools() end"<<std::endl; } tools::~tools() {} bool tools::init(){ my_db mydb= {"root","Basic@2017","localhost","demo",3306}; //DBuntil dbu =DBuntil(); return dbu.db_init(mydb); } int tools::search(cv::Mat image,person *p) { @@ -56,6 +57,7 @@ //if(dbu.myCont == NULL){ // std::cout<<"myCont is null"<<std::endl; //} dbu.db_search(p); if(p->p_id != NULL) {