Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def release_camera(camera=self.video):
     print(camera)  # this for debugging, do not leave it!!!
     print(dir(camera))  # same as above
     opencv.cvReleaseCapture(camera)
Ejemplo n.º 4
0
 def release_camera(camera=self.video):
     print camera # this for debugging, do not leave it!!!     
     print dir(camera) #same as above 
     opencv.cvReleaseCapture(camera)