ChessAR | ||
classifiers | ||
tmp | ||
training_images | ||
whole_boards | ||
.gitignore | ||
adapter.py | ||
chess_model_3_pieces.h5 | ||
IMG_2070.jpeg | ||
IMG_2086.jpeg | ||
LICENSE | ||
main.py | ||
new_baseline_board.png | ||
op_chess_model_3_pieces.h5 | ||
opencv_video.py | ||
pls_bo33.jpg | ||
README.md | ||
runner.py | ||
tensor_classifier.py | ||
test_chess_model.h5 | ||
util.py |
Test Adapter:
base64 --wrap=0 < whole_boards/boards_for_empty/board_1554285167.655788_rank_5.png | python3 adapter.py
Build OpenCV
mkdir opencv && curl -L https://github.com/opencv/opencv/archive/4.1.0.tar.gz | tar -xzv --directory=opencv_contrib --strip-components=1
mkdir opencv_contrib && curl -L https://github.com/opencv/opencv_contrib/archive/4.1.0.tar.gz | tar -xzv --directory=opencv_contrib --strip-components=1
mkdir -p opencv/build
cd opencv/build
cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_ENABLE_NONFREE=ON -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF ..
make -j $(nproc)
sudo make install
sudo ldconfig
python3 -c "import cv2; print(cv2.__version__)"