SafetyAttributes

Fields
categories[] string

List of RAI categories.

scores[] number

List of RAI scores.

detectedLabels[] object (DetectedLabels)

List of detected labels

JSON representation
{
  "categories": [
    string
  ],
  "scores": [
    number
  ],
  "detectedLabels": [
    {
      object (DetectedLabels)
    }
  ]
}

DetectedLabels

Filters which return labels with confidence scores.

Fields
entities[] object (Entity)

The list of detected entities for the rai signal.

raiCategory string

The RAI category for the deteceted labels.

JSON representation
{
  "entities": [
    {
      object (Entity)
    }
  ],
  "raiCategory": string
}

Entity

The properties for a detected entity from the rai signal.

Fields
mid string

MID of the label

description string

description of the label

score number

confidence score of the label

boundingBox object (BoundingBox)

Bounding box of the label

iouScore number

The intersection ratio between the detection bounding box and the mask.

JSON representation
{
  "mid": string,
  "description": string,
  "score": number,
  "boundingBox": {
    object (BoundingBox)
  },
  "iouScore": number
}

BoundingBox

An integer bounding box of the original pixel size for the detected labels.

Fields
x1 integer

The X coordinate of the top-left corner, in pixels.

y1 integer

The Y coordinate of the top-left corner, in pixels.

x2 integer

The X coordinate of the bottom-right corner, in pixels.

y2 integer

The Y coordinate of the bottom-right corner, in pixels.

JSON representation
{
  "x1": integer,
  "y1": integer,
  "x2": integer,
  "y2": integer
}