Back to godoc.org
rescribe.xyz/utils/pkg/line

package line

v0.1.3
Latest Go to latest
Published: Apr 14, 2020 | License: GPL3 | Module: rescribe.xyz/utils

Overview

line contains various functions to manipulate ocr lines

Index

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier