1. A non-transitory computer-readable storage medium storing a computer program for causing a computer to perform a method for outputting a setting window for setting a detection line on an image for detecting an object that passes through the detection line, the method comprising: receiving image data indicating an image shot by an imaging unit; storing, in a memory a trajectory of an object; and outputting the setting window on which the image shot by the imaging unit, the trajectory stored in the memory, and a range are displayed, wherein the range is displayed on the setting window on the basis of the trajectory, and the range is provided for setting the detection line for detecting an object which moves along the trajectory displayed on the setting window.