Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get the vertices of card

I am trying to detect a card and do warpperspective on the image. I have successfully get the contour of the card. But I am facing difficulties on how to get the vertices point (show as blue point in image) as the input of getPerspectiveTransform function.

image description

Actually I have done it with simple algorithm on a static image. However, it does not work well for live frame especially when the card rotate. Is there any simple yet robust method that can get the four vertices point of card regardless of the orientation of card?

image description

I tried minAreaRect as well but it did not give good result.

image description