HighlightVideo
HighlightVideo[video,f]
runs f on each frame of video.
HighlightVideo[video,objs]
highlights regions of interest objs for given times.
Details and Options
- HighlightVideo can be used to highlight detected objects, tracking of objects and more.
- Object specification objs can be any of the following:
-
ts a TimeSeries of objects tracking an ObjectTrackingData object {time1roi1,…} a list of rules of times and objects {{t11,t12}roi1,…} a list of rules for time intervals and objects - In HighlightVideo[video,f], f should return a supported region of interest for each frame.
- Each timei can be a time assumed to be in seconds, quantity or a time interval.
- The region of interest roii can be any of the following or a list of them:
-
{{x1,y1},…} a list of image positions region a 2D geometric region (Point, Line, Disk, etc.) labelmatrix a 2D label matrix specifying image components maskimage nonzero pixels of an Image object graphics a Graphics object w[roii] symbolic wrapper w f a region returned by a function f <label1->roi1, … > an association of labeled regions - The following wrappers w can be used:
-
ImageMarker[roi,…] place a marker at the medoid of roi Labeled[roii,…] place a marker at the medoid of roi Legended[roi,lbl] include the label lbl in the legend Style[roi,opts] show the element using the specified styles - Options to control properties of the output video are:
-
CompressionLevel Automatic compression level to use FrameRate Automatic the frame rate to use GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation the location of the result OverwriteTarget False whether to overwrite an existing file RasterSize Automatic raster size of the output video VideoEncoding Automatic video encoding to use VideoTransparency False whether the output video should have a transparency channel
Examples
open allclose allScope (7)
Regions of Interest (4)
Time Specification (2)
Wolfram Research (2025), HighlightVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/HighlightVideo.html.
Text
Wolfram Research (2025), HighlightVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/HighlightVideo.html.
CMS
Wolfram Language. 2025. "HighlightVideo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HighlightVideo.html.
APA
Wolfram Language. (2025). HighlightVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HighlightVideo.html