A Python package for adding text overlays to images with the power of Computer Vision
Project description
TextOverlay
A powerful Python package for overlaying text over images in a systematic and intelligent manner.
Installation
pip install textoverlay
Quick Start
import textoverlay
WEIGHTS:
-In order to download the weights of the U2Net architecture, run the following command:
python -m textoverlay.models.model_downloader list
-It will provide 2 options:
- download u2net
- download u2netp -Select the option you want to download (for most cases, u2net is recommended as it has full weights. u2netp is a lighter version of u2net, but it may not be as accurate as u2net.)
Features
- AI-powered text placement that intelligently analyzes the entire image and chooses the parts of the image that are most suitable for text overlay. Furthermore, it has an incredible custom text placement feature that allows you to place text in any part of the image.
- Saliency detection for optimal text positioning
- Multiple overlay styles
- Easy-to-use Python API
Ideal use cases
- Social media posts
- Digit Marketing campagains/ads
- Product images
- News articles
- Blog posts
- Any image that requires text overlay
Requirements
- Python 3.8+
- PIL/Pillow for image processing
- PyTorch for AI models
License
MIT License
Contributing
Contributions welcome! For complaints and compliments:
- GitHub: https://github.com/YugMakhecha17
- Email: yugmakhecha1710@gmail.com
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 Distributions
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 textoverlay-0.1.0-py3-none-any.whl.
File metadata
- Download URL: textoverlay-0.1.0-py3-none-any.whl
- Upload date:
- Size: 356.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d80a81b8a1bf7fafba2d886dd30031a5003853960254d7c584252d2d4e9a399
|
|
| MD5 |
0415d9a228310898d88cb42cd13b306f
|
|
| BLAKE2b-256 |
56c23cd50cb3439e58e96e5da1471f05927988a0ea72395d6c56b03f2b77d17c
|