python3 implementation of the TUIO protocol
Project description
TUIO for Python3
TUIO protokoll implementation based on OSC protocol. It is implemented with the python-osc
libary.
TUIO spezification
http://www.tuio.org/?specification
OSC spezification
http://opensoundcontrol.org/spec-1_0 and https://python-osc.readthedocs.io/en/latest/
Notes
Currently only the Server(Tracker) is implemented. The Client will follow. GitHub
API example of C++
Installation
pip3 install python-tuio
Usage
Cursor example
from pythontuio import TuioClient
from pythontuio import Cursor
cursor = Cursor(123) # sets session_id to 123
cursor.velocity = (0.2,0.1)
cursor.motion_acceleration = 0.1
client.cursors.append(cursor)
i = 0
while i < 10:
i+=1
cursor.position = (0.5+0.01*i,0.5)
client.send_bundle()
time.sleep(0.1)
Contribution
Feel free to contribute inputs. Just start a MR with your changes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-tuio-0.0.5.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for python_tuio-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c58b23d393f0c88a533d1bafedcb41add988aa24884f8061dc84089e82c746 |
|
MD5 | 9779b20458f5d5c513377606c45b6b16 |
|
BLAKE2b-256 | 2c1233cc5c9165a6c03133ed8ee1eb57d59015780516f5ab26a15c383b9828bb |