Simple script to split an image into smaller grid of equal sizes, eg: 2x2, 2x3, 4x4, etc.
It uses OpenCV to read/write the images. so you need to first install it with:
pip install opencv-python
python split.py <source_image> 2x2 <output_dir>
ex:
python split.py colorful_background.png 2x2 ./output
this command will split and create 4 cell images into output
folder.