Are there any OK image recognition libraries for .NET?

前端 未结 3 802
执笔经年
执笔经年 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: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");
    }
    

提交回复
热议问题