Beispiel #1
0
        def do_face_detect(self, image_file):

            face_detect_image = FaceDetectImage(host=host)
            image_path = os.path.join(face_detect_data_dir, image_file)
            task = face_detect_image.apply(image_path)
            return task
Beispiel #2
0
        def do_face_detect(self, image_file):

            face_detect_image = FaceDetectImage(verbose=True)
            image_path = os.path.join(face_detect_data_dir, image_file)
            task = face_detect_image.apply(image_path)
            return task
Beispiel #3
0
    alarm_verification = AlarmVerification(key_file=args.key_file, verbose=args.verbose)
    task = alarm_verification.apply(video_file=args.video, download=args.download)

if args.face_detect:
    print "performing face detection"
    face_detect = FaceDetect(verbose=args.verbose)
    task = face_detect.apply(video_file=args.video,
                             download=args.download,
                             blur=args.blur,
                             start_frame=args.start_frame,
                             max_frames=args.max_frames,
                             min_size=args.min_size)

if args.face_detect_image:
    print "performing face detection on image"
    face_detect_image = FaceDetectImage(verbose=args.verbose)
    task = face_detect_image.apply(image_file=args.image,
                                   download=args.download,
                                   blur=args.blur,
                                   min_size=args.min_size)

if args.face_log:
    print "performing face log"
    face_log = FaceLog(verbose=args.verbose)
    task = face_log.apply(video_file=args.video,
                          download=args.download,
                          blur=args.blur,
                          start_frame=args.start_frame,
                          max_frames=args.max_frames,
                          min_size=args.min_size)