Documentation ¶
Index ¶
- func FindTemplate(mediaDir string, availableTemplate []schema.RokOCRTemplate) schema.RokOCRTemplate
- func InstallSystemD(flags serverconfig.RokServerConfiguration)
- func LoadTemplates(directory string) []schema.RokOCRTemplate
- func ParseImage(name string, img image.Image, template schema.RokOCRTemplate, ...) schema.OCRResponse
- func ParseSingleFile(f, tessData string, template schema.RokOCRTemplate, force bool) (*schema.OCRResponse, error)
- func ParseText(imageFileName string, schema schema.ROKOCRSchema, tessdata string) (string, error)
- func Prepare(flags config.CommonConfiguration)
- func RunRecognition(mediaDir, tessData string, template schema.RokOCRTemplate, force bool) []schema.OCRResponse
- func RunRecognitionChan(mediaDir, tessData string, template schema.RokOCRTemplate, force bool) <-chan schema.OCRResponse
- func WriteCSV(data []schema.OCRResponse, template schema.RokOCRTemplate, w io.Writer)
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 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.
Click to show internal directories.
Click to hide internal directories.