CRK Guild Battle OCR Data Logger
This bot/program's purpose is to take a folder of screenshots containing guild battle hits from Cookie Run: Kingdom and serialize them into a .csv
file to perform further data analysis on.
Example output for an average week's worth of hits.
Git Preinstalled on Macs and most Linux/Unix distros
Python (>3.0) Note: make sure to add it to PATH (Windows)
Poetry
FFmpeg For those who want to use the video -> screenshot feature
if Python is installed, you can do pip install poetry
and check your installation with poetry --version
- To install the Python dependencies using Poetry, navigate to the project root directory
./CreampuffBOT
and run:
poetry install
if this doesn't work, you can do pip install -r requirements.txt
- This program is intended to be run on CUDA compatible GPUs. Because this program does a lot with image processing: having a GPU that can be properly taken advantage of by the program will dramatically improve runtime.
- Is my GPU CUDA compatible? -- Most NVIDIA graphics cards are CUDA compatible. AMD cards are not compatible. Intel cards also do not currently support CUDA. For more information and to check if your card is compatible, check here: https://developer.nvidia.com/cuda-gpus
To take advantage of your GPU, you will need to have a few things downloaded:
- Your drivers should be up to date. https://www.nvidia.com/download/index.aspx
- The CUDA toolkit needs to be installed. https://developer.nvidia.com/cuda-toolkit
- PyTorch (CUDA) must be installed. https://pytorch.org/get-started/locally/
The command for Windows + CUDA 11.7 waspip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
-- this may vary.
*NOTE: If you installed dependencies to a virtual environment with poetry
, please do poetry shell
before running this command
- To check your installation, you can run these two commands in a python shell to test if you can successfully utilize your GPU with this program.
import torch
torch.cuda.is_available()