Public transportation payment management method, device, equipment and medium
Automatically identify unpaid passengers and determine payment information through facial recognition technology, solving the problem of low efficiency and accuracy of existing bus payment management, realizing the timely detection and handling of unpaid and insufficient balance, and improving the efficiency of payment management and accuracy.
Patent Information
- Application Number
- CN202411221505.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-02
AI Technical Summary
The existing bus payment management methods rely on manual operations, with low efficiency and accuracy, making it difficult to timely detect passengers' failures or insufficient balances, resulting in losses and liquidation difficulties in the transportation department.
Face recognition technology is used to obtain passenger face data, automatically identify unpaid users, and determine payment methods and amounts based on vehicle information and discount conditions, generate early warning information, and reduce unpaid and insufficient balance.
It improves the efficiency and accuracy of bus payment management, reduces manual intervention, promptly detects and deals with unpaid and insufficient balances, and reduces losses.
Smart Images

Figure CN118761767B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of public transportation payment, and in particular to a public transportation payment management method, device, equipment and medium. Background Art
[0002] With the acceleration of urbanization, traffic congestion has become an increasingly prominent problem. Buses, with their large capacity, low cost, environmental protection and energy saving, have become a powerful tool to ease urban traffic pressure. Buses have become an indispensable means of transportation in people's daily lives.
[0003] During the operation of buses, due to factors such as large passenger flow and uncertain personnel, passengers often forget to pay or payment fails due to various factors. If the driver cannot discover these situations in time, it will not only cause losses to the transportation department, but also make subsequent settlement work more difficult. Therefore, it is necessary to strengthen the management of passenger payments.
[0004] Currently, passenger payment management is usually done manually. However, due to factors such as staff energy limitations, this method has relatively low efficiency and accuracy. Summary of the invention
[0005] In order to improve the efficiency and accuracy of payment management, the present application provides a public transportation payment management method, device, equipment and medium.
[0006] In the first aspect, the present application provides a public transportation payment management method, which adopts the following technical solution:
[0007] A public transportation payment management method, comprising:
[0008] Acquire information of a first user and a vehicle, where the first user is a paying user;
[0009] Acquiring facial data based on the vehicle information;
[0010] Recognize the facial data to obtain a second user, where the second user is a passenger in the current vehicle;
[0011] Compare the first user with the second user to determine first abnormal information;
[0012] Determine payment information based on the second user and the vehicle information, the payment information including a payment method and a payment amount, the payment method is used to represent a charging method, and the payment amount is determined based on the preferential situation;
[0013] Obtaining account information of a second user;
[0014] determining an abnormal situation based on the payment information, the account information, and the first abnormal information;
[0015] Generate warning information based on the abnormal situation.
[0016] By adopting the above technical solution, users who have not paid can be automatically identified through facial data and users' payment behavior, so as to obtain the first abnormal information, and the payment information can be determined according to the user's preferential conditions and vehicle information. According to the payment information and account information, it can be judged whether the user has insufficient balance, and the abnormal situation can be obtained in combination with the first abnormal information, and early warning information is generated according to the abnormal situation, which effectively reduces the possibility of users forgetting to pay and causing payment failures due to insufficient balance. There is no need for staff to perform such work, which improves the efficiency and accuracy of payment management.
[0017] Optionally, determining the payment information based on the second user and the vehicle information includes:
[0018] Determine a plurality of vehicle stations and a total distance based on the vehicle information, wherein the vehicle stations include a starting station, a terminal station, and a passing station;
[0019] Determining a payment method based on the vehicle station and the total distance;
[0020] Obtain the boarding station and historical consumption data of the second user;
[0021] Analyze the historical consumption data to obtain the user's preferential treatment;
[0022] Payment information is determined based on the boarding site, the preferential conditions, and the payment method.
[0023] Optionally, the determining of the payment method based on the vehicle station and the total distance includes:
[0024] Determining a vehicle congestion condition based on the vehicle station, wherein the vehicle congestion condition is used to characterize a road congestion condition;
[0025] If the total distance is less than the preset total distance, determining a payment method based on the vehicle congestion situation and a first preset rule;
[0026] If the entire distance is greater than or equal to the preset entire distance, calculating a first distance between two adjacent vehicle stations;
[0027] Determine a segmentation site based on the first distance and the vehicle congestion condition;
[0028] Dividing the driving route based on the segmented sites to obtain multiple segmented paths;
[0029] Acquire first pedestrian flow information based on the vehicle information, where the first pedestrian flow information is historical pedestrian flow information corresponding to the vehicle information;
[0030] Matching the first human flow information with the segmented paths to obtain human flow conditions of each segmented path;
[0031] The payment method is determined based on the traffic situation and the segmented path.
[0032] By adopting the above technical solution, different methods are used to determine the payment method according to the difference between the total distance and the preset total distance. When determining the payment method, not only the vehicle congestion situation is taken into account, but also the distance between two adjacent vehicle stations and the flow of people information are taken into account, making the payment method more reasonable.
[0033] Optionally, the vehicle congestion condition includes a congested road section, and determining a segmentation site based on the first distance and the vehicle congestion condition includes:
[0034] Sorting the first distances according to the front-to-back order of the corresponding vehicle stations to obtain a distance sorting result;
[0035] Adding a label of the latest segmentation site to the originating site;
[0036] Starting from the vehicle station having the latest segment station label, sequentially summing the first distances in the distance sorting results until the sum of the first distances is greater than or equal to a preset distance;
[0037] If the sum of the distances is equal to the preset distance, the second station corresponding to the last one of the first distances in the sum of the distances is determined as a segment station, and the second station is the subsequent vehicle station corresponding to the first distance;
[0038] If the sum of the distances is greater than the preset distance, determining a segmented station based on the vehicle congestion condition, the distance sorting result and the first distance;
[0039] Transferring the label of the latest segmentation site to the segmentation site;
[0040] clearing the distance and the distance to zero;
[0041] The step of sequentially summing the first distances in the distance sorting results starting from the vehicle station having the latest segmented station label is cyclically performed until the sum of the first distances is greater than or equal to a preset distance, and until all the first distances have been summed up, thereby obtaining a plurality of segmented stations.
[0042] Optionally, the determining of segmented sites based on the vehicle congestion condition, the distance sorting result and the first distance includes:
[0043] Determine the second site corresponding to the last of the first distances in the sum of the distances as the first segment site;
[0044] Determine the road section between the first segmentation site and the previous segmentation site as the first segmentation road section, wherein the previous segmentation site is the segmentation site adjacent to the first segmentation site and before the first segmentation site;
[0045] Determining whether there is a congested section in the first segmented road section based on the vehicle congestion situation;
[0046] If the congested section exists in the first segmented section, the first station corresponding to the last of the first distances in the sum of the distances is determined as the segmented station, and the first station is the preceding vehicle station corresponding to the first distance;
[0047] If the congested road section does not exist in the first segmented road section, the first segmented station is determined as the segmented station.
[0048] By adopting the above technical solution, when the distance is greater than the preset distance, the first segmented site is first determined to obtain the first segmented path, and the final segmented site is obtained based on whether there is a congested section in the first segmented path. When determining the segmented site, not only the distance is taken into account, but also the congested section, which improves the rationality of the segmented site.
[0049] Optionally, analyzing the historical consumption data to obtain user discounts includes:
[0050] Analyze the historical consumption data to obtain consumption frequency and consumption amount, wherein the consumption frequency is the number of consumption times within a period preset by the user, and the consumption amount is the consumption amount within the period preset by the user;
[0051] If the consumption frequency is greater than a preset consumption frequency and / or the consumption amount is greater than a preset consumption amount, determining first preferential information based on the consumption frequency, the consumption amount and preferential rules;
[0052] Determine the vehicle information consumed by the user on a daily basis based on the historical consumption data;
[0053] Determine the vehicle information consumed by the user daily as a set, and obtain multiple first sets;
[0054] Combining the vehicle information corresponding to the first set based on an exhaustive method to obtain a plurality of first combinations, each of which includes at least two pieces of vehicle information;
[0055] Analyze the first combination to determine second preferential information;
[0056] Determine the user's daily travel information based on the historical consumption data;
[0057] Determine the number of rides and the fare amount of the user on the day based on the ride information on the day;
[0058] Determine third preferential information based on the number of rides on the day and the amount of rides on the day;
[0059] The preferential situation is determined based on the first preferential information, the second preferential information and the third preferential information.
[0060] By adopting the above technical solution, when determining the user's preferential situation, not only the consumption frequency and consumption amount within the preset period are taken into consideration, but also the setting of preferential treatment according to the combination and the setting of preferential treatment according to the riding situation on the day are taken into consideration. By setting up triple preferential treatment, the probability of users traveling by bus is increased.
[0061] Optionally, analyzing the first combination to determine the second preferential information includes:
[0062] Counting the number of each of the first combinations to obtain a plurality of first numbers, each of the first numbers corresponding to one of the first combinations;
[0063] Determine a proportion of each of the first combinations based on the first quantity and the total quantity of the first combinations;
[0064] If the proportion is greater than a preset proportion and / or the first quantity is greater than a preset quantity, the first combination is determined as a preferential combination;
[0065] The second preferential information is determined based on the number of the vehicle information in the preferential combination, where the second preferential information is used to represent preferential information for riding according to the preferential combination.
[0066] In the second aspect, the present application provides a public transportation payment management device, which adopts the following technical solution:
[0067] A public transportation payment management device, comprising:
[0068] A first acquisition module, used to acquire information of a first user and a vehicle, wherein the first user is a paying user;
[0069] A second acquisition module, used to acquire face data based on the vehicle information;
[0070] A face recognition module, used to recognize the face data to obtain a second user, where the second user is a passenger in the current vehicle;
[0071] A user comparison module, configured to compare the first user with the second user to determine first abnormal information;
[0072] an information determination module, configured to determine payment information based on the second user and the vehicle information, wherein the payment information includes a payment method and a payment amount, wherein the payment method is used to represent a charging method, and the payment amount is determined based on a preferential situation;
[0073] A third acquisition module is used to obtain the account information of the second user;
[0074] an abnormality determination module, configured to determine an abnormality based on the payment information, the account information and the first abnormality information;
[0075] The warning generation module is used to generate warning information based on the abnormal situation.
[0076] By adopting the above technical solution, users who have not paid can be automatically identified through facial data and users' payment behavior, so as to obtain the first abnormal information, and the payment information can be determined according to the user's preferential conditions and vehicle information. According to the payment information and account information, it can be judged whether the user has insufficient balance, and the abnormal situation can be obtained in combination with the first abnormal information, and early warning information is generated according to the abnormal situation, which effectively reduces the possibility of users forgetting to pay and causing payment failures due to insufficient balance. There is no need for staff to perform such work, which improves the efficiency and accuracy of payment management.
[0077] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0078] An electronic device comprises a processor, wherein the processor is coupled to a memory;
[0079] The memory stores a computer program that can be loaded by the processor and execute the public transportation payment management method described in any one of the first aspects.
[0080] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0081] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute the public transportation payment management method described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1It is a flow chart of a public transportation payment management method provided in an embodiment of the present application.
[0083] Figure 2 It is a structural block diagram of a public transportation payment management device provided in an embodiment of the present application.
[0084] Figure 3 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] The present application is further described in detail below in conjunction with the accompanying drawings.
[0086] The embodiment of the present application provides a method for managing public transportation payment, which can be executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a desktop computer, etc., but is not limited thereto.
[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0088] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0089] like Figure 1 As shown, a method for managing public transportation payment is provided, and the main process of the method is described as follows (steps S101 to S108):
[0090] Step S101: Obtain first user and vehicle information.
[0091] Among them, the first user is a paying user.
[0092] When passengers take the bus, they need to swipe the card on the card swiping device or show the QR code to the code scanning device to make the payment operation after getting on the bus. The passenger who has made the payment operation is identified as the first user, and the card swiping device and the code scanning device are collectively referred to as the payment device, that is, the first user is obtained from the payment device, and the vehicle information, that is, the corresponding information of the bus, is obtained from the vehicle management office or relevant staff.
[0093] Step S102: Acquire facial data based on vehicle information.
[0094] When managing payments, the vehicle is managed as a unit. The monitoring device corresponding to the vehicle is obtained from the database based on the vehicle information, and the vehicle's facial data is obtained from the vehicle's monitoring device. The facial data is the passenger's facial image obtained when getting on the vehicle.
[0095] Step S103: Recognize the face data to obtain the second user.
[0096] The facial data is identified through image recognition technology to obtain the passenger in the current vehicle, that is, the second user.
[0097] Step S104: Compare the first user with the second user to determine first abnormal information.
[0098] The first abnormal information is used to characterize that the passenger did not perform the payment operation as required after getting on the vehicle. The first user is compared to see if they are the same as the second user. If the number of first users is less than the number of second users, there is an abnormality. The passenger who did not perform the payment operation as required is determined as an abnormal passenger, that is, the second user who is not the first user is determined as an abnormal passenger. The first abnormal information includes the abnormal passenger and the vehicle information corresponding to the abnormal passenger.
[0099] Step S105: Determine payment information based on the second user and vehicle information.
[0100] Payment information includes payment method and payment amount. The payment method is used to represent the billing method. The payment methods include fixed amount payment and segmented payment. The payment amount is determined based on the preferential conditions. Different users correspond to different preferential conditions.
[0101] Specifically, payment information is determined based on the second user and vehicle information, including: determining multiple vehicle stations and the total distance based on the vehicle information, the vehicle stations including the starting station, the terminal station and the intermediate station; determining the payment method based on the vehicle stations and the total distance; obtaining the second user's boarding station and historical consumption data; analyzing the historical consumption data to obtain the user's preferential conditions; determining payment information based on the boarding station, preferential conditions and payment method.
[0102] In order to facilitate the payment management of vehicles, a unified standard is adopted to determine the payment method for each vehicle. The multiple vehicle sites (stops) and total distance corresponding to the vehicle are found from the vehicle information, and the payment method of the vehicle is determined based on the vehicle sites and total distance.
[0103] The second user's boarding point is obtained from the facial data or the payment device, the second user's historical consumption data is obtained from the database, and the historical consumption data is analyzed to determine the preferential conditions for each second user. It is worth noting that the preferential conditions are not fixed, and each user may have different preferential conditions. The user's payment amount can be calculated based on the user's boarding point and preferential conditions, and the payment amount and payment method are determined as payment information.
[0104] Specifically, the payment method is determined based on the vehicle station and the total distance, including: determining the vehicle congestion situation based on the vehicle station, the vehicle congestion situation is used to characterize the congestion situation of the road; if the total distance is less than the preset total distance, determining the payment method based on the vehicle congestion situation and the first preset rule; if the total distance is greater than or equal to the preset total distance, calculating the first distance between two adjacent vehicle stations; determining the segmented stations based on the first distance and the vehicle congestion situation; dividing the driving route based on the segmented stations to obtain multiple segmented paths; obtaining the first passenger flow information based on the vehicle information, the first passenger flow information is the historical passenger flow information corresponding to the vehicle information; matching the first passenger flow information with the segmented path to obtain the passenger flow situation of each segmented path; determining the payment method based on the passenger flow situation and the segmented path.
[0105] In this embodiment, it is necessary to determine the payment method according to the vehicle congestion situation on the driving route, and obtain the vehicle congestion situation on the route from the traffic management department according to the vehicle stations along the way. The vehicle congestion situation is the congestion situation obtained by analyzing the road conditions within a preset time period. The vehicle congestion situation includes congested sections. If the total distance of the vehicle during driving is less than the preset total distance, it is determined whether there is overlap between the vehicle driving route and the congested section. If there is no overlap, the payment method is a fixed amount payment (the specific amount is pre-set according to the actual situation, and no specific restrictions are made here). If there is overlap, the number of overlapping sections is counted and the total length of the congested sections on the driving route is calculated. The first preset rule is the correspondence between the number of overlapping sections, the total length of the congested sections on the driving route and the payment method. Therefore, according to the first preset rule, the payment method of the vehicle (fixed amount payment or segmented payment) can be obtained, wherein the preset total distance and the first preset rule are pre-set according to the actual situation, and no specific restrictions are made here.
[0106] If the total distance is greater than or equal to the preset total distance, the payment method is segment payment, which includes the billing amount for each segment path.
[0107] If the payment method is segmented payment (the total distance can be greater than or equal to the preset total distance, or less than the preset total distance), calculate the distance between every two adjacent vehicle stations, that is, the first distance, analyze the first distance and vehicle congestion, so as to determine the segmented stations, divide the driving route according to the segmented stations, and obtain multiple segmented paths.
[0108] The first passenger flow information of the current vehicle is obtained from the database, that is, the historical passenger flow information corresponding to the current vehicle information. Since the passenger flow of each segmented path is different, the first passenger flow information is matched with the segmented path to obtain the passenger flow situation of each segmented path. Segmented paths with different passenger flows correspond to different billing amounts. The second preset rule is obtained from the database. The second preset rule is the correspondence between the passenger flow situation and the billing amount of the segmented path. Therefore, the billing amount of each segmented path can be obtained, thereby completing the determination of the payment method.
[0109] Specifically, the segmentation station is determined based on the first distance and the vehicle congestion situation, including: sorting the first distance according to the front and back order of the corresponding vehicle stations to obtain a distance sorting result; adding the label of the latest segmentation station to the starting station; starting from the vehicle station with the latest segmentation station label, sequentially summing the first distances in the distance sorting result until the distance sum of the first distances is greater than or equal to the preset distance; if the distance sum is equal to the preset distance, the second station corresponding to the last first distance in the distance sum is determined as the segmentation station, and the second station is the subsequent vehicle station corresponding to the first distance; if the distance sum is greater than the preset distance, the segmentation station is determined based on the vehicle congestion situation, the distance sorting result and the first distance; transferring the label of the latest segmentation station to the segmentation station; clearing the distance sum; cyclically executing the steps of starting from the vehicle station with the latest segmentation station label, sequentially summing the first distances in the distance sorting result until the distance sum of the first distances is greater than or equal to the preset distance, until all the first distances have been summed up, thereby obtaining multiple segmentation stations.
[0110] In this embodiment, when determining the segmented stations, not only the distance between the vehicle stations is taken into account, but also the vehicle congestion situation is taken into account. Each first distance corresponds to two vehicle stations, namely the first station and the second station. The first station is the front vehicle station corresponding to the first distance, and the second station is the rear vehicle station corresponding to the first distance. The first distances are sorted according to the front and back order of the corresponding vehicle stations (only according to the first station or only according to the second station) to obtain the distance sorting result. The process of determining the segmented station of each vehicle is a cyclic process, and each cycle is calculated starting from the vehicle station with the latest segmented station label.
[0111] Before the first cycle, the label of the latest segment site is added to the originating station, and before the end of each subsequent cycle, the label of the latest segment site is transferred to the segment site obtained in this cycle.
[0112] Starting from the vehicle station with the latest segmented station label, the first distances in the distance sorting results are summed up in sequence until the sum of the first distances is greater than or equal to the preset distance. Since the sum of the distances is not always equal to the preset distance, the sum of the distances may be greater than the preset distance, where the preset distance is not specifically limited here.
[0113] If the distance sum is equal to the preset distance, the second station corresponding to the last first distance in the distance sum is determined as the segmented station.
[0114] If the sum of the distances is greater than the preset distance, the segmentation site is determined by analyzing the vehicle congestion situation, the distance sorting result and the first distance.
[0115] The label of the latest segmented site is transferred to the segmented site obtained in this round of loop, and the distance sum is cleared to zero, thereby ending this round of loop, and continuing to perform the above steps for the next round of loop until all first distances have been summed up to obtain multiple segmented sites.
[0116] Specifically, the segmentation site is determined based on the vehicle congestion situation, the distance sorting result and the first distance, including: determining the second site corresponding to the last first distance in the distance sum as the first segmentation site; determining the section between the first segmentation site and the previous segmentation site as the first segmentation section, and the previous segmentation site is a segmentation site adjacent to the first segmentation site and before the first segmentation site; judging whether there is a congested section in the first segmentation section based on the vehicle congestion situation; if there is a congested section in the first segmentation section, determining the first site corresponding to the last first distance in the distance sum as the segmentation site, and the first site is the previous vehicle site corresponding to the first distance; if there is no congested section in the first segmentation section, determining the first segmentation site as the segmentation site.
[0117] In this embodiment, if the distance sum is greater than the preset distance, the last first distance in the distance sum is determined as the second distance, the second distance being the first distance last added in the distance sum, the second station corresponding to the second distance is determined as the first segmentation station, the section between the first segmentation station and the previous segmentation station is determined as the first segmentation section, the previous segmentation station is the segmentation station obtained in the previous cycle, that is, the previous segmentation station is the segmentation station adjacent to the first segmentation station and before the first segmentation station, and it is determined whether there is a congested section in the first segmentation section, that is, whether the first segmentation section overlaps with the congested section, if there is no congested section in the first segmentation section, the first segmentation station is determined as the segmentation station obtained in this cycle; if there is a congested section in the first segmentation section, the first station corresponding to the second distance is determined as the segmentation station, that is, the segmentation station is the vehicle station before the first segmentation station in the vehicle driving route.
[0118] Specifically, historical consumption data is analyzed to obtain user discount conditions, including: analyzing historical consumption data to obtain consumption frequency and consumption amount, where the consumption frequency is the number of times the user consumes within a preset period, and the consumption amount is the amount of consumption within the preset period; if the consumption frequency is greater than the preset consumption frequency and / or the consumption amount is greater than the preset consumption amount, then determining first discount information based on the consumption frequency, consumption amount and discount rules; determining vehicle information consumed daily by the user based on historical consumption data; determining the vehicle information consumed daily by the user as a set to obtain multiple first sets; combining the vehicle information corresponding to the first set based on an exhaustive method to obtain multiple first combinations, each first combination including at least two vehicle information; analyzing the first combination to determine second discount information; determining the user's daily ride information based on historical consumption data; determining the number of rides and the daily ride amount of the user based on the daily ride information; determining third discount information based on the number of rides and the daily ride amount; determining discount conditions based on the first discount information, the second discount information and the third discount information.
[0119] In this embodiment, the historical consumption data within a preset period is statistically calculated to obtain the consumption frequency (i.e., the number of rides) and the consumption amount (the consumption amount is the total consumption amount within the preset period) within the preset period. If the consumption frequency is greater than the preset consumption frequency and / or the consumption amount is greater than the preset consumption amount, the preferential rules are obtained from the database. The preferential rules are the correspondence between the consumption frequency, the consumption amount and the first preferential information. Therefore, the first preferential information can be determined based on the consumption frequency, the consumption amount and the preferential rules. The first preferential information can be reflected in the form of a discount or in the form of a reduction in a fixed amount, which is not specifically limited here.
[0120] The vehicle information consumed daily by the user is found from the historical consumption data, and the vehicle information consumed daily by the user is determined as a set to obtain multiple first sets, each of which corresponds to a date. For each first set, all the vehicle information included in it is combined based on the exhaustive method to obtain multiple first combinations, each of which includes at least two vehicle information. For example, the first set includes vehicle 1, vehicle 2 and vehicle 3, then the first set corresponds to four first combinations, namely, first combination A (vehicle 1, vehicle 2), first combination B (vehicle 1, vehicle 3), first combination C (vehicle 2, vehicle 3) and first combination D (vehicle 1, vehicle 2, vehicle 3). By analyzing the first combinations, the second discount information can be obtained. Since each first combination includes at least two vehicle information, that is, only when the number of vehicle information in the first set is greater than or equal to 2, the corresponding first combination exists.
[0121] The user's daily ride information is searched from the historical consumption data, and the daily ride information is statistically calculated to obtain the number of rides and the amount of rides on the day, and the second discount rule is obtained from the database. The second discount rule is the correspondence between the number of rides on the day, the amount of rides on the day, and the third discount information. Therefore, the third discount information can be determined through the number of rides on the day and the amount of rides on the day, and the first discount information, the second discount information and the third discount information are superimposed to obtain the user's discount situation.
[0122] Specifically, the first combination is analyzed to determine the second preferential information, including: counting the number of each first combination to obtain multiple first numbers, each first number corresponding to a first combination; determining the proportion of each first combination based on the first number and the total number of the first combinations; if the proportion is greater than a preset proportion and / or the first number is greater than a preset number, the first combination is determined as a preferential combination; based on the number of vehicle information in the preferential combination, the second preferential information is determined, and the second preferential information is used to characterize the preferential information for riding according to the preferential combination.
[0123] In this embodiment, there are multiple first combinations, and each first combination also exists in multiple. The number of each first combination is counted to obtain multiple first numbers, and the total number of the first combinations is counted. The first number is divided by the total number of the first combinations to obtain the proportion of each first combination. If the proportion is greater than the preset proportion and / or the first number is greater than the preset number, the first combination is determined as a preferential combination, wherein the preset proportion and the preset number are not specifically limited here. The preferential degree of each preferential combination is also different, and there is a corresponding relationship between the preferential degree and the number of vehicle information in the preferential combination. The third preferential rule is obtained from the database. The third preferential rule is the corresponding relationship between the number of vehicle information in the preferential combination and the second preferential information. Therefore, the second preferential information can be determined by the number of vehicle information in the preferential combination. The second preferential information is used to represent the preferential information for riding according to the preferential combination, that is, when a passenger rides all vehicles in a preferential combination at the same time in one day, the second preferential information can be enjoyed in the last time. For example, the preferential combination is (vehicle 4, vehicle 5). Within one day, the user first rides vehicle 4 and cannot enjoy the second preferential information at this time. The second preferential information can only be enjoyed when the user rides vehicle 5.
[0124] Step S106: Obtain the account information of the second user.
[0125] The account information of the second user is obtained from the one-card management department, that is, the account information used by the second user to pay the bus fare.
[0126] Step S107: determine the abnormal situation based on the payment information, account information and the first abnormal information.
[0127] The payment amount in the payment information is compared with the account balance in the account information. If the account balance is less than the payment amount, the payment will be unsuccessful. At this time, the second exception information will be generated. The second exception information includes the payment amount and the second user. The first exception information and the second exception information are jointly determined as an abnormal situation.
[0128] Step S108: Generate warning information based on the abnormal situation.
[0129] The abnormal situation and the corresponding second user jointly generate a warning message, which is sent to the driver, the manager and the second user at the same time, so that the second user can complete the payment operation.
[0130] Figure 2 A structural block diagram of a bus payment management device 200 provided in an embodiment of the present application.
[0131] like Figure 2 As shown, the bus payment management device 200 mainly includes:
[0132] A first acquisition module 201 is used to acquire information of a first user and a vehicle, where the first user is a paying user;
[0133] A second acquisition module 202, used to acquire face data based on vehicle information;
[0134] A face recognition module 203 is used to recognize the face data and obtain a second user, where the second user is a passenger in the current vehicle;
[0135] A user comparison module 204, configured to compare the first user with the second user to determine first abnormal information;
[0136] An information determination module 205 is used to determine payment information based on the second user and vehicle information, where the payment information includes a payment method and a payment amount, where the payment method is used to represent a charging method, and the payment amount is determined based on the preferential conditions;
[0137] The third acquisition module 206 is used to obtain the account information of the second user;
[0138] An abnormality determination module 207, used to determine an abnormality based on the payment information, the account information and the first abnormality information;
[0139] The warning generation module 208 is used to generate warning information based on abnormal situations.
[0140] As an optional implementation of this embodiment, the information determination module 205 is also specifically used to determine payment information based on the second user and vehicle information, including: determining multiple vehicle stations and the total distance based on the vehicle information, the vehicle stations including the starting station, the terminal station and the en route station; determining the payment method based on the vehicle stations and the total distance; obtaining the second user's boarding station and historical consumption data; analyzing the historical consumption data to obtain the user's preferential conditions; determining the payment information based on the boarding station, preferential conditions and payment method.
[0141] As an optional implementation of this embodiment, the information determination module 205 is also specifically used to determine the payment method based on the vehicle station and the total distance, including: determining the vehicle congestion situation based on the vehicle station, the vehicle congestion situation is used to characterize the congestion situation of the road; if the total distance is less than the preset total distance, determining the payment method based on the vehicle congestion situation and the first preset rule; if the total distance is greater than or equal to the preset total distance, calculating the first distance between two adjacent vehicle stations; determining the segmented station based on the first distance and the vehicle congestion situation; dividing the driving route based on the segmented station to obtain multiple segmented paths; obtaining the first pedestrian flow information based on the vehicle information, the first pedestrian flow information is the historical pedestrian flow information corresponding to the vehicle information; matching the first pedestrian flow information with the segmented path to obtain the pedestrian flow situation of each segmented path; determining the payment method based on the pedestrian flow situation and the segmented path.
[0142] As an optional implementation of this embodiment, the vehicle congestion situation includes a congested road section, and the information determination module 205 is also specifically used to determine the segmentation site based on the first distance and the vehicle congestion situation, including: sorting the first distance according to the front and back order of the corresponding vehicle sites to obtain a distance sorting result; adding a label of the latest segmentation site to the departure station; starting from the vehicle site with the latest segmentation site label, sequentially summing the first distances in the distance sorting result until the distance sum of the first distances is greater than or equal to the preset distance; if the distance sum is equal to the preset distance, then determining the second site corresponding to the last first distance in the distance sum as the segmentation site, and the second site is the subsequent vehicle site corresponding to the first distance; if the distance sum is greater than the preset distance, then determining the segmentation site based on the vehicle congestion situation, the distance sorting result and the first distance; transferring the label of the latest segmentation site to the segmentation site; clearing the distance sum; cyclically executing the steps of starting from the vehicle site with the latest segmentation site label, sequentially summing the first distances in the distance sorting result until the distance sum of the first distances is greater than or equal to the preset distance, until all the first distances have been summed up, thereby obtaining multiple segmentation sites.
[0143] As an optional implementation manner of this embodiment, the information determination module 205 is also specifically used to determine the segmented site based on the vehicle congestion situation, the distance sorting result and the first distance, including: determining the second site corresponding to the last first distance in the distance sum as the first segmented site; determining the section between the first segmented site and the previous segmented site as the first segmented section, and the previous segmented site is a segmented site adjacent to the first segmented site and before the first segmented site; judging whether there is a congested section in the first segmented section based on the vehicle congestion situation; if there is a congested section in the first segmented section, determining the first site corresponding to the last first distance in the distance sum as the segmented site, and the first site is the previous vehicle site corresponding to the first distance; if there is no congested section in the first segmented section, determining the first segmented site as the segmented site.
[0144] As an optional implementation mode of this embodiment, the information determination module 205 is also specifically used to analyze the historical consumption data to obtain the user's preferential treatment, including: analyzing the historical consumption data to obtain the consumption frequency and consumption amount, the consumption frequency is the number of consumption times within the user's preset period, and the consumption amount is the consumption amount within the user's preset period; if the consumption frequency is greater than the preset consumption frequency and / or the consumption amount is greater than the preset consumption amount, then determining the first preferential information based on the consumption frequency, the consumption amount and the preferential rules; determining the vehicle information consumed by the user on a daily basis based on the historical consumption data; determining the vehicle information consumed by the user on a daily basis as a set to obtain multiple first sets; combining the vehicle information corresponding to the first set based on the exhaustive method to obtain multiple first combinations, each first combination including at least two vehicle information; analyzing the first combination to determine the second preferential information; determining the user's daily ride information based on the historical consumption data; determining the number of rides and the daily ride amount of the user based on the daily ride information; determining the third preferential information based on the number of rides and the daily ride amount; determining the preferential treatment based on the first preferential information, the second preferential information and the third preferential information.
[0145] As an optional implementation of this embodiment, the information determination module 205 is also specifically used to analyze the first combination and determine the second preferential information, including: counting the number of each first combination to obtain multiple first numbers, each first number corresponding to a first combination; determining the proportion of each first combination based on the first number and the total number of first combinations; if the proportion is greater than the preset proportion and / or the first number is greater than the preset number, the first combination is determined as a preferential combination; based on the number of vehicle information in the preferential combination, the second preferential information is determined, and the second preferential information is used to characterize the preferential information for riding according to the preferential combination.
[0146] In one example, the module in any of the above devices can be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms.
[0147] For another example, when the modules in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0148] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0149] Figure 3 A structural block diagram of an electronic device 300 provided in an embodiment of the present application.
[0150] like Figure 3 As shown, the electronic device 300 includes a processor 301 and a memory 302 , and may further include an information input / information output (I / O) interface 303 , one or more of a communication component 304 , and a communication bus 305 .
[0151] The processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps of the above-mentioned bus payment management method; the memory 302 is used to store various types of data to support the operation of the electronic device 300, and these data may include, for example, instructions for any application or method used to operate on the electronic device 300, and data related to the application. The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0152] The I / O interface 303 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 304 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 304 can include: Wi-Fi components, Bluetooth components, NFC components.
[0153] The electronic device 300 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the bus payment management method given in the above embodiment.
[0154] The communication bus 305 may include a path to transmit information between the above components. The communication bus 305 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 305 may be divided into an address bus, a data bus, a control bus, etc.
[0155] The electronic device 300 may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc., and may also be servers, etc.
[0156] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned bus payment management method are implemented.
[0157] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0158] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.
[0159] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.
Claims
1. A public transportation payment management method, characterized in that: include: Acquire information of a first user and a vehicle, where the first user is a paying user; Acquiring facial data based on the vehicle information; Recognize the facial data to obtain a second user, where the second user is a passenger in the current vehicle; Compare the first user with the second user to determine first abnormal information; Determine payment information based on the second user and the vehicle information, the payment information including a payment method and a payment amount, the payment method is used to represent a charging method, and the payment amount is determined based on the preferential situation; Obtaining account information of a second user; determining an abnormal situation based on the payment information, the account information, and the first abnormal information; generating warning information based on the abnormal situation; The determining payment information based on the second user and the vehicle information includes: Determine a plurality of vehicle stations and a total distance based on the vehicle information, wherein the vehicle stations include a starting station, a terminal station, and a passing station; Determining a payment method based on the vehicle station and the total distance; Obtain the boarding station and historical consumption data of the second user; Analyze the historical consumption data to obtain the user's preferential treatment; Determining payment information based on the boarding site, the preferential conditions, and the payment method; The determining of the payment method based on the vehicle station and the total distance includes: Determining a vehicle congestion situation based on the vehicle station, wherein the vehicle congestion situation is used to characterize a road congestion situation, and the vehicle congestion situation includes a congested road section; If the total distance is less than the preset total distance, the payment method is determined based on the vehicle congestion situation and a first preset rule, wherein the first preset rule is the correspondence between the number of overlapping sections of the vehicle driving route and the congested section, the total length of the congested section on the vehicle driving route, and the payment method; If the entire distance is greater than or equal to the preset entire distance, calculating a first distance between two adjacent vehicle stations; Determine a segmentation site based on the first distance and the vehicle congestion condition; Dividing the driving route based on the segmented sites to obtain multiple segmented paths; Acquire first pedestrian flow information based on the vehicle information, where the first pedestrian flow information is historical pedestrian flow information corresponding to the vehicle information; Matching the first human flow information with the segmented paths to obtain human flow conditions of each segmented path; Determine a payment method based on the traffic volume and the segmented path; The determining of the payment method based on the vehicle congestion situation and the first preset rule includes: Determining whether the vehicle's driving route overlaps with the congested road section; If the vehicle's driving route does not overlap with the congested road section, the payment method is a fixed amount payment; if the vehicle's driving route overlaps with the congested road section, the number of overlapping road sections is counted and the total length of the congested road section on the vehicle's driving route is calculated; Obtaining a payment method for the vehicle based on the number of overlapping road sections, the total length of the congested road sections on the vehicle's driving route, and the first preset rule; The determining of the payment method based on the flow of people and the segmented path includes: Acquire a second preset rule from a database, where the second preset rule is a correspondence between the pedestrian flow situation and the segmented path billing amount; Determine the charging amount for each segmented path based on the pedestrian flow situation and the second preset rule; The analyzing of the historical consumption data to obtain the user's preferential treatment includes: Analyze the historical consumption data to obtain consumption frequency and consumption amount, wherein the consumption frequency is the number of consumption times within a period preset by the user, and the consumption amount is the consumption amount within the period preset by the user; If the consumption frequency is greater than a preset consumption frequency and / or the consumption amount is greater than a preset consumption amount, determining first preferential information based on the consumption frequency, the consumption amount and preferential rules; Determine the vehicle information consumed by the user on a daily basis based on the historical consumption data; Determine the vehicle information consumed by the user daily as a set, and obtain multiple first sets; Combining the vehicle information corresponding to the first set based on an exhaustive method to obtain a plurality of first combinations, each of which includes at least two pieces of vehicle information; Analyze the first combination to determine second preferential information; Determine the user's daily travel information based on the historical consumption data; Determine the number of rides and the fare amount of the user on the day based on the ride information on the day; Determine third preferential information based on the number of rides on the day and the amount of rides on the day; The preferential situation is determined based on the first preferential information, the second preferential information and the third preferential information.
2. The method according to claim 1, characterized in that The vehicle congestion condition includes a congested road section, and determining a segmentation site based on the first distance and the vehicle congestion condition includes: Sorting the first distances according to the front-to-back order of the corresponding vehicle stations to obtain a distance sorting result; Adding a label of the latest segmentation site to the originating site; Starting from the vehicle station having the latest segment station label, sequentially summing the first distances in the distance sorting results until the sum of the first distances is greater than or equal to a preset distance; If the sum of the distances is equal to the preset distance, the second station corresponding to the last one of the first distances in the sum of the distances is determined as a segment station, and the second station is the subsequent vehicle station corresponding to the first distance; If the sum of the distances is greater than the preset distance, determining a segmented station based on the vehicle congestion condition, the distance sorting result and the first distance; Transferring the label of the latest segmentation site to the segmentation site; clearing the distance and the distance to zero; The step of sequentially summing the first distances in the distance sorting results starting from the vehicle station having the latest segmented station label is cyclically performed until the sum of the first distances is greater than or equal to a preset distance, and until all the first distances have been summed up, thereby obtaining a plurality of segmented stations.
3. The method according to claim 2, characterized in that The determining of segmented sites based on the vehicle congestion condition, the distance sorting result and the first distance includes: Determine the second station corresponding to the last of the first distances in the sum of the distances as a first segment station; Determine the road section between the first segmentation site and the previous segmentation site as the first segmentation road section, wherein the previous segmentation site is the segmentation site adjacent to the first segmentation site and before the first segmentation site; Determining whether there is a congested section in the first segmented road section based on the vehicle congestion situation; If the congested section exists in the first segmented section, the first station corresponding to the last of the first distances in the sum of the distances is determined as the segmented station, and the first station is the preceding vehicle station corresponding to the first distance; If the congested road section does not exist in the first segmented road section, the first segmented station is determined as the segmented station.
4. The method according to claim 1, characterized in that: The analyzing the first combination to determine the second preferential information includes: Counting the number of each of the first combinations to obtain a plurality of first numbers, each of the first numbers corresponding to one of the first combinations; Determine a proportion of each of the first combinations based on the first quantity and the total quantity of the first combinations; If the proportion is greater than a preset proportion and / or the first quantity is greater than a preset quantity, the first combination is determined as a preferential combination; The second preferential information is determined based on the number of the vehicle information in the preferential combination, where the second preferential information is used to represent preferential information for riding according to the preferential combination.
5. A public transportation payment management device, characterized in that: include: A first acquisition module, used to acquire information of a first user and a vehicle, where the first user is a paying user; A second acquisition module, used to acquire face data based on the vehicle information; A face recognition module, used to recognize the face data to obtain a second user, where the second user is a passenger in the current vehicle; A user comparison module, configured to compare the first user with the second user to determine first abnormal information; an information determination module, configured to determine payment information based on the second user and the vehicle information, wherein the payment information includes a payment method and a payment amount, wherein the payment method is used to represent a charging method, and the payment amount is determined based on a preferential situation; A third acquisition module is used to obtain the account information of the second user; an abnormality determination module, configured to determine an abnormality based on the payment information, the account information and the first abnormality information; An early warning generation module, used to generate early warning information based on the abnormal situation; The information determination module is further specifically used to determine payment information based on the second user and the vehicle information, including: Determine a plurality of vehicle stations and a total distance based on the vehicle information, wherein the vehicle stations include a starting station, a terminal station, and a passing station; Determining a payment method based on the vehicle station and the total distance; Obtain the boarding station and historical consumption data of the second user; Analyze the historical consumption data to obtain the user's preferential treatment; Determining payment information based on the boarding site, the preferential conditions, and the payment method; The information determination module is further specifically used to determine a payment method based on the vehicle station and the total distance, including: Determining a vehicle congestion situation based on the vehicle station, wherein the vehicle congestion situation is used to characterize a road congestion situation, and the vehicle congestion situation includes a congested road section; If the total distance is less than the preset total distance, the payment method is determined based on the vehicle congestion situation and a first preset rule, wherein the first preset rule is the correspondence between the number of overlapping sections of the vehicle driving route and the congested section, the total length of the congested section on the vehicle driving route, and the payment method; If the entire distance is greater than or equal to the preset entire distance, calculating a first distance between two adjacent vehicle stations; Determine a segmentation site based on the first distance and the vehicle congestion condition; Dividing the driving route based on the segmented sites to obtain multiple segmented paths; Acquire first pedestrian flow information based on the vehicle information, where the first pedestrian flow information is historical pedestrian flow information corresponding to the vehicle information; Matching the first human flow information with the segmented paths to obtain human flow conditions of each segmented path; Determine a payment method based on the traffic volume and the segmented path; The information determination module is further specifically used to determine a payment method based on the vehicle congestion situation and a first preset rule, including: Determining whether the vehicle's driving route overlaps with the congested road section; If the vehicle's driving route does not overlap with the congested road section, the payment method is a fixed amount payment; if the vehicle's driving route overlaps with the congested road section, the number of overlapping road sections is counted and the total length of the congested road section on the vehicle's driving route is calculated; Obtaining a payment method for the vehicle based on the number of overlapping road sections, the total length of the congested road sections on the vehicle's driving route, and the first preset rule; The information determination module is further specifically used to determine the payment method based on the pedestrian flow situation and the segmented path, including: Acquire a second preset rule from a database, where the second preset rule is a correspondence between the pedestrian flow situation and the segmented path billing amount; Determine the charging amount for each segmented path based on the pedestrian flow situation and the second preset rule; The information determination module is also specifically used to analyze the historical consumption data to obtain the user's preferential conditions, including: Analyze the historical consumption data to obtain consumption frequency and consumption amount, wherein the consumption frequency is the number of consumption times within a period preset by the user, and the consumption amount is the consumption amount within the period preset by the user; If the consumption frequency is greater than a preset consumption frequency and / or the consumption amount is greater than a preset consumption amount, determining first preferential information based on the consumption frequency, the consumption amount and preferential rules; Determine the vehicle information consumed by the user on a daily basis based on the historical consumption data; Determine the vehicle information consumed by the user daily as a set, and obtain multiple first sets; Combining the vehicle information corresponding to the first set based on an exhaustive method to obtain a plurality of first combinations, each of which includes at least two pieces of vehicle information; Analyze the first combination to determine second preferential information; Determine the user's daily travel information based on the historical consumption data; Determine the number of rides and the fare amount of the user on the day based on the ride information on the day; Determine third preferential information based on the number of rides on the day and the amount of rides on the day; The preferential situation is determined based on the first preferential information, the second preferential information and the third preferential information.
6. An electronic device, characterized in that: comprising a processor coupled to a memory; The processor is configured to execute a computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 4.
