carcassonne-cv
- Install Git for Windows with Git Bash
- Install python 3.6.3amd64 (I installed in C:\python-3.6.3)
- In a directory where you want to store your code, you should be able to right-click in the dir and choose "Open Git Bash"
- Clone the repo:
git clone https://github.com/matiascodesal/carcassonne-cv.git
- Enter the repo directory:
cd carcassonne-cv
- Install virtualenv:
/c/python-3.6.3/Scripts/pip install virtualenv
- Make a virtualenv dir:
mkdir .venv
- Create the virtualenv:
/c/python-3.6.3/Scripts/virtualenv .venv/carcacv
- Activate the virtualenv:
source .venv/carcacv/Scripts/activate
- Install packages to env:
pip install -r requirements.txt
- Test env is setup
winpty python
import cv2
cv2.__version__
Initial batch of images were found here: https://github.com/nathanial/caracassonne
Image Naming Scheme
<Tile Functional Type>_<Tile Art Variant>_<Photograph Instance>
-
Tile Function Type: A letter from A-X which corresponds with the mapping from Appendix A of this thesis: https://project.dke.maastrichtuniversity.nl/games/files/msc/MasterThesisCarcassonne.pdf
-
Tile Art Variant: Can just be a slight difference in art for the same functional tile due to art direction or differing game edition.
-
Photograph Instance: Used to enumerate the various images of the same functional type and same art variant. We want the same tile in a variety of different lighting conditions, distances, angles, blurriness, etc. to train the CV.