CoenM.ImageSharp.ImageHash
1.1.5
See the version list below for details.
dotnet add package CoenM.ImageSharp.ImageHash --version 1.1.5
NuGet\Install-Package CoenM.ImageSharp.ImageHash -Version 1.1.5
<PackageReference Include="CoenM.ImageSharp.ImageHash" Version="1.1.5" />
paket add CoenM.ImageSharp.ImageHash --version 1.1.5
#r "nuget: CoenM.ImageSharp.ImageHash, 1.1.5"
// Install CoenM.ImageSharp.ImageHash as a Cake Addin #addin nuget:?package=CoenM.ImageSharp.ImageHash&version=1.1.5 // Install CoenM.ImageSharp.ImageHash as a Cake Tool #tool nuget:?package=CoenM.ImageSharp.ImageHash&version=1.1.5
ImageHash
Perceptual image hashing in netstandard using the ImageSharp library. Includes three hashing algorithms (AverageHash, DifferenceHash, and PerceptualHash).
Calculate image hash
var hashAlgorithm = new AverageHash();
// or one of the other available algorithms:
// var hashAlgorithm = new DifferenceHash();
// var hashAlgorithm = new PerceptualHash();
string filename = "your filename";
using var stream = File.OpenRead(filename);
ulong imageHash = hashAlgorithm.Hash(stream);
Calculate image similarity
Note that to calculate the image similarity, both image hashes should have been calculated using the same hash algorihm.
// calculate the two image hashes
ulong hash1 = hashAlgorithm.Hash(imageStream1);
ulong hash2 = hashAlgorithm.Hash(imageStream2);
double percentageImageSimilarity = CompareHash.Similarity(hash1, hash2);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.1
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETCoreApp 3.1
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETFramework 4.6.1
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETFramework 4.7.2
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETStandard 2.0
- SixLabors.ImageSharp (>= 1.0.4)
-
net5.0
- SixLabors.ImageSharp (>= 1.0.4)
-
net6.0
- SixLabors.ImageSharp (>= 1.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CoenM.ImageSharp.ImageHash:
Package | Downloads |
---|---|
Verify.ImageHash
Extends Verify (https://github.com/VerifyTests/Verify) to allow verification via ImageHash (https://github.com/coenm/ImageHash). |
|
Aiursoft.NiBot.Core
Nuget package of 'Core' provided by Aiursoft |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on CoenM.ImageSharp.ImageHash:
Repository | Stars |
---|---|
Webreaper/Damselfly
Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection.
|
|
Decimation/SmartImage
Reverse image search tool (SauceNao, IQDB, Ascii2D, trace.moe, and more)
|
Version | Downloads | Last updated |
---|---|---|
1.3.6 | 142,361 | 7/5/2022 |
1.2.30 | 15,018 | 2/12/2022 |
1.1.5 | 7,042 | 11/13/2021 |
1.0.0 | 68,801 | 9/5/2020 |
1.0.0-beta0004 | 2,735 | 9/24/2019 |
1.0.0-beta0003 | 1,766 | 6/26/2019 |
1.0.0-beta0002 | 2,603 | 2/1/2019 |
1.0.0-beta.5 | 274 | 8/31/2020 |