zhangjie 8 сар өмнө
parent
commit
479527f0ba

+ 2 - 1
src/modules/client/views/GroupScan.vue

@@ -387,10 +387,11 @@ export default {
       );
       if (!historyStudent) return false;
 
+      const collectConfig = this.getCurCollectConfig();
       const covered = await checkEmptyCoverFilled(
         historyStudent.originImgPath,
         this.curImage.url,
-        this.curSubject.collectConfig.answerCheckArea
+        collectConfig.answerCheckArea
       );
       return covered;
     },

+ 2 - 2
src/plugins/imageOcr.js

@@ -78,7 +78,7 @@ function checkImageAnswerArea(imgPath, codeArea) {
   );
 
   const imgObj = gm(imgPath);
-  // 裁剪条形码区域
+  // 裁剪作答区域区域
   imgObj.crop(codeArea.width, codeArea.height, codeArea.x, codeArea.y);
 
   return new Promise((resolve, reject) => {
@@ -94,7 +94,7 @@ function checkImageAnswerArea(imgPath, codeArea) {
       let code;
       try {
         const DecodeResult = childProcess.execSync(`${exec} ${tmpFile}`);
-        // console.log(DecodeResult.toString());
+        console.log(DecodeResult.toString());
         const codes = DecodeResult.toString()
           .replace(/\r/, "")
           .replace(/\n/, "")