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
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "InputVideoAV". | string | |
name | The name of this instance of the module. | string | |
size_x | Size of the grabbed frame | int | 1920 |
size_y | Size of the grabbed frame | int | 1080 |
flip | Should the image be flipped | bool | no |
mode | Capture mode. Preview may reduce lag but may also reduce image quality. | choices: standard preview | standard |
device_id | Use a camera with a particular ID | string | |
list_devices | List the device ids of available devices on start-up | bool | no |
Module Connections
Outputs
Name | Description |
---|---|
INTENSITY | The intensity of the image |
RED | The red channel of the image |
GREEN | The green channel of the image |
BLUE | The 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