main content

label ground truth data for automated driving applications -凯发k8网页登录

label ground truth data for automated driving applications

description

the ground truth labeler app enables you to label ground truth data in multiple videos, image sequences, or lidar point clouds.

using the app, you can:

  • simultaneously label multiple time-overlapped signals representing the same scene.

  • define rectangular region of interest (roi) labels, polyline roi labels, pixel roi labels, cuboid roi labels for lidar labeling, and scene label definitions. use these labels to interactively label your ground truth data.

  • use the projected view option to view the labels in top, front and side views simultaneously.

  • use the xy view, yz view, and xz view options to get the top view, front view, and side view of a point cloud scene, respectively.

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

  • write, import, and use custom automation algorithms to automatically label ground truth data.

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

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

  • display time-synchronized signals, such as can bus data, by using the api.

to learn more about this app, see get started with ground truth labelling.

open the ground truth labeler app

  • matlab® toolstrip: on the apps tab, under automotive, click the app icon.

  • matlab command prompt: enter groundtruthlabeler.

programmatic use

groundtruthlabeler opens a new session of the app, enabling you to label ground truth data.

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

example: groundtruthlabeler('caltech_cordova1.avi')

groundtruthlabeler(imageseqfolder) opens the app and loads the image sequence from the input folder. an image sequence is an ordered set of images that resembles 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.

groundtruthlabeler(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 road images and their corresponding timestamps into the app.

imagedir = fullfile(toolboxdir('driving'),'drivingdata','roadsequence');
load(fullfile(imagedir,'timestamps.mat'))
groundtruthlabeler(imagedir,timestamps)

groundtruthlabeler(___,'connectortargethandle',connector) opens the app and loads both of these components:

  • a video or image sequence signal, depending on the input argument combination you specify

  • an external analysis or visualization tool that is time-synchronized with the specified signal

the connector input is a handle to a class that implements the external tool.

for example, this syntax opens the app with a video signal and synchronized lidar visualization tool.

groundtruthlabeler('01_city_c2s_fcw_10s.mp4','connectortargethandle',@lidardisplay);

when you have an external tool connected to a signal in the app, consider these tips.

  • if you remove the signal that is connected to the tool, the app disconnects the tool and closes it.

  • the signal connected to the tool must be the main signal, that is, the signal whose timestamps are used in the playback controls at the bottom of the app. if you change the main signal, the app disconnects the tool and closes it.

  • if you start a new app session, the app disconnects the tool and closes it.

groundtruthlabeler(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.

groundtruthlabeler(gtruth) opens the app and loads a object . the ground truth object data source must be an image sequence, video, or a custom data source.

limitations

  • lidar signals do not support line or pixel roi labels.

  • pixel roi labels do not support sublabels or attributes.

  • cuboid roi labels do not support sublabels.

  • the label summary window does not support sublabels or attributes

  • importing groundtruth object created from image labeler app is not supported.

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.

  • you can copy and paste labels between signals that are of the same type.

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. if you imported multiple signals, click select signals and, in the select signals window, select one or more signals to automate. click ok.

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

version history

introduced in r2017a

see also

apps

objects

  • | |

classes

  • | | |
网站地图