All Projects → Destaq → Low Face Mode

Destaq / Low Face Mode

Licence: mit
Dim and brighten the screen based on whether or not you are present! OpenCV detects face with webcam and dims screen if not present.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Low Face Mode

Face recognition py
基于OpenCV的视频人脸识别
Stars: ✭ 215 (+186.67%)
Mutual labels:  opencv, face-recognition
Php Opencv
PHP extensions for OpenCV
Stars: ✭ 524 (+598.67%)
Mutual labels:  opencv, face-recognition
Computer Vision Guide
📖 This guide is to help you understand the basics of the computerized image and develop computer vision projects with OpenCV. Includes Python, Java, JavaScript, C# and C++ examples.
Stars: ✭ 244 (+225.33%)
Mutual labels:  opencv, face-recognition
Opencv Course
Learn OpenCV in 4 Hours - Code used in my Python and OpenCV course on freeCodeCamp.
Stars: ✭ 185 (+146.67%)
Mutual labels:  opencv, face-recognition
Facerecog
Face Recognition using Neural Networks implemented using Keras
Stars: ✭ 39 (-48%)
Mutual labels:  opencv, face-recognition
Facerecognition
Webcam face recognition using tensorflow and opencv
Stars: ✭ 192 (+156%)
Mutual labels:  opencv, face-recognition
Libfaceid
libfaceid is a research framework for prototyping of face recognition solutions. It seamlessly integrates multiple detection, recognition and liveness models w/ speech synthesis and speech recognition.
Stars: ✭ 354 (+372%)
Mutual labels:  opencv, face-recognition
Robovision
AI and machine leaning-based computer vision for a robot
Stars: ✭ 126 (+68%)
Mutual labels:  opencv, face-recognition
Facerec Lock
Face recognition to control servo lock using Raspberry Pi and OpenCV
Stars: ✭ 7 (-90.67%)
Mutual labels:  opencv, face-recognition
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (+904%)
Mutual labels:  opencv, face-recognition
Attendance Using Face
Face-recognition using Siamese network
Stars: ✭ 174 (+132%)
Mutual labels:  opencv, face-recognition
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (-32%)
Mutual labels:  opencv, face-recognition
Attendace management system
In this system we can fill attendance by face recognition
Stars: ✭ 135 (+80%)
Mutual labels:  opencv, face-recognition
Marvel
Marvel - Face Recognition With Android & OpenCV
Stars: ✭ 199 (+165.33%)
Mutual labels:  opencv, face-recognition
Intelegent lock
lock mechanism with face recognition and liveness detection
Stars: ✭ 134 (+78.67%)
Mutual labels:  opencv, face-recognition
Libfacerec
Face Recognition Library for OpenCV.
Stars: ✭ 341 (+354.67%)
Mutual labels:  opencv, face-recognition
Awesome Face Detection
Compare with various detectors - s3fd, dlib, ocv, ocv-dnn, mtcnn-pytorch, face_recognition
Stars: ✭ 106 (+41.33%)
Mutual labels:  opencv, face-recognition
Opencv
OpenCV projects: Face Recognition, Machine Learning, Colormaps, Local Binary Patterns, Examples...
Stars: ✭ 624 (+732%)
Mutual labels:  opencv, face-recognition
Smart Surveillance System Using Raspberry Pi
This is my Third Year Project for face recognition using OpenCV
Stars: ✭ 41 (-45.33%)
Mutual labels:  opencv, face-recognition
Boss Detector
Change monitor screen when your boss is coming towards you!
Stars: ✭ 63 (-16%)
Mutual labels:  opencv, face-recognition

low-face-mode

This program uses opencv and osascript to brighten or dim your monitor screen (currently only on MacOS) based on whether or not you are behind your computer.

By doing this, it preserves battery life, as the screen is dimmed down to zero when a face has not been detected by the computer's webcamera for some time. However, as soon as a face is detected again, the screen is once more brightened with the help of applescript commands executed from python.

It also fully supports custom face recognition. This means that it will only brighten/dim the screen if it is your face that is in front of the screen.

Usage

low-face-mode utilizes the argparse library to run commands directly from terminal. This means that there is no need to run in an IDE.

The command-line commands are laid out as follows. You can run this code by typing python3 low_face_mode.py followed by the arguments you need (outline below). As an example, the simplest command for simple face detection is python3 low_face_mode.py -r False -u <yourname>. Make sure that you are in the current directory of the low_face_mode.py file before beginning.

usage: low_face_mode.py [-h] [-r RECOGNITION] [-d DATABASE] [-y YOURNAME] [-u USERS [USERS ...]]

optional arguments:
  -h, --help            show this help message and exit
  -r RECOGNITION, --recognition RECOGNITION
                        whether custom recognition is True/False
  -d DATABASE, --database DATABASE
                        create facial database; True/False
  -y YOURNAME, --yourname YOURNAME
                        name used for creating custom face database, MUST be same as in --users
  -u USERS [USERS ...], --users USERS [USERS ...]
                        list of verified users to brighten screen

With all of the listed arguments, we can either use a dash and the letter (e.g. -r' or two dashes and the name (shown on right, e.g. --recognition). We will use the shorter letters for simplicity and ease in this tutorial.

The -r tag means whether or not facial recognition is on. It is defaulted to True, and it is a necessary argument. Keep in mind that you MUST first set up your facial database before running, as otherwise the screen will always dim.

The -d tag is an optional argument; you can choose to ignore it and it is set to False by default. If you choose to set it to True, a startup script will intialize that will ask you to take some pictures of yourself. It will display a small window with your face in it, outlined in green. Now, you MUST make various faces and then press the k key. This creates samples of your face which are used with deep learning to later check it is you. When you are done taking photos, press the q key and wait a bit for them to be processed. Suggested image count: 5-10.

The y tag is an optional argument. It is set to none by default. However, if you are setting up your face database, it MUST be set to your name. This is because the database creates a folder with images of your name in it, and it will also later compare this name against the list of verified users. Example: python3 low_face_mode.py -r True -d True -y Simon -u Simon. If you set it to a previously unadded name, the image database will run again, and another user will be added to the facial database.

The u tag is required. You MUST include it, even if you are not running custom facial recognition. The u tag is the list of authorized users, ones who have the power to brighten/dim your screen. Make sure that your name is set to this. This list can be multiplefold long. Examples: ... -u Simon or ... -u Simon Frank. Ensure that this is your last argument.

If you are confused, you can type python3 low_face_mode.py -h to get the overview, which is also shown above.

Requirements

There's a lot to support the custom face recognition, if you just want face detection, don't worry about this.

opencv osascript argparse pickle imutils face_recognition

Code in Action!

Example GIF

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].