Commit e79bbd4f authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

almost done with rPPG-PAD example

parent ac83a75a
Pipeline #25159 passed with stage
in 1 minute and 3 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -132,15 +132,25 @@ def get_ltss(signal):
mags[index] = abs(fft[-1])
# build final feature
log_mags = numpy.array(log_mags)
mean = numpy.mean(log_mags, axis=0)
std = numpy.std(log_mags, axis=0)
f, (ax1, ax2) = pyplot.subplots(1, 2, sharey=True)
return mean, std
def plot_ltss_real_attack(mean_real, std_real, mean_attack, std_attack, n_bins=10):
# build final feature
f, ax = pyplot.subplots(2, 2, sharey=True, sharex=True, figsize=(15,10))
ax[0][0].hist(mean_real, n_bins)
ax[0][0].set_title('Mean real')
ax[0][1].hist(std_real, n_bins)
ax[0][1].set_title('Std real')
ax[1][0].hist(mean_attack, n_bins)
ax[1][0].set_title('Mean attack')
ax[1][1].hist(std_attack, n_bins)
ax[1][1].set_title('Std attack')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment