diff --git a/NIKKE/CHANGELOG.md b/NIKKE/CHANGELOG.md index 0f1c17c..789eb9d 100644 --- a/NIKKE/CHANGELOG.md +++ b/NIKKE/CHANGELOG.md @@ -1,7 +1,6 @@ 修复以下问题: -- 咨询时遇到单选时无法继续; -- 新人竞技场赛季结束导致卡死; +- v1.0.3中识别咨询选项卡死; 新增功能和内容: diff --git "a/NIKKE/NIKKE\346\227\245\345\270\270.js" "b/NIKKE/NIKKE\346\227\245\345\270\270.js" index b0c74e4..28d14ba 100644 --- "a/NIKKE/NIKKE\346\227\245\345\270\270.js" +++ "b/NIKKE/NIKKE\346\227\245\345\270\270.js" @@ -869,9 +869,10 @@ function 单次咨询(advise) { let result = null; for (let j = 0; j < 30; ++j) { img = captureScreen(); + thresh = random(35, 55) rectFilter = (rect) => rect.width() > width * 0.7 && rect.left < width * 0.5 && rect.right > width * 0.5 && rect.height() < 200 result = findContoursRect(img, { - thresh: 35, + thresh: thresh, type: "BINARY", // debug: true, region: [0, height / 2], @@ -880,7 +881,7 @@ function 单次咨询(advise) { if (result.length == 2) break; resultSingle = findContoursRect(img, { - thresh: 35, + thresh: thresh, type: "BINARY_INV", // debug: true, region: [0, height / 2],