CameraCapture
Description
The CameraCapture block can be used to take a picture using a camera (if present) or by another means.
Attributes
- BinaryDataChanged [event]: An event that is fired when the binary output has changed.
- Name [string]: The name of the block.
- Trigger [trigger input]: The name of the Trigger that starts the camera (or opens a file-open dialog when no camera is present).
Output connectors
- Binary: The image taken.
Example
1 <CameraCapture Name="camera" Trigger="button"/>
2
3 <VisualPage>
4 <VisualContent>
5 <VisualButton Name="button" Padding="5">
6 <VisualText Text="Take a picture"/>
7 </VisualButton>
8 <VisualImage BinaryInput="camera"/>
9 </VisualContent>
10 </VisualPage>
11
12 <!-- This will show a button at startup. When clicking the button, the camera will start, allowing the user to take a picture. The result will then be passed to the VisualImage which will display the image. -->
