免费的棋盘格标定板生成网址: https://calib.io/pages/camera-calibration-pattern-generator
包括四种
后面的不用看了
opencv 画标定板 10*10 如图
300dpi 打印每个方格10mm
打印机打印精度可能不够,最好买一个
代码如下:
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : 10*10.py
@data :2021/4/22 16:03
@Desciption :
@Version :
@License :
'''
import numpy as np
import cv2
from PIL import Image
# 创建白色幕布
temp = np.ones((1181,1181), np.uint8) * 255
x=0
y=0
f=0
for i in range(0,10):
for j in range(0, 10):
f=f+1
if f%2==1:
draw=cv2.rectangle(temp, (x,y), (x+118,y+118), (0,0,0), -1)
else:
pass
#draw = cv2.rectangle(temp, (x, y), (x + 118, y + 118), (0, 0, 0), 1)
x=x+118
x=0 #x复位
y=y+118 #下降一格
f = f + 1
cv2.imwrite("1011.jpg",draw)