sourceafis

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

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

README

go-sourceafis

An Unofficial Golang port of SourceAFIS: A library for human fingerprint recognition

go-sourceafis is a pure Golang port of SourceAFIS, an algorithm for recognition of human fingerprints. It can compare two fingerprints 1:1 or search a large database 1:N for matching fingerprint. It takes fingerprint images on input and produces similarity score on output. Similarity score is then compared to customizable match threshold.

More on homepage.

Getting started

See homepage.

Documentation

License

Distributed under Apache License 2.0.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultTransparencyLogger

type DefaultTransparencyLogger struct {
	// contains filtered or unexported fields
}

func NewTransparencyLogger

func NewTransparencyLogger(taker Transparency) *DefaultTransparencyLogger

func (*DefaultTransparencyLogger) Log

func (t *DefaultTransparencyLogger) Log(key string, data interface{}) error

func (*DefaultTransparencyLogger) LogBestMatch

func (t *DefaultTransparencyLogger) LogBestMatch(nth int) error

func (*DefaultTransparencyLogger) LogBestPairing

func (t *DefaultTransparencyLogger) LogBestPairing(pairing *matcher.PairingGraph) error

func (*DefaultTransparencyLogger) LogBestScore

func (t *DefaultTransparencyLogger) LogBestScore(score *matcher.ScoringData) error

func (*DefaultTransparencyLogger) LogEdgeHash

func (t *DefaultTransparencyLogger) LogEdgeHash(hash map[int][]*features.IndexedEdge) error

func (*DefaultTransparencyLogger) LogPairing

func (t *DefaultTransparencyLogger) LogPairing(pairing *matcher.PairingGraph) error

func (*DefaultTransparencyLogger) LogRootPairs

func (t *DefaultTransparencyLogger) LogRootPairs(count int, roots []*matcher.MinutiaPair) error

func (*DefaultTransparencyLogger) LogScore

func (t *DefaultTransparencyLogger) LogScore(score *matcher.ScoringData) error

func (*DefaultTransparencyLogger) LogSkeleton

func (t *DefaultTransparencyLogger) LogSkeleton(keyword string, skeleton *features.Skeleton) error

type Extractor

type Extractor interface {
	Extract(raw *primitives.Matrix, dpi float64) (*templates.FeatureTemplate, error)
}

type Image

type Image struct {
	// contains filtered or unexported fields
}

func LoadImage

func LoadImage(fname string, opts ...ImageOptions) (*Image, error)

func New

func New(bounds image.Rectangle, opts ...ImageOptions) (img *Image, err error)

func NewFromGray

func NewFromGray(img *image.Gray, opts ...ImageOptions) (*Image, error)

func NewFromImage

func NewFromImage(img image.Image, opts ...ImageOptions) (*Image, error)

func (*Image) Matrix

func (i *Image) Matrix() *primitives.Matrix

type ImageOptions

type ImageOptions func(*Image) (*Image, error)

func WithResolution

func WithResolution(dpi float64) ImageOptions

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher(logger matcher.MatcherLogger, probe *templates.SearchTemplate) (*Matcher, error)

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, candidate *templates.SearchTemplate) float64

type Pixel

type Pixel struct {
	R int
	G int
	B int
	A int
}

type TemplateCreator

type TemplateCreator struct {
	// contains filtered or unexported fields
}

func NewTemplateCreator

func NewTemplateCreator(logger logger.TransparencyLogger) *TemplateCreator

func (*TemplateCreator) Template

func (c *TemplateCreator) Template(img *Image) (*templates.SearchTemplate, error)

type Transparency

type Transparency interface {
	Accepts(key string) bool
	Accept(key, mime string, data []byte) error
}

Jump to

Keyboard shortcuts

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