Perceptual Image Hash
Chưa có ai nhận issue này.
- #150 của @bjlittle — đã đóng, không merge
Đá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
- 35/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
- testing-qa
Hướng nghiên cứu
Bắt đầu bằng việc xem xét hành vi hiện có của pytest-mpl trong việc so sánh hình ảnh đồ họa và hashing, sau đó kiểm tra cách gói imagehash có thể hỗ trợ một phương án thay thế opt-in. Được xem là hoàn thành khi đã đưa ra quyết định ở cấp dự án và, nếu được chấp nhận, xác định một tính năng perceptual hashing có thể cấu hình, kèm theo độ bao phủ cho hành vi so sánh hình ảnh của tính năng đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Thanks and congrats on pytest-mpl. It's really lovely 👍
Over on SciTools/iris we've been using a very similar framework to perform graphical testing, but rather than using RMS or SHA-256 hashes we've opted to use perceptual image hashes.
Historically, we found using RMS/SHA-256 quite fragile and too sensitive to change, and that sometimes involved quite an overhead on devs to manually understand whether graphical test failures were significant or not; typically, it really depended on the nature of the image change involved, and that generally took time and effort to figure out.
However, for the last few years now we've adopted perceptual image hashing as a more robust and stable approach to graphical image testing, and we'd love to be able to use pytest-mpl as a general framework (rather than reinvent the wheel) as we're keen to use perceptual image hashing elsewhere in other packages other than iris.
If you want to know more about perceptual image hashing:
- here's a gist notebook detailing outcomes from our initial investigation of perceptual image hashing as an option for
SciTools/iris - here's a scientific paper (of which there are many) performing an analysis of perceptual image hashing algorithms
In the end, we opted to leverage the https://github.com/JohannesBuchner/imagehash package, which is available on both conda-forge and pypi, to perform the actual perceptual image hashing.
At this point, I guess my question to the pytest-mpl core developers are:
- Have you considered using perceptual image hashing as an approach and decided not to use it? If so, why? That would be really great to know.
- If you're not against the concept, would you be open to us making an additive change to
pytest-mplwhere the user can choose to opt-in to an alternative hashing algorithm, that they configure, to perform their graphical testing?
I think that option [2] would be possible and a valuable feature for the pytest-mpl community.
However, you guys have the vision of where you want pytest-mpl go and the use cases that you want to address. It would be really great to know whether you're open to offering configurable hashing kernels as a feature. If you are, then we'd be more than willing to do the work and contribute to pytest-mpl under your guidance and advice.
Thanks 😃
- Ngôn ngữ chính
- Python
- Star
- 274
- Fork
- 53
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của matplotlib/pytest-mpl
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
matplotlib/pytest-mpl#264 · 2 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
matplotlib/pytest-mpl#263 · 3 bình luận ·
-
Old docs on matplotlib.orgĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
matplotlib/pytest-mpl#262 · 6 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
matplotlib/pytest-mpl#261 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
matplotlib/pytest-mpl#257 · 2 bình luận ·
Tất cả issue của matplotlib/pytest-mpl
Issue tương tự
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
vllm-project/vllm-ascend#24429 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
simnJS/AnyPS5#735 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sqlreview.sh: `remap` with no review draft seeds one, and `delta` prints the diff then exits 2Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
nq-rdl/agent-extensions#623 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vortex-data/vortex#12633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gke-labs/kube-agents#7955 ·
Maintainer thường phản hồi trong vòng 1 ngày