In this link, I found the following line of code:
image = Image.open("testOCR3.png")\
.convert('L').resize([3 * _ for _ in image.size], Image.BICUBIC)\
.point(lambda p: p > 75 and p + 100)
Unfortunately, I just don't understand it yet.
(i) What does \ do? And why is it used at all?
(ii) Also, according to the documentation:
Image.convert(mode=None, matrix=None, dither=None, palette=0, colors=256).
So why does .convert().resize()
work?
Thanks in advance!