environment-setup

Overview

This example help you make sure all the development environment is set up correctly

Expect Output

  • It's okay if the OpenNI Version is 0.0.0.0

OpenNI Version:0.0.0.0
OpenCV Version:4.2.0.4.2.0

Tutorial

  • Import library

import cv2
from openni import openni2
openni2.initialize(os.environ['OPENNI2_REDIST'])
  • This program simply include OpenCV and OpenNI headers then print the library version

openniVersion = openni2.get_version()
print(f'''OpenNI Version: {openniVersion.build}.{openniVersion.major}.{openniVersion.minor}.{openniVersion.maintenance}''')
print(cv2.version.opencv_version)

Full code

environment_setup.py

Last updated