File size: 1,338 Bytes
892fa81
7e25f7a
892fa81
 
 
 
 
 
7e25f7a
 
892fa81
 
 
 
 
 
 
 
 
 
 
7e25f7a
 
 
 
 
 
 
 
 
 
 
 
 
892fa81
 
7e25f7a
 
 
 
 
 
 
 
892fa81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Face Core — shared face detection/recognition/analysis helpers.

Consolidates:
  - Box-format conversions (xywh <-> xyxy <-> face_recognition tuple)
  - Embedding distance metrics (cosine, euclidean)
  - Gallery matching (find best match in a name->embeddings dict)
  - Face-crop extraction with margin
  - Face quality analysis (blur, size, pose, orientation) — Phase 11
  - Face clustering + duplicate elimination — Phase 11
"""

from cores.face.helpers import (
    xywh_to_xyxy,
    xyxy_to_xywh,
    xywh_to_face_recognition_tuple,
    cosine_similarity,
    euclidean_distance,
    best_match,
    extract_face_crops,
)
from cores.face.analysis import (
    blur_score,
    is_blurry,
    face_size,
    face_size_label,
    estimate_pose_landmark,
    estimate_pose_bbox,
    face_orientation,
    face_quality_score,
    select_best_face,
    cluster_faces,
    find_duplicate_faces,
)

__all__ = [
    # helpers
    "xywh_to_xyxy", "xyxy_to_xywh", "xywh_to_face_recognition_tuple",
    "cosine_similarity", "euclidean_distance", "best_match", "extract_face_crops",
    # analysis (Phase 11)
    "blur_score", "is_blurry", "face_size", "face_size_label",
    "estimate_pose_landmark", "estimate_pose_bbox",
    "face_orientation", "face_quality_score",
    "select_best_face", "cluster_faces", "find_duplicate_faces",
]