ml
Vehicle-image label detection through AWS Rekognition.
| Field | Value |
|---|
| Serverless service | drive-api-ml |
| Runtime | nodejs22.x, arm64 |
| Region | ap-southeast-2 |
| Deployed HTTP operations | 1 |
| Local worker harnesses | 0 |
| OpenAPI | /openapi/ml.yaml · interactive |
Deployed routes
| Method | Path | Auth | Summary |
|---|
| GET | /image/labels | API key | Detect vehicle labels via AWS Rekognition |
Behaviour notes
GET /image/labels requires an API key and an imageUrl query parameter.
- The handler fetches the image, computes a perceptual hash, and uses that hash as the DynamoDB cache key.
- Rekognition parameters are fixed in code: minimum confidence 75, maximum labels 10, and vehicle/automotive label filters.
- The
enabledDomains regex controls allowed image hosts; disallowed URLs return 403.
Source map
- services/ml/serverless.yml
- services/ml/functions/imageLabels.ts
- services/ml/functions/utils/parseImageAnalysisResponse.ts