Skip to content

FrameMetrics

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  2338007724["models.FrameMetrics"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 2338007724
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

Per-frame numbers.

Source code in src/framesheet/models.py
class FrameMetrics(BaseModel):
    """Per-frame numbers."""

    index: int
    t: float
    changed_ratio: float
    """Share of pixels that differ from the previous frame (0 for the first frame)."""
    changed_box: Rect | None = None
    """Bounding box (CSS px) of the pixels that changed vs. the previous frame."""
    path: Path | None = None
    """Path of the individual frame PNG, if frames were kept."""

changed_box class-attribute instance-attribute

changed_box: Rect | None = None

Bounding box (CSS px) of the pixels that changed vs. the previous frame.

changed_ratio instance-attribute

changed_ratio: float

Share of pixels that differ from the previous frame (0 for the first frame).

path class-attribute instance-attribute

path: Path | None = None

Path of the individual frame PNG, if frames were kept.

:fa-brands-github: Show source on GitHub