This is used to calibrate USB cameras - intrinsic and stereo extrinsic calibrations.
- Install Docker - https://docs.docker.com/engine/install/ubuntu/
- Install Visual Studio Code - https://code.visualstudio.com/download
- Install local Nvidia drivers
- For OpenGL Nvidia drivers you may need to change
Line 80
ofDockerfile
to use the correct driver for your GPU
- For OpenGL Nvidia drivers you may need to change
- Install nvidia-docker2 - https://github.com/NVIDIA/nvidia-docker
- To view gui windows, run
xhost +
on the host
- Create
build
folder in base directory. - Go to build folder
cd build
- Run CMake
cmake ..
- Build the exectuable
make -j$(nproc)
- Get usage instructions with
./camera_calibrator --help
- These calibrations required either a flat chessboard pattern or asymmetric circles grid pattern
- For thermal calibration:
- Cut and sand blast sheet metal about the size of your laptop
- Spray black chalk paint on this with the asymmetric circles pattern taped off (metal circles, black background)
- Rest the metal on a running laptop and it will be heated enough for the pattern to be detected