omnipage

package
v0.0.0-...-92d46b1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Omnipage

type Omnipage struct {
	// contains filtered or unexported fields
}

func New

func New() (n Omnipage)

New create omnipage session

func (*Omnipage) CountPages

func (n *Omnipage) CountPages(imgFile string) (nPage int, err error)

func (*Omnipage) Free

func (n *Omnipage) Free()

Free allocated resources

func (*Omnipage) Init

func (n *Omnipage) Init(company string, product string) (err error)

Init a omnipage session.

func (*Omnipage) LoadFormTemplateLibrary

func (n *Omnipage) LoadFormTemplateLibrary(templateFile string) (err error)

func (*Omnipage) OCRImgPageToText

func (n *Omnipage) OCRImgPageToText(imgFile string, nPage int) (txt string, err error)

func (*Omnipage) OCRImgToFile

func (n *Omnipage) OCRImgToFile(imgFile string,
	outputFile string,
	nPage int,
	auxDocumentFile string) (err error)

func (*Omnipage) OCRImgToText

func (n *Omnipage) OCRImgToText(imgFile string) (txt string, err error)

func (*Omnipage) OCRImgToTextFile

func (n *Omnipage) OCRImgToTextFile(imgFile string,
	outputFile string,
	nPage int,
	auxDocumentFile string) (err error)

func (*Omnipage) OCRImgWithTemplate

func (n *Omnipage) OCRImgWithTemplate(imgFile string) (ret map[string]string, err error)

func (*Omnipage) Quit

func (n *Omnipage) Quit()

Quit omnipage. At this point of development it is also necessary to use the Free() function to release the resources.

func (*Omnipage) SetCodePage

func (n *Omnipage) SetCodePage(codePage string) (err error)

func (*Omnipage) SetLanguagePtBr

func (n *Omnipage) SetLanguagePtBr() (err error)

func (*Omnipage) SetLicense

func (n *Omnipage) SetLicense(licenseFile string, oemCode string) (err error)

SetLicense uses license file and OEM code to activate omnipage library. It should be called immediately after instantiating a new session with the New () function.

func (*Omnipage) SetOutputFormat

func (n *Omnipage) SetOutputFormat(outputFormat string) (err error)

Jump to

Keyboard shortcuts

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