Vision Classifier API, gRPC: ImageClassifierService.Annotate
gRPC request
rpc Annotate (AnnotationRequest) returns (AnnotationResponse)
AnnotationRequest
{
"image": {
// Includes only one of the fields `content`
"content": "bytes",
// end of the list of possible fields
"imageType": "ImageType"
}
}
request for annotation
Field |
Description |
image |
image to annotate |
Image
Field |
Description |
content |
bytes bytes with data Includes only one of the fields |
imageType |
enum ImageType type of data
|
AnnotationResponse
{
"requestId": "string",
"classifierSpecification": {
"labels": [
{
"name": "string",
"description": "string"
}
],
"classificationType": "ClassificationType"
},
"annotations": [
{
"label": {
"name": "string",
"description": "string"
},
"confidence": "double"
}
]
}
Field |
Description |
requestId |
string internal service requestId |
classifierSpecification |
class specification |
annotations[] |
annotations for each class |
ClassifierSpecification
Specification of model used for annotation
Field |
Description |
labels[] |
List of labels, annotated by service |
classificationType |
enum ClassificationType type of annotation: exclusive (multi-class) or non-exclusive (multi-label)
|
Label
Description of single label
Field |
Description |
name |
string Label name |
description |
string human readable description of label |
ClassAnnotation
Image annotation for specific label
Field |
Description |
label |
list of annotated labels |
confidence |
double confidence for each label |