1. A target detecting method, comprising: detecting edges in a first direction in an input image, to obtain an edge image comprising a plurality of edges in the first direction; and generating one or more candidate targets according to the plurality of edges in the first direction, a region between any two of the plurality of edges in the first direction in the input image corresponding to one of the candidate targets.