cozmo.annotate
Camera image annotation.

This module defines an ImageAnnotator
class used by
cozmo.world.World
to add annotations to camera images received by Cozmo.
This can include the location of cubes, faces and pets that Cozmo currently sees, along with user-defined custom annotations.
The ImageAnnotator instance can be accessed as
cozmo.world.World.image_annotator
.
Module Attributes
|
Top left position |
|
Bottom left position |
|
Top right position |
|
Bottom right position |
|
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
|
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 annotations of currently detected pets to a camera image. |
|
Adds simple text annotations to a camera image. |