leptess

Library Listed Dormant

Productive Rust binding for Tesseract and Leptonica.

Checked · Sources

Downloads
16,918
Dependents
14
Stars
286
Forks
29
Contributors
7
Commits
111
Latest release
0.14.0 ·

About

From the project README ·

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.

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.

leptess beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
leptess This page Listed Dormant

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
tesseract-rs Listed Dormant

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

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! - 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

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 days
  • dormancy: last activity 2023-09-13, 1153 days ago, E = 365: dormant
  • featured: 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 stable
  • listed: 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
Adoption6 active dependents, 5 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents6crates.io database dumpYes
New dependents (365 days)5crates.io database dumpYes
Peak active dependents9crates.io database dumpYes
Active dependents as a share of the peak0.95crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 3 years ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2023-09-13GitHub repositoryYes
Latest release2023-02-21crates.io database dumpYes
First release2019-06-02crates.io database dumpYes
Latest version0.14.0crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution27 releases, 16,918 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases27crates.io database dumpYes
Downloads over 30 days16918crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository286 stars, 29 forks, 7 contributors, 111 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars286GitHub repositoryYes — one part of the repository route
GitHub forks29GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account7GitHub contributorsYes — one part of the repository route
Commits on the default branch111GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: leptonica-sys, tesseract-syscrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly14crates.io database dumpNo

Corrections and review history

Report a correction

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.