Perception 0.8.0__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. {perception-0.8.0 → perception-0.8.1}/PKG-INFO +1 -1
  2. {perception-0.8.0 → perception-0.8.1}/pyproject.toml +2 -2
  3. {perception-0.8.0 → perception-0.8.1}/setup.py +3 -3
  4. {perception-0.8.0 → perception-0.8.1}/LICENSE +0 -0
  5. {perception-0.8.0 → perception-0.8.1}/README.md +0 -0
  6. {perception-0.8.0 → perception-0.8.1}/build.py +0 -0
  7. {perception-0.8.0 → perception-0.8.1}/perception/__init__.py +0 -0
  8. {perception-0.8.0 → perception-0.8.1}/perception/approximate_deduplication/__init__.py +0 -0
  9. {perception-0.8.0 → perception-0.8.1}/perception/approximate_deduplication/debug.py +0 -0
  10. {perception-0.8.0 → perception-0.8.1}/perception/approximate_deduplication/index.py +0 -0
  11. {perception-0.8.0 → perception-0.8.1}/perception/approximate_deduplication/serve.py +0 -0
  12. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/__init__.py +0 -0
  13. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/common.py +0 -0
  14. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/extensions.pyx +0 -0
  15. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/image.py +0 -0
  16. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/image_transforms.py +0 -0
  17. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/video.py +0 -0
  18. {perception-0.8.0 → perception-0.8.1}/perception/benchmarking/video_transforms.py +0 -0
  19. {perception-0.8.0 → perception-0.8.1}/perception/extensions.pyx +0 -0
  20. {perception-0.8.0 → perception-0.8.1}/perception/hashers/__init__.py +0 -0
  21. {perception-0.8.0 → perception-0.8.1}/perception/hashers/hasher.py +0 -0
  22. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/__init__.py +0 -0
  23. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/average.py +0 -0
  24. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/dhash.py +0 -0
  25. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/opencv.py +0 -0
  26. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/pdq.py +0 -0
  27. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/phash.py +0 -0
  28. {perception-0.8.0 → perception-0.8.1}/perception/hashers/image/wavelet.py +0 -0
  29. {perception-0.8.0 → perception-0.8.1}/perception/hashers/tools.py +0 -0
  30. {perception-0.8.0 → perception-0.8.1}/perception/hashers/video/__init__.py +0 -0
  31. {perception-0.8.0 → perception-0.8.1}/perception/hashers/video/framewise.py +0 -0
  32. {perception-0.8.0 → perception-0.8.1}/perception/hashers/video/tmk.py +0 -0
  33. {perception-0.8.0 → perception-0.8.1}/perception/local_descriptor_deduplication.py +0 -0
  34. {perception-0.8.0 → perception-0.8.1}/perception/py.typed +0 -0
  35. {perception-0.8.0 → perception-0.8.1}/perception/testing/__init__.py +0 -0
  36. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/README.md +0 -0
  37. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image1.jpg +0 -0
  38. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image10.jpg +0 -0
  39. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image2.jpg +0 -0
  40. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image3.jpg +0 -0
  41. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image4.jpg +0 -0
  42. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image5.jpg +0 -0
  43. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image6.jpg +0 -0
  44. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image7.jpg +0 -0
  45. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image8.jpg +0 -0
  46. {perception-0.8.0 → perception-0.8.1}/perception/testing/images/image9.jpg +0 -0
  47. {perception-0.8.0 → perception-0.8.1}/perception/testing/logos/README.md +0 -0
  48. {perception-0.8.0 → perception-0.8.1}/perception/testing/logos/logoipsum.png +0 -0
  49. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/README.md +0 -0
  50. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/expected_tmk.json.gz +0 -0
  51. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/rgb.m4v +0 -0
  52. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/v1.m4v +0 -0
  53. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/v2.m4v +0 -0
  54. {perception-0.8.0 → perception-0.8.1}/perception/testing/videos/v2s.mov +0 -0
  55. {perception-0.8.0 → perception-0.8.1}/perception/tools.py +0 -0
  56. {perception-0.8.0 → perception-0.8.1}/perception/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: Perception
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: Perception provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use.
5
5
  License: Apache-2.0
6
6
  Author: Thorn
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "Perception"
3
- version = "0.8.0"
3
+ version = "0.8.1"
4
4
  description = "Perception provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use."
