1. A non-transitory computer-readable storage medium having stored thereon an image recognition program which, when executed by a computer of an information processing apparatus, causes the computer to perform operations comprising: acquiring an image; detecting from the image a plurality of vertices of a contour of an object or of a design; generation means 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, wherein the division points on each side of at least one pair of two opposing sides are generated such that the closer to one end of each side of the two opposing sides, the denser the division points; 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 determining, on the basis of pixel values of the sample points, whether or not an object or design is displayed in an area surrounded by the plurality of vertices in the image.