This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import sqlite3 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from PIL import Image | |
con = sqlite3.connect('Nuketown.db') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import matplotlib.pyplot as plt | |
from matplotlib.backends.backend_pdf import PdfPages | |
# load the ArUCo dictionary | |
arucoDict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_4X4_50) | |
dpi = 100 | |
width = 15*0.393701 #15cm |