8.1.2.4. blueoil.data_processor

8.1.2.4.1. Module Contents

8.1.2.4.1.1. Classes

Sequence

Sequence several processor together.

Processor

8.1.2.4.1.2. Functions

binarize(labels, num_classes)

Return numpy array binarized labels.

class blueoil.data_processor.Sequence(processors)

Sequence several processor together.

Parameters

processors (List[Processor]) – list of processor.

Examples

Sequence([
FlipLeftRight(0.5),
Hue((-10, 10)),
])
__call__(self, **kwargs)
__repr__(self)

Return repr(self).

set_image_size(self, image_size)

Override processors image size

Parameters

image_size (tuple) – (height, width)

class blueoil.data_processor.Processor
abstract __call__(self, **kwargs)

Call processor method for each a element of data.

Return image and labels etc.

__repr__(self)

Return repr(self).

blueoil.data_processor.binarize(labels, num_classes)

Return numpy array binarized labels.