将用户绘制的路径与图像匹配
有谁知道任何教程或示例代码可以帮助我在 iPhone 应用程序中实现以下目标(除了官方 Apple 开发人员视频)。
- 用户在屏幕上绘制一条路径
- 该路径与现有路径进行比较,看看它是否匹配
- 匹配不仅取决于形状,还取决于在正确的点开始和结束
本质上是用手指追踪路径。目前绘图部分还不错(虽然如果你快速移动手指的话会很锯齿,不过不要太在意)。最重要的是你所画的部分与其他部分相匹配。
Does anyone know of any tutorials or sample code that could help me achieve the following in an iPhone app (other than the offical Apple developer videos).
- A user draws a path on screen
- The path is compared to an already existing path to see if it matches
- A match is determined not just by shape but also by starting and ending at the correct point
Essentially tracing a path with your finger. The drawing part isn't too bad at the moment (though pretty jagged if you move your finger fast, not too bothered about that though). The main thing is the matching what you've drawn to something else part.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个:
http://depts.washington.edu/aimgroup/proj/dollar /
论文描述方法在这里:
http://faculty.washington .edu/wobbrock/pubs/uist-07.1.pdf
Take a look at this:
http://depts.washington.edu/aimgroup/proj/dollar/
Paper describing method is here:
http://faculty.washington.edu/wobbrock/pubs/uist-07.1.pdf