Code Monkey home page Code Monkey logo

calibrate-camera's Introduction

calibrate-camera

calibrate camera to remove lens distortion

File: calibrate.py

Description: Associate single RGB image from a single camera to a single pointcloud frame for debugging purposes

How to run:

  • d / --dataset : path to calibration dataset (create dataset by taking pictures of calibration board using camera)
  • i / --image : image to remove distortion
  • t / --type : Type of board, 0 = chessboard | 1 = aruco | 2 = charuco
$ python calibrate.py -d path/dataset -i imageToUndistort.jpg -t 0

File: create_arUco_charUco_board.py

Description: Generate aruco or charuco board

How to run:

  • t / --type : 0 = aruco board | 1 = charuco board
  • o/ --output : output path to board
  • c / --cols : specify number columns of board | default = 5
  • r / --rows : specify number rows of board | default = 7
$ python calibrate.py -t 0 -o result -c 10 -r 10

File: create_chessboard.py

Description: Generate aruco or charuco board

How to run:

  • o / --output : output file (default out.svg)
  • r / --rows : pattern rows (default 11)
  • c / --columns : pattern columns (default 8)
  • T / --type : type of pattern, circles, acircles, checkerboard, radon_checkerboard (default circles)
  • s / --square_size : size of squares in pattern (default 20.0)
  • R / --radius_rate : circles_radius = square_size/radius_rate (default 5.0)
  • u / --units : mm, inches, px, m (default mm)
  • w / --page_width : page width in units (default 216)
  • h / --page_height : page height in units (default 279)
  • a / --page_size : page size (default A4), supersedes -h -w arguments
  • m / --markers : list of cells with markers for the radon checkerboard
  • H / --help : show help

To Do:

  • combine aruco, charuco and chessboard all in one file
  • Convert code to C++
  • remove need for svgfig dependency in create_chessboard.py

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.