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.

122 questions
1
vote
1 answer

Using javacpp + openblas in Android

I am trying to integrate the openblas preset of javacpp into my Android application. I have created a test app to illustrate my problem available in Github. The app simply runs the example code from…
jadarve
  • 309
  • 3
  • 7
1
vote
1 answer

Android JavaCV FFmpeg webstream to local static website

For my integrated test I'm working on an application that needs to provide a live stream to a locally hosted website. I've already built a working site that run's on nanohttpd. This application performs also special image processing. Therefore I use…
Thomas Devoogdt
  • 816
  • 11
  • 16
1
vote
0 answers

Producing .so libs from .jar

Now I'm trying to complete adding JavaCV to my project and I'm stuck on getting .so libs from javacpp.jar. Documentation says: Copy the javacpp.jar file into the libs/ subdirectory, and Run this command to produce the *.so library files in…
random name
  • 43
  • 1
  • 6
1
vote
1 answer

JavaCPP BytePointer OutOfMemory Error

Sorry for bad English, not a native speaker. I am using sourab-sharma's TouchToRecord library, available on github, I updated javacv and javacpp and now app crashes on video record with, java.lang.OutOfMemoryError: Cannot allocate 267850262 + 614403…
1
vote
1 answer

How to deal with JavaCPP avoiding data copy?

I'm using JavaCPP to exploit some C++ libraries in a Java application but manipulated datas are big datas. So my code works fine but is not memory-friendly (and I need it to work fast): I have a big byte[][] to provide to the native part. Target…
N0un
  • 868
  • 8
  • 31
1
vote
0 answers

LLVM-IR: How call intrinsic function in javacpp

How call intrinsic function in javacpp? For example, I want to call llvm.sadd.with.overflow intrinsic function.
Jivan
  • 13
  • 2
1
vote
1 answer

Web Application using JavaCV and deployed on SAP HANA Cloud Platform error

I'm currently working on a face recognition web application using JavaCV. I send snapshots of a live webcam stream on a client's browser over websockets and the face recognition system does all the rest on the server side. However, I receive the…
1
vote
1 answer

JavaCPP problems compiling the example Callback function

I just wanted to test Callback function example from the webpage. https://github.com/bytedeco/javacpp#creating-callback-functions In file foo.cpp #include #include "jniFoo.h" int main() { JavaCPP_init(0, NULL); try { …
1
vote
2 answers

java.lang.UnsatisfiedLinkError when run javacpp

I am using javacpp to access cpp from Java. I have tried the example provided in the documentation cpp code: CompletableFuture futureInC(){ @StdFuture f = @cppDemo.futureInC(); CompletableFuture future = new…
1
vote
0 answers

Error:Execution failed for task ':app:dexDebug' when compiling GooglePlayServices with 'org.bytedeco', name: 'javacv'

I'm merging audio with video by compiling compile group: 'org.bytedeco', name: 'javacv', version: '1.1' and everything works fine. But when i try to compile compile 'com.google.android.gms:play-services:8.4.0' with it ,its giving this error…
1
vote
0 answers

Getting recent frames using FFMPEG

I have a rtsp, udp multicast stream. I read frames by calling av_read_frame() method in a loop and it works as expected. My problem is, If I sleep my loop (let's say) for 500 ms, I'm not receiving recent frames. Since, I'm not reading a regular…
Ali Can
  • 564
  • 3
  • 15
1
vote
0 answers

java.lang.UnsatisfiedLinkError: no jniLegacyLibrary in java.library.path

I am using javacpp to access cpp from Java. I have tried the example provided in the documentation cpp code: #include namespace LegacyLibrary { class LegacyClass { public: const std::string& get_property() { return…
Vishnu
  • 11,614
  • 6
  • 51
  • 90
1
vote
1 answer

Javacpp: liblept.4.dylib library not loaded

On my 64 bit Mac OSX Trying to use a native C++ library from a java project just as described in this link: https://github.com/bytedeco/javacpp-presets/tree/master/tesseract But I get this error when I run the example, library liblept.4.dylib is not…
Spring
  • 11,333
  • 29
  • 116
  • 185
1
vote
1 answer

" a namespace name is not allowed" error in javacpp

I am trying to use this example in my java app which is build using maven. pom.xml include org.codehaus.mojo exec-maven-plugin
parallel
  • 303
  • 1
  • 3
  • 9
1
vote
1 answer

Create input for cvContourArea in JavaCV

How to create the contour to pass to cvContourArea? I have four 2D points, but don't know to create the CvSeq. int[] myPolygon = new int[] { point1.x, point1.y, point2.x, point2.y, ... }; cvCountourArea(???, null, 0);
Oliv
  • 10,221
  • 3
  • 55
  • 76
1 2 3
8 9