def frame(self, t=None, flip=False, bthreshold=128, bthreshmode=0): try: frame = MovieFrame(src=self.video, time=None, flipped=flip, thresh=bthreshold, thmode=bthreshmode) except: opencv.cvReleaseCapture(self.video) raise "could not grab frame, closed camera capture" return frame
def release_camera(camera=self.video): print(camera) # this for debugging, do not leave it!!! print(dir(camera)) # same as above opencv.cvReleaseCapture(camera)
def release_camera(camera=self.video): print camera # this for debugging, do not leave it!!! print dir(camera) #same as above opencv.cvReleaseCapture(camera)