An application for digitizing ECG scans. (2021 Project)
See paper-ecg for the main code.
- Parsa Hosseini
This code allows digitizing paper ECG image scans. Also, it scans the images with OCR.
Download the latest release here.
This guide takes you from a fresh install of Windows to having the project running.
The steps involved are:
-
Install Python
3.6.7
via official installer.-
Click here to download the installer.
OR
-
View other installation options on the python website.
-
-
Verify that the install was successful with
py -3.6 --version
:> py -3.6 --version 3.6.7
-
Navigate to the project root directory (
...\paperECG\
) and run:py -3.6 -m pip install --upgrade pip py -3.6 -m pip install -r requirements.txt
- Install Google Tesseract OCR.
-
Click here to see additional info how to install the engine on Linux, Mac OSX and Windows. Look for the binary installer for windows.
-
You must be able to invoke the tesseract command as tesseract. If this isn’t the case, for example because tesseract isn’t in your PATH, you will have to change the “tesseract_cmd” variable pytesseract.pytesseract.tesseract_cmd. Please note that all you have to do for this project is to change the config.ini file.
You should now have:
- Python 3.6.7
- All required packages
- Tesseract-OCR
In order to to run the program first edit config.ini. Set all four paths.
Now you have to run src\main\python\Main.py
py -3.6 main.py
The project currently requires Python 3.6.7
.