Skip to content

About

TMF8829 Simple Gesture Demo App

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

Gesture demo application

Implementation of a simple gesture detection application, which can operate together with TMF8829_EVM_DB_DEMO or TMF8829_EVM_EB_SHIELD.

Demo video

Setup

Gesture vocabulary

4 detections

  • Swipe left
  • Swipe right
  • Palm move near
  • Palm move far

Due to limited vocabulary and close range use 8x8 mode only.

For an implementation adding Swipe Up / Swipe Down, please see https://github.com/ams-OSRAM/tmf8829_app_gesture/tree/add_up_down_gestures

Requirements

Virtual environment

Recommendation is to set-up a virtual environment. Open your favourite Windows PowerShell, VisualStudio Code etc. To install a virtual environment named env, and use it:
python -m venv env ./env/Scripts/Activate.ps1

Install libraries

Python version 3.10.11 or higher is required.

To run the scripts in this folder you need to install the packages in the requirements.txt file with:

pip install -r requirements.txt

All required python packages are inside the subdirectory packages.

Usage

See folder tmf8829/zeromq/ - this is the location of tmf8829_gesture.py, where the gesture logic is defined, but execute gesture demo with tmf8829_zeromq_client.py.

If you are using TMF8829_EVM_EB_SHIELD, start tmf8829_zeromq_server.py first; this can be done with the pre-compiled server file from TMF8829_Driver_ZMQ_Server_Client_EXE_<latest version>.zip or inside a separate shell

python tmf8829/zeromq/tmf8829_zeromq_server.py

If you are using TMF8829_EVM_DB_DEMO, no additional server needs to be started.

Start the application itself:

python tmf8829/zeromq/tmf8829_zeromq_client.py

Notes:

Configuration

Update file cfg_client.json:

  • Parameter period [in ms] to modify speed of detection.
  • Parameter iterations [in k iterations] is used to change performance of detection; for short range (like 10cm-20cm) 10 or 100 is ok.

Info

This is a fork of tmf8829_driver_python modifying files to create an application, which can run together with TMF8829_EVM_DB_DEMO or TMF8829_EVM_EB_SHIELD.

About

TMF8829 Simple Gesture Demo App

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages