Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageExtensionRegex = regexp.MustCompile(".*.jpg$|.*.jpeg$|.*.png$|.*.webp$|.*.JPG$|.*.JPEG$|.*.PNG$|.*.WEBP$")
ImageExtensionRegex captures file extensions we can work with.
Functions ¶
This section is empty.
Types ¶
type ImageDup ¶
type ImageDup struct { HashCache *hash.Cache *hash.Differ // contains filtered or unexported fields }
ImageDup diffs images in order to find similar/duplicate images
func NewImageDup ¶
func NewImageDup(promNamespace, hashCacheFile string, numWorkers, numFiles, distanceThreshold int, dedupPairs bool) (*ImageDup, error)
NewImageDup is the constructor which sets up everything for diffing but does not actually start diffing, Run() must be called for that.
Click to show internal directories.
Click to hide internal directories.