Play video or display image
Play a video or display image sequences.
Note
If you own the MATLAB®
Coder™ product, you can generate C or C++ code from MATLAB code in which an instance of this system object is created. When you do so,
the scope system object is automatically declared as an extrinsic
variable. In this manner, you are able to see the scope display in the same way that you
would see a figure using the plot
function, without directly generating code
from it. For the full list of system objects supporting code generation, see Code Generation Support, Usage Notes, and
Limitations.
Note
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For
example, y = step(obj,x)
and y = obj(x)
perform
equivalent operations.
videoPlayer = vision.VideoPlayer
returns a video player object,
videoPlayer
, for displaying video frames.
additionally
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, videoPlayer
= vision.VideoPlayer(___,Name,Value
)videoPlayer = vision.VideoPlayer('Name','Caption
title')
videoPlayer(
displays one
grayscale or truecolor RGB video frame,videoFrame
)videoFrame
, in the video
player.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
implay
| imshow
| vision.DeployableVideoPlayer
| vision.VideoFileReader
| vision.VideoFileWriter