Commit e8dc35ec by “liusq”

增加人脸图片日志

parent 712b9db5
......@@ -60,6 +60,8 @@ void AlgorithmTaskManage::initLicensePlateManage(const QString &modelPaths,bool
}
void AlgorithmTaskManage::initFaceReconitionHandle(std::map<QString,QString>&maps,int numberFaces,float confidence){
for (int i = 0; i < faceLen; ++i) {
static int i11=0;
qInfo()<<"人脸initSourceImageMap次数"<<++i11;
FaceReconitionHandle *faceReconitionHandle= new FaceReconitionHandle();
faceReconitionHandle->initSourceImageMap(maps,numberFaces,confidence);
......
......@@ -433,6 +433,8 @@ void MainWindow::updateLocalFace(const QString &httpurl) {
if (cloudImageMap.empty()) {
// 如果云端映射现在为空,移除所有特征
//faceRecognition.featureRemove();
static int i11=0;
qInfo()<<"algorithmTaskManage.modifyImageFeature次数"<<++i11;
algorithmTaskManage.modifyImageFeature(localImageMap,faceNumbers,confidence,true);
} else {
//float confidence=qSetting->value("devices/confidence").toFloat();
......@@ -573,11 +575,7 @@ void MainWindow::startCamera(const QString &httpurl){
//parameter.rtspUrl=std::move(QString("rtsp://admin:@%1/stream1").arg(ipAddress));
this->initCameras(parameter,devConfig,device.areas,reStatus.camera_info_list);
}
else {
CameraHandle *indexHandle=findHandle(device.sSn);
if(indexHandle!=nullptr &&device.is_reboot){
indexHandle->deviceReboot();
}else {
else {
auto it = this->faceDetectionParkingPushs.find(key);
if (it != this->faceDetectionParkingPushs.end()) {
CameraHandle* offlineCameraHandle = it->second; // 注意使用->second获取值
......@@ -615,7 +613,6 @@ void MainWindow::startCamera(const QString &httpurl){
}
}
}
}
this->deleteCloudNotCamer(localDevices, devices.list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment