A bus start authentication method, device, computer equipment and storage medium

By conducting authentication and facial recognition verification when the bus starts, the bus is ensured to drive as planned, solving the problems of abnormal driving and poor information transmission, and improving the convenience of users' travel and the reliability of bus services.

CN114119320BActive Publication Date: 2024-11-08GUANGZHOU TONGDA AUTO ELECTRIC +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111408444.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-11-08
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

Buses are prone to abnormalities during driving, such as drivers being unfamiliar with traffic conditions, causing departing from the route, or passengers failing to adjust lanes in time, resulting in extended driving time, and poor information transmission leads to passengers missing or wrong rides.

Method used

By authenticating when the bus starts, reading its logo and querying pre-configured operation plans, verifying the driver's identity in combination with facial recognition technology, and ensuring information security through challenge/response methods to ensure that the bus drives according to the established plan, including Accurate display of routes and driver information.

Benefits of technology

Reduce abnormal situations when driving, ensure users' travel convenience, ensure buses drive as planned, and avoid missed buses due to poor information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119320B_ABST
    Figure CN114119320B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, computer equipment and storage medium for starting authentication of a bus. The method comprises: when receiving a first authentication request sent by the bus when starting, reading the identification of the bus from the first authentication request; querying the operation plan pre-configured for the identification of the bus; if the operation plan is queried, sending a first authentication response to the bus; when receiving a second authentication request sent by the bus for the first authentication response, reading image data from the second authentication request; performing face recognition on the image data to obtain one or more users; if the role of the user is the main driver, and the user is the same as the main driver in the operation plan, sending a second authentication response to the bus to notify the bus to display the route information recorded in the second authentication response. It can ensure that the bus and the main driver comply with the established operation plan and reduce the abnormalities that occur when the bus is running.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of public transportation, and in particular to a method, device, computer equipment and storage medium for starting authentication of a bus. Background Art

[0002] The planning of public buses currently relies mainly on manual operations, which manually arrange the buses and the routes that the drivers take. Manual operations are prone to temporary adjustments to the plan, which may cause some anomalies when the bus is running, causing inconvenience to users.

[0003] For example, a driver is temporarily arranged to drive some new routes, and the traffic conditions in the urban area are relatively complicated. The bus may deviate from the route because the driver is not familiar with the traffic conditions, or the bus may fail to adjust the lane in time before entering a busy traffic area, which may extend the driving time.

[0004] For another example, when a bus supports other routes or is temporarily converted to an express bus (reducing stops to speed up travel), the information of other routes or express buses is not loaded. Passengers may miss the bus or take the wrong bus if they rely on the driver's verbal notification or use cardboard to notify. Summary of the invention

[0005] The invention proposes a bus start authentication method, device, computer equipment and storage medium to solve the problem that anomalies are prone to occur when the bus is running according to the plan.

[0006] In a first aspect, an embodiment of the present invention provides a method for starting and authenticating a bus, comprising:

[0007] When receiving a first authentication request sent by the bus when starting, reading the identification of the bus from the first authentication request;

[0008] Querying the operation plan pre-configured for the identification of the bus, wherein the operation plan includes a route and a main driver;

[0009] If the operation plan is found, a first authentication response is sent to the bus;

[0010] when receiving a second authentication request sent by the bus in response to the first authentication response, reading image data from the second authentication request;

[0011] Performing face recognition on the image data to obtain one or more users, wherein the users are configured with roles;

[0012] If the role of the user is a main driver and the user is the same as the main driver in the operation plan, a second authentication response is sent to the bus to notify the bus to display the information of the route recorded in the second authentication response.

[0013] Optionally, the operation plan also includes the operation time, and the querying of the operation plan pre-configured for the identification of the bus includes:

[0014] Query the current first time point;

[0015] Delaying the first time point by a preset time period to obtain a second time point;

[0016] A running plan pre-configured for the identification of the bus and having a running start time between the first time point and the second time point is queried.

[0017] Optionally, sending a first authentication response to the bus comprises:

[0018] Generate a first random value;

[0019] Encapsulating the first random value into a first authentication response;

[0020] The first authentication response is sent to the bus.

[0021] Optionally, the reading image data from the second authentication request includes:

[0022] Reading the ciphertext and the second random value from the second authentication request;

[0023] combining the route, the identification of the bus, the first random value, and the second random value into a target string;

[0024] Calculating a hash value for the target string;

[0025] querying the original key configured for the identification of the bus;

[0026] The hash value replaces a part of the character string of the original key to obtain a target key;

[0027] The ciphertext is decrypted using the target key to obtain image data.

[0028] Optionally, sending the second authentication response to the bus to notify the bus to display the route information recorded in the second authentication response includes:

[0029] Querying information of the route;

[0030] Encapsulating the route information into a second authentication response;

[0031] The second authentication response is sent to the bus, and the bus is used to display information of the route on a route screen.

[0032] Optionally, the operation plan also includes a backup driver, and the method further includes:

[0033] If the role of the user is a backup driver, and the user is the same as the backup driver in the operation plan, then when the bus completes the route, the number of times the user has traveled the route is accumulated;

[0034] If the number exceeds a preset threshold, it is determined that the user is qualified to be the primary driver of the route.

[0035] Optionally, it also includes:

[0036] Receiving an operation plan configured for a bus, the operation plan including an identification, a route, and a main driver of the bus;

[0037] If the route is marked with an operating system, checking whether the bus supports the operating system based on the identification of the bus;

[0038] determining whether the user set as the primary driver is qualified to be the primary driver of the route;

[0039] If the bus supports the operation system and the user set as the main driver is qualified to be the main driver of the route, it is determined that the operation plan is valid.

[0040] In a second aspect, an embodiment of the present invention further provides a bus startup authentication device, comprising:

[0041] A first authentication request parsing module, configured to read the identification of the bus from the first authentication request when receiving the first authentication request sent by the bus when starting;

[0042] An operation plan query module, used to query the operation plan pre-configured for the identification of the bus, the operation plan including the route and the main driver;

[0043] a first authentication response sending module, configured to send a first authentication response to the bus if the operation plan is found;

[0044] a second authentication request parsing module, configured to read image data from a second authentication request when receiving a second authentication request sent by the bus in response to the first authentication response;

[0045] A face recognition module, used to perform face recognition on the image data to obtain one or more users, wherein the users are configured with roles;

[0046] The second authentication response sending module is used to send a second authentication response to the bus if the role of the user is a main driver and the user is the same as the main driver in the operation plan, so as to notify the bus to display the route information recorded in the second authentication response.

[0047] Optionally, the operation plan also includes the operation time, and the operation plan query module is further used to:

[0048] Query the current first time point;

[0049] Delaying the first time point by a preset time period to obtain a second time point;

[0050] A running plan pre-configured for the identification of the bus and having a running start time between the first time point and the second time point is queried.

[0051] Optionally, the first authentication response sending module is further used to:

[0052] Generate a first random value;

[0053] Encapsulating the first random value into a first authentication response;

[0054] The first authentication response is sent to the bus.

[0055] Optionally, the second authentication request parsing module is further used to:

[0056] Reading the ciphertext and the second random value from the second authentication request;

[0057] combining the route, the identification of the bus, the first random value, and the second random value into a target string;

[0058] Calculating a hash value for the target string;

[0059] querying the original key configured for the identification of the bus;

[0060] The hash value replaces a part of the character string of the original key to obtain a target key;

[0061] The ciphertext is decrypted using the target key to obtain image data.

[0062] Optionally, the second authentication response sending module is further used to:

[0063] Querying information of the route;

[0064] Encapsulating the route information into a second authentication response;

[0065] The second authentication response is sent to the bus, and the bus is used to display information of the route on a route screen.

[0066] Optionally, the operation plan also includes a backup driver, and the device further includes:

[0067] A times accumulation module, for accumulating the times of traveling the route for the user when the bus completes the route if the role of the user is a backup driver and the user is the same as the backup driver in the operation plan;

[0068] The qualification determination module is used to determine that the user is qualified to be the primary driver of the route if the number exceeds a preset threshold.

[0069] Optionally, it also includes:

[0070] An operation plan receiving module, used for receiving an operation plan configured for a bus, wherein the operation plan includes an identification, a route, and a main driver of the bus;

[0071] an operating system detection module, configured to check whether the bus supports the operating system based on the identification of the bus if the route is marked with the operating system;

[0072] a qualification detection module, used to determine whether the user set as the primary driver is qualified to be the primary driver of the route;

[0073] The validity determination module is used to determine that the operation plan is valid if the bus supports the operation system and the user set as the main driver is qualified to be the main driver of the route.

[0074] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:

[0075] one or more processors;

[0076] a memory for storing one or more programs,

[0077] When the one or more programs are executed by the one or more processors, the one or more processors implement the bus startup authentication method as described in any one of the first aspects.

[0078] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the bus startup authentication method as described in any one of the first aspects is implemented.

[0079] In this embodiment, when a first authentication request sent by a bus when starting is received, the bus identification is read from the first authentication request; the operation plan pre-configured for the bus identification is queried, and the operation plan includes routes and main drivers; if the operation plan is queried, a first authentication response is sent to the bus; when a second authentication request sent by the bus for the first authentication response is received, image data is read from the second authentication request; face recognition is performed on the image data to obtain one or more users, and the users are configured with roles; if the user's role is the main driver, and the user is the same as the main driver in the operation plan, a second authentication response is sent to the bus to notify the bus to display the route information recorded in the second authentication response. Authenticating the bus and the main driver separately before the bus leaves can ensure that the bus and the main driver comply with the established operation plan, reduce abnormalities when the bus is driving, and ensure the convenience of user travel. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 A flowchart of a method for starting and authenticating a bus provided in Embodiment 1 of the present invention;

[0081] Figure 2 A flowchart of a method for starting and authenticating a bus provided in Embodiment 2 of the present invention;

[0082] Figure 3 is a flow chart of a method for starting and authenticating a bus provided in Embodiment 3 of the present invention;

[0083] Figure 4 A schematic diagram of the structure of a bus start authentication device provided in a fourth embodiment of the present invention;

[0084] Figure 5 A schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0085] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0086] Embodiment 1

[0087] Figure 1This is a flow chart of a bus startup authentication method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of authenticating when a bus is started. The method can be executed by a bus startup authentication device. The bus startup authentication device can be implemented by software and / or hardware and can be configured in a computer device as a server, such as a server, a workstation, a personal computer, etc. Specifically, the method includes the following steps:

[0088] Step 101: When receiving a first authentication request sent by a bus when starting, read the bus identification from the first authentication request.

[0089] A bus (also known as a public bus, a bus, or a public vehicle) is a motor vehicle that runs on a fixed route on a city road, with multiple stops, with or without fixed departure times, and with a dedicated route number (such as 960, 195A, 35, etc.). It stops at stops to let passengers get on and off, and carries passengers on their trips. A bus is generally square in shape, with multiple windows and multiple seats.

[0090] In urban areas, the speed of buses is generally 25-50 km / h, and in suburban areas, the speed of buses can reach 80 km / h.

[0091] Each time a bus is started and sets out, the bus's identification (such as ID, etc.) can be encapsulated into a first authentication request, and the first authentication request can be sent to the server through the mobile network. When the server receives the first authentication request sent by the bus when it starts, it can parse the first authentication request and read the bus's identification from the first authentication request.

[0092] Step 102: Query the operation plan pre-configured for the bus identification.

[0093] In this embodiment, the technician can review the bus (indicated by a logo) in advance (such as 1 day in advance, 2 days in advance, etc.) and configure an operation plan for the bus, which is used to record the arrangement of the bus travel.

[0094] Generally speaking, the operation plan includes the route and the main driver. The route is represented by the route number. On the route, multiple stations are arranged in sequence. When the bus is running, it stops at multiple stations in sequence for passengers to get on and off. The main driver is the driver who drives the bus.

[0095] The server may store the mapping relationship between the bus identification and the operation plan in the database. Then, after the server reads the bus identification from the first authentication request, it may query the operation plan mapped to the bus identification in the database according to the mapping relationship.

