| | |
| | | // auto resType = erlangDbTool->findAllTypeInfo(); |
| | | string json = "["; |
| | | for (auto &item : resDB) { |
| | | //-------------------maybe delete ?------------------------ |
| | | if (item.second.tableName.find("lt_") == 0) { |
| | | continue; |
| | | } |
| | | //-------------------maybe delete end---------------------- |
| | | |
| | | string subJson = "{ "; |
| | | subJson.append("\"uuid\":\"" + item.second.uuid + "\","); |
| | | subJson.append("\"tableName\":\"" + item.second.tableName + "\","); |
| | |
| | | } |
| | | } |
| | | |
| | | if (videoStVec.size() >= 1) { |
| | | std::string strVideoName = strPath + videoStVec[0].ToVideoName(); |
| | | std::vector<VideoName_s_t> videoStVec_; |
| | | auto imgTm_ = AppUtil::ParseFromHypenTimeStr(imgSt.m_timeStamp); |
| | | for (auto &item : videoStVec) { |
| | | auto resTime_ = AppUtil::ParseFromHypenTimeStr(item.m_timeStamp); |
| | | auto timeRes = difftime(mktime(&resTime_), mktime(&imgTm_)); |
| | | if ((timeRes < 0 && difftime(mktime(&imgTm_), mktime(&resTime_)) >= 30) || (timeRes / 60 >= 3)) { |
| | | continue; |
| | | } |
| | | videoStVec_.emplace_back(item); |
| | | } |
| | | |
| | | if (videoStVec_.size() >= 1) { |
| | | std::string strVideoName = strPath + videoStVec_[0].ToVideoName(); |
| | | INFO("ImageName: " << imgKey << " SingleMatchVideo: " << strVideoName); |
| | | return strVideoName; |
| | | } else { |
| | |
| | | rule.strLine = value["strLine"].asCString(); |
| | | rule.strExLine = value["strExLine"].asCString(); |
| | | |
| | | if(!value["strPerimeterObjType"].empty()) |
| | | { |
| | | if (!value["strPerimeterObjType"].empty()) { |
| | | rule.strPerimeterObjType = value["strPerimeterObjType"].asCString(); |
| | | } |
| | | if (rule.strCamId.isEmpty()) { |