|
@@ -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/, "")
|