Android的视频流捕获AR [英] Android video stream capture for AR
问题描述
我希望能够捕捉到从Android手机摄像头的视频,然后再处理该视频。处理涉及增加了一层AR的实时流。这是可能在Android? pretty的肯定是应该的。
I would like to be able to capture the video from an android phone camera, and then process this video. Processing involves adding a layer of AR to the live stream. Is this possible on android? Pretty sure it should be.
我已经看过了Android网站[http://developer.android.com/guide/topics/media/index.html]但这似乎与视频捕获和储存的关注。我希望能够与视频pre-存储到播放。
I have looked at the android site [http://developer.android.com/guide/topics/media/index.html] but this seems to be concerned with video capture and storage. I would like to be able to play with the video pre-storage.
谢谢
推荐答案
根据您要及时真实数据如何得到,你有可能使用的 Camera.set previewCallback
,提供的 相机。previewCallback#在previewFrame
监听preVIEW帧从相机的到来。
Depending on how real-time you want the data to be, you can potentially use Camera.setPreviewCallback
with Camera.PreviewCallback#onPreviewFrame
to listen for preview frames coming from the camera.
使用情况的一个例子可以在<一个被发现href="http://$c$c.google.com/p/zxing/source/browse/trunk#trunk/android/src/com/google/zxing/client/android"相对=nofollow> ZXing源$ C $ C (又名吧code扫描仪)来源$ C $ C。
An example on usage can be found in the ZXing source code (a.k.a. Barcode Scanner) source code.
这篇关于Android的视频流捕获AR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!