示例#1
0
 def __init__(self, device_num = 0):
     self.camera = vd.VidereCap(device_num)
     #self.camera.process_frames()
     self.camera.set_mode(vd.NONE)
     vd.set_gain(self.camera.capture, 96)
     vd.set_exposure(self.camera.capture, 255)
     self.camera.process_frames()
     self.low_exposure_left  = cv.cvCreateImage(cv.cvGetSize(self.camera.left_debayered), 8, 3)
     self.low_exposure_right = cv.cvCreateImage(cv.cvGetSize(self.camera.right_debayered), 8, 3)
示例#2
0
 def __init__(self, device_num=0):
     self.camera = vd.VidereCap(device_num)
     #self.camera.process_frames()
     self.camera.set_mode(vd.NONE)
     vd.set_gain(self.camera.capture, 96)
     vd.set_exposure(self.camera.capture, 255)
     self.camera.process_frames()
     self.low_exposure_left = cv.cvCreateImage(
         cv.cvGetSize(self.camera.left_debayered), 8, 3)
     self.low_exposure_right = cv.cvCreateImage(
         cv.cvGetSize(self.camera.right_debayered), 8, 3)
示例#3
0
 def __init__(self, device_num = 0, gain=96, exposure=10):
     self.camera = vd.VidereCap(device_num)
     self.camera.set_mode(vd.NONE)
     vd.set_gain(self.camera.capture, gain)
     vd.set_exposure(self.camera.capture, exposure)
示例#4
0
 def __init__(self, device_num=0, gain=96, exposure=10):
     self.camera = vd.VidereCap(device_num)
     self.camera.set_mode(vd.NONE)
     vd.set_gain(self.camera.capture, gain)
     vd.set_exposure(self.camera.capture, exposure)