kuhasu Posted April 25, 2008 Posted April 25, 2008 (edited) 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: 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 TIA. Edited April 26, 2008 by kuhasu
kuhasu Posted April 25, 2008 Author Posted April 25, 2008 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............................................... ...................... ........ ........ ....
kuhasu Posted April 26, 2008 Author Posted April 26, 2008 Does PixelSearch work if I get the full pic scaned.if gray,set 0 ;if black,set 1And then get the whole pic into a dataset with 252 variables(14*18) with 0 and 1just 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now