Block#
- class prose.Block[source]#
Single unit of processing acting on the
ImageobjectReading, processing and writing
Imageattributes. When placed in a sequence, it goes through two steps:terminate()called after theSequenceis 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)
Method called after block's
Sequenceis finished (if any)Attributes
argscitationsReturns a string listing the packages used by the block.