Documentation ¶
Index ¶
Examples ¶
Constants ¶
View Source
const TESSERACT = "tesseract"
TESSERACT specifies bin name for tesseract.
Variables ¶
This section is empty.
Functions ¶
func Must ¶
Must execute tesseract-OCR directly by parameter map
Example ¶
package main import ( "github.com/otiai10/gosseract/v1/gosseract" "fmt" ) func main() { // TODO: it panics! error handling in *Client.accept out := gosseract.Must(gosseract.Params{Src: "./.samples/png/sample002.png", Languages: "eng+heb"}) fmt.Println(out) }
Output:
Types ¶
type Client ¶
type Client struct { Error error // contains filtered or unexported fields }
Client is an client to use gosseract functions
func (*Client) Image ¶
Image accepts image object of target
Example ¶
package main import ( "github.com/otiai10/gosseract/v1/gosseract" "fmt" "image" ) func main() { client, _ := gosseract.NewClient() var img image.Image // any your image instance out, _ := client.Image(img).Out() fmt.Println(out) }
Output:
Source Files ¶
Click to show internal directories.
Click to hide internal directories.