anki_vector.annotate
Camera image annotation.

This module defines an ImageAnnotator
class used by
anki_vector.camera.CameraImage
and
anki_vector.camera.CameraComponent
to add annotations
to camera images received by the robot.
This can include the location of cubes and faces that the robot currently sees, along with user-defined custom annotations.
The ImageAnnotator instance can be accessed as
anki_vector.camera.CameraComponent.image_annotator
.
Module Attributes
|
Fastest resampling mode, use nearest pixel |
|
Slower, but smoother, resampling mode - linear interpolation from 2x2 grid of pixels |
Functions
|
Draw a box on an image and optionally add text. |
|
Draw a polygon on an image |
|
A decorator for converting a regular function/method into an Annotator. |
Classes
|
Specifies where the annotation must be rendered. |
|
Annotation base class |
|
Adds annotations of currently detected faces to a camera image. |
|
ImageAnnotator applies annotations to the camera image received from the robot. |
|
ImageText represents some text that can be applied to an image. |
|
Adds object annotations to an Image. |
|
Adds simple text annotations to a camera image. |