Documentation
¶
Index ¶
Constants ¶
View Source
const ( ClassPage = "ocr_page" ClassArea = "ocr_carea" ClassLine = "ocr_line" ClassWord = "ocrx_word" )
Possible classes for elements
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is the error that is returned if a attribute of an element could not found.
Functions ¶
This section is empty.
Types ¶
type Element ¶ added in v0.7.1
type Element struct {
Class string
Node xml.StartElement
}
Element is used to represent text elements in the hOCR document.
type Node ¶ added in v0.7.1
type Node interface{}
Node represents hOCR nodes returned by the scanner.
Click to show internal directories.
Click to hide internal directories.