import numpy as np
import cv2, os
from cv2 import aruco
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib as mpl



workdir = "./workdir/"
aruco_dict = aruco.Dictionary_get(aruco.DICT_5X5_100)
board = aruco.CharucoBoard_create(8, 5, 5, 4, aruco_dict)
imboard = board.draw((1750, 1250))
cv2.imwrite("chessboard.png", imboard)
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
plt.imshow(imboard, cmap = mpl.cm.gray, interpolation = "nearest")
ax.axis("off")
plt.show()
