(Code developed and tested on opencv 3.3.1)
Code and resources for camera calibration using arUco markers and opencv
- Print the aruco marker board provided. (You can generate your own board, see the code "camera_calibration.py")
- Take around 50 images of the printed board pasted on a flat card-board, from different angles. Use Use data_generation node for this.
- Set path to store images first. (See sample images of arUco board in aruco_data folder)
- Measure length of the side of individual marker and spacing between two marker.
- Input above data (length and spacing) in "camera_calibration.py".
- Set path to stored images of aruco marker.
- Set calibrate_camera flag to true.