Documentation

Overview

line contains various functions to manipulate ocr lines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyableImg

type CopyableImg interface {
	CopyLineTo(io.Writer) error
}

type Detail

type Detail struct {
	Name    string
	Avgconf float64
	Img     CopyableImg
	Text    string
	OcrName string
}

type Details

type Details []Detail

func (Details) Len

func (l Details) Len() int

func (Details) Less

func (l Details) Less(i, j int) bool

func (Details) Swap

func (l Details) Swap(i, j int)

type ImgDirect

type ImgDirect struct {
	Img image.Image
}

This is an implementation of the CopyableImg interface that stores the image directly as an image.Image

func (ImgDirect) CopyLineTo

func (i ImgDirect) CopyLineTo(w io.Writer) error

type ImgPath

type ImgPath struct {
	Path string
}

This is an implementation of the CopyableImg interface that stores the path of an image

func (ImgPath) CopyLineTo

func (i ImgPath) CopyLineTo(w io.Writer) error

Source Files