PixelRect
yosoi.surface.PixelRect
class PixelRect(ImmutableModel):
Crop in full decoded-frame pixels; source-video dimensions may differ.
Source: python/yosoi/surface.py:629
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Fields and class attributes
Section titled “Fields and class attributes”x: int = Field(strict=True, ge=0, le=2 ** 32 - 1, description='Left pixel coordinate.')
y: int = Field(strict=True, ge=0, le=2 ** 32 - 1, description='Top pixel coordinate.')
width: int = Field(strict=True, ge=0, le=2 ** 32 - 1, description='Crop pixel width.')
height: int = Field(strict=True, ge=0, le=2 ** 32 - 1, description='Crop pixel height.')