Jump to content

reading info from an image


 Share

Recommended Posts

Posted Image

To read the image info from above sceenshot:

There are 10 columns in this pic.I need to count the circle number in each column, in this pic column 1 has 2 blue circles, column 2 has 1 red circle, column 3 etc., etc.

Can AutoIt do it?

Link to comment
Share on other sites

Check out the different pixel functions in the Help File:

- PixelSearch

- PixelGetColor

- PixelCheckSum

If this isn't what you're looking for then please explain a little bit more.

P.S. - AutoIt can solve almost anything if you use your resources correctly :)

Link to comment
Share on other sites

Thanks for help. in this example my first thought is to use an array(10, 3), and manually set a position in each boxes and PixelGetColor() for this position, if it is red, red count + 1, if it is blue, blue count +1.

my problem is it is only a part of the whole image, the original image is very big, is there some efficient way to do this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...