docker run -it -v /var/www/ecg-detector:/ecg-detector -d franklin5/ecg-detector
version: '3.1'
services:
ecg-detector-services:
image: franklin5/ecg-detector
hostname: webserver01
container_name: ecg-detector
environment:
TZ: Asia/Shanghai
stdin_open: true
tty: true
command: ["/bin/bash"]
volumes:
- /var/www/ecg-detector:/ecg-detector
使用说明: usage: ecg_detector.py [-h] -p ECG_FILE_PATH [-f] [-freq SAMPLE_FREQ] output_path
ecg signal filter,qrs detector and PT Waves detector
positional arguments: output_path
optional arguments: -h, --help show this help message and exit -p ECG_FILE_PATH ecg file name. -f use filter or not. -freq SAMPLE_FREQ ecg sampling rate, default 500hz
-p 后面接心电原始文件的路径 (必填) -f 选择是否要进行滤波操作 (选填) -freq 后面接采样频率 有-f选项才有意义,默认采样频率 500 HZ output_path 保存结果文件的路径
举个例子:
不滤波 直接生成数据 ecg_detector -p ./test.csv ./ 运行结果:会在当前文件夹下面生成 test_qrs.csv(保存qrs起点和终点的信息) test_pt.csv(保存P波和T波的信息) 文件
以默认频率500HZ滤波之后再做模型检测 ecg_detector -f -p ./test.csv ./ 运行结果:会在当前文件夹下面生成 test_filtered.csv test_filtered_qrs.csv(保存qrs起点和终点的信息) test_filtered_pt.csv(保存P波和T波的信息) 文件
以默认频率500HZ滤波之后再做模型检测 ecg_detector -f -freq 800 -p ./test.csv ./ 运行结果:会在当前文件夹下面生成 test_filtered.csv test_filtered_qrs.csv(保存qrs起点和终点的信息) test_filtered_pt.csv(保存P波和T波的信息) 文件
Content type
Image
Digest
Size
303.4 MB
Last updated
almost 8 years ago
docker pull franklin5/ecg-detector