Ejemplo n.º 1
0
 def tilt(self, tilt):
     if debug:
         print('tilt', tilt)
     pan = degree_to_visca(self.pan, 'pan')
     pan = i2v(pan)
     tilt = degree_to_visca(tilt, 'tilt')
     tilt = i2v(tilt)
     subcmd = '\x02' + chr(self.pan_speed) + chr(
         self.tilt_speed) + pan + tilt
     self._cmd_cam_alt(subcmd)
Ejemplo n.º 2
0
 def shutter(self, value):
     """
     Set shutter speed
     """
     if debug:
         print('shutter', value)
     subcmd = '\x4A' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 3
0
 def iris(self, value):
     """
     Set iris aperture
     """
     if debug:
         print('iris', value)
     subcmd = '\x4B' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 4
0
 def focus_nearlimit(self, value):
     """
     Can be set in a range from 1000 (∞) to F000 (10 mm)
     """
     if debug:
         print('focus_nearlimit', value)
     subcmd = "\x28" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 5
0
 def RGain(self, value):
     """
     Manual Control of R Gain
         :0..255 set the red gain
     """
     if debug:
         print('RGain', value)
     subcmd = "\x43" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 6
0
 def gain_red(self, value):
     """
     Manual Control of R Gain
         :0..255 set the red gain
     """
     if debug:
         print('gain_red', value)
     subcmd = "\x43\x00\x00" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 7
0
 def BGain(self, value):
     """
     Manual Control of B Gain
         :0..255 set the blue gain
     """
     if debug:
         print('BGain', value)
     subcmd = "\x44" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 8
0
 def gain_blue(self, value):
     """
     Manual Control of B Gain
         :0..255 set the blue gain
     """
     if debug:
         print('gain_blue', value)
     subcmd = "\x44\x00\x00" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 9
0
 def focus_auto_active(self, value):
     """
     pq: Movement Time, rs: Interval
     """
     if debug:
         print('focus_auto_active', value)
         print('this function has never been tested')
     subcmd = "\x27" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 10
0
 def IR_auto_threshold(self, level):
     if debug:
         print('IR_auto_threshold', level)
     subcmd = '\x21\x00\x00' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 11
0
 def aperture(self, value):
     if debug:
         print('aperture', value)
     subcmd = '\x42' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 12
0
 def expo_compensation_amount(self, value):
     if debug:
         print('expo_compensation_amount', value)
     subcmd = '\x4E\x00\x00' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 13
0
 def bright(self, value):
     if debug:
         print('bright', value)
     subcmd = '\x4D\x00\x00' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 14
0
 def gain(self, value):
     if debug:
         print('gain', value)
     subcmd = '\x4C' + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 15
0
 def power_auto(self, time):
     subcmd = '\x40' + i2v(time)
     if debug:
         print('power_auto', time)
     return self._cmd_cam(subcmd)
Ejemplo n.º 16
0
 def zoom(self, value):
     if debug:
         print('zoom', value)
     subcmd = "\x47" + i2v(value)
     return self._cmd_cam(subcmd)
Ejemplo n.º 17
0
 def focus(self, value):
     if debug:
         print('focus', value)
     subcmd = "\x48" + i2v(value)
     return self._cmd_cam(subcmd)