Burst mode camera in Android which can take multiple pictures

后端 未结 2 1072
爱一瞬间的悲伤
爱一瞬间的悲伤 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.

提交回复
热议问题