A bus payment recognition and analysis method based on artificial intelligence and machine vision

Through the bus payment identification and analysis method based on artificial intelligence and machine vision, combined with the content tolerance of the QR code and the safety factor of the payment environment, efficient and accurate verification of the bus payment QR code is achieved, solving the verification problems in the existing technology. The problem of extension and misjudgment is improved, and the payment experience and operational efficiency are improved.

CN118628107BActive Publication Date: 2024-10-15SHANDONG HENGYU ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095859.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-15
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing bus payment system lacks multi-dimensional and efficient integrated verification capabilities when dealing with complex scenarios. It cannot fully verify the format, content, timeliness and security of user payment QR codes in a short period of time, and security verification ignores the payment environment and behavior. risks, resulting in prolonged verification processes and misjudgments.

Method used

Using the bus payment identification and analysis method based on artificial intelligence and machine vision, by capturing the QR code image, the content tolerance and payability are verified, and the format, content, and payability of the QR code are realized by combining the payment environment and behavioral safety factors. Highly integrated verification of timeliness and security.

Benefits of technology

It improves the efficiency and accuracy of QR code verification, reduces the risk of verification failure and user payment delays, and improves the payment experience and bus operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628107B_ABST
    Figure CN118628107B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of public transportation payment collection, and relates to a public transportation payment collection identification and analysis method based on artificial intelligence and machine vision. The method performs validity verification by capturing a user payment two-dimensional code image through a camera device of a target public transportation payment terminal, including format verification, content verification, time verification and security verification. If the validity verification fails, it is confirmed that the user payment transaction has failed. Otherwise, the target public transportation fare of the account corresponding to the user payment two-dimensional code is deducted and the effective deduction verification is performed again. If the verification passes, it is confirmed that the user payment transaction is successful. Otherwise, it is confirmed that the user payment transaction has failed. Then, the payment transaction result is broadcasted to the user using an audio output device of the target public transportation payment terminal. Different from the simple verification level combination of the prior art, a more complete and comprehensive public transportation payment collection identification system is constructed to ensure the verification accuracy and reliability of the user payment two-dimensional code, and further improve the public transportation operation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of public transportation payment collection, and relates to a public transportation payment collection identification and analysis method based on artificial intelligence and machine vision. Background Art

[0002] With the rapid development of science and technology, public transportation systems are gradually transforming towards intelligence and convenience. In the field of public transportation payment, traditional cash payment methods can no longer meet the needs of modern cities for efficiency, safety and convenience. The rise of QR code payment has been widely used in the field of public transportation payment due to its fast and contactless characteristics. However, how to efficiently and accurately identify and process QR code payment information in a complex and changing public transportation environment has become an urgent problem to be solved.

[0003] The existing public transportation payment system has complete technical means to realize effective identification of public transportation payment, but it often lacks the ability of multi-dimensional efficient integrated verification mechanism in the payment verification process, that is, it lacks the ability to realize comprehensive and continuous verification of the format, content, timeliness and security of the user's payment QR code in a short time. Although some existing systems can achieve integrated verification of format, content, timeliness and security, they are still unable to cope with complex scenarios. Specifically, on the one hand, the content verification of the existing technology usually determines whether the payment information is complete and correct by parsing the content of the QR code, and fails to fully consider the fault tolerance mechanism of the QR code itself before content parsing, resulting in the verification process being easily obstructed when the scanned image quality is poor or the QR code is partially blocked or damaged, thereby extending the verification time and increasing the risk of verification failure.

[0004] On the other hand, the security verification of existing technologies mostly detects the risk of QR code counterfeiting, such as identifying potential counterfeiting by comparing QR code encoding rules, verifying the source of QR codes, etc. However, it ignores the risks of the QR code payment environment and the payment behavior itself. The existing technology focuses on the narrow link of the risk of QR code counterfeiting in the payment process, and ignores the more extensive and complex potential threats in the dynamic payment process. Summary of the invention

[0005] In view of this, in order to solve the problems raised in the above background technology, a bus payment recognition and analysis method based on artificial intelligence and machine vision is proposed.

[0006] The purpose of the present invention can be achieved through the following technical solutions: The present invention provides a bus payment recognition and analysis method based on artificial intelligence and machine vision, including: S1. Transaction medium capture: capturing the user payment QR code image through the camera device of the target bus payment terminal.

[0007] S2. Transaction medium verification: Verify the validity of the captured user payment QR code image. If the verification passes, execute S3. Otherwise, confirm that the user payment transaction has failed and execute S5.

[0008] S3. Transaction amount deduction: deduct the target bus fare from the account corresponding to the user’s payment QR code.

[0009] S4. Transaction amount verification. The transaction amount paid by the user is verified for effective deduction. If the verification is passed, the user payment transaction is confirmed to be successful and S6 is executed. Otherwise, the user payment transaction is confirmed to be failed and S5 is executed.

[0010] S5. Transaction failure feedback: The payment transaction failure is announced to the user through the audio output device of the target bus payment terminal.

[0011] S6. Transaction success feedback: The audio output device of the target bus payment terminal announces the success of the payment transaction to the user.

[0012] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention realizes efficient and accurate content verification of user payment QR codes by successively verifying the content fault tolerance and content payability of user payment QR codes, making up for the defect of prior art that ignores the fault tolerance mechanism of the QR code itself. It not only avoids wasting time and resources in unnecessary parsing process, but also directly and effectively verifies the integrity and validity of payment information, ensuring that the verification process is efficient and orderly.

[0013] (2) The present invention combines the payment environment security factor and payment behavior security factor of the user payment QR code to achieve in-depth security verification of the user payment QR code, help to more accurately identify potential payment risks, avoid misjudgment and interference with normal payment behavior, help improve the user's payment experience, and reduce payment delays and inconveniences caused by security verification.

[0014] (3) The present invention conducts highly integrated verification and analysis of the format, content, timeliness and security of the user payment QR code, which is different from the simple combination of verification levels in the prior art. It builds a more complete and comprehensive public transportation payment recognition system to ensure that the verification process of the user payment QR code is not missed, improves the accuracy and reliability of verification, and further improves the efficiency of public transportation operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0016] Figure 1 The present invention is a flowchart of the steps for implementing the method. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] See also Figure 1 As shown, the present invention provides a method for identifying and analyzing bus payment based on artificial intelligence and machine vision, including: S1. Transaction medium capture: capturing the user payment QR code image through the camera device of the target bus payment terminal.

[0019] S2. Transaction medium verification: Verify the validity of the captured user payment QR code image. If the verification passes, execute S3. Otherwise, confirm that the user payment transaction has failed and execute S5.

[0020] Specifically, the validity verification of the captured user payment QR code image includes: performing image preprocessing on the user payment QR code image, determining the boundary and inclination angle of the user payment QR code according to the QR code positioning identifier, thereby extracting the user payment QR code and performing direction correction, and then performing format verification, content verification, time verification and security verification on the user payment QR code respectively. If the format verification, content verification, time verification and security verification are all passed, then it is determined that the user payment QR code image validity verification has passed, otherwise it is determined that the user payment QR code image validity verification has failed.

[0021] Specifically, the format verification of the user payment QR code includes: using a QR code decoding library to decode the user payment QR code, and obtaining a version number, module size, and encoding mode of the user payment QR code.

[0022] It should be noted that the above-mentioned QR code decoding library specifically refers to a software library or tool set, which is created and uploaded by professionals with a large number of QR code parsing algorithms, and is specifically used to decode QR code images, that is, to extract and parse the information contained in the QR code image data.

[0023] According to the supported version number sequence, supported module size range and supported encoding mode sequence of the target public transportation payment terminal collection code stored in the WEB cloud, it is determined whether the version number, module size and encoding mode of the user payment QR code are supported by the target public transportation payment terminal. If it is determined that the version number, module size and encoding mode of the user payment QR code are all supported by the target public transportation payment terminal, then it is determined that the format verification of the user payment QR code has passed; otherwise, it is determined that the format verification of the user payment QR code has failed.

