Improve bird classification (#19009)

* Crop more tightly on bird

* Add slight padding
This commit is contained in:
Nicolas Mowen 2025-07-06 18:08:47 -06:00 committed by GitHub
parent 4339f26ded
commit 6563f78ab0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,13 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):
obj_data["box"][1],
obj_data["box"][2],
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,
)