{"id":13655812,"url":"https://github.com/ropensci/tesseract","last_synced_at":"2026-02-21T12:01:29.830Z","repository":{"id":54666490,"uuid":"52969562","full_name":"ropensci/tesseract","owner":"ropensci","description":"Bindings to Tesseract OCR engine for R","archived":false,"fork":false,"pushed_at":"2026-01-25T19:02:22.000Z","size":196,"stargazers_count":251,"open_issues_count":17,"forks_count":28,"subscribers_count":15,"default_branch":"master","last_synced_at":"2026-01-26T10:48:37.808Z","etag":null,"topics":["ocr","r","r-package","rstats","tesseract","tesseract-ocr"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/tesseract","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-03-02T14:33:28.000Z","updated_at":"2026-01-25T19:02:25.000Z","dependencies_parsed_at":"2022-08-13T23:20:14.782Z","dependency_job_id":"2cd0cfec-d435-4128-93a8-fa69638180d7","html_url":"https://github.com/ropensci/tesseract","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/tesseract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Ftesseract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Ftesseract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Ftesseract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Ftesseract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/tesseract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Ftesseract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29680147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T11:29:27.227Z","status":"ssl_error","status_checked_at":"2026-02-21T11:29:20.292Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ocr","r","r-package","rstats","tesseract","tesseract-ocr"],"created_at":"2024-08-02T04:00:38.107Z","updated_at":"2026-02-21T12:01:29.809Z","avatar_url":"https://github.com/ropensci.png","language":"R","funding_links":[],"categories":["Librarys","Software","R"],"sub_categories":["OCR libraries by programming language"],"readme":"# tesseract\n\n\u003e Bindings to [Tesseract-OCR](https://opensource.google/projects/tesseract): \n  a powerful optical character recognition (OCR) engine that supports over 100 languages.\n  The engine is highly configurable in order to tune the detection algorithms and\n  obtain the best possible results.\n\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/tesseract)](https://cran.r-project.org/package=tesseract)\n[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/tesseract)](https://cran.r-project.org/package=tesseract)\n\n - Upstream Tesseract-OCR documentation: https://tesseract-ocr.github.io/tessdoc/\n - Introduction: https://docs.ropensci.org/tesseract/articles/intro.html\n - Reference: https://docs.ropensci.org/tesseract/reference/ocr.html\n\n## Hello World\n\nSimple example\n\n```r\n# Simple example\ntext \u003c- ocr(\"https://jeroen.github.io/images/testocr.png\")\ncat(text)\n\n# Get XML HOCR output\nxml \u003c- ocr(\"https://jeroen.github.io/images/testocr.png\", HOCR = TRUE)\ncat(xml)\n```\n\nRoundtrip test: render PDF to image and OCR it back to text\n\n```r\n# Full roundtrip test: render PDF to image and OCR it back to text\ncurl::curl_download(\"https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf\", \"R-intro.pdf\")\norig \u003c- pdftools::pdf_text(\"R-intro.pdf\")[1]\n\n# Render pdf to png image\nimg_file \u003c- pdftools::pdf_convert(\"R-intro.pdf\", format = 'tiff', pages = 1, dpi = 400)\n\n# Extract text from png image\ntext \u003c- ocr(img_file)\nunlink(img_file)\ncat(text)\n```\n\n## Installation\n\nOn Windows and MacOS the package binary package can be installed from CRAN:\n\n```r\ninstall.packages(\"tesseract\")\n```\n\nInstallation from source on Linux or OSX requires the `Tesseract` library (see below).\n\n### Install from source\n\n On __Debian__ or __Ubuntu__ install [libtesseract-dev](https://packages.debian.org/testing/libtesseract-dev) and\n[libleptonica-dev](https://packages.debian.org/testing/libleptonica-dev). Also install [tesseract-ocr-eng](https://packages.debian.org/testing/tesseract-ocr-eng) to run examples.\n\n```\nsudo apt-get install -y libtesseract-dev libleptonica-dev tesseract-ocr-eng\n```\n\nOn __Ubuntu__ you can optionally use [this PPA](https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr-devel) to get the latest version of Tesseract:\n\n```\nsudo add-apt-repository ppa:alex-p/tesseract-ocr-devel\nsudo apt-get install -y libtesseract-dev tesseract-ocr-eng\n```\n\nOn __Fedora__ we need [tesseract-devel](https://src.fedoraproject.org/rpms/tesseract) and\n[leptonica-devel](https://src.fedoraproject.org/rpms/leptonica)\n\n```\nsudo yum install tesseract-devel leptonica-devel\n````\n\nOn __RHEL__ and __CentOS__ we need [tesseract-devel](https://src.fedoraproject.org/rpms/tesseract) and\n[leptonica-devel](https://src.fedoraproject.org/rpms/leptonica) from EPEL\n\n```\nsudo yum install epel-release\nsudo yum install tesseract-devel leptonica-devel\n````\n\n\nOn __OS-X__ use [tesseract](https://github.com/Homebrew/homebrew-core/blob/master/Formula/tesseract.rb) from Homebrew:\n\n```\nbrew install tesseract\n```\n\nTesseract uses training data to perform OCR. Most systems default to English\ntraining data. To improve OCR results for other languages you can to install the\nappropriate training data. On Windows and OSX you can do this in R using \n`tesseract_download()`:\n\n\n```r\ntesseract_download('fra')\n```\n\nOn Linux you need to install the appropriate training data from your distribution. \nFor example to install the spanish training data:\n\n  - [tesseract-ocr-spa](https://packages.debian.org/testing/tesseract-ocr-spa) (Debian, Ubuntu)\n  - [tesseract-langpack-spa](https://src.fedoraproject.org/rpms/tesseract-langpack) (Fedora, EPEL)\n\nAlternatively you can manually download training data from [github](https://github.com/tesseract-ocr/tessdata)\nand store it in a path on disk that you pass in the `datapath` parameter or set a default path via the\n`TESSDATA_PREFIX` environment variable. Note that the Tesseract 4 and Tesseract 3 use different \ntraining data format. Make sure to download training data from the branch that matches your libtesseract version.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Ftesseract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Ftesseract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Ftesseract/lists"}