解决3288-400和dsp设备600dpi除穿孔失败的问题
This commit is contained in:
parent
47cf2a4ae8
commit
89b2fc4777
|
@ -3136,6 +3136,9 @@ hg_imgproc::IMGPRCPARAM hg_scanner::get_image_process_object(int model)
|
||||||
param.width = mat_width;
|
param.width = mat_width;
|
||||||
param.height = mat_height;
|
param.height = mat_height;
|
||||||
}
|
}
|
||||||
|
param.is_sup_real_300dpi_ = firmware_sup_dpi_300;
|
||||||
|
param.is_sup_real_600dpi_ = firmware_sup_dpi_600;
|
||||||
|
|
||||||
param.device_7010 = firmware_sup_device_7010;
|
param.device_7010 = firmware_sup_device_7010;
|
||||||
//img_conf_.brightness = (float)bright_;
|
//img_conf_.brightness = (float)bright_;
|
||||||
//img_conf_.contrast = (float)contrast_;
|
//img_conf_.contrast = (float)contrast_;
|
||||||
|
|
|
@ -431,7 +431,22 @@ namespace hg_imgproc
|
||||||
int ret = SCANNER_ERR_OK;
|
int ret = SCANNER_ERR_OK;
|
||||||
|
|
||||||
float scale = img_conf_.fillhole.fillholeratio / 100.0;
|
float scale = img_conf_.fillhole.fillholeratio / 100.0;
|
||||||
float val = img_conf_.resolution_dst / 10;
|
int dpi = img_conf_.resolution_dst;
|
||||||
|
|
||||||
|
if (!param_.is_sup_real_300dpi_)
|
||||||
|
{
|
||||||
|
dpi = 200;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!param_.is_sup_real_600dpi_)
|
||||||
|
{
|
||||||
|
if (dpi >= 300)
|
||||||
|
dpi = 300;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
float val = dpi / 10;
|
||||||
cv::Vec4f edgeScale;
|
cv::Vec4f edgeScale;
|
||||||
edgeScale[0] = top;
|
edgeScale[0] = top;
|
||||||
edgeScale[1] = low;
|
edgeScale[1] = low;
|
||||||
|
|
|
@ -153,6 +153,8 @@ namespace hg_imgproc
|
||||||
int width; // in pixel
|
int width; // in pixel
|
||||||
int height; // in pixel
|
int height; // in pixel
|
||||||
unsigned total_bytes;// total bytes
|
unsigned total_bytes;// total bytes
|
||||||
|
bool is_sup_real_300dpi_;
|
||||||
|
bool is_sup_real_600dpi_;
|
||||||
bool device_7010;
|
bool device_7010;
|
||||||
}IMGPRCPARAM, *LPIMGPRCPARAM;
|
}IMGPRCPARAM, *LPIMGPRCPARAM;
|
||||||
typedef struct _img_header
|
typedef struct _img_header
|
||||||
|
|
Loading…
Reference in New Issue