Extends Verify to allow comparison of documents via Phash.
Contains comparers for png, jpg, bmp, and tiff.
https://nuget.org/packages/Verify.Phash/
Given a test with the following definition:
[TestFixture]
public class Samples
{
static Samples()
{
VerifyPhash.Initialize();
}
Register all comparers
VerifyPhash.RegisterComparer();
Phash comparison settings can be modified as follows:
[Test]
public Task LocalSettings()
{
return VerifyFile("sample.png")
.PhashCompareSettings(
threshold: .8f,
sigma: 4f,
gamma: 2f,
angles: 170);
}
Hash Brown designed by Icon Mark from The Noun Project.