I found this article online:
I didn’t try it myself, but I thought it might be useful for someone.
The alternative CV library is also there as an extension:
With both libraries you can do an endless amount of operations on pixel-based images.
For example, extracting all contours from an image and then colorizing each shape randomly: