1. A setting apparatus for making a setting to detect that a moving object in an image has passed a line set in the image, comprising: an acceptance unit configured to accept designation of one of a position and a partial region in an object region in the image; and a setting unit configured to make a setting to detect that one of the position and the partial region designated by the designation in the object region of the moving object in the image has passed the line set in the image.