Giter VIP home page Giter VIP logo

headposeestimation's Introduction

HeadPoseEstimation

Compiling

This application requires OpenCV. Depending on which version of OpenCV you use, you should set the value of 'openCVLocation' in the file image.h.

To compile the program, execute the following commands in the source directory.

mkdir build
cd build
qmake ../HeadPoseEstimation.pro
make

Data

The program was made for the Bosphorus database. The program expects that the files have the following structure. The directory "data" contains the Bosphorus database (you can download this at https://dl.dropbox.com/u/27590885/HeadPoseEstimation.zip this can be provided upon request).

src/
    data/
        bs000/
            bs000_N_N_0.lm2
            bs000_N_N_0.png
        bs001/
    *.cpp
    *.h
    *.pro
build/

Running

Move the build directory outside the source directory (make sure that these 2 directories are at the same level). The program has two phases: training & testing. While training the program will make files that contain relevant information. There are 4 different files: positionsPitch, positionsPitchOrig, positionsYaw and positionsYawOrig. The test phase uses these files, so if you get unexpected bad results, check if you have the needed files. The directory "training" contains the training files for the previously mentioned data.

You can execute the program without arguments or with arguments. If you execute the following command.

./HeadPoseEstimation

The program will now start and do a cross validation.

If you execute the following command

./HeadPoseEstimation /home/user/image.png

The program will estimate the pose for the given image.

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.