mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Small tweaks
This commit is contained in:
parent
203e767338
commit
e3cc943b0d
@ -13,7 +13,7 @@ class FaceRecognitionConfig(FrigateBaseModel):
|
||||
default=0.8, title="Face similarity score required to be considered a match."
|
||||
)
|
||||
min_area: int = Field(
|
||||
default=1000, title="Min area of face box to consider running face recognition."
|
||||
default=500, title="Min area of face box to consider running face recognition."
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -196,7 +196,7 @@ class GenericONNXEmbedding:
|
||||
|
||||
# handle images larger than input size
|
||||
width, height = pil.size
|
||||
if width > 112 or height > 112:
|
||||
if width != 112 or height != 112:
|
||||
if width > height:
|
||||
new_height = int(((height / width) * 112) // 4 * 4)
|
||||
pil = pil.resize((112, new_height))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user