/zed-java-api

Use Stereolabs sensors such as ZED 2, ZED 2i, ZED X, ZED Mini, ZED X Mini from Java.

Primary LanguageJavaApache License 2.0Apache-2.0

zed-java-api

zed-java-api provides Java JNI bindings for ZED SDK. The bindings are based on zed-c-api.

Currently compatible with ZED SDK 4.1.x.

Allows you to use Stereolabs sensors such as ZED 2, ZED 2i, ZED X, ZED Mini, ZED X Mini from Java.

Usage

zed-java-api requires ZED SDK to be installed on the system. Download ZED SDK for your system from here. You do not need to install zed-c-api, just ZED SDK.

Supported platforms:

  • Linux (Ubuntu 20.04+ or similar x86_64)
  • Linux, NVIDIA Jetson (L4T R35.3+ arm64)
  • Windows (Windows 10+ x86_64)

Requires Java 17.

Gradle

dependencies {
  implementation("us.ihmc:zed-java-api:4.1.4")
}

Maven

<dependencies>
  <dependency>
    <groupId>us.ihmc</groupId>
    <artifactId>zed-java-api</artifactId>
    <version>4.1.4</version>
  </dependency>
</dependencies>

Setup

You must manually load the library first before using it.

ZEDJavaAPINativeLibrary.load();

Ensure this test runs on your machine before proceeding.

OpenCV Demo

A basic demo to display the images read from the camera is located in DemoImageCaptureOpenCV.java.