question about identifying rotated image

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
guyash2
Junior Coder
Posts: 40
Joined: Thu May 05, 2005 2:45 pm

question about identifying rotated image

Post by guyash2 » Fri May 06, 2011 5:04 pm

Hello,
I know how to use the function of finding image position, but it can identify the image just if it's in the same rotating. I mean: if the image would be rotated, it won't be identifed. Can I somehow set the program to identify the image even if it's rotated?

If it's impossible, does macro scheduler have a function of counting pixels in the same color? I know that I can check each color in a specified rectangle and count them, but it takes too much time.

Thank you very much.

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

Post by Marcus Tettmar » Sun May 08, 2011 8:16 am

I guess you would need to make a copy of the needle image, rotate it, and then search for that. Or capture the needle when it is rotated.

So you'd have several FindImagePos lines (up to 4) for each rotated version of the needle.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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