Skip to content

Commit 7635e0a

Browse files
authored
Merge pull request #1555 from yEs1do/fix(Sougenbi)
fix(Sougenbi): 移除冗余图像规则,更新OCR区域设置
2 parents 0bfddbd + cbc343f commit 7635e0a

6 files changed

Lines changed: 10 additions & 42 deletions

File tree

tasks/Sougenbi/assets.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ class SougenbiAssets:
2222
# Image Rule Assets
2323
# 进入业原火
2424
I_S_SOUGENBI = RuleImage(roi_front=(560,139,57,61), roi_back=(412,68,231,359), threshold=0.8, method="Template matching", file="./tasks/Sougenbi/s/s_s_sougenbi.png")
25-
# 贪
26-
I_S_GREED = RuleImage(roi_front=(118,121,307,100), roi_back=(167,143,307,100), threshold=0.8, method="Template matching", file="./tasks/Sougenbi/s/s_s_greed.png")
27-
#
28-
I_S_ANGER = RuleImage(roi_front=(164,291,307,100), roi_back=(164,291,307,100), threshold=0.8, method="Template matching", file="./tasks/Sougenbi/s/s_s_anger.png")
29-
# 痴
30-
I_S_FOOLERY = RuleImage(roi_front=(164,436,307,100), roi_back=(164,436,307,100), threshold=0.8, method="Template matching", file="./tasks/Sougenbi/s/s_s_foolery.png")
3125
# description
3226
I_S_TEAM_LOCK = RuleImage(roi_front=(700,652,31,36), roi_back=(667,649,167,56), threshold=0.8, method="Template matching", file="./tasks/Sougenbi/s/s_s_team_lock.png")
3327
# description
@@ -46,10 +40,11 @@ class SougenbiAssets:
4640

4741
# Ocr Rule Assets
4842
# Ocr-description
49-
O_S_GREED = RuleOcr(roi=(588,6,63,42), area=(588,6,63,42), mode="Single", method="Default", keyword="", name="s_greed")
43+
O_S_GREED = RuleOcr(roi=(585,7,63,42), area=(585,7,63,42), mode="Single", method="Default", keyword="", name="s_greed")
5044
# Ocr-description
51-
O_S_ANGER = RuleOcr(roi=(770,7,79,43), area=(770,7,79,43), mode="Digit", method="Default", keyword="", name="s_anger")
45+
O_S_ANGER = RuleOcr(roi=(759,9,79,43), area=(759,9,79,43), mode="Digit", method="Default", keyword="", name="s_anger")
5246
# Ocr-description
53-
O_S_FOOLERY = RuleOcr(roi=(956,11,68,36), area=(956,11,68,36), mode="Digit", method="Default", keyword="", name="s_foolery")
47+
O_S_FOOLERY = RuleOcr(roi=(955,10,68,36), area=(955,10,68,36), mode="Digit", method="Default", keyword="", name="s_foolery")
48+
5449

5550

tasks/Sougenbi/s/image.json

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,6 @@
88
"threshold": 0.8,
99
"description": "进入业原火"
1010
},
11-
{
12-
"itemName": "s_greed",
13-
"imageName": "s_s_greed.png",
14-
"roiFront": "118,121,307,100",
15-
"roiBack": "167,143,307,100",
16-
"method": "Template matching",
17-
"threshold": 0.8,
18-
"description": ""
19-
},
20-
{
21-
"itemName": "s_anger",
22-
"imageName": "s_s_anger.png",
23-
"roiFront": "164,291,307,100",
24-
"roiBack": "164,291,307,100",
25-
"method": "Template matching",
26-
"threshold": 0.8,
27-
"description": ""
28-
},
29-
{
30-
"itemName": "s_foolery",
31-
"imageName": "s_s_foolery.png",
32-
"roiFront": "164,436,307,100",
33-
"roiBack": "164,436,307,100",
34-
"method": "Template matching",
35-
"threshold": 0.8,
36-
"description": ""
37-
},
3811
{
3912
"itemName": "s_team_lock",
4013
"imageName": "s_s_team_lock.png",

tasks/Sougenbi/s/ocr.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
[
22
{
33
"itemName": "s_greed",
4-
"roiFront": "588,6,63,42",
5-
"roiBack": "588,6,63,42",
4+
"roiFront": "585,7,63,42",
5+
"roiBack": "585,7,63,42",
66
"mode": "Single",
77
"method": "Default",
88
"keyword": "",
99
"description": "Ocr-description"
1010
},
1111
{
1212
"itemName": "s_anger",
13-
"roiFront": "770,7,79,43",
14-
"roiBack": "770,7,79,43",
13+
"roiFront": "759,9,79,43",
14+
"roiBack": "759,9,79,43",
1515
"mode": "Digit",
1616
"method": "Default",
1717
"keyword": "",
1818
"description": "Ocr-description"
1919
},
2020
{
2121
"itemName": "s_foolery",
22-
"roiFront": "956,11,68,36",
23-
"roiBack": "956,11,68,36",
22+
"roiFront": "955,10,68,36",
23+
"roiBack": "955,10,68,36",
2424
"mode": "Digit",
2525
"method": "Default",
2626
"keyword": "",

tasks/Sougenbi/s/s_s_anger.png

-27.9 KB
Binary file not shown.

tasks/Sougenbi/s/s_s_foolery.png

-26.9 KB
Binary file not shown.

tasks/Sougenbi/s/s_s_greed.png

-28.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)