main content

label video for computer vision applications -凯发k8网页登录

label video for computer vision applications

since r2018b

description

the video labeler app 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. see .

  • evaluate the performance of your label automation algorithms using a visual summary. see .

  • export the labeled ground truth as a object. you can use this object for system verification or for training an object detector or semantic segmentation network. see .

to learn more about this app, see .

open the video labeler app

  • matlab® toolstrip: on the apps tab, under image processing and computer vision, click the app icon.

  • matlab command prompt: enter videolabeler.

examples

    programmatic use

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

    videolabeler(videofilename) opens the app and loads the input video. the video file must have an extension supported by .

    example: videolabeler('vipmen.avi')

    videolabeler(imageseqfolder) opens the app and loads the image sequence from the input folder. an image sequence is an ordered set of images that resemble a video.

    imageseqfolder must be a string scalar or character vector that specifies the folder containing the image files. the image files must have extensions supported by and are loaded in the order returned by the function.

    videolabeler(imageseqfolder,timestamps) opens the app and loads a sequence of images with their corresponding timestamps. timestamps must be a vector 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 a object, gtsource. to generate this object for a custom data source, you can specify a custom reader function. for details, see .

    videolabeler(sessionfile) opens the app and loads a saved app session, sessionfile. the sessionfile input contains the path and file name. the mat-file that sessionfile points to contains the saved session.

    videolabeler(gtruth) opens the app and loads a object. 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

    • the built-in automation algorithms support the automation of rectangular roi labels only. when you select a built-in algorithm and click automate, scene labels, pixel roi labels, polyline roi labels, sublabels, and attributes are not imported into the automation session. to automate the labeling of these features, create a custom automation algorithm. see .

    • pixel roi labels do not support sublabels or attributes.

    • the label summary window does not support sublabels or attributes

    more about

    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

    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, see . 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, click select algorithm and select one of the built-in automation algorithms.

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

    version history

    introduced in r2018b

    see also

    apps

    functions

    • |

    objects

    • | |
    网站地图