将用户绘制的路径与图像匹配

发布于 2024-09-12 07:19:14 字数 241 浏览 5 评论 0原文

有谁知道任何教程或示例代码可以帮助我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文