[0096] Furthermore, considering that the same bus may be scheduled to travel multiple times on the same day, in order to facilitate distinction, the operation plan also includes the operating time, which is the time the bus travels along the route, such as 8:30-10:00. Among them, the starting time of the operating time is generally more strictly followed, and since there are many uncertain factors in actual driving, there is a certain deviation in the end time of the operating time.

[0097] Then, when querying the operation plan, the current first time point can be queried in the operating system. Since the main driver generally starts the bus in advance to prepare, such as checking the equipment on the bus, disinfecting, etc., the first time point is postponed by a preset time period to obtain a second time point. This time period fully considers the preparation time, but does not exceed the time consumed by the bus when it normally travels along the route, such as 20 minutes, to ensure that the bus is traveling at the second time point. The operation plan that is pre-configured for the bus identifier and whose start time of the operation time is between the first time point and the second time point is queried in the database based on the mapping relationship.

[0098] Step 103: If the operation plan is found, a first authentication response is sent to the bus.

[0099] If the operation plan configured for the bus identification is found, it can be considered that the bus departure is legal, and a first authentication response is sent to the bus.

[0100] Furthermore, in order to improve the security of subsequent communications, the server and the bus communicate using a Challenge / Response method. Specifically, the server can generate a second random value, that is, the first random value is a randomly generated value, encapsulate the first random value into a first authentication response, and send the first authentication response to the bus.

[0101] Step 104: When receiving a second authentication request sent by the bus in response to the first authentication response, read the image data from the second authentication request.

[0102] The bus has a camera installed at the driver's seat. After receiving the first authentication response, the bus can prompt the driver to authenticate. At this time, the camera can be called to collect video data, and the image data in the video data that meets the face recognition specification can be encapsulated into a second authentication request, and the second authentication request is sent to the server.

[0103] When receiving the second authentication request from the bus, the server parses the second authentication request and reads the image data from the second authentication request.

[0104] If the server and the bus communicate using a Challenge / Response format, the first authentication response contains a first random value. Then, the bus can generate a second random value, that is, the second random value is a randomly generated value, and the route, the bus logo, the first random value, and the second random value are combined into a target string according to the agreed combination specification, and the hash value of the target string is calculated using the agreed hash algorithm Hash.

[0105] A symmetric key algorithm is applied between the server and the bus. A symmetric key algorithm refers to an encryption algorithm that uses the same key for encryption and decryption, such as DES, 3DES, AES, DESX, Blowfish, RC4, RC5, RC6, etc. For easy distinction, the key is called the original key. The bus can replace part of the string of the original key (such as the beginning string, the ending string, extracting a character every n bits, etc.) with a hash value according to the agreed replacement specification to obtain the target key, call the agreed symmetric key algorithm to encrypt the ciphertext using the target key to obtain the ciphertext, encapsulate the ciphertext and the second random value into a second authentication request, and send the second authentication request to the server.

[0106] When the server receives the second authentication request, it reads the ciphertext and the second random value from the second authentication request, combines the route, the bus identification, the first random value, and the second random value into a target string according to the agreed combination specification, calculates the hash value of the target string using the agreed hash algorithm Hash, queries the original key configured for the bus identification, replaces part of the string of the original key with the hash value according to the agreed replacement specification, obtains the target key, and then calls the agreed symmetric key algorithm to use the target key to decrypt the ciphertext to obtain the image data.

[0107] Step 105: Perform face recognition on the image data to obtain one or more users.

[0108] Face recognition is a biometric technology that automatically identifies a person based on their facial features (such as statistical or geometric features). It is also called face recognition, portrait recognition, appearance recognition, facial recognition, and face recognition.

[0109] Face recognition mainly consists of three modules:

[0110] 1. Face Detection

[0111] Face detection is used to determine the size and position of the face in image data, that is, to solve the problem of "where is the face" and crop the real face area from the image to facilitate subsequent facial feature analysis and recognition.

[0112] 2. Face Alignment

