What is face similarity?
A face similarity checker turns each face into an embedding, a short list of numbers that describes its features, and measures how close the two embeddings are. SightRadar reports that as cosine similarity on a 0 to 1 scale. Photos of the same person land close together even across glasses, beards, lighting and a few years of ageing. Different people land further apart, including lookalikes.
When a photo holds more than one face, the largest, most confidently detected face is used. Both photos are compared in memory and discarded. Nothing is written to a collection, and no account is needed.
Comparing two different people to see how alike they look? The look-alike test reads the same score as resemblance.
How to read the score and threshold
The score is a measure of resemblance, not a verdict. The gauge marks the default match line, so you can see which side of it a pair falls on and by how much.
- Well above the line: very likely the same person.
- Just above the line: likely the same person. Confirm before anything important depends on it.
- Just below the line: possibly the same person. Treat it as uncertain; lighting, angle and age can pull a real match down here.
- Well below the line: likely different people.
The right threshold depends on your photos and on what a mistake costs you. Strict for identity checks, looser for photo discovery. The thresholds guide shows how to pick accept, review and reject bands from your own labelled pairs. Scores from other vendors do not carry over: AWS Rekognition reports 0 to 100, and its operating point is different.
What people use face comparison for
- Identity verification: match a selfie to the photo on an ID during onboarding, alongside document and liveness checks.
- Account recovery: confirm the person regaining access is the person who enrolled.
- Marketplace and dating trust: check that profile photos show the verified account holder.
- Attendance and access: confirm a check-in photo matches the enrolled person.
- Photo de-duplication: spot when two uploads show the same person.
Compare is for one-to-one checks. To find a person across thousands of photos, use face search on a collection instead; see use cases. Use face comparison only with a lawful basis and, where required, consent; see trust and responsible use.
Compare faces with the API
This page runs the same comparison as POST /v1/compare, the SightRadar equivalent of AWS Rekognition CompareFaces. On the API, a comparison costs 186 credits (93 per image processed). See the compare endpoint reference for the full request.
curl -X POST "https://api.sightradar.com/v1/compare" \
-H "Authorization: Bearer $SR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sourceUrl":"https://example.com/a.jpg","targetUrl":"https://example.com/b.jpg"}'Frequently asked questions
- What is face similarity?
- Face similarity is a number that says how alike two faces are. Each face is turned into an embedding, a list of numbers that summarises its features, and the two embeddings are compared with cosine similarity. The result runs from 0 to 1: scores near 1 mean the faces are very likely the same person, and low scores mean they are likely different people.
- Does a high score prove two photos show the same person?
- No. A high score means the faces are very similar, which is strong evidence but not proof. Identical twins and close relatives can score high, and poor photos can lower the score for the same person. For identity verification, combine the face match with document checks and liveness.
- What similarity threshold should I use?
- Each result marks the default match line on the gauge. Scores just under it are shown as possibly the same person, because real matches can land there in poor light or at odd angles. For a real product, pick your own threshold from labelled pairs of your own photos: strict for identity verification, looser for photo discovery where a person confirms the suggestion. The thresholds guide walks through it.
- Are my images stored?
- No. Both photos are processed in memory to compute the score and then discarded. No photo, face crop or faceprint is saved, and nothing is used to train models. Large photos are resized in your browser before upload, so less data leaves your device.
- Which photos work best?
- One clear face per photo, large in the frame, well lit and facing the camera. When a photo has several faces, the largest, most confident one is used. JPG, PNG or WebP up to 10 MB. On a phone you can take the photo with your camera. The sample pair button loads two synthetic faces if you just want to see it work.
- Is the face compare tool free?
- Yes. There is no sign-up and no card. A fair-use limit per visitor keeps the tool fast for everyone; if you reach it, the tool shows how long to wait.
- Can I run face comparison from my own app?
- Yes. The same operation is available as POST /v1/compare in the SightRadar API, the equivalent of AWS Rekognition CompareFaces. Create a key in the console and call it from any HTTP client or the official Python and Node SDKs.
More free tools
- Look-alike test Upload a photo of each person and see how much the two faces have in common.
- Mom or dad test Upload a photo of yourself and one of each parent to see whose face scores closer to yours.
- Face blur Upload a photo and the faces in it are blurred for you. Keep the ones you want sharp, then download.
- Face pixelator Upload a photo and the faces in it are pixelated. Pick how coarse the blocks are, then download.
- Face crop Upload a photo and get a centred crop of every face: square, portrait or circle, one file each.
- Face detector Upload a photo to count the faces in it, see a numbered box on each one, and check which are clear enough to match.
- API cost calculator Price your monthly face workload on AWS Rekognition, Azure Face, Google Cloud Vision and SightRadar, operation by operation.
- Rekognition calculator Price an AWS Rekognition image workload in any region, tier by tier: face search, detection, storage and liveness.