tesseract

package module
v0.0.0-...-15a6e6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2015 License: MIT Imports: 8 Imported by: 0

README

tesseract

tesseract cmd wrapper

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

func ReadText(r io.Reader) (string, error)

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

func ReadTextFromFile(f string) (string, error)

ReadTextFromFile read text from the file. It internally calls ReadText after reading the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL