VisibleObjects
- class tools.manual.face_viewer.viewport.VisibleObjects(viewport: Viewport)
Bases:
objectHolds the objects from the
Gridthat appear in the viewable area of theViewport.- Parameters:
viewport (
Viewport) – The viewport object for theFacesViewercanvas
Attributes Summary
The viewport's tkinter canvas image objects.
The viewport's tkinter canvas mesh annotation objects.
The currently visible
DetectedFaceobjects.The currently visible section of the
GridMethods Summary
update()Load and unload thumbnails in the visible area of the faces viewer.
Attributes Documentation
- images
The viewport’s tkinter canvas image objects.
A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing the tkinter canvas image object for the face at the corresponding location.
- Type:
numpy.ndarray
- meshes
The viewport’s tkinter canvas mesh annotation objects.
A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing a dictionary of the corresponding tkinter polygon and line objects required to build a face’s mesh annotation for the face at the corresponding location.
- Type:
numpy.ndarray
- visible_faces
The currently visible
DetectedFaceobjects.A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing the detected faces at their currently viewable position.
Any locations that are not populated by a face will have
Nonein it’s place.- Type:
numpy.ndarray
- visible_grid
The currently visible section of the
GridA numpy array of shape (4, rows, columns) corresponding to the viewable area of the display grid. 1st dimension contains frame indices, 2nd dimension face indices. The 3rd and 4th dimension contain the x and y position of the top left corner of the face respectively.
Any locations that are not populated by a face will have a frame and face index of -1.
- Type:
numpy.ndarray
Methods Documentation
- update() None
Load and unload thumbnails in the visible area of the faces viewer.
- Return type:
None
- property images: ndarray
The viewport’s tkinter canvas image objects.
A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing the tkinter canvas image object for the face at the corresponding location.
- Type:
numpy.ndarray
- property meshes: ndarray
The viewport’s tkinter canvas mesh annotation objects.
A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing a dictionary of the corresponding tkinter polygon and line objects required to build a face’s mesh annotation for the face at the corresponding location.
- Type:
numpy.ndarray
- update() None
Load and unload thumbnails in the visible area of the faces viewer.
- Return type:
None
- property visible_faces: ndarray
The currently visible
DetectedFaceobjects.A numpy array of shape (rows, columns) corresponding to the viewable area of the display grid and containing the detected faces at their currently viewable position.
Any locations that are not populated by a face will have
Nonein it’s place.- Type:
numpy.ndarray
- property visible_grid: ndarray
The currently visible section of the
GridA numpy array of shape (4, rows, columns) corresponding to the viewable area of the display grid. 1st dimension contains frame indices, 2nd dimension face indices. The 3rd and 4th dimension contain the x and y position of the top left corner of the face respectively.
Any locations that are not populated by a face will have a frame and face index of -1.
- Type:
numpy.ndarray