amitbanerjee28 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

ColorImageTarget work abnormally #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use ColorImageTarget to compare two images:1.png & 6.png. Result: Fount it.
2. The same code to compare two images: 3.png & 6.png, Result: Still Fount it.

What is the expected output? What do you see instead?
If use "ColorImageTarget", procedure 2 should not find the pattern.

What version of the product are you using? On what operating system?
1. Eclipse ADT - Build: v22.3.0-887826
2. Library:
   a. log4j-over-slf4j-1.7.5.jar
   b. sikuli-api-1.0.2-standalone.jar
   c. slf4j-nop-1.7.5.jar

Please provide any additional information below.
Code snippet:
  File myFile = new File("6.png");
  URL myUrl = myFile.toURI().toURL();
  ColorImageTarget imageTarget = new ColorImageTarget(myUrl);
  ScreenRegion result = s.find(imageTarget);

Original issue reported on code.google.com by pontiffkao on 13 Mar 2014 at 5:45

Attachments: