1. A computer-readable storage medium having stored thereon an image recognition program causing a computer of an information processing apparatus to function as: image acquisition means for acquiring an image; vertex detection means for detecting from the image a plurality of vertices of a contour of an object or of a design; division point generation means for generating a predetermined number of division points on each of sides connecting the plurality of vertices to each other, so as to divide each side of at least one pair of two opposing sides into unequal parts; sample point determination means for determining a plurality of sample points on the basis of straight lines connecting the division points on the two opposing sides to one another; and distinction means for, on the basis of pixel values of the sample points, determining whether or not a predetermined object or design is displayed in an area surrounded by the plurality of vertices in the image.