简体   繁体   English

如何将相机意图流式传输到位图中

[英]How to Stream a Camera Intent into a bitmap

How would I stream my camera data into a bitmap? 如何将相机数据流式传输为位图? I want to stream it into a bitmap and then create a mutable bitmap and do some image processing on it. 我想将其流式传输为位图,然后创建一个可变的位图并对其进行一些图像处理。 I'm having two issues 1) my camera intent brings me to the Android image picker when I'd like to stay in my app and have the camera turn on in the background -- 2) I don't know how to access the camera data in real time to propagate a bitmaps ARGB values on the fly. 我遇到两个问题:1)我的相机意图将我带到Android图像选择器,当我想留在我的应用中并在后台打开相机时-2)我不知道如何访问实时摄影机数据,以动态传播位图ARGB值。

I know how to take a picture with a camera intent and use this picture to update a static bitmap - but I'm looking for something a little more dynamic with a constantly updating bitmap. 我知道如何用相机意图拍摄图片并使用该图片更新静态位图-但我正在寻找一种不断更新的位图来提高动态性。 For reference - I never need to save the image data. 供参考-我永远不需要保存图像数据。 I am must looking for a frame-by-frame update. 我必须寻找逐帧更新。 Any help would be greatly appreciated. 任何帮助将不胜感激。

How would I stream my camera data into a bitmap? 如何将相机数据流式传输为位图?

By using a Camera directly instead of invoking a third-party app. 通过直接使用Camera而不是调用第三方应用程序。

but I'm looking for something a little more dynamic with a constantly updating bitmap 但是我正在寻找一个不断更新的位图更动态的东西

The only way to do this is to process preview frames from a Camera object. 唯一的方法是处理Camera对象的预览帧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM