Skip to content

zzqss/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(gosseract.Params{Src: "your/img/file.png"})
    fmt.Println(out)

    // Using client
    client, _ := gosseract.NewClient()
    out, _ = client.Src("your/img/file.png").Out()
    fmt.Println(out)
}

installation

  1. install tesseract-ocr
  2. install go
  3. install gosseract
    • go get github.com/otiai10/gosseract
  4. install mint for testing
    • go get github.com/otiai10/mint
  5. run the tests at first↓

test

go test ./...

dependencies

issues

Releases

No releases published

Packages

No packages published

Languages

  • Go 87.8%
  • C++ 11.1%
  • C 1.1%