Identifying 2 same images using Java

前端 未结 10 2474
别那么骄傲
别那么骄傲 2020-12-28 21:10

I have a problem in my web crawler where I am trying to retrieve images from a particular website. Problem is that often I see images that are exactly same but different in

10条回答
  •  执念已碎
    2020-12-28 21:18

    calculate MD5s using something like this:

    MessageDigest m=MessageDigest.getInstance("MD5");
    m.update(image.getBytes(),0,image.length());
    System.out.println("MD5: "+new BigInteger(1,m.digest()).toString(16));
    

    Put them in a hashmap.

提交回复
热议问题