The algorithm is based on computer recognition technology. It disassembles X-ray image information from lines to materials at multiple levels, and automatically identifies and alarms conventional bags, liquids, explosives, etc. It reduces the burden of staff. It is widely used in airport railway, conference and other security inspection scenarios. The algorithm can automatically identify key fields of Chinese and English passport data pages, including Chinese/English names, gender, passport type, passport number, etc. The recognition results are output by line.