|
| 1 | +# Cartooning Image with OpenCV |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | + |
| 6 | +## What is OpenCV? |
| 7 | + |
| 8 | +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. |
| 9 | +In this article, we will try to perform some image transformation using the CV2 version of OpenCV. |
| 10 | + |
| 11 | +### We will install opencv and numpy using the code below: |
| 12 | + ```shell |
| 13 | +pip install opencv-python |
| 14 | +pip install numpy |
| 15 | +``` |
| 16 | + |
| 17 | + |
| 18 | +### Now, we will import required libraries that are cv2 and numpy using the code given below: |
| 19 | + ```shell |
| 20 | +import cv2 |
| 21 | +import numpy as np |
| 22 | +``` |
| 23 | + |
| 24 | +###### Here's an example of cartooning the image: |
| 25 | + |
0 commit comments