how to use Sikuli in Java

Asked by 韩鹏飞

如何在Java中调整截图的相似度

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
韩鹏飞 (1301233474-c) said :
#1

How to adjust the screenshot of the similarity in Java

Revision history for this message
RaiMan (raimund-hocke) said :
#2

LOL, just used Google Translator to translate to English ;-)

String img = "some-image.png"; // the shot
Pattern pImg = new Pattern(ing).similar(0.95f);

or
Pattern pImg = new Pattern(ing).exact();

to request "exact" matching (wanted score >0.99)

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Grrrr, the auto-correct has worked ;-)

String img = "some-image.png"; // the shot
Pattern pImg = new Pattern(img).similar(0.95f);

or
Pattern pImg = new Pattern(img).exact();

to request "exact" matching (wanted score >0.99)

and then you can use pImg instead of img in the respective methods like find, click, exists, ...

Can you help with this problem?

Provide an answer of your own, or ask 韩鹏飞 for more information if necessary.

To post a message you must log in.