Procházet zdrojové kódy

fix(task): Can not entry pets' house

runhey před 3 roky
rodič
revize
2a19a06f64
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1 1
      tasks/Pets/assets.py
  2. 2 2
      tasks/Pets/pet/image.json
  3. binární
      tasks/Pets/pet/pet_pet_house.png

+ 1 - 1
tasks/Pets/assets.py

@@ -12,7 +12,7 @@ class PetsAssets:
 
 
 	# Image Rule Assets
 	# Image Rule Assets
 	# 宠物小屋 
 	# 宠物小屋 
-	I_PET_HOUSE = RuleImage(roi_front=(1036,420,37,41), roi_back=(998,393,100,100), threshold=0.7, method="Template matching", file="./tasks/Pets/pet/pet_pet_house.png")
+	I_PET_HOUSE = RuleImage(roi_front=(1015,431,27,31), roi_back=(952,412,144,60), threshold=0.7, method="Template matching", file="./tasks/Pets/pet/pet_pet_house.png")
 	# 爪印 
 	# 爪印 
 	I_PET_CLAW = RuleImage(roi_front=(1171,625,55,56), roi_back=(1171,625,55,56), threshold=0.8, method="Template matching", file="./tasks/Pets/pet/pet_pet_claw.png")
 	I_PET_CLAW = RuleImage(roi_front=(1171,625,55,56), roi_back=(1171,625,55,56), threshold=0.8, method="Template matching", file="./tasks/Pets/pet/pet_pet_claw.png")
 	# 其乐融融 
 	# 其乐融融 

+ 2 - 2
tasks/Pets/pet/image.json

@@ -2,8 +2,8 @@
   {
   {
     "itemName": "pet_house",
     "itemName": "pet_house",
     "imageName": "pet_pet_house.png",
     "imageName": "pet_pet_house.png",
-    "roiFront": "1036,420,37,41",
-    "roiBack": "998,393,100,100",
+    "roiFront": "1015,431,27,31",
+    "roiBack": "952,412,144,60",
     "method": "Template matching",
     "method": "Template matching",
     "threshold": 0.7,
     "threshold": 0.7,
     "description": "宠物小屋"
     "description": "宠物小屋"

binární
tasks/Pets/pet/pet_pet_house.png