Create ocr output to matrix.R