1. An information processing apparatus comprising: a memory configured to store instructions; and a processor configured to execute the instructions to perform: receiving a designation of a position for setting a passage detection line, for detecting a passage of a moving object, on an omnidirectional image captured by an image capture apparatus; generating a corrected partial region image that is obtained by performing a distortion correction that reduces a distortion, wherein the corrected partial region image includes the position designated on the omnidirectional image; receiving an information of the passage detection line on the corrected partial region image in accordance with a designation by a user; converting the received information of the passage detection line into information of a passage detection line on the omnidirectional image; generating an image of the passage detection line based on the information of the passage detection line on the omnidirectional image obtained by the converting; and superimposing the generated image of the passage detection line on the omnidirectional image.