Block#
- class prose.Block[source]#
Single unit of processing acting on the
Image
objectReading, processing and writing
Image
attributes. When placed in a sequence, it goes through two steps:terminate()
called after theSequence
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)
Method called after block's
Sequence
is finished (if any)Attributes
args
citations
Returns a string listing the packages used by the block.