Пример #1
0
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')
Пример #2
0

from lib.utils import Utils

Utils.capture_webcam()
Пример #3
0
def process():
    Utils.capture_webcam(
        (lambda frame: RecognitionService(frame).detect_process()))
Пример #4
0
def process():
    Utils.capture_webcam(
        (lambda frame: YolovService(frame).detect_process()))