• Stars
    star
    189
  • Rank 204,649 (Top 5 %)
  • Language
    MATLAB
  • Created over 14 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

multiple camera self calibration Toolbox

Multi Camera Self Calibration toolbox

build

The is an updated version of the Multi Camera Self Calibration toolbox by Svoboda et al.

Links:

  • This version of the code lives on github.

  • The original website remains a good source of information. (This version of the code is being made publicly available with the permission of Tomas Svoboda.)

  • We have an online discussion group.

If you use this library, please cite:

Svoboda T, Martinec D, Pajdla T. (2005) A convenient multi-camera self-calibration for virtual environments. PRESENCE: Teleoperators and Virtual Environments. 14(4):407-422. link

Changes from the original version

At a high level, the changes are all in the usage, and not in the algorithmic domain. Those I remember are:

  • Various small changes to get to work using Octave

  • Disable plotting when running using Octave

  • Implementation of new configuration file format that lives alongside the calibration data rather than in the source code files

  • Inclusion of some sample data and tests

  • Inclusion of a python interface to run the MultiCamSelfCal application

  • Improved the interface for maximally aligning a new calibration to existing camera centers. See Align-Existing config option, and the original_cam_centers.dat input file.

The original readme file is in MultiCamSelfCal/README.txt

Quick test

To test if everything is working for you, do the following:

cd MultiCamSelfCal
octave gocal.m --config=../strawlab/test-data/DATA20100906_134124/no-global-iterations.cfg

This will run most of the algorithm on some sample data. Your computer should churn for a few minutes and finally should end with some lines indicating a successful calibration (with mean reprojection error 0.62 pixels):

GNU Octave, version 3.2.3
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <[email protected]> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

arg = --config=../strawlab/test-data/DATA20100906_134124/no-global-iterations.cfg
config_dir = /home/astraw/astraw-git-root/flydra/MultiCamSelfCal/MultiCamSelfCal/../strawlab/test-data/DATA20100906_134124/
Multi-Camera Self-Calibration, Tomas Svoboda et al., 07/2003
************************************************************
Experiment name: strawlab_test
warning: The calibration file config.files.CalPmat does not exist
warning: No P mat available
warning: The calibration file config.files.CalPmat does not exist
warning: No P mat available
warning: The calibration file config.files.CalPmat does not exist
warning: No P mat available
warning: The calibration file config.files.CalPmat does not exist
warning: No P mat available
warning: No Pmat available

