@@ -691,7 +691,8 @@ int cutPaper(int pageNum, std::string strJsonPath, std::string strPaperPath, std
zip.Close();
cv::Mat cut = src(rc_ansInfo);
- cv::imwrite(szJpgPath, cut);
+ ret = cv::imwrite(szJpgPath, cut);
+ return ret ? 0 : 1;
}
return 0;