A computer-readable storage medium, having stored therein an image recognition program causing a computer of an information processing apparatus to function as: image acquisition means (31, S1) for acquiring an image; and vertex detection means (31, S4) for detecting from the image four vertices forming a contour of an area surrounding a predetermined object or design; characterized by determination means for determining whether or not, among the plurality of sides connecting the four vertices to each other, at least one pair of two opposing sides not connecting the same vertices are parallel to each other, division point generation means (31, S74, S78) for, when the determination means has determined that any two opposing sides are not parallel to each other, generating a predetermined number of division points on each of sides connecting the four 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 (31, S80) for, on the basis of pixel values of the sample points, determining, based on predetermined data stored in advance, whether or not the predetermined object or design is displayed in an area surrounded by the four vertices in the image, and in that the division point generation means (31, S74, S78) is adapted to generate the division points on each side of at least one pair of two opposing sides such that, the closer to one end of each side of the two opposing sides, the denser the division points, wherein the division point generation means (31, S74, S78) is adapted to divide each side of at least one pair of two opposing sides into unequal parts in accordance with a ratio of a distance between one end of one side of the two opposing sides and a corresponding one end of the other side to a distance between the other ends; and wherein the distinction means (31, S80) is adapted to determine, by comparing the pixel values of the sample points with pixel values corresponding to the predetermined object or design that are stored in advance, whether or not the predetermined object or design is displayed in the area surrounded by the four vertices in the image. image acquisition means (31, S1) for acquiring an image; and vertex detection means (31, S4) for detecting from the image four vertices forming a contour of an area surrounding a predetermined object or design; characterized by determination means for determining whether or not, among the plurality of sides connecting the four vertices to each other, at least one pair of two opposing sides not connecting the same vertices are parallel to each other, division point generation means (31, S74, S78) for, when the determination means has determined that any two opposing sides are not parallel to each other, generating a predetermined number of division points on each of sides connecting the four 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 (31, S80) for, on the basis of pixel values of the sample points, determining, based on predetermined data stored in advance, whether or not the predetermined object or design is displayed in an area surrounded by the four vertices in the image, and in that the division point generation means (31, S74, S78) is adapted to generate the division points on each side of at least one pair of two opposing sides such that, the closer to one end of each side of the two opposing sides, the denser the division points, wherein the division point generation means (31, S74, S78) is adapted to divide each side of at least one pair of two opposing sides into unequal parts in accordance with a ratio of a distance between one end of one side of the two opposing sides and a corresponding one end of the other side to a distance between the other ends; and wherein the distinction means (31, S80) is adapted to determine, by comparing the pixel values of the sample points with pixel values corresponding to the predetermined object or design that are stored in advance, whether or not the predetermined object or design is displayed in the area surrounded by the four vertices in the image.