Java
Last updated
Last updated
Demonstrates the basics of OpenNI2 usage
Install gradle and Java
Install , and (we use VS2019).
Create new folder. In terminal, use gradle to initialize this project folder. Select application
for type
and Java
for implementation language
. Leave default for the rest.
You will have a basic project structure looks like below
Now, create a new folder libs
in this project. Copy org.openni.jar
from OpenNI2 SDK into libs
folder
Edit build.gradle
, add implementation files('libs/org.openni.jar')
in dependencies
section
Modify source file src/main/java/project_setup/App.java
with following code