POST api/stream/cameraframe

Request Information

URI Parameters

None.

Body Parameters

Camera
NameDescriptionTypeAdditional information
Frame

string

None.

ScoreLevel

integer

None.

PredictionScoreLevel

string

None.

Hand

string

None.

FileName

string

None.

PredictResults

PredictResults

None.

PredictTimeStart

string

None.

PredictTimeEnd

string

None.

Request Formats

application/json, text/json

Sample:
{
  "frame": "sample string 1",
  "scoreLevel": 2,
  "predictionScoreLevel": "sample string 3",
  "hand": "sample string 4",
  "fileName": "sample string 5",
  "predictResults": {
    "payload": [
      {
        "classification": {
          "score": 1.1
        },
        "displayName": "sample string 1"
      },
      {
        "classification": {
          "score": 1.1
        },
        "displayName": "sample string 1"
      }
    ]
  },
  "predictTimeStart": "sample string 6",
  "predictTimeEnd": "sample string 7"
}

application/xml, text/xml

Sample:
<Camera xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <FileName>sample string 5</FileName>
  <Frame>sample string 1</Frame>
  <Hand>sample string 4</Hand>
  <PredictResults xmlns:d2p1="http://schemas.datacontract.org/2004/07/BPC.GoogleAutoMLVision">
    <d2p1:payload>
      <d2p1:PredictResult>
        <d2p1:classification>
          <d2p1:score>1.1</d2p1:score>
        </d2p1:classification>
        <d2p1:displayName>sample string 1</d2p1:displayName>
      </d2p1:PredictResult>
      <d2p1:PredictResult>
        <d2p1:classification>
          <d2p1:score>1.1</d2p1:score>
        </d2p1:classification>
        <d2p1:displayName>sample string 1</d2p1:displayName>
      </d2p1:PredictResult>
    </d2p1:payload>
  </PredictResults>
  <PredictTimeEnd>sample string 7</PredictTimeEnd>
  <PredictTimeStart>sample string 6</PredictTimeStart>
  <PredictionScoreLevel>sample string 3</PredictionScoreLevel>
  <ScoreLevel>2</ScoreLevel>
</Camera>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Camera'.

Response Information

Resource Description

PredictResults
NameDescriptionTypeAdditional information
payload

Collection of PredictResult

None.

Response Formats

application/json, text/json

Sample:
{
  "payload": [
    {
      "classification": {
        "score": 1.1
      },
      "displayName": "sample string 1"
    },
    {
      "classification": {
        "score": 1.1
      },
      "displayName": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<PredictResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BPC.GoogleAutoMLVision">
  <payload>
    <PredictResult>
      <classification>
        <score>1.1</score>
      </classification>
      <displayName>sample string 1</displayName>
    </PredictResult>
    <PredictResult>
      <classification>
        <score>1.1</score>
      </classification>
      <displayName>sample string 1</displayName>
    </PredictResult>
  </payload>
</PredictResults>