From 1ff7cc25767424c07cf84a0da42ebf5fbe36e5ea Mon Sep 17 00:00:00 2001 From: kaedelcb <57870068+kaedelcb@users.noreply.github.com> Date: Thu, 3 Jul 2025 02:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=AB=E4=B8=B9=E5=9C=B0=E8=84=89=E8=8A=B1?= =?UTF-8?q?=E5=92=8C=E5=B9=BD=E5=A2=83=E5=8D=B1=E6=88=98=E7=9A=84OCR?= =?UTF-8?q?=E5=BE=AE=E8=B0=83=20(#1262)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoFontaineLeyLine/main.js | 4 ++-- repo/js/AutoStygianOnslaught/main.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repo/js/AutoFontaineLeyLine/main.js b/repo/js/AutoFontaineLeyLine/main.js index db9afe15..191f8e54 100644 --- a/repo/js/AutoFontaineLeyLine/main.js +++ b/repo/js/AutoFontaineLeyLine/main.js @@ -589,7 +589,7 @@ log.info("未检测到原粹树脂图标"); } - var momentResinCountRa = await imageRecognition(momentResin,0.1, 0, 1,1170,0,350,100); + var momentResinCountRa = await imageRecognition(momentResin,0.1, 0, 1,1170,0,300,100); if (momentResinCountRa.found) { // await moveMouseTo(momentResinCountRa.x+momentResinCountRa.w+15+momentResinCountRa.w+50,momentResinCountRa.y-15+momentResinCountRa.h+25); let countArea = await Textocr("",0.5, 0, 2,momentResinCountRa.x+momentResinCountRa.w+20,momentResinCountRa.y-15,60,40);// @@ -610,7 +610,7 @@ fragileResinCount = "1"; }else { - var fragileResinCountRa = await imageRecognition(fragileResin,0.1, 0, 1,1170,0,350,100); + var fragileResinCountRa = await imageRecognition(fragileResin,0.1, 0, 1,1170,0,300,100); if (fragileResinCountRa.found) { // await moveMouseTo(fragileResinCountRa.x+fragileResinCountRa.w+20,fragileResinCountRa.y-15); let countArea = await Textocr("",0.5, 0, 2,fragileResinCountRa.x+fragileResinCountRa.w+20,fragileResinCountRa.y-15,60,40);// diff --git a/repo/js/AutoStygianOnslaught/main.js b/repo/js/AutoStygianOnslaught/main.js index 61ed8c84..f3524fd1 100644 --- a/repo/js/AutoStygianOnslaught/main.js +++ b/repo/js/AutoStygianOnslaught/main.js @@ -169,9 +169,9 @@ log.info("未检测到浓缩树脂图标"); } - var momentResinCountRa = await imageRecognition(momentResin,0.1, 0, 1,1170,0,350,100); + var momentResinCountRa = await imageRecognition(momentResin,0.1, 0, 1,1170,0,300,100); if (momentResinCountRa.found) { - // await moveMouseTo(momentResinCountRa.x+momentResinCountRa.w+15+momentResinCountRa.w+50,momentResinCountRa.y-15+momentResinCountRa.h+25); + // await moveMouseTo(momentResinCountRa.x,momentResinCountRa.y); let countArea = await Textocr("",0.5, 0, 2,momentResinCountRa.x+momentResinCountRa.w+20,momentResinCountRa.y-15,60,40);// if (countArea.found){ //log.info("须臾树脂识别数量结果:"+ countArea.text); @@ -190,7 +190,7 @@ fragileResinCount = "1"; }else { - var fragileResinCountRa = await imageRecognition(fragileResin,0.1, 0, 1,1170,0,350,100); + var fragileResinCountRa = await imageRecognition(fragileResin,0.1, 0, 1,1170,0,300,100); if (fragileResinCountRa.found) { // await moveMouseTo(fragileResinCountRa.x+fragileResinCountRa.w+20,fragileResinCountRa.y-15); let countArea = await Textocr("",0.5, 0, 2,fragileResinCountRa.x+fragileResinCountRa.w+20,fragileResinCountRa.y-15,60,40);//