Vision & expressions
Vision is optional. With a supported Raspberry Pi Camera, Picamera2 and the relevant settings enabled, PHOS can track a face, estimate its position for eye gaze, report anonymous presence/attention, and optionally classify a visible facial expression. Without the camera or when Vision is disabled, these camera observations are unavailable; eyes and other configured local behaviors can still run.
Use Vision and request expressions
To configure face tracking, use Settings → Runtime → Vision and enable the supported camera features. Camera/tracking settings require a PHOS restart. The optional display preview is configured separately under Runtime → Camera Preview and applies when saved. Check Dashboard or PHOS Status for Presence, Attention and Observed Expression availability; stale or unavailable classification is not a current observation.
To request PHOS's own expression, use Controls → Expression, choose an available value and select Apply expression. This is separate from Observed Expression, which reports a classifier's uncertain description of a visible face. Local camera observation may also influence gaze or a configured subtle response. A requested expression or sensor reaction can be temporary, after which the selected visual source and idle behavior resume. When an external agent is connected and authorized, it can also request supported expressions through MCP; this is optional and does not change the local behavior model. See MCP integration.
Camera and expression settings depend on supported hardware, model files and provider availability. The supplied configuration disables face tracking. Cloud expression recognition requires network access and credentials; the local ONNX path requires its model assets. No camera means no presence or expression observations, not an inferred absence of a person.
Observe, then respond
flowchart TD
camera[Camera] --> vision[Vision] --> provider[Expression provider]
provider --> observation[Stable observation] --> behavior[BehaviorEngine]
behavior --> reaction[PHOS visual reaction]
style behavior fill:#0F4C5C,stroke:#49E7FF,color:#fff
style observation fill:#0F4C5C,stroke:#49E7FF,color:#fff
style reaction fill:#0F4C5C,stroke:#49E7FF,color:#fff
PHOS uses the Raspberry Pi Camera to detect, select and track a face. The selected face position becomes bounded pupil/gaze intent; face tracking and expression inference have independent cadences.
Visible expression, not internal emotion
Expression labels are uncertain observations of a person’s visible facial expression. They are not claims about that person’s internal state, and they are never treated as PHOS’s own emotion. PHOS is not identifying a person or reliably reading their internal emotional state.
Stable observations and reactions
| Stable observation | PHOS reaction |
|---|---|
| Neutral | Calm acknowledgement when enabled after calibration |
| Happy | Warm, friendly visual response |
| Surprised | Temporary alert/open response with cooldown |
| Unknown or rejected negative classes | Preserve/decay toward baseline; no negative mimicry |
Troubleshooting unavailable observations
| Symptom | Check | Supported action and expected result |
|---|---|---|
| Presence or Attention is unavailable | Check Dashboard or PHOS Status and confirm the supported camera features are enabled under Settings → Runtime → Vision. | Camera/tracking configuration requires Restart PHOS. When Vision or the camera is unavailable, the observation remains unavailable; this is not evidence that no person is present. |
| Presence is available but Observed Expression is unavailable | These are independent read models. Check Observed Expression availability and its configured provider/model; a current classified face is required and the observation expires when stale. | Enable/configure a supported expression provider and its model or cloud prerequisites. The expression observation may remain unavailable while presence continues; it does not mean the person's face or PHOS expression is absent. |
| Camera Preview is visible but expression data is unavailable | Camera Preview, face tracking and expression recognition are separate settings. | Check the relevant Vision settings and active provider. Preview alone does not enable tracking or classification. See the technical Vision reference for provider and model details. |
If the status remains unavailable after checking the relevant feature and its prerequisites, use the Vision reference for provider diagnostics. Do not interpret missing observations as a negative detection or as a claim about a person's identity or internal emotional state.
Expression providers
-
Local ONNX
The default selectable expression path uses a local ONNX model behind the expression-provider contract.
-
Optional AWS Rekognition
AWS uses the same provider contract. Selected crops leave the Pi only when this mode is enabled; there is no automatic fallback.
Provider choice, confidence thresholds and reaction timing are advanced settings; consult the Vision reference before changing them. Do not treat a label as a clinical or psychological assessment.
Personalise the visual response
Skins choose the base iris colour, supported eye contour, backgrounds, and state effects. They do not change how camera evidence is classified or which behavior reaction is selected. See Skin Architecture for the rendering boundary.
Next steps
Read the canonical Vision reference for crop, smoothing, provider, privacy and calibration details.