Git Product home page Git Product logo

dance-recognition's Introduction

Disclaimer

Please note that this readme is out of date, so it may not include full instructions. Author may update it in the future.

Mask Detection and Dancers Recognition

This project aims at detecting mask location and recognize images for typical dances from the city of Cusco - Peru.

Basic system requirements:

  • OpenCV 3.0.0 or greater
  • Numpy 1.11.2
  • Scikit-image 0.12.3
  • Scikit-learn 0.18

Getting the labels

getLabels.py: Divides the original images into small pieces and labels them with the percentage of the containing face. The dataset file must contain ~/Path-to-original-dataset/rgb and ~/Path-to-original-dataset/bin subdirectories. Put original images in ~/Path-to-original-dataset/rgb and the binary images (ground truth) in ~/Path-to-original-dataset/bin. The pieces will be saved in a /patches directory at same hierarchy of ~/Path-to-original-dataset, a subdirectory for each type of w, h, pyr_hight and shift is created.

To execute the script, run:

python getLabels.py -d ~/Path-to-original-dataset

Training the models

train.py: Uses the results of getLabels.py to train a model (SVM, Random Forest, AdaBoost) and save the learned parameters in /models directory at same hierarchy of the ~/patches directory. A subdirectory for each w, h, pyr_hight, shift and descriptor parameters is created.

Run it with:

python train.py -d ~/patches/directory-with-small-labeled-images

##Running a test

detect.py: Reads the trained models, and for each image in the directory plots an image with the face locations.

Run it with:

python detect.py -m ~/models/directory-with-learned-models -t ~/path-to-test-directory

dance-recognition's People

Contributors

rodolfoquispec avatar rquispec 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.