[0024] It should be noted that the judgment process of whether the version number, module size and encoding mode of the above-mentioned user payment QR code are supported by the target public transport payment terminal is as follows: if the version number of the user payment QR code is within the support version number sequence of the target public transport payment terminal's payment code, it is judged that the version number of the user payment QR code is supported by the target public transport payment terminal; conversely, if the version number of the user payment QR code does not exist in the support version number sequence of the target public transport payment terminal's payment code, it is judged that the version number of the user payment QR code is not supported by the target public transport payment terminal.

[0025] If the module size of the user payment QR code is within the supported module size range of the target bus payment terminal's payment code, it is determined that the module size of the user payment QR code is supported by the target bus payment terminal; conversely, if the module size of the user payment QR code is outside the supported module size range of the target bus payment terminal's payment code, it is determined that the module size of the user payment QR code is not supported by the target bus payment terminal.

[0026] The process of determining whether the encoding mode of the user payment QR code is supported by the target public transportation payment terminal is the same as the process of determining whether the version number of the user payment QR code is supported by the target public transportation payment terminal, which will not be elaborated here.

[0027] Specifically, the content verification of the user payment QR code includes: using the QR code decoding library to decode the user payment QR code to perform an error correction level, obtaining the error correction level of the user payment QR code, combining the error correction levels of the QR codes stored in the WEB cloud with the preset recognition challenge tolerance thresholds corresponding to the error correction levels, and obtaining the error correction level of the user payment QR code corresponding to the preset recognition challenge tolerance thresholds.

[0028] Evaluate the recognition challenge of the user payment QR code, and compare it with the preset recognition challenge tolerance threshold corresponding to the error correction level of the user payment QR code; if the recognition challenge of the user payment QR code is less than or equal to the preset recognition challenge tolerance threshold corresponding to its error correction level, then it is determined that the content fault tolerance verification of the user payment QR code has passed; otherwise, it is determined that the content fault tolerance verification of the user payment QR code has failed.

[0029] If the content fault tolerance verification of the user payment QR code passes, the identifier of the user payment QR code obtained by decoding the QR code decoding library will be further uploaded to the target bus payment terminal server, and the account corresponding to the identifier of the user payment QR code will be retrieved to see if it is a valid account. If the account corresponding to the retrieved identifier of the user payment QR code is a valid account, then it is determined that the content payability verification of the user payment QR code has passed. Otherwise, it is determined that the content payability verification of the user payment QR code has failed.

[0030] When both the content fault tolerance verification and the content payability verification of the user payment QR code are passed, it is determined that the content verification of the user payment QR code is passed; otherwise, it is determined that the content verification of the user payment QR code is failed.

[0031] Specifically, the evaluation of the recognition challenge of the user payment QR code includes: converting the extracted user payment QR code image into a grayscale image, obtaining the clarity of the user payment QR code image , Contrast and exposure , calculate the image quality coefficient of the user payment QR code .

[0032] It should be noted that the process of obtaining the clarity, contrast and exposure of the above-mentioned user payment QR code image is: using the Sobel operator to calculate the gradient amplitude and gradient direction of each pixel in the user payment QR code image, and according to the preset weights corresponding to each gradient direction interval, calculating the weighted average gradient amplitude of the user payment QR code image, which is used as the clarity of the user payment QR code image.

[0033] Obtain the grayscale value of each pixel in the user payment QR code image, and construct a grayscale histogram of the user payment QR code image based on the preset pixel grayscale value intervals corresponding to each grayscale level, with the number of pixels as the vertical axis and the grayscale value as the horizontal axis. Obtain the grayscale levels involved in the user payment QR code image, find the maximum pixel grayscale value and the minimum pixel grayscale value in the user payment QR code image, and use the ratio of the difference between the two and the grayscale level as the contrast of the user payment QR code image.

