1. A non-transitory computer-readable storage medium having stored therein an information processing program which causes a computer of an information processing apparatus, which is connected to an imaging device, an input device operated by a user, and a display device having a screen on which the user can view a real space, to execute the information processing program to provide: captured image data obtaining for successively obtaining captured image data indicating an image captured by the imaging device; input data obtaining for successively obtaining, from the input device, user input data based on an operation of the user; detection for detecting a specific target from the captured image data successively obtained by the captured image data obtaining; calculation for calculating relative positions of the imaging device and the specific target, based on a result of the detection for the specific target; virtual camera setting for successively setting a virtual camera in a virtual space, based on a result of the calculation by the calculation; generation for capturing, using the virtual camera, an object in the virtual space, which is indicated by the user input data successively obtained by the input data obtaining, to generate an object image corresponding to the object; and display control for causing the display device to successively display a superimposed image in which the object image generated by the generation is superimposed on the real space on the screen.