instance
sleap.gui.overlays.instance
¶
Overlay for showing instances.
Classes:
| Name | Description |
|---|---|
InstanceOverlay |
Class for adding instances as overlays on video frames. |
InstanceOverlay
¶
Bases: BaseOverlay
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.
Attributes:
| Name | Type | Description |
|---|---|---|
labels |
Labels | None
|
The :class: |
player |
QtVideoPlayer | None
|
The video player in which to show overlay. |
state |
GuiState
|
Object used to communicate with application. |
Methods:
| Name | Description |
|---|---|
add_to_scene |
Adds overlay for frame to player scene. |
Source code in sleap/gui/overlays/instance.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
add_to_scene(video, frame_idx)
¶
Adds overlay for frame to player scene.
Source code in sleap/gui/overlays/instance.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |