prometheuspk
prometheuspk

Reputation: 3815

How to match Contours to detect ASCII of letter on Image?

We are working on implementing an OCR on OpenCv. We have gained the contours from our images. Now the part we are stuck on is how can we use these contours to recognize the characters that are now showing on our contour image?

What is to be used? I mean basically how do we use the information gained from the contours to our benefit?

Upvotes: 0

Views: 989

Answers (2)

jlengrand
jlengrand

Reputation: 12827

You might want to look at tesseract to learn a bit more about OCR implementation :) http://code.google.com/p/tesseract-ocr/source/checkout

Upvotes: 0

rics
rics

Reputation: 5596

You can use various properties of contours for matching, like their bounding boxes (cvBoundingRect) or ellipses (cvFitEllipse2), their moments (cvContourMoments), their convexity (cvCheckContourConvexity, cvConvexHull2). `

cvMatchShapes calculates Hu moments for comparison. You can also create pairwise geometrical histograms (cvCalcPGH).

You may check Gary Bradski's and Adrian Kaehler's Learning OpenCV for details.

Upvotes: 4

Related Questions