5
5
  authors = ["Thorn <info@wearethorn.org>"]
6
6
  license = "Apache License 2.0"
@@ -17,10 +17,10 @@ Pillow = "*"
17
17
  pywavelets = "^1.5.0"
18
18
  tqdm = "*"
19
19
  validators = ">=0.22, <1.0"
20
+ scipy = "*"
20
21
 
21
22
  # Benchmarking Extras
22
23
  matplotlib = { version = "*", optional = true }
23
- scipy = { version = "*", optional = true }
24
24
  imgaug = { version = "*", optional = true }
25
25
  tabulate = { version = "*", optional = true }
26
26
  scikit-learn = { version = "*", optional = true }
@@ -26,8 +26,8 @@ install_requires = \
26
26
  'validators>=0.22,<1.0']
27
27
 
28
28
  extras_require = \
29
- {'benchmarking': ['matplotlib',
30
- 'scipy',
29
+ {':extra == "benchmarking"': ['scipy'],
30
+ 'benchmarking': ['matplotlib',
31
31
  'imgaug',
32
32
  'tabulate',
33
33
  'scikit-learn',
@@ -37,7 +37,7 @@ extras_require = \
37
37
 
38
38
  setup_kwargs = {
39
39
  'name': 'Perception',
40
- 'version': '0.8.0',
40
+ 'version': '0.8.1',
41
41
  'description': 'Perception provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use.',
42
42
  'long_description': "# perception ![ci](https://github.com/thorn-oss/perception/workflows/ci/badge.svg)\n\n`perception` provides flexible, well-documented, and comprehensively tested tooling for perceptual hashing research, development, and production use. See [the documentation](https://perception.thorn.engineering/en/latest/) for details.\n\n## Background\n\n`perception` was initially developed at [Thorn](https://www.thorn.org) 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](https://www.thorn.org/blog/time-is-now-eliminate-csam/).\n\n## Getting Started\n\n### Installation\n\n`pip install perception`\n\n### Hashing\n\nHashing with different functions is simple with `perception`.\n\n```python\nfrom perception import hashers\n\nfile1, file2 = 'test1.jpg', 'test2.jpg'\nhasher = hashers.PHash()\nhash1, hash2 = hasher.compute(file1), hasher.compute(file2)\ndistance = hasher.compute_distance(hash1, hash2)\n```\n\n### Examples\n\nSee below for end-to-end examples for common use cases for perceptual hashes.\n\n- [Detecting child sexual abuse material](https://perception.thorn.engineering/en/latest/examples/detecting_csam.html)\n- [Deduplicating media](https://perception.thorn.engineering/en/latest/examples/deduplication.html)\n- [Benchmarking perceptual hashes](https://perception.thorn.engineering/en/latest/examples/benchmarking.html)\n\n## Supported Hashing Algorithms\n\n`perception` currently ships with:\n\n- pHash (DCT hash) (`perception.hashers.PHash`)\n- Facebook's PDQ Hash (`perception.hashers.PDQ`)\n- dHash (difference hash) (`perception.hashers.DHash`)\n- aHash (average hash) (`perception.hashers.AverageHash`)\n- Marr-Hildreth (`perception.hashers.MarrHildreth`)\n- Color Moment (`perception.hashers.ColorMoment`)\n- Block Mean (`perception.hashers.BlockMean`)\n- wHash (wavelet hash) (`perception.hashers.WaveletHash`)\n\n## Contributing\n\nTo work on the project, start by doing the following.\n\n```bash\n# Install local dependencies for\n# code completion, etc.\nmake init\n\n- To do a (close to) comprehensive check before committing code, you can use `make precommit`.\n\nTo implement new features, please first file an issue proposing your change for discussion.\n\nTo report problems, please file an issue with sample code, expected results, actual results, and a complete traceback.\n\n## Alternatives\n\nThere are other packages worth checking out to see if they meet your needs for perceptual hashing. Here are some\nexamples.\n\n- [dedupe](https://github.com/dedupeio/dedupe)\n- [imagededup](https://idealo.github.io/imagededup/)\n- [ImageHash](https://github.com/JohannesBuchner/imagehash)\n- [PhotoHash](https://github.com/bunchesofdonald/photohash)\n```\n",
43
43
  'author': 'Thorn',
File without changes
File without changes
File without changes