qdollar是$q超级快速识别器的python实现

qdollar的Python项目详细描述


Qdollar

qdollar$Q Super-Quick Recognizer的python实现。

关于

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.

安装

使用pip安装qdollar

pip install qdollar

示例

fromqdollar.recognizerimportGesture,Recognizer,Pointt1=[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)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java调用看起来模棱两可,但在意外的输出下运行得很好   java Spring工具套件:导入Spring入门内容时出错   javasocket在不接受连接的情况下侦听?   java无法将camel服务部署到jboss Fuse   使用java将jdbc结果集设置为文本文件   编辑JTable时java向量类类型的更改   java使用递归和二叉树计算算术表达式   java如何基于用户输入运行一组代码   java Jetty ServletTester类打包在哪里?   从一定的旋转位置发射子弹   java谷歌Foobar数字站   java LibGDX textfield输入导致崩溃   在Android Java中,公共阵列列表的大小在两个地方显示不同   RESTJava。lang.NoClassDefFoundError:org/eclipse/jetty/server/Handler   java将颜色更改为<ice:commandLink>   ArrayList Java的ints输入列表   如何使用Gson将JSON映射转换为自定义Java列表?   java调用用@Cacheable(org.springframework.cache.annotation.Cacheable)注释的方法   java ServletContext getContextPath()