Android API人脸检测与OpenCV/JavaCV人脸检测 [英] Android API face detection vs. OpenCV/JavaCV face detection

查看:143
本文介绍了Android API人脸检测与OpenCV/JavaCV人脸检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Android设备上使用了本地Android人脸检测功能,但它的运行速度似乎很慢,而且不确定其可靠性.我还使用了OpenCV的人脸检测功能,但仅在PC上使用,而不是在Android设备上使用.对于Android,我猜我将不得不使用JavaCV(或OpenCV4Android?).

I've used local Android face detection on an Android device, but it seems quite slow and I'm not so sure on the reliability. I've also used OpenCV's face detection but only on PC, as opposed to an Android device. For Android, I'm guessing I'll have to use JavaCV (or OpenCV4Android?).

您知道Android API的面部检测与OpenCV的面部检测之间的速度差异吗?我确信OpenCV/JavaCV既高效,更快又更准确,但无法确认.

Do you know what the speed differences are between Android API's facial detection and OpenCV's facial detection? I'm sure OpenCV/JavaCV is both more efficient/faster and more accurate, but cannot confirm.

谢谢!

推荐答案

建议:如果您正在寻找人脸检测,建议您使用特定于平台的

Suggestion: If you are looking for face detection, I suggest you use platform specific APIs like FaceDetector rather than OpenCV Java wrapper. This is since those API's would be hardware accelerated(GPU) unlike OpenCV face detection which till version 3.0 relied on CPU only.

您在台式机和移动设备之间感知到的速度差异应该是由于设备硬件(例如CPU)的差异,而不是因为JavaCV/OpenCV4Android之类的库包装不同. OpenCV是用C/C ++编写的.所有需要处理大量代码的代码仍在C/C ++中,而Java库只是JNI的包装器.

The speed difference you perceive between desktop and mobile device should be for the difference in device hardware ( like CPU ) and not because of different libraries wrappers like JavaCV/OpenCV4Android. OpenCV is written is in C/C++. All processing intensive code is still in C/C++ and the Java libraries are just wrappers over JNI.

  1. OpenCV4Android -OpenCV.org维护了Android Java包装器.推荐.
  2. OpenCV Java -OpenCV.org保持自动生成桌面Java包装器.
  3. JavaCV -由独立开发人员维护的流行Java包装器.不是特定于Android的.该库可能与OpenCV较新版本不同步.
  1. OpenCV4Android - OpenCV.org maintained Android Java wrapper. Recommended.
  2. OpenCV Java - OpenCV.org maintained auto generated desktop Java wrapper.
  3. JavaCV - Popular Java wrapper maintained by independent developer(s). Not Android specific. This library might get out of sync with OpenCV newer versions.

这篇关于Android API人脸检测与OpenCV/JavaCV人脸检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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