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
6
votes
2 answers

WARNING: An illegal reflective access operation has occurred (portable opencv in java)

I want to make a portable opencv application which the dependency is added to maven file pom.xml. Simplified code is : import org.opencv.core.Mat; public class Builder { public static void main(String[] args) { …
Amiri
  • 2,417
  • 1
  • 15
  • 42
6
votes
1 answer

javaCV Android, Strange colors on overlay while streaming to rtmp server

I wanna stream to facebook live from android. I was able to adapt an existing example for streaming to FB. That first step more or less works (audio is still a problem, but not in the scope her). I can stream to FB. I now wanna overlay the stream…
schw4ndi
  • 231
  • 4
  • 18
6
votes
1 answer

JavaCV - Why IplImage.createFrom(image) doesn't exist anymore?

I'm working with JavaCV at the moment, to try some simple blob detection. I'm using maven and got JavaCV 0.11 (more specific org.bytedeco.javacv) from their repositories. Everything compiles without errors and works fine, but the method to create an…
user3262883
  • 119
  • 7
6
votes
0 answers

Load video url into FFmpegFrameGrabber

Does JavaCV FFmpegFrameGrabber support using a url as a video source? I've tried using: grabber = new FFmpegFrameGrabber("http://techslides.com/demos/sample-videos/small.mp4"); grabber.setFormat("mp4"); grabber.start() But start() throws the…
LeoFarage
  • 517
  • 3
  • 16
6
votes
2 answers

Detecting HeartBeat Using WebCam?

I am trying to create an application which can detect heartbeat using your computer webcam. I am working on the code since 2 weeks and developed this code and here I got so far How does it works? Illustrated below ... Detecting face using…
B L Λ C K
  • 600
  • 1
  • 8
  • 24
6
votes
2 answers

JavaCV configuration in Android Studio

I know there is a lot of similiar questions to this, but a lot of them seem to be out of date because of the development of libraries such JavaCV. I used the code from Video Creation with Images and Audio in Android to create movie, but I have a…
filipp.kowalski
  • 5,495
  • 7
  • 27
  • 45
6
votes
3 answers

Recording video on Android using JavaCV (Updated 2014 02 17)

I'm trying to record a video in Android using the JavaCV lib. I need to record the video in 640x360. I have installed everything as described in README.txt file and I followed the example as…
fcberg
  • 764
  • 13
  • 29
6
votes
2 answers

IplImage Pixel Access JavaCV

I'm trying to access Pixel by Pixel of an IplImage. Im using Java and Processing, and sometimes I need to access pixel by pixel. I've done this so far, but I don't know what's wrong: public IplImage PImageToIplImage(PImage imageSrc) { …
Ricardo Alves
  • 1,071
  • 18
  • 36
6
votes
2 answers

How to identify contours within another contour using JavaCV?

How to identify contours within another contour? I tried to go through many OpenCV tutorials but I was unable to identify it. Please can some expert person provide simple code to explain it? This is my input file This dark part is the contour that…
NadLnk
  • 279
  • 2
  • 9
6
votes
1 answer

How to get size of an area in JavaCV

In my project I want to get the size from the greatest homogeneous area of a specific color (in my example below it's the blue sky). My first idea is to convert the orginal image: to an binary image, detect the skycolor and create a mask with this…
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
6
votes
2 answers

Android Face Detection using OpenCV/JavaCV

I want to know how I implement Android Face Detection using OpenCV/JavaCV. Any one have idea about that or have code please comment on this or put the code. I want get faces from the Phone Gallery and detect them..
pradeep
  • 155
  • 1
  • 4
  • 14
5
votes
2 answers

Load Image OpenCV (JavaCV) from byte[] not a file

I have image data coming in from over a socket connection as a byte[]. All examples I have seen using cvLoadImage() is passed a file name. Do I have to save every image to file and re-open it to do the processing? This seems to have a lot of…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
5
votes
0 answers

java.lang.UnsatisfiedLinkError: dlopen failed: library "../../lib/libtbb.so" not found

I compiled face-recognition and was successfully running on an LG Leon (armv7I). When I installed the app on a MyPhone UNO with similar CPU architecture (armv7I), the error below occurs: 06-03 22:09:41.538…
Dhagz
  • 711
  • 5
  • 24
5
votes
2 answers

How to convert IplImage to lept.PIX

I develop OCR system based on JavaCV. I use following libraries for my project: https://github.com/bytedeco/javacv https://github.com/bytedeco/javacpp-presets/tree/master/tesseract In one case I need to find some part of an image and recognize…
Gorcer
  • 188
  • 2
  • 9
5
votes
2 answers

why the integral-image contains extra row and column of zeros?

I am learning how to use the integral-images using opencv with Java API, and i created a test that displays the grayscale image before using the integral-image and after using it. the grayscale image is 10 x 10, and when i converted it to the…
Amrmsmb
  • 1
  • 27
  • 104
  • 226