rokocr

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTemplate

func FindTemplate(mediaDir string, availableTemplate []schema.RokOCRTemplate) schema.RokOCRTemplate

func InstallSystemD

func InstallSystemD(flags serverconfig.RokServerConfiguration)

func LoadTemplates

func LoadTemplates(directory string) []schema.RokOCRTemplate

func ParseImage

func ParseImage(name string, img image.Image, template schema.RokOCRTemplate, tmpdir, tessdata string) schema.OCRResponse

func ParseSingleFile

func ParseSingleFile(f, tessData string, template schema.RokOCRTemplate, force bool) (*schema.OCRResponse, error)

func ParseText

func ParseText(imageFileName string, schema schema.ROKOCRSchema, tessdata string) (string, error)

func Prepare

func Prepare(flags config.CommonConfiguration)

func RunRecognition

func RunRecognition(mediaDir, tessData string, template schema.RokOCRTemplate, force bool) []schema.OCRResponse

func RunRecognitionChan

func RunRecognitionChan(mediaDir, tessData string, template schema.RokOCRTemplate, force bool) <-chan schema.OCRResponse

func WriteCSV

func WriteCSV(data []schema.OCRResponse, template schema.RokOCRTemplate, w io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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