Image recognition with rust

Hello, I am wondering if there is anything in rust that can do image recognition, for example if I have a picture with four numbers on it, I want to make the program recognise the numbers, without the user actually inputting the numbers, My friend did something similar in python with opencv, So I thought i could also do it in rust, I know there are image library for processing images, but recognition is what I am curious about

Rust has opencv bindings. Also tensorflow and torch bindings and the pure Rust burn library, if you prefer to use deep learning for your recognition task.

1 Like

For recognizing ASCII text and numbers in images specifically, you can try ocrs (Disclaimer: I am the maintainer).

For more general detection of things in images, look for examples related to object detection in the repositories for Rust ML libraries. For example there are YOLO examples in the Candle and Tract repos.

Also OpenCV bindings are obviously a good place to start if you're trying to translate Python code that uses it.

1 Like