修正文件名替换错误

master
Matthew 10 months ago
parent 6dfe2f519f
commit 67033034af

@ -1593,7 +1593,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
{
shouldRetry = true;
// replaceAll(fullPath, ".jpg", std::string("-") + std::to_string(mPhotoInfo.retries) + ".jpg");
replaceAll(fullPath, "_FF_", std::to_string(mPhotoInfo.retries));
replaceAll(fullPath, "_FF_", std::string("_") + std::to_string(mPhotoInfo.retries) + std::string("_"));
XYLOG(XYLOG_SEVERITY_ERROR, "Photo is TOO dark or light(LDR=%u), will RETRY it", (uint32_t)captureResult.avgY);
}

Loading…
Cancel
Save