oli-obk / camera_capture Goto Github PK
View Code? Open in Web Editor NEWCrate for capturing images from a webcam
Crate for capturing images from a webcam
The source only distinguishes between unix
and windows
and for unix
, rscam
is used. But this is just a wrapper around v4l2 which seems to not exist for MacOS?
and mention that osx isn't working yet
On fedora26 the entry for pkg-config
isn't automatically populated with package information. So some additional docs in how to link libv4l2
would be helpful.
Hi there,
i tried the examples and got the following results:
cargo run --example glium
: "An error occured: Webcam thread was killed or did not responded for 500ms. Stopping."cargo run --example hello_camera
: "thread 'main' panicked at 'called Result::unwrap()
on an Err
value: InvalidFps([0.0, 0.0])', src/libcore/result.rs:997:5" (looks like #18)cargo run --example take_picture
: "thread 'main' panicked at 'called Result::unwrap()
on an Err
value: InvalidFps([0.0, 0.0])', src/libcore/result.rs:997:5" (also looks like #18)Cheers,
tpltnt
CouldNotLoadEscapiDLL(126) shows up when running your example from the readme. The program does work if I get the escapi.dll and put it in the same folder as the exe, however I only want to have one file. Is it possible to inject the escapi.dll inside of the exe with rust?
Hi there,
the piston example panics when executed.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidFps([0.0, 0.0])', src/libcore/result.rs:997:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
The offending line seems to be imgthread.join().unwrap();
. Note that #17 is related but does not fix this panic.
Cheers,
tpltnt
Does it work for FullHD 30 fps MJPEG webcam?
My webcam's default capture option is YUV at 5 fps, the only other option is 30 fps as MJPEG. When I use escapi it always chooses the 5 fps because it's the default.
Does this crate support choosing the non-default 30 fps with mjpeg? :)
Does it work at least on linux?
It's a dependency problem with piston:
error: Could not compile `piston2d-gfx_graphics`.
It's 72 times the same error:
Use of undeclared type or module `gfx`
Exact command to reproduce:
cargo run --release --example hello_camera
My system is an Ubuntu x86_64 with libv4l-dev
installed and a webcam which is known to work with other programs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.