For the complete documentation index, see llms.txt. This page is also available as Markdown.

Response Format

The JSON documents a Pop returns, whichever way you call it

Whether you call EyePop from the Python or Node SDK, the CLI or plain HTTP, a Pop answers in the same JSON. A response is a sequence of predictions. A prediction says what the Pop found in one image, or in one frame of a video: the people, the text, the classification, and where each one is. A single image gets one prediction; a video gets one for every frame the Pop processed.

A first look

The Pop below runs eyepop.person:latest on one image of a person standing in a lobby. Its whole response is one prediction:

A person in a dark coat and a red scarf stands in the middle of an office lobby, with a box drawn around her
The image, 1280 × 720 pixels, with the one object the Pop found. The person is generated.

Read it from the outside in:

  1. source_id, source_width and source_height say which media this is about and how big it is: every position in the prediction is measured in this 1280 × 720 frame.

  2. timestamp and seconds say when in the media: the start, since an image has only one moment.

  3. objects lists what was found. Here one person, 97.75 % certain, whose box starts 503 pixels from the left and 251 pixels from the top of the image.

What this section covers

  • Spatial Attributes — how positions, sizes, outlines and masks are expressed

  • Temporal Attributes — timestamp, duration and captured_at, and which to use for what

  • Predictions — the prediction document, from its top-level fields down to each kind of result

Conventions

A few rules hold for every prediction:

  • Absent, not null. A key with nothing to report is left out. A prediction with nothing found has no objects key at all rather than an empty list. Treat every key as optional except source_width, source_height and timestamp.

  • Names. Most keys are camelCase (classLabel, trackId, keyPoints), a few older ones snake_case (source_width, captured_at, track_events). Both are part of the format.

  • Units. Positions are in pixels of the source, times in nanoseconds, angles in radians and confidences between 0 and 1. The pages that follow say where something differs.

Where you receive it

The predictions are the same everywhere; what differs is how they are handed to you.

Predictions

Python SDK

job.predict() returns one prediction at a time, as a dict

Node SDK

The result stream yields one Prediction at a time

CLI

eyepop run --json prints one line per prediction, as {"file": …, "response": <prediction>}

HTTP

One prediction per line with Accept: application/jsonl

Over HTTP, ask for this format with version=3. The on-premise instance takes the same request at http://127.0.0.1:8080:

The SDKs always ask for version=3 on their own.

Next steps

Last updated