Tactigon Gear to connect to Tactigon Skin wereable platform
Project description
Tactigon Gear
This package enables the wearable device Tactigon Skin to connect to your python project using Bluetooth Low Energy.
Architecture
Tactigon Gear environment has the following architecture:
Server is located on the cloud and it is manteined by Next Industries s.r.l. Server has a web interface where you can handle your profile and your data (models and gestures)
Provided Tactigon Gear SDK is the implementation of Tactigon Gear environment client side
Tactigon Gear SDK is used for collecting new raw data, send the data to server, ask server to train a model using the raw data, and download the model from server. Finally use the model for testing real-time gesture recognition.
Prerequisites
In order to use the Tactigon Gear SDK the following prerequisites needs to be observed:
- Python version: following versions has been used and tested. It is STRONGLY recommended to use these ones depending on platform.
- Win10: 3.8.7
- Linux: 3.8.5
- Mac osx: 3.8.10
- Raspberry: 3.7.3
Installing
Install and update using pip:
pip install tactigon-gear
A Simple Example
import time
from tactigon_gear import TSkin, TSkinConfig, Hand, OneFingerGesture
def main():
TSKIN_MAC = "change-me"
tskin_cfg = TSkinConfig(TSKIN_MAC, Hand.RIGHT) # Hand.LEFT if the TSkin is wear on left hand.
tskin = TSkin(tskin_cfg)
tskin.start()
i = 0
while True:
if not tskin.connected:
print("Connecting..")
time.sleep(0.5)
continue
if i > 5:
break
a = tskin.angle
t = tskin.touch
acc = tskin.acceleration
gyro = tskin.gyro
print(a, t, acc, gyro)
if t and t.one_finger == OneFingerGesture.TAP_AND_HOLD:
i += 1
else:
i = 0
time.sleep(0.02)
tskin.terminate()
if __name__ == "__main__":
main()
Licensing
In order to perform new training and download them you need to register on following web side:
https://www.thetactigon.com/ai/web/
Once registration is done you can go to Profile section and click on Json File
button to download file user_data.json
The use of this file is described later in this doc.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tactigon_gear-5.0.4.tar.gz
.
File metadata
- Download URL: tactigon_gear-5.0.4.tar.gz
- Upload date:
- Size: 374.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de235d2259738136d84e081ff10fa49ad2f51307dc2c5c51360ffb60cdaf113c |
|
MD5 | edd5a2beac7b5b3a11d66d8f4dcfba1c |
|
BLAKE2b-256 | 176dbfd64e4acbb2a13b9f462ae14bbf08c14908ae777d4b05f4a199228e81d6 |