Image Processor is a Python-based project that provides two powerful image manipulation modules:
This module enables users to:
- Read text from an input image
- Replace a specific word in the extracted text
- Paste the modified text back onto the original image
- Image text extraction
- Word replacement
- Text overlay on images
This module allows users to:
- Read text from a text file
- Convert the text into an image
- Generate the image with a white background
- Text file reading
- Text-to-image generation
- Customizable image creation
The project leverages the following Python libraries and technologies:
- OpenCV (cv2): For image processing and manipulation
- Pillow: Image handling and creation
- NumPy: Numerical computing and array operations
- Lama Parser API: Text extraction and parsing
- Python 3.8+
- pip package manager
- Clone the repository
git clone https://github.com/YASH-Prakhar/image-processor.git- Install required dependencies
pip install -r requirements.txtfrom image_processor import TextReplacementModule
# Initialize the module
processor = TextReplacementModule()
# Process image
result_image = processor.replace_word('input_image.jpg', 'old_word', 'new_word')
result_image.save('output_image.jpg')from image_processor import TextToImageModule
# Initialize the module
converter = TextToImageModule()
# Convert text file to image
converter.text_to_image('input_text.txt', 'output_image.png')- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Your Name - Prakhar Kabra
Contributors - Sanika Patade, Ishita Porwal
Project Link: https://github.com/YASH-Prakhar/ImageProcessor