OCR in AS3 flash, vectorizing a square
Well, as some of you may know, in trying to create a OCR engine in AS3, first step was to analyze a webcam feed at a nice rate (8-15 fps) and then create "blobs" out of the images in corresponding colors in the screen (threeshold actually) so now I can count blobs on the screen (yay!) now comes the difficult part,
I need to analyze a bitmap and recognize a vector shape. In this case Im going for a square, Ive been looking around for info on how to get vectors of a bitmap shape but so far I havent found much info on that, Ive got a collision box by simply checking the mins and max values, but what I need is a oriented collision box, or more likely 4 points defining the edges of the shape.
Any ideas or tutorials on how to do that?