{ "info": { "author": "Fausto Morales", "author_email": "faustomorales@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "# pdqhash-python\nThese are Python bindings to the PDQ perceptual hash released by Facebook. Note that the bindings are provided under the MIT license but the PDQ source code is licensed separately under its own license (see the `ThreatExchange/hashing/pdq` folder).\n\n## Installation\n\n```\npip install pdqhash\n```\n\n## Usage\n\n```python\nimport pdqhash\n\nimage = cv2.imread(os.path.join('tests', 'images', image_name))\nimage = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)\nhash_vector, quality = pdqhash.compute(image)\n\n# Get all the rotations and flips in one pass.\n# hash_vectors is a list of vectors in the following order\n# - Original\n# - Rotated 90 degrees\n# - Rotated 180 degrees\n# - Rotated 270 degrees\n# - Flipped vertically\n# - Flipped horizontally\n# - Rotated 90 degrees and flipped vertically\n# - Rotated 90 degrees and flipped horizontally\nhash_vectors, quality = pdqhash.compute_dihedral(image)\n```\n\n## Contributing\n- Set up local development using `make init` (you need to have `pipenv` installed)\n- Run tests using `make test`\n- Run tests in Docker using `make docker_test`", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/faustomorales/pdqhash-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pdqhash", "package_url": "https://pypi.org/project/pdqhash/", "platform": "", "project_url": "https://pypi.org/project/pdqhash/", "project_urls": { "Homepage": "https://github.com/faustomorales/pdqhash-python" }, "release_url": "https://pypi.org/project/pdqhash/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "Python bindings for Facebook's PDQ hash", "version": "0.1.6" }, "last_serial": 5732288, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "4121c304fc8f28dcb1b2bca6338463a8", "sha256": "f22c295271ef1a304261b93ed59d49143c0f54a437870e95092c46a1846ce9a4" }, "downloads": -1, "filename": "pdqhash-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4121c304fc8f28dcb1b2bca6338463a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 636583, "upload_time": "2019-08-16T17:55:13", "url": "https://files.pythonhosted.org/packages/9e/6f/b1fbcab7c09552609e4c55bee28ff4430b6e32a10381faac7a3694093d14/pdqhash-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c11cf0c1c88950c91369de006479170f", "sha256": "a3f191e79702192052ff24c36b8c43dbd96140e65a571d573e6284cb9c25175f" }, "downloads": -1, "filename": "pdqhash-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c11cf0c1c88950c91369de006479170f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 636626, "upload_time": "2019-08-25T18:32:29", "url": "https://files.pythonhosted.org/packages/72/d6/08d3b6e274ed701926f61b518b052041d697831cffe5be30906e27841094/pdqhash-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "967d3f446e2f772cdd6afcb9ba98a9f5", "sha256": "738e892dc3d19b04f7f990276b72713b073e68f3fefcbe6afd6adab2d906b319" }, "downloads": -1, "filename": "pdqhash-0.1.5.tar.gz", "has_sig": false, "md5_digest": "967d3f446e2f772cdd6afcb9ba98a9f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 636628, "upload_time": "2019-08-25T19:07:23", "url": "https://files.pythonhosted.org/packages/b4/b8/9089f37595d0689477b8af93d5fdf6e7e81cf34f047ea088f92af1953c3d/pdqhash-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "a716aaefcb713e7d832913fcd4312792", "sha256": "8850e015e8fc22d5afca6f4213453bf7075a203f0bd11c3461664c55873fbdd0" }, "downloads": -1, "filename": "pdqhash-0.1.6.tar.gz", "has_sig": false, "md5_digest": "a716aaefcb713e7d832913fcd4312792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 637689, "upload_time": "2019-08-26T18:06:18", "url": "https://files.pythonhosted.org/packages/bb/98/e400418177cbc06c358f163977a4ac65e9e0b511cef6d1c2f66c677c819d/pdqhash-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a716aaefcb713e7d832913fcd4312792", "sha256": "8850e015e8fc22d5afca6f4213453bf7075a203f0bd11c3461664c55873fbdd0" }, "downloads": -1, "filename": "pdqhash-0.1.6.tar.gz", "has_sig": false, "md5_digest": "a716aaefcb713e7d832913fcd4312792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 637689, "upload_time": "2019-08-26T18:06:18", "url": "https://files.pythonhosted.org/packages/bb/98/e400418177cbc06c358f163977a4ac65e9e0b511cef6d1c2f66c677c819d/pdqhash-0.1.6.tar.gz" } ] }