{"id":16389165,"url":"https://github.com/ddeboer/tesseract","last_synced_at":"2025-03-21T02:31:49.024Z","repository":{"id":7957957,"uuid":"9354880","full_name":"ddeboer/tesseract","owner":"ddeboer","description":"A PHP wrapper for the Tesseract OCR engine","archived":false,"fork":false,"pushed_at":"2017-10-16T19:24:14.000Z","size":361,"stargazers_count":21,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-12T04:31:40.291Z","etag":null,"topics":["ocr","php","tesseract"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ddeboer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-10T20:07:37.000Z","updated_at":"2024-05-03T10:26:38.000Z","dependencies_parsed_at":"2022-08-21T10:20:16.134Z","dependency_job_id":null,"html_url":"https://github.com/ddeboer/tesseract","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddeboer%2Ftesseract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddeboer%2Ftesseract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddeboer%2Ftesseract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddeboer%2Ftesseract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddeboer","download_url":"https://codeload.github.com/ddeboer/tesseract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811386,"owners_count":16884305,"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","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","php","tesseract"],"created_at":"2024-10-11T04:31:45.808Z","updated_at":"2024-10-28T09:09:50.673Z","avatar_url":"https://github.com/ddeboer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ddeboer/tesseract.png?branch=master)](https://travis-ci.org/ddeboer/tesseract)\n\nTesseract: a wrapper for the Tesseract OCR engine\n================================================\n\nA small PHP \u003e=5.3 library that makes working with the open source [Tesseract OCR engine](https://github.com/tesseract-ocr) \neasier.\n\nInstallation\n------------\n\nYou need a working Tesseract installation. For more information about \ninstallation and adding language support, see Tesseract’s [README](https://github.com/tesseract-ocr/tesseract/blob/master/README.md).\n\nThen install this library, which is available on [Packagist](http://packagist.org/packages/ddeboer/tesseract),\nthrough [Composer](http://getcomposer.org/):\n\n    $ composer require ddeboer/tesseract:1.0\n\nUsage\n-----\n\nIf the `tesseract` binary is in your path, just do:\n\n```php\nuse Ddeboer\\Tesseract\\Tesseract;\n\n$tesseract = new Tesseract();\n```\n\nOtherwise, construct Tesseract with the path to the binary:\n\n```php\n$tesseract = new Tesseract('/usr/local/bin/tesseract');\n```\n\nGet version and supported languages information:\n\n```php\n$version = $tesseract-\u003egetVersion();\n\n$languages = $tesseract-\u003egetSupportedLanguages();\n```\n\nPerform OCR on an image file:\n\n```php\n$text = $tesseract-\u003erecognize('myfile.tif');\n```\n\nOptionally, specify the language(s) as second argument:\n\n```php\n$text = $tesseract-\u003erecognize('myfile.tif', array('nld', 'eng'));\n```\n\nAnd specify Tesseract’s page seg mode as third argument:\n\n```php\n$text = $tesseract-\u003erecognize('myfile.tif', null, Tesseract::PAGE_SEG_MODE_AUTOMATIC_OSD);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddeboer%2Ftesseract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddeboer%2Ftesseract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddeboer%2Ftesseract/lists"}