VisionFaceEnrolRequest vision.face-enrol-request@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- vision
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/vision/face-enrol-request.v1.json
vision.face-enrol-request@1: POST /api/v1/faces/enrol/:feature. `feature` is verify (1:1 verification of yourself), find (search your own uploads) or cast (an adult tagging named streams); each needs its own signed consent first, and cast also names the channel scope.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
image | string | The image as a data URL (base64). |
| |
image_url | string | A public image URL, fetched through Vision's private-address guard. |
| |
feature | enum | yes |
| |
channel | string |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: one
{
"feature": "cast",
"channel": "live:one",
"image": "data:image/png;base64,iVBORw0KGgo="
}Rejected: one
{
"feature": "library",
"image": "data:image/png;base64,iVBORw0KGgo="
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('vision.face-enrol-request@1', value); // { valid, errors: [{ path, message }] }