Archive for the ‘Computer Vision’ Category
OpenNI and Xcode 4
The way I put OpenNI (and the Kinect hardware) to run on Mac OS 10.6.7 using Xcode 4.0.
1. Download OpenNI and install it following the instructions provided.
2. Download PrimeSense/Sensor and install it following the instructions provided.
3. Download avin2/SensorKinect and install it following the instructions provided.
4. To use OpenNI in Xcode 4, there are a couple of differences regarding Xcode 3. After creating a project (it should be a C++ or ObjectiveC/C++ project), click on the project title on the left pane. In the “Build Settings” tab, set the “Header Search Paths” as “/usr/include/ni”. To link with the library, open the Terminal and execute “open /usr/lib”. The Finder will open in the folder “/usr/lib”. Now drag the file “libOpenNI.dylib” to the folder “Frameworks” of your Xcode project. There is another way of adding Frameworks to projects, which is through the “Link Binary With Libraries” option of the “Build Phases” tab of the target of your project. The old “add existing frameworks” option of Xcode 3 disappeared.

OpenCV on Mac
I’ve tried to install OpenCV using MacPorts but didn’t succeed.
Apparently there has been a change in the library headers and the online tutorials were not updated.
So here is how I could install it (via Terminal):
> sudo port install subversion
> sudo port install cmake
> mkdir OpenCV
> cd OpenCV
> svn co https://code.ros.org/svn/opencv/trunk/opencv -r 3059 cd opencv
> cd opencv
> cmake opencv
> sudo make install
The headers will be at /usr/local/include.