GithubHelp home page GithubHelp logo

seodu / fisheye-depth-estimation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shun74/fisheye-depth-estimation

0.0 0.0 0.0 67 MB

Depth estimation by stereo fisheye camera (Cali Cam)

Python 100.00%

fisheye-depth-estimation's Introduction

Fisheye-Depth-Estimation

Depth estimation by fisheye stereo camera (CaliCam® Fisheye Stereo Camera)

Environment

  • Python 3.8
  • OpneCV 4.2.0.32 (4.5.5 doesn`t work)

run.py

Please set your parameters to run.py. Then

python run.py

Result

  • Original original

  • Depth (Aligned image) depth

How does it work ?

Depth estimation with fisheye stereo camera requires some steps.

  1. Stereo calibration
  2. Image transformation
  3. Disparity calculation

Stereo calibration

First, in order to calculate the disparity between the two camera images, it is necessary to remove the distortions in fisheye cameras and align the parallel lines.

The necessary camera matrices can be obtained by photographing a particular checkerboard from various angles and applying a corner detection algorithm.

  • Checkerboard checkerboard

Image transformation

The image is now clear of distortions and the parallel lines are aligned, but the center of the image is very small due to the characteristics of the fisheye lens.

Equirectangular transformation improves the accuracy of the disparity calculation by solving the image area problem while maintaining the parallel lines.

Equirectangular is a graphical method used in world maps, where the axes are latitude and longitude.

  • Right after parallel lines aligned rectify

  • After Equirectangular transformation eqrec

Disparity calculation

Disparity calculation is performed on the transformed images. A image matching algorithm can be used to calculate disparity. The matching algorithm cannot calculate disparity well for areas with little texture.

  • Disparity disparity

Once the disparity has been calculated, all that remains is to convert it to depth using a simple formula.

For more detail

Detailed description of the algorithm here. (Japanese)

Logic description (Qiita)

Implement description (Qiita)

fisheye-depth-estimation's People

Contributors

shun74 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.