捕捉图像的前置摄像头而不机器人打开摄像头应用程序 [英] Capture image with front camera without opening the camera application in android

查看:142
本文介绍了捕捉图像的前置摄像头而不机器人打开摄像头应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想捕捉和放大器;保存图像和放大器;让使用Android手机的前置摄像头的图像的URL,而无需打开摄像头应用程序。 谁能帮我这个?

I want to capture & save an image & get the url of the image using the front camera of the android phone without opening the camera application. Can anyone help me with this?

推荐答案

只要按照步骤在这里: 如何拍照

Just follow the steps here: How to take photos

您想要的前置摄像头,所以要选择摄像机,你应该叫

You want the front camera, so to choose the camera you should call

myCamera.open(cameraNumber)

和cameraNumber是您要使用的摄像机的编号。如果你有两个摄像头,你可以0或1。把它称为尝试两个参数来看看哪些相机各项参数激活。

and cameraNumber is the number of the camera that you want to use. if you have two cameras, you can call it with 0 or 1. try both parameters to see which camera each parameter activates.

这篇关于捕捉图像的前置摄像头而不机器人打开摄像头应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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