Table of Contents

Class FileCapture

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that generates a sequence of images from the specified movie file.

[WorkflowElementIcon("Bonsai:ElementIcon.Video")]
public class FileCapture : Source<IplImage>
Inheritance
FileCapture
Inherited Members

Properties

Capture

Gets the last active video capture stream. This property is reserved to be used only by the file capture visualizer.

FileName

Gets or sets the name of the movie file.

Loop

Gets or sets a value indicating whether the video sequence should loop when the end of the file is reached.

PlaybackRate

Gets or sets the rate at which to read images from the file. A value of zero means the recorded video frame rate will be used.

Playing

Gets or sets a value specifying whether the video sequence is playing. If the video is paused, the current frame will be repeated at the specified playback rate.

PositionUnits

Gets or sets a value specifying the units of the start position.

StartPosition

Gets or sets the position at which to start playback of the file.

Methods

Generate()

Generates an observable sequence of images from the specified movie file.

Generate<TSource>(IObservable<TSource>)

Generates a sequence of images from the specified movie file, where each new image is emitted only when an observable sequence emits a notification.

Seek(int)

Moves the current video player to the specified frame. This method is reserved to be called by the file capture visualizer.