line

package
v0.0.0-...-ea20db3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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