When using captrue() to deposit a local image, and then calling recognition, the score is less than 0.7 most of the time
The version I'm using is SikulixIDE-2.0.5
I want the image to screenshot itself, I use captrue(), put it with .py there is a path, but when I call it through the path, most of the time it scores less than 0.7, I can't recognize it, how can I improve it, here is my operation process.
I limited the recognition area and it didn't work well either.
I use the "screenshot" in the IDE to capture the locally stored picture, and its score is also very low, and the picture directly captured by the "screenshot" has a high score, why?
--------My code--------
import os
import shutil
user_file = os.path.
user_file = os.path.
user_file = os.path.
#Test data
user_img = Region(126, 91, 317, 958)
game_Area = user_img.
reg = game_Area.
sleep(3)
#Stored procedures
ETC_L = Region(42, 300, 500, 864)
img_name = "ETC"
ETC_img_L = os.path.
ETC_img = capture(ETC_L)
shutil.
EL = reg.find(ETC_img_L)
click(EL)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: