New question #219132 on Sikuli:
https://answers.launchpad.net/sikuli/+question/219132

Hi, Sikuli guys

I'm currently using some image search method from you library. The class name 
is "org.sikuli.core.search.ImageSearcher", and the method is "public List<T> 
search(Query query, Filter<T> filter, int n)". 
I pasted some simple code below: 
                BufferedImage target = new BufferedImage( ); // read some 
prepared image from computer disk
                ImageQuery query = new ColorImageQuery(target);
                ImageSearcher searcher = new ImageSearcher(target);
                List<RegionMatch> returned_list = searcher.search(query, 
filter, 2);
                for (RegionMatch s : returned_list) {
                                System.out.println(s.getScore()); // Here is 
the problem
                }

Problem: As you see, the searcher and query is using the same BufferedImage 
object. So the "s.getScore()" method should return "1.00". But when I tried 
some different BufferedImage, sometime the result is not equal to "1.00". 
Is it a known issue in Sikuli? Or is there something I'm missing? 
Please help me take a look at this bug, thanks in advance.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
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