GithubHelp home page GithubHelp logo

progressforever / stereodepth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliyasineser/stereodepth

0.0 1.0 0.0 124.85 MB

single and stereo calibration, disparity calculation.

License: Apache License 2.0

Python 100.00%

stereodepth's Introduction

Stereo calibration and disparity creation

This project is a basis for stereo vision. After calibration process, you can try to get disparity map and start your own project.

Usage

Get images from single camera

Don't forget to create directory with mkdir and set your cameras in the code. Example usage:

python get_images.py directory 0

Get stereo images

Don't forget to set your cameras. Check if the right is right and left is left. Example usage:

python getStereoImages.py directory 0

Split concat images

This code is for fixed stereo set. There are some cameras that give you the most possible sync. They are taking the images and concat with hardware. You see that you have only one camera but actually you are getting two images as one. So we need seperation before proceed. Get images as single camera and run this code. Example usage:

python grabSeperate.py directory savedDirectory prefixOfImages

Single camera calibration

Example usage:

python single_camera_calibration.py data\leftFixedStereo --image_format png --prefix left --square_size 0.025 --width 9 --height 6 --save_file left_cam.yml

Stereo camera calibration

Example usage:

python stereo_camera_calibration.py --left_file left_cam.yml --right_file right_cam.yml --left_prefix left --right_prefix right --left_dir bothImagesFixedStereo --right_dir bothImagesFixedStereo --image_format png --square_size 0.025 --save_file stereo_cam.yml

Disparity map

Example usage:

python stereo_depth.py --calibration_file data\stereo_cam.yml --left_source data\left_1541067450.avi --right_source data\right_1541067450.avi --is_real_time 0

stereodepth's People

Contributors

aliyasineser avatar

Watchers

James Cloos 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.