Overlay for showing instances.
InstanceOverlay(labels: sleap.io.dataset.Labels = None, player: sleap.gui.widgets.video.QtVideoPlayer = None, state: sleap.gui.state.GuiState = None)¶
Class for adding instances as overlays on video frames.
Mostly this overlay just adds the relevant instances to the player (i.e., QtVideoPlayer) which does the actual drawing.
Labelsdataset from which to get overlay data.
The video player in which to show overlay.
Object used to communicate with application.
Adds overlay for frame to player scene.