Bank of Sharjah recently added facial authentication to its digital banking. Renascence, citing Intelligent CISO, reported in October 2026 that the feature "allows customers to verify their identity using facial recognition technology when accessing online or mobile banking, replacing or supplementing traditional password- and PIN-based logins." Many teams now want the same check inside their own systems, running on a server they control.
This guide takes you from an empty Linux server to a backend that runs a 1:1 verification (is this the person they claim to be?) and a 1:N search (who is this, among everyone enrolled?). Expect a day or two of engineering for the integration itself. After that, plan about a week of testing on your own photos before anyone relies on the answers.

Read As Text
- Decide 1:1 Or 1:N Label every flow as verification or identification.
- Install And Close The Port Run the container, add HTTPS and bind the port to an internal address.
- One Key Per System Issue a scoped API key for each calling service.
- Set The Operating Point Choose the false accept rate and let it set the threshold.
- Enrol Clean Photos One frontal, evenly lit face under your own stable ID.
- Liveness Then Verify Check a live person is present, then run the 1:1 match.
- Identify And Review Run the 1:N search and send consequential matches to a person.
- Test And Set Retention Measure errors on your own photos and fix retention periods.
BEFORE YOU START
Before You Start
You need a server, the face service's container image, and a written policy that says why you process faces. Check each item before Step 1:
- A Linux x86_64 server with Docker, sized to the vendor's stated requirements, on a network segment your backend can reach.
- Root or sudo access to install and run the container.
- A TLS certificate and a reverse proxy (nginx, HAProxy or similar) for HTTPS.
- The backend service that will call the API. It must be a server, because the browser never calls the API directly.
- A test set of your own photos: at least a few hundred pairs of the same person and of different people, taken with the cameras and lighting your users will actually have.
- A lawful basis and a consent record for biometric processing, agreed with your legal team (see Step 8).
- One named owner for thresholds and one for data retention.
STEP 1
Step 1: Decide 1:1 Or 1:N For Each Flow
Write down, for every flow in your product, whether it asks "is this the claimed person?" (1:1) or "who is this?" (1:N). The answer decides which call you make and which error rate you tune.
1:1 verification compares a fresh photo (the probe) with one reference, either a second photo such as an ID card or a template enrolled earlier under a known ID. Logins, step-up checks before a payment, and returning-customer checks are 1:1, because the user has already said who they are.
1:N identification compares the probe with every enrolled person and returns the best candidates above a threshold. Door access without a badge, finding a returning visitor, and deduplicating enrolments are 1:N.
You have this step right when every flow in your list has exactly one of the two labels next to it. If a flow could be either, choose 1:1: its error rate stays fixed as your user base grows. The 1:N error rate does not stay fixed, as Step 4 explains.
STEP 2
Step 2: Install The Service And Close The Port
Run the container on your server, then make sure only your backend can reach it. Start it with a named data volume so enrolments survive restarts and upgrades. Put HTTPS in front of it at your reverse proxy.
Two details catch teams out. First, Docker publishes ports by writing its own firewall rules, which bypass host firewalls such as ufw. Bind the published port to the internal address your backend uses (for example -p 10.0.0.5:8080:8080) rather than to every interface. Second, many self-hosted face APIs send no CORS headers, so a web page cannot call them directly. That is correct behaviour. Your frontend sends the photo to your backend, and your backend calls the face service.
To check it worked, run a port scan from outside the server's subnet. It should find nothing open on the API port, while a curl from the backend host gets a health or version response over HTTPS.
STEP 3
Step 3: Issue One API Key Per System
Create a separate API key for every system that calls the service, and give each key only the permissions it needs. The onboarding service may need to enrol people. The door controller only needs to identify.
Keep keys in your secret store, send them in a request header from the backend, and never ship one to a browser or mobile app. With one key per caller, you can revoke a leaked key without taking down the other systems, and the request log shows which system made each call. Per-key rate limits belong at your reverse proxy.
You have this right when every caller has its own key, and revoking one key in a test leaves the others working.
STEP 4
Step 4: Set The Operating Point
Choose how many false accepts you can tolerate, and let that number set the threshold. A good face API applies a threshold measured for that rate instead of asking you to guess a similarity score.
For 1:1, the rate is the false match rate (FMR). One in 10,000 is a common setting for door access and payments. A stricter rate refuses more genuine users, so your flow needs a retry path. For 1:N, the rate is the false positive identification rate (FPIR): how often a person who was never enrolled is wrongly named. These are the terms NIST uses in its Face Recognition Technology Evaluation, and it helps to use them in your own documents.
1:N has a catch. Every search compares the probe with everyone enrolled, so with a fixed threshold the chance of naming a stranger grows with the gallery. To hold FPIR steady, the threshold has to rise as you enrol more people. Check that your service does this, and that every answer reports the threshold it used and the gallery size.
| Setting | Applies To | Typical Starting Value | Trade-Off |
|---|---|---|---|
| False match rate | 1:1 verify | 1 in 10,000 | Stricter refuses more genuine users |
| False positive identification rate | 1:N identify | 1 in 100 | Looser finds more people and names more strangers |
| Threshold | Both | Set from the rate above | Rises with gallery size in 1:N |
STEP 5
Step 5: Enrol People With Clean Reference Photos
Enrol each person under your own stable ID, from a photo with one clear, frontal, evenly lit face. Most failures that show up later as "the model is wrong" are really bad reference photos.
Send the photo to the enrolment endpoint along with your user ID, and store the ID the service returns next to your user record. Reject an enrolment photo that contains no face or more than one face, a face turned well away from the camera, or a face in strong backlight. Ask the user for another photo when that happens. Record the consent reference at the same time, so that every enrolled template can be traced to a consent you hold.
You have this right when re-enrolling the same person from a second good photo and then verifying them gives a clear match well above the threshold.
STEP 6
Step 6: Check Liveness, Then Call 1:1 Verification
Where a person is in front of a camera, run a liveness check first, and only send the probe to verification if it passes. Liveness asks whether a live person is present. Verification asks whether that person matches the reference. You need both.
Passive liveness inspects ordinary frames for printed photos and screen replays, and asks the user to do nothing. Active liveness adds a short random challenge, so a clip recorded in advance cannot know what to do. Our guide to how active liveness detection challenge-response works covers the trade-off in detail.
Then call verify with the probe and either the reference photo or the enrolled ID. Your code must handle three outcomes: match, no_match and inconclusive. Treat inconclusive as "ask again with a better photo", and never as a pass. Log the similarity, the threshold and the decision with your own transaction ID.

