Ask Your Question

What is the deference between OpenCV2.4.10 and JavaCV 0.10

asked 2015-03-20 02:14:48 -0500

BAHRAMUDIN ADIL gravatar image

updated 2015-03-20 02:41:28 -0500

berak gravatar image

I want to know if I download the OpenCV2.4.10, is there the need of JavaCV 0.10 or not, because in the extracted folder of OpenCV2.4.10 inside \OpenCV\build\java there is a Jar file named opencv-2410.jar. I am using Java Language to use OpenCV library. But I also saw JavaCV which can be found at website, when I downloaded all Jars, here I also found named opencv.jar file. Now I don't know what is the deference between them, in Java Language which one is better to use. If use OpenCV2.4.10 is need to JavaCV 0.10? and if use JavaCV 0.10 is need to OpenCV2.4.10? or both of them can be independent used? the If anyone know about this please tell me, Thanks in advance!!

edit retag flag offensive close merge delete


You mean that JavaCV is using old version OpenCV? before JavaCV,s jar files are downloadable from googlecode, but now google didn't updated since OpenCV2.4.6, so the OpenCV 2.4.7 to OpenCV2.410 versions is now available at, it means that JavaCV is also going to be up to date. But the question is why there is JavaCV beside the OpenCV it self has a wrapper for Java, Is the OpenCV wrapper not complete or there are some other reasons?

BAHRAMUDIN ADIL gravatar imageBAHRAMUDIN ADIL ( 2015-03-20 02:59:01 -0500 )edit

OK, Thank you for your reply! But I also have a question that is, when I use the OpenCV self wrapper jar file for Java, there are some functions that the jar file dose not have, (i.e cvNameWindow(), cvShowImage() and so on...), and also there is no Java Class for IplImage object ...etc. What do you think about this? Thank you!

BAHRAMUDIN ADIL gravatar imageBAHRAMUDIN ADIL ( 2015-03-20 03:36:15 -0500 )edit

Thanks a lot!!

BAHRAMUDIN ADIL gravatar imageBAHRAMUDIN ADIL ( 2015-03-20 03:48:59 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-20 02:30:26 -0500

berak gravatar image

updated 2015-03-20 04:54:31 -0500


you probably don't need javacv, opencv has it's own java wrappers now(opencv-2410.jar).

also take a look at the javadocs and the intro tutorial

(javaCV is a 3rd party wrapper, unfortunately using opencv's outdated c-api, so maybe better avoid it)


there was a time, when opencv did not have a java api, that's when folks there started to roll their own.

but this is no more nessecary.


  • IplImage was the old c-api image class in opencv, cv::Mat is the newer c++ version of it.
  • there's no need for cvNamedWindow , you can wrap your core.Mat image into a BufferedImage, and use a JPanel or such to show it.
edit flag offensive delete link more



Combined it to an answer that can be accepted by the topic starter!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-20 04:54:55 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-20 02:14:48 -0500

Seen: 2,442 times

Last updated: Mar 20 '15