{"id":21191957,"url":"https://github.com/edgeimpulse/example-custom-spectral-dsp-block","last_synced_at":"2025-07-10T03:31:26.054Z","repository":{"id":41184772,"uuid":"508218102","full_name":"edgeimpulse/example-custom-spectral-dsp-block","owner":"edgeimpulse","description":"Example of a custom DSP block with C++ implementation","archived":false,"fork":false,"pushed_at":"2022-06-28T08:32:44.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T03:33:29.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeimpulse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-28T08:32:33.000Z","updated_at":"2022-10-25T00:52:50.000Z","dependencies_parsed_at":"2022-08-25T20:11:40.946Z","dependency_job_id":null,"html_url":"https://github.com/edgeimpulse/example-custom-spectral-dsp-block","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fexample-custom-spectral-dsp-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fexample-custom-spectral-dsp-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fexample-custom-spectral-dsp-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fexample-custom-spectral-dsp-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeimpulse","download_url":"https://codeload.github.com/edgeimpulse/example-custom-spectral-dsp-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615190,"owners_count":17496945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T19:06:25.328Z","updated_at":"2024-11-20T19:06:26.041Z","avatar_url":"https://github.com/edgeimpulse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spectral bands DSP Block\n\nCreates 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 .\n\n## How to run (free version of Edge Impulse)\n\nStart the block:\n\n```\nPORT=6666 python3 dsp-server.py\n```\n\nThen expose this block to the internet via:\n\n```\nngrok http 6666\n```\n\nAnd add the *https* URL displayed as a custom DSP block under **Create impulse**.\n\n## How to run (enterprise version of Edge Impulse)\n\nInitialize the block via:\n\n```\nedge-impulse-blocks init\n```\n\nThen push via:\n\n```\nedge-impulse-blocks push\n```\n\nThe block is now available from the **Create impulse** screen.\n\n## C++ implementation\n\nPaste the implementation in [cpp/block.cpp](cpp/block.cpp) into your main.cpp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Fexample-custom-spectral-dsp-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeimpulse%2Fexample-custom-spectral-dsp-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Fexample-custom-spectral-dsp-block/lists"}