Free/open library to find similar images

后端 未结 2 745
青春惊慌失措
青春惊慌失措 2021-02-03 12:41

I\'m looking for stable and mature free/opensource library allows to compare two images.

I found this one but I want to know if you use a better one!

  • Simil
2条回答
  •  时光说笑
    2021-02-03 13:09

    I did it simply.Just download 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");
    
    }
    

提交回复
热议问题