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

# vision.face-detection@1 · OpenVibe.Services

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

# VisionFaceDetection `vision.face-detection@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-detection.v1.json`](/docs/contracts/vision.face-detection.json)

vision.face-detection@1: POST /api/v1/faces/detect, an identity-free YuNet privacy tool. It counts faces and returns their boxes and scores; it stores no template, names no one and needs no consent. Anyone may use it.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `count` | integer | yes |  | - `minimum 0` |
| `boxes` | array of object | yes |  | - `items: no other fields` |
| `boxes[].x` | number | yes |  |  |
| `boxes[].y` | number | yes |  |  |
| `boxes[].width` | number | yes |  |  |
| `boxes[].height` | number | yes |  |  |
| `boxes[].score` | number | yes |  | - `minimum 0`<br>- `maximum 1` |

## Examples

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

 Valid: one

~~~~
{
  "count": 1,
  "boxes": [
    {
      "x": 20,
      "y": 20,
      "width": 80,
      "height": 80,
      "score": 0.99
    }
  ]
}
~~~~

Rejected: one

~~~~
{
  "count": 1,
  "boxes": [
    {
      "x": 20,
      "y": 20,
      "width": 80,
      "height": 80,
      "score": 2
    }
  ]
}
~~~~

## Validate

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