Code Monkey home page Code Monkey logo

expression-and-pose-recognition-in-non-frontal-faces-using-lbp-and-dclbp's Introduction

EXPRESSION-AND-POSE-RECOGNITION-IN-NON-FRONTAL-FACES-USING-LBP-and-DCLBP

  • Requirements:

Anaconda IDE with Python 3 EmEditor. Libraries: Numpy, Scikit-Learn, OpenCV3

  • Installation:

  1. Run the Anaconda Setup. Follow the instructions on the screen. This will Install Anaconda IDE on the system.
  2. Open command prompt. Type "conda update conda" command to update the packages.
  3. Install the libraries mentioned in the previous section using command prompt by using appropriate command for your system. Look on the web for appropriate command.
  4. Now the environment is ready.
  • Folder and File Description:

  1. Code: Contains the source code.
  2. Datasets: Contains the datasets used in the project.
  3. Presentation: Contains the PPT.
  4. Report: Contains the Report in PDF and DOC format.
  5. Reference Papers: Contains the papers mentioned in the references section.
  6. ReadME File
  7. One Page Summary.
  • Running the Project:

For Training:- DOWNLOAD THE KDEF DATASET AND STORE ALL THE PICTURES IN THE \Datasets\KDEF_All_in_one

Histogram files could be generated for any dataset using the 2 scripts present in "\Code\Histogram Files" folder. 1.Generate the histogram files for the folder KDEF_All_in_one present in the \Datasets folder by changing the relative path of the folder in the histogram_compute file. 2.Histogram Files are of two types:

  • Histogram_Angle -> each line contains the tuple (filename, histogram, angle)
  • Historgram_Angle_Expression -> each line contains the tuple (filename, histogram{different dimension than in the previous file}, angle, expression). 3.Paste the contents of both the generated files in "\Code\LGBP With Angle Classification\train_angle.txt" and"\Code\LGBP With Angle Classification\train_expression.txt" respectively .Save and Close.
  1. Before running the projct the first and foremost step is to generate the classifier files ("xxx.pkl") using the scripts given the folders named "DCLBP", "LGBP With Angle Classification" and "LGBP Without Angle Classifiaction" in the Code folder. This is done as follows.
  2. Launch Spyder from the Start menu.
  3. Now, run the following files in Spyder in the exact same order. i. \Code\LGBP With Angle Classification\pose_classifier.py ii. \Code\LGBP With Angle Classification\expression_classifier.py
  4. The previous step generated 4 (.pkl) files in the directory "\Code\LGBP With Angle Classification". These files are the classifiers we built using the training data which was present in the two files from which we copied the content.
  5. Copy these files and paste in the directory "\Code"
  6. Now, open the file : "\Code\complete_lgbp_with_angle_classification.py" in Spyder.
  7. Take the image to be tested and resize it to 169 x 229 using the "resizer.exe" tool present in the directory "\Datasets\resizer"
  8. Paste the resized image to be tested in the directory : \Datasets\Test_Images.
  9. Run the file opened in Step 8. Output wiil be displayed on the console after a few seconds.

To perform batch testing, paste the histogram of files in the "test_angle.txt" ,"test_expression.txt" files. Now first run "pose_prediction.py" and then "expression_prediction.py". The relevant stats will be displayed on the terminal.

The steps mententioned to generate the classifier files ("xxx.pkl") [Steps 1-5] can be used to generete the classifier of any of the three methods used in the project by choosing the appropriate script from any one of these folders : "DCLBP", "LGBP With Angle Classification" and "LGBP Without Angle Classifiaction" and pasting the appropriate training data in the "train.txt" files present in each of these folders seperately. Accordingly the "\Code\complete_... .py" script could be chosen to test the image on any of the three approaches.

expression-and-pose-recognition-in-non-frontal-faces-using-lbp-and-dclbp's People

Contributors

payal-iiita avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

xr007

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.