1. An image processing apparatus comprising: a detection unit which detects an object which is included in an image; and a determination unit which determines a positional relationship between a detected object and a protective barrier region in a depth direction of the image based on a feature amount relating to at least one of the detected object and the protective barrier region, when the detected object and the protective barrier region overlap with each other in the image.