Welcome Guest, you are in: Login

EventIDE Wiki

RSSRSS

Navigation




Search the wiki


PoweredBy

Page History: EE Webcam Element

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2014/07/23 06:27


Element Icon Webcam Element
Info
Category: Behavioral Control AddIn: Surveillance
Creator: OkazoLab Team Scope: Global
Owns Snippets: no Usage: Status Screen
The element allows monitoring the output of any video capturing device, e.g. webcam, on the status screen in EventIDE.


Description

Short description

Snapshots

Snapshot 1

Snapshot 1

Snapshot 2

Snapshot 2


Practical Use

Technique 1

  1. Add new Webcam element to any event in your experiment
  2. Click on the Webcam element and select a video device from the device list in the property grid
  3. Add a proxy variable to the Video Output property of the Webcam element
  4. Create a XAML ContentControl on the status screen and set its binding to the VideoOutput proxy variable:

 // you can place the content control inside of any parent container
<ContentControl Width="640" Height="480" Content='{Binding VideoOutput}'/>
  1. Make sure that camera working and run an experiment. The video output will be rendered scaled to the area of the Content Control on the Status Screen

Element actions aligned with different epochs of the parent event

EpocheActions
InitializedThe camera starts capturing video
Rendered
Activating
Activated
RunningThe camera output is captured and rendered via the Video Output property, if the latter is bound to the status screen
Deactivated
DeinitializedThe camera stops capturing video

Notes

  • You can not share output of the same camera among multiple Webcam elements. However, you may have multiple cameras linked to multiple Webcam elements.
  • Be careful in using the Webcam element in experiments that require accurate timing. Video capturing is hardware-accelerated on the most computers but a high processor load still can be induced, which may potentially disrupt timing in an experiment. We suggest to always double check timing accuracy while the Webcam element is engaged.
  • If you have Webcam element, whose Video Output is not bound to the status Screen, there is no performance costs for rendering. However, video capturing is still performed by a computer in this case, which can cause a slow down.

Properties

Generic Properties

NameDescriptionConstraintsValue TypeUpon Runtime Change
Settings
Video DeviceDefines a video device for capturingString
Device SettingsOpens a window with OS settings of the selected video device.Fill itFill itFill it
Custom Settings
Use Custom SettingsDefine whether custom frame size and framerate are used in capturing video. Using the custom settings is only possible, if it's supported by the selected video device. Otherwise, the device's default settings will be are applied.BooleanFill it
ResolutionDefine the resolution of captured video. The video frames are automatically stretched to any destination size in rendering, however, a large resolution improves rendering quality with some cost in performance.clSizeFill it
Frame RateDefine the framerate of video capturing, in frames per secondInt32Fill it
Runtime Status
Video OutputFill itFill itFill itFill it
Actual SettingsFill itFill itFill itFill it

+=== Properties inherited from clElement === Inherited properties of clElement
NameDescriptionConstraintsValue TypeUpon Change
Control
Is EnabledIf set to false the element is completely omitted when the experiment is run.Boolean
TitleTitle of the element.String

ScrewTurn Wiki version 5.2.0.8. Some of the icons created by FamFamFam.