The colorful wolf

January 24, 2011

OpenCV, JavaCV and the Java Media Framework

Filed under: Tech — randy @ 17:34

A friend told me about a very cool project called Open Computer Vision (OpenCV). It’s a library that contains a whole bunch of useful functions that you’ll absolutely need if you’re doing any kind of image processing. It has a Java wrapper as well called JavaCV, which internally makes native system calls to the OpenCV C++ library. I played with it a bit today and I was very impressed. Unlike every other open-source project I ever downloaded, this one actually works out of the box. No messing around with libraries, OS-dependent settings and whatnot. Just put the jars in Eclipse and everything works. Brilliant.

I played a bit with the edge detection features and figured I might as well hook it up to my webcam to see the output in real-time. I remember that the Java Media Framework was supposed to be able to interface with a webcam, but JMF has been long dead. I googled a bit but couldn’t find a better alternative, so I gave the ol’ JMF a try. And lo and behold, it does indeed work.

I like this stuff. It’s tangible progress in the right direction. Now I have a great starting point to get involved in image recognition 🙂



  1. You’re video is amazing. I have a school project about facial detection, and I’m also using javacv, but with Android. Have you ever worked with both or not, ’cause I would need a bit of help.


    Comment by Jennifer — February 17, 2011 @ 11:03 | Reply

  2. Hi Jennifer, I taught myself by using this tutorial: Maybe it can help you too.

    Comment by randy — February 17, 2011 @ 11:17 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: