Skip to content

๐Ÿ˜Ž Little OpenCV program written in C++ that augments glasses onto a persons face.

Notifications You must be signed in to change notification settings

EvanWieland/Shady

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ˜Ž Shady

Little OpenCV program written in C++ that augments glasses onto a persons face.

โ— The following instructions are for Ubuntu 20.04. A similiar process will work for other platforms. โ—

Example

Requirements

CMake

$ sudo snap install cmake --classic

OpenCV

$ sudo apt update
$ sudo apt install libopencv-dev python3-opencv

Running

Build from source and run

Install requirements mentioned above

$ sudo apt install build-essential # If no compiler already installed
$ git clone https://github.com/EvanWieland/Shady.git
$ cd /path/to/shady/project
$ mkdir cmake-build-release && cd cmake-build-release && cmake ../
$ cmake --build .
$ ./shady

Run pre-compiled release

Install requirements mentioned above

Download Release v1.0.0

# Decompress the downloaded release zip file
$ cd /path/to/shady/release/filese
$ ./shady

Usage

The Shady program will launch a window showing a stream from your machine's webcam. It will scan for faces and augment readers and sunglasses onto faces that are found.

Press the ENTER key to swap between reading glasses and sunglasses.

Press and hold the ESC key to terminate the program.

Credits

This post by LearnOpenCV helped get me up to speed for this project.

About

๐Ÿ˜Ž Little OpenCV program written in C++ that augments glasses onto a persons face.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published