

Perceptual hashing tools for detecting child sexual abuse material
source link: https://github.com/thorn-oss/perception
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

perception
perception
provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use. See the documentation
for details.
Background
perception
was initially developed at Thorn
as part of our work to eliminate child sexual abuse material from the internet. For more information on the issue, check out our CEO's TED talk
.
Getting Started
Installation
pip install opencv-python perception
Hashing
Hashing with different functions is simple with perception
.
from perception import hashers file1, file2 = 'test1.jpg', 'test2.jpg' hasher = hashers.PHash() hash1, hash2 = hasher.compute(file1), hasher.compute(file2) distance = hasher.compute_distance(hash1, hash2)
Examples
See below for end-to-end examples for common use cases for perceptual hashes.
Supported Hashing Algorithms
perception
currently ships with:
perception.hashers.PHash perception.hashers.PDQ perception.hashers.DHash perception.hashers.AverageHash perception.hashers.MarrHildreth perception.hashers.ColorMoment perception.hashers.BlockMean
Contributing
To work on the project, start by doing the following.
# Install local dependencies for # code completion, etc. make init # Build the Docker container to run # tests and such. make build
make lab-server make precommit make documentation-server
To implement new features, please first file an issue proposing your change for discussion.
To report problems, please file an issue with sample code, expected results, actual results, and a complete traceback.
Alternatives
There are other packages worth checking out to see if they meet your needs for perceptual hashing. Here are some examples.
Recommend
-
4
Apple to scan U.S. iPhones for images of child sexual abuseBy FRANK BAJAK and BARBARA ORTUTAY35 minutes agoThis May 21, 2021 photo shows the Apple logo displayed on a Mac Pro desktop...
-
7
TechApple will report images of child sexual abuse detected on iCloud to law enforcementPublished Thu, Aug 5 20214:51 PM EDTUpdated Thu, Aug 5 20214...
-
7
Apple will scan Photos and Messages for Child Sexual Abuse Materials (CSAM) Thursday, August 5, 2021 3:58 pmFriday, August 6, 2021
-
13
Reports of online child sexual abuse in NI rise by 80%Published22 hours agoImage caption, The offenses include sexual assault, rape and sexual communication with a child where any element was committed on...
-
10
Needs more moderation — TikTok under US government investigation over child sexual abuse material Short-video app accused of being "perfect place for predators" by DHS.
-
6
Judge Rules Visa Can Be Sued for Monetizing Child Sexual Abuse Material on PornhubThe court could infer that “Visa intended to help MindGeek monetize child porn," the decision states.August 1,...
-
11
TikTok moderators say they were shown child sexual abuse videos during training A “daily required reading” full of horrific imagery ...
-
0
September 12, 2022 ...
-
3
AI-generated child sex images spawn new nightmare for the webInvestigators say the disturbing images could undermine efforts to find real-world victimsBy...
-
11
CloseExploitive, illegal photos of children found in the data that trains some AIStanford researchers found more than 1,000 ima...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK