Sfoglia il codice sorgente

fix(UI): update image for check main #1099

Neptine 1 anno fa
parent
commit
8170f82909

+ 2 - 2
dev_tools/assets_test.py

@@ -34,10 +34,10 @@ def detect_ocr(file: str, target: RuleOcr):
 
 
 # 图片文件路径 可以是相对路径
-IMAGE_FILE = r"C:\Users\Ryland\Desktop\wechat_2025-09-11_130558_801.png"
+IMAGE_FILE = r"C:\Users\Neptine\Desktop\495380900-7394769e-f210-4015-a8e7-8736c655513e.png"
 if __name__ == '__main__':
     from tasks.Exploration.script_task import ScriptTask
-    targe = ScriptTask.I_ADD_2
+    targe = ScriptTask.I_CHECK_MAIN
     print(detect_image(IMAGE_FILE, targe))
 
     # ocr demo

+ 1 - 1
tasks/GameUi/assets.py

@@ -38,7 +38,7 @@ class GameUiAssets:
 
 	# Image Rule Assets
 	# description 
-	I_CHECK_MAIN = RuleImage(roi_front=(801,109,38,37), roi_back=(49,98,1033,61), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_main.png")
+	I_CHECK_MAIN = RuleImage(roi_front=(807,108,38,30), roi_back=(49,98,1033,61), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_main.png")
 	# 庭院卷轴关闭标识 
 	I_MAIN_SCROLL_CLOSE = RuleImage(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_scroll_close.png")
 	# description 

BIN
tasks/GameUi/page/page_check_main.png


+ 1 - 1
tasks/GameUi/page/page_img.json

@@ -2,7 +2,7 @@
   {
     "itemName": "check_main",
     "imageName": "page_check_main.png",
-    "roiFront": "801,109,38,37",
+    "roiFront": "807,108,38,30",
     "roiBack": "49,98,1033,61",
     "method": "Template matching",
     "threshold": 0.8,