---
title: "vision.face-cast-match@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vision.face-cast-match"
updated: null
---

# vision.face-cast-match@1 · OpenVibe.Services

HTML: [vision.face-cast-match@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vision.face-cast-match)

# VisionFaceCastMatch `vision.face-cast-match@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: vision
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vision/face-cast-match.v1.json`](/docs/contracts/vision.face-cast-match.json)

vision.face-cast-match@1: the matches inside one channel's consented roster, each with a score and box. No other subject is named and no non-roster face is described.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `channel` | string | yes |  |  |
| `matches` | array of object | yes |  | - `items: no other fields` |
| `matches[].subject` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `matches[].score` | number | yes |  | - `minimum 0`<br>- `maximum 1` |
| `matches[].box` | object |  |  | - `no other fields` |
| `matches[].box.x` | number | yes |  |  |
| `matches[].box.y` | number | yes |  |  |
| `matches[].box.width` | number | yes |  |  |
| `matches[].box.height` | number | yes |  |  |
| `liveness` | enum | yes |  | - `one of "not_checked", "checked"` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: one

~~~~
{
  "channel": "live:one",
  "matches": [
    {
      "subject": "usr_01J8Z3Q4R5S6T7V8W9X0Y1Z2A4",
      "score": 0.71,
      "box": {
        "x": 1,
        "y": 2,
        "width": 30,
        "height": 40
      }
    }
  ],
  "liveness": "not_checked"
}
~~~~

Rejected: one

~~~~
{
  "channel": "live:one",
  "matches": [
    {
      "subject": "ana",
      "score": 0.71
    }
  ],
  "liveness": "not_checked"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('vision.face-cast-match@1', value);   // { valid, errors: [{ path, message }] }
~~~~
