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

Muxing Android MediaCodec encoded H264 packets into RTMP

I am coming from a thread Encoding H.264 from camera with Android MediaCodec. My setup is very similar. However, I attempt to write mux the encoded frames and with javacv and broadcast them via rtmp. RtmpClient.java ... private volatile…
Vadym
  • 964
  • 1
  • 13
  • 31
5
votes
2 answers

OpenCV Mat to JavaCV Mat conversion

I am in the process of writing an Android application that uses JavaCV for some facial recognition. I have come across a slight problem where I need to convert from an org.opencv.core.Mat that the onCameraFrame(CvCameraViewFrame inputFrame) function…
Eduan Bekker
  • 411
  • 2
  • 7
  • 18
5
votes
1 answer

Image Filtering/Manipulation Using JavaCv(Java wrapper for OpenCV) in Android

I aim to apply filters(Gray-scale, Vintage, Contrast, Sharpen, Blur, Smooth etc) to iplImage of the JavaCv. In doing so, I have come across these functions/Classes : iplImage, CvMat, cvInRangeS,cvCvtColor,cvSmooth. I wish to seek some clarification…
Parth Kapoor
  • 1,494
  • 12
  • 23
5
votes
1 answer

JavaCV examples/tutorial

There are a lot of books about OpenCV C++, many examples and etc. But I can't find that on Java. I know the basics like reading, showing images, grabbing frames and displaying them in the loop, but it's so little. I want to do ComputerVision, but…
user3029227
  • 121
  • 2
  • 8
5
votes
1 answer

JavaCV capture a frame using FFmpeg

I create a class that capture frame from a video. When it capture a frame, it's saved as a picture. When the video is .avi, application works ok. When format is .avi. public static void main(String[] args) { FFmpegFrameGrabber grabber = new…
Ioanna
  • 95
  • 6
  • 14
5
votes
1 answer

System.LoadLibrary(libname) crashing on Nvidia Tegra 2 chipset (Android Samsung Tab) in Javacv code

I have made a custom camera in Andorid using Javacv code. I hadn't included all the .so files but only those which seems required for my application. As in the screen shot below: It works well on Samsumg Galaxy S2, S3 and Sony Ericsson Xperia…
Sourab Sharma
  • 2,940
  • 1
  • 25
  • 38
5
votes
1 answer

Memory leak in javacv

I'm trying to make a program that takes a picture from a webcam, and afterwards resizes it, converts it to HSV, and makes some thresholding on it, to find a specific color. After this is done, I use the thresholded image to find contours, and print…
Jesper Plantener
  • 229
  • 3
  • 16
5
votes
2 answers

Cleaning image to help tesseract on Android

I'm trying to extract digits from a sudoku board. after detecting the board, its corners and transforming, I'm left with a pretty lined up image of only the board. Now I'm trying to recognize the digits using Tesseract android implementation,…
La bla bla
  • 8,558
  • 13
  • 60
  • 109
5
votes
1 answer

How to identify points on black polygon using javacv/opencv?

I try to identify Contour around this black polygon and I need to access those points but it doesn't work for me. This is the input image But when I try to do following code It didn't gave the expected result which means it should. …
LkDev
  • 221
  • 3
  • 9
5
votes
3 answers

How to improve the image quality before the image processing start in javacv or opencv?

I have an image with 400x400 image to identify different components from it. But when I try to identify components using that most of time it doesn't provide correct answers. So I need to know whether there are some kind of methods in javacv or…
user1465195
5
votes
2 answers

How to convert a java collection of images to CvArr

I want to use OpenCV's FaceRecognition in java through javacv wrapper library. I don't know how to pass images and labels to com.googlecode.javacv.cpp.opencv_contrib.FaceRecognizer.train(CvArr, CvArr) I can use cvLoadImage(String) or…
milan
  • 2,355
  • 2
  • 23
  • 38
5
votes
1 answer

How to convert a Java-Array to a JavaCV-Matrix?

Is there a simple way to convert a Java-Array like double[][] to CvMatin JavaCV? I think in OpenCV you can say cv::Mat Table(8, 8, CV_32FC1, table);, where table is a 8x8 array. But in JavaCv it doesn't work.
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
5
votes
2 answers

What is the meaning of following code line in opencv?

What does this code line means and how can I convert this code into javacv? gray = Scalar::all(255); This is whole code which related to this code line. Mat src = imread("in.jpg"), gray; cvtColor(src, gray, CV_BGR2GRAY); threshold(gray, gray,…
NadLnk
  • 279
  • 2
  • 9
5
votes
0 answers

to create video from image sequence on android

I want to create video from image sequence (on android) by this code: opencv_core.IplImage image = cvLoadImage("/sdcard/mytest/testimage.jpg"); FFmpegFrameRecorder recorder = new FFmpegFrameRecorder("/sdcard/mytest/test.3gp",256,256); …
preceptron
  • 193
  • 4
  • 11
5
votes
1 answer

Android JavaCV dilemma, NoClassDefFoundError thrown inside of method 'draw' when IplImage is created

I am using the JavaCV library with pre-built OpenCV libraries for Android. I think I have setup Eclipse the right way, because I have included the jars both javacv.jar and javacpp.jar. In addition, the java-cv-android-arm.jar, in my project.…
Daniel Lopez
  • 1,728
  • 3
  • 24
  • 40