Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Deskew letters

Hello,

I have been looking for a way to de-skew characters to be later used for OCR purposes, but haven't been able to find or think of a way to accomplish it, thought maybe anyone had a good idea or could point me in the right direction.

Here's the problem:

These are the filled contours of the plate's text I've retrieved from an image. The plate has already been de-skewed by applying a perspective warp on the minRectArea which fixes the rotation problem, but there's still a slight vertical skew to each letter that seems to be problematic for Tesseract, the OCR engine I'm using.

plate

If I try to apply another perspective warp to each individual character, the same way I did to the plate, I get the following undesired results:

plate

Any ideas or pointers on how to fix this?

Thanks