Skip to content

0mp/io-touchpad

Repository files navigation

io-touchpad

Build Status Code Health Code Issues codecov

Application

Installation

apt-get update
apt-get install build-essential libatlas-dev libatlas3gf-base
apt-get install python3-dev python3-setuptools python3-numpy python3-scipy python3-pip
pip3 install scikit-learn
make

Quick start

  1. Go to the app directory.

     cd app
    
  2. Undertake a learning session with a trainig size of 5 for a symbol named your-secret-symbol which will create a yss.txt file in the /tmp directory.:

     sudo ./app.py add 5 your-secret-symbol touch /tmp/yss.txt
    
  3. Use the app. (Hopefully, it will recognise your symbol.)

     sudo ./app run user
    

Run ./app --help if you want to learn other features of this app.

Tests

Installation

apt-get update
apt-get install python3-pytest

Usage

cd app/test
py.test-3

Tools

matrixanalyser.py

Installation

apt-get install python3-matplotlib
cd app/tools
make

Usage

cd app
sudo ./tools/matrixanalyser.py [--help] [--tolerance TOLERANCE] [--show]

More information on the usage is avaialabe if you run ./tools/matrixanalyser.py --help.

All generated figures of the drawn symbols are stored inside the app/tools/data/matrixanalyser/figures directory.