def get_image(): im = highgui.cvQueryFrame(camera) detect_face(im) detect_eye(im) detect_hand(im) return opencv.adaptors.Ipl2PIL(im)
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)