[0034] The average pixel grayscale value of the user payment QR code image is calculated and used as the exposure of the user payment QR code image.

[0035] It should also be noted that the calculation process of the image quality coefficient of the user payment QR code is as follows: extract the reasonable clarity threshold of the high-quality state of the QR code scanned image stored in the WEB cloud , reasonable contrast interval and reasonable exposure interval, extract the upper and lower limits of the reasonable contrast interval for average calculation, and obtain the reasonable reference contrast , and the absolute difference between the reasonable reference contrast and the upper limit of the reasonable contrast range is used as the reasonable deviation contrast threshold Similarly, obtain a reasonable reference contrast based on the reasonable exposure range and reasonable deviation contrast threshold , according to the formula Get the image quality coefficient of the user payment QR code, is a natural constant.

[0036] Binarize the user payment QR code image, use the preset pixel gray value as the connectivity search index, perform connectivity domain search on the pixels in the user payment QR code image, obtain the connectivity patterns of the user payment QR code, compare them with the QR code pattern feature set stored in the WEB cloud, and use the connectivity patterns in the user payment QR code that do not belong to the QR code pattern feature set as occluding foreign objects to obtain the area of ​​each occluding foreign object in the user payment QR code. and its regional location, including is the number of each obstructing foreign body, , set the data recognition influence weight of each occluding foreign object , analyze the foreign body occlusion coefficient of the user payment QR code .

[0037] It should be noted that the specific judgment process of whether the connected pattern in the user payment QR code belongs to the QR code pattern feature set is: import the connected pattern in the user payment QR code and the QR code pattern feature set into the OpenCV software, outline the shape outline of the connected pattern in the user payment QR code, scale it to the same scale with the shape outline of each feature pattern in the QR code pattern feature set for comparison, and use the matchShapes function of the OpenCV software to obtain the shape outline similarity between the connected pattern in the user payment QR code and each feature pattern in the QR code pattern feature set, and select the maximum value. If it is greater than the preset shape outline similarity threshold, it means that the connected pattern in the user payment QR code belongs to the QR code pattern feature set; otherwise, it means that the connected pattern in the user payment QR code does not belong to the QR code pattern feature set.

[0038] It should also be noted that the analysis formula for the foreign body occlusion coefficient of the above-mentioned user payment QR code is: ,in The total area of ​​the QR code image for the preset user payment.

[0039] Take the connected patterns in the QR code pattern feature set in the user payment QR code as the components, retrieve the corresponding patterns with the maximum shape similarity between the QR code pattern feature set and the components in the user payment QR code, scale the two to the same size ratio for overlap comparison, obtain the damaged area of ​​each component in the user payment QR code and its location, set the data recognition influence weight of each component, and analyze the actual damage coefficient of the user payment QR code. .

[0040] It should be noted that the analysis method of the actual damage coefficient of the above-mentioned user payment QR code is consistent with the analysis method of the foreign body occlusion coefficient of the user payment QR code.

[0041] It should also be noted that the data recognition influence weights of the above-mentioned components and the data recognition influence weights of the obstructing foreign objects are set according to the user payment QR code area where they are located. The specific setting standards are: the QR code includes a positioning area, a data area, a fault-tolerant area, a verification area, a format information area and other areas. The data area stores the actual data information and has the highest influence weight on data recognition. The positioning area helps the decoder identify the position and direction of the QR code, which is a prerequisite for the decoder to correctly read the QR code. The influence weight on data recognition is arranged after the data area, and the fault-tolerant area distributes the entire QR code. By providing additional information to help recover the original data in the event of partial damage, its impact weight on data recognition is arranged after the positioning area. The format information area stores information about the encoding method and error correction level, which determines how to decode the data and how to handle errors. Its impact weight on data recognition may be the same as that of the fault-tolerant area. The check area and other areas have relatively low impact weights on data recognition, because the corresponding data recognition impact weights of the positioning area, data area, fault-tolerant area, check area, format information area and other areas can be set as: 0.2, 0.3, 0.15, 0.1, 0.15, 0.1.

[0042] By formula Get the recognition challenge of the user's payment QR code.

[0043] Specifically, the retrieval of whether the account corresponding to the identifier of the user payment QR code is a valid account includes: obtaining the account basic information perfection level, account authorization security level and account activation logic output value of the account corresponding to the identifier of the user payment QR code, and detecting whether the account corresponding to the identifier of the user payment QR code has authenticity, authorization and activation. If all of them exist, it means that the account corresponding to the identifier of the user payment QR code is a valid account, otherwise it means that the account corresponding to the identifier of the user payment QR code is an invalid account.

[0044] It should be noted that the basic account information completion level, account authorization security level and account activation logic output value of the account corresponding to the above-mentioned user payment QR code identifier are obtained by passing the user payment QR code identifier to the API interface of the target public transportation payment terminal to query the account record log corresponding to the user payment QR code identifier.

[0045] It should also be noted that the specific detection process for whether the account corresponding to the identifier of the above-mentioned user payment QR code is authentic, authorized and activated is: extract the account basic information perfection level compliance threshold, account authorization security level compliance threshold and account activation lighting status logical output value of the valid account corresponding to the WEB cloud storage; if the account basic information perfection level of the account corresponding to the identifier of the user payment QR code is greater than or equal to the account basic information perfection level compliance threshold of the valid account, it means that the account corresponding to the identifier of the user payment QR code is authentic; if the account authorization security level of the account corresponding to the identifier of the user payment QR code is greater than or equal to the account authorization security level compliance threshold of the valid account, it means that the account corresponding to the identifier of the user payment QR code is authorized; if the account activation logic output value of the account corresponding to the identifier of the user payment QR code is the same as the logic output value of the account activation lighting status corresponding to the valid account, it means that the account corresponding to the identifier of the user payment QR code is activated.

[0046] The embodiment of the present invention successively realizes efficient and accurate content verification of user payment QR codes through content fault tolerance verification and content payability verification of user payment QR codes, making up for the defect of prior art that ignores the fault tolerance mechanism of QR codes themselves, not only avoiding wasting time and resources in unnecessary parsing process, but also directly and effectively verifying the integrity and validity of payment information, ensuring the verification process is efficient and orderly.

[0047] Specifically, the time validity verification of the user payment QR code includes: comparing the expiration time point of the user payment QR code obtained by decoding the QR code decoding library with the current time point; if the current time point is before the expiration time point, it is determined that the user payment QR code time validity verification has passed; if the current time point is after the expiration time point, it is determined that the user payment QR code time validity verification has failed.

[0048] Specifically, the security verification of the user payment QR code includes: collecting the incoming network traffic and the outgoing network traffic of the target public transportation payment terminal at the current time point, entering the network traffic security interval, the ingoing and outgoing network traffic security interval and the ingoing and outgoing difference network traffic security interval according to the urban public transportation payment terminal specifications stored in the WEB cloud, and analyzing the payment environment security factor of the user payment QR code.

[0049] It should be noted that the inbound and outbound network traffic of the target bus payment terminal at the current time point is extracted from the real-time monitoring of the network interface traffic by the performance monitor provided by the internal operating system of the target bus payment terminal.

[0050] Taking the current time point as the boundary point, trace back the preset time length to plan the current monitoring period, retrieve the number of times the target bus payment terminal receives the user payment QR code during the current monitoring period, if it exceeds the preset permitted number threshold, set the payment behavior security factor of the user payment QR code to 0, otherwise set the payment behavior security factor of the user payment QR code to 1.

[0051] Multiply the payment environment security factor and the payment behavior security factor to obtain the comprehensive payment security factor of the user's payment QR code. If it is greater than or equal to the preset reasonable threshold of the comprehensive payment security factor, the user's payment QR code security verification is determined to have passed; otherwise, the user's payment QR code security verification is determined to have failed.

