# DanBloomberg/leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica.  See leptonica.org for more documentation.

Repository: https://github.com/DanBloomberg/leptonica
Canonical: https://ross.abutalabs.com/products/leptonica
Language: C
License: NOASSERTION
License Family: other
Last push: 2026-08-04T12:34:56+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 30, longevity 100
- inputs: {"age_days": 3885, "days_push": 29, "days_rel": 252, "gap_med": 216.5, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2074, forks 434 (observed 2026-08-28T04:06:10.547209+00:00)

## What it is
Leptonica is an open-source C library providing a broad set of image processing and image analysis operations, with a focus on document images. It underpins engines like Tesseract and includes I/O for common image formats, morphology, transforms, and page-layout analysis utilities.

## Use cases
- preprocess scanned document images for OCR
- binarize and dewarp page images
- perform morphological operations on binary and grayscale images
- convert images to PDF or Postscript
- detect skew and orientation of text images
- read and write png, jpeg, tiff, and webp images in C
- segment mixed text-and-image page layouts

## When to choose
- you need a fast, low-level C image processing library for document analysis
- you are building or integrating with Tesseract OCR
- you need fine-grained control over binarization, morphology, and connected components

## When to avoid
- you want a high-level API with GPU acceleration or deep-learning models
- you need modern color image editing or photo manipulation features
- you prefer a managed-language library with native bindings and rich tooling

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, computer-vision, ocr, pdf, graphics
- domain: image-processing, computer-vision, developer-tools
- platform: windows, cross-platform, cpp, c
- tags: document-image-analysis, c-library, tesseract-dependency, binarization, morphology, linux, macos

## Member repositories
- DanBloomberg/leptonica (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:10.547209+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:19.983544+00:00, confidence not recorded.
  - readme: https://github.com/DanBloomberg/leptonica (fetched 2026-08-28T04:06:10.547209+00:00, sha 84514540a6c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
