Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache stores an array of image hashes from corona10/goimagehash
func NewCache ¶
NewCache reads the given file to rebuild its map from the last time it was run. If the file does not exist, it will be created.
type DiffResult ¶
DiffResult are two images that are the "same", i.e. within the given distance
type Differ ¶
type Differ struct {
// contains filtered or unexported fields
}
Differ diffs images
func NewDiffer ¶
func NewDiffer(numWorkers, distanceThreshold int, inputImages chan types.Pair, cache *Cache, promNamespace string) *Differ
NewDiffer is the constructor, Run() must be called to start diffing
Click to show internal directories.
Click to hide internal directories.