Perception

Estimate 6D pose

Locate named objects in 3D: get each one's position and orientation in the camera frame.

View as Markdown
POST/v1/pose

Authorization

Request body

JSON, with Content-Type: application/json.

  • modelstringrequired

    The pose model to run. The models for this endpoint are listed below.

  • imagestringrequired

    The image, base64 JPEG or PNG (a data: URL works too). Under 4 MB of base64.

  • objectstring

    The object to locate, by name or mesh id. Send object or objects.

  • objectsstring[]

    Several objects, up to 16.

  • depthstring

    A depth image of the same view.

  • intrinsicsnumber[4]

    [fx, fy, cx, cy] in pixels of the image (fx, fy > 0).

  • meshesobject

    CAD models by object name, for model-based estimators: { "mug": { format, data, units? } } with format "ply" or "obj", data the file as base64, and units "m" (default) or "mm". Under 2 MB of base64 together.

  • boxesobject

    Where each object is in the image, by object name (e.g. from detect): [x0, y0, x1, y1] in pixels.

Response

  • idstring

    Unique id of this call, e.g. pos_48213. It matches the call in your Activity dashboard.

  • modelstring

    The model that answered.

  • backendstring

    "http": the real model ran on a GPU. "simulated": stand-in output of the same shape, as test keys get.

  • sandboxboolean

    true when the call was made with a test key: the output is simulated, nothing ran on a GPU and nothing was charged. Absent otherwise.

  • posesobject[]

    One per object found, in the camera frame.

    Show 4 child attributes
    • objectstring

      Which object.

    • scorenumber

      Confidence, 0–1.

    • translationnumber[3]

      [x, y, z] in meters.

    • rotationnumber[4]

      Quaternion [qx, qy, qz, qw].

  • usageobject

    What the call cost.

    Show 2 child attributes
    • cost_usdnumber

      Charged to your credits, in US dollars.

    • latency_msinteger

      Time the model took, in milliseconds.

Errors

The errors every endpoint shares: invalid input, keys, credits and cold starts. See Errors.

Models

1 live model for /pose. Each page has a ready-made request.

1 more is coming soon. See the models page.