Main Content

Video Labeler

Label video for computer vision applications

Description

Video Labelerapp enables you to label ground truth data in a video, in an image sequence, or from a custom data source reader. Using the app, you can:

  • Define rectangular regions of interest (ROI) labels, polyline ROI labels, pixel ROI labels, and scene labels. Use these labels to interactively label your ground truth data.

  • Use built-in detection or tracking algorithms to label your ground truth data.

  • Write, import, and use your own custom automation algorithm to automatically label ground truth. SeeCreate Automation Algorithm for Labeling.

  • Evaluate the performance of your label automation algorithms using a visual summary. SeeView Summary of Ground Truth Labels.

  • Export the labeled ground truth as agroundTruth对象。您可以使用此对象系统verification or for training an object detector or semantic segmentation network. SeeTraining Data for Object Detection and Semantic Segmentation.

To learn more about this app, seeGet Started with the Video Labeler.

Open the Video Labeler App

  • MATLAB®Toolstrip: On theAppstab, underImage Processing and Computer Vision, click the app icon.

  • MATLAB command prompt: EntervideoLabeler.

Programmatic Use

expand all

videoLabeleropens a new session of the app, enabling you to label ground truth data in a video or image sequence.

videoLabeler(videoFileName)打开应用程序,加载输入视频。的video file must have an extension supported byVideoReader.

Example:videoLabeler('vipmen.avi')

videoLabeler(imageSeqFolder)opens the app and loads the image sequence from the input folder. Animage sequenceis an ordered set of images that resemble a video.

imageSeqFoldermust be a string scalar or character vector that specifies the folder containing the image files. The image files must have extensions supported byimformatsand are loaded in the order returned by thedirfunction.

videoLabeler(imageSeqFolder,timestamps)opens the app and loads a sequence of images with their corresponding timestamps.timestampsmust be adurationvector of the same length as the number of images in the sequence.

For example, load a sequence of images and their corresponding timestamps into the app.

imageDir = fullfile(toolboxdir('vision'),'visiondata','NewTsukuba'); timeStamps = seconds(1:150); videoLabeler(imageDir,timeStamps)

videoLabeler(gtSource)opens the app and loads the data source and corresponding timestamps from agroundTruthDataSourceobject,gtSource. To generate this object for a custom data source, you can specify a custom reader function. For details, seeUse Custom Image Source Reader for Labeling.

videoLabeler(sessionFile)opens the app and loads a saved app session,sessionFile. ThesessionFileinput contains the path and file name. The MAT-file thatsessionFilepoints to contains the saved session.

videoLabeler(gTruth)opens the app and loads agroundTruth对象。You do not need to add a video before loading the object. The ground truth object data source must be an image sequence, video, or a custom data source.

Limitations

  • 的built-in automation algorithms support the automation of rectangular ROI labels only. When you select a built-in algorithm and clickAutomate、现场标签、像素ROI标签,折线ROI实验室els, sublabels, and attributes are not imported into the automation session. To automate the labeling of these features, create a custom automation algorithm. SeeCreate Automation Algorithm for Labeling.

  • Pixel ROI labels do not support sublabels or attributes.

  • 的Label Summary window does not support sublabels or attributes

More About

expand all

Tips

  • To avoid having to relabel ground truth with new labels, organize the labeling scheme you want to use before marking your ground truth.

Algorithms

expand all

You can use label automation algorithms to speed up labeling within the app. To create your own label automation algorithm to use within the app, seeCreate Automation Algorithm for Labeling. You can also use one of the built-in algorithms by following these steps:

  1. Import the data you want to label, and create at least one label definition.

  2. On the app toolstrip, clickSelect Algorithmand select one of the built-in automation algorithms.

  3. ClickAutomate, and then follow the automation instructions in the right pane of the automation window.

Version History

Introduced in R2018b