diff --git a/func/Module_detect_Jpeak.py b/func/Module_detect_Jpeak.py
index 04f8c02..2246aae 100644
--- a/func/Module_detect_Jpeak.py
+++ b/func/Module_detect_Jpeak.py
@@ -207,6 +207,8 @@ class MainWindow_detect_Jpeak(QMainWindow):
self.ui.spinBox_intervalHigh.editingFinished.connect(self.__update_config__)
self.ui.checkBox_useCPU.stateChanged.connect(self.__update_config__)
self.ui.comboBox_model.currentTextChanged.connect(self.__update_config__)
+ self.ui.radioButton_skip_process.toggled.connect(self.__update_config__)
+ self.ui.radioButton_bandpass_process.toggled.connect(self.__update_config__)
@overrides
def closeEvent(self, event):
@@ -262,6 +264,7 @@ class MainWindow_detect_Jpeak(QMainWindow):
return Result().failure(info=Constants.DRAW_FAILURE)
def __update_config__(self):
+ sender = self.sender()
Config["Filter"]["BandPassLow"] = self.ui.doubleSpinBox_bandPassLow.value()
Config["Filter"]["BandPassHigh"] = self.ui.doubleSpinBox_bandPassHigh.value()
Config["PeaksValue"] = self.ui.spinBox_peaksValue.value()
@@ -270,6 +273,10 @@ class MainWindow_detect_Jpeak(QMainWindow):
Config["IntervalHigh"] = self.ui.spinBox_intervalHigh.value()
Config["UseCPU"] = self.ui.checkBox_useCPU.isChecked()
Config["DetectMethod"] = self.ui.comboBox_model.currentText()
+ if sender == self.ui.radioButton_skip_process:
+ Config["Filter"]["Mode"] = "skip"
+ elif sender == self.ui.radioButton_bandpass_process:
+ Config["Filter"]["Mode"] = "bandpass"
def __slot_btn_input__(self):
PublicFunc.__disableAllButton__(self, ButtonState)
@@ -444,21 +451,24 @@ class Data:
Constants.FAILURE_REASON["Data_Not_Exist"])
try:
- if ((Config["Filter"]["BandPassLow"] >= Config["Filter"]["BandPassHigh"]) or
- (Config["Filter"]["BandPassLow"] <= 0) or (Config["Filter"]["BandPassHigh"] <= 0)):
- return Result().failure(
- info=Constants.PREPROCESS_FAILURE + Constants.FAILURE_REASON["Filter_Args_Not_Correct"])
- self.processed_data = preprocess(self.raw_data,
- Config["InputConfig"]["Freq"],
- Config["Filter"]["BandPassLow"],
- Config["Filter"]["BandPassHigh"],
- Config["AmpValue"])
+ if Config["Filter"]["Mode"] == "skip":
+ self.processed_data = self.raw_data[:len(self.raw_data) // (Config["InputConfig"]["Freq"] * 10) * Config["InputConfig"]["Freq"] * 10]
+ return Result().success(info=Constants.PREPROCESS_NO_NEED)
+ elif Config["Filter"]["Mode"] == "bandpass":
+ if ((Config["Filter"]["BandPassLow"] >= Config["Filter"]["BandPassHigh"]) or
+ (Config["Filter"]["BandPassLow"] <= 0) or (Config["Filter"]["BandPassHigh"] <= 0)):
+ return Result().failure(
+ info=Constants.PREPROCESS_FAILURE + Constants.FAILURE_REASON["Filter_Args_Not_Correct"])
+ self.processed_data = preprocess(self.raw_data,
+ Config["InputConfig"]["Freq"],
+ Config["Filter"]["BandPassLow"],
+ Config["Filter"]["BandPassHigh"],
+ Config["AmpValue"])
+ return Result().success(info=Constants.PREPROCESS_FINISHED)
except Exception as e:
return Result().failure(info=Constants.PREPROCESS_FAILURE +
Constants.FAILURE_REASON["Preprocess_Exception"] + "\n" + format_exc())
- return Result().success(info=Constants.PREPROCESS_FINISHED)
-
def predict_Jpeak(self, model):
if not (Path(model.model_folder_path) / Path(model.selected_model)).exists():
return Result().failure(info=Constants.DETECT_JPEAK_PREDICT_FAILURE +
diff --git a/func/Module_detect_Rpeak.py b/func/Module_detect_Rpeak.py
index c87bcc4..2a5b6dd 100644
--- a/func/Module_detect_Rpeak.py
+++ b/func/Module_detect_Rpeak.py
@@ -201,6 +201,8 @@ class MainWindow_detect_Rpeak(QMainWindow):
self.ui.doubleSpinBox_bandPassHigh.editingFinished.connect(self.__update_config__)
self.ui.spinBox_peaksValue.editingFinished.connect(self.__update_config__)
self.ui.comboBox_method.currentTextChanged.connect(self.__update_config__)
+ self.ui.radioButton_skip_process.toggled.connect(self.__update_config__)
+ self.ui.radioButton_bandpass_process.toggled.connect(self.__update_config__)
@overrides
def closeEvent(self, event):
@@ -260,10 +262,15 @@ class MainWindow_detect_Rpeak(QMainWindow):
return Result().failure(info=Constants.DRAW_FAILURE)
def __update_config__(self):
+ sender = self.sender()
Config["Filter"]["BandPassLow"] = self.ui.doubleSpinBox_bandPassLow.value()
Config["Filter"]["BandPassHigh"] = self.ui.doubleSpinBox_bandPassHigh.value()
Config["PeaksValue"] = self.ui.spinBox_peaksValue.value()
Config["DetectMethod"] = self.ui.comboBox_method.currentText()
+ if sender == self.ui.radioButton_skip_process:
+ Config["Filter"]["Mode"] = "skip"
+ elif sender == self.ui.radioButton_bandpass_process:
+ Config["Filter"]["Mode"] = "bandpass"
def __slot_btn_input__(self):
PublicFunc.__disableAllButton__(self, ButtonState)
@@ -446,20 +453,23 @@ class Data:
Constants.FAILURE_REASON["Data_Not_Exist"])
try:
- if ((Config["Filter"]["BandPassLow"] >= Config["Filter"]["BandPassHigh"]) or
- (Config["Filter"]["BandPassLow"] <= 0) or (Config["Filter"]["BandPassHigh"] <= 0)):
- return Result().failure(
- info=Constants.PREPROCESS_FAILURE + Constants.FAILURE_REASON["Filter_Args_Not_Correct"])
- self.processed_data = preprocess(self.raw_data,
- Config["InputConfig"]["Freq"],
- Config["Filter"]["BandPassLow"],
- Config["Filter"]["BandPassHigh"])
+ if Config["Filter"]["Mode"] == "skip":
+ self.processed_data = self.raw_data
+ return Result().success(info=Constants.PREPROCESS_NO_NEED)
+ elif Config["Filter"]["Mode"] == "bandpass":
+ if ((Config["Filter"]["BandPassLow"] >= Config["Filter"]["BandPassHigh"]) or
+ (Config["Filter"]["BandPassLow"] <= 0) or (Config["Filter"]["BandPassHigh"] <= 0)):
+ return Result().failure(
+ info=Constants.PREPROCESS_FAILURE + Constants.FAILURE_REASON["Filter_Args_Not_Correct"])
+ self.processed_data = preprocess(self.raw_data,
+ Config["InputConfig"]["Freq"],
+ Config["Filter"]["BandPassLow"],
+ Config["Filter"]["BandPassHigh"])
+ return Result().success(info=Constants.PREPROCESS_FINISHED)
except Exception as e:
return Result().failure(info=Constants.PREPROCESS_FAILURE +
Constants.FAILURE_REASON["Preprocess_Exception"] + "\n" + format_exc())
- return Result().success(info=Constants.PREPROCESS_FINISHED)
-
def predict_Rpeak(self):
if self.processed_data is None:
return Result().failure(info=Constants.DETECT_RPEAK_PREDICT_FAILURE +
diff --git a/func/Module_label_check.py b/func/Module_label_check.py
index 6f32b11..a750218 100644
--- a/func/Module_label_check.py
+++ b/func/Module_label_check.py
@@ -122,6 +122,10 @@ class SettingWindow(QMainWindow):
self.ui.plainTextEdit_file_path_input_peak.setPlainText(Config["Path"]["Input_Peak"])
self.ui.plainTextEdit_file_path_input_approximately_align.setPlainText(Config["Path"]["Input_Approximately_Align"])
self.ui.plainTextEdit_file_path_save.setPlainText(Config["Path"]["Save"])
+ if Config["Filter"]["Mode"] == "skip":
+ self.ui.radioButton_skip_process.setChecked(True)
+ elif Config["Filter"]["Mode"] == "bandpass":
+ self.ui.radioButton_bandpass_process.setChecked(True)
if Config["Mode"] == "BCG":
self.ui.spinBox_bandPassOrder.setValue(Config["Filter"]["BCGBandPassOrder"])
self.ui.doubleSpinBox_bandPassLow.setValue(Config["Filter"]["BCGBandPassLow"])
@@ -140,6 +144,10 @@ class SettingWindow(QMainWindow):
Config["Path"]["Input_Peak"] = self.ui.plainTextEdit_file_path_input_peak.toPlainText()
Config["Path"]["Input_Approximately_Align"] = self.ui.plainTextEdit_file_path_input_approximately_align.toPlainText()
Config["Path"]["Save"] = self.ui.plainTextEdit_file_path_save.toPlainText()
+ if self.ui.radioButton_skip_process.isChecked():
+ Config["Filter"]["Mode"] = "skip"
+ elif self.ui.radioButton_bandpass_process.isChecked():
+ Config["Filter"]["Mode"] = "bandpass"
if Config["Mode"] == "BCG":
Config["Filter"]["BCGBandPassOrder"] = self.ui.spinBox_bandPassOrder.value()
Config["Filter"]["BCGBandPassLow"] = self.ui.doubleSpinBox_bandPassLow.value()
@@ -1054,7 +1062,7 @@ class Data:
try:
if Config["Mode"] == "BCG":
- if Config["Filter"]["BCGBandPassOrder"] == 0:
+ if Config["Filter"]["BCGBandPassOrder"] == 0 or Config["Filter"]["Mode"] == "skip":
self.processed_data = self.raw_data
else:
if ((Config["Filter"]["BCGBandPassLow"] >= Config["Filter"]["BCGBandPassHigh"]) or
@@ -1067,7 +1075,7 @@ class Data:
Config["Filter"]["BCGBandPassHigh"],
Config["InputConfig"]["Freq"])
elif Config["Mode"] == "ECG":
- if Config["Filter"]["ECGBandPassOrder"] == 0:
+ if Config["Filter"]["ECGBandPassOrder"] == 0 or Config["Filter"]["Mode"] == "skip":
self.processed_data = self.raw_data
else:
if ((Config["Filter"]["ECGBandPassLow"] >= Config["Filter"]["ECGBandPassHigh"]) or
diff --git a/func/utils/ConfigParams.py b/func/utils/ConfigParams.py
index e8c7a31..32f691e 100644
--- a/func/utils/ConfigParams.py
+++ b/func/utils/ConfigParams.py
@@ -139,6 +139,7 @@ class Params:
"Freq": 1000
},
"Filter": {
+ "Mode": "skip",
"BandPassLow": 2,
"BandPassHigh": 10
},
@@ -159,6 +160,7 @@ class Params:
"Freq": 1000
},
"Filter": {
+ "Mode": "skip",
"BandPassLow": 1,
"BandPassHigh": 25
},
@@ -174,6 +176,7 @@ class Params:
"Freq": 1000
},
"Filter": {
+ "Mode": "skip",
"BCGBandPassOrder": 2,
"BCGBandPassLow": 2,
"BCGBandPassHigh": 10,
diff --git a/func/utils/Constants.py b/func/utils/Constants.py
index 40236c8..1307a46 100644
--- a/func/utils/Constants.py
+++ b/func/utils/Constants.py
@@ -24,6 +24,7 @@ class Constants:
PREPROCESSING_DATA: str = "正在预处理数据"
PREPROCESS_FINISHED: str = "预处理完成"
PREPROCESS_FAILURE: str = "预处理失败"
+ PREPROCESS_NO_NEED: str = "不需要预处理"
RESAMPLING_DATA: str = "正在数据重采样"
RESAMPLE_FINISHED: str = "重采样完成"
diff --git a/ui/MainWindow/MainWindow_detect_Jpeak.py b/ui/MainWindow/MainWindow_detect_Jpeak.py
index 45f3592..1c44af5 100644
--- a/ui/MainWindow/MainWindow_detect_Jpeak.py
+++ b/ui/MainWindow/MainWindow_detect_Jpeak.py
@@ -18,9 +18,9 @@ from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDoubleSpinBox,
QGridLayout, QGroupBox, QHBoxLayout, QLabel,
- QMainWindow, QPushButton, QSizePolicy, QSpacerItem,
- QSpinBox, QStatusBar, QTextBrowser, QVBoxLayout,
- QWidget)
+ QMainWindow, QPushButton, QRadioButton, QSizePolicy,
+ QSpacerItem, QSpinBox, QStatusBar, QTextBrowser,
+ QVBoxLayout, QWidget)
class Ui_MainWindow_detect_Jpeak(object):
def setupUi(self, MainWindow_detect_Jpeak):
@@ -99,34 +99,47 @@ class Ui_MainWindow_detect_Jpeak(object):
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.groupBox_2 = QGroupBox(self.groupBox_args)
self.groupBox_2.setObjectName(u"groupBox_2")
- self.horizontalLayout_5 = QHBoxLayout(self.groupBox_2)
- self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
+ self.gridLayout_2 = QGridLayout(self.groupBox_2)
+ self.gridLayout_2.setObjectName(u"gridLayout_2")
self.label = QLabel(self.groupBox_2)
self.label.setObjectName(u"label")
self.label.setFont(font)
- self.horizontalLayout_5.addWidget(self.label)
-
- self.doubleSpinBox_bandPassLow = QDoubleSpinBox(self.groupBox_2)
- self.doubleSpinBox_bandPassLow.setObjectName(u"doubleSpinBox_bandPassLow")
- self.doubleSpinBox_bandPassLow.setFont(font)
- self.doubleSpinBox_bandPassLow.setMaximum(100.000000000000000)
-
- self.horizontalLayout_5.addWidget(self.doubleSpinBox_bandPassLow)
-
- self.label_5 = QLabel(self.groupBox_2)
- self.label_5.setObjectName(u"label_5")
- self.label_5.setFont(font)
- self.label_5.setAlignment(Qt.AlignmentFlag.AlignCenter)
-
- self.horizontalLayout_5.addWidget(self.label_5)
+ self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
self.doubleSpinBox_bandPassHigh = QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_bandPassHigh.setObjectName(u"doubleSpinBox_bandPassHigh")
self.doubleSpinBox_bandPassHigh.setFont(font)
self.doubleSpinBox_bandPassHigh.setMaximum(100.000000000000000)
- self.horizontalLayout_5.addWidget(self.doubleSpinBox_bandPassHigh)
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassHigh, 2, 3, 1, 1)
+
+ self.label_5 = QLabel(self.groupBox_2)
+ self.label_5.setObjectName(u"label_5")
+ self.label_5.setFont(font)
+ self.label_5.setAlignment(Qt.AlignmentFlag.AlignCenter)
+
+ self.gridLayout_2.addWidget(self.label_5, 2, 2, 1, 1)
+
+ self.radioButton_skip_process = QRadioButton(self.groupBox_2)
+ self.radioButton_skip_process.setObjectName(u"radioButton_skip_process")
+ self.radioButton_skip_process.setFont(font)
+ self.radioButton_skip_process.setChecked(True)
+
+ self.gridLayout_2.addWidget(self.radioButton_skip_process, 0, 0, 1, 1)
+
+ self.doubleSpinBox_bandPassLow = QDoubleSpinBox(self.groupBox_2)
+ self.doubleSpinBox_bandPassLow.setObjectName(u"doubleSpinBox_bandPassLow")
+ self.doubleSpinBox_bandPassLow.setFont(font)
+ self.doubleSpinBox_bandPassLow.setMaximum(100.000000000000000)
+
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassLow, 2, 1, 1, 1)
+
+ self.radioButton_bandpass_process = QRadioButton(self.groupBox_2)
+ self.radioButton_bandpass_process.setObjectName(u"radioButton_bandpass_process")
+ self.radioButton_bandpass_process.setFont(font)
+
+ self.gridLayout_2.addWidget(self.radioButton_bandpass_process, 1, 0, 1, 1)
self.verticalLayout_5.addWidget(self.groupBox_2)
@@ -309,6 +322,8 @@ class Ui_MainWindow_detect_Jpeak(object):
self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow_detect_Jpeak", u"BCG\u7684\u5e26\u901a\u6ee4\u6ce2", None))
self.label.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u622a\u6b62\u9891\u7387(Hz)\uff1a", None))
self.label_5.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"~", None))
+ self.radioButton_skip_process.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u4e0d\u6ee4\u6ce2", None))
+ self.radioButton_bandpass_process.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u5e26\u901a\u6ee4\u6ce2", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u5bfb\u5cf0\u9608\u503c(\u4e2a)", None))
self.label_6.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u4fe1\u53f7\u5e45\u503c\u8c03\u6574\u53c2\u6570", None))
self.label_3.setText(QCoreApplication.translate("MainWindow_detect_Jpeak", u"\u95f4\u671f\u4e0b\u4e0a\u9650\u9608\u503c", None))
diff --git a/ui/MainWindow/MainWindow_detect_Jpeak.ui b/ui/MainWindow/MainWindow_detect_Jpeak.ui
index 28c524b..908c117 100644
--- a/ui/MainWindow/MainWindow_detect_Jpeak.ui
+++ b/ui/MainWindow/MainWindow_detect_Jpeak.ui
@@ -108,8 +108,8 @@
BCG的带通滤波
-
- -
+
+
-
@@ -121,8 +121,8 @@
- -
-
+
-
+
12
@@ -133,7 +133,7 @@
- -
+
-
@@ -148,8 +148,23 @@
- -
-
+
-
+
+
+
+ 12
+
+
+
+ 不滤波
+
+
+ true
+
+
+
+ -
+
12
@@ -160,6 +175,18 @@
+ -
+
+
+
+ 12
+
+
+
+ 带通滤波
+
+
+
diff --git a/ui/MainWindow/MainWindow_detect_Rpeak.py b/ui/MainWindow/MainWindow_detect_Rpeak.py
index 5029b61..82d6591 100644
--- a/ui/MainWindow/MainWindow_detect_Rpeak.py
+++ b/ui/MainWindow/MainWindow_detect_Rpeak.py
@@ -17,8 +17,9 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QComboBox, QDoubleSpinBox, QGridLayout,
QGroupBox, QHBoxLayout, QLabel, QMainWindow,
- QPushButton, QSizePolicy, QSpacerItem, QSpinBox,
- QStatusBar, QTextBrowser, QVBoxLayout, QWidget)
+ QPushButton, QRadioButton, QSizePolicy, QSpacerItem,
+ QSpinBox, QStatusBar, QTextBrowser, QVBoxLayout,
+ QWidget)
class Ui_MainWindow_detect_Rpeak(object):
def setupUi(self, MainWindow_detect_Rpeak):
@@ -68,34 +69,47 @@ class Ui_MainWindow_detect_Rpeak(object):
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.groupBox_2 = QGroupBox(self.groupBox_args)
self.groupBox_2.setObjectName(u"groupBox_2")
- self.horizontalLayout_5 = QHBoxLayout(self.groupBox_2)
- self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
+ self.gridLayout_2 = QGridLayout(self.groupBox_2)
+ self.gridLayout_2.setObjectName(u"gridLayout_2")
self.label = QLabel(self.groupBox_2)
self.label.setObjectName(u"label")
self.label.setFont(font1)
- self.horizontalLayout_5.addWidget(self.label)
+ self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
self.doubleSpinBox_bandPassLow = QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_bandPassLow.setObjectName(u"doubleSpinBox_bandPassLow")
self.doubleSpinBox_bandPassLow.setFont(font1)
self.doubleSpinBox_bandPassLow.setMaximum(100.000000000000000)
- self.horizontalLayout_5.addWidget(self.doubleSpinBox_bandPassLow)
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassLow, 2, 1, 1, 1)
self.label_5 = QLabel(self.groupBox_2)
self.label_5.setObjectName(u"label_5")
self.label_5.setFont(font1)
self.label_5.setAlignment(Qt.AlignmentFlag.AlignCenter)
- self.horizontalLayout_5.addWidget(self.label_5)
+ self.gridLayout_2.addWidget(self.label_5, 2, 2, 1, 1)
+
+ self.radioButton_skip_process = QRadioButton(self.groupBox_2)
+ self.radioButton_skip_process.setObjectName(u"radioButton_skip_process")
+ self.radioButton_skip_process.setFont(font1)
+ self.radioButton_skip_process.setChecked(True)
+
+ self.gridLayout_2.addWidget(self.radioButton_skip_process, 0, 0, 1, 1)
self.doubleSpinBox_bandPassHigh = QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_bandPassHigh.setObjectName(u"doubleSpinBox_bandPassHigh")
self.doubleSpinBox_bandPassHigh.setFont(font1)
self.doubleSpinBox_bandPassHigh.setMaximum(100.000000000000000)
- self.horizontalLayout_5.addWidget(self.doubleSpinBox_bandPassHigh)
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassHigh, 2, 3, 1, 1)
+
+ self.radioButton_bandpass_process = QRadioButton(self.groupBox_2)
+ self.radioButton_bandpass_process.setObjectName(u"radioButton_bandpass_process")
+ self.radioButton_bandpass_process.setFont(font1)
+
+ self.gridLayout_2.addWidget(self.radioButton_bandpass_process, 1, 0, 1, 1)
self.verticalLayout_5.addWidget(self.groupBox_2)
@@ -227,6 +241,8 @@ class Ui_MainWindow_detect_Rpeak(object):
self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow_detect_Rpeak", u"ECG\u7684\u5e26\u901a\u6ee4\u6ce2", None))
self.label.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u622a\u6b62\u9891\u7387(Hz)\uff1a", None))
self.label_5.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"~", None))
+ self.radioButton_skip_process.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u4e0d\u6ee4\u6ce2", None))
+ self.radioButton_bandpass_process.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u5e26\u901a\u6ee4\u6ce2", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u5bfb\u5cf0\u9608\u503c(\u4e2a)", None))
self.groupBox_3.setTitle(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u65b9\u6cd5\u8bbe\u7f6e", None))
self.label_7.setText(QCoreApplication.translate("MainWindow_detect_Rpeak", u"\u68c0\u6d4b\u65b9\u6cd5\u9009\u62e9", None))
diff --git a/ui/MainWindow/MainWindow_detect_Rpeak.ui b/ui/MainWindow/MainWindow_detect_Rpeak.ui
index fbf46f1..6dac4ee 100644
--- a/ui/MainWindow/MainWindow_detect_Rpeak.ui
+++ b/ui/MainWindow/MainWindow_detect_Rpeak.ui
@@ -77,8 +77,8 @@
ECG的带通滤波
-
- -
+
+
-
@@ -90,7 +90,7 @@
- -
+
-
@@ -102,7 +102,7 @@
- -
+
-
@@ -117,7 +117,22 @@
- -
+
-
+
+
+
+ 12
+
+
+
+ 不滤波
+
+
+ true
+
+
+
+ -
@@ -129,6 +144,18 @@
+ -
+
+
+
+ 12
+
+
+
+ 带通滤波
+
+
+
diff --git a/ui/setting/label_check_input_setting.py b/ui/setting/label_check_input_setting.py
index b45b7f1..1b1ddfa 100644
--- a/ui/setting/label_check_input_setting.py
+++ b/ui/setting/label_check_input_setting.py
@@ -17,8 +17,8 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QDoubleSpinBox, QGridLayout, QGroupBox,
QHBoxLayout, QLabel, QMainWindow, QPlainTextEdit,
- QPushButton, QSizePolicy, QSpinBox, QStatusBar,
- QVBoxLayout, QWidget)
+ QPushButton, QRadioButton, QSizePolicy, QSpinBox,
+ QStatusBar, QVBoxLayout, QWidget)
class Ui_MainWindow_label_check_input_setting(object):
def setupUi(self, MainWindow_label_check_input_setting):
@@ -69,14 +69,42 @@ class Ui_MainWindow_label_check_input_setting(object):
self.groupBox_2 = QGroupBox(self.groupBox_file_path_input_signal)
self.groupBox_2.setObjectName(u"groupBox_2")
- self.horizontalLayout = QHBoxLayout(self.groupBox_2)
- self.horizontalLayout.setObjectName(u"horizontalLayout")
+ self.gridLayout_2 = QGridLayout(self.groupBox_2)
+ self.gridLayout_2.setObjectName(u"gridLayout_2")
+ self.label_3 = QLabel(self.groupBox_2)
+ self.label_3.setObjectName(u"label_3")
+ self.label_3.setFont(font)
+ self.label_3.setAlignment(Qt.AlignmentFlag.AlignCenter)
+
+ self.gridLayout_2.addWidget(self.label_3, 1, 2, 1, 1)
+
+ self.doubleSpinBox_bandPassHigh = QDoubleSpinBox(self.groupBox_2)
+ self.doubleSpinBox_bandPassHigh.setObjectName(u"doubleSpinBox_bandPassHigh")
+ self.doubleSpinBox_bandPassHigh.setFont(font)
+ self.doubleSpinBox_bandPassHigh.setMaximum(100.000000000000000)
+
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassHigh, 1, 5, 1, 1)
+
+ self.label_4 = QLabel(self.groupBox_2)
+ self.label_4.setObjectName(u"label_4")
+ self.label_4.setFont(font)
+ self.label_4.setAlignment(Qt.AlignmentFlag.AlignCenter)
+
+ self.gridLayout_2.addWidget(self.label_4, 1, 4, 1, 1)
+
self.label = QLabel(self.groupBox_2)
self.label.setObjectName(u"label")
self.label.setFont(font)
self.label.setAlignment(Qt.AlignmentFlag.AlignCenter)
- self.horizontalLayout.addWidget(self.label)
+ self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
+
+ self.doubleSpinBox_bandPassLow = QDoubleSpinBox(self.groupBox_2)
+ self.doubleSpinBox_bandPassLow.setObjectName(u"doubleSpinBox_bandPassLow")
+ self.doubleSpinBox_bandPassLow.setFont(font)
+ self.doubleSpinBox_bandPassLow.setMaximum(100.000000000000000)
+
+ self.gridLayout_2.addWidget(self.doubleSpinBox_bandPassLow, 1, 3, 1, 1)
self.spinBox_bandPassOrder = QSpinBox(self.groupBox_2)
self.spinBox_bandPassOrder.setObjectName(u"spinBox_bandPassOrder")
@@ -85,35 +113,20 @@ class Ui_MainWindow_label_check_input_setting(object):
self.spinBox_bandPassOrder.setMaximum(10)
self.spinBox_bandPassOrder.setValue(0)
- self.horizontalLayout.addWidget(self.spinBox_bandPassOrder)
+ self.gridLayout_2.addWidget(self.spinBox_bandPassOrder, 1, 1, 1, 1)
- self.label_3 = QLabel(self.groupBox_2)
- self.label_3.setObjectName(u"label_3")
- self.label_3.setFont(font)
- self.label_3.setAlignment(Qt.AlignmentFlag.AlignCenter)
+ self.radioButton_skip_process = QRadioButton(self.groupBox_2)
+ self.radioButton_skip_process.setObjectName(u"radioButton_skip_process")
+ self.radioButton_skip_process.setFont(font)
+ self.radioButton_skip_process.setChecked(True)
- self.horizontalLayout.addWidget(self.label_3)
+ self.gridLayout_2.addWidget(self.radioButton_skip_process, 0, 0, 1, 3)
- self.doubleSpinBox_bandPassLow = QDoubleSpinBox(self.groupBox_2)
- self.doubleSpinBox_bandPassLow.setObjectName(u"doubleSpinBox_bandPassLow")
- self.doubleSpinBox_bandPassLow.setFont(font)
- self.doubleSpinBox_bandPassLow.setMaximum(100.000000000000000)
+ self.radioButton_bandpass_process = QRadioButton(self.groupBox_2)
+ self.radioButton_bandpass_process.setObjectName(u"radioButton_bandpass_process")
+ self.radioButton_bandpass_process.setFont(font)
- self.horizontalLayout.addWidget(self.doubleSpinBox_bandPassLow)
-
- self.label_4 = QLabel(self.groupBox_2)
- self.label_4.setObjectName(u"label_4")
- self.label_4.setFont(font)
- self.label_4.setAlignment(Qt.AlignmentFlag.AlignCenter)
-
- self.horizontalLayout.addWidget(self.label_4)
-
- self.doubleSpinBox_bandPassHigh = QDoubleSpinBox(self.groupBox_2)
- self.doubleSpinBox_bandPassHigh.setObjectName(u"doubleSpinBox_bandPassHigh")
- self.doubleSpinBox_bandPassHigh.setFont(font)
- self.doubleSpinBox_bandPassHigh.setMaximum(100.000000000000000)
-
- self.horizontalLayout.addWidget(self.doubleSpinBox_bandPassHigh)
+ self.gridLayout_2.addWidget(self.radioButton_bandpass_process, 0, 3, 1, 3)
self.verticalLayout_5.addWidget(self.groupBox_2)
@@ -197,9 +210,11 @@ class Ui_MainWindow_label_check_input_setting(object):
self.groupBox_file_path_input_signal.setTitle(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u9884\u5904\u7406\u540e\u7684\u4fe1\u53f7\u8def\u5f84", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u91c7\u6837\u7387(Hz)\uff1a", None))
self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u5e26\u901a\u6ee4\u6ce2\u8bbe\u7f6e", None))
- self.label.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u9636\u6570", None))
self.label_3.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u622a\u6b62\u9891\u7387(Hz)", None))
self.label_4.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"~", None))
+ self.label.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u9636\u6570", None))
+ self.radioButton_skip_process.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u4e0d\u6ee4\u6ce2", None))
+ self.radioButton_bandpass_process.setText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u5e26\u901a\u6ee4\u6ce2", None))
self.plainTextEdit_file_path_input_signal.setPlainText("")
self.plainTextEdit_file_path_input_signal.setPlaceholderText(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_input_peak.setTitle(QCoreApplication.translate("MainWindow_label_check_input_setting", u"\u7b97\u6cd5\u5b9a\u4f4d\u7684\u5cf0\u503c\u8def\u5f84", None))
diff --git a/ui/setting/label_check_input_setting.ui b/ui/setting/label_check_input_setting.ui
index cbdf249..cffd1f0 100644
--- a/ui/setting/label_check_input_setting.ui
+++ b/ui/setting/label_check_input_setting.ui
@@ -80,8 +80,50 @@
带通滤波设置
-
- -
+
+
-
+
+
+
+ 12
+
+
+
+ 截止频率(Hz)
+
+
+ Qt::AlignmentFlag::AlignCenter
+
+
+
+ -
+
+
+
+ 12
+
+
+
+ 100.000000000000000
+
+
+
+ -
+
+
+
+ 12
+
+
+
+ ~
+
+
+ Qt::AlignmentFlag::AlignCenter
+
+
+
+ -
@@ -96,7 +138,19 @@
- -
+
-
+
+
+
+ 12
+
+
+
+ 100.000000000000000
+
+
+
+ -
@@ -114,57 +168,30 @@
- -
-
+
-
+
12
- 截止频率(Hz)
+ 不滤波
-
- Qt::AlignmentFlag::AlignCenter
+
+ true
- -
-
-
-
- 12
-
-
-
- 100.000000000000000
-
-
-
- -
-
+
-
+
12
- ~
-
-
- Qt::AlignmentFlag::AlignCenter
-
-
-
- -
-
-
-
- 12
-
-
-
- 100.000000000000000
+ 带通滤波