1. An image processing apparatus comprising: a first acquiring unit that acquires an image to be processed; a setting unit that sets a plurality of partial image areas in the image to be processed; a second acquiring unit that, for each of the plurality of partial image areas, acquires a first classification result indicating a possibility that an object of a specific kind is included in the partial image area; and a generating unit that generates a second classification result indicating a possibility that the object of the specific kind is included in the image to be processed on the basis of the first classification results of the plurality of partial image areas, wherein the first classification result is a probability that the object of the specific kind is included, and wherein the generating unit generates the second classification result indicating the possibility that the object of the specific kind is included in the image to be processed on the basis of a sum or a product of the probabilities, which are the first classification results of the respective plurality of partial image areas, or a result of comparison between a number of the first classification results having the probabilities higher than or equal to a threshold value and a number of the first classification results having the probabilities lower than the threshold value.