... | ... | @@ -27,5 +27,14 @@ marker_length = 0.012 # metres |
|
|
The generated picture of the board is printed in 1:1 ratio and glued to a flat surface. The setting is later used in the other files. The setting of these files must be changed accordingly to this setting.
|
|
|
|
|
|
## Camera calibration
|
|
|
**CameraCalibrationLiveCharuco.py** is a python script for file camera calibration using the ChAruCo calibration pattern. The script must be set up accordingly for the board generated above. The output file path is specified as a variable **path_out=''**. The configuration file name is params_internal.yaml.
|
|
|
**CameraCalibrationLiveCharuco.py** is a python script for file camera calibration using the ChAruCo calibration pattern. The script must be set up accordingly for the board generated above. The output file path is specified as a variable **path_out**. The configuration file name is *params_internal.yaml*.
|
|
|
|
|
|
### Calibration procedure
|
|
|
* Run the script after the setup is done.
|
|
|
* The window with live camera picture is displayed.
|
|
|
* Place the calibration pattern inside the camera field of view (FOW).
|
|
|
* Take a calibration picture by clicking on the picture.
|
|
|
* Board corners as red dots appear on the live picture when pattern position is accepted
|
|
|
* Place the pattern to at least 10 different positions covering whole FOW with red dots.
|
|
|
* Click 'q' to calibrate the camera internal parameters and lens distortion.
|
|
|
* Check the results. |