摄像机2 API - 机器人机器人、摄像机、API

2023-09-04 03:06:06 作者:后退的风景

我想使用的摄像机2所提供的Andr​​oid新相机API。但

I am trying to use new camera api provided by android as camera2. But

CameraManager manager = (CameraManager) getActivity().getSystemService(Context.CAMERA_SERVICE);

示值误差。没有任何一个有过这个API。

showing error. Does any one have worked on this api.

一直在寻找结果找不到任何的事情呢。

Have been searching for results for could not find any thing yet.

推荐答案

Binod,

这只会工作,如果你的平台支持的API级别21 - 这是一个来了大号的Andr​​oid发布后

That will only works if your platform support API level 21 - that is the one come after Android L release.

有关如何相机2 API的工作,你可能想的看看这篇文章

For a detailed explanation of how camera 2 API works, you may want to take a look at this article

 
精彩推荐