Perceptual hash

Đang mở
#3,120 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
computer-vision

Hướng nghiên cứu

No Pillow file or test is named in the issue. Start by reviewing the requested perceptual-hashing API, the linked algorithm description, and the phash project, then clarify which algorithm and comparison behavior are in scope. Done means the project has an agreed implementation and API with corresponding tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Enhancement

For finding duplicates, it would be nice if Pillow would include some perceptual hashing algorithm:
https://en.wikipedia.org/wiki/Perceptual_hashing

The real use case for me is that my in my photo collection I often have the same image in different resolutions, e.g. if I sent it via WhatsApp: Once in full resolution from the camera, once in reduced resolution in WhatsApp.

Here is a blog post describing a simple algorithm that also uses Pillow:
https://www.safaribooksonline.com/blog/2013/11/26/image-hashing-with-python/
but it would be more convenient to have some function builtin,
most interesting something like image.signature or image.phash and then some function to calculate the similarity or distance between two or more images.

One library mentioned quite often in this context is phash:
http://www.phash.org/
Maybe their algorithms could be reused?

If this is out of scope for Pillow I would just use one the projects providing phash python bindings.

Ngôn ngữ chính
Python
Star
14k
Fork
2.6k
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
205

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-pillow/Pillow

Tất cả issue của python-pillow/Pillow

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.