A barcode is a graphic identifier that arranges a plurality of black bars and blanks with different widths according to certain coding rules to express a set of information. A common one-dimensional barcode is a parallel line pattern formed by black bars (bars for short) and white bars (empty for short) with large differences in reflectivity. Barcode is by far the most economical and practical automatic recognition technology[1]。 Barcode technology has the characteristics of fast input speed, high reliability, good ease of use and high cost performance. Barcodes have long been widely used in all sectors of society, but they are not widely used in hospitals. At present, most of the barcode technology used in hospitals is to print multiple self-adhesive barcode labels for each patient, and paste them on various diagnostic and therapeutic materials of patients[2,3]。 This method has greatly improved the work efficiency and accuracy compared with the previous method of manually typing the keyboard by staff. However, after all, the barcode label has to be pasted manually during the operation, which inevitably causes human errors, and the patient information after the label is pasted is irregular and unattractive.