This repository contains the complete source code for the CS4337 Final Project.
All Python scripts used for the project are included and organized for easy execution.
A requirements.txt file is provided listing every library needed to run the code.
Scroll to top of page and locate the green "code" button click it and copy the given HTTPS URL
Follow these steps to install everything required to run the project:
-
Create a Virtual Enviorment It is recommended to create a virtual enviorment before installing dependencies
# Create a virtual environment named projectenv python -m venv projectenv # Activate the environment # On macOS/Linux: source projectenv/bin/activate # On Windows: projectenv\Scripts\activate # If running into issues for ultralytics do the following # Install the ultralytics package from GitHub pip install git+https://github.com/ultralytics/ultralytics.git@main
-
Download database and insert into /dataset
https://www.kaggle.com/datasets/jaypradipshah/the-complete-playing-card-dataset
-
Clone the repository
git clone https://github.com/Da125673/CS4337FinalPoject.git cd <CS4337FinalPoject> pip install -r requirements.txt
-
training one-stagecode and running
python one-stagecode/train_single_stage.py Once training complete run live demo by: python one-stagecode/realtime_single_stage.py -
training two-stagecode and running
python two-stagecode/CNN_training.py Once training complete run live demo by: python two-stagecode/Live_camara.py