Multiple cameras correction calibration and fusion with OpenCV Python. This package use ChAruco board to achieve accurate multi-cameras fusion.
pip install camera-fusion
Depending of your environment, you could have to compile OpenCV from source with Python bindings.
Print a ChAruco board, for example the one in the ./resources folder.
Measure the length of the Aruco marker and the length of the black chess square. Then start the calibration scripts.
Generate the lens correction calibration file for a specific camera.
python3 ./bin/camera_calibration
Generate homographies between multiple cameras to fuse/blend on a specific plane. If no lens correction calibration exist for the cameras, they will be generate.
python3 ./bin/camera_fusion
Simple blending methods are implemented:
- Blue channel to RGB blending
- Gray scale to RGB blending
- Weighted blending
- Difference
This project was made to create a super low-cost degree of linear polarization imager. With three cheap repurposed webcams, we achieve decent results and frame-rate.
Test:
tox
Build:
make all