v2.4.2

ml

Vehicle-image label detection through AWS Rekognition.

FieldValue
Serverless servicedrive-api-ml
Runtimenodejs22.x, arm64
Regionap-southeast-2
Deployed HTTP operations1
Local worker harnesses0
OpenAPI/openapi/ml.yaml · interactive

Deployed routes

MethodPathAuthSummary
GET/image/labelsAPI keyDetect 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
Esc