FindImagePos Finds Hundreds of Results

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

FindImagePos Finds Hundreds of Results

Post by fightcancer » Wed Mar 07, 2007 2:44 am

Even with color_tolerance set to zero, the NumFound is consistenly over 700. (I've disabled all effects under Display Properties | Appearance | Effects.)

Any ideas would be appreciated.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Mar 07, 2007 3:46 am

I never used it before but I just tried and it works perfectly for me (I searched for the french flag on a screen capture of this page). Is the image you are searching for really unique in the searched image? Can you post the code?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Mar 07, 2007 6:58 am

Read this:

http://www.mjtnet.com/blog/2007/02/20/h ... cognition/

And note the "Tips" section. Read it carefully. Then you will understand why you have lots of matches and what to do about it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Thu Mar 08, 2007 3:53 am

Awesome video! The image for which I was searching is almost entirely black. I'll shrink the image as prescribed in "Tips".

Thanks!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts