gosseract-ocr
tesseract-ocr wrapper by Golang
Sample
package main
import (
"github.com/otiai10/gosseract"
"fmt"
)
func main() {
servant := gosseract.SummonServant()
text, _ := servant.Target("your/image/file.png").Out()
fmt.Println(text)
}
Set Up
apt-get install tesseract-ocr # Basic OCR library by C++
# or yum? brew? Choose the way whichever you can install `tesseract-ocr`
go get github.com/otiai10/gosseract
go get github.com/r7kamura/gosple # for testing
First of All, Run the Tests!!
cd tests
go test -i
go test