Skip to content

jointpoints/perspective-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic perspective control

Brief

A simple Python tool to automatically eliminate vanishing points on images. The following assumptions are made:

  • the image is a photo of a building;
  • there are two evident vanishing points: vertical and horizontal (they may not fit into the borders of the image);
  • the vertical vanishing point is located above the building;
  • the image contains at least 100,000 pixels.

Example

Before After
Before correction After correction

Run the tool

On Windows

python .\fixbuilding.py

On Linux/MacOS

python ./fixbuilding.py

About

Automatic correction of perspective in images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published