質問

ウェブカメラから撮影した画像とコンピューターに保存されている画像を比較したい。

図書館は、ミッションクリティカルなもの(警察の捜査など)で使用されることはないため、100%正確である必要はありません。

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
}

他のヒント

.NETでは EmguCV を正確に使用できます。

私は簡単にやった。 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帰属
所属していません StackOverflow
scroll top