[0113] The same person may show different postures and expressions in different image sequences, which is not conducive to face recognition. Therefore, the face images are transformed to a uniform angle and posture, which is called face alignment. Its principle is to find several key points of the face (reference points, such as the corners of the eyes, the tip of the nose, the corners of the mouth, etc.), and then use these corresponding key points to transform the face to a standard face as much as possible through similarity transformation (rotation, scaling and translation).

[0114] 3. Feature Representation

[0115] The input received by face recognition is a standardized face image. Vectorized face features are obtained through feature modeling, and finally the recognition result is obtained through classifier discrimination to obtain one or more previously registered users.

[0116] Step 106: If the user's role is the main driver, and the user is the same as the main driver in the operation plan, a second authentication response is sent to the bus to notify the bus to display the route information recorded in the second authentication response.

[0117] In this embodiment, the user identified by face recognition is configured with a role. If the user's role is the main driver and the user is the same as the main driver in the operation plan, a second authentication response can be generated at this time and sent to the bus to confirm that the main driver has passed the authentication. The bus can display the route information recorded in the second authentication response.

[0118] In a specific implementation, if the user's role is the main driver and the user is the same as the main driver in the operation plan, the server can query the route information, such as the road number, station, etc., encapsulate the route information into the second authentication response, and send the second authentication response to the bus. The bus is used to read the route information in the second authentication response and display the route information on the route screen for users to browse. The bus is equipped with one or more route screens, which are usually LED display screens installed at the head, tail, right side, etc. of the bus.

[0119] In this embodiment, when a first authentication request sent by a bus when starting is received, the bus identification is read from the first authentication request; the operation plan pre-configured for the bus identification is queried, and the operation plan includes routes and main drivers; if the operation plan is queried, a first authentication response is sent to the bus; when a second authentication request sent by the bus for the first authentication response is received, image data is read from the second authentication request; face recognition is performed on the image data to obtain one or more users, and the users are configured with roles; if the user's role is the main driver, and the user is the same as the main driver in the operation plan, a second authentication response is sent to the bus to notify the bus to display the route information recorded in the second authentication response. Authenticating the bus and the main driver separately before the bus leaves can ensure that the bus and the main driver comply with the established operation plan, reduce abnormalities when the bus is driving, and ensure the convenience of user travel.

[0120] For example, if a bus supports other routes or is temporarily converted to an express bus (reducing stops and thus speeding up the journey), the information of other routes or express buses can be correctly loaded, avoiding reliance on verbal notifications from the driver or using cardboard notifications, ensuring that passengers do not miss the bus and can take the correct bus.

[0121] Embodiment 2

[0122] Figure 2 This is a flow chart of a bus startup authentication method provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiment and further adds an authentication operation for a backup driver. The method specifically includes the following steps:

[0123] Step 201: When receiving a first authentication request sent by a bus when starting, read the bus identification from the first authentication request.

[0124] Step 202: Query the operation plan pre-configured for the bus identification.

[0125] In this embodiment, the operation plan includes not only the route and the main driver, but also a backup driver. The backup driver is the driver (user) but does not drive the bus. His participation in the operation of the bus is mainly to familiarize himself with the traffic conditions on the route and the hardware equipment of the bus.

[0126] Step 203: If the operation plan is found, a first authentication response is sent to the bus.

[0127] Step 204: When receiving a second authentication request sent by the bus in response to the first authentication response, read the image data from the second authentication request.

[0128] Step 205: Perform face recognition on the image data to obtain one or more users.

[0129] In this embodiment, for the main driver and the backup driver, instructions can be given to collect image data according to established specifications. For example, the bus first instructs to collect the facial data of the main driver. After collecting the image data that meets the facial recognition specifications, instructions are given to collect the facial data of the backup driver. After collecting the image data that meets the facial recognition specifications, these image data are encapsulated into a second authentication request and sent to the server.

[0130] The server distinguishes the image data according to the established specifications and configures roles for the identified users. For example, the role of the user identified in the image data that is sorted first is configured as the main driver, and the role of the user identified in the image data that is sorted later is configured as the co-driver.

[0131] Step 206: If the role of the user is a backup driver, and the user is the same as the backup driver in the operation plan, when the bus completes the route, the number of times the route has been traveled is accumulated for the user.

