Amazing-Python-Scripts
Cartooning Image with OpenCV
We aim to transform images into its cartoon. Yes, we will CARTOONIFY the images. Thus, we will build a python application that will transform an image into its cartoon using OpenCV.
What is OpenCV?
OpenCV is an open-source python library used for computer vision and machine learning. It is mainly aimed at real-time computer vision and image processing. It is used to perform different operations on images which transform them using different techniques. In this article, we will try to perform some image transformation using the CV2 version of OpenCV.
We will install opencv and numpy using the code below:
pip install opencv-pythonpip install numpy
Now, we will import required libraries that are cv2 and numpy using the code given below:
import cv2import numpy as np