Fork me on GitHub

Bytedeco makes native libraries available to the Java platform by offering ready-to-use bindings generated with the codeveloped JavaCPP technology. This, we hope, is the missing bridge between Java and C/C++, bringing compute-intensive science, multimedia, computer vision, deep learning, etc to the Java platform.

Core Technologies

  • JavaCPP [API] – A tool that can not only generate JNI code but also build native wrapper library files from an appropriate interface file written entirely in Java. It can also parse automatically C/C++ header files to produce the required Java interface files.

Prebuilt Java Bindings to C/C++ Libraries

These are part of a project that we call the JavaCPP Presets. Many coexist in the same GitHub repository, and all use JavaCPP to wrap predefined C/C++ libraries from open-source land. The bindings expose almost all of the relevant APIs and make them available in a portable and user-friendly fashion to any Java virtual machine (including Android), as if they were like any other normal Java libraries. We have presets for the following C/C++ libraries:

We will add more to this list as they are made, including those from outside the bytedeco/javacpp-presets repository.

Projects Leveraging the Presets Bindings

  • JavaCV [API] – Library based on the JavaCPP Presets that depends on commonly used native libraries in the field of computer vision to facilitate the development of those applications on the Java platform. It provides easy-to-use interfaces to grab frames from cameras and audio/video streams, process them, and record them back on disk or send them over the network.
  • JavaCV Examples – Collection of examples originally written in C++ for the book entitled OpenCV 2 Computer Vision Application Programming Cookbook by Robert Laganière, but ported to JavaCV and written in Scala.
  • ProCamCalib – Sample JavaCV application that can perform geometric and photometric calibration of a set of video projectors and color cameras.
  • ProCamTracker – Another sample JavaCV application that uses the calibration from ProCamCalib to implement a vision method that tracks a textured planar surface and realizes markerless interactive augmented reality with projection mapping.

More Project Information

Please refer to the contribute and download pages for more information about how to help out or obtain this software.

See the developer site on GitHub for more general information about the Bytedeco projects.

Latest News feed twitter

Now offering software under the Apache License

July 12, 2015

To facilitate its adoption in commercial applications such as Deeplearning4j, the core software of JavaCPP, JavaCPP Presets, and JavaCV has been relicensed to offer users the Apache License, Version 2.0 as a new choice of license. No large technical changes has otherwise occurred, but we believe these core components have acquired a stable enough existence to merit an increment in their major version number to 1.0. Moreover, this way we keep a meaningful relationship between our version numbers and the ones of OpenCV, which has recently seen large changes in its API and has been updated to version 3.0.

In other news, we now provide presets for CUDA, mapping close to the entirety of its API, including cuDNN, for which no other wrappers that we are aware of currently exist. We hope that, along with the presets for Caffe, which are as far as we know also still a unique offering of ours, this will provide some useful tools to the new exciting world of deep learning.

As usual, if you have any questions, problems, or would like to contribute, but are unsure how to proceed, please feel free to share your concerns on the mailing list of JavaCPP, on the one for JavaCV, or via “issues” on GitHub. We are looking forward to work with you in the future. Have fun!