Browse Source

Merge branch 'master' of http://gitz.zhixinhuixue.net:18880/zxhx-client-tool/pdfproject

duanjianjun 2 years ago
parent
commit
5cc1fbaa64
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MFCApplication1/CvxText.cpp

+ 2 - 1
MFCApplication1/CvxText.cpp

@@ -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;