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
0 answers

Javacv android loading avutil error

I am trying to make a live streaming app and i have followed the below link to add javacv into my project https://github.com/bytedeco/javacv . I created jniLibs folder in my app (app->src->main) but my app crashes without any error.When i tried to…
0
votes
1 answer

OpenCVFrameGrabber javacv in MATLAB doesnt work

I am using this code in MATLAB R2015a: javaaddpath('javacv.jar') import org.bytedeco.javacv.* grabber = OpenCVFrameGrabber(0) grabber.start() img = grabber.grab() The first time I use this code, it works, opens the camera and grub some image. After…
Tal
  • 1,145
  • 2
  • 14
  • 32
0
votes
0 answers

java.lang.UnsatisfiedLinkError: LegacyLibrary$LegacyClass.allocate()V

My Java code import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; @Platform(include="LegacyLibrary.h") @Namespace("LegacyLibrary") public class LegacyLibrary { public static class LegacyClass extends Pointer { static…
Vishnu
  • 11,614
  • 6
  • 51
  • 90
0
votes
1 answer

Launching Cpp app in javascript inside JSP

I have a JSP page which launches a CPP app. When an http request is sent from the CPP app, is there any way to get that request served in the JSP from which the app got launched? Please advise
Vivek
  • 341
  • 1
  • 5
  • 15
0
votes
1 answer

Android bytedeco javacpp ffmpeg decode h264 bytes to yuv and render with openGL ES 2.0. Wrong colors

there! I try to display a video stream, which comes from server as byte array. Data in this array is h264 encoded image and i decode it with bytedeco javacpp-presets library in this way: public class DMDecoder { private static final String LOG_TAG…
tema_man
  • 443
  • 4
  • 7
0
votes
1 answer

Loading CvHaarClassifierCascade from XML

I am trying to load the haarcascade_frontalface_alt.xml file from the Android assets with the following piece of code: File file = loadCascadeClassifierFile(context); if (file.exists()) { return new…
Karl-John Chow
  • 775
  • 2
  • 8
  • 26
0
votes
1 answer

LineSegmentDetector (openCV 3) in javacv

I would like to use the LineSegmentDetector of OpenCV 3 in java. Unfortunately it does not seem to be part of the javacpp opencv distribution. What would be the fastest way to use this algorithm im java? The C code is publicly available.
Brandli
  • 118
  • 9
0
votes
1 answer

Audio Video out of sync when i append videos - Android JavaCpp

I am creating videos through Android MediaRecorder.. This is the code where i am appending the videos, Audio is always longer then video.... Video stays stuck at the end for 3 - 5 seconds while audio keeps on playing. private void doAppend(String…
Salmaan
  • 3,543
  • 8
  • 33
  • 59
0
votes
1 answer

AVPacket to Android MediaCodec

I'm using JavaCPP av_read_packet to read AVPackets from H264 (MPEG4 AVC) source, then I'm trying to pass only the video packets to Android's MediaCodec to decode them and to render into a Surface (for display). I've read it's necesary to use…
WotG
  • 5
  • 2
0
votes
1 answer

Call function with reference

I'm trying to call the following c++ function: uint32_t FunctionName(uint32_t *arg1,uint32_t *arg2,uint32_t *arg3) but I cannot find a way to map this in Javacpp. How do I pass the pointer reference to the function, and how do I retrieve the…
hammer
  • 123
  • 5
0
votes
1 answer

Segfault after 15 seconds while reading a RTSP stream with ffmpeg in Android

I'm trying to read a RTSP stream using ffmpeg by way of javacv. I'm able to view the fist 15 seconds or so before I get a segfault on the call to sws_scale. Does this mean I've ran out of memory? If so, any idea what I'm doing wrong? …
ABentSpoon
  • 5,007
  • 1
  • 26
  • 23
0
votes
1 answer

Rebuild javacv.jar for Android

I hate to sound like a n00b but I have been trying to figure this out for several hours now and could really use some help. I have successfully been able to use FFmpeg and OpenCV in my Android app by using javacv.jar and javacpp.jar provided here.…
Mark
  • 1,130
  • 3
  • 17
  • 32
0
votes
1 answer

javacv cvExtractSURF

I’m trying to implement the example for using JavaCv Surf. I downloaded the example code, the .jar files and installed everything that the official web page asks for (http://code.google.com/p/javacv/). But there is one function that seems to be…
Du_
  • 915
  • 1
  • 9
  • 16
0
votes
1 answer

JavaCPP problems compiling the example

I just wanted to test JAVACPP and tried the first example from the webpage within my eclipse: http://code.google.com/p/javacpp/ (LegacyClass and LegacyLibrary) As soon as I type: javac -cp libs\javacpp.jar:. src\LegacyLibrary.java into the…
Vladimir S.
  • 450
  • 2
  • 10
  • 23
-1
votes
1 answer

Opencv javacpp-presets findContours gives error: Unrecognized or unsupported array type in cvGetMat

I am trying to extract text from image(binarize) using opencv javacpp-presets (version 3.0.0-1.0) and using the code-snippit below. The snippit is a translate from this python version of the code. The input image is from file and is loaded through…
s.ijpma
  • 930
  • 1
  • 11
  • 23
1 2 3
8
9