https://github.com/aryaminus/memento
Organize your meme image cluster in a better format using OCR from the meme to sort them using tesseract along with editing memes by segmenting them using OpenCV within a directory
https://github.com/aryaminus/memento
character-recognition cv2 image-classification image-processing meme numpy ocr opencv orientation-detection pillow python python3 tesseract
Last synced: 7 months ago
JSON representation
Organize your meme image cluster in a better format using OCR from the meme to sort them using tesseract along with editing memes by segmenting them using OpenCV within a directory
- Host: GitHub
- URL: https://github.com/aryaminus/memento
- Owner: aryaminus
- License: mit
- Created: 2018-04-27T12:28:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T21:08:33.000Z (over 2 years ago)
- Last Synced: 2025-02-16T10:54:38.213Z (over 1 year ago)
- Topics: character-recognition, cv2, image-classification, image-processing, meme, numpy, ocr, opencv, orientation-detection, pillow, python, python3, tesseract
- Language: Python
- Homepage: https://pypi.org/project/mementor/
- Size: 144 KB
- Stars: 79
- Watchers: 5
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Memento - Meme organizer
Organize your memes by having the window to:
- Fix the meme orientation
- Fetching the OCR from the meme and renaming the particular image with the initial 60 characters
- Option to track all text from the image and store in `/OCR-text/`
- Using OpenCV to segment Image and text to get the recognized text to edit the meme and store in `/Memento/`
- Single or multiple option choosing support
**Demo run:** Youtube
**Currently in beta state**
[](https://youtu.be/5Zt52ZxJJ0Y)
**Note:**
Make sure you have a OCR tool like `tesseract` and certain data value for comparing OCR, eg `tesseract-data-eng` along with `Pillow` and `Wand` for image conversion and loading to draw along with `numpy` and `cv2` for all Image processing required to crop the image with border values defined
## Installation
Install using PIP:
```
$ sudo pip install mementor
$ memento
```
***else***
Clone the source locally:
```
$ git clone https://github.com/aryaminus/memento
$ cd memento
$ git checkout feature/CV-UI
$ python3 memento.py
```
## Stepwise working
## Todo
- [x] Fix for subprocess to accept spaced directories
- [x] Add choice to fetch full OCR text
- [x] String stream to allow user to choose the particular feature of memento
- [x] Using OpenCV to partition image and text section to edit the text
- [ ] Listing the images in the directory to edit a particular image only
- [ ] Apply NLTK with window to edit the fetched text to modify and fix typos in meme
- [ ] Apply Classification to organize the memes baised on the image category template for prediction model
- [ ] Add GUI with tkinter to attach text to a meme image
## Reference
1. PDFtoTXT
2. OCR
3. Saram
4. Meme-maker
-----------------------------------------------------------------------------------------------------------
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
**Enjoy!**