A program to find sets in the card game "SET"
Read more about the game on Wikipedia
# pip install -r requirements.txt
Or install the packages seperately:
# pip install numpy==1.16.3
# pip install opencv-contrib-python==3.4.5.20
$ python cards.py [imagefile(s)]
The program can be run, with as many imagefiles as desired. If the image is not found, it is simply skipped.
I have only tested it with .jpg
files, but any of the filetypes listed in the OpenCV Docs should work.
If you want to run the program with this image:
Run this
$ python cards.py img\1.jpg
Whereafter a folder named 1_solution
will be created inside the img
folder.
Inside this folder, you will find images, with all the sets found on the image. Like the one below
The code is still not working 100% correcly on all of the images, I know, it's still in the early development stages.
The repo is licensed under GPL-3.0
You are welcome to contact me, if you have any questions, at tinggaard@yahoo.com Or if you have suggestions, feel free to fork me here on GitHub
Made with blood, sweat and tears, by Jens Tinggaard