Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.46 KB

File metadata and controls

32 lines (29 loc) · 1.46 KB

Camera Calibration Pattern Generator

Checkerboard generator for camera calibration and saving to pdf.

usage: CheckerboardCreator.py [-h] -r ROWS_GRID_NUM -c COLUMNS_GRID_NUM
                              [-s BLOCK_SIZE_MM] [-o OUTPUT_FILE_NAME]
                              [-d OUTPUT_PATH] [-b BASE_COLOR]

optional arguments:
  -h, --help            show this help message and exit
  -r ROWS_GRID_NUM, --rows-grid-num ROWS_GRID_NUM
                        Number of grid for width.
  -c COLUMNS_GRID_NUM, --columns-grid-num COLUMNS_GRID_NUM
                        Number of grid for height.
  -s BLOCK_SIZE_PX, --block-size-px BLOCK_SIZE_PX
                        Size of block element in px.
  -o OUTPUT_FILE_NAME, --output-file-name OUTPUT_FILE_NAME
                        Name of output pdf file.
  -d OUTPUT_PATH, --output-path OUTPUT_PATH
                        Path where save the checkerboard. e.g. -d C:/. | -d
                        ./checkerboards
  -b BASE_COLOR, --base-color BASE_COLOR
                        Color of rectangle, background will be set to its
                        inverted color. (rrr,ggg,bbb)
examples:
  py CheckerboardCreator.py -r 2 -c 2
  py CheckerboardCreator.py -r 2 -c 2 -s 30 -o 2x2
  py CheckerboardCreator.py -r 10 -c 8 -d ./results -o A4_20px
  py CheckerboardCreator.py -r 7 -c 8 -s 30 -o A4 -d results -b (20,30,80)

preview