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
"image_type": "ImageType"
}
}
request for annotation
Field |
Description |
image |
image to annotate |
Image
Field |
Description |
content |
bytes bytes with data Includes only one of the fields |
image_type |
enum ImageType type of data
|
AnnotationResponse
{
"request_id": "string",
"classifier_specification": {
"labels": [
{
"name": "string",
"description": "string"
}
],
"classification_type": "ClassificationType"
},
"annotations": [
{
"label": {
"name": "string",
"description": "string"
},
"confidence": "double"
}
]
}
Field |
Description |
request_id |
string internal service requestId |
classifier_specification |
class specification |
annotations[] |
annotations for each class |
ClassifierSpecification
Specification of model used for annotation
Field |
Description |
labels[] |
List of labels, annotated by service |
classification_type |
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 |