Ask Your Question

TimK's profile - activity

2017-05-31 06:07:00 -0500 received badge  Notable Question (source)
2016-04-03 14:46:07 -0500 received badge  Supporter (source)
2016-04-03 04:39:38 -0500 commented question Contour perspective warp

@theodore That only works on pictures with a top down perspective. I've added a new photo (see edit), to illustrate what I mean and hopefully clear things up! Thanks for you comment.

2016-04-03 04:36:47 -0500 commented answer Contour perspective warp

I appreciate your answer. I might have not been clear enough, but I need it to work with any perspective. Please take a look at the last photo in my question (which I edited in).

2016-04-02 12:01:21 -0500 commented question Contour perspective warp

@LBerger How would I do that?

2016-04-02 11:49:19 -0500 received badge  Scholar (source)
2016-04-02 11:47:09 -0500 received badge  Editor (source)
2016-04-02 11:47:08 -0500 asked a question Contour perspective warp

I want to automate a process where text is recognized from a specific card type:

image description

I will first explain what I dit so far. First I converted the image to a grayscale one:

image description

Then I applied Canny:

image description

By the result of this, it was easy to find the largest contour:

image description

So far so good. The problem is: I have a shape here which fits in rectangle. However, the perspective is not top-down. Which implies that it is not possible to use boundingRect. Basically I'm in need of an algorithm to find the orientation of this contour.

I have no idea how to do this. Is there something I am missing? How would you do this?

Edit: Note that the above photo is not a good example, let me add another test case:

image description

2016-01-22 12:27:12 -0500 received badge  Popular Question (source)
2013-08-03 03:30:34 -0500 commented question How to translate this to Java?

<uchar> is a template parameter for a template function. uchar means probably unsigned char as a typedef. Search for more info about c++ template functions.

2013-08-02 14:49:39 -0500 asked a question Java OpenCV + Tesseract OCR “code” regocnition

I'm trying to automate a process where someone manually converts a code to a digital one.

image description

Then I started reading about OCR. So I installed tesseract OCR and tried it on some images. It doesn't even detect something close to the code.

I figured after reading some questions on stackoverflow, that the images need some preprocessing like skewing the image to a horizontal one, which can been done by openCV for example.

Now my questions are:

  • What kind of preprocessing or other methods should be used in a case like the above image?
  • Secondly, can I rely on the output? Will it always work in cases like the above image?

I hope someone can help me!