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

java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil in start FFmpegFrameGrabber

i have creating slowmotion video app in android and i can try to set video motion speed in any start and ending postion in total video length. but some error occur in start FFmpegFrameGrabber. here my code: private class PrepareMedia extends…
Ashish Virani
  • 182
  • 1
  • 15
0
votes
1 answer

Error when loading a javacpp and javcv

A few weeks ago I found this tutorial on hand gesture detection for opencv and javacv. I started using the example but kept running into the same error over and over again. Here is the error : Exception in thread "main"…
0
votes
1 answer

How to use Javacpp presets binaries

I'm trying to use the javacpp-presets binaries to access the librealsense library from Java. How do I use them? On the github page it says that it is sufficient to put all the desired JAR files (opencv*.jar, ffmpeg*.jar, etc.), in addition to…
mattdibi
  • 641
  • 10
  • 23
0
votes
1 answer

Looking for Javacpp FFMPEG CustomIO Example

I am trying to get Custom IO working with JavaCPP FFMPEG. Has anyone succeeded at this? Can you post your code? Here is mine (Scala), which does not work. It compiles and runs, but does not seem to call my Read and Seek methods val readPtr = new…
opus111
  • 2,744
  • 4
  • 25
  • 41
0
votes
0 answers

Filtering (deinterlacing) in ffmpeg

Is it possible to deinterlace? I was following https://www.ffmpeg.org/doxygen/trunk/filtering_8c-source.html C++ - applying filter in ffmpeg and unfortunately A fatal error has been detected by the Java Runtime…
mtadmk
  • 63
  • 1
  • 7
0
votes
1 answer

Run importing TensorFlow graph fails for uninitialized variables

I'm attempting to run TensorFlow training in java by using javacpp-presets for TensorFlow. I've generated a .pb file by using tf.train.write_graph(sess.graph_def, '.', 'example.pb', as_text=False) as below. import tensorflow as tf import numpy as…
linfeng
  • 5
  • 1
0
votes
1 answer

How do I create an OpenCV Mat of shape [3,2] for an affine transform?

Using JavaCPP bindings for OpenCV 3.1, code written in Scala. The methods are mapped nearly exactly as OpenCV 3.1 in C++. I'm attempting to create an affine transform matrix so I can warp an image using landmarks. However, the getAffineTransform…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

Crash with SIGSEGV while using ffmpeg javacpp wrapper on android with segment output format

Applications constantly crashing with SIGSEGV if output format is 'segment' A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 17059
balbelias
  • 428
  • 5
  • 17
0
votes
1 answer

dlopen failed: cannot locate symbol "av_version_info" referenced by "libjniavutil.so"

javacv has a sample for android "RecordActivity.java" which I tested and works perfect with Samsung devices but doesn't work with Huawei honor 6. I'm using javacv version 1.2 and latest binaries. error: 06-12 16:00:37.595…
farhang67
  • 759
  • 2
  • 14
  • 27
0
votes
1 answer

Javacpp: Unable to link shared library inside a jar

I'm trying to link a jar archived with the shared library and the javacpp generated jni shared library. Is that doable? I have 3 jar - javacpp.jar - lib.jar (.h file, libCube.so, libjniJavaCube.so) - Cube.jar (classes) I have no problem running the…
0
votes
1 answer

Javacpp: Can't manage to add libfdk_aac to ffmpeg presets

We're trying to recompile ffmpeg project using javacpp and with the --enable-libfdk-aac enabled, the build works, but we can't use libfdk_aac to decode an audio_stream. We are calling : avcodec_find_decoder_by_name("libfdk_aac") and getting the…
littlebridge
  • 691
  • 6
  • 10
0
votes
1 answer

Converting org.bytedeco.javacpp.Mat to Java int/float array

My image is represented as org.bytedeco.javacpp.Mat. And I simply want to convert it to Java array of float/int. Reason behind conversion is that I want to use the Java array in other library (Nd4j) for image permute purposes. I have tried below…
0
votes
0 answers

JavaCpp Equivalent of Matlab's Permute

Is there any equivalent of permute for image in OpenCV Java Preset ? My image is represented as org.bytedeco.javacpp.Mat. I am using the below JavaCpp OpenCV preset org.bytedeco.javacpp-presets
0
votes
0 answers

using compiled ffmpeg from javacpp-presets

I am using ffmpeg in my java project with javacpp-presets. I want to be able to edit the ffmpeg and libx264 for my needs. I edited the ffmpeg and libx264 source codes, compiled it and use it successfully through the command line. now I want to use…
Gitty
  • 11
  • 6
0
votes
1 answer

Using javacpp-preset/tesseract crashes java on exit

I am trying to use Tesseract to have OCR functionality in a Java application. To achieve this, I am using the Java/Tesseract bridge found here. pom.xml dependency: org.bytedeco.javacpp-presets
Kurtibert
  • 638
  • 1
  • 5
  • 16
1 2 3
8 9