Code Monkey home page Code Monkey logo

nypl_face_rec's Introduction

This package is to help recognizing faces for NYPL image collections. 

Key functions include:
- Face detection (opencv, haar cascade)
- Face image cropping, resizing
- Face re-orientation based on eye position 
- Face recognition with pyface api
- References for scraping image from Playbill Vault

Developed by William Zhang at New York Public Library of Performing Arts, Spring break 2013

Files and Folders:
example.py: program functionality run-down
detect.py: contains most key functions related to face detection and normalization
face_rotate.py: a script to rotate faces (http://docs.opencv.org/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html#aligning-face-images)
pyfaces_api.py: pyface api to recognize (match) faces
./gallery: includes a few sample images to be recognized
./prob_source: seed images to generate ./prob folder faces for recognition, these files should be properly named!!!
./prob: collection of faces to be compared with, should be normalized, well positioned and cropped
     
./cascades: includes haar cascade files for faces and eyes
./eigenfaces: stores pyface auto generated eigenface images 
./pyfaces: pyface package, with slight adjustment compared to official release (https://code.google.com/p/pyfaces/)
./sample: pyface sample images, could give ideas about how to crop, resize and normalize training sets of pictures.
./scrape: include reference and simple scraping codes for Playbill Vault
./temp: will be used to hold temporary images that are used in the recognition process.

For specific usages, please refer to example.py

TO-DO List:
Generally, we want the returned images of gen_prob() to look like those in ./sample/
1. Normalize illumination
2. Improve eye detection (reduce the more than 2 eyes cases and impute 1 eye cases?)
3. Adjust the parameters defined at the beginning of detect.py, could require much research and experiment
4. Collect seed images for prob_source folder. Scraping is an option but we would want these images to be as normalized as possible
5. If the performance is still limited, could try other algorithms like fisher 

nypl_face_rec's People

Contributors

williamzhangumich avatar

Watchers

James Cloos avatar Charles avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.