image_hashing

License

A Dart library for generating perceptual hashes (AHash, PHash, DHash, WHash) from images, providing efficient single-image hash computation and comparison with pure Dart implementation.

Compatibility: Dart ^3.6.0


๐Ÿš€ Getting Started


๐Ÿ“ฆ Features

  • Core Feature 1: Different Hashing Methods

    final ahasher = AHash();
    final phasher = PHash();
    final dhasher = DHash();
    final whasher = WHash(); // Wavelet Transform Hashing dependency is under development
    

    To encode an image:

    final ahasher = AHash(useCV: false); // OpenCV compatibility is under development
    final ahash = ahasher.encodeImage("YourImageFile");
    
  • Core Feature 2: Hamming Distances of Image Hashing


๐Ÿงช Testing

Unit tests are under development. Currently only unit tests for hamming distance

dart test

๐Ÿค Contributing

Workflow

  1. Fork repository
  2. Create feature branch:
    git checkout -b feat/your-feature
    
  3. Follow Conventional Commits:
    git commit -m "feat: add new validation method"
    

Code Style

Follow the Effective Dart and analysis_options.yaml


๐Ÿ“š Documentation


๐Ÿ“œ License

BSD 3-Clause "New" or "Revised" License ยฉ 2025 RequieMa

Full text at LICENSE


๐Ÿšง Maintenance Status

Basic functionalities are under development.

Please report issues via GitHub Issues

Libraries

image_hashing
Support for doing something awesome.