https://github.com/edgeimpulse/example-custom-spectral-dsp-block
Example of a custom DSP block with C++ implementation
https://github.com/edgeimpulse/example-custom-spectral-dsp-block
Last synced: 11 months ago
JSON representation
Example of a custom DSP block with C++ implementation
- Host: GitHub
- URL: https://github.com/edgeimpulse/example-custom-spectral-dsp-block
- Owner: edgeimpulse
- License: apache-2.0
- Created: 2022-06-28T08:32:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T08:32:44.000Z (almost 4 years ago)
- Last Synced: 2023-03-04T03:33:29.905Z (over 3 years ago)
- Language: Python
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spectral bands DSP Block
Creates spectral bands between 0 and sampling_freq / 2. E.g. it creates 0.5-1.5Hz, 1.5-2.5Hz, 2.5Hz-3.5Hz etc. This is an example DSP block created for the "Advanced Anomaly Detection with Edge Impulse" video here: https://www.youtube.com/watch?v=7vr4D_zlQTE .
## How to run (free version of Edge Impulse)
Start the block:
```
PORT=6666 python3 dsp-server.py
```
Then expose this block to the internet via:
```
ngrok http 6666
```
And add the *https* URL displayed as a custom DSP block under **Create impulse**.
## How to run (enterprise version of Edge Impulse)
Initialize the block via:
```
edge-impulse-blocks init
```
Then push via:
```
edge-impulse-blocks push
```
The block is now available from the **Create impulse** screen.
## C++ implementation
Paste the implementation in [cpp/block.cpp](cpp/block.cpp) into your main.cpp.