You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LucQuebec edited this page Jul 5, 2026
·
1 revision
FAQ
How do I add OpenCV to Android?
implementation("org.opencv:opencv:5.0.0.1")
Then OpenCVLoader.initLocal() once before use. See Quick Start.
Why is org.opencv.ml / SVM gone in 5.0?
It moved from core to the ml contrib module, which isn't in the official AAR.
Same for Haar/HOG (xobjdetect) and G-API (gapi). See
Migration OpenCV 5. Get them back with
OpenCV Pro.
Why don't my Haar cascades work after upgrading?
Haar/HOG detection moved to xobjdetect (contrib) in 5.0 — not in the official
AAR. Rebuild with contrib, or use OpenCV Pro.
Face detection vs face recognition?
Detection (find faces) works with the official AAR (DNN / objdetect).
Recognition (identify who) needs the face contrib module → OpenCV Pro.
Do I really need to rebuild OpenCV for contrib?
Normally yes, and it's the most-reported OpenCV-on-Android headache (CMake, NDK
toolchain, ABI mismatches). OpenCV Pro is a
prebuilt AAR with core + all contrib, so you skip the rebuild.
Is this the official OpenCV?
No — the official free AAR is org.opencv:opencv on Maven Central (use it for
core). OpenCV Pro by Jokobee is a separate prebuilt core + contrib AAR.