filter

package
v0.0.0-...-20cf3ba Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFunc

type FilterFunc func(context.Context, image.Image) (bool, error)

FilterFunc is a function that evaluates if a function passes a filter. It must be safe for concurrent use.

func DefaultMinDistFromCorpus

func DefaultMinDistFromCorpus(c *corpus.Corpus) FilterFunc

func MinDistFromCorpus

func MinDistFromCorpus(c *corpus.Corpus, dim, minDist int) FilterFunc

MinDistFromCorpus returns a filter function that rejects images that fall under a threshold when comparing the ExtPerceptionHash against a corpus.

func Motion

func Motion(dim, minDist int) FilterFunc

Motion returns a filter function that rejects images that fall under a threshold when comparing the ExtPerceptionHash against the previous image hash.

func Multi

func Multi(fxns ...FilterFunc) FilterFunc

Jump to

Keyboard shortcuts

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