From cbc0fb962f378436d5921c2a008c330ae45bfc86 Mon Sep 17 00:00:00 2001 From: francovaro Date: Wed, 17 Jul 2024 11:31:59 +0200 Subject: [PATCH] SDK release vv1.53.14 --- EdgeImpulse.EI-SDK.pdsc | 12 ++++++------ EdgeImpulse.pidx | 4 ++-- .../classifier/ei_classifier_types.h | 4 ++-- .../edge-impulse-sdk/dsp/spectral/signal.hpp | 16 ++++++++++++++-- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/EdgeImpulse.EI-SDK.pdsc b/EdgeImpulse.EI-SDK.pdsc index 9fd1e9a..bae9bb4 100644 --- a/EdgeImpulse.EI-SDK.pdsc +++ b/EdgeImpulse.EI-SDK.pdsc @@ -5,13 +5,16 @@ EI-SDK LICENSE-apache-2.0.txt Edge Impulse SDK - https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.53.13/ + https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.53.14/ hello@edgeimpulse.com https://github.com/edgeimpulse/edge-impulse-sdk-pack.git - + EI-SDK + + EI-SDK + EI-SDK @@ -98,9 +101,6 @@ EI-SDK - - - EI-SDK @@ -146,7 +146,7 @@ - + Edge Impulse SDK diff --git a/EdgeImpulse.pidx b/EdgeImpulse.pidx index ee63b75..ff8b39a 100644 --- a/EdgeImpulse.pidx +++ b/EdgeImpulse.pidx @@ -2,8 +2,8 @@ EdgeImpulse https://raw.githubusercontent.com/edgeimpulse/edge-impulse-sdk-pack/main/ - 2024-07-12 14:25:35 + 2024-07-17 11:31:00 - + diff --git a/edgeimpulse/edge-impulse-sdk/classifier/ei_classifier_types.h b/edgeimpulse/edge-impulse-sdk/classifier/ei_classifier_types.h index b61141d..1ea8732 100644 --- a/edgeimpulse/edge-impulse-sdk/classifier/ei_classifier_types.h +++ b/edgeimpulse/edge-impulse-sdk/classifier/ei_classifier_types.h @@ -185,12 +185,12 @@ typedef struct { int anomaly; /** - * Amount of time (in milliseconds) it took to run the post-processing block + * Amount of time (in microseconds) it took to run the post-processing block */ int64_t dsp_us; /** - * Amount of time (in milliseconds) it took to run the inference block + * Amount of time (in microseconds) it took to run the inference block */ int64_t classification_us; diff --git a/edgeimpulse/edge-impulse-sdk/dsp/spectral/signal.hpp b/edgeimpulse/edge-impulse-sdk/dsp/spectral/signal.hpp index 4827181..bf1e5b4 100644 --- a/edgeimpulse/edge-impulse-sdk/dsp/spectral/signal.hpp +++ b/edgeimpulse/edge-impulse-sdk/dsp/spectral/signal.hpp @@ -85,9 +85,9 @@ class signal { } struct sosfilt { - const float* coeff; // 6 * num_sections coefficients + const float* coeff = nullptr; // 6 * num_sections coefficients fvec zi_vec; // 2 * num_sections initial conditions - size_t num_sections; + size_t num_sections = 0; sosfilt(const float* coeff_, const float* zi_, size_t num_sections_) : coeff(coeff_), @@ -96,8 +96,20 @@ class signal { { } + sosfilt() + { + } + void update(const float* coeff_, const float* zi_) { + assert(num_sections > 0); + coeff = coeff_; + zi_vec.assign(zi_, zi_ + (num_sections * 2)); + } + + void update(const float* coeff_, const float* zi_, size_t num_sections_) + { + num_sections = num_sections_; coeff = coeff_; zi_vec.assign(zi_, zi_ + (num_sections * 2)); }