Sign in to follow this  
Followers 0
dumbledor

Counting pixels

2 posts in this topic

Hello!

I am working on a script that would recognize color of pixels and the number of pixels that are in specific range.

Example:

$coord = PixelSearch( 587, 248, 690, 267, 0xFFFFFF )
_ArrayDisplay( $coord)
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])

I figured that this finds one pixels coordinate in range 587, 248, 690, 267 but i want to find all of them and count them. I would appriciate some hints or tips where to go from here, becouse i am totaly stuck. I was spendig last 4 hours reading posts about pixels but didnt get any ideas. Thanks for help.

Share this post


Link to post
Share on other sites



AutoIt Forum Link

This script allows you to select an area and returns all the pixels in the area, including the Total. Its old code so to get it to work u will need to replace "#include <GUIConstants.au3>" with "#include <WindowsConstants.au3>"


There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
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
Sign in to follow this  
Followers 0