def search(self,preset,check=True,tag=True): """ :param preset: string, the type of pre written camera you want. choose from: 1)"webcamXP" 2)"MJPG 3)"yawCam" :param check: boolean, indicates whether or not you want to check if the image is completly black or white. :param tag: boolean, indicates whether or not you want to generate descriptions for the webcam. """ scanner = Scanner() if preset == "webcamXP": scanner.webcamXP(check,tag) elif preset == "MJPG": scanner.MJPG(check,tag) elif preset == "yawCam": scanner.yawCam(check,tag) else: print(f":camera: camera type [i]'{preset}'[/i] not yet supported, please add an issue in github to suggest a new camera type.")
from search import Scanner check = input("Do you want to check if each footage is completly black/white? This might slow the program down. \n enter yes or no:") if check == "yes": check = True else: check = False tag = input("Do you want to generate description of the image?\n" "enter yes or no:") if tag == "yes": tag = True else: tag = False scanner = Scanner() scanner.webcamSeven(check,tag)