[0132] Step 207: If the number exceeds a preset threshold, it is determined that the user is qualified to be the primary driver of the route.

[0133] In this embodiment, the user identified by face recognition is configured with a role. If the user's role is a backup driver and the user is the same as the main driver in the operation plan, a second authentication response can be generated and sent to the bus to confirm that the backup driver has passed the authentication.

[0134] When the bus completes the route, it sends an end-of-operation request to the server. In response to the end-of-operation request, the server checks the bus, such as checking whether the satellite positioning data has passed all the stations on the route. If the bus completes the inspection, it can send an end-of-operation response to the bus. In addition, the server can accumulate the number of times the user who serves as a backup driver has traveled the route, that is, the number of times the user who serves as a backup driver has traveled the route is accumulated by one.

[0135] The cumulative number of times the user serving as a backup driver has driven the route is compared with a preset threshold. If the number exceeds the threshold, it means that the user serving as the backup driver is familiar with the traffic conditions and the hardware equipment of the bus on the route, and it can be determined that the user is qualified to be the main driver of the route, thereby reducing the situation where drivers are temporarily arranged to drive some new routes, thereby avoiding problems such as buses deviating from the route and buses failing to adjust lanes in time before busy traffic areas, which prolongs the driving time, etc., thereby ensuring the correct driving of the bus and improving driving efficiency.

[0136] Embodiment 3

[0137] Figure 3 This is a flow chart of a bus startup authentication method provided in Embodiment 3 of the present invention. This embodiment is based on the previous embodiment and further adds an operation of customizing a bus operation plan. The method specifically includes the following steps:

[0138] Step 301: Receive an operation plan configured for a bus.

[0139] In this embodiment, a user with management authority can log in to the server and add a future operation plan for the bus in the server, wherein the operation plan includes the bus's ID, route, and main driver (represented by the user's ID).

[0140] Of course, in addition to the bus logo, route, and main driver, other parameters may be set in the operation plan, such as the operation time, the user who formulates the operation plan, the user who reviews the operation plan, etc. This embodiment does not limit this.

[0141] Step 302: If the route is marked with an operating system, check whether the bus supports the operating system based on the identification of the bus.

[0142] Step 303: Determine whether the user set as the primary driver is qualified to be the primary driver of the route.

[0143] In this embodiment, some routes may have requirements for the operating system (hardware and / or software), that is, buses traveling on the route are required to be equipped with the operating system. For example, some stations on the BRT (Bus Rapid Transit) require that the bus open its doors in synchronization with the platform shield door. Routes passing through some stations on the BRT will be marked with the platform shield door synchronization system (operating system), requiring buses passing through some stations on the BRT to be equipped with the platform shield door synchronization system.

[0144] In response to the user's request to add an operation plan for a bus, on the one hand, the server can query the management system whether the route in the operation plan is marked with an operation system. If the operation system is marked, the bus (indicated by an identifier) ​​is queried from the management system to check whether the bus supports the operation system. On the other hand, the management system is queried to see whether the user set as the main driver is qualified to be the main driver of the route.

[0145] Step 304: If the bus supports the operation system and the user set as the main driver is qualified to be the main driver of the route, it is determined that the operation plan is valid.

[0146] If the bus supports the operation system, and the user set as the main driver is qualified to be the main driver of the route, the operation plan is determined to be valid and stored in the database, thereby ensuring the safety of bus travel in multiple dimensions.

[0147] If the bus does not support the operation system, or the user set as the main driver does not have the qualifications to be the main driver of the route, the operation plan is determined to be invalid and a warning message is generated.

[0148] Step 305: When receiving a first authentication request sent by the bus when starting, read the identification of the bus from the first authentication request.

[0149] Step 306: Query the operation plan pre-configured for the bus identification.

[0150] Among them, the operation plan includes routes and main drivers.

[0151] Step 307: If the operation plan is found, a first authentication response is sent to the bus.

[0152] Step 308: When receiving a second authentication request sent by the bus in response to the first authentication response, read the image data from the second authentication request.

