In accordance with the present invention, highly accurate reading is possible as compared with the conventional techniques particularly in a case where the background is not white but colored or has irregularities in light and shade, and in a case where the background has gradations in which the relative density increases or decreases.