摄像机2 API - 机器人 [英] Camera2 API - Android

查看:218
本文介绍了摄像机2 API - 机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的摄像机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

这篇关于摄像机2 API - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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