Are there any OK image recognition libraries for .NET?

前端 未结 3 805
执笔经年
执笔经年 2020-11-30 17:17

I want to be able to compare an image taken from a webcam to an image stored on my computer.

The library doesn\'t need to be one hundred percent accurate as it won\'

3条回答
  •  无人及你
    2020-11-30 17:40

    You could try this: http://code.google.com/p/aforge/

    It includes a comparison analysis that will give you a score. There are many other great imaging features of all types included as well.

    // 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
    }
    

提交回复
热议问题