Perceptual Image Hash
Nadie ha tomado este issue todavía.
- #150 de @bjlittle — cerrado sin fusionar
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- testing-qa
Línea de trabajo
Comienza revisando el comportamiento existente de pytest-mpl para la comparación de imágenes gráficas y el hashing; después, examina cómo el paquete imagehash podría admitir una alternativa opt-in. Se considerará terminado cuando se haya tomado una decisión sobre el proyecto y, si se acepta, se haya definido una funcionalidad configurable de hashing perceptual con cobertura para su comportamiento de comparación de imágenes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 😃
- Lenguaje dominante
- Python
- Estrellas
- 274
- Forks
- 53
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de matplotlib/pytest-mpl
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
matplotlib/pytest-mpl#264 · 2 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
matplotlib/pytest-mpl#263 · 3 comentarios ·
-
Old docs on matplotlib.orgAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
matplotlib/pytest-mpl#262 · 6 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
matplotlib/pytest-mpl#261 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
matplotlib/pytest-mpl#257 · 2 comentarios ·
Todos los issues de matplotlib/pytest-mpl
Issues similares
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
vllm-project/vllm-ascend#24429 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
simnJS/AnyPS5#735 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
sqlreview.sh: `remap` with no review draft seeds one, and `delta` prints the diff then exits 2Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
nq-rdl/agent-extensions#623 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vortex-data/vortex#12633 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gke-labs/kube-agents#7955 ·
Los mantenedores suelen responder en 1 día