This is a program to cartoonize an image without using complex procedures such as deep learning/ ML. We are going to use simple Open CV using python and numpy.
In order to achieve such basic cartoon effect, we don't really need a powerful rendring software. We can easily use bilateral filter and some edge detection.
- Apply bilateral filter to reduce the color palette of the image.
- Convert the original color image to grayscale
- Apply median blur to reduce image noise in the resultant grayscale image.
- Create an edge mask from the grayscale image using adaptive thresholding.
- Combine the color image from step 1 with the edge mask from step
Use an image with higher contrast to get better results. :)