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
0
votes
1 answer

JavaCV FFmpegFrameFilter does not work for fps filter

I am trying to change the frame rate of a video using the FFmpegFrameFilter and -grabber of JavaCV. However, filter.pull(); always returns null. I have tried basically every combination of pulling and pushing frames, but nothing seems to work. This…
cegredev
  • 1,485
  • 2
  • 11
  • 25
0
votes
0 answers

How to Register a New Layer on a Neural Network in OpenCV DNN on Android

I am developing an OpenCV based edge detection package in Android using Kotlin. I have imported the OpenCV Java CPP Presets Package. I am using the DNN Module. I have to register a new layer to complete my model like…
Lav Shinde
  • 182
  • 2
  • 17
0
votes
1 answer

JavaCPP Leptonica : How to clear memory of pixClone handles

Until now, I've always used pixDestroy to clean up PIX objects in my JavaCPP/Leptonica application. However, I recently noticed a weird memory leak issue that I tracked down to a Leptonica function internally returning a pixClone result. I managed…
SND
  • 1,552
  • 2
  • 16
  • 29
0
votes
1 answer

Using Java switches on the command line in Win 10

Can't seem to find an answer so ask here time I'm trying to test get around JavaCPP's memory limits (dies at 1Gb if not told otherwise) Anyway this sort of command works fine on Linux java -Dorg.bytedeco.javacpp.maxbytes=8G…
peardox
  • 362
  • 1
  • 3
  • 6
0
votes
0 answers

Spark Tesseract UnsatisfiedLinkError

I have been trying to use tesseract using spark and having the below issue . I have tried using multiple versions of javacpp but still no luck . val api: TessBaseAPI = new TessBaseAPI() When I create an api here is the error…
RData
  • 959
  • 1
  • 13
  • 33
0
votes
1 answer

JavaCPP fails at function disambiguation

I am implementing a Java wrapper for a C++ project using JavaCPP. I have defined mappings for all custom types, but I'm struggling with a call to the std::sort_heap() function that takes a function as an argument. This is the function call in the…
Carsten
  • 1,912
  • 1
  • 28
  • 55
0
votes
0 answers

ffmpeg : Trying to access Ebur128Context->integrated_loudness but unsuccessful

[FFMPEG] Trying to access Ebur128Context->integrated_loudness but unsuccessful I am trying to run ebur128Filter on audio file . similar to be doing [http://ffmpeg.org/doxygen/2.6/f__ebur128_8c_source.html#l00135] ffmpeg -i sample.wav…
Sourabh Jain
  • 55
  • 1
  • 4
0
votes
1 answer

Can't find package where "cvLoad" is located in JavaCV?

I try a sample code for face detection but the method cvLoad is not found, even if I imported org.bytedeco.javacpp.opencv_objdetect.* : import org.bytedeco.javacpp.FlyCapture2.Image; import org.bytedeco.javacpp.opencv_core.CvMemStorage; import…
seinecle
  • 10,118
  • 14
  • 61
  • 120
0
votes
0 answers

Simple, high-performance, easy to maintain way for interoperability between java and modern C++

I am looking for the best approach for calling modern C++ 11/14 code from java (with callbacks from C++ back to java). What is the best/easiest/fastest performance way to get interoperability between java and C++ 11/14? I have been programming in…
Phil
  • 5,822
  • 2
  • 31
  • 60
0
votes
2 answers

javacpp-opencv drawContours produce different result than in python?

javacpp-opencv drawContours produce wrong result than in python. Here is the code in java to use drawContours function: public static void main(String[] args){ Mat im = imread("7KXY.png"); cvtColor(im, im, CV_BGR2GRAY); …
abracadabra
  • 371
  • 2
  • 16
0
votes
1 answer

Invalid shufflevector operands! LLVM JavaCPP

I am trying to use LLVMBuildShuffleVector function which asks for: LLVMBuildShuffleVector (LLVMBuilderRef, LLVMValueRef V1, LLVMValueRef V2, LLVMValueRef Mask, const char *Name) I have this two LLVMValueRef: LLVMValueRef value1 =…
MariaH
  • 331
  • 1
  • 8
  • 21
0
votes
0 answers

How to clear output buffer using LLVM javacpp? How to execute fflush using LLVM javacpp?

I am using this javacpp to build a compiler with LLVM in Java. I was able to generate code for input and output. INPUT: First I have a LLVMValueRef which is the symbol, say the target variable that will receive the input. Then I have a LLVMValueRef…
MariaH
  • 331
  • 1
  • 8
  • 21
0
votes
2 answers

java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes (1100M) > maxPhysicalBytes (1024M)

When I record video using FFmpegFrameRecorder it shows me this error E/AndroidRuntime: FATAL EXCEPTION: Thread-36 java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes (1100M) > maxPhysicalBytes (1024M) at…
Rudra
  • 171
  • 10
0
votes
1 answer

Get Raw data from org.bytedeco.javacv.Frame

I want to get raw data from javacv Frame. I am using FFmpegFrmaeFilter to rotate Android camera preview. So, I am pulling Frame from the FFmpegFrameFilter and then provides converted byte[] to MediaCodec. But, while doing so, I am getting wrong…
0
votes
1 answer

How can I specify a shared object version in javacpp link?

I have a library file like libfoo.so.1.55.0 and would like to include it in the generated platform jar using javacpp-presset. What is the correct way to add the library to the link or linkResources fields in the @Platform annotation? I've tried foo,…
Klugscheißer
  • 1,575
  • 1
  • 11
  • 24
1 2 3
8 9