Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

read display numbers - distortion and rotation?

I want to read the numbers on a display using a web cam. The picture might be distorted and rotated (it would make my setup much easier if I could allow for arbitrary rotation of the display with respect to the camera). I can put some coloured marks next to the display for orientation.

My idea is, that it must be quite simple to find the red dots at the two top coners of my display and the two yellow dots at the bottom corners of my display and then distort the picture so that I get a nice rectangle.

I guess, opencv offers the right functions to do this, so that I do not have to program it from scratch. But I am new to opencv. Can anyone, who knows opencv a bit better givve me some hints what functions to look at? Is there a function that distorts my picture when the coordinates of four pixels are given?

Thank you in advance!

read display numbers - distortion and rotation?

I want to read the numbers on a display using a web cam. The picture might be distorted and rotated (it would make my setup much easier if I could allow for arbitrary rotation of the display with respect to the camera). I can put some coloured marks next to the display for orientation.

My idea is, that it must be quite simple to find the red dots at the two top coners of my display and the two yellow dots at the bottom corners of my display and then distort the picture so that I get a nice rectangle.

I guess, opencv offers the right functions to do this, so that I do not have to program it from scratch. But I am new to opencv. Can anyone, who knows opencv a bit better givve me some hints what functions to look at? Is there a function that distorts my picture when the coordinates of four pixels are given?

Or am I completely on the wrong track and is there a better way to read numbers from a lcd display?

Thank you in advance!