A library for converting normal pictures to cartoon-like images
Project description
Cartoonizer
Cartoonizer is a Python library that converts normal pictures into cartoon-like images.
Installation
To install the library, use pip:
pip install cartoonizer-thellmike
Project Structure
Ensure your project directory looks like this:
my_project/
├── input_image.jpg
├── output_image.png
├── use_cartoonizer.py
└── venv/ # Optional, if you are using a virtual environment
Usage
Create a Python script named use_cartoonizer.py and add the following code:
from cartoonizer import apply_cartoon_effect
# Path to the input image
input_image_path = 'input_image.jpg'
# Path to save the output cartoon image
output_image_path = 'output_image.png'
# Apply the cartoon effect
apply_cartoon_effect(input_image_path, output_image_path)
print(f"Cartoon effect applied and saved to {output_image_path}")
Running the Script
Make sure you have an image named input_image.jpg in the same directory or provide the correct path to an image.
from cartoonizer import apply_cartoon_effect
# Path to the input image
input_image_path = 'input_image.jpg'
# Path to save the output cartoon image
output_image_path = 'output_image.png'
# Apply the cartoon effect
apply_cartoon_effect(input_image_path, output_image_path)
print(f"Cartoon effect applied and saved to {output_image_path}")
Run the script:
python use_cartoonizer.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cartoonizer_thellmike-0.1.1.tar.gz.
File metadata
- Download URL: cartoonizer_thellmike-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35f4d1960dd0b674c819fbeb99dc6208cd7f9aa1c7e4d088389e4aed6a2bf99
|
|
| MD5 |
86f3c1491496c46ea8496b1fe8efec5e
|
|
| BLAKE2b-256 |
f9548076e02b607b2b6ded421125ec3b08c4a51a6571ddb82cee1ca2892067fb
|
File details
Details for the file cartoonizer_thellmike-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cartoonizer_thellmike-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697e129dbd2c226ffe613d4a3a3e934372d85c42087f0b5824042eeafecbb2b1
|
|
| MD5 |
e073df53098369d22ab70b508eeb9375
|
|
| BLAKE2b-256 |
a66b86760b277f2ebd87f1d483df57e5831ca2491692698c2155e155fd2065db
|