Skip to content

Instantly share code, notes, and snippets.

use std::{sync::mpsc::{channel, Sender, Receiver}, thread::{spawn, JoinHandle}, time::Duration};
use anyhow::Result;
use nokhwa::{
pixel_format::{RgbAFormat, RgbFormat},
utils::{RequestedFormat, RequestedFormatType,CameraIndex::Index,Resolution},
Camera,
};
[dependencies]
anyhow = "1"
nokhwa = { version = "0.10.3", features=["input-native", "output-threaded"]}
slint = "*"