新增尺寸检测

This commit is contained in:
mo1027728827@qq.com 2022-05-19 17:37:52 +08:00
parent f7c7fc6cf3
commit 3867320fed
2 changed files with 15 additions and 11 deletions

View File

@ -555,17 +555,21 @@ void hg_scanner_300::image_process(std::shared_ptr<std::vector<char>>& buffer)
/////////////////////////////////////111111111111111111111111111//////////////////////////////////
ret = hg_imgproc::auto_crop(handle); //首次必须先调用这个算法
if (img_conf_.en_sizecheck)
{
printf("img_conf_.en_sizecheck = %d\r\n",img_conf_.en_sizecheck);
ret = hg_imgproc::size_detection(handle);
if (ret == SCANNER_ERR_DEVICE_SIZE_CHECK)
{
status_ = SCANNER_ERR_DEVICE_SIZE_CHECK;
return ;
}
// if (img_conf_.en_sizecheck)
// {
// HG_VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"img_conf_.en_sizecheck :%d\r\n",img_conf_.en_sizecheck);
// printf("img_conf_.en_sizecheck = %d\r\n",img_conf_.en_sizecheck);
// ret = hg_imgproc::size_detection(handle);
// HG_VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"img_conf_.en_sizecheck ret:%d\r\n",ret);
// if (ret == SCANNER_ERR_DEVICE_SIZE_CHECK)
// {
// status_ = SCANNER_ERR_DEVICE_SIZE_CHECK;
// return ;
// }
}
// }
if (img_conf_.fillhole.is_fillhole)
{

File diff suppressed because one or more lines are too long