isbn

package module
v0.0.0-...-42d314c Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

README

isbn

isbn is a small ISBN barcode scanner.

Documentation

Overview

Package isbn provides tools to read an ISBN barcode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Beg int
	End int
	Col int
}

type Barcode

type Barcode []int

Barcode is an ISBN barcode.

func Scan

func Scan(src image.Image) (Barcode, error)

type Decoder

type Decoder struct {
	Y      int       // Y coordinate of line of sight.
	Line   []byte    // Line is the raw byte line of sight. (0=white,255=black)
	Guards [3][3]Bar // Guards is the set of ISBN guards that have been detected

	Barcode Barcode // Barcode is the decoded ISBN barcode.
	// contains filtered or unexported fields
}

Decoder decodes an image containing an ISBN barcode.

func NewDecoder

func NewDecoder() *Decoder

func (*Decoder) Decode

func (dec *Decoder) Decode(src image.Image) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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