Services
Face match with civil registry
Takes the photo registered for the national code in the civil registry and compares it with the customer’s selfie.
Service coderegistry_face_match
What the customer provides
- National code (10 digits).
- Date of birth in the Persian calendar.
- A selfie taken with the camera on the link page.
Outcomes
The step ends with one of these keys in steps[].outcome. In an advanced flow, each one can lead to a different step or end.
| Outcome | Meaning |
|---|---|
match | Similarity is at or above match_threshold. |
suspicious | Similarity is between the two thresholds, or the registry has no photo. |
no_match | Similarity is below suspicious_threshold, there is no face in the selfie, or the person was not found. |
error | The registry or the face engine could not be reached. |
Settings
You set these per flow in the panel flow builder.
| Setting | Default | Meaning |
|---|---|---|
match_threshold | 800–100 | Similarity in percent at or above which the result is match. |
suspicious_threshold | 600–100 | From this similarity up to the match threshold the result is suspicious; below it, no_match. |
Result
The step result comes from the engine ai_engine
| Field | Meaning |
|---|---|
data.nationalCode | The national code, masked: 00******48. |
data.referenceSource | Where the reference photo came from: civil_registry. |
data.similarity | Face similarity in percent, for example 93.2. The same value from 0 to 1 is in result.score. |
data.thresholds | The match and suspicious thresholds that were applied. |
Reasons
face_mismatchface_low_similarityselfie_no_faceselfie_multiple_facesselfie_missingregistry_photo_missinginvalid_input
Values in angle brackets stand for a family of reasons: provider_… means the engine could not be reached or returned an error, and the outcome is error.