What is image hashing used for?

后端 未结 5 1729
情深已故
情深已故 2020-12-12 13:04

I hear this term sometimes and am wondering what it is used for?

5条回答
  •  悲&欢浪女
    2020-12-12 13:45

    While normally hashing a file hashes the individual bits of data of the file, image hashing works on a slightly higher level. The difference is that with image hashing, if two pictures look practically identical but are in a different format, or resolution (or there is minor corruption, perhaps due to compression) they should hash to the same number. Despite the actual bits of their data being totally different, if they look parctically identical to a human, they hash to the the same thing.

    One application of this is search. TinEye.com allows you to upload an image and find many of its occurrences on the internet. like google, it has a web crawler that crawls through web pages and looks for images. It then hashes these images and stores the hash and url in a database. When you upload an image, it simply calculates the hash and retrieves all the urls linking to that hash in the database. Sample uses of TinEye include finding higher resolution versions of pictures, or finding someone's public facebook/myspace/etc. profile from their picture (assuming these profiles use the same photo.

    Image hashing can also be used with caching or local storage to prevent retransmission of a photo or storage of duplicates, respectively.

    There are plenty of other possibilities including image authentication and finding similar frames in a video (as was mentioned by someone else).

提交回复
热议问题