本文介绍了我可以用在三星Galaxy Tab(Android 2.2的)前置摄像头拍摄照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从前置摄像头拍照吗?

Can I take a picture from the front camera?

我的应用程序有库存输入表单。
如果用户发送的数据,结果
用户的脸部图片也被发送到服务器进行授权/认证。

My application has an input form for inventory.If an user sends a data,
the user's face pic is also sent to the server for authorization / validation.

我会把应用程序的三星Galaxy Tab(Android 2.2的)。

I will put the app on Samsung Galaxy Tab (Android 2.2).

有没有办法拍照从前置摄像头?

Is there any way to take a picture from the front camera?

推荐答案

2.2

    Camera cam = Camera.open();
    cam.setDisplayOrientation(90);
    cam.setPreviewDisplay(holder);

    Camera.Parameters para = cam.getParameters();
    para.set("camera-id", 2);
    cam.setParameters(p);

这篇关于我可以用在三星Galaxy Tab(Android 2.2的)前置摄像头拍摄照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-11 22:19