从Android设备拍摄多张照片 [英] Taking Multiple Photos from Android device

查看:167
本文介绍了从Android设备拍摄多张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,该应用程序一旦启动便会从android设备拍摄多张照片并将其存储到存储卡中.有没有一种方法可以加快此过程,因为每张照片之间的等待时间非常长.平均每秒拍摄1.6张照片.以最低的分辨率,每秒少于1张照片.最高分辨率.设备的相机为8 MP. 我的问题是我可以增加每秒拍摄的照片数量吗? 我可以使我的应用像DSLR一样可以快速拍摄吗? 我也检查过,用于写入文件系统的I/O操作对延迟没有任何影响.我认为这是所有硬件.

I am working on an app that takes multiple photos from android device once launched and stores it into the memory card. Is there a way to speed up the process, because latency between each photo taken is very large. On an average 1.6 photos are taken per sec. in the lowest resolution and less than 1 photo per sec. in highest resolution. The device's camera is 8 MP. My question is can I increase the number of pictures taken per sec.? Can I make my app work somewhat like DSLR which can shoot very quickly? Also I checked, I/O operations for writing to File System is not having any effect in the latency. I think its all the hardware.

我还使用了类似以下的各种模式:-

I also used various modes like these :-

 params.setSceneMode(Camera.Parameters.SCENE_MODE_SPORTS);
//params.setSceneMode(Camera.Parameters.SCENE_MODE_ACTION);
//params.setSceneMode(Camera.Parameters.SCENE_MODE_AUTO);
//params.setSceneMode(Camera.Parameters.SCENE_MODE_FIREWORKS);
//params.setSceneMode(Camera.Parameters.SCENE_MODE_STEADYPHOTO);

对此表示感谢.干杯!

推荐答案

拍照时,相机必须关闭快门以准备传感器,打开快门以曝光图片,然后再次关闭,然后复制将图像从传感器传到内存中.在不损失图像质量的情况下不可能跳过这些步骤.

When you take a picture, the camera has to close the shutter to prepare the sensor, open the shutter to expose the picture, close it again, and copy the image off the sensor into memory. It is not possible to skip these steps without losing image quality.

数码单反相机具有更高的fps的原因是,它们为传感器设计了高速快门和更快的总线速度.不幸的是,软件无法弥补这些品质.

The reason DSLRs have a much higher fps is that they are designed with high speed shutters and faster bus speeds for their sensors. Unfortunately, there is no way to make up for these qualities in software.

从设备中获取更快图像的一种方法是拍摄视频(或捕获图像预览).单个帧的质量将低于图片,但是每秒将有更多的帧.

One way you can get faster images from your device is to shoot a video (or capture the image preview). The individual frame quality will be lower than a picture, but you will have many more frames per second.

这篇关于从Android设备拍摄多张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