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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user