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)
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)
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)
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)