Questions tagged [javacv]

JavaCV provides wrappers to commonly used computer vision libraries, OpenCV in particular. Note that JavaCV is now superseded by an official OpenCV Java API. Do not use this tag for the official OpenCV Java API, use [opencv] + [java] instead.

JavaCV was originally a Google supported project for interfacing Java to computer vision libraries. However it is now part of Bytedeco.

JavaCV is a wrapper around OpenCV's C API, which has been deprecated in favor of a newer C++ API. There is now an official OpenCV Java API, which is an automatically generated binding for the C++ API, and this probably should be used in preference to JavaCV for new code.

987 questions
4
votes
1 answer

What is CvMatchShapes returning?

I have these two images. And... I made them into graysclae images and then passed the two images to cvMatchImageslike so Double someValue = cvMatchShapes(grayImage, grayImage2, CV_CONTOURS_MATCH_I2, 0); System.out.println(someValue); The…
prometheuspk
  • 3,754
  • 11
  • 43
  • 58
4
votes
4 answers

UnsatisfiedLinkError Using JavaCV in Eclipse on Mac

I'm sure this is going to be some sort of PATH Issue but i'm not sure where i'm going wrong. I am trying to get JavaCV working in my project in Eclipse so I can do some circle detection on images but get the following exception thrown by Eclipse…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
4
votes
4 answers

Face recognition with JavaCV

Has someone successfully implemented the face recognition (thus not face detection!) with JavaCV? If yes, can you share your implementation ideas / source codes? Thanks.
ItFlyingStart
  • 261
  • 4
  • 13
4
votes
1 answer

Which Java API to use with JavaCV? org.bytedeco.opencv.opencv_core or org.opencv.core?

I'm playing with OpenCV in Java (actually in Scala). I'm using org.bytedeco wrappers (opencpp and javacv), but the documentation is not great. The question is that depending on the examples, two different APIs are used:…
angelcervera
  • 3,699
  • 1
  • 40
  • 68
4
votes
4 answers

JavaCV or OpenCV Image Rotation

My objective is to rotate an image by a certain angle (e.g. 30 degrees). One possible way of rotating by 90 degrees in OpenCV is given by tenta4 but unfortunately, it only performs 90-degree flips. Another possible way is a method "SkewGrayImage"…
Psi-Ed
  • 683
  • 1
  • 9
  • 22
4
votes
0 answers

Converting OpenCV Mat to JavaCV Mat

I am trying to create a new cascadeclassifier in android using OpenCV and JavaCV. I have the following code in the OnCameraFrame(...) function as below: @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { …
user427913
  • 41
  • 5
4
votes
1 answer

Access to the pixel value of a Mat using the JavaCV API

I have recently switched from the OpenCV C++ API to JavaCV and I'm trying to perform a basic operation, such as iterating over a Mat. I'm trying to access the pixel value of the Mat, but I can't seem to find a way, and the JavaCV project is short on…
INElutTabile
  • 866
  • 2
  • 20
  • 38
4
votes
1 answer

OpenCV with JavaCV or only OpenCV to use java API

I am a new to OpenCV library and I would like to use the Java API for openCV. I read instructions in websites regarding how to install openCV and use it as a library in Eclipse. Now what confuses me is, as I want to program in Java should i use…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
4
votes
2 answers

Sound in videos is full of static

I'm trying to play sound from an FFMpegFrameGrabber by getting the Frame and sending the audio samples to a SourceDataLine. Here's what I have so far: Creating the SourceDataLine: int channels = _grabber.getAudioChannels(); int format =…
Shawn Blakesley
  • 1,743
  • 1
  • 17
  • 33
4
votes
0 answers

How to use MatVector in JavaCV

Hi I'm trying to write some camera calibration code and I'm having a hard time using MatVectors in JavaCV that should be the equivalents of std::vec in C++. This is how i generate my image and object points: Mat objectPoints = new…
Marc
  • 767
  • 1
  • 10
  • 23
4
votes
1 answer

javacv: application terminates with opencv_contrib.createLBPHFaceRecognizer

I am experiencing with Face Recognition and followed all the steps for the OpenCV static initialization here. But when I execute this: com.googlecode.javacv.cpp.opencv_contrib.createLBPHFaceRecognizer(2,8,8,8,200) My application terminates without…
hacker
  • 8,919
  • 12
  • 62
  • 108
4
votes
0 answers

opencv error: Couldn't load opencv_contrib: findLibrary returned null

I am experiencing with Face Recognition and hence followed all the steps for the opencv static initialization here. Also i've copied all the .so files from the opencv to my libs folder. But when i try to…
hacker
  • 8,919
  • 12
  • 62
  • 108
4
votes
1 answer

Pattern detection in an image with JavaCV

I'm trying to create a code which should at the end recognize some pattern/shape in a picture. I've had some trouble when I tried to draw the shape on the pic ("Output3" in this case). The program seems not to end. I think there is a infinite loop…
Slayer
  • 81
  • 7
4
votes
1 answer

JavaCV - Rendering to a GL Surface

Using JavaCV to consume a multicast stream, I want to render the video frames in a GLSurfaceView. The frames are grabbed using the FFmpegFrameGrabber class; I have successfully output the captured frames to sdcard and a non-GL surface for visual…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
4
votes
0 answers

How to get MP4 using JavaCV for live video streaming

I am trying to make an application that gets the streaming video data using JavaCV and send it to Web socket server. Then, the Web socket server distributes the video data to connected client(s). 1. Application gets live streaming data(MP4) from my…