Burst mode camera in Android which can take multiple pictures

后端 未结 2 1066
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 22:15

I was trying to implement a burst mode camera in my app, which can take multiple pictures at the rate of 5-10(or more) snaps per second.

FYI I already saw the previ

相关标签:
2条回答
  • 2021-01-04 22:28

    I think a big part of the problem is the question: How does burst mode work in current phones? A couple of blogs point out that Google has confirmed that they will be adding a burst mode API.

    I suspect current implementations work by setting exposure time to minimum and calling takePicture in a loop or using Camera.PreviewCallback

    I played around with the latter for some computer vision projects and happened to look into writing a burst mode camera using this API. You could store the buffers you receive from Camera.PreviewCallback in memory and process them on a background thread.

    If I remember correctly, the resolution was lower than the actual camera resolution, so this may not ideal.

    0 讨论(0)
  • 2021-01-04 22:44

    Short of device-specific APIs offered by their manufacturers, the only way you can get a "burst mode" that has a shot of working across devices will be to use the preview frames as the images. takePicture() has no guarantees of when you will be able to call takePicture() again.

    0 讨论(0)
提交回复
热议问题