Skip to content

My shot at generating rust bindings for opencv

Notifications You must be signed in to change notification settings

erezny/opencv-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust OpenCV bindings

This is my shot at generating Rust bindings for OpenCV.

This is absolutely not ready for prime time.

Instead of binding the deprecated C-compatible interface, I chose to mimick the python and java wrappers: parsing C++ headers, generating a C interface to the C++ api, and wrapping this in Rust.

Current progress, notes and todo list

Stuff that work (with examples):

  • video capture
  • conversions
  • orb detection (and probably description too)

Notes for my later self:

  • Are there any other modules that should be added to the list ? Can I disco them ?
  • Working with cv 2 here. What about version 3 ?
  • Safe high-level Rust interface could be nicer
  • No tests
  • Discovered some troublesome types in flann. They do not conform to cv convention, so I think I'll just wrap them by hand and feedback their existence somehow to the generator.

About

My shot at generating rust bindings for opencv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 99.6%
  • C 0.4%