Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android video stream capture for AR

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.

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.

Thanks,

like image 551
jlanagan Avatar asked Dec 20 '25 00:12

jlanagan


1 Answers

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.

An example on usage can be found in the ZXing source code (a.k.a. Barcode Scanner) source code.

like image 129
Roman Nurik Avatar answered Dec 22 '25 16:12

Roman Nurik