[0153] Step 309: Perform face recognition on the image data to obtain one or more users.

[0154] Among them, users are configured with roles.

[0155] Step 310: If the user's role is the main driver and the user is the same as the main driver in the operation plan, a second authentication response is sent to the bus to notify the bus to display the route information recorded in the second authentication response.

[0156] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0157] Embodiment 4

[0158] Figure 4 The structural block diagram of a bus start authentication device provided in the fourth embodiment of the present invention may specifically include the following modules:

[0159] A first authentication request parsing module 401 is used to read the identification of the bus from the first authentication request when receiving the first authentication request sent by the bus when starting;

[0160] An operation plan query module 402 is used to query the operation plan pre-configured for the identification of the bus, wherein the operation plan includes a route and a main driver;

[0161] A first authentication response sending module 403, configured to send a first authentication response to the bus if the operation plan is found;

[0162] A second authentication request parsing module 404 is configured to read image data from a second authentication request when receiving a second authentication request sent by the bus in response to the first authentication response;

[0163] A face recognition module 405 is used to perform face recognition on the image data to obtain one or more users, wherein the users are configured with roles;

[0164] The second authentication response sending module 406 is used to send a second authentication response to the bus if the role of the user is the main driver and the user is the same as the main driver in the operation plan, so as to notify the bus to display the route information recorded in the second authentication response.

[0165] In one embodiment of the present invention, the operation plan also includes the operation time, and the operation plan query module 402 is further used to:

[0166] Query the current first time point;

[0167] Delaying the first time point by a preset time period to obtain a second time point;

[0168] A running plan pre-configured for the identification of the bus and having a running start time between the first time point and the second time point is queried.

[0169] In one embodiment of the present invention, the first authentication response sending module 403 is further used to:

[0170] Generate a first random value;

[0171] Encapsulating the first random value into a first authentication response;

[0172] The first authentication response is sent to the bus.

[0173] In one embodiment of the present invention, the second authentication request parsing module 404 is further configured to:

[0174] Reading the ciphertext and the second random value from the second authentication request;

[0175] combining the route, the identification of the bus, the first random value, and the second random value into a target string;

[0176] Calculating a hash value for the target string;

[0177] querying the original key configured for the identification of the bus;

[0178] The hash value replaces a part of the character string of the original key to obtain a target key;

[0179] The ciphertext is decrypted using the target key to obtain image data.

[0180] In one embodiment of the present invention, the second authentication response sending module 406 is further configured to:

[0181] Querying information of the route;

[0182] Encapsulating the route information into a second authentication response;

[0183] The second authentication response is sent to the bus, and the bus is used to display information of the route on a route screen.

[0184] In one embodiment of the present invention, the operation plan also includes a backup driver, and the device further includes:

[0185] A times accumulation module, for accumulating the times of traveling the route for the user when the bus completes the route if the role of the user is a backup driver and the user is the same as the backup driver in the operation plan;

[0186] The qualification determination module is used to determine that the user is qualified to be the primary driver of the route if the number exceeds a preset threshold.

[0187] In one embodiment of the present invention, it also includes:

[0188] An operation plan receiving module, used for receiving an operation plan configured for a bus, wherein the operation plan includes an identification, a route, and a main driver of the bus;

[0189] an operating system detection module, configured to check whether the bus supports the operating system based on the identification of the bus if the route is marked with the operating system;

[0190] a qualification detection module, used to determine whether the user set as the primary driver is qualified to be the primary driver of the route;

[0191] The validity determination module is used to determine that the operation plan is valid if the bus supports the operation system and the user set as the main driver is qualified to be the main driver of the route.

[0192] The bus startup authentication device provided in the embodiment of the present invention can execute the bus startup authentication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0193] Embodiment 5

[0194] Figure 5 A schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0195] like Figure 5 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0196] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0197] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0198] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0199] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0200] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the computer device 12, and / or may communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0201] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the bus startup authentication method provided by the embodiment of the present invention.

[0202] Embodiment 6

[0203] Embodiment 6 of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned bus startup authentication method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] Among them, computer-readable storage media may include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.

