Detect

POST /detect
  • labels is optional and defaults to the instrument and hand set. Labels can be free text or catalog ids, up to 32.
  • threshold defaults to 0.2. Use 0.3 or more on cluttered scenes.
  • Images are downscaled so the long side is at most 1024 px. Encoded images over 8 MB are rejected.
Boxes are normalized 0 to 1 with the origin at the top left, in camera image coordinates. id is set when a label maps to exactly one catalog tool; otherwise check candidateIds. Errors return {"error": code}: invalid_request (422), invalid_base64, invalid_image, unsupported_image_format, empty_image and image_too_large (413).

Other routes

  • GET /health returns {status, model, device, warmupMs}.
  • GET /models returns the active model, the backends and the default labels.