Ask Your Question

OCR in openCv - how to locate letters

asked 2015-01-23 07:53:25 -0500

Peter55555 gravatar image

I want to write some kind of OCR in openCV (C++). It's not an OCR for normally text. I have letters in random places on the white background (with small noises).

Before recognizing letters I'd like to find them.

How to do that the best? I'd like to get them as matched rectangle area or vectors of Points with found letter.

edit retag flag offensive close merge delete



Hello, I have a school project and I want you to solve it for me ... no thanks. I also got the idea that you were the one mailing me. Please show some initiative. Reading the FAQ can help, because googling for OCR and OpenCV leaves you with hundreds of guides!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-23 08:16:02 -0500 )edit

No, I don't want you to solve it for me. I asked only for name of class/function. Name of method. Not pasting code. I've found the most popular (the most linked) tutorial by Damiles. It hasn't got this step. I'm beginner I ask only what class/function I should learn. Is it too much for this forum?

Peter55555 gravatar imagePeter55555 ( 2015-01-23 08:41:12 -0500 )edit

Well then:

  • threshold - normal / otsu / adaptive
  • findcontours
  • isolate every single contour
StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-23 14:33:13 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-01-23 16:59:03 -0500

Peter55555 gravatar image

Thanks a lot.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-23 07:53:25 -0500

Seen: 285 times

Last updated: Jan 23 '15