Registry / other / nokhwa

nokhwa

JSON →
library0.10.10rscratesunverified

A Simple-to-use, cross-platform Rust Webcam Capture Library.

# Cargo.toml [dependencies] nokhwa = "0.10.10"
INSTALL
IMPORT
SIG · NOKHWA
N
nokhwa
otherrustv0.10.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Camera
use nokhwa::Camera;

Open the first camera and capture a frame.

use nokhwa::Camera; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut camera = Camera::new(0, None)?; camera.open()?; let frame = camera.frame()?; println!("Captured frame: {:?}", frame); Ok(()) }
Debug
Known issues
gotchaRequires platform-specific backends (e.g., v4l on Linux, AVFoundation on macOS).
fix
Install system libraries: libv4l-dev on Debian/Ubuntu.
affects: >=0.10.0
Upgrade
Version history
0.10.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
nokhwa — cargo add nokhwa · libregistry