This paper mainly studies the design method of the hardware and software of the cigarette strip QR code decoding based on STM32 microprocessor. This paper expounds the principle of hardware circuit design with STM32F407 microprocessor as the core, analyzes the steps of analyzing the QR code decoding algorithm based on the modular programming idea of C language, and analyzes the result of cigarette-bar QR code decoding. The results of field application show that the system can meet the design requirements of cigarette QR code decoding and improve the recognition rate of two-dimensional code, which has high application value.