8000 GitHub - elliotBraem/all-eyes: A python application able to detect and replace closed eyes in an image :eyes:
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

elliotBraem/all-eyes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All-Eyes 👀

In a photo, closed eyes can occur for a number of reasons, such as the blinding light of a camera’s flash, a mistimed blink, or some other unexpected event. A single individual with closed eyes greatly reduces the picture’s quality and worth, prompting a retake. However, retaking the picture doesn’t ensure that all eyes will be open; a retake is just as much at risk as the initial image. All-eyes attempts to solve this problem using face and closed eye detection, local images, and in-painting to achieve a natural replacement.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

All-eyes is created with Python and OpenCV. If you do not have Python installed on your machine, please see Python's Installation Guides.

Installing

  1. Clone this repository with the following command:
	git clone https://github.com/elliotBraem/all-eyes
  1. Optional: Create a virtual environment for OpenCV with the name all-eyes and enter the environment.
	mkvirtualenv all-eyes -p python3
	workon all-eyes
  1. Run setup.py to install the project and dependencies:
	python setup.py install

Usage

After installing the project:

  1. Place multiple retakes of the same group picture in the directory (or provide custom path in next step):
	all-eyes/resources/images
  1. Run the following command:
	python all_eyes [-b base image] [-i image directory]

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

TODO:

  • Locate a face in an image
  • Locate the eyes on a face
  • Preliminary eye matching
  • Preliminary open/closed implementation
  • Distinguish between closed eyes and open eyes
  • Identify the same set of eyes (open or closed) in the image sequence
  • Apply the replacement to the closed eyes
  • Inpaint the replacment eye
  • Improved, natural inpainting

Authors

  • Elliot Braem
  • Connor Waity
  • Natalie Brooks
  • Austen Baker

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Special thanks to Adrian Rosebrock of pyimagesearch. Aspects of this project are largly influenced by his articles:

About

A python application able to detect and replace closed eyes in an image 👀

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

0