Git Product home page Git Product logo

gameface's Introduction

GameFace

Report

Project Overview

Create a controller that uses facial tracking in use for different video games.

The controller will be made to interact with DosBox in order to play retro games such as pacman, mortal kombat etc.

Requirements

  • Windows
  • C++ Boost Library version 1.6.2 or later
    • Available here
    • Or at www.boost.org
  • CMake version 2.8.4 or later
    • Available here
    • Or at www.cmake.org
  • C++ Dlib version 19.2 or later
    • Available here
    • Or at www.dlib.net
  • A C++11 compiler (Visual Studio is recommended)
    • Available here
    • Or at www.visualstudio.com/free-developer-offers
  • OpenCV
    • Available here
    • Or at www.opencv.org

Installation

  1. Install CMake.
  2. Download the OpenCV self-extracting archive and place it in a location you can access.
  3. Run the CMake GUI and build the OpenCV library.
  4. Select the source code of OpenCV, which is in the OpenCV/sources/ folder.
  5. Build the binaries in the OpenCV/build folder
  6. Press 'Configure', and wait for it to complete
  7. Press 'Generate' to finish the installation
  8. Once OpenCV is built, download the provided dlib folder
  9. Build the folder using CMake
  10. For the source code, select the dlib/Face folder
  11. Build the binaries in that folder
  12. Press 'Configure' and wait for completion
    If you get an error saying that OpenCV is not found, find the OpenCV_DIR variable and change the path to point to your OpenCV build folder
  13. Generate the code
  14. Once the code is generated, press 'Open Project'
  15. Run the Visual Studio project file from the \verb|dlib/build| folder and build the project inside Visual Studio
  • Change mode to 'Release' using the build menu

Use

To use GameFace, simply double-click the webcam_face_pose_ex.exe file and you're good to go! Currently the controls are as follow:

  • Head up: w
  • Head down: s
  • Look left: a
  • Look right: d
  • Roll left: left-click (mouse 0)
  • Roll right: right-click (mouse 1)

Demo Video

Notes: Facial Recgnization Speedup Testing Result

Original Speed(fps) using dlib is usually between 5~8, now it is increse to more than 20 when playing video.

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.