From 9f909dc5b23919cbdfa7d1ab0b225a59dd5c170c Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 11 Sep 2024 16:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E7=A7=BB=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E6=8B=8D=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 8887e4ac..e93b5f7a 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1717,7 +1717,9 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) std::string fullPath = endsWith(mPath, ".jpg") ? mPath : (mPath + CTerminal::BuildPhotoFileName(mPhotoInfo)); #ifdef OUTPUT_CAMERA_DBG_INFO + bool shouldRetry = false; +#if 0 if (captureResult.avgY > MAX_LIGHT_Y || captureResult.avgY < MIN_LIGHT_Y) { if (mPhotoInfo.retries < (DEFAULT_TAKE_PHOTO_RETRIES - 1)) @@ -1739,6 +1741,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) mPhotoInfo.compensation = 2 * captureResult.avgY; } } +#endif #endif // OUTPUT_CAMERA_DBG_INFO if (!std::filesystem::exists(std::filesystem::path(fullPath)))