This application provides a
deep learning-based QR code detection method and apparatus. The method obtains a first feature map through multi-scale
feature extraction and
feature fusion. Based on the first feature map, a segmentation map of a second preset scale for a first preset channel is obtained. The segmentation map is used to obtain the core region of the QR code to be tested according to its set confidence range. Based on the segmentation map, a first detection box of the QR code is obtained. The first detection box is the minimum area bounding rectangle of the contour in the segmentation map, and it is used to detect and identify the QR code to be tested. This application only needs to obtain the core region of the QR code to be tested through the segmentation map, that is, the process of the segmentation map classifying the core region and non-core region of the QR code, reducing the process required to obtain the QR code detection box, thereby reducing the time spent obtaining the QR code detection box and improving the efficiency of QR code detection and recognition.