临时移除重拍机制

nx2024TEMP
Matthew 9 months ago
parent ac23850ca5
commit 9f909dc5b2

@ -1717,7 +1717,9 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
std::string fullPath = endsWith(mPath, ".jpg") ? mPath : (mPath + CTerminal::BuildPhotoFileName(mPhotoInfo)); std::string fullPath = endsWith(mPath, ".jpg") ? mPath : (mPath + CTerminal::BuildPhotoFileName(mPhotoInfo));
#ifdef OUTPUT_CAMERA_DBG_INFO #ifdef OUTPUT_CAMERA_DBG_INFO
bool shouldRetry = false; bool shouldRetry = false;
#if 0
if (captureResult.avgY > MAX_LIGHT_Y || captureResult.avgY < MIN_LIGHT_Y) if (captureResult.avgY > MAX_LIGHT_Y || captureResult.avgY < MIN_LIGHT_Y)
{ {
if (mPhotoInfo.retries < (DEFAULT_TAKE_PHOTO_RETRIES - 1)) if (mPhotoInfo.retries < (DEFAULT_TAKE_PHOTO_RETRIES - 1))
@ -1739,6 +1741,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
mPhotoInfo.compensation = 2 * captureResult.avgY; mPhotoInfo.compensation = 2 * captureResult.avgY;
} }
} }
#endif
#endif // OUTPUT_CAMERA_DBG_INFO #endif // OUTPUT_CAMERA_DBG_INFO
if (!std::filesystem::exists(std::filesystem::path(fullPath))) if (!std::filesystem::exists(std::filesystem::path(fullPath)))

Loading…
Cancel
Save