********** After 0 iteration *******************************************
RANSAC validation step running with tolerance threshold: 10.00 ...
RANSAC: 2 samples, 523 inliers out of 523 points
RANSAC: 1 samples, 523 inliers out of 523 points
RANSAC: 2 samples, 432 inliers out of 434 points
RANSAC: 1 samples, 362 inliers out of 362 points
522 points/frames have survived validations so far
Filling of missing points is running ...
Repr. error in proj. space (no fact./fact.) is ...  0.708677 0.688062
************************************************************
Number of detected outliers:   0
About cameras (Id, 2D reprojection error, #inliers):
CamId    std       mean  #inliers
  1      0.62      0.69    432
  2      0.81      0.70    523
  3      0.83      0.78    523
  4      0.49      0.53    362
***************************************************************
**************************************************************
Refinement by using Bundle Adjustment
Repr. error in proj. space (no fact./fact./BA) is ...  0.714557 0.686345 0.620358
2D reprojection error
All points: mean  0.62 pixels, std is 0.61

Python wrapper

John Stowers wrote an API to let this code be directly called from Python.

To install:

pip install multicamselfcal

To install from the git repository:

pip install -r requirements.txt
pip install -e .

To test:

pytest

More Repositories

1

python-pcl

Python bindings to the pointcloud library (pcl)
Cython
2,011
star
2

best

Bayesian estimation supersedes the t test
Python
145
star
3

pymvg

Python Multi-View Geometry
Python
88
star
4

pyopy

Python bindings to interesting matlab libraries for data analysis
Python
85
star
5

adskalman-rs

Kalman filter implementation in Rust
Rust
60
star
6

flydra

live, low-latency markerless multi-camera 3D animal tracking system
Python
57
star
7

strand-braid

Live, low-latency 2D and 3D tracking from single or multiple high-speed cameras
Rust
49
star
8

cam-geom

📷 📐 Geometric models of cameras for photogrammetry
Rust
45
star
9

iana-time-zone

Rust crate to get the IANA time zone for the current system
Rust
38
star
10

pylon-cxx

Rust wrapper of the Pylon libraries for Basler cameras
Rust
25
star
11

less-avc

less Advanced Video Coding (H.264) encoding
Rust
23
star
12

opengl-hz

OpenGL seen through Hartley-Zisserman camera model
C++
21
star
13

bag2hdf5

Convert ROS bag files to HDF5
Python
19
star
14

freemovr_engine

perspective-correct VR for freely moving animals engine
Python
17
star
15

ros_sql

Log arbitrary ROS messages to an SQL database
Python
16
star
16

triggerbox

camera triggering for synchronized multi-camera setups
Rust
16
star
17

py_amira_file_reader

Python
15
star
18

camera_aravis

ROS package for Aravis GigEVision library
C++
12
star
19

ros_comm

Python
11
star
20

py4science-vbc

repository for Py4Science VBC website and talks
Python
11
star
21

opencv-ros-camera

Geometric models of OpenCV/ROS cameras for photogrammetry
Rust
11
star
22

drosophila_eye_map

Viewing directions (eye map) of each Drosophila ommatidium
Python
9
star
23

flymad

system for targeting freely walking flies (Drosophila) with lasers
Python
9
star
24

tilta-n2-control

bare-minimum firmware to control Tilta Nucleus Nano 2 motor
C
7
star
25

arduino-udev

Get and set information by querying serial devices
Python
7
star
26

navigation

C++
7
star
27

image_pipeline

mirror of ROS package with build fixes
C++
6
star
28

cgkit1

fork of the Python cgkit 1.x library
Cython
6
star
29

ros-freeze

convert entire python-based ROS package to a python source or binary distribution
Python
5
star
30

nalgebra-lapack

Outdated. See https://github.com/rustsim/nalgebra/tree/dev/nalgebra-lapack
Rust
5
star
31

pykmlocal

Python wrapper for fast K-means library by Kanungo, Mount, Netanyahu, Piatko, Silverman, and Wu
C++
5
star
32

lagtest-old

How slow is your display?
C++
4
star
33

fsee

fly-eye view and neural processing simulation code
Python
4
star
34

perception_pcl

mirror of ROS package with our local changes
C++
3
star
35

strawlab-ansible-roles

recipes to install strawlab software
Shell
3
star
36

joystick_drivers

mirror of ROS stack with our local changes
Python
3
star
37

msectrax

source code and PCB files for "Millisecond insect tracking system"
Jupyter Notebook
3
star
38

cython_ipp

Cython definitions for the Intel Integrated Performance Primitives (Intel IPP) library
Python
3
star
39

asymmetric-motion

models of asymmetric motion processing in the fly
Python
3
star
40

flystockdb

A free web-database for keeping Drosophila melanogaster stocks.
JavaScript
2
star
41

fview_SphereTrax

Python
2
star
42

visualization_common

mirror of ROS package with our local changes
C++
2
star
43

laser_pan_tilt

laser-pan-tilt
Python
2
star
44

machine-vision-formats

Type definitions for working with data from machine vision cameras
Rust
2
star
45

image_transport_plugins

mirror of ROS package with build fixes
C++
2
star
46

dlt

DLT (direct linear transform) algorithm for camera calibration
Rust
2
star
47

lstsq

Return the least-squares solution to a linear matrix equation (rustlang, nalgebra)
Rust
2
star
48

flo

Fast Lock-On (FLO) tracking
Rust
1
star
49

axum-token-auth

middleware to authenticate requests to axum
Rust
1
star
50

strawlab_freeflight_experiments

Python
1
star
51

neuron-catalog

A simple web database for keeping track of neurons.
JavaScript
1
star
52

ethotimer

Rust
1
star
53

rosgobject

Python
1
star
54

roschart

Python
1
star
55

environment_monitor

C++
1
star
56

postcluster

postcluster
MATLAB
1
star
57

image_common

mirror of ROS package with our local changes
C++
1
star
58

apriltag-sys

Rust
1
star
59

pm21-tiger

PM-21: Python fĂźr die Biowissenschaften. WiSe 2022-2023. Uni Freiburg.
Jupyter Notebook
1
star
60

strawlab_styleguide

scientific communication in the Straw Lab style
Python
1
star
61

ros_robot_model

fork of ROS stack "robot_model"
C++
1
star
62

braincode

supplemental data and code for the braincode paper
Python
1
star
63

phidgets

phidgets utility classes
Python
1
star
64

microfview

A lighter, pure opencv rewrite of fview
Python
1
star
65

dlt-april-cal

Demonstrate the use of April Tags to perform a camera calibration
Jupyter Notebook
1
star
66

light_measurement

utilities for measuring light
Python
1
star
67

wm01-tiger

course material for WM-01, Summer Semester 2022 (year of the Tiger), Faculty of Biology, University of Freiburg
Jupyter Notebook
1
star
68

common_rosdeps

mirror of ROS package with our local changes
1
star
69

freemovr

virtual reality for freely moving animals
1
star
70

ros_flydra

ROS support for flydra
Python
1
star
71

lagtest

how slow is your display?
Python
1
star
72

pylibusb

Python libusb-0.1 ctypes wrapper
Python
1
star
73

nextgen-camera-users

next generation camera software from the Straw Lab
1
star
74

stage

mirror of ROS package with our local changes
C++
1
star
75

bullet

mirror of ROS package with our local changes
C++
1
star
76

fsee_utils

Thin wrapper for using fsee in another process, another host, or another language (Matlab)
Python
1
star
77

strawlab_arduino_libs

C++
1
star
78

pretty-print-nalgebra

Rust
1
star
79

flo-hardware

build instructions and manual for the FLO BYO-camera insect tracking/filming setup
G-code
1
star