Electric, customized public transportation, intelligent public transportation and unmanned driving are the development trends of public transportation in the future. Due to the promotion of environmental protection concept and scientific and technological innovation in recent years, many urban public transport has been completely replaced by electric, and the bus configuration is also constantly updated. Among them, the public transport charging system reflects the changing speed of the times. In a few years, the QR code scanning payment has become the mainstream fare collection. Moreover, in recent years, face recognition technology has become the mainstream of bus fare collection due to its superior security and speed The convenience of speed is well known and adopted by the public. Therefore, a group of technicians in maiquan began to add face recognition technology function on the basis of the original two-dimensional code card swiping machine, which means that it can bring more convenient and faster riding way for the public. At present, the face recognition two-dimensional code swipe card machine has begun to warm up, and I believe it will be put into use in the market soon. For face recognition, the most important concern of the public is its security. If information leakage will pose a threat to their own property? However, the reality is always the opposite. The new face recognition function requires identity authentication, supports black-and-white list control, and can accurately and effectively confirm the identity. The user's internal account uses personal encryption technology to prevent privacy leakage. Black and white blacklist can make public places safer. The addition of this function is also more convenient for the police to quickly identify criminals. So as to create a safer and more comfortable public space.