{"id":13413367,"url":"https://github.com/otiai10/gosseract","last_synced_at":"2025-04-23T20:52:02.624Z","repository":{"id":11130158,"uuid":"13492546","full_name":"otiai10/gosseract","owner":"otiai10","description":"Go package for OCR (Optical Character Recognition), by using Tesseract C++ library","archived":false,"fork":false,"pushed_at":"2025-03-24T23:56:26.000Z","size":1132,"stargazers_count":2832,"open_issues_count":31,"forks_count":293,"subscribers_count":51,"default_branch":"main","last_synced_at":"2025-04-09T02:03:48.653Z","etag":null,"topics":["go","ocr","ocr-server","tesseract","tesseract-ocr"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/otiai10/gosseract","language":"Go","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/otiai10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["otiai10"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-10-11T07:27:53.000Z","updated_at":"2025-04-06T08:14:58.000Z","dependencies_parsed_at":"2023-02-16T15:15:17.653Z","dependency_job_id":"ae0184e9-6fa6-46d4-89e3-f51002c70c5c","html_url":"https://github.com/otiai10/gosseract","commit_stats":{"total_commits":394,"total_committers":35,"mean_commits":"11.257142857142858","dds":"0.15736040609137059","last_synced_commit":"1c780e8eff1d5cedf16d1901c98f22d1dcbc2538"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fgosseract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fgosseract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fgosseract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fgosseract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otiai10","download_url":"https://codeload.github.com/otiai10/gosseract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514756,"owners_count":21443208,"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":["go","ocr","ocr-server","tesseract","tesseract-ocr"],"created_at":"2024-07-30T20:01:38.720Z","updated_at":"2025-04-23T20:52:02.599Z","avatar_url":"https://github.com/otiai10.png","language":"Go","funding_links":["https://github.com/sponsors/otiai10"],"categories":["Go","Optical Character Recognition Engines and Frameworks","Machine Learning","GO","机器学习","光学字符识别OCR","Software","Repositories","\u003cspan id=\"机器学习-machine-learning\"\u003e机器学习 Machine Learning\u003c/span\u003e","Relational Databases","Other libraries"],"sub_categories":["CTPN [paper:2016](https://arxiv.org/pdf/1609.03605.pdf)","Search and Analytic Databases","Advanced Console UIs","SQL 查询语句构建库","资源传输下载","检索及分析资料库","OCR libraries by programming language","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流"],"readme":"# gosseract OCR\n\n[![Go Test](https://github.com/otiai10/gosseract/actions/workflows/go-ci.yml/badge.svg)](https://github.com/otiai10/gosseract/actions/workflows/go-ci.yml)\n[![Docker Test](https://github.com/otiai10/gosseract/actions/workflows/runtime-docker.yml/badge.svg)](https://github.com/otiai10/gosseract/actions/workflows/runtime-docker.yml)\n[![BSD Test](https://github.com/otiai10/gosseract/actions/workflows/runtime-vmactions.yml/badge.svg)](https://github.com/otiai10/gosseract/actions/workflows/runtime-vmactions.yml)\n[![codecov](https://codecov.io/gh/otiai10/gosseract/branch/main/graph/badge.svg)](https://codecov.io/gh/otiai10/gosseract)\n[![Go Report Card](https://goreportcard.com/badge/github.com/otiai10/gosseract)](https://goreportcard.com/report/github.com/otiai10/gosseract)\n[![Maintainability](https://api.codeclimate.com/v1/badges/351d9027a3c517505094/maintainability)](https://codeclimate.com/github/otiai10/gosseract/maintainability)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/otiai10/gosseract/blob/main/LICENSE)\n[![Go Reference](https://pkg.go.dev/badge/github.com/otiai10/gosseract/v2.svg)](https://pkg.go.dev/github.com/otiai10/gosseract/v2)\n\nGolang OCR package, by using [Tesseract](https://github.com/tesseract-ocr/tesseract) C++ library.\n\n# OCR Server\n\nIf you need an [OCR server](https://github.com/otiai10/ocrserver) or want to see a working example of this package, there is a ready-made server application, which is very easy to deploy!\n\n👉 https://github.com/otiai10/ocrserver\n\n# Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/otiai10/gosseract/v2\"\n)\n\nfunc main() {\n\tclient := gosseract.NewClient()\n\tdefer client.Close()\n\tclient.SetImage(\"path/to/image.png\")\n\ttext, _ := client.Text()\n\tfmt.Println(text)\n\t// Hello, World!\n}\n```\n\n# Installation\n\n1. [tesseract-ocr](https://github.com/tesseract-ocr/tessdoc), including library and headers\n2. `go get -t github.com/otiai10/gosseract/v2`\n\nPlease check this [Dockerfile](https://github.com/otiai10/gosseract/blob/main/Dockerfile) to get started.\nAlternatively, you can deploy the pre-existing Docker image by invoking `docker run -it --rm otiai10/gosseract`.\n\n# Test\n\nIn case you have [tesseract-ocr](https://github.com/tesseract-ocr/tessdoc) installed on your local environment, you can run the tests with:\n\n```\n% go test .\n```\n\nIf you **DON'T** want to install tesseract-ocr on your local environment, run `./test/runtime` which utilises Docker and Vagrant to test the source code on some runtimes.\n\n```\n% ./test/runtime --driver docker\n% ./test/runtime --driver vagrant\n```\n\nCheck [./test/runtimes](https://github.com/otiai10/gosseract/tree/main/test/runtimes) for more information about runtime tests.\n\n# Issues\n\n- [https://github.com/otiai10/gosseract/issues](https://github.com/otiai10/gosseract/issues?utf8=%E2%9C%93\u0026q=is%3Aissue)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Fgosseract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotiai10%2Fgosseract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Fgosseract/lists"}