feat: add bbox_size field for frontend filtering

- Database: Added bbox_size column (min(width, height)) to face_filter_features
- API: Updated all endpoints to include bbox_size in responses
- Documentation: Added bbox_size explanation and frontend filtering examples
- Maintains current Swift implementation calculation method
- Enables efficient frontend filtering without backend threshold

This allows the frontend to do real-time filtering using bbox_size
while the backend pre-computes and stores the value.
This commit is contained in:
Accusys
2026-08-09 19:05:09 +08:00
parent 9b6750b85e
commit dfa515f249
4 changed files with 93 additions and 33 deletions
+3
View File
@@ -9,6 +9,9 @@ pub struct FaceFilterFeatures {
pub file_uuid: String,
pub frame: i32,
// Bbox size (pre-computed as min(width, height))
pub bbox_size: Option<i32>,
// Landmark geometric features
pub eye_ratio: Option<f64>,
pub nose_ratio: Option<f64>,