如何在C ++中使用Opencv检测表面上的触摸? [英] How Do I Detect Touch On A Surface Using Opencv In C++?

查看:127
本文介绍了如何在C ++中使用Opencv检测表面上的触摸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个虚拟纸质键盘,可用作普通键盘在屏幕上键入。现在,我被卡住的部分是如何检测我的手指触摸纸的尖端?我在线查看但无法找到任何信息。任何人都可以建议我一些想法或任何可以帮助我解决这个问题的文章吗?

解决方案

如果您在Windows上工作,您应该阅读快速启动:触摸输入并追踪所有链接。



对于Apple,您应该深入了解手势识别器。通过故事板对象和事件处理程序最简单地完成。在理解之前你会做好准备。 ; - )

I have created a virtual paper keyboard which can be used as a normal keyboard to type on screen. Now, the part that i am stuck is how do i detect the tip of my finger touch with the paper? I looked online but wasn't able to find any information. Can anyone suggest me some ideas or any article that can help me to resolve this issue?

解决方案

if your working on Windows you should read Quickstart: Touch input and chase all the links.

For Apple you should dive into gesture recognizers. Easiest done via storyboard objects and event handlers. You'll get ready before understanding it. ;-)


这篇关于如何在C ++中使用Opencv检测表面上的触摸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