The application is suitable for the technical field of computer application, and provides a two-dimensional code image
feature extraction method and device based on a CNN-MALT
hybrid architecture, which comprises the following steps: inputting a target two-dimensional code image into a CNN preprocessing module of a preset lightweight image
feature extraction network to generate first structure
perception features; inputting the first structure
perception features into a MALT
encoder of the preset lightweight image
feature extraction network, performing feature extraction on the first structure
perception features based on a proxy attention mechanism to generate deep features; and inputting the deep features into a
feature fusion module of the preset lightweight image feature extraction network to generate target features. Thus, the structure features of the two-dimensional code image are perceived by the CNN preprocessing module, the deep features are generated by the MALT
encoder based on the proxy attention mechanism, and the deep features are fused by the
feature fusion module, so as to ensure that the calculation complexity is reduced while the two-dimensional code image feature extraction accuracy is improved.