VideoCapture¶
-
MLModule
¶ genre InputDevices
author Felix Ritter
package FMEwork/ReleaseMeVis
dll MLVideoCapture
definition MLVideoCapture.def see also MovieCreator
,OpenCVVideoBackend
,SoVideoCaptureSampler2D
keywords video
,capture
,movie
,stream
Purpose¶
The VideoCapture module provides a bridge to the video input capabilities of the operating system. Depending on the back-end used for interfacing with the operating system, different video input devices are supported. Currently, there are back-ends for the following operating systems:
- macOS: The QuickTime AVFoundation back-end interfaces with all video hardware that conforms to the Universal Video Class (UVC) standard (like most of the current web-cams with USB or FireWire)
- Windows, Linux: The OpenCV back-end interfaces with all video devices supported by OpenCV on that operating system
Usage¶
Connect an ML image input connector to the output connector of the module to access the images.
Details¶
The driver back-ends are derived from the VCVideoCaptureInterface
class and are dynamically detected and loaded. Custom drivers can be developed and will be made available by the VideoCapture module if registered to the run-time type system.
On macOS, the QuickTime AVFoundation driver uses multithreading to offload video grabbing and post-processing to an own thread. 24Bit RGB, 8Bit grayscale as well as 16Bit grayscale images are supported as long as the video hardware is able to acquire those images.
The OpenCV back-end available to Windows and Linux supports only 24Bit RGB images, currently. Since OpenCV provides only basic camera control, the detection and selection of video input devices is limited. The module will always expose two camera input devices.
Output Fields¶
Parameter Fields¶
Field Index¶
Always capture video input : Bool |
inputSourcesList : String |
Auto Exposure : Bool |
Start Capture : Trigger |
deviceControlCapabilities : String |
Stop Capture : Trigger |
Driver : String |
Update : Trigger |
driversList : String |
Video Format : String |
Exposure : Double |
Video Frame Size : String |
Gain : Double |
videoFormatsList : String |
Input Source : String |
videoFrameSizesList : String |
Visible Fields¶
Update¶
-
name:
updateDriversList
, type:
Trigger
¶ Updates the list of known drivers. Use this button if you add another device driver at run-time
Video Frame Size¶
-
name:
videoFrameSize
, type:
String
, default:
Default Resolution
¶ Currently selected video frame size