Note
Click here to download the full example code
Hello World!¶
Learn the basics with Hello World!
At it’s core ImagePypelines is just a way to string functions and algorithms together.
import imagepypelines as ip
@ip.blockify(void=True)
def print_msg(msg):
print(msg)
We can do this by calling process directly…
Out:
Hello World!
Hello World... but callable!
We can pass in any data we want! In this example, we call this function once for every datum passed in
processed = msg_printer.process(['we','can','print','anything','individually!'])
Out:
we
can
print
anything
individually!
We can also print everything at once with the batch_type variable¶
Out:
['we', 'can', 'print', 'everything', 'at', 'once!']
Total running time of the script: ( 0 minutes 0.005 seconds)