Commit 48312492 by guof

Merge branch 'feature/mqtt-feature' into 'release/mqtt-release'

超时去掉图片上传

See merge request !3
parents 97d1aff2 3f9e745b
......@@ -901,12 +901,22 @@ void CameraHandle::licensePlateRecognitionResults(vides_data::requestLicensePlat
vides_data::response* resp = httpService.httpLicensePlateRecognition(location, result);
if (resp->code != 0) {
if(resp->msg=="TimeoutError") {
for (auto& plate : location.plates) {
plate.img.clear();
}
vides_data::response* img_resp = httpService.httpLicensePlateRecognition(location, result);
if (img_resp->code != 0) {
qInfo()<<"不加图片上次失败";
}
instace.deleteObj(img_resp);
}else{
qInfo()<<"licensePlateRecognitionResults:车牌识别结果失败";
// 在达到最大重试次数且仍然没有成功的情况下执行相应的处理逻辑
}
instace.deleteObj(resp);
}
instace.deleteObj(resp);
}
void CameraHandle::printWifi(XSDK_HANDLE hDevice,XSDK_CFG::NetWork_Wifi &cfg){
char szOutBuffer[4000] = { 0 };
......
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