> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/platform/abilities/pretrained-fixed-classes/person-analysis.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Person analysis

Pretrained models for people — detection, pose, faces, expressions, re-identification and segmentation

* **`eyepop.person:latest`** — person detection\
  Label: `person`\
  [Sized variants](https://docs.eyepop.ai/platform/abilities/pretrained-fixed-classes.md#sized-variants): `eyepop.person.large`, `.medium`, `.small`, `.nano`
* **`eyepop.expression:latest`** — facial expression analysis\
  Labels: `Happy, Neutral, Sad, Surprise, Angry, Fear, Disgust`
* **`eyepop.person.pose:latest`** — human pose estimation
* **`eyepop.person.2d-body-points:latest`** — 2D body keypoint detection\
  Labels: `left eye, left ear, left shoulder, left hip, left elbow, left wrist, left knee, left ankle, right eye, right ear, right shoulder, right hip, right elbow, right wrist, right knee, right ankle, nose, midpoint_lowest, midpoint_highest`
* **`eyepop.person.3d-body-points.full:latest`** — full 3D body pose
* **`eyepop.person.3d-body-points.heavy:latest`** — heavy 3D body pose model
* **`eyepop.person.3d-body-points.lite:latest`** — lightweight 3D body pose
* **`eyepop.person.3d-hand-points:latest`** — 3D hand keypoint detection
* **`eyepop.person.face-mesh:latest`** — detailed facial mesh
* **`eyepop.person.face.long-range:latest`** — face detection for distant subjects
* **`eyepop.person.face.short-range:latest`** — face detection for close subjects
* **`eyepop.face-id.<size>:latest`** — face-ID embedding: a vector per aligned face crop, for comparing identities. See [Face-ID](https://docs.eyepop.ai/platform/abilities/pretrained-fixed-classes/embeddings.md#face-id) for the sizes.
* **`eyepop.person.palm:latest`** — palm detection
* **`eyepop.person.reid:latest`** — person re-identification
* **`eyepop.person.segment:latest`** — person segmentation

The example runs on a street photo, 810 x 1080, of a blue electric minibus with four people walking past it. The output was captured from production; your numbers may differ slightly.

### Example: body key points

`eyepop.person` finds the people, and a [crop forward](https://docs.eyepop.ai/platform/pop/pop-forwarding.md) hands each one to `eyepop.person.2d-body-points`. `boxPadding: 0.1` widens each crop by 10% before cutting it, so the pose model sees a little of the scene around the person: a limb at the edge of the person's box, such as a knee, is found with more confidence.

{% tabs %}
{% tab title="JSON" %}

```json
{
  "components": [
    {
      "type": "inference",
      "ability": "eyepop.person:latest",
      "forward": {
        "operator": { "type": "crop", "crop": { "boxPadding": 0.1 } },
        "targets": [{ "type": "inference", "ability": "eyepop.person.2d-body-points:latest" }]
      }
    }
  ]
}
```

{% endtab %}

{% tab title="Python" %}

```python
from eyepop import EyePopSdk
from eyepop.worker.worker_types import CropForward, InferenceComponent, Pop

pop = Pop(components=[
    InferenceComponent(
        ability="eyepop.person:latest",
        forward=CropForward(
            boxPadding=0.1,
            targets=[InferenceComponent(ability="eyepop.person.2d-body-points:latest")],
        ),
    ),
])

with EyePopSdk.sync_worker(pop=pop) as endpoint:
    result = endpoint.upload("street.jpg").predict()

for person in result.get("objects", []):
    for group in person.get("keyPoints", []):
        seen = [p["classLabel"] for p in group["points"] if p["confidence"] > 0.5]
        print(f"person at x={person['x']:.0f}: {len(seen)} of {len(group['points'])} points above 0.5")
```

{% endtab %}

{% tab title="Node" %}

```typescript
import { EyePop, ForwardOperatorType, PopComponentType } from '@eyepop.ai/eyepop'

const endpoint = await EyePop.workerEndpoint({
    pop: {
        components: [
            {
                type: PopComponentType.INFERENCE,
                ability: 'eyepop.person:latest',
                forward: {
                    operator: { type: ForwardOperatorType.CROP, crop: { boxPadding: 0.1 } },
                    targets: [{ type: PopComponentType.INFERENCE, ability: 'eyepop.person.2d-body-points:latest' }],
                },
            },
        ],
    },
}).connect()

try {
    const results = await endpoint.process({ source: { path: 'street.jpg' } })
    for await (const result of results) {
        for (const person of result.objects ?? []) {
            for (const group of person.keyPoints ?? []) {
                const seen = group.points.filter((p) => (p.confidence ?? 0) > 0.5)
                console.log(`person at x=${person.x.toFixed(0)}: ${seen.length} of ${group.points.length} points above 0.5`)
            }
        }
    }
} finally {
    await endpoint.disconnect()
}
```

{% endtab %}
{% endtabs %}

```
person at x=672: 10 of 17 points above 0.5
person at x=230: 17 of 17 points above 0.5
person at x=55: 14 of 17 points above 0.5
person at x=0: 0 of 17 points above 0.5
```

<figure><img src="https://1072321683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDoCvfjveqiJFmk0cnXCp%2Fuploads%2Fgit-blob-451247b8de5f7143ec022300220021714fbd44c8%2Fpretrained-person.jpg?alt=media" alt="The street photo with a stick figure of key points drawn on each person; the two men facing the camera have nearly complete figures" width="400"><figcaption><p>Key points with a confidence above 0.5, joined into a skeleton.</p></figcaption></figure>

A person seen whole and from the front gets nearly all 17 points; the man walking away, and the person cut off at the left edge, get fewer. See [Key Points and Meshes](https://docs.eyepop.ai/platform/response-format/predictions/key-points-and-meshes.md) for the shape.

### Next steps

* [Pretrained, fixed classes](https://docs.eyepop.ai/platform/abilities/pretrained-fixed-classes.md) — every category, and sized variants
* [Open vocabulary](https://docs.eyepop.ai/platform/abilities/open-vocabulary.md) — models that find and classify what you describe in words

Questions about building a Pop? Reach us at <help@eyepop.ai>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/platform/abilities/pretrained-fixed-classes/person-analysis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