[0052] Specifically, the analysis process of the payment environment safety factor of the user payment QR code includes: obtaining the deviation value of the incoming network flow, the incoming and outgoing network flow, the incoming and outgoing difference network flow and the corresponding safety interval of the target bus payment terminal at the current time point and accumulating them, and recording the accumulated value as , according to the formula Get the payment environment security factor of the user's payment QR code, where The default reference network traffic.

[0053] It should be noted that the process of obtaining the deviation values ​​of the incoming network traffic, in-and-out network traffic, in-and-out difference network traffic and the corresponding safety interval of the target bus payment terminal at the current time point is as follows: if the incoming network traffic of the target bus payment terminal at the current time point is within the safety interval of the standard incoming network traffic of the urban bus payment terminal, then the deviation value of the incoming network traffic of the target bus payment terminal at the current time point corresponding to its safety interval is set to 0; conversely, if the incoming network traffic of the target bus payment terminal at the current time point is outside the safety interval of the standard incoming network traffic of the urban bus payment terminal, then according to the difference between the incoming network traffic of the target bus payment terminal at the current time point and the standard incoming network traffic of the urban bus payment terminal The comparison relationship between the upper limit value and the lower limit value of the safety interval is used to determine the comparison association value of the incoming network traffic of the target bus payment terminal at the current time point. That is, if the incoming network traffic of the target bus payment terminal at the current time point is less than the lower limit value of the safety interval of the urban bus payment terminal standard incoming network traffic, then the lower limit value is the comparison association value; if the incoming network traffic of the target bus payment terminal at the current time point is greater than the upper limit value of the safety interval of the urban bus payment terminal standard incoming network traffic, then the upper limit value is the comparison association value; the absolute difference between the incoming network traffic of the target bus payment terminal at the current time point and its comparison association value is used as the deviation value between the incoming network traffic of the target bus payment terminal at the current time point and the corresponding safety interval.

[0054] Similarly, the deviation values ​​of the inbound and outbound network traffic, inbound and outbound difference network traffic and the corresponding safety interval of the target bus payment terminal at the current time point are obtained.

[0055] The embodiment of the present invention combines the payment environment security factor and payment behavior security factor of the user payment QR code to achieve in-depth security verification of the user payment QR code, help to more accurately identify potential payment risks, avoid misjudgment and interference with normal payment behavior, help to improve the user's payment experience, and reduce payment delays and inconveniences caused by security verification.

[0056] S3. Transaction amount deduction: deduct the target bus fare from the account corresponding to the user’s payment QR code.

[0057] S4. Transaction amount verification. The transaction amount paid by the user is verified for effective deduction. If the verification is passed, the user payment transaction is confirmed to be successful and S6 is executed. Otherwise, the user payment transaction is confirmed to be failed and S5 is executed.

[0058] Specifically, the effective deduction verification of the user payment transaction amount includes: retrieving the transaction amount and transaction time point of the most recent transaction of the account corresponding to the user payment QR code according to the transaction record of the target bus POS terminal; if the most recent transaction amount is the same as the target bus fare and the deviation time between the transaction time point and the current time point is within a preset reasonable transaction time range, then it is determined that the effective deduction verification of the user payment transaction amount has passed; otherwise, it is determined that the effective deduction verification of the user payment transaction amount has failed.

[0059] S5. Transaction failure feedback: The payment transaction failure is announced to the user through the audio output device of the target bus payment terminal.

[0060] S6. Transaction success feedback: The audio output device of the target bus payment terminal announces the success of the payment transaction to the user.

[0061] The embodiment of the present invention conducts highly integrated verification and analysis of the format, content, timeliness and security of the user payment QR code, which is different from the simple combination of verification levels in the prior art, and builds a more complete and comprehensive public transportation payment recognition system to ensure that the verification process of the user payment QR code is not missed, improves the accuracy and reliability of the verification, and further improves the efficiency of public transportation operations.

[0062] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.

Claims

