The present invention discloses a
pedestrian detection method, device and terminal device based on multi-
spatial relationship perception, the method comprises step 1, collecting
pedestrian image
data set, adjusting to a fixed size for model training; step 2, using the detection framework of YOLOX, inputting the image into the framework model, and first performing data enhancement on the image; step 3, inputting the data-enhanced image into the Focus module,
slicing the image according to odd and even, obtaining 4 images, and then splicing them along the channel direction; step 4, inputting the spliced image into the
backbone network of the YOLOX detection framework, and connecting the
backbone network with three branches; step 5, each
branch comprises 2 parts, a multi-
spatial relationship perception module and a detection head, and the multi-
spatial relationship perception module effectively fuses
global information and local information by combining the relationship between features in different spatial dimensions, and obtains a multi-spatial relationship perception feature map. The method not only focuses on
global information, but also extracts local information, and effectively fuses the two, thereby obtaining more recognizable feature information and improving
pedestrian detection performance.