示例#1
0
def get_image():
    im = highgui.cvQueryFrame(camera)
    detect_face(im)
    detect_eye(im)
    detect_hand(im)
    return opencv.adaptors.Ipl2PIL(im)
示例#2
0
def get_image():
    im = highgui.cvQueryFrame(camera)
    # Add the line below if you need it (Ubuntu 8.04+)
    #im = cv.cvGetMat(im)
    #convert Ipl image to PIL image
    return cv.adaptors.Ipl2PIL(im)