zokyo.augmentation.operations module

class zokyo.augmentation.operations.ArgsClass(**kwargs)[source]

Bases: object

Class used to handle arguments passed to operations

class zokyo.augmentation.operations.BrightenScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to brighten an image or specific classes of an image based on the brightness parameter[0, 1]

perform_operation(entities)[source]
class zokyo.augmentation.operations.DarkenScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to darken an image or specific classes of an image based on the darkness parameter[0, 1]

perform_operation(entities)[source]
class zokyo.augmentation.operations.EqualizeScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to equalize an image or specific classes of an image

perform_operation(entities)[source]
class zokyo.augmentation.operations.FogScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

TODO: Class to apply fog effect to an image

perform_operation(images)[source]
class zokyo.augmentation.operations.MotionBlur(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

TODO: Class to apply motion blur to an image

perform_operation(images)[source]
class zokyo.augmentation.operations.Operation(probability)[source]

Bases: object

Base class for operations

perform_operation(images)[source]
class zokyo.augmentation.operations.RadialLensDistortion(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to apply radial distortion to an image or specific classes of an image using the distortion type parameter (NegativeBarrel, PinCushion). It is applied to masks/ annotation masks too

perform_operation(entities)[source]
class zokyo.augmentation.operations.RainScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to apply rain effect to an image based on the paramters rain type (drizzle, heavy, torrential), drop width, length and color, slant of the rain and a brightness coefficient

perform_operation(entities)[source]
class zokyo.augmentation.operations.RandomBrightness(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to randomly brighten an image or specific classes of an image based on the random distribution parameter (normal or uniform)

perform_operation(entities)[source]
class zokyo.augmentation.operations.RandomDarkness(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to randomly darken an image or specific classes of an image based on the random distribution parameter (normal or uniform)

perform_operation(entities)[source]
class zokyo.augmentation.operations.SnowScene(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to add snow effect to an image or specific classes of an image

perform_operation(entities)[source]
class zokyo.augmentation.operations.SunFlare(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to apply sun flare effect to an image

perform_operation(entities)[source]
class zokyo.augmentation.operations.TangentialLensDistortion(**kwargs)[source]

Bases: zokyo.augmentation.operations.Operation

Class to apply tangential distortion to an image or specific classes of an image. It is applied to masks/ annotation masks too

perform_operation(entities)[source]