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
8
votes
3 answers

Making ffmpeg/javacv less verbose in java

I have a Java application that uses ffmpeg library and javacv to load and process video files. I am currently using following code, for loading videofile to my data container. public boolean add(String videofile) { FrameGrabber g = new…
lejlot
  • 64,777
  • 8
  • 131
  • 164
8
votes
2 answers

Playing a video with JavaCV and FFmpeg

So, I'm developing a custom video player for Android but I need to play more than the android supported video files (mp4, 3gp...), like wmv, avi, flv. At this time I do already convert any video type to .mp4 and I'm able to play them after recoding,…
Joao Guilherme
  • 387
  • 2
  • 10
8
votes
3 answers

How to identify polygon using opencv or javacv?

I'm doing a project that use image processing techniques to identify different objects and their lengths. I go through many examples in javaCV as well as OpenCV. But unfortunately I was unable to identify T shape of polygon. I try to use following…
user1465195
7
votes
2 answers

Converting OpenCV matrix looping to JavaCV

Got the book 'Learning OpenCV' by O'Reilly not long ago, and since then I have been busy converting all of the example code I see there from OpenCV to JavaCV, usually followed by a little of my own modification too. All the while, I'm trying to keep…
flamming_python
  • 690
  • 7
  • 13
7
votes
0 answers

Java library for creating thumbnail from video

We are trying to create a thumbnail from a video. We tried two third-party libraries. Those are https://github.com/bytedeco/javacv http://www.xuggle.com/xuggler/ Those are working fine. But we are trying for java built-in libraries. We found a…
Maharjun M
  • 853
  • 4
  • 11
  • 24
7
votes
1 answer

Dependency missing from classpath

I have project that collects dependencies for an installer (sbt-install4j) using dependencyClasspath. It works most of the time, except when I have one specific dependency: libraryDependencies += "org.bytedeco" % "javacpp" % "0.10" "javacpp" will…
Jarek
  • 1,513
  • 9
  • 16
7
votes
1 answer

Javacv: Decoding H.264 "live" stream coming from red5 server on android device

Here is my problem, I have implemented a server side application using Red5, which sends H.264 encoded live stream, on client side the stream is received as byte[] In order to decode it on Android client side i have followed the Javacv-FFmpeg…
Ichigo Kurosaki
  • 3,765
  • 8
  • 41
  • 56
7
votes
3 answers

How to get fps/frames per second of a videocapture object

I am using a videocapture object to capture and process frames of a video in opencv/javacv. I dont know how to get the frame rate.I want a timer that runs in the background during the live video capture.It should pause on a face being detected and…
slaveCoder
  • 519
  • 2
  • 17
  • 46
7
votes
5 answers

How to install JavaCV on Android and use FrameGrabber

Could someone tell me where I'm doing wrong? These are the steps that I have followed: Downloaded the adt-bundle-windows from android developer website Created a new project and a libs/armeabi folder Extract all the *.so files from…
Mark
  • 346
  • 2
  • 5
  • 18
7
votes
2 answers

How to use FaceDetector.Face for face recognition on Android

This is my first post here so I am sorry if my question is not clear or there is not enough information provided. I am currently working on an Android application that could recognize faces from pictures. My first approach was to use JavaCV and…
user1956743
  • 81
  • 2
  • 5
7
votes
1 answer

how to convert images into video in android using javacv?

i want to convert the sdcard images into video in android.After many of searching i found it is possible in javacv.when i try simple javacv sample in pure java,its working perfectly in my eclipse.but when i turn into android,the same sample does not…
rams
  • 273
  • 1
  • 5
  • 13
7
votes
3 answers

How to identify and fill I shape Contours in javacv?

I'm developing project on javacv and I need to know how to identify following image and fill that Image using particular color ? I try to go through this question and This is the image that I use I try to go through this code and I developed a code…
NadLnk
  • 279
  • 2
  • 9
7
votes
2 answers

What does cvHaarDetectObjects() method do?

Please can some expert person explain me whether we can use the cvHaarDetectObjects() method to detect squares and get width and heights? I found a code that use this method for face-detection but I need to know whether I can use it for rectangle…
SL_User
  • 1,934
  • 5
  • 24
  • 45
7
votes
5 answers

Reshaping noisy coin into a circle form

I'm doing a coin detection using JavaCV (OpenCV wrapper) but I have a little problem when the coins are connected. If I try to erode them to separate these coins they loose their circle form and if I try to count pixels inside each coin there can be…
Zaur Guliyev
  • 4,254
  • 7
  • 28
  • 44
6
votes
1 answer

Equivalent of OpenCV statement in Java using JavaCV

I want to know how to construct the following C++ statement in OpenCV using JavaCV: float* p = (float*)cvGetSeqElem(circles, i); int radius = cvRound(p[2]); To get the Radius of a circle detected using cvHoughCircles(). Obviously Java doesn't use…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
1 2
3
65 66