Severity: Warning
Message: fopen(/tmp/ci_session7ohlo6b5dhs4pmo1a0027te41fldtqms): failed to open stream: No space left on device
Filename: drivers/Session_files_driver.php
Line Number: 176
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /tmp)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
By Richa Singh
Have fun by converting your images into a cartoon using Numpy and OpenCV libraries of Python Programming
Numpy is a highly optimized library in Python programming for numerical computation. It provides data structures used to deploy OpenCV with Python. So in this project, I used both to convert an image into a cartoon which involves several concepts of Computer vision.
1) Detecting and emphasizing edges
2) Image Filtering
3) Creating a cartoon effect
4) Color quantization
1) To install Numpy : pip install numpy
2) To install OpenCV : pip install opencv-python
1) import Numpy and OpenCV libraries.
2) Read the image from the given path.
3) Convert the image from BGR(Bue-Green-Red) to grayscale.
4) Apply the median blur filter to reduce noise from the image.
5) Detect and enhance edges by creating edge mask using adaptive thresholding.
6) Now, apply bilateral filtering for edge smoothing.
7) Combine the coloured input image with the edge mask image by doing bitwise AND operation.
8) Finally the cartoonified image is ready which is shown below :
-1612200835-255.png)
Submitted by Richa Singh (Richa23)
Download packets of source code on Coders Packet
Comments