Block#

class prose.Block[source]#

Single unit of processing acting on the Image object

Reading, processing and writing Image attributes. When placed in a sequence, it goes through two steps:

  1. run() on each image fed to the Sequence

  2. terminate() called after the Sequence is terminated

Parameters:
  • name (str, optional) – name of the block, by default None

  • size (int, optional) – number of images processed by the block, by default 1

  • class (All prose blocks must be child of this parent) –

Methods

__init__([name, verbose, size, read])

run(image)

Running on a image (must be overwritten when subclassed)

terminate()

Method called after block's Sequence is finished (if any)

Attributes

args

citations

Returns a string listing the packages used by the block.