Perception

Track points

Follow points through a video: give their positions in the first frame and get their positions in every frame.

View as Markdown
POST/v1/track

Authorization

Request body

JSON, with Content-Type: application/json.

  • modelstringrequired

    The tracking model to run, e.g. google-deepmind/tapnext. The live models for this endpoint are listed below.

  • framesstring[]required

    The video, 2–64 frames, oldest first. Each a base64 JPEG or PNG under 4 MB of base64.

  • pointsnumber[][]required

    1–256 [x, y] pixel positions in the first frame.

  • depthsstring[]

    RGB-D trackers (TAPIP3D) require it: one depth map per frame, the same size, as a base64 16-bit grayscale PNG in millimetres (0 = no measurement). 2-D trackers refuse it.

  • intrinsicsnumber[]

    RGB-D trackers: the camera's [fx, fy, cx, cy] in pixels, shared by all frames. Required with depths.

  • posesnumber[][]

    RGB-D trackers, optional: one camera-to-world pose per frame (16 numbers, row-major 4×4, meters) for a moving camera. Without them the camera is taken as static.

Response

  • idstring

    Unique id of this call, e.g. trk_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.

  • tracksobject[][]

    One list per point, in the order you sent them, with one entry per frame: { x, y, visible }, where visible is false while the point is hidden. RGB-D trackers add point: [x, y, z] in meters, in the world frame of poses (without poses, the camera's: x right, y down, z forward).

  • 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

5 live models for /track. Each page has a ready-made request.