homebrew-openni is a project for installing OpenNI, NITE, and Sensor module with Homebrew.
You can install these packages in Homebrew installing directory (default: /usr/local) by simple commands. Uninstalling is also easy. This project does not provide only Sensor module (sensor.rb) for Xtion and Xtion PRO LIVE but also SensorKinect module (sensor-kinect.rb) for Microsoft Kinect sensor. You can choose a proper module for your device.
- OpenNI
- stable-1.5.2.23
- (--devel) unstable-1.5.4.0
- Sensor
- stable-5.1.0.41
- (--devel) unstable-5.1.2.1
- SensorKinect
- stable-5.1.0.25
- (--devel) unstable-5.1.2.1
- NITE
- stable-1.5.2.21
First, tap homebrew-openni.
$ brew tap totakke/openni
Install OpenNI, Sensor/SensorKinect, and NITE with Homebrew.
If you want to install unstable release, add --devel
option.
Install OpenNI.
$ brew install openni
Install Sensor.
$ brew install sensor
(Or install SensorKinect instead if you want to use Microsoft Kinect sensor.)
($ brew install sensor-kinect)
Install NITE.
$ brew install nite
Connect a device to the PC and run a sample program.
$ cd `brew --cellar openni`/stable-1.5.2.23/sample/Bin/x64-Release
$ ./Sample-NiSimpleViewer
Uninstall OpenNI, Sensor (or SensorKinect), and NITE with Homebrew.
$ brew uninstall nite
$ brew uninstall sensor (or $ brew uninstall sensor-kinect)
$ brew uninstall openni
If you want to clean entirely,
$ cd `brew --prefix`
$ rm -rf var/lib/ni var/log/primesense/XnSensorServer etc/primesense
If you fail to install OpenNI, uninstall libusb
and install OpenNI again.
$ brew uninstall libusb
$ brew install openni
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.