Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to deskew an image in an unknown condition?

I knew that there is a getPerspectiveTransform function in OpenCV to perform the deskew work, it is very useful under a known condition. However, the destination matrix used is well-defined by users.

Suppose that there are different type of cards we want to make a recognition, but those are in different sizes and skew in different angles, which result in the failure of using getPerspectiveTransform. What can I do if I try to use getPerspectiveTransform?