- return self.setLEDsHDRorRotate(3, 1 if enabled else 0)
- def setRightLED(self, enabled):
- '''Controls the Right LED. \n(enabled) -> (ret)'''
- return self.setLEDsHDRorRotate(4, 1 if enabled else 0)
- def setVerticalCenter(self, value):
- '''Changes the Vertical Center. \n(value) -> (ret)'''
- return self.setLEDsHDRorRotate(5, value)
- def crashDevice(self, value):
- '''Crashes the device by trying to set the Vertical Zoom. Replugging the device in will reset it. \nDon't use this\n(value) -> (ret)'''
- return self.setLEDsHDRorRotate(6, value)
- def setDigitalGain(self, value):
- '''Changes the Digital Gain, between 0 and 16. \n(value) -> (ret)'''
- return self.set(cv2.CAP_PROP_BRIGHTNESS, value)
- def setGain(self, gain):
- '''Specifies the analog gain as a scalar, between 16 and 63. \n(enabled) -> (ret)'''
- return self.set(cv2.CAP_PROP_GAIN, gain)
- #return self.setGainFPSRatioOrDFrameInterval(0x4000, gain)
-
- # These parameters seem to be out-of-date
- #def setGainFPSRatioOrDFrameInterval(self, selector, value):
- # '''Sets Analog Gain (0x4000), FPS Ratio (0x8000), or the Dark Frame Interval (0xc000). \n(selector, value) -> (ret)'''