| | |
| | | pManagerEsDB(nullptr), |
| | | m_bSetWH(false), |
| | | pointArray(nullptr), |
| | | npts(0) |
| | | npts(0), |
| | | m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcServerPort"),"tcp") |
| | | { |
| | | pManagerEsDB = new EsDBTool(appPref.getStringData("ipAdd"), appPref.getIntData("ipPort")); |
| | | } |
| | | |
| | | JudgmentRetrogradeTool::JudgmentRetrogradeTool(const SdkRule &rule, SaveVideoRpcClient_t &rpcClient):JudgmentRetrogradeTool(rule) |
| | | { |
| | | m_rpcClient = rpcClient; |
| | | } |
| | | |
| | | JudgmentRetrogradeTool::~JudgmentRetrogradeTool() { |
| | |
| | | cv::arrowedLine(image,m_UpBaseLine.start_Point,m_UpBaseLine.end_Point,cv::Scalar(0,0,255)); |
| | | |
| | | cv::rectangle(image, scoredRect.rect, cv::Scalar(0, 0, 255), 2); |
| | | |
| | | std::string imgUrl = uploadImgToFdfs(image); |
| | | saveInfoToEs(imgUrl, scoredRect); |
| | | state=true; |
| | |
| | | if (!server) |
| | | { |
| | | ERR("server is null"); |
| | | return false; |
| | | //return false; |
| | | } |
| | | INFO("Record Video "<<imgKey); |
| | | server->recordVideo(imgKey); |
| | |
| | | catch (std::exception &e) |
| | | { |
| | | ERR("Record Video Err: "<<imgKey <<" Message: "<<e.what()); |
| | | return false; |
| | | //return false; |
| | | } |
| | | |
| | | bool retface = false; |