调整畸变

This commit is contained in:
13038267101 2023-03-07 16:44:38 +08:00
parent 2efc00f93c
commit 581e889993
1 changed files with 6 additions and 5 deletions

View File

@ -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)
{