Are there any OK image recognition libraries for .NET?

前端 未结 3 799
执笔经年
执笔经年 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
    }
    
    0 讨论(0)
  • 2020-11-30 17:53

    I did it simply. Just download the EyeOpen library here. Then use it in your C# class and write this:

     use eyeopen.imaging.processing
    

    Write

    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");
    }
    
    0 讨论(0)
  • 2020-11-30 17:58

    You can exactly use EmguCV for .NET.

    0 讨论(0)
提交回复
热议问题