Internal - LIPS Developer Documentation
  • WELCOME
    • LIPS® Developer Documentation
  • INSTALLATION & SETUP
    • LIPSedge™ AE400 / AE450
      • SDK Release
        • Firmware
        • SDK
        • User Guide
      • Installation
        • Linux
        • Windows
        • ROS Wrapper
        • NVIDIA ISAAC Wrapper
    • LIPSedge™ AE430 / AE470
      • Installation
        • Linux
        • Windows
    • LIPSedge™ DL & M3 Series
      • SDK Release
      • Installation
        • Ubuntu
        • Windows
    • LIPSFace™ HW110/115 On-Device 3D Facial Recognition
      • User Guide & SDK Download
    • LIPSFace™ HW120/125 On-Device 3D Facial Recognition
    • LIPSMetric™ HA110 Handheld Dimensioner
      • User Guide
    • LIPSMetric™ ST115 Static Dimensioner
      • User Manual
  • SDK CODE SAMPLES AND LANGUAGES WRAPPERS
    • LIPSedge™ SDK
      • Sample Applications & Viewer & Utilities
      • C++
        • ni-hello
        • ni-simple-read
      • Python
        • ni-hello
        • ni-simple-read
      • Java
        • ni-hello
      • C#
      • OpenCV
      • ROS
    • LIPSFace™ SDK
      • LIPSFace™ SDK Overview
      • LIPSFace™ SDK Developer Guide
Powered by GitBook
On this page
  • Overview
  • Expect Output
  • Tutorial
  • Full code
  1. SDK CODE SAMPLES AND LANGUAGES WRAPPERS
  2. LIPSedge™ SDK
  3. Java

ni-hello

Overview

This example shows how to connect to camera and get device info.

Expect Output

Name:TS800
Uri:USB#VID_2DF2&PID_0213&REV_0007&BUS_02&ADR_10
USB Product ID:531
USB Vendor ID:11762
Vendor:LIPS

Tutorial

  • Import openni packages

import org.openni.DeviceInfo;
import org.openni.OpenNI;
  • Initialize SDK

OpenNI.initialize();
  • Scan connected devices

List<DeviceInfo> devices = OpenNI.enumerateDevices();
  • Get info for each device.

for (DeviceInfo d : devices) {
    System.out.println("Name:" + d.getName());
    System.out.println("Uri" + d.getUri());
    System.out.println("USB Product ID:" + d.getUsbProductId());
    System.out.println("USB Vendor ID:" + d.getUsbVendorId());
    System.out.println("Vendor:" + d.getVendor());
}
  • Connect to the first found device

Device device = Device.open();
  • Close camera and deconstruct OpenNI SDK

device.close();
OpenNI.shutdown();

Full code

PreviousJavaNextC#

Last updated 2 years ago

From

GitHub