def process(): parser = argparse.ArgumentParser() parser.add_argument('--laplacian', '-l', action='store_true') parser.add_argument('--sobel', '-s', action='store_true') parser.add_argument('--canny', '-c', action='store_true', default=True) args = parser.parse_args() if args.laplacian: Utils.capture_webcam( lambda frame: ProcessingBasic(frame).laplacian_process(), 'laplacian') elif args.sobel: Utils.capture_webcam( lambda frame: ProcessingBasic(frame).sobel_process(), 'sobel') elif args.canny: Utils.capture_webcam( lambda frame: ProcessingBasic(frame).canny_process(), 'canny')
from lib.utils import Utils Utils.capture_webcam()
def process(): Utils.capture_webcam( (lambda frame: RecognitionService(frame).detect_process()))
def process(): Utils.capture_webcam( (lambda frame: YolovService(frame).detect_process()))