简体   繁体   English

图像处理算法在Android智能手机上的性能

[英]Performance of image processing algorithms over android smartphones

I am looking forward to start a project that will use OCR , Object tracking and other Image processing algorithms on Android and I want to accelerate these algorithms using external hardware accelerators on FPGA using the Open Accessory API. 我期待着开始一个在Android上使用OCR,对象跟踪和其他图像处理算法的项目,并且我希望使用Open Accessory API在FPGA上使用外部硬件加速器来加速这些算法。

Do Image processing apps perform bad and needs custom hardware for acceleration ? 图像处理应用程序性能不好并且需要自定义硬件进行加速吗? Is there a resource to know about performance of image processing algorithms on smart phones and embedded systems without writing one ? 是否有资源可以在不编写智能手机和嵌入式系统的情况下了解图像处理算法的性能?

It's only viable to do optimization after you have done measurements for your particular case. 只有针对特定案例进行了测量之后,才能进行优化。

If you need HW acceleration you might want to check out renderscript . 如果需要硬件加速,则可能需要检出renderscript It gives you access to GPU hardware to perform generic computations. 它使您可以访问GPU硬件以执行通用计算。

JavaCV offers a number of image processing algorithms. JavaCV提供了许多图像处理算法。 It is basically a Java wrapper for OpenCV. 基本上,它是OpenCV的Java包装器。 I found this post regarding OpenCV and OCR: https://stackoverflow.com/questions/1284214/simple-ocr-programming-tutorials-articles . 我发现了有关OpenCV和OCR的帖子: https : //stackoverflow.com/questions/1284214/simple-ocr-programming-tutorials-articles Performance really depends on the size of the image and processor on the device. 性能实际上取决于设备上图像和处理器的大小。 Not sure about using a FPGA. 不确定使用FPGA。 Have you considered using the "cloud" to offload processing? 您是否考虑过使用“云”卸载处理?

You can use OpenCV for image processing in Android. 您可以使用OpenCV在Android中进行图像处理。 The best tutorial I can find is OpenCV setup on Eclipse . 我能找到的最好的教程是在Eclipse上进行OpenCV设置 However if you do image processing in Java the results will be slow, so use second part of the tutorial to program in C then using JNI make the code run for android. 但是,如果您使用Java进行图像处理,结果将会很慢,因此请使用本教程的第二部分使用C进行编程,然后使用JNI使代码在android上运行。 But still a lot of image re sizing and defining region of interest is needed to make the program run in real time if you do object recognition. 但是,如果您进行对象识别,则仍需要大量图像调整大小并定义感兴趣的区域,以使程序实时运行。

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

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