突发模式相机在Android中,可采取多张图片多张、相机、模式、图片

2023-09-06 14:40:14 作者:殘缺的回憶

我是想实现一个突发模式的相机在我的应用程序,它可以以每秒5-10(或更多)卡的速度采取多张图片。

仅供参考,我已经看到了previous问题here, here和here - 尝试和失败与速度。同样的问题是旧的,有没有COM prehensive答案解决诸如如何管理堆中所有的顾虑等。

我真的AP preciate如果有人能帮助有用的线索,最好的做法或许是 SSCCE 。

更新:

  

与拉preVIEW帧@ 15 +卡扣/秒的成功尝试,但   问题是preVIEW大小是有限的。在Nexus 5我只能拿   1920×1080是200万像素的〜,而全分辨率PIC可能在   N5是8MP: - (

解决方案

由他们的制造商,你可以得到一个突发模式,有一个镜头的跨设备工作将是唯一的出路提供设备特定的API短使用preVIEW帧的图像。 takePicture()有没有保证的时候,你就可以调用 takePicture()了。

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 previous questions here, here and here - tried and failed with speed. Also the questions are old and there are no comprehensive answers addressing all the concerns like how to manage heap etc.

平板手机双模式 Android 3.0除夕将发

I would really appreciate if someone can help with useful pointers, best practice or maybe an SSCCE.

Update :

Tried successfully with pulling preview frames @ 15+snaps/sec, but the problem is preview size is limited. On nexus 5 I can get only 1920x1080 which is ~2mp, whereas the full resolution pic possible on n5 is 8mp :-(

解决方案

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.

 
精彩推荐