如何从前置摄像头android的icapture图像 [英] How do icapture image from front camera android

查看:63
本文介绍了如何从前置摄像头android的icapture图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在登录按钮点击后从后端的摄像头捕捉图片。然后在下一个屏幕上显示图像。



我尝试过:



请建议一些代码和逻辑。

解决方案

要找到前置摄像头,你必须遍历所有摄像头,找到前面的摄像头的ID,并使用它:

Android前置摄像头API - 堆栈溢出 [ ^ ]

I want to know How Do I capture pic from frond camera in backend on login button click.And then display the image on the next screen.

What I have tried:

Please suggest some codes and logics.

解决方案

To find the front camera, you have to iterate over all cameras, find the ID of the one on the front, and use that:
Android Front Camera API - Stack Overflow[^]


这篇关于如何从前置摄像头android的icapture图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