capture-session

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Camera capture session lifecycle example.

Demonstrates the complete Camera2 capture pipeline: creating a manager, listing cameras, reading characteristics, opening a device with callbacks, creating a capture request and session, starting a repeating request, and orderly cleanup. A sync.WaitGroup gates the repeating-request call until the session reports ready.

Because the camera pipeline requires an ANativeWindow from an Android Surface, this example documents the window-dependent steps in comments and executes only the steps that work without a live Surface.

Prerequisites:

  • Android device with API level 24+.
  • android.permission.CAMERA must be granted at runtime.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL