HalconCpp判断HObject数据是否为空
作者:互联网
HTuple hNum;
HalconCpp::CountObj(m_hCurrentImg, &hNum);
if(hNum==0)
{
qDebug() << QString("传入图像为空!");
}
else
{
qDebug() << QString("传入图像不为空!");
}
HTuple isEqual;
HalconCpp::TestEqualObj(emptyObj, m_hCurrentImg, &isEqual);
标签:CountObj,HTuple,hNum,HalconCpp,HObject,为空,qDebug 来源: https://blog.csdn.net/qq_20189555/article/details/119038299