3

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,

jlanagan
  • 41
  • 1
  • 3
  • You can find a answer for your problem [here][1]. [1]: http://stackoverflow.com/questions/5065334/stream-video-to-web-in-android – Chrishan Sep 17 '11 at 17:25

2 Answers2

2

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.

Roman Nurik
  • 29,665
  • 7
  • 84
  • 82
  • Roman, Thanks very much for the reply. I will look into this but the return of a byte[] seems to be exactly what I was looking for. – jlanagan Mar 03 '10 at 14:17
0

I am studying the problem. Personally I think it is better to use video streams from Android MediaRecorder, rather than from previewPicture, because the latter is just some samples, with lower frame rate.

user1914692
  • 3,033
  • 5
  • 36
  • 61