Skip to content
matthewjbergerPublic

About

A cross-platform camera library for RustπŸ¦€

Resources

Stars

11 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cameras

A cross-platform camera library for Rust, plus first-class UI-framework integrations.

github license

Recording.2026-04-15.051232.mp4

Crates

Crate crates.io docs.rs Purpose
cameras crates.io docs.rs Enumerate, probe, open, and stream cameras. macOS (AVFoundation), Windows (Media Foundation), Linux (V4L2). Optional RTSP.
dioxus-cameras crates.io docs.rs Hooks + components for using cameras inside a Dioxus desktop app. WebGL2 preview rendering.
egui-cameras crates.io docs.rs Helpers for using cameras inside an egui / eframe app. Frame-to-texture conversion.

Each integration crate is thin; almost everything lives in cameras itself (cameras::pump, cameras::source, cameras::monitor, etc.). The integration crates just bridge a running cameras::pump::Pump to the target UI framework's texture / canvas model.

Layout

cameras/
β”œβ”€β”€ crates/
β”‚   β”œβ”€β”€ cameras/         ← the core library
β”‚   β”œβ”€β”€ dioxus-cameras/  ← Dioxus integration
β”‚   └── egui-cameras/    ← egui integration
└── apps/
    β”œβ”€β”€ dioxus-demo/      ← multi-stream grid, USB + RTSP sources
    └── egui-demo/        ← single-stream viewer with pause / snapshot

Demos

just run-dioxus   # Dioxus desktop app: multi-stream grid, USB + RTSP
just run-egui     # egui / eframe app: single-stream viewer + snapshot

Versioning

All three crates ship in lockstep on the same major + minor version. Use matching minor versions across your Cargo.toml when depending on them.

Publishing

just publish       # cameras
just publish-dx    # dioxus-cameras
just publish-egui  # egui-cameras

License

Dual-licensed under either of

at your option.

About

A cross-platform camera library for RustπŸ¦€

Resources

Stars

11 stars

Watchers

0 watching

Forks

Contributors

Languages