mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
Improve bird classification (#19009)
* Crop more tightly on bird * Add slight padding
This commit is contained in:
@@ -109,7 +109,13 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
obj_data["box"][1],
|
obj_data["box"][1],
|
||||||
obj_data["box"][2],
|
obj_data["box"][2],
|
||||||
obj_data["box"][3],
|
obj_data["box"][3],
|
||||||
224,
|
int(
|
||||||
|
max(
|
||||||
|
obj_data["box"][1] - obj_data["box"][0],
|
||||||
|
obj_data["box"][3] - obj_data["box"][2],
|
||||||
|
)
|
||||||
|
* 1.1
|
||||||
|
),
|
||||||
1.0,
|
1.0,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user