Ask Your Question
-1

OCR in openCv - how to locate letters

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

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

Comments

1

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 -0600 )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 -0600 )edit
2

Well then:

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

1 answer

Sort by » oldest newest most voted
1

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

Peter55555 gravatar image

Thanks a lot.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 353 times

Last updated: Jan 23 '15