cv
Library Listed Dormant
Batteries-included pure-Rust computer vision crate
- Downloads
- 131
- Dependents
- 0
- Stars
- 1,069
- Forks
- 68
- Contributors
- 12
- Commits
- 816
- Latest release
- 0.6.0 ·
About
Rust CV
Rust CV is a project to implement computer vision algorithms, abstractions, and systems in Rust. #[no_std] is supported where possible.
Documentation
Each crate has its own documentation, but the easiest way to check all of the documentation at once is to look at the docs for the cv batteries-included crate.
Check out our tutorial book here! The book source for the tutorials can be found in the tutorial directory of the repository. The example code used in the tutorial can be found in the tutorial-code directory. The resources for tutorials can be found in the site res directory.
About
This repository contains all computer vision crates for Rust CV in a mono-repo, including utilities as well as libraries. When updating libraries, all the crates in this repository should build for a PR to be accepted. Rust CV also maintains some other crates that are related to Computer Vision as well, which are located in the GitHub organization, not in this repository.
Each crate has its own associated license. Rust CV is comprised of different open source licenses, mostly MIT. See the crate directories (or their crates.io entries) for their individual licenses.
Read the full README
Each library was originally its own separate repository before being incorporated into the mono repo. The old repositories that are now in this repo are all archived, but still exist to find tagged versions, assocated commits, and issues. All new PRs should be made to this repository.
What is computer vision
Many people are familiar with covolutional neural networks and machine learning (ML) in computer vision, but computer vision is much more than that. Computer vision broadly encompases image processing, photogrammetry, and pattern recognition. Machine learning can be used in all of these domains (e.g. denoisers, depth map prediction, and face detection), but it is not required. Almost all of the algorithms in this repository are not based on machine learning, but that does not mean you cannot use machine learning with these tools. Please take a look at https://www.arewelearningyet.com/ for Rust ML tools. We may expand into ML more in the future for tasks at which ML outperforms statistical algorithms.
Build
Be sure to have installed rust: . The following packages will be needed on Ubuntu 20.04 (Built using Rust 1.53.0):
- Cmake
sudo apt install cmake
- build-essential
sudo apt-get install build-essential
- freetype2
sudo apt-get install libfreetype-dev
- libxkbcommon
sudo apt install libxkbcommon-dev
If you have not already done so, install Rust:
curl https://sh.rustup.rs -sSf | sh
Clone and Build
cd <directory to keep cloned repo>
git clone https://github.com/rust-cv/cv.git
cd cv
cargo build
Goals
One of the first things that Rust CV focused on was algorithms in the domain of photogrammetry. Today, Rust now has enough photogrammetry algorithms to perform SfM and visual SLAM. Weakness still exists within image processing and pattern recognition domains.
Here are some of the domains of computer vision that Rust CV intends to persue along with examples of the domain (not all algorithms below live within the Rust CV organization, and some of these may exist and are unknown to us; some things may have changed since this was last updated):
- [ ] Image processing (Wikipedia)
- [ ] Diffusion & blur
- [x] Gaussian blur (Wikipedia)
- [ ] Fast Explicit Diffusion (FED) (implementation exists within
akazecrate)
- [ ] Contrast enhancement
- [ ] Normalization (Wikipedia)
- [x] Histogram equalization (Wikipedia)
- [x] Edge detection (Wikipedia) & gradient extraction (Wikipedia)
- [x] Scharr filters (exists within
akazecrate) - [x] Sobel filter (Wikipedia)
- [x] Canny edge detector (Wikipedia)
- [x] Scharr filters (exists within
- [x] Perceptual hash (Wikipedia)
- [ ] Diffusion & blur
- [ ] Photogrammetry
- [ ] Feature extraction (Wikipedia)
- [ ] Camera models and calibration (both from and to image coordinates from bearings)
- [ ] Pinhole Camera (Wikipedia)
- [x] Skew, focals, and principle point
- [ ] Kn radial distortion (Wikipedia)
- [x] K1 radial distortion
- [ ] K1-K6 radial distortion
- [ ] Fisheye Camera (Wikipedia)
- [ ] Skew, focals, and principle point
- [ ] K1-K4 fisheye distortion (same as OpenCV)
- [ ] Equirectangular (Wikipedia)
- [ ] Pinhole Camera (Wikipedia)
- [ ] Matching (Wikipedia)
- [x] Descriptor matching strategies
- [x] Brute force (for camera traking with binary features)
- [x] HGG (for loop closure)
- [x] HNSW (for loop closure)
- [ ] Filtering strategies
- [ ] Symmetric matching/uniquely best match (exists within cv-sfm, but not reusable)
- [ ] Lowe's ratio test matching
- [x] Descriptor matching strategies
- [ ] Geometric verification (utilized abstractions in sample-consensus)
- [ ] Consensus algorithms
- [ ] Estimation algorithms
- [x] P3P (Wikipedia)
- [x] Lambda Twist
- [x] Motion estimation (Wikipedia)
- [x] Eight Point (Wikipedia)
- [ ] Nister-Stewenius (basically done, but not packaged up)
- [x] P3P (Wikipedia)
- [ ] Models
- [x] Essential matrix (Wikipedia)
- [x] With residual for feature matches
- [x] Pose of world relative to camera (Wikipedia)
- [x] With residual for feature to world matches
- [x] Relative pose of camera (Wikipedia)
- [ ] With residual for feature matches
- [ ] Homography matrix (Wikipedia)
- [ ] With residual for feature matches
- [ ] Trifocal Tensor (Wikipedia)
- [ ] With residual for three-feature matches (not currently in cv-core, as there is no trifocal tensor yet)
- [x] Essential matrix (Wikipedia)
- [ ] PnP (estimation, outlier filtering, and optimization) (incomplete)
- [ ] Image registration (Wikipedia)
- [ ] Real-time depth-map estimation (for direct visual odometry algorithms that require it) (Wikipedia)
- [ ] Visual concept detection (used for loop closure)
- [X] Bag LSH/Simhash for binary features
- [ ] Bag of Visual Words (BoW, see Wikpedia article)
- [ ] Second order occurence pooling (as per the paper "Higher-order Occurrence Pooling for Bags-of-Words: Visual Concept Detection")
- [ ] Fisher vector encoding
- [ ] Learned place recognition (also see pattern recognition domain below)
- [ ] Reconstruction (Wikipedia)
- [ ] Visibility graph (Wikipedia)
- [ ] Graph optimization
- [ ] Loop closure (Wikipedia)
- [ ] Exporting (point cloud Wikipedia)
- [ ] To NVM file
- [ ] To PLY file (Wikipedia)
- [ ] Post-reconstruction depth-map estimation (for reconstruction post-processing) (Wikipedia)
- [ ] Densification
- [ ] Using more extracted features
- [ ] Using curvature maximas (as per "VITAMIN-E: VIsual Tracking And MappINg with Extremely Dense Feature Points")
- [ ] Using patch-match (Wikipedia) and depth-map
- [ ] Using depth-map only with edge detection
- [ ] Using more extracted features
- [ ] Meshing (Wikipedia)
- [ ] Delaunay triangulation
- [ ] Filtered with NLTGV minimization (as per "VITAMIN-E: VIsual Tracking And MappINg with Extremely Dense Feature Points")
- [ ] Poisson surface reconstruction (Wikipedia)
- [ ] Surface refinement
- [ ] Texturing (related Wikipedia)
- [ ] Delaunay triangulation
- [ ] Pattern recognition
- [x] k-NN search
- [x] Brute force
- [x] HGG (for loop closure)
- [x] HNSW
- [x] FLANN
- [ ] Face recognition (Wikipedia)
- [ ] Articulated body pose estimation (Wikipedia)
- [ ] Object recognition (Wikipedia)
- [ ] Place recognition (can assist in MVG)
- [ ] Segmentation (Wikipedia)
- [ ] Semantic segmentation mapping (see this blog post)
- [x] k-NN search
To support computer vision tooling, the following will be implemented:
- [ ] Point clouds (Wikipedia)
Credits
TheiaSfM and all of its authors can be thanked as their abstractions are direct inspiration for this crate. In some cases, the names of some abstractions may be borrowed directly if they are consistent. You can find the TheiaSfM documentation here.
"Past, Present, and Future of Simultaneous Localization And Mapping: Towards the Robust-Perception Age" is an excellent paper that compiles information about modern SLAM algorithms and papers.
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- MIT
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
Batteries-included pure-Rust computer vision crate |
131 downloads over 30 days | 0 | 1,069 | 0.6.0 | GPU support unknown | No native code found | MIT |
|
opencv-rust Featured
Rust bindings for OpenCV |
262,425 downloads over 30 days | 96 | 2,500 | 0.101.1 | GPU support unknown | Build uses a native toolchain: cc, pkg-config, vcpkg | MIT |
|
visioncortex Listed
Semantic Computer Vision |
62,153 downloads over 30 days | 16 | 125 | 0.9.3 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
kornia-rs Listed
Low-level computer vision library in Rust |
2,294 downloads over 30 days | 6 | 751 | 0.1.5 | CUDA | Binds native code: glib-sys (feature gstreamer), gobject-sys (feature gstreamer), gstreamer-app-sys (feature gstreamer), gstreamer-base-sys (feature gstreamer), gstreamer-sys (feature gstreamer) and 1 more | Apache-2.0 |
|
Type conversions among famous Rust computer vision libraries |
298 downloads over 30 days | 1 | 56 | 0.26.0 | CUDA | Binds native code: torch-sys (feature docs-only) | MIT |
|
An open-source computer vision framework to build and deploy applications in minutes Python bindings |
1 downloads over 30 days | 0 | 855 | 1.11.0 | GPU support unknown | Binds native code: gio-sys, glib-sys, gobject-sys, gstreamer-app-sys, gstreamer-base-sys and 5 more | Apache-2.0 |
Why ListedNo archive, New or Featured rule places it, so it is Listed.
What it lacks for Featured
- It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 1,069 stars, 68 forks and 12 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
- The project is dormant and not finished. Dormancy rule
What else the check found
- The last activity is on 22 Jul 2025, 475 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy rule
- The oldest outside issue waits 1899 days for a reply, past the limit of 270. No maintainer replied in 365 days. Rot signals rule
Not measured: Latest release fails cargo check.
Exact rules: Listed, Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.6.0 base 140, raised to the 365-day floor: E = 365 daysdormancy: last activity 2025-07-22, 475 days ago, E = 365: dormantrot: oldest unanswered issue 1899 days (limit 270), no maintainer reply in 365 daysfeatured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 1069 (needs 4539), forks 68 (needs 434), contributors 12 (needs 79); dormant and not stablelisted: listed: no archive, new or featured rule applies
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 0 | crates.io database dump | Yes | |
| New dependents (365 days) | 0 | crates.io database dump | Yes | |
| Peak active dependents | 0 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 15 months ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2025-07-22 | GitHub repository | Yes | |
| Latest release | 2020-06-23 | crates.io database dump | Yes | |
| First release | 2020-04-04 | crates.io database dump | Yes | |
| Latest version | 0.6.0 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 1899 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 0 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution6 releases, 131 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 6 | crates.io database dump | Yes | |
| Downloads over 30 days | 131 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository1,069 stars, 68 forks, 12 contributors, 816 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 1069 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 68 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 12 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 816 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 0 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.