Get Processed Sample Slice
Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample a
get
https://studio.edgeimpulse.com/v1
/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly
Get processed sample (slice)
Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
Parameters
Path
projectId*
integer
Project ID
dspId*
integer
DSP Block ID, use the impulse functions to retrieve the ID
sampleId*
integer
Sample ID
Query
sliceStart*
integer
Begin index of the slice
sliceEnd*
integer
End index of the slice
Responses
200: OK
OK
cURL
Python
Node.js
curl --request GET \
--url 'https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly?sliceStart=SOME_INTEGER_VALUE&sliceEnd=SOME_INTEGER_VALUE' \
--header 'x-jwt-token: REPLACE_KEY_VALUE'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
headers = { 'x-jwt-token': "REPLACE_KEY_VALUE" }
conn.request("GET", "/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly?sliceStart=SOME_INTEGER_VALUE&sliceEnd=SOME_INTEGER_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'GET',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/raw-data/{sampleId}/slice/run/readonly',
qs: {sliceStart: 'SOME_INTEGER_VALUE', sliceEnd: 'SOME_INTEGER_VALUE'},
headers: {'x-jwt-token': 'REPLACE_KEY_VALUE'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Last modified 3mo ago