bytedeco /javacv

Java interface to OpenCV, FFmpeg, and more

★ 8,353⑂ 1,616👁 235▤ 15
JavaCreated 2014-04-21
8,353
stars
+0+-2+8
1,616
forks
235
watchers
–
prs
–
issues
15
releases
–
discussions

README

JavaCV
======

    Commercial support: 


Introduction
------------
JavaCV uses wrappers from the JavaCPP Presets of commonly used libraries by researchers in the field of computer vision (OpenCV, FFmpeg, libdc1394, FlyCapture, Spinnaker, OpenKinect, librealsense, CL PS3 Eye Driver, videoInput, ARToolKitPlus, flandmark, Leptonica, and Tesseract) and provides utility classes to make their functionality easier to use on the Java platform, including Android.

JavaCV also comes with hardware accelerated full-screen image display (CanvasFrame and GLCanvasFrame), easy-to-use methods to execute code in parallel on multiple cores (Parallel), user-friendly geometric and color calibration of cameras and projectors (GeometricCalibrator, ProCamGeometricCalibrator, ProCamColorCalibrator), detection and matching of feature points (ObjectFinder), a set of classes that implement direct image alignment of projector-camera systems (mainly GNImageAligner, ProjectiveTransformer, ProjectiveColorTransformer, ProCamTransformer, and ReflectanceInitializer), a blob analysis package (Blobs), as well as miscellaneous functionality in the JavaCV class. Some of these classes also have an OpenCL and OpenGL counterpart, their names ending with CL or starting with GL, i.e.: JavaCVCL, GLCanvasFrame, etc.

To learn how to use the API, since documentation currently lacks, please refer to the Sample Usage section below as well as the sample programs, including two for Android (FacePreview.java and RecordActivity.java), also found in the samples directory. You may also find it useful to refer to the source code of ProCamCalib and ProCamTracker as well as examples ported from OpenCV2 Cookbook and the associated wiki pages.

Please keep me informed of any updates or fixes you make to the code so that I may integrate them into the next release. Thank you! And feel free to ask questions on the mailing list or the discussion forum if you encounter any problems with the software! I am sure it is far from perfect...


Downloads
---------
Archives containing JAR files are available as releases. The binary archive contains builds for Android, iOS, Linux, Mac OS X, and Windows. The JAR files for specific child modules or platforms can also be obtained individually from the Maven Central Repository.

To install manually the JAR files, follow the instructions in the Manual Installation section below.

We can also have everything downloaded and installed automatically with:

  Maven (inside the pom.xml file)
xml
  
    org.bytedeco
    javacv-platform
    1.5.14
  


  Gradle (inside the build.gradle.kts or build.gradle file)
groovy
  dependencies {
    implementation("org.bytedeco:javacv-platform:1.5.14")
  }


  Leiningen (inside the project.clj file)
clojure
  :dependencies [
    [org.bytedeco/javacv-platform "1.5.14"]
  ]


  sbt (inside the build.sbt file)
scala
  libraryDependencies += "org.bytedeco" % "javacv-platform" % "1.5.14"


This

Snapshot: 2026-11-04T14:00:00Z · Data license Apache-2.0 · JSON