[0205] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for starting and authenticating a bus, characterized in that: include: When receiving a first authentication request sent by the bus when starting, reading the identification of the bus from the first authentication request; Querying the operation plan pre-configured for the identification of the bus, wherein the operation plan includes a route and a main driver; If the operation plan is found, a first authentication response is sent to the bus; when receiving a second authentication request sent by the bus in response to the first authentication response, reading image data from the second authentication request; Performing face recognition on the image data to obtain one or more users, wherein the users are configured with roles; If the role of the user is a main driver and the user is the same as the main driver in the operation plan, sending a second authentication response to the bus to notify the bus to display information of the route recorded in the second authentication response; The querying of the operation plan pre-configured for the identification of the bus includes: Query the current first time point; Delaying the first time point by a preset time period to obtain a second time point; A running plan pre-configured for the identification of the bus and having a running start time between the first time point and the second time point is queried.

2. The method according to claim 1, characterized in that The sending a first authentication response to the bus comprises: Generate a first random value; Encapsulating the first random value into a first authentication response; The first authentication response is sent to the bus.

3. The method according to claim 2, characterized in that The reading of the image data from the second authentication request includes: Reading a ciphertext and a second random value from the second authentication request; wherein the ciphertext is obtained by encrypting image data that complies with a face recognition specification in the video data collected by the camera; combining the route, the identification of the bus, the first random value, and the second random value into a target string; Calculating a hash value for the target string; querying the original key configured for the identification of the bus; The hash value replaces a part of the character string of the original key to obtain a target key; The ciphertext is decrypted using the target key to obtain image data.

4. The method according to claim 1, characterized in that The sending of the second authentication response to the bus to notify the bus to display the information of the route recorded in the second authentication response includes: Querying information of the route; Encapsulating the route information into a second authentication response; The second authentication response is sent to the bus, and the bus is used to display information of the route on a route screen.

5. The method according to any one of claims 1 to 4, characterized in that The operation plan also includes a backup driver, and the method further includes: If the role of the user is a backup driver, and the user is the same as the backup driver in the operation plan, then when the bus completes the route, the number of times the user has traveled the route is accumulated; If the number exceeds a preset threshold, it is determined that the user is qualified to be the primary driver of the route.

6. The method according to any one of claims 1 to 4, characterized in that Also includes: Receiving an operation plan configured for a bus, the operation plan including an identification, a route, and a main driver of the bus; If the route is marked with an operating system, checking whether the bus supports the operating system based on the identification of the bus; determining whether the user set as the primary driver is qualified to be the primary driver of the route; If the bus supports the operation system and the user set as the main driver is qualified to be the main driver of the route, it is determined that the operation plan is valid.

7. A bus start authentication device, characterized in that: include: A first authentication request parsing module, configured to read the identification of the bus from the first authentication request when receiving the first authentication request sent by the bus when starting; An operation plan query module, used to query the operation plan pre-configured for the identification of the bus, the operation plan including the route and the main driver; a first authentication response sending module, configured to send a first authentication response to the bus if the operation plan is found; a second authentication request parsing module, configured to read image data from a second authentication request when receiving a second authentication request sent by the bus in response to the first authentication response; A face recognition module, used to perform face recognition on the image data to obtain one or more users, wherein the users are configured with roles; a second authentication response sending module, configured to send a second authentication response to the bus if the role of the user is a main driver and the user is the same as the main driver in the operation plan, so as to notify the bus to display the information of the route recorded in the second authentication response; The operation plan query module is also used to query the current first time point; Delaying the first time point by a preset time period to obtain a second time point; A running plan pre-configured for the identification of the bus and having a running start time between the first time point and the second time point is queried.

8. A computer device, characterized in that: The computer device comprises: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the bus startup authentication method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for starting and authenticating a bus according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Public transportation vehicle management method and system and public transportation vehicle

    CN108725383A

  • Security authentication method and device, storage medium and electronic device

    CN110210935A

  • Identity recognition method and system and storage medium

    CN110570597A

  • Online car-hailing platform based on order-preserving encryption and method thereof

    CN113240145A

  • Driver identification and authentication systems and methods

    US20180097804A1