Android摄像头takePicture()方法执行时间 [英] Android camera takePicture() method execution time

查看:2090
本文介绍了Android摄像头takePicture()方法执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新开发的Andr​​oid应用程序。

目前,我们正在创建使用的是Android访问摄像机进行图像处理的机器人。

我的问题是:多长时间可以把takePicture()的相机类的方法将完成从它拍摄照片,以它存储的图像数据时的时间执行?它是恒定的,或者你需要指定它?

我想如果你提供答案的链接接入点preciate它。谢谢你。

解决方案
  

它有多长takePicture()的相机类的方法将完成从时间执行拍摄一张照片,以它存储的图像数据的时间?

这取决于手机本身上。你应该做的是保存图像中的的AsyncTask ,这样你就不必依赖在UI线程上。

I'm new to developing apps in Android.

We are currently creating a robot using Android that accesses the camera for image processing.

My question is: How long will the takePicture() method in Camera class will finish executing from the time it take a picture to the time it stores the image data? Is it constant or you need to specify it?

I would appreciate it if you provide links with your answers. Thank you.

解决方案

How long will the takePicture() method in Camera class will finish executing from the time it take a picture to the time it stores the image data?

It depends on the phone itself. What you should do is to save the image in an AsyncTask so you don't have to rely on the UI thread.

这篇关于Android摄像头takePicture()方法执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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