Skip to content

viam-soleng/face-registration

Repository files navigation

Viam Face Registration Camera

A camera module which will allow you to take a picture of your face which will be stored under a configurable path on the computer the viam service runs. Previously registered faces can also be removed. This module works well in combination with the face recognition module viam-face-identification.

Component Configuration

{
  "path": "/<- YOUR PATH->/",
  "camera": "camera",
  "confidence": 0.8,
  "detector": "<- YOUR FACE DETECTION VISION SERVICE",
  "labels": [
    "valid labels"
  ],
  "padding": 30
}

Do Command Input

{
  "command": "add_face", //or "remove_face"
  "name": "Your Name / ID etc."
}

Web Client React

The webclient-react folder contains a sample webapplication which allows capturing an image of a face and store it in a folder where the Viam server runs. This image can then be used by the viam-face-identification module to identify people. A full viam machine configuration is provided in the folder.