tools
ML Library·Python·MIT

PyTouch

A machine-learning library for touch sensing.

Overview

PyTouch provides ready-made models and abstractions for common tactile tasks, touch detection, slip detection, and contact-area estimation, with a unified API across sensors so you can prototype perception without rebuilding the stack.

Install
pippip install pytouch
Example · Detect touch from a sensor frame
example.py
from pytouch.handlers import ImageHandler
from pytouch.sensors import DigitSensor
from pytouch.tasks import TouchDetect

touch = TouchDetect(DigitSensor, zoo_model="touchdetect_resnet")
is_touching, certainty = touch(frame)