1. A method for identifying and analyzing bus payment based on artificial intelligence and machine vision, characterized in that: The method includes: S1. Transaction medium capture: The user payment QR code image is captured by the camera device of the target bus payment terminal; S2. Transaction medium verification: Verify the validity of the captured user payment QR code image. The specific operation of the validity verification is to verify the format, content, time validity and security of the user payment QR code. Among them, the specific operation of the content verification is to verify the content fault tolerance and content payability of the user payment QR code. If the verification is passed, execute S3. Otherwise, confirm that the user payment transaction fails and execute S5. S3. Transaction amount deduction: deduct the target bus fare from the account corresponding to the user's payment QR code; S4. Transaction amount verification; the user payment transaction amount is effectively deducted and verified. If the verification passes, the user payment transaction is confirmed to be successful and S6 is executed. Otherwise, the user payment transaction is confirmed to fail and S5 is executed; S5. Transaction failure feedback: The audio output device of the target bus payment terminal broadcasts the payment transaction failure to the user; S6. Transaction success feedback: The audio output device of the target bus payment terminal broadcasts the success of the payment transaction to the user; Verify the content of the user payment QR code, including: use the QR code decoding library to decode the user payment QR code for error correction level, obtain the error correction level of the user payment QR code, combine the error correction levels of the QR codes stored in the WEB cloud with the preset recognition challenge tolerance threshold, and obtain the error correction level of the user payment QR code corresponding to the preset recognition challenge tolerance threshold; Evaluate the recognition challenge of the user payment QR code, and compare it with the preset recognition challenge tolerance threshold corresponding to the error correction level of the user payment QR code. If the recognition challenge of the user payment QR code is less than or equal to the preset recognition challenge tolerance threshold corresponding to its error correction level, then it is determined that the content fault tolerance verification of the user payment QR code has passed; otherwise, it is determined that the content fault tolerance verification of the user payment QR code has failed; If the content fault tolerance verification of the user payment QR code passes, the identifier of the user payment QR code obtained by decoding the QR code decoding library is further uploaded to the target bus payment terminal server to retrieve whether the account corresponding to the identifier of the user payment QR code is a valid account. If the account corresponding to the retrieved identifier of the user payment QR code is a valid account, it is determined that the content payability verification of the user payment QR code has passed, otherwise it is determined that the content payability verification of the user payment QR code has failed; When both the content fault tolerance verification and the content payability verification of the user payment QR code are passed, it is determined that the content verification of the user payment QR code has been passed; otherwise, it is determined that the content verification of the user payment QR code has not been passed; The evaluation of the recognition challenge of the user payment QR code includes: converting the extracted user payment QR code image into a grayscale image, obtaining the clarity, contrast and exposure of the user payment QR code image, and calculating the image quality coefficient of the user payment QR code. ; Binarize the user payment QR code image, use the preset pixel gray value as the connectivity search index, perform connectivity domain search on the pixels in the user payment QR code image, obtain the connectivity patterns of the user payment QR code, compare them with the QR code pattern feature set stored in the WEB cloud, and use the connectivity patterns in the user payment QR code that do not belong to the QR code pattern feature set as the occluding foreign objects, obtain the area of ​​the occluding foreign objects in the user payment QR code and their regional location, set the data recognition influence weight of each occluding foreign object, and analyze the foreign object occlusion coefficient of the user payment QR code. ; Take the connected patterns in the QR code pattern feature set in the user payment QR code as the components, retrieve the corresponding patterns with the maximum shape similarity between the QR code pattern feature set and the components in the user payment QR code, scale the two to the same size ratio for overlap comparison, obtain the damaged area of ​​each component in the user payment QR code and its location, set the data recognition influence weight of each component, and analyze the actual damage coefficient of the user payment QR code. ; By formula Get the recognition challenge of the user's payment QR code; The method of retrieving whether the account corresponding to the identifier of the user payment QR code is a valid account includes: obtaining the account basic information perfection level, account authorization security level and account activation logic output value of the account corresponding to the identifier of the user payment QR code, and detecting whether the account corresponding to the identifier of the user payment QR code has authenticity, authorization and activation. If all of them exist, it means that the account corresponding to the identifier of the user payment QR code is a valid account, otherwise it means that the account corresponding to the identifier of the user payment QR code is an invalid account.

