nokhwa
bardecoder
nokhwa | bardecoder | |
---|---|---|
7 | 3 | |
445 | 259 | |
- | - | |
5.3 | 4.9 | |
17 days ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nokhwa
-
Have you seen my "Camerata" lib?
Based on nokhwa rust crate.
-
Error while building: "perhaps two different versions of crate `image` are being used?"
It looks like the issue is with nokhwa. There are three open issues that reference the error: 72, 94 and 100. It looks like someone had luck switching from NV12 to YUYV after opening the stream but then I think you might end up with issue 90 where everything is pink so hyperbacked will infinitely loop waiting for an image since it can't actually read anything. The YUYV issue might have been fixed but the crate has been failing to build since the last release. That rules out setting the dependency to use the git repository. I think you just need to wait for a new release of nokhwa that fixes the issues but I don't know when that will be.
- Nannou β An open-source creative-coding framework for Rust
- Nokhwa 0.10 Released - Simple to use Cross Platform Rust Library for Powerful Webcam/Camera Capture
-
Rust and C
It is pretty painful and requires so much unsafe but I think the "not needing to deal with bindgen" and the Rust exclusive features make it worth it. If you need an example check out https://github.com/l1npengtul/nokhwa/tree/0.9.2/nokhwa-bindings-windows
- Nokhwa 0.4.3 - Webcam support for WebAssembly, MediaFoundation(Windows), AVFoundation(MacOS), and more!
bardecoder
-
Error while building: "perhaps two different versions of crate `image` are being used?"
The bardecoder library is responsible for the detection so it may be worth looking at the issues to see if someone has reported what you are experiencing. There is a report of it not working on a Mac but it may just be related to a specific code.
-
What's everyone working on this week (11/2023)?
I'm just learning Rust and I thought it would be a good exercise to try to create a wasm version of some existing crates. I picked the bardecoder crate (for scanning QR codes from an image) and also included the image and base64 crates. I expected those crates to have some code or dependency that made building a wasm hard, but it just compiled without any errors. That's defenitely a new (positive) experience as a programmer...
What are some alternatives?
hyperbacked - π Superbacked, but in Rust
xqr-rs - eXtended QR Code implmentation in Rust
OpenFrameworks - openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
rust-sdl2 - SDL2 bindings for Rust
higher-free-macro - A macro that allows to conjure a Free Monad for every Functor. This builds on the traits from the higher crate, and re-exports said crate.
quil - Main repo. Quil source code.
qrcode.show - [WORKING PROTOTYPE] Generate QR code easily for free - QR Code Generation as a Service
p5nim - πΈπ p5nim: processing for nim through p5js
crates.io - The Rust package registry
glicol - Graph-oriented live coding language and music/audio DSP library written in Rust
bardecoder-wasm - Wrapper around bardecoder that creates a WebAssembly version to scan barcodes and qr codes