This application discloses a target detection method, apparatus, device, and readable storage medium. The method includes: acquiring a current frame image; performing density detection on targets in the current frame image to obtain density detection results;
cropping the current frame image according to the density detection results to obtain image blocks; inputting each image block into a target
detector corresponding to the target density in the image block for target detection; and stitching together the target detection results of each image block to obtain the target detection result of the current frame image. The above-disclosed technical solution dynamically and adaptively divides the current frame image into blocks based on the target
density distribution, and selects a target
detector adapted to the image block based on the target
density distribution in different image blocks for target detection, thereby improving target detection capability and accuracy. Furthermore, density detection of the current frame image can remove non-target regions, thus improving target detection speed.