2. According to claim 1, a method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision is characterized by: The validity verification of the captured user payment QR code image includes: performing image preprocessing on the user payment QR code image, determining the boundary and tilt angle of the user payment QR code according to the QR code positioning identifier, thereby extracting the user payment QR code and performing direction correction, and then performing format verification, content verification, time verification and security verification on the user payment QR code respectively. If the format verification, content verification, time verification and security verification are all passed, it is determined that the user payment QR code image validity verification has passed, otherwise it is determined that the user payment QR code image validity verification has failed.

3. The method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision according to claim 2 is characterized by: The format verification of the user payment QR code includes: decoding the user payment QR code using a QR code decoding library to obtain a version number, module size and encoding mode of the user payment QR code; According to the supported version number sequence, supported module size range and supported encoding mode sequence of the target public transportation payment terminal collection code stored in the WEB cloud, it is determined whether the version number, module size and encoding mode of the user payment QR code are supported by the target public transportation payment terminal. If it is determined that the version number, module size and encoding mode of the user payment QR code are all supported by the target public transportation payment terminal, then it is determined that the format verification of the user payment QR code has passed; otherwise, it is determined that the format verification of the user payment QR code has failed.

4. The method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision according to claim 3 is characterized by: The time validity verification of the user payment QR code includes: comparing the expiration time point of the user payment QR code obtained by decoding the QR code decoding library with the current time point; if the current time point is before the expiration time point, it is determined that the user payment QR code time validity verification has passed; if the current time point is after the expiration time point, it is determined that the user payment QR code time validity verification has not passed.

5. The method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision according to claim 3 is characterized by: The security verification of the user payment QR code includes: collecting the incoming network traffic and the outgoing network traffic of the target public transportation payment terminal at the current time point, entering the network traffic security interval, the ingoing and outgoing network traffic security interval and the ingoing and outgoing difference network traffic security interval according to the urban public transportation payment terminal specification stored in the WEB cloud, and analyzing the payment environment security factor of the user payment QR code; Taking the current time point as the boundary point, trace back the preset time length to plan the current monitoring period, retrieve the number of times the target bus payment terminal receives the user payment QR code during the current monitoring period, if it exceeds the preset permitted number threshold, set the payment behavior security factor of the user payment QR code to 0, otherwise set the payment behavior security factor of the user payment QR code to 1; Multiply the payment environment security factor and the payment behavior security factor to obtain the comprehensive payment security factor of the user's payment QR code. If it is greater than or equal to the preset reasonable threshold of the comprehensive payment security factor, the user's payment QR code security verification is determined to have passed; otherwise, the user's payment QR code security verification is determined to have failed.

6. The method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision according to claim 5 is characterized by: The analysis process of the payment environment safety factor of the user payment QR code includes: obtaining the deviation value of the incoming network flow, the incoming and outgoing network flow, the incoming and outgoing difference network flow and the corresponding safety interval of the target bus payment terminal at the current time point and accumulating them, and recording the accumulated value as , according to the formula Get the payment environment security factor of the user's payment QR code, where To preset reference network traffic, is a natural constant.

7. The method for identifying and analyzing public transportation payment based on artificial intelligence and machine vision according to claim 1 is characterized by: The effective deduction verification of the user payment transaction amount includes: retrieving the transaction amount and transaction time point of the most recent transaction of the account corresponding to the user payment QR code according to the transaction record of the target public transportation POS terminal; if the most recent transaction amount is the same as the target public transportation fare and the deviation time between the transaction time point and the current time point is within a preset reasonable transaction time range, then it is determined that the effective deduction verification of the user payment transaction amount has passed; otherwise, it is determined that the effective deduction verification of the user payment transaction amount has failed.