{"id":18103922,"url":"https://github.com/dannnylo/tesseract-ocr-crystal","last_synced_at":"2025-04-13T19:30:28.593Z","repository":{"id":45891963,"uuid":"201856440","full_name":"dannnylo/tesseract-ocr-crystal","owner":"dannnylo","description":"This is a wrapper of Tesseract OCR. Helping to read characters on an image.","archived":false,"fork":false,"pushed_at":"2022-06-06T18:12:40.000Z","size":1000,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T10:11:09.159Z","etag":null,"topics":["hacktoberfest","tesseract","tesseract-ocr"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/dannnylo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dannnylo"}},"created_at":"2019-08-12T04:13:48.000Z","updated_at":"2024-11-11T20:21:10.000Z","dependencies_parsed_at":"2022-08-30T13:01:24.499Z","dependency_job_id":null,"html_url":"https://github.com/dannnylo/tesseract-ocr-crystal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannnylo%2Ftesseract-ocr-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannnylo%2Ftesseract-ocr-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannnylo%2Ftesseract-ocr-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannnylo%2Ftesseract-ocr-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dannnylo","download_url":"https://codeload.github.com/dannnylo/tesseract-ocr-crystal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248767752,"owners_count":21158525,"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":["hacktoberfest","tesseract","tesseract-ocr"],"created_at":"2024-10-31T22:13:32.833Z","updated_at":"2025-04-13T19:30:28.551Z","avatar_url":"https://github.com/dannnylo.png","language":"Crystal","funding_links":["https://github.com/sponsors/dannnylo"],"categories":["Software"],"sub_categories":["OCR libraries by programming language"],"readme":"# tesseract-ocr\n\nThis package is a wrapper of Tesseract OCR. Helping to read characters on a image.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     tesseract-ocr:\n       github: dannnylo/tesseract-ocr-crystal\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"tesseract-ocr\"\n```\n\nBasic usage:\n\n```crystal\nTesseract::Ocr.read(\"spec/resources/world.png\") =\u003e \"world\"\n```\n\n\nWith options:\n\n```crystal\nTesseract::Ocr.read(\"spec/resources/world.png\", {  :l =\u003e \"por\", :oem =\u003e \"1\" }) =\u003e \"world\"\n```\n\n\nConvert image to PDF readable.\n\n```crystal\nTesseract::Ocr.to_pdf(\"spec/resources/world.png\", { :oem =\u003e \"1\" }) =\u003e \"/tmp/RANDOM_NAME.pdf\"\n```\n\nReading the image and get words positions\n\n```crystal\nTesseract::OcrWords.read(\"spec/resources/world.png\") =\u003e [{word: \"world\", confidence: 95, x_start: 2, y_start: 2, x_end: 185, y_end: 56}]\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/dannnylo/tesseract-ocr-crystal/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Danilo Jeremias da Silva](https://github.com/dannnylo) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannnylo%2Ftesseract-ocr-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannnylo%2Ftesseract-ocr-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannnylo%2Ftesseract-ocr-crystal/lists"}