Skip to content

ffmpegkit-maintained/OpenCV

Repository files navigation

OpenCV + Contrib for Android

Maven Central License: Apache 2.0 Website

The opencv_contrib modules the official AAR doesn't ship — prebuilt, one Gradle line, no NDK, no rebuild.

The official OpenCV package (org.opencv:opencv, maintained by the OpenCV team) is great but ships core only. To get contrib modules — face recognition, tracking, ArUco, text detection — you normally have to rebuild the whole SDK from source (CMake, NDK, hours lost). We prebuild them for you.

Install (Free)

dependencies {
    implementation("dev.ffmpegkit-maintained:opencv-contrib-android:5.0.0")
}

OpenCV 5.0 core + the most-requested contrib modulesarm64-v8a:

Included (Free)
Core core, imgproc, video, calib, features, dnn, objdetect (incl. ArUco in 5.0), photo
Contrib face (recognition), tracking (CSRT/KCF/MOSSE), text (scene text)

→ See examples/ for ready-to-use Kotlin (edge detection, DNN face detection, face recognition).

Free vs Pro vs Official

Official AAR Free (this) Pro
Core modules
face, tracking, text (contrib)
Full contrib (ml, Haar/HOG, gapi, ximgproc, +25)
Optimised DNN + pre-integrated models (face, OCR, doc-scan)
ABI arm64-v8a arm64-v8a arm64-v8a + x86_64
Channel Maven Central Maven Central + GitHub Release jokobee.com
Price Free Free $24 / $62 team

Pro adds, on top of everything in Free:

  • Full contrib module setml, Haar/HOG (xobjdetect), G-API (gapi), ximgproc, and 25+ other opencv_contrib modules not in Free.
  • Optimised DNN builds with pre-integrated models for face recognition, OCR, and document scanning — ready to use, no separate model wrangling.
  • x86_64 ABI, in addition to arm64-v8a, for emulator/desktop-class testing.

Get OpenCV Pro for the complete contrib set, optimised DNN builds, and pre-integrated models (document scanning, face, OCR). Free users who need the full contrib set can pick it up there.

Upgrading from OpenCV 4.x to 5.0?

ml, Haar/HOG (xobjdetect), and G-API moved out of core into contrib in 5.0 — so the official AAR no longer resolves them. Those are in Pro. See the Migration Guide.

What's here

By Jokobee

Prebuilt Android native libraries so you keep shipping instead of fighting CMake. Also: FFmpegKit · yt-dlp · Whisper

Jokobee · contact@jokobee.com · Apache-2.0 (same as OpenCV upstream).

License

This project redistributes OpenCV under the Apache License 2.0. See LICENSE. The upstream source is not modified.

Third-Party Notices

Third-party components bundled or built into this project retain their original licenses. See THIRD-PARTY-NOTICES.txt, which is also copied into the AAR assets at build time (readable at runtime via context.assets.open("THIRD-PARTY-NOTICES.txt")).

About

OpenCV for Android — quick start guide, examples, and OpenCV + Contrib Pro builds. The official AAR covers core; we add everything else.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors