Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,26 +52,35 @@ if __name__ == '__main__':
|
|
52 |
|
53 |
st.write('---')
|
54 |
|
55 |
-
st.
|
56 |
st.write('Detrending means removal of the mean value as well as any linear trend that may be in the measurements. A linear trend could be caused by e.g. drift and it is removed by fitting a first order polynomial to each of the measurement channels and then subtracting it afterwards. By default linear trends should be removed since they can disturb the signal processing and modal analysis.')
|
57 |
|
58 |
-
st.
|
59 |
st.write('Savitzky-Golay smoothing filters are typically used to "smooth out" a noisy signal. They are also called digital smoothing polynomial filters or least-squares smoothing filters. Savitzky-Golay filters perform better in some applications than standard averaging FIR filters, which tend to filter high-frequency content along with the noise. Savitzky-Golay filters are more effective at preserving high frequency signal components but less successful at rejecting noise.Savitzky-Golay filters are optimal in the sense that they minimize the least-squares error in fitting a polynomial to frames of noisy data.')
|
60 |
|
61 |
-
st.
|
62 |
st.write('The moving average is the most common filter in Signal Processing , mainly because it is the easiest digital filter to understand and use. The moving average filter is optimal for a common task: reducing random noise while retaining a sharp step response.This makes it the premier filter for time domain encoded signals.')
|
63 |
|
64 |
-
st.
|
65 |
st.write('Gaussian filters are widely used for noise reduction due to their edge preserving properties. Gaussian filters are also used as smoothing filters. The Gaussian filter is a low-pass filter that removes the high-frequency components.')
|
66 |
|
67 |
st.write('---')
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
with st.container():
|
71 |
left,right = st.columns(2)
|
72 |
|
73 |
with left:
|
74 |
-
signal_select = st.selectbox('*Please select a signal*',['Linearly increasing sine wave','Resp Signal sample 1','Resp Signal sample 2','Resp Signal sample 3'])
|
75 |
|
76 |
with right:
|
77 |
st.subheader('Original Signal')
|
|
|
52 |
|
53 |
st.write('---')
|
54 |
|
55 |
+
st.subheader('Detrending : ')
|
56 |
st.write('Detrending means removal of the mean value as well as any linear trend that may be in the measurements. A linear trend could be caused by e.g. drift and it is removed by fitting a first order polynomial to each of the measurement channels and then subtracting it afterwards. By default linear trends should be removed since they can disturb the signal processing and modal analysis.')
|
57 |
|
58 |
+
st.subheader('Savitzky-Golay Filter : ')
|
59 |
st.write('Savitzky-Golay smoothing filters are typically used to "smooth out" a noisy signal. They are also called digital smoothing polynomial filters or least-squares smoothing filters. Savitzky-Golay filters perform better in some applications than standard averaging FIR filters, which tend to filter high-frequency content along with the noise. Savitzky-Golay filters are more effective at preserving high frequency signal components but less successful at rejecting noise.Savitzky-Golay filters are optimal in the sense that they minimize the least-squares error in fitting a polynomial to frames of noisy data.')
|
60 |
|
61 |
+
st.subheader('Moving Average Filter : ')
|
62 |
st.write('The moving average is the most common filter in Signal Processing , mainly because it is the easiest digital filter to understand and use. The moving average filter is optimal for a common task: reducing random noise while retaining a sharp step response.This makes it the premier filter for time domain encoded signals.')
|
63 |
|
64 |
+
st.subheader('Gaussian Filter : ')
|
65 |
st.write('Gaussian filters are widely used for noise reduction due to their edge preserving properties. Gaussian filters are also used as smoothing filters. The Gaussian filter is a low-pass filter that removes the high-frequency components.')
|
66 |
|
67 |
st.write('---')
|
68 |
|
69 |
+
with st.container():
|
70 |
+
# show video
|
71 |
+
st.header('Video Demonstration of gathering a respiratory signal')
|
72 |
+
st.video('./SpeedUP_Supine.mp4')
|
73 |
+
|
74 |
+
|
75 |
+
st.write('---')
|
76 |
+
|
77 |
+
st.header('Signal Processing')
|
78 |
|
79 |
with st.container():
|
80 |
left,right = st.columns(2)
|
81 |
|
82 |
with left:
|
83 |
+
signal_select = st.selectbox('*Please select a signal*',['Linearly increasing sine wave','Resp Signal sample 1','Resp Signal sample 2','Resp Signal sample 3'],index=1)
|
84 |
|
85 |
with right:
|
86 |
st.subheader('Original Signal')
|