Skip to main content

qdollar is the Python Implementation of $Q Super-Quick Recognizer

Project description

qdollar

qdollar is a python implementation of the $Q Super-Quick Recognizer.

About

The $Q Super-Quick Recognizer is a 2-D gesture recognizer designed for rapid prototyping of gesture-based user interfaces, especially on low-power mobiles and wearables. It builds upon the $P Point-Cloud Recognizer but optimizes it to achieve a whopping 142× speedup, even while improving its accuracy slightly. $Q is currently the most performant recognizer in the $-family. Despite being incredibly fast, it is still fundamentally simple, easy to implement, and requires minimal lines of code. Like all members of the $-family, $Q is ideal for people wishing to add stroke-gesture recognition to their projects, now blazing fast even on low-capability devices.

Installation

To install qdollar using pip

pip install qdollar

Example

from qdollar.recognizer import Gesture,Recognizer, Point
t1 = [
    Point(0, 0, 1),
    Point(1, 1, 1),
    Point(0, 1, 2),
    Point(1, 0, 2)]
tmpl_1 = Gesture('X', t1)
tmpl_2 = Gesture('line', [
    Point(0, 0),
    Point(1, 0)])
templates = [ tmpl_1, tmpl_2]
gesture = Gesture('A',[Point( 31, 141, 1),Point(109, 222, 1),Point( 22, 219, 2),Point(113, 146, 2)])
res = Recognizer().classify(gesture, templates)
print(res[0].name)

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

qdollar-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qdollar-0.0.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file qdollar-0.0.2.tar.gz.

File metadata

  • Download URL: qdollar-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for qdollar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 23ddc3a742923c6d66fb538b15c6535c1a081122d47a09c27989dc4642f4d9d8
MD5 f52ded9d0cde01057555a6b359c0b418
BLAKE2b-256 3bc2f01548b8184c5a86503f76eab2c231a55d6eea624cf69f557c59c02d5266

See more details on using hashes here.

File details

Details for the file qdollar-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: qdollar-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for qdollar-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57a759965ca9a0330111ac90fad14d22a1d014b04063955ce852ac04e1e0b4cc
MD5 c61c19f6ff989f728d6c259b626115f4
BLAKE2b-256 13be1e23b04d4b771519d4f4a6a88a8b7c2f335fc20be16c6503d002792363bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page