Digit recognition with visible light using three photodiodes and 3D-preprocessed data