nokhwa
nokhwa copied to clipboard
Cross Platform Rust Library for Powerful Webcam/Camera Capture
Various callbacks in this crate are defined with fn pointers, e.g.: ```rust pub fn nokhwa_initialize(on_complete: fn(_: bool)); ``` This prevents passing a closure that captures anything, so makes simple patterns...
in `Cargo.toml`: ``` nokhwa = { version = "0.9", optional = true, default-features = false, features = [ "decoding", "flume", "input-v4l", "input-msmf", "input-avfoundation", "output-threaded" ] } ``` when running `cargo...
Hi, thank you for maintaining this crate! It seems there is `symbol(s) not found for architecture arm64` when building on a MacBook with an M1 processor (update: the same issue...
CameraControl revamp in order to support more controls
OS: 12.3.1 (21E258) Machine: MacBook Pro (13-inch, M1, 2020) rustc: 1.61.0 (fe5b13d68 2022-05-18) I execute this command: ``` nokhwa/examples/capture on senpai via 🦀 v1.61.0 ❯ cargo run --features "input-avfoundation"...
``` Compiling nokhwa-bindings-windows v0.3.4 (https://github.com/l1npengtul/nokhwa?branch=senpai#41abb00f) error[E0432]: unresolved import `windows::Win32::Foundation::PWSTR` --> C:\Users\avlin\.cargo\git\checkouts\nokhwa-66b597f0abb1b795\41abb00\nokhwa-bindings-windows\src\lib.rs:382:13 | 382 | Foundation::PWSTR, | ^^^^^^^^^^^^^^^^^ no `PWSTR` in `Windows::Win32::Foundation` error: could not compile `nokhwa-bindings-windows` due to previous error...
Hi, first of all, thanks for the awesome library. I published a project using this library: https://github.com/sayanarijit/qrscan which runs fine on Linux. However, as [reported by a windows user](https://github.com/sayanarijit/qrscan/issues/7), it...
OS: MacOS 12.3.1 Hardware: Apple Macbook Pro (14 inch, 2021), M1 Pro Chip Rust Version: rustc 1.62.0 (a8314ef7d 2022-06-27) Nokhwa Commit: 5a8d9c3 (0.9.4) Example invocation: ``` cargo run --release --features...
I can't get frame from camera, it says ``` ReadFrameError("Input/output error (os error 5)")' ``` after like 15-30 seconds on this line: ```rust let frame = camera.frame().unwrap(); ``` I'm on...
I'm trying to port a library I wrote from my custom V4L2 bindings (https://github.com/SludgePhD/LinuxVideo) to nokhwa and am seeing reduced performance: ``` [2022-05-01T12:53:43Z DEBUG zaru::webcam] trying #3 'Logitech BRIO' (Video4Linux...