# Migrate from AWS Rekognition to SightRadar

> Python on boto3: swap the import for the official shim, which maps Rekognition method names AND response shapes, and your existing face-recognition calls run on SightRadar below AWS Rekognition's first-tier US rate (batch 38% under, real-time 7% under), with no AWS account or quota tickets.

Source: https://sightradar.com/migrate

## What's compatible

Each Rekognition face operation below has a SightRadar equivalent. On Python, the official shim keeps your boto3 calls and Rekognition-shaped responses with a two-line change; from other languages you call the native REST endpoints. Supported operations:

- CreateCollection
- IndexFaces
- SearchFacesByImage
- SearchFaces
- CompareFaces
- DetectFaces
- ListFaces / DeleteFaces
- ListCollections / DeleteCollection

## What changes

- Point the endpoint at `https://api.sightradar.com` instead of the AWS Rekognition regional endpoint.
- Use a SightRadar API key (`frs_<prefix>_<secret>`) sent as `Authorization: Bearer <key>` — no IAM users, roles, or policies.
- The official shim (`pip install sightradar-rekognition-shim`) maps Rekognition method names AND response shapes, so Python/boto3 call sites keep working unchanged. It is PYTHON-ONLY: on the JavaScript, Java, Go or .NET AWS SDKs there is no shim, so you call the native REST endpoints and map requests and responses yourself (see the method mapping). First-party zero-dependency SightRadar SDKs exist for Python and Node.

## What you gain

- Lower per-photo cost: $0.00062 batch and $0.00093 real-time vs Rekognition's $0.00100 first-tier US rate — 38% under and 7% under respectively.
- One per-key rate limit (50 requests a second, 10 in flight per account) instead of per-operation, per-region TPS quotas; bulk indexing goes through the batch queue.
- A real web console to browse collections, run searches, and see per-operation cost.
- Wider image support: WebP and HEIC/HEIF decode natively (Rekognition is JPEG/PNG only).

## The actual migration, step by step

1. **Get a key and run one call against a scratch collection.** Prove credentials, network path and image handling before touching your application. Costs one photo.
2. **Point a COPY of your integration at the new endpoint.** On Python/boto3, swap the import for the shim, in a branch, not production — that is the path where your Rekognition-shaped call sites keep working. Raw REST is a different job: native endpoints use their own paths, request fields and response shapes (`matches[].photo_id` with a 0-1 `score`, not `FaceMatches[].Similarity` on 0-100), so budget for mapping each call.
3. **Re-index your existing faces.** The one unavoidable step: embeddings are model-specific vectors and are NOT portable between engines, so no provider can import another's faceprints. Re-run indexing over the source images at the batch rate.
4. **Dual-write, then compare on live traffic.** Index into both systems and send each search to both. Compare ranked photo IDs, not raw scores — the scales differ (Rekognition 0-100, SightRadar 0-1); the Python shim converts for you, and on raw REST you convert yourself. Ranking agreement is the signal either way.
5. **Re-calibrate your threshold on your own data.** Do not carry the Rekognition number across: different models put the same decision at a different cut-off. This is the step teams skip and then blame on accuracy.
6. **Cut over reads, keep the old collection.** Rollback stays a config change until you delete the old data.

One-off re-index cost at the batch rate: $0.00062/photo — 100,000 photos is about $62.00.

## Questions teams ask before switching

**Can I import my existing face vectors instead of re-indexing?** No, and neither can anyone else. An embedding is a numeric vector produced by one specific model, so another engine's vectors are not meaningful in it. Every provider-to-provider face migration requires re-indexing from source images.

**Do my Rekognition thresholds carry over?** The SCALE is converted for you (0-100 to 0-1); the right operating point is model-specific and must be re-derived from your own data. Treat a carried-over threshold as a starting guess, never a setting.

**What about Rekognition features SightRadar lacks?** Label detection, text detection, celebrity recognition and async video are out of scope — SightRadar does face recognition only. The shim raises a clear error rather than silently returning nothing, so unsupported calls surface during testing.

**Can I run both providers side by side?** Yes, and it is the recommended path. Index into both, search both, compare rankings, cut over when satisfied.

**Do I need an AWS account, IAM role, or a quota increase?** No AWS account or IAM role: email sign-up plus an API key, with no approval gate on the recognition operations. Each key gets 50 requests a second and each account 10 in-flight requests by default, which covers most workloads; send bulk indexing through the batch queue rather than raising a limit.

Side-by-side before/after and the method mapping: https://sightradar.com/migrate
