Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 781 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 781 Bytes

ImageMatchNet

Image signature and search
c# implementation of the image-match library

Usage

Signature

Install ImageMatchNet Nuget Package

PM> Install-Package ImageMatchNet

Example

var gis = new ImageSignature();

var sign1 = gis.GenerateSignature("path1");
var sign2 = gis.GenerateSignature("path2");

var dist = gis.NormalizedDistance(sign1, sign2);

Elasticsearch Storage

Install ImageMatchNet.Elasticsearch Nuget Package

PM> Install-Package ImageMatchNet.Elasticsearch

Example

ISignatureStorage storage = new ElasticsearchSignatureStorage("http://localhost:9200");

storage.AddOrUpdateImage("image1", "filePath");
var matchs = storage.SearchImage("filePath");