EvanWieland / Shady

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

😎 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.


Languages

Language:C++ 95.1%Language:CMake 4.9%