add range to birdseye quality config

This commit is contained in:
Blake Blackshear 2021-07-02 07:50:09 -05:00
parent 98d8118fb2
commit b24bb3eb18

View File

@ -231,7 +231,12 @@ class BirdseyeConfig(BaseModel):
enabled: bool = Field(default=True, title="Enable birdseye view.") enabled: bool = Field(default=True, title="Enable birdseye view.")
width: int = Field(default=1280, title="Birdseye width.") width: int = Field(default=1280, title="Birdseye width.")
height: int = Field(default=720, title="Birdseye height.") height: int = Field(default=720, title="Birdseye height.")
quality: int = Field(default=8, title="Encoding quality.") quality: int = Field(
default=8,
title="Encoding quality.",
ge=1,
le=31,
)
mode: BirdseyeModeEnum = Field( mode: BirdseyeModeEnum = Field(
default=BirdseyeModeEnum.objects, title="Tracking mode." default=BirdseyeModeEnum.objects, title="Tracking mode."
) )