添加在android中打开相机预览的效果
有没有在android
中制作脸部展位应用程序的教程, 或者如何在打开的相机预览中添加效果,任何人都可以让我在右边 方向 。
提前致谢
is there a tutorial to make a face booth application in android
,
or how to add an effect to the opening camera preview, can any one put me on the right
direction .
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取决于你想要达到什么效果。您可以在显示相机预览图像的表面视图上放置一个覆盖层,并且此 oevrlay 可以包含带有 Alpha 通道的图像。特定相机实现可能有一些奇怪的参数,但这不可移植,并且不适用于其他供应商
Depends on what effect you like to have. You can put an overlay over surface view displaying camera preview images, and this oevrlay can contain images with alpha channel. There could be some weird parameters for specific camera immplementations, but this is not portable and will not work for other vendors
http://developer.android.com/reference/android/hardware/Camera .PreviewCallback.html
http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html