ReasoningEvaluateNode.enrolFace() method
Enrol a named face in the running faces tool’s gallery from an encoded image (JPEG/PNG). Subsequent detections of this person carry their identity. Enrolling an existing name replaces that entry. Resolves to the gallery names after the operation; rejects if the image can’t be used (undecodable, no confident face) — the node keeps running.
Signature:
enrolFace(name: string, image: Uint8Array, instance?: string): Promise<string[]>;