New question #705714 on SikuliX:
https://answers.launchpad.net/sikuli/+question/705714

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.realpath("sikulix")    
user_file = os.path.dirname(os.path.dirname(user_file))
user_file = os.path.join(user_file, "sikulix","test1.sikuli") 

#Test data
user_img = Region(126, 91, 317, 958)
game_Area = user_img.offset(-95,  -91)
reg = game_Area.setW(500).setH(1080)
sleep(3)

#Stored procedures
ETC_L = Region(42, 300, 500, 864)
img_name = "ETC"
ETC_img_L = os.path.join(user_file, img_name+".png")
ETC_img = capture(ETC_L)
shutil.move(ETC_img, ETC_img_L)
EL =  reg.find(ETC_img_L)
click(EL)



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to