Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork297
Go package for OCR (Optical Character Recognition), by using Tesseract C++ library
License
otiai10/gosseract
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Golang OCR package, by using Tesseract C++ library.
Do you just want OCR server, or see the working example of this package? Yes, there is already-made server application, which is seriously easy to deploy!
👉https://github.com/otiai10/ocrserver
package mainimport ("fmt""github.com/otiai10/gosseract")funcmain() {client:=gosseract.NewClient()deferclient.Close()client.SetImage("path/to/image.png")text,_:=client.Text()fmt.Println(text)// Hello, World!}
- tesseract-ocr, including library and headers
go get -t github.com/otiai10/gosseract
CheckDockerfile for more detail of installation, or you can just try bydocker run -it --rm otiai10/gosseract
.
In case you havetesseract-ocr on your local, you can just hit
% go test .
Otherwise, if youDON'T want to install tesseract-ocr on your local, kick./test/runtime
which is using Docker and Vagrant to test the source code on some runtimes.
% ./test/runtime --driver docker% ./test/runtime --driver vagrant
Check./test/runtimes for more information about runtime tests.
About
Go package for OCR (Optical Character Recognition), by using Tesseract C++ library
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.