Skip to content

App do Detect a Deck of 40 Cards using a pre-trained model.

Notifications You must be signed in to change notification settings

8JP8/CardDetectorApp

Repository files navigation

Playing Card Detector App

This application utilizes OpenCV and a YOLOv5 pre-trained model from Roboflow or the local pre-trained model to detect playing cards in images or video streams. It requires Python 3.10 and several dependencies listed below.

Requirements

  • Python 3.10
  • opencv-python
  • pyqt6
  • numpy
  • inference_sdk (optional)
  • configparser
  • pywin32 (optional)
  • torch
  • torchvision
  • yolov5

Installation

  1. Install Python 3.10 from Python's official website.
  2. Install the required packages using pip:
pip install pyqt6 numpy inference_sdk configparser pywin32 torch torchvision yolov5 opencv-python

Usage

  1. Clone or download the repository to your local machine.
  2. Navigate to the directory containing the CardDetectorProgram.py file.
  3. Run the Python script using the following command:
python CardDetectorProgram.py
  1. The application will launch, allowing you to either upload an image/video or use your webcam for real-time detection.
  2. Once the detection is complete, the detected playing cards will be highlighted or labeled on the screen.

Notes

  • For optimal performance, use a machine with a GPU and retrain the model with this dataset.
  • If you encounter any issues, refer to the documentation of the individual packages or contact the developers for support.

About

App do Detect a Deck of 40 Cards using a pre-trained model.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages