Skip to content

JayXon/gosseract

 
 

Repository files navigation

Gosseract-OCR Build Status GoDoc

Tesseract-OCR command wrapper for Golang

example

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)
}

dependencies

test

go test ./...

issues

About

OCR library by Golang, wrapping Tesseract-ocr

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%