Vision Classifier API, gRPC: ImageClassifierService
Written by
Updated at September 8, 2023
Call | Description |
---|---|
Annotate |
Calls ImageClassifierService
Annotate
rpc Annotate (AnnotationRequest) returns (AnnotationResponse)
AnnotationRequest
Field | Description |
---|---|
image | Image image to annotate |
Image
Field | Description |
---|---|
ImageSource | oneof: content type of image |
content | bytes bytes with data |
image_type | enum ImageType type of data |
AnnotationResponse
Field | Description |
---|---|
request_id | string internal service requestId |
classifier_specification | ClassifierSpecification class specification |
annotations[] | ClassAnnotation annotations for each class |
ClassifierSpecification
Field | Description |
---|---|
labels[] | Label List of labels, annotated by service |
classification_type | enum ClassificationType type of annotation: exclusive (multi-class) or non-exclusive (multi-label) |
Label
Field | Description |
---|---|
name | string Label name |
description | string human readable description of label |
ClassAnnotation
Field | Description |
---|---|
label | Label list of annotated labels |
confidence | double confidence for each label |