Where pxr0 is red value for pixel 0, pxg2 is green value for pixel 2, etc.
Instructions
Download train.7z from the Kaggle site and extract the train folder to this repo directory. Also make sure the file trainLabels.csv is in the same directory as the repo. Then run:
python getpx.py > train.csv
Dependencies
This script depends on PIL (Python Imaging Library). You can probably install this by running this command (if you have Pip):