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是否在servlet中检索上一页路径?   Java抱怨在开关的默认情况下未初始化最终字段   Java泛型:为什么编译器不能判断这个类<t>对象与这个类的类型参数的对象的类具有相同的类型?   Java:继承方法中使用的私有变量   HibernateJava。ClassCastException:java。lang.Integer不能强制转换为abc。def。我的项目。奥姆。EmployeeTopMetaData   http java发布和下载文件   java改进条件检查   java如何将2d数组的条目作为键放在地图中   java如何获取传递给运行时的值。getRuntime。JUnit测试用例中的exit(value)   java注释来创建所有可能的构造函数   自动建议列表:java。lang.IllegalArgumentException:在XPath表达式为null时找不到元素   为什么MapAPI在Java中不提供流功能?   gradle不导入本地java库   尽管我使用的是SessionCreationPolicy,java Spring安全性似乎仍在使用会话。无国籍   使用java查找MongoDB中数组元素的平均值