Android API Face Detection vs. OpenCV / JavaCV Face Detection

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

Do you know the speed difference between Android API face recognition and OpenCV face detection? I'm sure OpenCV / JavaCV is more efficient, faster and more accurate, but cannot confirm.

Thank!

+3


source to share


1 answer


Offer . If you are looking for facial recognition, I suggest using an API such FaceDetector

as the OpenCV Java wrapper. This is because these APIs will be hardware accelerated (GPU) as opposed to OpenCV's face detection, which relied only on the processor prior to 3.0.

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



  • OpenCV4Android . OpenCV.org supports the Android Java wrapper. Recommended.
  • OpenCV Java - OpenCV.org maintains an auto-generated Java wrapper desktop.
  • JavaCV is a popular Java wrapper supported by third- party developers. Not for Android. This library may get out of sync with newer versions of OpenCV.
+2


source







All Articles