开发者

ocr and image preprocessing techniques

Hi all I have a collection of images that are similar t开发者_Go百科o photos of car registration plates.

I am wondering how to pre process the image before sending it to an OCR engine to determine the text.

I would like to eventually be able to crop the input on only the white content of the registration plate.

The actual image would look something like this:

ocr and image preprocessing techniques

and should end up something like this (color depth not important)

ocr and image preprocessing techniques

Thank for any help. Regards, Bob


  • Segment the image (take a look at this).

  • Classify segments using a gray scale threshold (since you're just looking for white).

  • Crop the image by using the white segment bounding box (or bounding boxes, if it breaks down in more than one segment). This is probably not going to work for white cars - but it should not be too difficult to establish a few rules for this case.

  • Take a look at tesseract-ocr to extract the text.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