Questions tagged [javacpp]

JavaCPP - a bridge between Java and native C++.

JavaCPP provides efficient access to native C++ inside Java, not unlike the way some C/C++ compilers interact with assembly language.

115 questions
9
votes
1 answer

Getting UnsatisfiedLinkError: no jnilept in java.library.path when I create TessBaseAPI

I am new to java cpp and tesseract-ocr. I am stuck with one issue from couple of hours. I am getting UnsatisfiedLinkError: no jnilept in java.library.path when I create TessBaseAPI. Below is the piece of my code. public static void…
Viraj Nalawade
  • 3,037
  • 3
  • 26
  • 40
8
votes
4 answers

java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil

I am using Windows10, eclipse-neon with JDK1.8 version, I am getting the following exception. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil at java.lang.Class.forName0(Native…
Sat
  • 2,448
  • 3
  • 28
  • 54
8
votes
1 answer

How do I map a function call from c++ to Java using JavaCpp?

I have a c++ header file which contains some functions that the c++ code calls. These function should be mapped to corresponding Java functions. So it is a bit like callbacks, but I cannot figure out how to map them in JavaCpp. So for instance we…
hammer
  • 113
  • 5
7
votes
1 answer

Dependency missing from classpath

I have project that collects dependencies for an installer (sbt-install4j) using dependencyClasspath. It works most of the time, except when I have one specific dependency: libraryDependencies += "org.bytedeco" % "javacpp" % "0.10" "javacpp" will…
Jarek
  • 1,468
  • 9
  • 15
5
votes
1 answer

Run C++ code in Java Android app using JavaCPP

I a beginner when it comes to development for Android and I am trying to understand JavaCPP. I want to execute a C++ function from Java inside an Android application. In my example I just use a simple TextView widget that prints what I receive from…
Jacob Krieg
  • 2,430
  • 10
  • 60
  • 114
5
votes
0 answers

java.lang.UnsatisfiedLinkError: dlopen failed: library "../../lib/libtbb.so" not found

I compiled face-recognition and was successfully running on an LG Leon (armv7I). When I installed the app on a MyPhone UNO with similar CPU architecture (armv7I), the error below occurs: 06-03 22:09:41.538…
Dhagz
  • 654
  • 4
  • 17
4
votes
0 answers

How to deal with C++ class and std::future in javacpp?

I am using javacpp https://github.com/bytedeco/javacpp for JNI C++ to Java For example, I have a C++ class using std::future class cppDemo { public: Demo(); int testInt(int number) { return number; } std::future
4
votes
1 answer

Where do we get native library .so files for javacv from?

So I'm having a problem with running some javaCV code, and though I've seen numerous fixes online for it, none have worked. The exact error is java.lang.UnsatisfiedLinkError: /tmp/javacpp/libjniopencv_core.so cannot open shared object file: no…
4
votes
1 answer

JavaCv compare 2 histograms

I’m trying to compare two histograms from grayscale images. I’m using the CV_COMP_CHISQR (0.0 perfect match – 1.0 total mismatch). I normalized both histograms to 1. But when I compare the histograms I get result over 40.0 which make no sense. I…
Du_
  • 645
  • 1
  • 7
  • 16
3
votes
0 answers

UnsatisfiedLinkError using JavaCV maven dependency in Gradle on Android

I am getting this error when trying to call the start() method of an instance of FFmpegFrameGrabber : java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil at java.lang.Class.classForName(Native Method) at…
Michael Garner
  • 942
  • 1
  • 8
  • 19
2
votes
1 answer

Exception in compiling code with JavaCPP?

I am trying to run there own example of LegacyLibrary on http://code.google.com/p/javacpp/ when I try to compile code with following command mentioned at site only (basically compiling code with javacpp.jar) I am getting following exception D:\Java…
Dhruv Bansal
  • 8,907
  • 17
  • 71
  • 118
2
votes
1 answer

JavaCV FFmpegFrameRecorder save images to video

I am a bit confused about the use of JavaCV FFmpegFrameRecorder. I have several byte[] or short[] arrays (depending if my images are 8 or 16 bit) were I have the data related for several images. Now, my idea is to use JavaCPP to send each image to…
Learning from masters
  • 1,388
  • 1
  • 14
  • 28
2
votes
1 answer

Using OpenCV GPU module in JAVA

I am using the wrapped version of the OpenCV image processing library for java (opencv java api by OpenCv) in order to detect cars' plates at the real time. Where in order to do so, I must gain the maximum possible processing speed for better…
HMaster
  • 49
  • 8
2
votes
2 answers

JavaCPP ValueGetter vs MemberGetter

What is the difference between @MemberGetter and @ValueGetter annotations in JavaCPP? What are the use cases for them? I have C header file with two constants static const int TRANSPOSE = 0; static const int NO_TRANSPOSE = 1; What is the prefferred…
tworec
  • 3,499
  • 2
  • 22
  • 29
2
votes
1 answer

Tensorflow: How to compile libtensorflow_cc.so for Android

I'm currently trying to compile the target //tensorflow:libtensorflow_cc.so of TensorFlow with bazel for Android. I need this library in order to get the javacpp-presets for TensorFlow working with Android. I tried the following statement: bazel…
andy
  • 1,404
  • 1
  • 16
  • 31
1
2 3 4 5 6 7 8