Tesseract-OCR command wrapper for Golang
package main
import (
"fmt"
"github.com/otiai10/gosseract"
)
func main() {
// This is the simlest way :)
out := gosseract.Must(map[string]string{"src": "your/img/file.png"})
fmt.Println(out)
// Using client
client, _ := gosseract.NewClient()
out, _ = client.Src("your/img/file.png").Out()
fmt.Println(out)
}
- tesseract-ocr#3.02~
- mint to simplize tests
go test ./...