Objective To establish a farm product traceability system using two-dimension code (QR code) based on mobile internet.
Method The logical and physical structure of the farm product traceability system was studied. The principles of error collection code(ECC) based on Reed-Solomon(RS) code and the encoding algorithm of QR code were analyzed. The stained QR code was preprocessed by compressed sensing (CS) algorithm, and the result was compared with those from traditional denoising methods such as Gaussian, Disk, and Log algorithms. The relationship between QR code capacity and error correction, and the relationship between scanning pixels, staining position and image identifiablility have been studied. The parameters of mobile phone were identified.
Result The lowest pixel of mobile phone scanning was two million, and CS was able to solve the staining problem of QR code effectively. The error bit rate (EBR) of CS was 0.040 1 when signal noise rate (SNR) was 10.7 dBm, which was lower than the result of Log method (0.042 5). The EBR of CS was 0.011 3 when SNR was 11.7 dBm, which was lower than the result of Gaussian method (0.014 7). The peak signal to noise ratio (PSNR) of QR code images processed by CS were all higher than 10 dBm. The mask area had a major impact on position region, and the average accuracy rates of recognition at position region and encoding region were 87.68% and 91.24% respectively.
Conclusion The farm product traceability system enables integrity and traceability of the target information, solves the problem of information delay in planting, processing, circulation and sale of agricultural products.