fba4f5a4cc8e5c9e0867e22058653e02467bc662
[platform/upstream/opencv.git] / doc / tutorials / calib3d / camera_calibration_pattern / camera_calibration_pattern.markdown
1 Create calibration pattern {#tutorial_camera_calibration_pattern}
2 =========================================
3
4 The goal of this tutorial is to learn how to create calibration pattern.
5
6 You can find a chessboard pattern in https://github.com/opencv/opencv/blob/3.4/doc/pattern.png
7
8 You can find a circleboard pattern in https://github.com/opencv/opencv/blob/3.4/doc/acircles_pattern.png
9
10 Create your own pattern
11 ---------------
12
13 Now, if you want to create your own pattern, you will need python to use https://github.com/opencv/opencv/blob/3.4/doc/pattern_tools/gen_pattern.py
14
15 Example
16
17 create a checkerboard pattern in file chessboard.svg with 9 rows, 6 columns and a square size of 20mm:
18
19         python gen_pattern.py -o chessboard.svg --rows 9 --columns 6 --type checkerboard --square_size 20
20
21 create a circle board pattern in file circleboard.svg with 7 rows, 5 columns and a radius of 15mm:
22
23         python gen_pattern.py -o circleboard.svg --rows 7 --columns 5 --type circles --square_size 15
24
25 create a circle board pattern in file acircleboard.svg with 7 rows, 5 columns and a square size of 10mm and less spacing between circle:
26
27         python gen_pattern.py -o acircleboard.svg --rows 7 --columns 5 --type acircles --square_size 10 --radius_rate 2
28
29 If you want to change unit use -u option (mm inches, px, m)
30
31 If you want to change page size use -w and -h options
32
33 @cond HAVE_opencv_aruco
34 If you want to create a ChArUco board read @ref tutorial_charuco_detection "tutorial Detection of ChArUco Corners" in opencv_contrib tutorial.
35 @endcond
36 @cond !HAVE_opencv_aruco
37 If you want to create a ChArUco board read tutorial Detection of ChArUco Corners in opencv_contrib tutorial.
38 @endcond