I have a folder of JPG images that I'm trying to classify for a kaggle competition. I have seen some code in Python that I think will accomplish this on the forums, but was wondering is it possible to do in R? I'm trying to convert this folder of many jpg images into csv files that have numbers showing the grayscale of each pixel, similar to the hand digit recognizer here http://www.kaggle.com/c/digit-recognizer/
So basically jpg -> .csv in R, showing numbers for the grayscale of each pixel to use for classification. I'd like to put a random forest or linear model on it.
jpeg
package andreadJPEG
to read the files. If they are truly single-channel (greyscale) images, then the value at the x/y coord will be 0:1 and be the corresponding to the greyscale level. – Cental0:1
to0:255
if desired. – Christiansen