Open In App
Related Articles

Installing Face-unlock on Ubuntu

Improve Article
Improve
Save Article
Save
Like Article
Like

“Facerec – Linux face unlock” is a highly optimized face authentication system for Ubuntu Linux that works while logging in, running “sudo” commands, etc. and it has a user-friendly CLI to operate it.

GitHub Link: https://github.com/rushabh-v/linux_face_unlock

Installation

1. Update Sources

This command will get all the updates from the source repositories.

sudo apt update

update sources

2. Add PPA to your machine

This command will add the PPA to your machine and install all the dependencies in your machine. It can take a few minutes if you don’t have those dependencies already installed. Press ENTER when it asks for it. 

sudo add-apt-repository ppa:rushabh-v/facerec

add PPa

3. Install Facerec

This command will install facerec. And In the end it the command line interface will be explained in form of a table.

sudo apt install facerec

install facerec

4. Source bashrc

This will load the new commands to the current shell. Or you can alternatively open a new terminal.

source ~/.bashrc

5. Add a root face

This command will store 10 new face encoding of your face every time you run it. Read the instructions carefully. And press ENTER to whenever you are ready for it to click an image. Try to take each picture with slightly different angles, different lights, etc. for better results.

facerec new

Note: The number of face encoding affects your response time while logging in. So adding more than 2 root faces (20 face encoding is not recommended).

add a root face

6. Enable facerec

This command will enable facerec and you are ready to go.

facerec enable

7. Temporary Disable facerec

Run the following command to temporarily disable facerec preserving all the face encoding and the entire setup.  You will need to run `facerec enable` to enable it back.

facerec disable

Uninstall/Remove

This will remove the entire setup but the PPA will be still preserved. Run `sudo apt remove facerec` to remove the PPA.

facerec remove

Command Line Interface

Command

Description

facerec new Add a new root face
facerec enable          Enable facerec
facerec disable Temporarily disable facerec
facerec remove Completely remove the facerec
facerec –help Get the CLI info
Last Updated : 14 Oct, 2020
Like Article
Save Article
Similar Reads