OpenCV is a fast and well-designed C library for computer vision research and development. Since I’m not aware of an OpenCV library for Mac OS X, I’m using my old Ubuntu box to get things up and running.

So I don’t forget what I did, here’s some of the configuration I had to do:

  • Install libraw1394-dev Ubuntu package
  • Using ‘testlibraw’, check permissions
  • # sudo chgrp video /dev/raw1394
  • # sudo chmod g rw /dev/raw1394
  • Download OpenCV 0.9.7
  • # ./configure –with-apps; make; make install
  • # export LD_LIBRARY_PATH=/usr/local/lib
  • Compile and run my app with the following script

#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/lib
echo `pkg-config --cflags opencv`
echo `pkg-config --libs opencv`
g `pkg-config --cflags opencv` -g -o igaze igaze.c `pkg-config --libs opencv`
./igaze