Skip to content

gluonhq/cameracapture

Repository files navigation

camera capture

A Java interface for capturing camera frames natively. The interface from Java to the native code is generated with jextract.

Requirements

Linux

We use libv4l2 to detect the camera and capture frames. Make sure you have the libv4l2 developer package installed for your linux distribution.

macOS

The implementation for macOS relies on the AVFoundation framework.

Windows

The Windows implementation uses Windows Media Framework. Running cmake should be done from within a Developer Command Prompt for Visual Studio.

Compiling the project

You can use the Makefile for compiling the project. It requires the following environment variables to be set:

  • JAVA_HOME: path to a JDK 22 (or later) installation folder
  • JEXTRACT: path to the jextract installation folder

Run make to build the project:

make install

About

Capturing camera output natively

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •