--- title: ECG Rectifier emoji: 📈 colorFrom: red colorTo: pink sdk: gradio sdk_version: 6.28.0 python_version: "3.11" app_file: app.py pinned: false license: mit short_description: Flatten a phone photo of a paper ECG (CPU, ONNX) models: - pashaalex/ecg-rectifier --- # ECG Rectifier Turns a phone photo of a paper ECG (a strip or a sheet with one continuous grid; bent, crumpled, folded, held in a hand) into a flat sheet with a square grid at 10 px/mm. CPU only: numpy, OpenCV and onnxruntime. One photo takes about a minute. Code, models, training recipes and documentation: https://huggingface.co/pashaalex/ecg-rectifier (MIT).