Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cizodevahm/cartoon-creation-from-image
This Python script allows you to create a cartoon effect from an image. It uses OpenCV to process the image and apply various transformations to achieve the cartoon effect.
https://github.com/cizodevahm/cartoon-creation-from-image
cartoonify image-processing opencv python
Last synced: 17 days ago
JSON representation
This Python script allows you to create a cartoon effect from an image. It uses OpenCV to process the image and apply various transformations to achieve the cartoon effect.
- Host: GitHub
- URL: https://github.com/cizodevahm/cartoon-creation-from-image
- Owner: cizodevahm
- License: mit
- Created: 2024-08-29T06:22:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T06:35:37.000Z (3 months ago)
- Last Synced: 2024-10-10T17:42:07.914Z (about 1 month ago)
- Topics: cartoonify, image-processing, opencv, python
- Language: Python
- Homepage:
- Size: 297 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cartoon Creation from Image
This Python script allows you to create a cartoon effect from an image. It uses OpenCV to process the image and apply various transformations to achieve the cartoon effect.## Requirements
- Python 3.x
- OpenCV
- EasyGUI
- NumPy
- ImageIO
- Matplotlib
- Pillow## Installation
To install the required packages, run:
```bash
pip install opencv-python easygui numpy imageio matplotlib pillow
```## Usage
1. Run the script:
```bash
python cartoonifier-python-project.py
```
2. A GUI window will open. Click on “Cartoonify an Image” to select an image file.
3. The script will process the image and display the cartoonified version.
4. You can save the cartoonified image by clicking on “Save cartoon image”.## Functions
- ```upload()``` : Opens a file dialog to select an image and calls the cartoonify() function.
- ```cartoonify(ImagePath)``` : Processes the image to create a cartoon effect.
- ```save(ReSized6, ImagePath)``` : Saves the cartoonified image to the specified path.## Example
**Original**![Example img](image/im1.png)
**Cartoon**
![Example img](image/im2.png)
## License
This project is licensed under the MIT License.