Table of Contents
- Memefinder Documentation
Runs the flask server on localhost:5000
in development mode.
Adds subreddits to the web scraping list.
Collects memes from the subreddits in Meme.txt
.
Runs the deprecated tkinter application.
Contains the files required for searching through the database.
Extends the query to include all synonyms related to the input query using nltk package.
Creates an new collection of all memes stored in the database, where the filename is used as key
and associated text as value
. Along with that score
field is added to map ranking in get_score_db()
Checks if there is update in data and correspondingly calls create_index_db()
Creates a relevance based score list matched with the filenames in collection INDEX
for the given keywords
Used for the flask application. Use the functions here for a higher level abstraction of the project.
Returns list of meme files from the database based on the query
.
Starts the deprecated Tkinter GUI of the project. Will be removed in the future.
Will be removed in the future.
Contains vital information like memeList
and currentImage
and the object of this class is very important in the functioning of the GUI.
Gets the list of memes which match the given query
.
Displays the image at image_path
on the canvas
in the GUI.
Initiates all the process essential for the GUI to function. It gets the memeList ready based on the entered query
and also dispays the first meme on the canvas
.
Displays the previous image on the canvas
.
Displays the next image on the canvas
.
Contains files related to the web scraping part of the project.
Finds a list of meme subreddits using reddit REST api. Stores the list in scraper/Meme.txt
.
Scraps meme images from the subreddits in scraper/Meme.txt
and stores them in processed/
directory.
Renames the memes present in raw/
folder to a unique hex-digest generated filename and moves it to processed/
folder.
Extracts text using Tesseract OCR from the meme from the raw/
folder.
Store for the txt-based comma separated databases.
Temperory cache for storing images.
Will be created and removed by collect.sh
This is a store for image files with standardised file names.
Will be created after running collect.sh
This is a store for image files from web scraping.
Will be created and removed by collect.sh