• Stars
    star
    834
  • Rank 54,676 (Top 2 %)
  • Language
    Rust
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rust CV mono-repo. Contains pure-Rust dependencies which attempt to encapsulate the capability of OpenCV, OpenMVG, and vSLAM frameworks in a cohesive set of APIs.

Rust CV

Discord Crates.io docs.rs LoC Tests Lints

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.

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):

To support computer vision tooling, the following will be implemented:

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.

More Repositories

1

hnsw

HNSW ANN from the paper "Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs"
Rust
220
star
2

ndarray-vision

Computer vision library built on top of ndarray
Rust
64
star
3

levenberg-marquardt

Provides abstractions to run Levenberg-Marquardt optimization
Rust
50
star
4

nshare

Provides an interface layer to convert between n-dimensional types in different Rust crates
Rust
46
star
5

space

Spatial library for Rust
Rust
39
star
6

cv-core

Rust computer vision core crate
Rust
27
star
7

p3p

Camera pose estimation given 3D points and corresponding pixel coordinates
Rust
18
star
8

arrsac

Implements ARRSAC from the paper "A Comparative Analysis of RANSAC Techniques Leading to Adaptive Real-Time Random Sample Consensus"
Rust
17
star
9

meetups

16
star
10

rust-cv

A repository to hold information and issues about the rust-cv project as a whole
15
star
11

hgg

Hierarchical Greedy Graph
Rust
14
star
12

ndarray-image

Allows conversion between ndarray's types and image's types
Rust
13
star
13

vslam

An attempt to create a full abstraction of simultaneous localization and mapping in Rust
Rust
11
star
14

bitarray

A compile time sized array of bits
Rust
10
star
15

hwt

Hamming Weight Tree from the paper "Online Nearest Neighbor Search in Hamming Space"
Rust
7
star
16

ennona

Reconstruction Tool for Rust CV
Rust
6
star
17

hamming-lsh

Generates and utilizes deterministic dictionaries to generate balanced locality-sensitive hashes (similar to simhash) for arbitrary hamming space features
Rust
5
star
18

header-vec

Allows one to store a header struct and a vector all inline in the same memory on the heap and share weak versions for minimizing random lookups in data structures
Rust
5
star
19

sample-consensus

Provides abstractions for sample consensus algorithms such as RANSAC
Rust
3
star
20

rfcs

RFCs for designing components of rust computer vision ecosystem
3
star
21

akaze

Implementation of AKAZE based on the one originally by indianajohn
Rust
3
star
22

rust-cv.github.io

Website and resources for Rust CV
HTML
2
star
23

pnp

Perspective-n-Point algorithm
Rust
2
star
24

nister-stewenius

Essential matrix estimation from 5 normalized image coordinate correspondences from the paper "Recent developments on direct relative orientation"
Rust
2
star
25

eight-point

Implements the eight-point algorithm for estimating the essential matrix
Rust
1
star
26

hamming-dict

Generates codeword dictionaries for hamming-space BoW algorithms
Rust
1
star
27

vslam-sandbox

A sandbox for integrating upstream vslam algorithms
Rust
1
star
28

kpshow

A tool to show keypoints in images using different keypoint detection algorithms
Rust
1
star
29

cv-pinhole

Pinhole camera model for Rust CV
Rust
1
star
30

ndarray-vision-benchmarking

Collection of comparative benchmarks between ndarray vision and other libraries
Rust
1
star