Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Vision OCR
  • Начало работы
  • Управление доступом
  • Правила тарификации
  • Аудитные логи Audit Trails
  • История изменений
  • Вопросы и ответы

В этой статье:

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

Vision Classifier API, gRPC: ImageClassifierService.Annotate

Статья создана
Yandex Cloud
Обновлена 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

Была ли статья полезна?

Проект Яндекса
© 2025 ООО «Яндекс.Облако»