Polybench® for biosignals / reference 1.34.1
Allows to control a video device, such as a camera

Video Stream Input

Overview

This operator functions as a video source operator. It allows to control a camera or other video device.
This operator provides a number of camera controls, if the camera supports them.

Since the Polybench video library works directly on the graphics adapter of your computer, there are some limitation compared to measurement configurations you can generaly make in Polybench. Please read the section below carefully.

Operator ports

Output video: Video frames

Properties

Find more information about changing properties here: "Properties Viewer"

StreamName
type: See description
The name of the video input device.

DeviceInfo
type: Undefined [this value cannot be changed]
Information of the connected video device.


UseExternalSettings
type: True or False
Set to true if the camera or video device determines the resolution itself. Polybench will then not attempt to change the resolution. After changing this setting you need to reload the application for this to work!
Select one of those presets:
True or False
True may also be read like 'yes' and false like 'no'


Width x Height
type: Undefined
Select one of the possible camera image resolutions. You have to restart this operator for the settings to have effect.


FrameRate
type: Real value
Requested frame rate for the camera in frames per second (Hz). The camera may refuse or change this value. You have to restart this operator for the settings to have effect.


SyncID
type: See description
If this device should start and stop synchronously with other objects, then they should all have an equal SyncID. This is a word or number you can think out yourself.

For more information about the behavior of the START, STOP and RESET actions in relation to the SyncID setting, please read more here: "SyncID in relation to START, STOP and RESET".

Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

Documentation
type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.

Variable Parameters

Find more information about Variable Parameters here: "Variable Parameters"

VideoInputList
type: Parameter list (see "Parameter List")
A list of video devices that can be selected.

You may use a Drop-Down list ("Drop Down List") to display the contents of this variable. This allows your user to select one video input device to run if there were more similar devices.

StreamName
type: See description
Use this variable to store and restore (using the Application Settings operator) the stream name of this video device. If you set a new stream name, then this must be one that is available in the VideoInputList parameter list (or the StreamName drop down list of the properties).


CameraControls
type: Parameter list (see "Parameter List")
List of properties of the camera that can be controled by Polybench.


ResolutionList
type: Parameter list (see "Parameter List")
Select one of the possible camera image resolutions. You have to restart video for the settings to have effect.


Resolution
type: See description
The current camera image resolution. Use this for storing the resolution in Application Settings. In a user interface, better use ResolutionList with a Drop Down List.


FrameRate
type: See description
Requested frame rate for the camera in frames per second (Hz). The camera may refuse or change this value. You have to restart this operator for the settings to have effect.

Functions

Find more information about Functions here: "Operator Functions"

ShowProperties
Opens the camera's own property pages, which is a separate dialog

Details

Polybench tries to keep video capture from cameras or other video devices as efficient as possible. This means that for a large part all video functions are executed on the graphics hardware of your computer. This saves processing time on the main processor of your computer, so that it is generally well possible to capture multiple video sources as well as signal sources from front-ends.

However, this video processing also has limitations. During real-time video capture you cannot really do any video image analysis, because that would cost too much processing power. As a result, you should only connect Video Viewers ("Video Viewer") and maybe a Video Storage ("Video Storage") to the output of this operator. Any other operators in between will either not function at all, or will not function as expected.
The image below shows some configurations that do work and that do not work: Note that you always need a Video Viewer - without a viewer no video source can be run!



If you use a Video Replay ("Video Replay") as source, many more things are possible, because the replay is performed off-line. Please refer to the Video Replay for allowed configurations.

Changing video device properties

Note that if you change the camera stream, or any property of the camera, that you have to re-start the video input operator for the settings to take effect.