Ask Your Question

Revision history [back]

Visually what do you mean ?

In your example four green points are supposed to be a rectangle. getPerspectiveTransform find a transformation between 4 green points and a rectangle. You have to choose a rectangle.

You have to know original shape in your image to find the transformation...

In road context try to find some known shape like traffic light ....