简体   繁体   English

Google Glass上的计算密集型任务

[英]Computationally Intensive Task on Google Glass

What is the best way of going about running a computationally intensive task on Google Glass. 在Google Glass上运行计算密集型任务的最佳方法是什么。 The specific task I have in mind involves OpenCV and a lot of image processing. 我想到的特定任务涉及OpenCV和大量图像处理。 I single image is provided as input, and OpenCV analyzes the image. 提供单个图像作为输入,然后OpenCV分析该图像。 A desktop takes a couple seconds to complete this task, while Glass takes upwards of a couple minutes. 台式机需要花费几秒钟来完成此任务,而Glass则需要花费几分钟以上。 What would be the best way to defer this processing to either a phone or computer? 将此处理推迟到电话或计算机的最佳方法是什么? My code is in Java. 我的代码是用Java编写的。

The way I see it there are two possibilities: 我认为它有两种可能性:

  1. Defer the computationally intensive task to a phone or computer by sending the input image via Bluetooth. 通过蓝牙发送输入图像,将计算量大的任务推迟到手机或计算机上。

  2. Defer the computationally intensive task to a phone or computer by sending the input image through the cloud. 通过将输入图像通过云发送,将计算密集型任务推迟到手机或计算机。

What would be the best solution for this particular problem? 解决此特定问题的最佳解决方案是什么? If I were to use the cloud approach, what cloud services would be the best to use will Google Glass? 如果我要使用云计算方法,那么谷歌眼镜将最适合使用哪种云服务?

Push the data via Mirror API upload methods as described here in order not to deal with transfer problems. 如上所述通过镜子API上传方法推动数据在这里 ,为了不解决传输问题。 Write an app server to run your algorithms and run it on Google App Server or your own server. 编写应用服务器以运行您的算法,然后在Google App Server或您自己的服务器上运行它。 Return results to Mirror API and make it return it as callback value to Google Glass. 将结果返回到Mirror API,并使其作为回调值返回给Google Glass。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM