Skip to content

Latest commit

 

History

History

get_perspective

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Perspective Transform

using OpenCV methods

How It Works

On selecting dimensions for a quadrilateral section, the code finds the maximum height and width of that selection and warps the selected area into a rectangle of dimensions maxHeight * maxWidth

Usage

python3 script.py --path image.jpg

  • It opens the image for you need to select coordinates in clockwise manner (top left -> top right -> bottom right -> bottom left).



  • on pressing enter, it transforms the document.