POST
/
api
/
{projectId}
/
pretrained-model
/
test
Test pretrained model
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/pretrained-model/test \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "features": [
    123
  ],
  "modelInfo": {
    "input": {
      "inputType": "time-series",
      "frequencyHz": 123,
      "windowLengthMs": 123
    },
    "model": {
      "modelType": "classification",
      "labels": [
        "<string>"
      ]
    }
  }
}'
{
  "success": true,
  "error": "<string>",
  "result": {},
  "boundingBoxes": [
    {
      "label": "<string>",
      "x": 123,
      "y": 123,
      "width": 123,
      "height": 123,
      "score": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Query Parameters

impulseId
integer

Impulse ID. If this is unset then the default impulse is used.

Body

application/json

Response

200 - application/json

OK

The response is of type object.