{"id":33125736,"url":"https://github.com/r1me/TTesseractOCR4","last_synced_at":"2025-11-20T00:02:06.734Z","repository":{"id":53614017,"uuid":"99594788","full_name":"r1me/TTesseractOCR4","owner":"r1me","description":"Object Pascal binding for tesseract-ocr - an optical character recognition engine","archived":false,"fork":false,"pushed_at":"2023-07-13T19:50:56.000Z","size":6245,"stargazers_count":136,"open_issues_count":4,"forks_count":43,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-04-22T03:02:29.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r1me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-07T15:51:34.000Z","updated_at":"2024-04-15T12:08:55.000Z","dependencies_parsed_at":"2022-09-19T02:30:41.674Z","dependency_job_id":"2ef1af3e-31a7-4c0a-b0bb-25bbad5c7924","html_url":"https://github.com/r1me/TTesseractOCR4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r1me/TTesseractOCR4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r1me%2FTTesseractOCR4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r1me%2FTTesseractOCR4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r1me%2FTTesseractOCR4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r1me%2FTTesseractOCR4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r1me","download_url":"https://codeload.github.com/r1me/TTesseractOCR4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r1me%2FTTesseractOCR4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285348528,"owners_count":27156475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-11-15T06:00:52.704Z","updated_at":"2025-11-20T00:02:06.727Z","avatar_url":"https://github.com/r1me.png","language":"Pascal","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=SSCM9JJLXA8UC"],"categories":["Software"],"sub_categories":["OCR libraries by programming language"],"readme":"# TTesseractOCR4\n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=SSCM9JJLXA8UC)\n\nTTesseractOCR4 is a Object Pascal binding for [tesseract-ocr](https://github.com/tesseract-ocr/tesseract) 4.x - an optical character recognition engine.\n\n## Building examples\nExamples were tested in Delphi 10.2.3 (32-bit build for Windows) and Lazarus 1.8 (32-bit build for Windows and Linux in Ubuntu 18.04).\n\n1. Clone this repository to a local folder.\n2. Obtain Tesseract 4.x binaries. I recommend using latest version, build from master branch of the tesseract project. \n  - Windows: Precompiled binaries can be found in `lib\\tesseractocr-master.zip`. Unpack and copy all DLL files to `bin\\`.  \n  [*Microsoft Visual C++ 2017 Redistributable x86*](https://go.microsoft.com/fwlink/?LinkId=746571) must be installed on the computer.  \n  - Linux: `sudo apt install tesseract-ocr`.  \n  This will also install required shared libraries (liblept5 and libtesseract4).\n  - Common: Set `{$DEFINE USE_CPPAN_BINARIES}` accordingly in `tesseractocr.consts.pas` if using Tesseract libraries built with CPPAN (defined as default).\n3. Download trained language data files from [tesseract-ocr/tessdata/](https://github.com/tesseract-ocr/tessdata/) to `bin\\tessdata`.  \nAll examples in this repository require English data file ([`eng.traineddata`](https://github.com/tesseract-ocr/tessdata/blob/master/eng.traineddata)).  \nAdditionally `examples\\delphi-console-pdfconvert` example requires [`osd.traineddata`](https://github.com/tesseract-ocr/tessdata/blob/master/osd.traineddata) and [`pdf.ttf`](https://github.com/tesseract-ocr/tesseract/blob/master/tessdata/pdf.ttf) files.  \nLinux: Tested with language data from [tesseract-ocr/tessdata_fast](https://github.com/tesseract-ocr/tessdata_fast)\n4. Open and compile example project: \n   - `examples\\delphi-console-simple`. Recognize text in `samples\\eng-text.png` and write to console output\n   ![delphi-console-simple](examples/delphi-console-simple/delphi-console-simple.png)\n   \n   - `examples\\delphi-vcl-image`  \n   ![delphi-vcl-image](examples/delphi-vcl-image/delphi-vcl-image.gif)  \n   4 tabs: \n      - Image: View input image\n      - Text: Recognized text coded as UTF-8\n      - HOCR: Recognized text in HTML format\n      - Layout: View page layout (paragraphs, text lines, words...) \n    \n   - `examples\\delphi-console-pdfconvert`. Convert `samples\\multi-page.tif` (multiple page image file) to a PDF file\n   - `examples\\lazarus-console-simple`. `examples\\delphi-console-simple` for Lazarus \n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr1me%2FTTesseractOCR4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr1me%2FTTesseractOCR4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr1me%2FTTesseractOCR4/lists"}