Skip to content

A very simple ncurses application to simplify OpenCV camera calibration

License

Notifications You must be signed in to change notification settings

rjbaw/easy_camera_calibration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Camera Calibration

A very simple ncurses application to simplify OpenCV camera calibration

Sample Interface Alt text Alt text

Setup

Make sure you have OpenCV and numpy installed
Tested on Ubuntu 18.04, Python 3.6 with numpy = 1.18.1 and OpenCV = 4.4
This should work with the latest versions

Config

Config can be edited in > main.py

outpath is the directory where raw and undistorted images would be saved
crop_dist is whether or not undistorted images would be edged cropped
cparams_fn resulting numpy config file name
pattern_size number of chess board vertices in horizontal or vertical direction (interchangable)
square_size chessboard block length (I guess a placeholder value should be fine in our use case)
gray_images gray or color output images
dataset uses a generator class to loop through new images, default value is 0 => /dev/video0

Running

python main.py

The script will auto detect chessboards each frame and label them on the display screen
Make sure you have configured pattern_size correctly

Add as many values as you want then press 'q' to escape to calculate the calibration parameters

NOTE: Keyboard input should be aimed at the ncurses terminal not the camera terminal

About

A very simple ncurses application to simplify OpenCV camera calibration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages