ActiveFrame

class tools.manual.face_viewer.interact.ActiveFrame(viewport: Viewport, tk_edited_variable: tk.BooleanVar)

Bases: object

Handles the display of faces and annotations for the currently active frame.

Parameters:
  • canvas (tkinter.Canvas) – The FacesViewer canvas

  • tk_edited_variable (tkinter.BooleanVar) – The tkinter callback variable indicating that a face has been edited

  • viewport (Viewport)

Attributes Summary

current_frame

A BGR version of the frame currently being displayed.

frame_index

The frame index of the currently displayed frame.

Methods Summary

move_to_top()

Move the currently selected frame's faces to the top of the viewport if they are moving off the bottom of the viewer.

reload_annotations()

Handles the reloading of annotations for the currently active faces.

Attributes Documentation

current_frame

A BGR version of the frame currently being displayed.

Type:

numpy.ndarray

frame_index

The frame index of the currently displayed frame.

Type:

int

Methods Documentation

move_to_top() None

Move the currently selected frame’s faces to the top of the viewport if they are moving off the bottom of the viewer.

Return type:

None

reload_annotations() None

Handles the reloading of annotations for the currently active faces.

Highlights the faces within the viewport of those faces that exist in the currently displaying frame. Applies annotations based on the optional annotations and current editor selections.

Return type:

None

property current_frame: ndarray

A BGR version of the frame currently being displayed.

Type:

numpy.ndarray

property frame_index: int

The frame index of the currently displayed frame.

Type:

int

move_to_top() None

Move the currently selected frame’s faces to the top of the viewport if they are moving off the bottom of the viewer.

Return type:

None

reload_annotations() None

Handles the reloading of annotations for the currently active faces.

Highlights the faces within the viewport of those faces that exist in the currently displaying frame. Applies annotations based on the optional annotations and current editor selections.

Return type:

None