TaskRunner - April 2022
Overview
TaskRunner is a task scheduler designed to queue and run various tasks using Selenium, optimized to run on a spare laptop during the day. It is a flexible and efficient tool for automating repetitive tasks, making use of available computational resources.
Features
- Task Scheduling: Queue and manage the execution of tasks.
- Automation: Utilize Selenium to automate web-based tasks.
- Logging and Notifications: Plans to include logging capabilities and push notifications.
Setup and Installation
- Install Python:
- Ensure you have the latest version of Python 3.x installed.
- Install Dependencies:
- Use the following command to install the required Python packages:
- Setup Chromedriver:
- Download the latest version of Chromedriver from here and save the executable to your PATH.
- Configure Jobs:
- Create a
jobs.jsondatabase for the task runner usingjobs-example.jsonas a template.
pip install -r requirements.txt
Usage
To start the task scheduler, run the following command:
python runner.pyReddit Meme Classifier - May 2019
Overview
The Reddit Meme Classifier is a project designed to use Reddit’s API to download trending memes and classify them using basic image recognition techniques. The primary goal is to automate the identification and categorization of memes based on their visual content.
How It Works
The algorithm compares any given image to a set of pre-labeled memes stored in the comparisons/ directory. It resizes the comparison images to match the input image and then compares the individual RGB values for each pixel. This method is similar to the Euclidean distance classifier, as it compares against one sample per class.
Dependencies
To run this project, you need to install the following dependencies:
- numpy:
- opencv:
sudo pip install numpysudo pip install opencvUsage
To classify an image on your local machine:
python classify.py /path/to/imageTo classify an online image resource, add the --url flag:
python classify.py <http://image.url/path/to/image> --urlFor verbose output, add the --verbose flag:
python classify.py /path/to/image --verboseTo set a different comparison meme directory, use the --comparisons_dir flag:
python classify.py /path/to/image --comparisons_dir /path/to/comparisonsFuture Work
- Develop a meme rating system.
- Create a recommendation system based on user ratings.
- Extend computer vision capabilities to extract text from memes.
- Further classify and recommend memes using both text and meme type.
Raterhood - February 2019
Raterhood is a map-centered website, overlaying color-coded zip code areas based on safety and crime data while using Liberty Mutual's API.