Annotation
app.ui.qt.dialogs.annotationModule for annotation; implements the Qt presentation components.
See Also
AnnotationHandler— handles annotation edits submitted by the dialogBBoxViewModel— represents the edited box data
Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.
EditAnnotationDialog
Bases: QDialog
Full edit dialog shown when modifying an existing detection (label + bbox coords).
| PARAMETER | DESCRIPTION |
|---|---|
parent
|
Optional Qt parent object.
TYPE:
|
initial_label
|
Label initially shown in the editor.
TYPE:
|
initial_bbox_xyxy
|
Initial box coordinates in
TYPE:
|
__init__(parent: QWidget | None = None, *, initial_label: str = '', initial_bbox_xyxy: BBoxXYXYTuple = (0, 0, 0, 0)) -> None
get_annotation_data() -> tuple[str, BBoxXYXYTuple]
Read the edited label and four bounding-box coordinates.
| RETURNS | DESCRIPTION |
|---|---|
tuple[str, BBoxXYXYTuple]
|
Stripped label and coordinates in |