pycozmo.procedural_face¶
Cozmo procedural face rendering.
Functions
interpolate (from_face, to_face, steps) |
Given two ProceduralFace objects, generate interpolated ProceduralFace objects in a number of steps. |
Classes
ProceduralBase (params, offset, width, height) |
|
ProceduralEye (params, offset, x_offset, …) |
|
ProceduralFace (params, width, height) |
|
ProceduralFaceGenerator () |
A generator class to produce eye animation. |
ProceduralLid (params, offset, y_offset, …) |
-
class
pycozmo.procedural_face.
ProceduralLid
(params: List[float], offset: int, y_offset: float, angle_offset: float, width: int, height: int)¶ Bases:
pycozmo.procedural_face.ProceduralBase
-
angle
¶
-
angle_offset
¶
-
bend
¶
-
eye_height
¶
-
eye_width
¶
-
classmethod
get_black
(width, height)¶
-
half_eye_height
¶
-
half_eye_width
¶
-
height
¶
-
offset
¶
-
params
¶
-
render
(im: <module 'PIL.Image' from '/home/docs/checkouts/readthedocs.org/user_builds/pycozmo/envs/latest/lib/python3.7/site-packages/PIL/Image.py'>) → None¶
-
scale_factor_lid_bend
¶
-
scale_factor_lid_height
¶
-
width
¶
-
y
¶
-
y_offset
¶
-
-
class
pycozmo.procedural_face.
ProceduralEye
(params: List[float], offset: int, x_offset: float = 0.0, width: int = 128, height: int = 64)¶ Bases:
pycozmo.procedural_face.ProceduralBase
-
angle
¶
-
center_x
¶
-
center_y
¶
-
corner_radius
¶
-
eye_height
¶
-
eye_width
¶
-
half_eye_height
¶
-
half_eye_width
¶
-
height
¶
-
lids
¶
-
lower_inner_radius_x
¶
-
lower_inner_radius_y
¶
-
lower_outer_radius_x
¶
-
lower_outer_radius_y
¶
-
offset
¶
-
params
¶
-
render
(im: <module 'PIL.Image' from '/home/docs/checkouts/readthedocs.org/user_builds/pycozmo/envs/latest/lib/python3.7/site-packages/PIL/Image.py'>) → None¶
-
scale_factor_lid_bend
¶
-
scale_factor_lid_height
¶
-
scale_x
¶
-
scale_y
¶
-
upper_inner_radius_x
¶
-
upper_inner_radius_y
¶
-
upper_outer_radius_x
¶
-
upper_outer_radius_y
¶
-
width
¶
-
x_offset
¶
-
-
class
pycozmo.procedural_face.
ProceduralFace
(params: Optional[List[float]] = None, width: int = 128, height: int = 64)¶ Bases:
pycozmo.procedural_face.ProceduralBase
-
angle
¶
-
center_x
¶
-
center_y
¶
-
eye_height
¶
-
eye_width
¶
-
eyes
¶
-
half_eye_height
¶
-
half_eye_width
¶
-
height
¶
-
offset
¶
-
params
¶
-
render
() → <module 'PIL.Image' from '/home/docs/checkouts/readthedocs.org/user_builds/pycozmo/envs/latest/lib/python3.7/site-packages/PIL/Image.py'>¶
-
scale_factor_lid_bend
¶
-
scale_factor_lid_height
¶
-
scale_x
¶
-
scale_y
¶
-
width
¶
-
-
pycozmo.procedural_face.
interpolate
(from_face: pycozmo.procedural_face.ProceduralFace, to_face: pycozmo.procedural_face.ProceduralFace, steps: int) → Generator[pycozmo.procedural_face.ProceduralFace, None, None]¶ Given two ProceduralFace objects, generate interpolated ProceduralFace objects in a number of steps.