1. A storage medium readable by a computer, the storage medium storing a program of instructions executable by the computer to perform a function comprising: comparing input image data with reference image data; extracting an annotation contained in the input image data based on a result of comparing; discriminating a geometry of the annotation; and classifying the annotation according to the geometry of the annotation.