leptess
Library Listed Dormant
Productive Rust binding for Tesseract and Leptonica.
- Downloads
- 16,918
- Dependents
- 14
- Stars
- 286
- Forks
- 29
- Contributors
- 7
- Commits
- 111
- Latest release
- 0.14.0 ·
About
Productive and safe Rust bindings/wrappers for Tesseract and Leptonica.
Build dependencies
Make sure you have clang, Leptonica and Tesseract installed.
Tesseract should be version 4.0.0 or above.
Ubuntu
sudo apt-get install libleptonica-dev libtesseract-dev clang
You will also need to install tesseract language data based on your OCR needs:
sudo apt-get install tesseract-ocr-eng
Mac
brew install tesseract leptonica pkg-config
Windows
On Windows, this library uses Microsoft's vcpkg to provide tesseract.
Please install vcpkg and set up user wide integration or vcpkg crate won't be able to find the library.
To install tesseract:
REM from the vcpkg directory
REM 32 bit
.\vcpkg install tesseract:x86-windows
REM 64 bit
.\vcpkg install tesseract:x64-windows
To run the tests configure vcpkg-crate to find the tesseract library:
SET VCPKGRS_DYNAMIC=true
cargo test
Usage
let mut lt = leptess::LepTess::new(None, "eng").unwrap();
lt.set_image("path/to/page.bmp");
println!("{}", lt.get_utf8_text().unwrap());
For more examples, see docs and examples directory.
To run demos in examples directory, try:
cargo run --example low_level_ocr_full_page
Read the full README
Development
To run tests, you will need at Tesseract 4.x or 5.x to match what we have in
tests/tessdata/eng.traineddata. See GitHub config actions to see how to replicate
the setup.
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- Required
- Binds native code: leptonica-sys, tesseract-sys
- 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 |
|---|---|---|---|---|---|---|---|
|
Productive Rust binding for Tesseract and Leptonica. |
16,918 downloads over 30 days | 14 | 286 | 0.14.0 | GPU support unknown | Binds native code: leptonica-sys, tesseract-sys | MIT |
|
oar-ocr Listed
An Optical Character Recognition (OCR) and Document Layout Analysis library written in Rust. |
34,387 downloads over 30 days | 9 | 204 | 0.10.2 | CUDA, WebGPU, Metal | Binds native code: ort-sys | Apache-2.0 |
|
Higher-level bindings for Tesseract OCR |
24,101 downloads over 30 days | 12 | 176 | 0.15.2 | GPU support unknown | Binds native code: tesseract-sys, leptonica-sys | MIT |
|
rust-paddle-ocr Listed
A lightweight and efficient OCR library based on PaddleOCR models, using the MNN inference framework for high-performance text detection and recognition |
2,742 downloads over 30 days | 5 | 346 | 2.4.1 | CUDA, Metal, Vulkan | Build uses a native toolchain: bindgen, cc, cmake | Apache-2.0 |
|
rusto-rs New
RustO! - Pure Rust OCR library based on RapidOCR with PaddleOCR engine |
1,618 downloads over 30 days | 1 | 127 | 0.3.2 | CUDA, Metal, Vulkan | Binds native code: rusto-mnn-sys. Build uses a native toolchain: bindgen, cc, cmake | MIT |
|
franken_ocr New
Pure-Rust, CPU-hyper-optimized runner for the Baidu Unlimited-OCR model (single-binary CLI: focr) |
40 downloads over 30 days | 0 | 346 | 0.9.0 | GPU support unknown | No native code found | Not measured |
Why ListedNo archive, New or Featured rule places it, so it is Listed.
What it lacks for Featured
- It has 6 active dependents and 5 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 286 stars, 29 forks and 7 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 13 Sep 2023, 1153 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy 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.14.0 base 140, raised to the 365-day floor: E = 365 daysdormancy: last activity 2023-09-13, 1153 days ago, E = 365: dormantfeatured: not featured: active_users 6 < 11 and new_adopters 5 < 9 and repository route stars 286 (needs 4539), forks 29 (needs 434), contributors 7 (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
Adoption6 active dependents, 5 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 6 | crates.io database dump | Yes | |
| New dependents (365 days) | 5 | crates.io database dump | Yes | |
| Peak active dependents | 9 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 0.95 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 3 years ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2023-09-13 | GitHub repository | Yes | |
| Latest release | 2023-02-21 | crates.io database dump | Yes | |
| First release | 2019-06-02 | crates.io database dump | Yes | |
| Latest version | 0.14.0 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 0 | 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 |
Distribution27 releases, 16,918 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 27 | crates.io database dump | Yes | |
| Downloads over 30 days | 16918 | 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 |
Repository286 stars, 29 forks, 7 contributors, 111 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 286 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 29 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 7 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 111 | 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 | Binds native code: leptonica-sys, tesseract-sys | 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 | 14 | 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.