Read As Text
- Capture Frames leads to Liveness Check
- Liveness Check leads to Ask To Retry (Spoof Or Unclear)
- Liveness Check leads to Call 1:1 Verify (Live)
- Call 1:1 Verify leads to Match: Allow
- Call 1:1 Verify leads to No Match: Refuse
- Call 1:1 Verify leads to Inconclusive: Retry
STEP 7
Step 7: Call 1:N Identification And Review The Candidates
Send the probe to the identify endpoint and read back the candidate list, which may be empty. An empty list is a valid answer: the person is not enrolled, or not clearly enough to name.
A photo with several faces may return several sets of candidates, one per face, so loop over them. For anything with consequences (an alert, a refusal, a flag on an account), route the top candidate to a person for review before acting. The NIST operating point you chose in Step 4 means some strangers will be named, and that is expected. For an implementation in a specific stack, the walkthrough on integrating a face recognition API in Node.js and Express shows the request handling in code.
STEP 8
Step 8: Test On Your Own Photos And Write Down Retention
Measure the error rates on your test set, and write down how long each kind of data is kept, before go-live. Published benchmarks describe public datasets. Your cameras, light and users decide your real numbers.
Run every genuine pair and impostor pair through verify at your chosen operating point. Count false rejections and false accepts, then adjust the operating point if the false rejection rate is unworkable. For 1:N, enrol a test gallery the size you expect, and probe it with people who are in it and people who are not.
Then fix retention. Biometric data used to identify someone is special category data under UK GDPR Article 9. The UAE's Federal Decree-Law No. 45 of 2021 treats biometric data as sensitive personal data, and Australia's Privacy Act lists biometric templates as sensitive information. In the United States, Illinois' BIPA requires written consent and a published retention schedule. Set retention for templates, recognition events and request logs. Test that deleting a person removes every template they have, and check that you can answer a subject access request.
WHAT GOES WRONG
What Goes Wrong And How To Recognise It
Most integration problems show up as a pattern in the logs before anyone complains, and three patterns cover most of them.
The first is a false rejection rate far above what the benchmark suggested. It almost always comes from probe photos: small faces, heavy compression from a mobile upload, or backlight. The giveaway is a cluster of similarity scores just under the threshold and many inconclusive answers. Fix the capture by guiding the user to fill the frame, and by uploading the original file before any app compresses it. Lowering the threshold is the wrong fix.
The second is 1:N naming the wrong people more often as the gallery grows. That means the threshold is fixed when it should follow gallery size, or someone tuned it by hand on a small pilot gallery. Compare the threshold reported in recent answers with the one from launch.
The third is a security finding: the API port is reachable from the office network or the internet. This is usually the Docker firewall bypass from Step 2. Re-run the external port scan after every infrastructure change.
ARSA
How ARSA's Face SDK Maps To These Steps
ARSA's Face Recognition and Liveness SDK runs as one Docker container on the customer's own Linux x86_64 server (AVX2, 4 GB of memory for production). The HTTP API and the dashboard share one port. Photos are analysed in memory and discarded, and face data does not go to ARSA. Each step above maps to one call:
- 1:1 between two photos:
POST /v2/verify. - 1:1 against an enrolled person:
POST /v2/verify/identity. - 1:N search:
POST /v2/identify. - Enrolment:
POST /v2/identities. - Deletion:
DELETE /v2/identities/{uid}. - Passive liveness:
POST /v2/liveness. Active sessions come with a production licence.
The defaults match Step 4: a false accept rate of 1 in 10,000 for verification and 1 in 100 for identification, with the identification threshold rising with gallery size. On ARSA's benchmarks page, the server model accepts 93.24% of genuine pairs at 1 false match in 10,000 on VGGFace2. In open-set 1:N with a gallery of 1,000, it identifies 95.23% of enrolled people while naming 1% of strangers. Treat both as public-dataset figures until your own test set says otherwise. ARSA delivers outside Indonesia. Where visa conditions prevent ARSA engineers from travelling, a qualified local partner installs under ARSA supervision.
FAQ
Frequently Asked Questions
What Is The Difference Between Face Verification And Face Recognition?
Face verification is 1:1: it confirms that a person is who they claim to be by comparing them with one reference. Face recognition usually means 1:N identification, which searches everyone enrolled to find who the person is. Verification's error rate stays fixed as you enrol more people. Identification's error rate depends on gallery size, so its threshold has to be managed.
What Is Passive Liveness Detection, And Is It Enough?
Passive liveness checks ordinary camera frames for printed photos and screen replays without asking the user to do anything. Whether it is enough depends on your risk. Many flows run passive liveness on routine checks and add an active, random challenge at onboarding or before high-value actions, because a prepared clip cannot predict the challenge.
Can I Call A Face Verification API Directly From The Browser Or Mobile App?
No. Call it from your backend. A key in client code can be extracted and reused, and many self-hosted face APIs deliberately send no CORS headers. The client sends the photo to your server, and your server calls the API with its own key.
Which Security And Privacy Standards Apply To A Face Recognition API?
Biometric data counts as sensitive data in most of the markets this guide covers: special category data under UK GDPR, sensitive personal data under the UAE's PDPL, sensitive information under Australia's Privacy Act, and written-consent data under Illinois' BIPA. Running the API on your own server keeps the data inside your systems. It does not remove your duty to record a lawful basis, set retention periods and answer deletion requests.
How Do I Choose A Matching Threshold?
Choose the false accept rate you can tolerate, then let the service apply the threshold measured for that rate. One in 10,000 is a common starting point for access and payments. Confirm the choice on your own test photos, and keep a retry path for genuine users who are refused.
For a closer look at how this runs on your own servers, see the on-premise face recognition and liveness SDK, and get in touch through the contact page if you want to talk through your integration.




