The script is designed to convert text files from PNG format to JSON.
For Python 3.5+
Before you begin, install the dependencies: pip install -r requirements.txt
Terminal: python pgn_to_json.py <inp_dir> <out_dir> [join]
- inp_dir: the source folder where the PGN files are located
- out_dir: destination folder
- join: if you want to create a single file (optional parameter)