FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

VerifyTests/Verify.Phash: Extends Verify to allow comparison of documents via Phash. · GitHub

Repository files navigation

Verify.Phash

Extends Verify to allow comparison of documents via Phash.

See Milestones for release notes.

Contains comparers for png, jpg, bmp, and tiff.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Developed using JetBrains IDEs

NuGet

Usage

Enable:

[ModuleInitializer]
public static void Init() =>
    VerifyPhash.Initialize();

snippet source | anchor

Comparers

Register all comparers

VerifyPhash.RegisterComparer();

Compare Settings

Phash comparison settings can be modified as follows:

[Test]
public Task LocalSettings() =>
    VerifyFile("sample.png")
        .PhashCompareSettings(
            threshold: .8f,
            sigma: 4f,
            gamma: 2f,
            angles: 170);

snippet source | anchor

Icon

Hash Brown designed by Icon Mark from The Noun Project.

About

Extends Verify to allow comparison of documents via Phash.

Resources

Code of conduct

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL