code wiki / (root) / nx_face_count.nx

nx_face_count.nx

buildroot/runtime/nx_face_count.nx

6193 B171 linesdepth 8pulls 16 transitivereach 2 importersview sourcekind librarytopic face
docsdependenciesstructsconstsfunctions

about

nx_face_count.nx -- face-cardinality detector. Dark-blob CC inside FACE bbox + eye-pair clustering.

dependencies 4 imports · 2 importers

nx_syscalls.nx nx_image.nx nx_features.nx nx_region.nx nx_face_count.nx nx_face_count_test.nx nx_face_probe.nx

imports: nx_syscalls.nxnx_image.nxnx_features.nxnx_region.nx

imported by: nx_face_count_test.nxnx_face_probe.nx

structs

31struct FaceCountVerdict

consts

14const NX_MAGIC_1024: i64 = 1024
16const NX_FC_NO_FACE: i64 = 0
17const NX_FC_SINGLE_FACE: i64 = 1
18const NX_FC_DOUBLE_FACE: i64 = 2
19const NX_FC_MULTI_FACE: i64 = 3
21const NX_FC_DARK_THRESH: i64 = 50
22const NX_FC_MIN_EYE_AREA_Q10: i64 = 5
23const NX_FC_MAX_EYE_AREA_Q10: i64 = 100
24const NX_FC_Y_TOLERANCE_Q10: i64 = 100
25const NX_FC_INTER_EYE_MIN_Q10: i64 = 200
26const NX_FC_INTER_EYE_MAX_Q10: i64 = 500
27const NX_FC_MIN_EYE_ABS: i64 = 2
28const NX_FC_MIN_YTOL_ABS: i64 = 2
29const NX_FC_MIN_INTER_ABS: i64 = 3

functions

40func nx_fc_dark_mask(gray: *Image) -> *Image
56func nx_face_count_compute(rgb: *Image, verdict: *FaceCountVerdict) -> i64