Skip to content

Commit

Permalink
fix: 优化喝茶按钮识别,改为OCR
Browse files Browse the repository at this point in the history
  • Loading branch information
moulai committed Nov 23, 2024
1 parent be67ddf commit dff9b60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Binary file not shown.
22 changes: 16 additions & 6 deletions assets/resource/pipeline/daily_tea.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
"next": "日常_午后茶憩_检测喝茶按钮"
},
"日常_午后茶憩_检测喝茶按钮": {
"recognition": "TemplateMatch",
"template": "午后茶憩/午后茶憩_开始喝茶__1032_538_49_35__982_488_149_135.png",
"recognition": "OCR",
"expected": "喝茶|喝|茶",
"roi": [
982,
488,
Expand All @@ -164,7 +164,12 @@
},
"日常_午后茶憩_喝茶按钮灰色": {
"recognition": "ColorMatch",
"roi": "日常_午后茶憩_检测喝茶按钮",
"roi": [
1032,
538,
49,
35
],
"lower": [
100,
100,
Expand All @@ -175,12 +180,17 @@
150,
150
],
"count": 1400,
"count": 1300,
"next": "通用_点击返回上一层按钮"
},
"日常_午后茶憩_喝茶按钮点亮": {
"recognition": "ColorMatch",
"roi": "日常_午后茶憩_检测喝茶按钮",
"roi": [
1032,
538,
49,
35
],
"lower": [
220,
150,
Expand All @@ -191,7 +201,7 @@
255,
255
],
"count": 1400,
"count": 1300,
"action": "Click",
"next": "日常_午后茶憩_再来一杯",
"interrupt": [
Expand Down

0 comments on commit dff9b60

Please sign in to comment.