机器人的局限性 [英] Limitations of android

查看:324
本文介绍了机器人的局限性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要建立一个应用程序,需要一个摄像机图像,并上传到网上,其中一些处理是必须要做的,返回真/假。我遇到这方面上澄清将是很好的AP preciated一些问题。

I need to build an app that takes a camera image and uploads it to the web where some processing is to be done and a true/false is returned. I encounter some questions in this respect on which a clarification would be well appreciated.

1)。有什么办法我的应用程序可以知道图像通过Android相机被抓获?
我从这里了解(<一个href=\"http://stackoverflow.com/questions/4389427/android-broadcastreceiver-intent-to-detect-camera-photo-taken\">Android:广播接收器意图检测摄像机摄?)是,我们可以知道,每当画面已被添加到手机,通过蓝牙或通过摄像头采集或以其他方式吧。
无论如何,这只是罚款。 现在的问题是不会需要我的应用程序在后台运行,以检测在媒体商店改变?如果是这样的话,我可以让我的应用程序打开相机,然后捕获图像这将是更有效的功率进行

1.) Is there any way my app can know image being captured by the android camera? What I understood from here (Android: BroadcastReceiver intent to Detect Camera Photo Taken?) is that we can know whenever a picture has been added to the phone,be it via Bluetooth or through a camera capture or otherwise. Any way that is just fine. The question is doesn't that need my app to run in the background so as to detect change in media store? If that is the case I can make my app to open the camera and then capture the image which will be more efficient in terms of power.

2)的是否有任何限制图像的大小,可以从Android手机被发送到Web?考虑到Android手机的RAM较少等。(我问这个b'coz我遇到了另一个应用程序类似的问题,我需要做的事情一样增加亮度,对比度etc..The应用程序崩溃时,图像大小超过10MB了较大)。

2.) Is there any limitation to the size of the image that can be send from an android phone to the web? Considering that the RAM of the android phones is less etc.(I am asking this b'coz I encountered a similar issue in another app where I needed to do things like increasing the brightness,contrast etc..The app crashed when the image size was greater than 10MB).

我不希望推倒重来,浪费我的时间:)

"I don't want to reinvent the wheel and waste my time" :)

推荐答案

要尝试回答你的问题;

To try and answer your questions;

1)注册一个BroadcastReceiver并没有真正转化为有您的应用程序在后台运行24/7。这有点像你的系统,该系统将启动,并在需要时通知其注册您的应用程序。你不必害怕使用备用电池通过使这些接收器,只要为你不这样做的很正规的广播电池密集的东西。

1) Registering a BroadcastReceiver doesn't really translate into having your app running in the background 24/7. It's rather like you register your app in the system, which will boot and notify it when needed. You don't have to be afraid of using up battery by having these Receivers, as long as you don't do battery-intensive things on very regular broadcasts.

2)是不是真的有任何限制,但它应该是有意义的你,送100MB,可能在别人的3G连接,不会让任何人满意。
如果尝试发送10MB的你previous应用程序崩溃,你可能没有像使它成为一个base64字符串错误的方法。我不知道到你要上传什么样的服务器,但你要找到缓冲图像到小块服务器的一些code样品。
也请记住,在手机上,你永远无法确定一个稳定的连接。

2) There is not really any limit, although it should make sense to you that sending 100mb, possibly over someone's 3G connection, wouldn't make anyone happy. If a previous app of you crashed while trying to send 10MB, you probably did it the wrong way like making it a base64 string. I'm not sure to what kind of server you're going to upload it, but you want to find some code sample that buffers the image up to the server in small chunks. Also keep in mind that on a phone, you can never be sure of a stable connection.

这篇关于机器人的局限性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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