propublica/facebook-political-ads

reverse image search via perceptual hashing

Open

#74 opened on Jun 19, 2018

View on GitHub
 (8 comments) (0 reactions) (0 assignees)HTML (234 stars) (50 forks)batch import
help wanted

Description

it would be really neat to be able to search for ads that use an image (e.g. a news photo or a meme) OR group ads that use the same image.

The way to do this would likely be to -- at some point -- record each image's perceptual hash, then at search time, compare the given image to all images in the DB, returning those that are similar. dhash and phash are both perceptual hashing algorithms, but there may be other good choices.

For instance, hopefully, we could determine which ads use the Distracted Boyfriend meme like this one .

Contributor guide