rokocr

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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.ROKServerConfig)

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 PickTemplate added in v0.7.3

func PickTemplate(hash *goimagehash.ImageHash, availableTemplate []schema.RokOCRTemplate) schema.RokOCRTemplate

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