Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.59 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.59 KB

Hands-free 2048

The purpose of the project is to develop a mobile app that enables hands-free interaction.
Hands-free 2048 combines two hands-free interactions, sensor-based interaction and gaze-based interaction with game 2048.
People can play 2048 by tilting their phone and eye-tracking. For example, tilt the phone to the left to move the numbered tiles to left.
Move the numbered tiles to the right by looking to the right.

Requires

The eye-tracking mode depends on two open source libraries:

Workflow

The application includes two hands-free interaction - tilt mode and eye-tracking mode.

  • Tilt mode

The tilt mode derives data from the accelerometer and magnetometer, computes the orientation angles of the phone in XYZ axes
When the rotation angle of the mobile phone in a certain axis reaches the set threshold, the corresponding operation is triggered.

  • Eye-tracking mode

The eye tracking mode uses haar cascade classifier in OpenCV to detect human face, uses Dlib to align landmarks and extract eye images.
Camera captures real-time eye pictures, compare it with templates to judge which direction the user is looking

Usage

  1. First clone the repository.
  2. Before importing the project into Android Studio, you need to:
    • Open the app/src/main/cpp/CMakeLists.txt
    • Then, replace with your path the variable "OpenCV-android-sdk"
  3. Now the project is ready to be run on your Android Studio.