Skip to content

a4rcvv/hginput

Repository files navigation

HGInput: Hand Gesture Input

Install Dependencies

poetry install

Run the app

python entry.py [COMMAND] [OPTIONS]

You can show help messages by python entry.py --help.

Directory Structure

command

The entry points of commands.

model

Training data and trained model

util

Utility functions.

entry.py

The entry point of this system.

Model Structure

Raw Data Structure

Raw data is a parquet file, which is compressed by zstandard.

Each file has these 65 columns (There are 21 hand landmarks(0th~20th), so 21*3 + 2 = 65).

  • label: the gesture name of this sample.
  • hand: "Left" or "Right".
    • we record this column as MediaPipe says(somehow MediaPipe recognizes a left hand as a right hand, and vice versa).
  • x_{n}: the x axis value of {n}th landmark. presented in world coordinates.
  • y_{n}: the y axis value of {n}th landmark. presented in world coordinates.
  • z_{n}: the z axis value of {n}th landmark. presented in world coordinates.

Dataset Structure

  • label: integer-encoded gesture name.
  • hand: 0 if "Left", 1 if "Right".
  • x_{n}, y_{n}, z_{n}: as same as raw data.

Check

You can check the contents of the file by using parquet-cli

Config files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published