|
|
|
@ -3116,6 +3116,7 @@ void Cigarette::EnumerateCameras(SingleCamInfoStruct *TempSingleCamInfoStruct,bo
|
|
|
|
|
void* camhandle;
|
|
|
|
|
MVCC_STRINGVALUE UserID;
|
|
|
|
|
MVCC_STRINGVALUE YSXID;
|
|
|
|
|
MVCC_STRINGVALUE YSXID2;
|
|
|
|
|
string id;
|
|
|
|
|
MV_CC_CreateHandle(&camhandle, HIKCamera::stDeviceList.pDeviceInfo[i]);
|
|
|
|
|
if (!MV_CC_OpenDevice(camhandle))
|
|
|
|
@ -3123,7 +3124,6 @@ void Cigarette::EnumerateCameras(SingleCamInfoStruct *TempSingleCamInfoStruct,bo
|
|
|
|
|
MV_CC_GetDeviceUserID(camhandle, &UserID);
|
|
|
|
|
MV_CC_GetStringValue(camhandle, "DeviceYSXID", &YSXID);
|
|
|
|
|
if(showinfo)std::cout << "Hikrobot user ID = " << UserID.chCurValue << std::endl;
|
|
|
|
|
cout << "Hikrobot YSX ID = " << YSXID.chCurValue << std::endl;
|
|
|
|
|
id = YSXID.chCurValue;
|
|
|
|
|
#ifdef identify_Hik_YSXID
|
|
|
|
|
if (id!="YSX9256")
|
|
|
|
@ -3131,6 +3131,7 @@ void Cigarette::EnumerateCameras(SingleCamInfoStruct *TempSingleCamInfoStruct,bo
|
|
|
|
|
QMessageBox::information(NULL, QStringLiteral("系统自检失败"), QStringLiteral("相机匹配失败,请检查相机型号"), QMessageBox::Ok);
|
|
|
|
|
exit(-1);
|
|
|
|
|
}
|
|
|
|
|
YSXID = YSXID2;//清除数据
|
|
|
|
|
#endif
|
|
|
|
|
MV_CC_CloseDevice(camhandle);
|
|
|
|
|
}
|
|
|
|
|