Example #1
0
function camOn() {
  width = configuration.width;
  height = configuration.height;
  imageBuffer = new Buffer(width * height);

  seret.cameraOn(configuration.device, imageBuffer, width, height);
  seret.controlSet(0x980901, configuration.contrast);
  if (configuration.lowExposure) {
    seret.controlSet(0x9a0901, 1);  // Set exposure to manual
    seret.controlSet(0x9a0902, configuration.lowExposure);  // Set absolute exposure
    seret.controlSet(0x9a0903, 0);  // Turn off auto priority exposure
  }
  seret.startCapture();
}
Example #2
0
function alternateExposure() {
  var exposure = lowExposure ? configuration.highExposure : configuration.lowExposure;
  lowExposure = !lowExposure;
  seret.controlSet(0x9a0902, exposure);
}