Open mostafamshkfides opened 1 year ago
Did you specify in the Cargo.toml the input? For example
nokhwa = {version = "0.10.4", features = ["input-native"]}
I didn't and was getting the error "This operation is not implemented yet: Platform requirements not satisfied. (No Selection)" when running:
// make the camera let mut camera = match Camera::new(camera_index, requested){ Ok(t) => {t}, Err(e) => {println!("Camera creation error:\n{}", e); return;}, };
But adding the input in the cargo.toml file helped, added the answer to grepper, thank you!
Hey guys, I'm trying to build and run a simple Cargo project that uses this crate to capture a frame with my laptop camera. I'm using ubuntu 22.04 LTS as my OS and this is my code in
main.rs
:But when I run
cargo run --release
, I got this error :and I can't figure it out. I would appreciate it if you can help me.