def runFaceDetectionExample(): video = pv.Webcam() vtm = vtm.VideoTaskManager(buffer_size=2, debug_level=3) vtm.addTaskFactory(FaceDetectorVT) for frame in video: vtm.addFrame(frame)
def runFaceDetectionExample(): video = pv.Webcam() vtm = pv.VideoTaskManager(buffer_size=2,debug_level=3) vtm.addTaskFactory(FaceDetectorVT) for frame in video: vtm.addFrame(frame) frame.show(delay=1)
def runChangeDetectionExample(): video = pv.Video(pv.BUGS_VIDEO) vtm = vtm.VideoTaskManager(buffer_size=2, debug_level=2) vtm.addTaskFactory(ChangeDetectionVT) vtm.addTaskFactory(ChangeDetectionAnnotationVT) for frame in video: vtm.addFrame(frame)
def runChangeDetectionExample(): video = pv.Video(pv.BUGS_VIDEO) vtm = pv.VideoTaskManager(buffer_size=2,debug_level=2) vtm.addTaskFactory(ChangeDetectionVT) vtm.addTaskFactory(ChangeDetectionAnnotationVT) for frame in video: vtm.addFrame(frame) frame.show(delay=30)