Skip to content

Extract 2D rectangles from perspective photographs

Notifications You must be signed in to change notification settings

unixpickle/flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatten

Extract rectangular shapes from 3D photos.

Solving the perspective equation

Methods exist to determine projection parameters from corners of a rectangle in a projection, such as this one. Instead of using these methods, I applied gradient descent. However, pure gradient descent often finds local minima in this space. To work around this, I trained a generative model to produce approximate solutions to the problem, and then finetune these solutions with gradient-based optimization.

About

Extract 2D rectangles from perspective photographs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published