|  |  |  | 
|---|
|  |  |  | #include <QtCore/QString> | 
|---|
|  |  |  | #include <basic/util/app/AppUtil.h> | 
|---|
|  |  |  | #include <basic/util/opencv/CvUtil.h> | 
|---|
|  |  |  | #include <basic/util/app/AppPreference.hpp> | 
|---|
|  |  |  | //diao用对应es数据封装的类 | 
|---|
|  |  |  | //#include <basic/db/ES/es/ManagerEsDB.h> | 
|---|
|  |  |  | #include <basic/db/Elasticsearch/EsDBTool.h> | 
|---|
|  |  |  | 
|---|
|  |  |  | #include <QtCore/QJsonObject> | 
|---|
|  |  |  | #include <uuid/uuid.h> | 
|---|
|  |  |  | #include <jsoncpp/json/json.h> | 
|---|
|  |  |  | #include <basic/util/app/AppConfig.h> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #define state "state" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void StringReplace(string &strBase, string strSrc, string strDes) { | 
|---|
|  |  |  | 
|---|
|  |  |  | t_json["Race"] = "";//检测的种族  应该为空 无检测结果 | 
|---|
|  |  |  | t_json["videoIp"] = getProperty("local_ip");//当前服务器IP地址 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | t_json["cluster_id"] = appConfig.getStringProperty("clusterID");//集群id | 
|---|
|  |  |  | t_json["ack_alarm"] = "0";//ack_alarm是否报警 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //#todo 优化 get vector<string> from json | 
|---|
|  |  |  | switch (atoi(faceExtractQueueTmp[i].scoredRects[j].properties["race"].c_str())) { | 
|---|
|  |  |  | case 1: | 
|---|