An open API service indexing awesome lists of open source software.

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

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**

[![memento features](https://i.imgur.com/A8nZo21.gif)](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!**