# otiai10/gosseract

Go package for OCR (Optical Character Recognition), by using Tesseract C++ library

Repository: https://github.com/otiai10/gosseract
Canonical: https://ross.abutalabs.com/products/gosseract
Homepage: https://pkg.go.dev/github.com/otiai10/gosseract
Language: Go
License: MIT
License Family: permissive
Topics: go, tesseract, tesseract-ocr, ocr, ocr-server
Last push: 2026-01-16T16:26:55+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 62, release rhythm 8, longevity 100
- inputs: {"age_days": 4709, "days_push": 229, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3130, forks 306 (observed 2026-08-28T04:07:45.480404+00:00)

## What it is
gosseract is a Go package that provides OCR (Optical Character Recognition) by binding to the Tesseract C++ library via cgo. It lets Go applications extract text from images with a simple client API.

## Use cases
- extract text from images in go
- run ocr on scanned documents
- read text from png screenshots
- build a go service that does ocr with tesseract
- convert image-based pdfs to text

## When to choose
- you are writing a Go application and need OCR via Tesseract
- you want a thin, well-maintained Go binding to libtesseract
- you need cross-platform OCR support including Linux, macOS, and Windows

## When to avoid
- you want a pure-Go OCR implementation without cgo or native Tesseract dependencies
- you need a ready-made OCR HTTP server rather than a library (use ocrserver instead)
- you need modern deep-learning-based OCR accuracy beyond what Tesseract provides

## Facets
- artifact type: library
- maturity: active
- function: ocr, image-processing
- domain: computer-vision, image-processing, developer-tools
- platform: windows, go
- tags: tesseract, cgo, text-extraction, leptonica, linux, macos, docker

## Member repositories
- otiai10/gosseract (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.480404+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-30T07:26:16.877182+00:00, confidence not recorded.
  - readme: https://github.com/otiai10/gosseract (fetched 2026-08-28T04:07:45.480404+00:00, sha 1d7ff6e5dd0e)
  - homepage: https://pkg.go.dev/github.com/otiai10/gosseract (fetched 2026-08-29T09:41:03.300634+00:00, sha 11b0ebe61e96)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:41:03.310069+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:41:03.312352+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
