Esempio n. 1
0
def runFaceDetectionExample():
    video = pv.Webcam()

    vtm = vtm.VideoTaskManager(buffer_size=2, debug_level=3)
    vtm.addTaskFactory(FaceDetectorVT)

    for frame in video:
        vtm.addFrame(frame)
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)