带加速度计的相机编辑应用程序。可能的?

发布于 2024-12-11 11:45:51 字数 204 浏览 0 评论 0原文

我正在创建一个应用程序,允许用户在拍摄照片后在照片上绘图。

我想知道是否可以使用加速度计来代替我们的手指进行绘图部分。
这意味着我选择了要绘制的图片的某个部分,然后我使用整个手机作为“笔”在图像上绘制,而不是使用手指(使用加速度计)。

我可以知道这是否可行吗?如果是这样怎么办?
谢谢一百万!

问候,
优雅

I am creating an application which allows the user to draw on their photo after they have taken one.

I want to know whether it is possible to make use of the accelerometer for the drawing part instead of our finger.
That means i selected a certain part of the picture where I want to draw on, then I use my whole phone as a "pen" to draw on the image instead of using my finger (using accelerometer).

May I know whether this is do-able? If so how?
Thanks a million!

Regards,
Grace

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

唱一曲作罢 2024-12-18 11:45:51

仅适用于非常短的快速线路。任何笔画或笔的位置都必须是加速度的二重积分,这会如此快地放大系统噪音和错误校准,以至于任何更长的位置都将完全不准确,就像在页面上一样。

Only for very short quick lines. Any stroke or pen location would have to be the double integral of acceleration, which amplifies system noise and miscalibration so quickly that anything longer would be completely inaccurate, like right off the page.

一花一树开 2024-12-18 11:45:51

一旦捕获了加速度计数据,您就可以将委托方法与您想要的代码一起使用。但想想人机界面。

Once you catch the accelerometer data, you can use the delegate methods with the code you want. But think about human interface.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文