new openCV library for newer macs from andres

Just wanted to let you know that I managed to create a modified version of the javacvPro library, which offers up-to-date opencv2 support in Processing. The problem of javacvPro is that requires a separate installation of the opencv libs, which is in general a big hurdle for most students.

This modified version bundles the opencv2 libraries so there is are no additional installs required (well, thanks to Apple, almost none, see below for details). The download link is the following:

http://sourceforge.net/projects/gsvideo/files/opencv/javacvPro-0.5-macosx64.zip/download

The library comes with tons of examples of image processing, face and blob detection, etc. There are a few details to keep in mind in order to use it properly:

1) Processing must be running in 64bit mode (Processing|Preferences, Launch programs in 32/64 bit-mode)
2) On OSX Mountain Lion (and possibly Lion as well), the first time you run an example using the library, you will get a window asking to install X11. For the time being, you need to do that in order to use the library… this is because Apple removed X11 from OSX recently. Even though the library doesn’t launch the X11 interface or anything like that, it probably includes some library dependency that triggers the message.
3) There are two sets of capture examples, one uses GSVideo, and the other the built-in video library. For people using Processing 2.0, it is recommended to use the capture examples that reply on the built-in video library, so they don’t need to install GSVideo. Besides, the new built-in video library in Processing 2.0 is basically a simplified version of GSVideo, so performance won’t be an issue.

Pass this info around the students. Hopefully it will help those who need to use opencv and are currently stuck with the older opencv library that is no longer updated. Let me know if you get some feedback from them, such as installation problems, errors, etc.

Andres