Skip to content

Simple image perspective transformation using NumPy and OpenCv

Notifications You must be signed in to change notification settings

Shinabel/Simple-image-transformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple 4 Points Perspective Transformation OpenCV

First, install numpy and cv2

pip3 install -r requirements.txt

How to Run:

python3 transform.py -image $PATH_TO_IMG -coords "[$TOP_LEFT_COORD, $TOP_RIGHT_COORD, $BOTTOM_RIGHT_COORD, $BOTTOM_LEFT_COORD]"

Sample:

python3 transform.py -image sample_images/sample1.jpg -coords "[(4, 92), (484, 7), (514, 168), (33, 254)]"

Result: alt text

About

Simple image perspective transformation using NumPy and OpenCv

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages