Configuration
FaceRecognizerConfig Anatomy
import degirum_face
config = degirum_face.FaceRecognizerConfig(
face_detection_model_spec=detector_spec, # 1. Detection model
face_embedding_model_spec=embedding_spec, # 2. Embedding model
db_path="./face_db.lance", # 3. Database path
cosine_similarity_threshold=0.6, # 4. Matching threshold
face_filters=filter_config, # 5. Quality filters (optional)
)1. Face Detection Model Spec
detector_spec = degirum_face.get_face_detection_model_spec(
device_type="HAILORT/HAILO8",
inference_host_address="@cloud"
)2. Face Embedding Model Spec
3. Database Path
4. Similarity Threshold
5. Face Filters
Model Specs Explained
Option 1: Use the Model Registry (Recommended)
Option 2: Bring Your Own Models
Similarity Threshold Tuning
Threshold Guide
Threshold
Behavior
Use Case
Tuning Strategy
Database Path
YAML Configuration
Creating a YAML Config
Loading from YAML
Loading from YAML String
Benefits of YAML
Configuration Examples
Basic - Default Configuration
Cloud Experimentation
Local Edge Deployment
Remote Inference Server
With Face Filters
Last updated
Was this helpful?

