Skip to content

yakir12/CameraCalibrations.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CameraCalibrations

Build Status Coverage Aqua

This is a package for camera calibration in Julia.

How to install

] add CameraCalibrations

How to use

First we build the calibration object based on the files: the image files of the checkerboard, n_corners: the number of inner corners in each of the sides of the checkerboard, and checker_size: the physical size of the checker (e.g. in cm).

using CameraCalibrations
c = fit(files, n_corners, checker_size)

Then we can use that object to calibrate pixel coordinates and/or images, given the extrinsic image we want to refer to:

i1 = RowCol(1.2, 3.4) # a cartesian index in image-pixel coordinates
xyz = c(i1, 1) # convert to real-world coordinates of the first image
i2 = c(xyz, 1) # convert back to pixel coordinates
i2  i1 # true

Features

  • saving and loading (JSON) calibration files
  • corner detection is done with opencv
  • model fitting is done with opencv
  • opencv is python-free
  • plot calibrated images
  • in-memory images
  • images from video IO

Citing

See CITATION.bib for the relevant reference(s).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages