Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / FaceHeadFit

Type Alias: FaceHeadFit ​

ts
type FaceHeadFit = {
  ratios: Record<string, number>;
  confidence: number;
  locked: boolean;
};

Defined in: face/tracker.ts:4

How a person's head compares with the average one.

Properties ​

PropertyTypeDescriptionDefined in
ratiosRecord<string, number>1 is average. cheek, temple, forehead, jaw, chin: width there. upper, lower: height.face/tracker.ts:6
confidencenumber0 is still measuring and using the average head, 1 is measured and held.face/tracker.ts:8
lockedbooleanThe measurement is complete and no longer moves.face/tracker.ts:10