CurrentFrame

class tools.manual.globals.CurrentFrame(image: ndarray = <factory>, scale: float = 1.0, interpolation: int = 3, display_dims: tuple[int, int]=(0, 0), filename: str = '')

Bases: object

Dataclass for holding information about the currently displayed frame

Attributes Summary

display_dims

The size of the currently displayed frame, in the display window

filename

The filename of the currently displayed frame

interpolation

The opencv interpolator ID to use for resizing the image to the display window

scale

The scaling factor to use to resize the image to the display window

Attributes Documentation

Parameters:
  • image (ndarray)

  • scale (float)

  • interpolation (int)

  • display_dims (tuple[int, int])

  • filename (str)

display_dims: tuple[int, int] = (0, 0)

The size of the currently displayed frame, in the display window

Type:

tuple[int, int]`

filename: str = ''

The filename of the currently displayed frame

Type:

str

interpolation: int = 3

The opencv interpolator ID to use for resizing the image to the display window

Type:

int

scale: float = 1.0

The scaling factor to use to resize the image to the display window

Type:

float

display_dims: tuple[int, int] = (0, 0)

The size of the currently displayed frame, in the display window

Type:

tuple[int, int]`

filename: str = ''

The filename of the currently displayed frame

Type:

str

image: ndarray = <dataclasses._MISSING_TYPE object>

The currently displayed frame in original dimensions

Type:

numpy.ndarry

interpolation: int = 3

The opencv interpolator ID to use for resizing the image to the display window

Type:

int

scale: float = 1.0

The scaling factor to use to resize the image to the display window

Type:

float