Skip to content

Changes the camera's perspective to a bird eye's perspective with ease.

License

Notifications You must be signed in to change notification settings

ThatAquarel/BirdEyeView

Repository files navigation

BirdEyeView

Designed to turn a sideways perspective to a bird eye's view. Recommended for cameras attached on poles, minimum configuration needed.

Dependency

  • OpenCv 4.4.0

Environnment

  • Python 3.8.5
  • Windows 10 2004

Executing

Run GetParametersParallel.py or GetParametersPerpendicular.py. Find two lines that are parrallel/perpendicular in real life, but aren't in the camera frame. These lines will delimit the final frame and warping, thus make sure to find lines that are close to the sides, the closer the better. Start with the first line, start from the top left and hold you mouse until you have reached the bottom of that line. Repeat this step, but on the top right. Check Images Below. The first one is for the parallel lines, second if for perpendicular lines. GetParametersParallel.py GetParametersPerpendicular.py Program will then exit after printing out 5 parameters calculated from the two given lines. Copy these numbers to BirdEyeView.py and run. Upon running, the camera's perspective will(hopefully) be changed to a bird eye view. BirdEyeView.py

Algorithms

To find the final vertical scaling factor, the following has been used:
VerticalScaleSolving

To find the camera angle, nonlinear curve fitting has been used:
Excel Sheet Excel Sheet Here

About

Changes the camera's perspective to a bird eye's perspective with ease.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages