Skip to content

Instantly share code, notes, and snippets.

@joinAero
joinAero / CMakeLists.txt
Last active September 20, 2023 14:11
Use Kinect with OpenCV (C++)
cmake_minimum_required(VERSION 2.8)
project(OCVSamples)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(OpenCV 3.0 QUIET)
if(OpenCV_FOUND)
add_definitions(-DUSE_OPENCV3)
else()
message(FATAL_ERROR "OpenCV > 3.0 not found.")
@joinAero
joinAero / install_opencv_on_macos.md
Created May 19, 2017 07:35
Install OpenCV 3 with Python 2.7 (macOS) + OpenNI2 for Kinect

Install OpenCV 3 with Python 2.7 (macOS)

$ brew install python
$ python --version
Python 2.7.13

$ pip install numpy