Documentation ¶
Overview ¶
Package tesseract implements as a wrapper to tesseract ocr (https://code.google.com/p/tesseract-ocr/). It expects tesseract.exe should be in the PATH, otherwise provide the executable path at
tesseract.ExecutablePath = "C:/path/to/tesseract.exe"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecutablePath string
ExecutablePath should be tesseract.exe path if tesseract.exe is not in the PATH
Functions ¶
func ReadText ¶
ReadText read text from the given io.Reader r. It converts to grayscale first before pass it to tesseract. It writes grayscale image and output text file to the os.TempFile.
func ReadTextFromFile ¶
ReadTextFromFile read text from the file. It internally calls ReadText after reading the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.