Skip to content

Commit

Permalink
fix: 咨询选项识别颜色阈值
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebartin committed Jul 16, 2023
1 parent 00b53c5 commit 97424be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions NIKKE/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
修复以下问题:

- 咨询时遇到单选时无法继续;
- 新人竞技场赛季结束导致卡死;
- v1.0.3中识别咨询选项卡死;

新增功能和内容:

Expand Down
5 changes: 3 additions & 2 deletions NIKKE/NIKKE日常.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
Expand Down

0 comments on commit 97424be

Please sign in to comment.