{"library":"perception","title":"Perception","description":"Perception provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use. Version 0.8.4 supports Python >=3.10 <4.0. Release cadence is irregular, with updates every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install perception"],"cli":null},"imports":["from perception import ImageHash","from perception import hashers","from perception import tools"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from perception import hashers\n\nhasher = hashers.PHash()\nhash1 = hasher.compute('image1.jpg')\nhash2 = hasher.compute('image2.jpg')\ndistance = hash1 - hash2\nprint(f'Hamming distance: {distance}')\n","lang":"python","description":"Compute perceptual hashes for two images and compare using Hamming distance.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}