PyChubby
stable

User Guide:

  • Installation
  • Basic Example
  • Pipelines
  • Multiple Faces
  • Gallery
    • AbsoluteMove
    • Chubbify
    • Lambda
    • LinearTransform
    • Multiple
    • OpenEyes
    • Pipeline
    • RaiseEyebrow
    • Smile
    • StretchNostrils
  • Building Blocks
  • Custom Actions
  • CLI

API Reference:

  • pychubby.actions module
  • pychubby.base module
  • pychubby.data module
  • pychubby.detect module
  • pychubby.reference module
  • pychubby.utils module
  • pychubby.visualization module
PyChubby
  • Docs »
  • Gallery
  • Edit on GitHub

Gallery¶

This page gives overview of all currently available actions.

AbsoluteMove¶

Low-level action that allows the user to manually select the pixel distances between the old and new landmarks. Note that this action is image specific and therefore not invariant to affine transformations.

AbsoluteMove(y_shifts={30: 20, 29: 20}) # move lower part of the nose 20 pixels down
https://i.imgur.com/2ZCRCiM.gif

Chubbify¶

Make a face chubby. Affine transformations invariant.

Chubbify(0.2)
https://i.imgur.com/yNUNNCw.gif

Lambda¶

Low-level action where only angles and relative sizes in the reference space are to be specified. Affine transformation invariant. For more details see Lambda.

Lambda(0.2, {'OUTERMOST_EYEBROW_L': (-90, 1),
             'OUTER_EYEBROW_L': (-90, 0.8)})
https://i.imgur.com/xuIgqFK.gif

LinearTransform¶

Apply a linear transformation to all landmarks on a single face.

LinearTransform(scale_x=0.9, scale_y=0.95)
https://i.imgur.com/s57gnkj.gif

Multiple¶

Metaaction enabling handling of multiple faces in a single image.

OpenEyes¶

Open eyes. Affine transformation invariant.

OpenEyes(0.06)
https://i.imgur.com/H4kP9lI.gif

Pipeline¶

Metaaction allowing for multiple actions on a single face.

Pipeline([Smile(-0.08), OpenEyes(-0.06)])
https://i.imgur.com/Hh6KtKa.gif

RaiseEyebrow¶

Raise an eyebrow. Left, right or both. Affine transformation invariant.

RaiseEyebrow(scale=0.1, side='left')
https://i.imgur.com/6S9fpM1.gif

Smile¶

Smile. Affine transformation invariant.

Smile(0.1)
https://i.imgur.com/1oR046T.gif

StretchNostrils¶

Stretch nostrils. Affine transformation invariant.

StretchNostrils(0.1)
https://i.imgur.com/IxnUh6u.gif
Next Previous

© Copyright 2019, Jan Krepl Revision 246baeeb.

Built with Sphinx using a theme provided by Read the Docs.