Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Vision OCR
  • Getting started
  • Access management
  • Pricing policy
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • gRPC request
  • AnnotationRequest
  • Image
  • AnnotationResponse
  • ClassifierSpecification
  • Label
  • ClassAnnotation

Vision Classifier API, gRPC: ImageClassifierService.Annotate

Written by
Yandex Cloud
Updated at November 26, 2024
  • gRPC request
  • AnnotationRequest
  • Image
  • AnnotationResponse
  • ClassifierSpecification
  • Label
  • ClassAnnotation

gRPC requestgRPC request

rpc Annotate (AnnotationRequest) returns (AnnotationResponse)

AnnotationRequestAnnotationRequest

{
  "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

image to annotate

ImageImage

Field

Description

content

bytes

bytes with data

Includes only one of the fields content.

image_type

enum ImageType

type of data

  • IMAGE_TYPE_UNSPECIFIED
  • JPEG
  • PNG

AnnotationResponseAnnotationResponse

{
  "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

ClassifierSpecification

class specification

annotations[]

ClassAnnotation

annotations for each class

ClassifierSpecificationClassifierSpecification

Specification of model used for annotation

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)

  • CLASSIFICATION_TYPE_UNSPECIFIED
  • MULTI_LABEL
  • MULTI_CLASS

LabelLabel

Description of single label

Field

Description

name

string

Label name

description

string

human readable description of label

ClassAnnotationClassAnnotation

Image annotation for specific label

Field

Description

label

Label

list of annotated labels

confidence

double

confidence for each label

Was the article helpful?

© 2025 Direct Cursus Technology L.L.C.