带加速度计的相机编辑应用程序。可能的?
我正在创建一个应用程序,允许用户在拍摄照片后在照片上绘图。
我想知道是否可以使用加速度计来代替我们的手指进行绘图部分。
这意味着我选择了要绘制的图片的某个部分,然后我使用整个手机作为“笔”在图像上绘制,而不是使用手指(使用加速度计)。
我可以知道这是否可行吗?如果是这样怎么办?
谢谢一百万!
问候,
优雅
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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅适用于非常短的快速线路。任何笔画或笔的位置都必须是加速度的二重积分,这会如此快地放大系统噪音和错误校准,以至于任何更长的位置都将完全不准确,就像在页面上一样。
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.
一旦捕获了加速度计数据,您就可以将委托方法与您想要的代码一起使用。但想想人机界面。
Once you catch the accelerometer data, you can use the delegate methods with the code you want. But think about human interface.