簡體   English   中英

是否有適用於.NET的OK圖像識別庫?

[英]Are there any OK image recognition libraries for .NET?

我希望能夠將從網絡攝像頭拍攝的圖像與存儲在計算機上的圖像進行比較。

圖書館不需要百分之百准確,因為它不會用於任何關鍵任務(例如警察調查),我只想要一些可以使用的東西。

我已經嘗試過CodeProject的圖像識別演示項目,它只適用於小圖像/當我比較完全相同的圖像120x90像素時根本不起作用(這不屬於OK:P)。

以前圖像識別是否有成功?

如果是這樣,你能提供一個我可以在C#或VB.NET中使用的庫的鏈接嗎?

您可以嘗試這樣做: http//code.google.com/p/aforge/

它包括一個比較分析,可以給你一個分數。 還包括所有類型的許多其他偉大的成像功能。

// The class also can be used to get similarity level between two image of the same size, which can be useful to get information about how different/similar are images:
// Create template matching algorithm's instance

// Use zero similarity to make sure algorithm will provide anything
ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching(0);

// Compare two images
TemplateMatch[] matchings = tm.ProcessImage( image1, image2 );

// Check similarity level
if (matchings[0].Similarity > 0.95)
{
    // Do something with quite similar images
}

您可以使用EmguCV for .NET。

我干脆做了。 只需在下載EyeOpen庫。 然后在你的C#類中使用它並寫下:

 use eyeopen.imaging.processing

ComparableImage cc;

ComparableImage pc;

int sim;

void compare(object sender, EventArgs e){

    pc = new ComparableImage(new FileInfo(files));

    cc = new ComparableImage(new FileInfo(file));

    pc.CalculateSimilarity(cc);

    sim = pc.CalculateSimilarity(cc);

    int sim2 = sim*100

    Messagebox.show(sim2 + "% similar");
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM