MCPcopy Index your code
hub / github.com/dignifiedquire/quircs

github.com/dignifiedquire/quircs @v0.10.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.3 ↗ · + Follow
117 symbols 249 edges 8 files 15 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

quircs

QR Scanner in Rust.

Crates.io version

Download

docs.rs docs

CI status

API Docs | Releases

Ported from quirc.

Example

// open the image from disk
let img = image::open("tests/data/Hello+World.png").unwrap();

// convert to gray scale
let img_gray = img.into_luma();

// create a decoder
let mut decoder = quircs::Quirc::default();

// identify all qr codes
let codes = decoder.identify(img_gray.width() as usize, img_gray.height() as usize, &img_gray);

for code in codes {
    let code = code.expect("failed to extract qr code");
    let decoded = code.decode().expect("failed to decode qr code");
    println!("qrcode: {}", std::str::from_utf8(&decoded.payload).unwrap());
}

CLI Example

$ cargo build --release --example qrtest
$ qrtest <path-to-image>

Core symbols most depended-on inside this repo

take_bits
called by 12
src/decode.rs
perspective_map
called by 10
src/identify.rs
fitness_cell
called by 8
src/identify.rs
bits_remaining
called by 8
src/decode.rs
decode
called by 7
src/decode.rs
fitness_ring
called by 5
src/identify.rs
identify
called by 5
src/identify.rs
clear
called by 4
src/quirc.rs

Shape

Function 76
Class 19
Method 16
Enum 6

Languages

Rust100%

Modules by API surface

src/identify.rs44 symbols
src/decode.rs28 symbols
src/quirc.rs20 symbols
tests/quircs.rs10 symbols
examples/qrtest.rs10 symbols
src/version_db.rs3 symbols
src/error.rs2 symbols

For agents

$ claude mcp add quircs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact