Git Product home page Git Product logo

playing_cards_detection-faster_rcnn's Introduction

Playing Cards Detection using Faster-RCNN

Introduction

The project is an application to detect and classify a deck of 52 playing cards using the Faster R-CNN model.

For each suffix followed by a label: H: Hearts, D: Diamonds, C: Clubs, S: Spades.


demo

Install

To install and run the project, follow these steps.

  1. Clone the project from the repository:
git clone https://github.com/vo-vuong/playing_cards_detection-faster_rcnn.git
  1. Navigate to the project directory:
cd playing_cards_detection-faster_rcnn
  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate  # For Linux/Mac
.venv\Scripts\activate  # For Windows
  1. Install the dependencies:
pip install -r requirements.txt
Inference

Run the inference by an image file and the result will be saved at outputs/images/.

python test.py --test_images img.jpg          # image

Project Structure

playing_cards_detection-faster_rcnn/
├── constants
│   ├── config_const.py
│   └── paths_const.py
├── data
├── outputs                             # default path of model prediction
│   └── images
├── test_data
├── trained_models                      # the folder containing pretrain model
├── utils
│   ├── download_model.py
│   └── file_helpers.py
├── dataset_analysis.ipynb              # dataset analysis file
├── dataset.py                          # setup dataset for training
├── README.md
├── requirements.txt
├── test.py                             # main file to run test
└── train.py                            # training file

Additional Resources

playing_cards_detection-faster_rcnn's People

Contributors

vo-vuong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.