1. An object detecting apparatus comprising: at least one memory; and at least one processor connected to the memory and configured to execute instructions that, when executed, cause the object detecting apparatus to: identify a candidate region of an object based on an input image; calculate a first score indicating reliability of the candidate region; set a region to be excluded from the candidate region of the object in the input image, according to an application using information of the object; calculate a second score indicating reliability of the region to be excluded; and detect a region of the object based on the identified candidate region, the set region to be excluded, the first score, and the second score.