Kernelgram 2.0 is an image processing application that provides various filters and features for image manipulation. It is built using OpenCV and Python. It also uses a pretrained YOLOv3 model for image detection (COCO).
The project has the following structure:
app.py
: The main application file.filters2.py
: Contains the updated image filter functions.haarcascade_frontalface_default.xml
: Haar cascade file for face detection.models
: Directory containing pre-trained models.yolov3.cfg
: YOLOv3 configuration file.yolov3.txt
: Text file containing class names for YOLOv3.yolov3.weights
: Pre-trained weights for YOLOv3.
requirements.txt
: List of Python dependencies for the project.
To use Kernelgram 2.0, follow these steps:
- Install the required dependencies by running
pip3 install -r requirements.txt
. - Download the zipped models folder from here.
- Unzip and add it to the project directory.
- Run the
app.py
script to launch the application. - Have fun!
- This app was updated for python 3.11.
- Pictures get saved in your homedir/Pictures/ folder
Some info that may help in troubleshooting.
Windows: Visit the Tesseract OCR downloads page at https://github.com/UB-Mannheim/tesseract/wiki. Download the latest stable version of Tesseract OCR for Windows. Run the installer and follow the installation instructions. During the installation process, make sure to select the option to add Tesseract to your system's PATH environment variable.
macOS: Open Terminal. Install Tesseract using Homebrew by running the command: brew install tesseract.
Linux (Ubuntu/Debian): Open Terminal. Run the following command to install Tesseract: sudo apt-get install tesseract-ocr.
Windows: Visit the Qt website (https://www.qt.io/download) and download the Qt 6 installer for Windows. Run the downloaded installer and follow the installation wizard. During the installation, select the components you want to install. Make sure to include the Qt libraries and development tools. Choose the installation path and complete the installation process.
macOS: brew install qt@6
Linux: sudo apt-get install qt6-default
Enjoy using Kernelgram 2.0!