调整畸变
This commit is contained in:
parent
2efc00f93c
commit
581e889993
|
@ -1022,7 +1022,12 @@ public:
|
|||
{
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DPI, &dpi, &llen);
|
||||
}
|
||||
|
||||
//先默认设置1
|
||||
float distortion = 1.0;
|
||||
int setdistortion = *(int*)&distortion;
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_IMAGE, &type, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
|
@ -1107,10 +1112,6 @@ public:
|
|||
int setdistortion = *(int*)&distortion;
|
||||
int getdistortion = 0;
|
||||
|
||||
//先默认设置1
|
||||
int in = 1;
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &in, &len);
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue