新增尺寸检测
This commit is contained in:
parent
f7c7fc6cf3
commit
3867320fed
|
@ -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
Loading…
Reference in New Issue