image_hash library

Image hash library

Classes

ImageHash
The base class for image hash.
ImageHasher
Image hash caclulator.
PlatformDirectory
IO-specific directory handling
PlatformFileReader
Platform-specific file reader for IO platforms
SimilarImagesProgress
Progress updates for the similar images finder
SimilarImagesProgressCompare
Comparing images
SimilarImagesProgressErr
Error processing an image
SimilarImagesProgressFoundImages
Found image files
SimilarImagesProgressFoundSimilarGroups
Found similar image groups
SimilarImagesProgressProcessingImage
Processing an image
SimilarImagesProgressScanDir
Is scanning the directory

Enums

HashDirection
Hash direction for directional hash algorithms
HashFn
All kinds of hash.

Functions

findSimilarImages(String directoryPath, {List<String> exts = const ['.jpg', '.jpeg', '.png'], int distanceThreshold = 20, void onProgress(SimilarImagesProgress progress)?, HashFn hashFn = HashFn.perceptual}) Future<List<SimilarImagesGroup>>
Check all similar imgs under the directory.
findSimilarImagesWeb(List<String> imageUrls, {int distanceThreshold = 20, void onProgress(SimilarImagesProgress progress)?}) Future<List<SimilarImagesGroup>>
Web-compatible version to find similar images from a list of image URLs.

Typedefs

SimilarImagesGroup = List<(String, ImageHash)>
A group of similar images