1. A terminal, comprising: a processor configured to execute a process including capturing a first input image including a reference object and a first background image surrounding the reference object, performing image recognition on the captured first input image to obtain identification information of the reference object, obtaining characteristic information registered in association with the identification information of the reference object, wherein the obtained characteristic information is characteristic information of a second background image of a second input image, the second input image including the reference object and the second background image surrounding the reference object, and wherein the characteristic information of the second background image is registered in association with the identification information of the reference object prior to capturing the first input image, determining whether characteristic information of the first background image of the first input image matches the obtained characteristic information of the second background image of the second input image, and generating an image in which a content associated with the identification information of the reference object is superimposed on the first input image based on a result of the determining that the characteristic information of the first background image matches the characteristic information of the second background image.