InputVideoAV

Module used for grabbing images from a video source using AVKit such as iSight or a DV camera with FireWire. The module only works with OS X. By setting the device_id parameter. The module will receive input from that particular device. If the device_id is not set, the module will connect to the default device. The device id has the form "0xa27000413a443-video". The device_id for the found default device is printed when Ikaros is starting up. It can also be found in the System Information application by looking up the GUID for the device and adding "-video" to it.

Example XML definition

A simple example

  <module
      class = "InputVideoAV"
      name = "VideoSource"
      size_x = "640"
      size_y = "480"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "InputVideoAV".string
nameThe name of this instance of the module.string
size_xSize of the grabbed frameint1920
size_ySize of the grabbed frameint1080
flipShould the image be flippedboolno
modeCapture mode. Preview may reduce lag but may also reduce image quality.choices:
standard
preview
standard
device_idUse a camera with a particular IDstring
list_devicesList the device ids of available devices on start-upboolno

Module Connections

Outputs

NameDescription
INTENSITYThe intensity of the image
REDThe red channel of the image
GREENThe green channel of the image
BLUEThe blue channel of the image

Limitations

It should be possible to run the module also in synchronous mode, where the module would wait for each new frame before continuing.

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

InputVideoAV.h
InputVideoAV.cc
InputVideoAV.ikc

blog comments powered by Disqus