Docker image for OpenImuCameraCalibrator https://github.com/urbste/OpenImuCameraCalibrator
7.9K
Pull the docker image
docker pull chicheng/openicc:latest
Now you can mount the OpenICC folder to your docker container, as well as the folder that contains your calibration data (e.g. download GoPro9 dataset to /home/Downloads/GoPro9 )
docker run -it --rm -v /home/Downloads/GoPro9:/dataset chicheng/openicc
Finally you can run the calibration like this:
cd /OpenImuCameraCalibrator
python3 python/run_gopro_calibration.py --path_to_build /OpenImuCameraCalibrator/build/applications/ --image_downsample_factor=2 --camera_model=FISHEYE --checker_size_m=0.0246 --path_calib_dataset /dataset/dataset3/
For this example I am using a GoPro 9. To calibrate the camera and the IMU to camera transformation we will use the following script: python/run_gopro_calibration.py
Get the test data from here: link. Then you can skip step 1. & 2.
Data acquisition
1.1 Print out the target: resource/board.png to a paper and attach it to something rigid (e.g. a wall). Measure the size of a black square in meter (e.g. 0.021m).
1.2 Now record 3 videos.
1.2.1 The first is to calibrate the camera. Move SLOWLY around the board. We do not want motion blur or the rolling shutter to influence the result. Record for about 20-30s. --> e.g. GH0000.MP4
1.2.2 Place the GoPro on the floor or on a table and press record. Leave it there for 10-20s without touching it. This video will be used to estimate the current IMU bias. We assume it to be fixed during the calibration. --> e.g. GH0001.MP4
1.2.3 Finally record the last video. Again record the board and make sure that you have good lighting conditions. If possible set the shutter time of your GoPro the minimum (e.g. 1/480). If the board is barely visible your lighting condition is not good enough. Having a very fast shutter assures crisp corners and less motion blur. Also it should improve RS line delay calibration. --> e.g. GH0002.MP4
Create the following folder structure:
MyDataset
|-- cam
| |-- GH0000.MP4
| imu_bias
| |-- GH0001.MP4
| cam_imu
| |-- GH0002.MP4
python python/run_gopro_calibration.py --path_calib_dataset=/your/path/MyDataset --checker_size_m=0.021 --image_downsample_factor=2 --camera_model=DIVISION_UNDISTORTION
Also check out all the other parameters you can set!

Content type
Image
Digest
sha256:7742be9e0…
Size
1.2 GB
Last updated
almost 3 years ago
docker pull chicheng/openicc