Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dofire/OpenCV-Playing-Card-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

OpenCV 🃏 Playing Card Detection ♥️♠️♦️♣️

The user simply puts the card on a flat surface, and the program will

  • threshold the image
  • find the card
  • isolate the corners
  • split it into rank and suit
  • compare with the stored rank/suit images and then show the results

Demo

♥️♠️ demo ♦️♣️

For more information, refer to Jupyter Notebook

Setup (for testing)

  • run installation.ipynb to install the required packages (or install packages manually)
  • setup local venv or anaconda env, then hit run main.py (or just use main.ipynb instead)
  • (For Testing) Because the test folder is quite large (100+ MB), you guys will have to download the .zip folder and then extract it into the root directory in order to test the code, which is under releases section

Used Packages

  • Python 3.11.5
  • opencv
  • numpy
  • matplotlib
  • jupyter notebook

References

About

Detect playing cards using OpenCV and Python ♥️♠️♦️♣️

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /