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
50
votes
7 answers

Capturing a single image from my webcam in Java or Python

I want to capture a single image from my webcam and save it to disk. I want to do this in Java or Python (preferably Java). I want something that will work on both 64-bit Win7 and 32-bit Linux. EDIT: I use Python 3.x, not 2.x Because everywhere…
Matthew G
  • 1,090
  • 2
  • 14
  • 23
34
votes
7 answers

Filling holes inside a binary object

I have a problem with filling white holes inside a black coin so that I can have only 0-255 binary images with filled black coins. I have used a Median filter to accomplish it but in that case connection bridge between coins grows and it goes…
Zaur Guliyev
  • 4,254
  • 7
  • 28
  • 44
26
votes
3 answers

OpenCV (JavaCV) vs OpenCV (C/C++ interfaces)

I am just wondering whether there would be a significant speed performance advantage relatively on a given set of machines when using JavaCV as opposed to the C/C++ implementation of OpenCV. Please correct me if I am wrong, but my understanding is…
Pelican
  • 363
  • 1
  • 3
  • 7
26
votes
1 answer

Learning JavaCV in pure Java

I am trying to learn JavaCV. As you all know, the lack of educational materials on this subject is a very big problem. In JavCV home page, they have provided lot of examples for the C++ examples in book "OpenCV CookBook". But the case is, they are…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
22
votes
9 answers

UnsatisfiedLinkError: no opencv_java249 in java.library.path

Running into some problems making a piece of code run on my mac. Had someone write me an image analysis java app but I keep getting this error when trying to run it on netbeans. run: Exception in thread "main" java.lang.UnsatisfiedLinkError: no …
Meir
  • 221
  • 1
  • 2
  • 4
22
votes
1 answer

Unstable face recognition using OpenCV

I’m developing an android application for face recognition, using JavaCV which is an unofficial wrapper of OpenCV. After importing com.googlecode.javacv.cpp.opencv_contrib.FaceRecognizer, I apply and test the following known methods: LBPH using…
Y.AL
  • 1,808
  • 13
  • 27
21
votes
3 answers

Detect orientation of a recorded video in android

I want to make my custom media player and requires orientation info of video (for detecting it is recorded from front or back camera). for jpeg images i can use ExifInterface.TAG_ORIENTATION but for video how i can find this information. I tried to…
ultimate
  • 717
  • 2
  • 10
  • 20
19
votes
1 answer

Why cvFindContours() method doesn't detect Contours correctly in javacv?

I went through many questions in StackOverflow and able to develop small program to detect squares and rectangles correctly. This is my sample code public static CvSeq findSquares(final IplImage src, CvMemStorage storage) { CvSeq squares = new…
Gum Slashy
  • 385
  • 5
  • 20
17
votes
2 answers

Setting video stream metadata using Ffmpeg

I'm using the JavaCV FFmpegFrameRecorder class to encode Android's camera preview frames into a video. The goal would be to replicate the result of the following command line: ffmpeg -i input.mp4 -metadata:s:v:0 rotate="90" output.mp4 I modified…
Edson Menegatti
  • 4,006
  • 2
  • 25
  • 40
16
votes
1 answer

Where to get the jar for openCV?

Where are the Java jar libraries for the openCV core extensions so that I can import it in my java code? I cannot find a single place where they have taught how to get everything set up properly. I am using Ubuntu 12.04 and I have openCV…
theAndDev
  • 662
  • 2
  • 11
  • 33
15
votes
7 answers

JavaCV + Android Studio + gradle- possible?

I'm trying use JavaCV with Android Studio and Gradle. I wrote such code fragment: repositories { mavenCentral() maven { url "http://maven2.javacv.googlecode.com/git/" } } dependencies { compile…
Mkr
  • 428
  • 2
  • 5
  • 16
15
votes
2 answers

Face Recognition on Android

I'm trying to develop a Face Recognition app on Android and since I don't want to use NDK on the project (simply don't have the time to switch), I'm sticking to develop the whole app with Java and therefor I'm having some problems : It seems the…
Cypher
  • 2,374
  • 4
  • 24
  • 36
14
votes
4 answers

Proguard removing annotations in Android application

I have included a project using gradle in my app: compile group: 'org.bytedeco', name: 'javacv', version: '0.11' Which builds fine. But whenever I run the app with proguard enabled, it apparently removes the @Platform annotation from the jars that…
Gooey
  • 4,740
  • 10
  • 42
  • 76
13
votes
4 answers

opencv manager package was not found?? how install automatcally?

I am working on openCV, and whenever i run code it gives me package manager is not installed, So how can i installed this through my application.Is it compulsory to download it from play store or we can installed it automatically in device. please…
12
votes
4 answers

Opencv: Convert floorplan image into data model

my plan is to extract information out of a floor plan drawn on a paper. I already managed to detect 70-80% of the drawn doors: Now I want to create a data model from the walls. I already managed to extract them as you can see here: From that I…
Schnodderbalken
  • 3,257
  • 4
  • 34
  • 60
1
2 3
65 66