ImageAnnotationHotkeysPluginV1

toloka.client.project.template_builder.plugins.ImageAnnotationHotkeysPluginV1 | Source code

ImageAnnotationHotkeysPluginV1(
self,
*,
cancel: Optional[Union[BaseComponent, str]] = None,
confirm: Optional[Union[BaseComponent, str]] = None,
labels: Optional[Union[BaseComponent, List[str]]] = None,
point: Optional[str] = None,
polygon: Optional[str] = None,
rectangle: Optional[str] = None,
select: Optional[str] = None,
version: Optional[str] = '1.0.0'
)

Used to set hotkeys for the field.image-annotation component.

You can set hotkeys to select area types and selection modes and to confirm or cancel area creation. When setting hotkeys, you can use the up and down arrows (up,down), numbers, and Latin letters.

Parameters Description

ParametersTypeDescription
cancelOptional[Union[BaseComponent, str]]

Keyboard shortcut for canceling area creation.

confirmOptional[Union[BaseComponent, str]]

Keyboard shortcut for confirming area creation.

labelsOptional[Union[BaseComponent, List[str]]]

Keyboard shortcuts for choosing area types. They're assigned to buttons in the order they are shown if you enabled the option to choose multiple area types.

modesOptional[Union[BaseComponent, Mode]]

Keyboard shortcuts for choosing selection modes.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming