import sys import cv2 import numpy as np if len(sys.argv) < 2: print('Please provide path to image for analysis') exit(1) if len(sys.argv) < 3: print('Please provide path to template file to create') exit(2) scanImage = sys.argv[-2] templateFile = sys.argv[-1] print(f'Analyzing {scanImage} and creating {templateFile}') #https://stackoverflow.com/questions/51456660/opencv-detecting-drilled-holes