dwarfocr

package module
v0.0.0-...-6219952 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 6 Imported by: 0

README

dwarfocr

OCR for Dwarf Fortress screenshots

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDimensions = errors.New("dwarfocr: invalid tileset dimensions")
View Source
var ErrNoMatch = errors.New("dwarfocr: could not match tile")

Functions

This section is empty.

Types

type Tileset

type Tileset [8][8][2][256]*image.RGBA

func ReadTileset

func ReadTileset(r io.Reader) (*Tileset, error)

func (*Tileset) Match

func (tiles *Tileset) Match(tile *image.RGBA) (bg, fg, bright, ch int, err error)

Directories

Path Synopsis
cmd
internal
ocr

Jump to

Keyboard shortcuts

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