调整校正R 曝光过高

This commit is contained in:
modehua 2023-11-15 22:49:01 -08:00
parent 51afbd33e2
commit c38c0283aa
2 changed files with 9 additions and 10 deletions

View File

@ -751,8 +751,13 @@ bool MultiFrameCapture::saveLutImg(int dpi, int mode, bool black)
// diff = 190 - *((double *)values + k);
// else
// diff = 240 - *((double *)values + k);
int diff = 200 - *((double *)values + k);
int diff;
if (x==0)
{
diff = 130 - *((double *)values + k); //R曝光值拉低
}
else
diff = 240 - *((double *)values + k);
log += " 明场:" + std::to_string(k) + ";diff" + std::to_string(diff) + "\r\n";

View File

@ -165,9 +165,7 @@ void Sensor::monitor()
if (indx % 10 == 0)
{
printf("扫描传感器消抖数:%d\r\n",indx);
}
}
sw.reset();
ret = poll(&pfd, 1, 1);
if (ret > 0)
@ -200,8 +198,7 @@ void Sensor::monitor()
{
printf("没有检测到纸张进入\r\n");
continue;
}
}
}
edges[ret]->notify_all();
@ -282,12 +279,9 @@ void Sensor::monitor2()
}
if (i != 2 && i != 3)
{
int val = i * 2 + ret;
if (is_open_cover && (val == 1 || val == 2 ||val == 3)) //这个地方主要作用是在开盖以防其他状态消息发送
break;
if(val == 1)
{
is_open_cover = true;