Skip to content
Projetos

giorgimskh/elpv-crack-detection

Ver no GitHub

Sobre

Crack detection in solar-cell electroluminescence (EL) images with classical numerical methods: spline busbar fill, Laplacian of Gaussian, DBSCAN. No deep learning. pip install elpv-crack

Ciência e engenharia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

elpv-crack

Find cracks in solar-cell electroluminescence (EL) images: classical numerical methods, no deep learning.

tests PyPI Python License: non-commercial

Four EL cells and what crack-detect finds in them: cracks in red, dark areas in orange, a red frame for DEFECTIVE and a green frame for OK

  • Checks single cells, whole folders, or whole modules cell by cell.
  • Shows why: every step explained, plus pictures with the cracks marked.
  • Runs on a laptop CPU; a small model file is included, so no dataset or GPU is needed.
  • AUC 0.854 on the held-out half of the ELPV dataset.

Non-commercial use only. The code is MIT, but the bundled model is derived from the ELPV dataset (CC BY-NC-SA 4.0). See License.

Install

pip install elpv-crack

Python 3.10 or newer. pip install "elpv-crack[plot]" adds matplotlib for --figure.

Quick start

# one cell: every step explained, then OK / DEFECTIVE
crack-detect cell.png --type mono

# a folder, with a CSV report and pictures of the cracks
crack-detect photos/ --type poly --csv report.csv --overlay overlays/

# a whole module, cell by cell
crack-detect module.png --type mono --module

# adjust to your own camera with healthy cells
crack-calibrate healthy_cells/ --type mono --out my_camera.json
from elpv_crack import Detector

result = Detector().check("cell.png", "mono")
print(result.defective, result.score)

All options are in the usage guide.

How it works

  1. Busbar removal: the bright busbars are found from the row-mean profile and filled by spline interpolation.
  2. Crack lines: Laplacian of Gaussian with a 5-point finite-difference stencil, then a threshold.
  3. Grouping: DBSCAN clusters the candidate pixels into cracks; an elongation filter keeps the line-like ones.
  4. Decision: logistic regression on six measurements (default), or the percentile rule of the report.

Results

Held-out test half of ELPV (1,165 cells):

rule AUC (95% CI) accuracy defects found healthy passed
percentile (report) 0.797 (0.77–0.82) 0.782 58.4 % 89.0 %
logistic (default) 0.854 (0.83–0.88) 0.791 63.5 % 87.5 %

Limits: it is built for ELPV-like cells (2–4 busbars). Images from other cameras need crack-calibrate, and module mode has been tested on synthetic modules only. Details are in the results.

Documentation

Usage guide all commands and options, modules, calibration, Python API
Results ELPV, module mode, calibration, other cameras, limitations
Reproducing the report environment, how to run, expected output and run time, project structure
Report (PDF) · Slides (PDF) the full write-up

To reproduce every number of the report (about 5 minutes):

pip install -r requirements.txt && cd code && python run_all.py

License

Non-commercial use. The code, report and slides are under the MIT License. The bundled model and the ELPV images are under CC BY-NC-SA 4.0, and so are models made with crack-calibrate. Commercial use would need permission from the dataset's rights holders, or a model built entirely from your own images. Details are in NOTICE. This is not legal advice.

Citation

If you use this project, please cite it (GitHub: Cite this repository), and cite the dataset:

  • C. Buerhop-Lutz et al., "A benchmark for visual identification of defective solar cells in electroluminescence imagery," 35th EU PVSEC, 2018.
  • S. Deitsch et al., "Automatic classification of defective photovoltaic module cells in electroluminescence images," Solar Energy 185:455–468, 2019.

code/benchmark_check.py also uses L. Pratt, J. Mattheus, R. Klein, "A benchmark dataset for defect detection and classification in electroluminescence images of PV modules using semantic segmentation," Systems and Soft Computing 5:200048, 2023 (downloaded separately).

Explore projetos relacionados

Carregando…