Jump to content

[Solved]How can I get the x,y of a pixel in a color


Recommended Posts

Sorry fot the title not very clear.

I wanna get the axis(x,y) of a pixel in a color like black in some special positions,like :

top-left,top-right,left-top,right-top,left-bottom,right-bottom,bottom-left,bottom-right.

---totally at most 8 axises(x,y) of the pixels in black.

Samples here,maybe more clear,the red points are the targets:

post-34880-1209118506_thumb.jpg

I select these points for a test, and then I will find the best point to recognise the numbers,I just wanna find the best and fastest way to do this.Just numbers,from 0 to 9.

Many thanks for your help :D

TIA.

Edited by kuhasu
Link to comment
Share on other sites

Does PixelSearch work if I get the full pic scaned.

if gray,set 0 ;if black,set 1

And then get the whole pic into a dataset with 252 variables(14*18) with 0 and 1

just like

1.jpg,0,0,0,0,0,0,0,0,0,0,1,0,10,1,0,0,1,0,0,0,0,0,0,...............................................

........................

2.jpg,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0...............................................

......................

........

........

....

Link to comment
Share on other sites

Does PixelSearch work if I get the full pic scaned.

if gray,set 0 ;if black,set 1

And then get the whole pic into a dataset with 252 variables(14*18) with 0 and 1

just like

1.jpg,0,0,0,0,0,0,0,0,0,0,1,0,10,1,0,0,1,0,0,0,0,0,0,...............................................

........................

2.jpg,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0...............................................

......................

........

........

....

Solved thank you!

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...