从流Android相机获取的RGB数据 [英] Get RGB data from the android camera in stream
问题描述
我有一个问题。从相机如何获得在流RGB数据?或者从相机YUV数据和转换为RGB? THA
I have a question. How can getting RGB data in stream from camera? Or YUV data from camera and that translate to RGB? tha
推荐答案
请参阅http://developer.android.com/reference/android/hardware/Camera.html关于如何设置相机的信息,那么请参见充分利用视频图像帧Android的脱code中的YUV数据。
See http://developer.android.com/reference/android/hardware/Camera.html for information on how to set up the camera, then see Getting frames from Video Image in Android to decode the YUV data.
在这最后一个线程有一些code,不断地从相机中读取数据,我将粘贴<一个链接href=\"http://$c$c.google.com/p/globetrotter/source/browse/trunk/src/com/ece194/globetrotter/CameraActivity.java\">here.
In that last thread there is a link to some code that reads data from the camera continuously, which I will paste here.
这篇关于从流Android相机获取的RGB数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!