Up | ICamGrab.dll Configuration | Camera Property Access | Configuration Tips

 

  

 
Camera Property Access

The following named properties can be dynamically accessed with the SetImageProp and GetImageProp commands:

  • ClampLevel (0..255, default 0)
  • CDSGain (0..63, default 47)
  • CameraGain (0..18, default 0)
  • ShutterMode
  • 0: monitoring mode (continuous capture)
  • 1: trigger mode (default)
  • ShutterPolarity
  • 0: positive polarity (default)
  • 1: negative polarity (software trigger is disabled)
  • ShutterSpeed
  • 0: 1/15 second
  • 1: 2 seconds
  • 2: 1 seconds
  • 3: 1/30 second
  • 4: 1/60 second
  • 5: 1/100 second
  • 6: 1/120 second
  • 7: 1/250 second
  • 8: 1/500 second
  • 9: 1/1000 second
  • 10: 1/2000 second
  • 11: 1/4000 second
  • 12: 1/10000 second
  • 13: 1/25000 second
  • 14: 1/50000 second
  • 15: 1/100000 second
  • ShutterDelay (0..4095, default 0)
  • Overlap (0..255, default 0)
  • Gamma
  • 0: Off (default)
  • 1: 0.45
  • 2: 2.2
  • 3: Inverse
  • 4: Binarization with threshold settings (0..1023)
  • BinarizationThreshold (0..1023, default 0)
  • StatusLEDState (0..1, default 0)
  • OutputTTLState (0..1, default 0)
  • OutputISOState (0..1, default 0)
  • InputTTLState (readonly)
  • InputISOState (readonly)

The Set / GetImageProp commands are easily accessible from Python scripts using the camera module.

Example 1: GetCamera Object for Sony SmartCamera

  self.camera = GetCamera('0')  # Camera is always 0
  if self.camera <> None:
    print 'Camera Name:',self.camera.name
    print 'Camera Driver:',self.camera.driver
  else:
    print 'No Camera'

Example 2: GetPropertyRange - CameraGain

  cameraGainMinMax = self.camera.getPropertyRange('CameraGain')
  minCameraGain = cameraGainMinMax[0]
  maxCameraGain = cameraGainMinMax[1]

Example 3:  GetProperty - CameraGain

  try:
    cameraGain = self.camera.getProperty('CameraGain')
    print 'CameraGain:',cameraGain
  except:
    print 'GetProperty CameraGain Failed'

Example 4:  SetProperty - CameraGain

  try:
    self.camera.setProperty('CameraGain',cameraGain)
  except:
    print 'SetProperty CameraGain Failed'

Example 5:  Set ShutterSpeed to 1/2000 seconds

  try:
    self.camera.setProperty('ShutterSpeed',10)  # 1/2000 s
  except:
    print 'SetProperty ShutterSpeed Failed'

Example 6:  Set StatusLEDState  ON

  try:
    self.camera.setProperty('StatusLEDState ',1) 
  except:
    print 'SetProperty StatusLEDState Failed'

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.