Finding S1 code from image