InputVideoQT

Module used for grabbing images from a video source using QuickTime such as iSight or a DV camera with FireWire. The module only works with OS X. The image is scaled to the indicated size regardless of the camera resolution. The module operates in asynchronous mode, which means that the image retreived is the previous one. Ikaros continues to run while the next image is transferred from the camera and the module gets it at the next tick. This can appear confusing when Ikaros is run from the viewer.

Example XML definition

A simple example

  <module
      class = "InputVideoQT"
      name = "VideoSource"
      size_x = "160"
      size_y = "120"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "InputVideoQT".string
nameThe name of this instance of the module.string
size_xSize of the grabbed frameint
size_ySize of the grabbed frameint

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.

It is not always possible to open the camera again when Ikaros has not exited normally. This can usually be fixed by dicsonnecting the camera and connecting it again or by waiting a minute or two.

Author

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

Files

InputVideoQT.h
InputVideoQT.cc
InputVideoQT.ikc