Complaint method, complaint server, client and complaint system
By using the image re-recognition model on the appeal server to identify bus passengers' alighting behavior, the problem of abnormal deductions caused by bus passengers forgetting to swipe their cards is solved, and the accurate identification of passengers' alighting behavior and the generation of appeal results are achieved, improving improve service efficiency and passenger satisfaction.
Patent Information
- Application Number
- CN201910553498.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-04-15
AI Technical Summary
The problem of abnormal deductions caused by bus passengers forgetting to swipe their cards when getting off the bus is difficult to effectively identify and solve with existing technology.
By receiving ride parameters on the appeal server, the relevant first ride video and second ride video are obtained, the image re-recognition model is used to identify whether the user has exited the vehicle, the appeal result is generated, and the result is sent to the client. The system includes a control unit, a communication unit and an image re-recognition unit. It uses a convolutional network, batch normalization layer and activation function for data processing to identify user characteristics and judge getting off the vehicle behavior.
It effectively identifies the user's behavior of getting off the bus, solves the problem of overdeducting fares due to forgetting to swipe the card, provides a practical grievance solution, and improves the service experience of bus passengers.
Smart Images

Figure CN112131909B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of public transportation technology, and in particular to a method for filing a complaint regarding abnormal fare deductions for public transportation, a complaint server, a client, a complaint system, a computer-readable storage medium, and a computer device. Background Art
[0002] At present, the bus fare is calculated based on mileage, with swiping the card when getting on the bus as the starting point of the fare and swiping the card when getting off the bus to deduct the fare. However, in actual applications, many users often forget to swipe the card when getting off the bus, resulting in the bus company deducting the fare according to the entire bus journey. Summary of the invention
[0003] In order to solve at least one of the above problems, the first aspect of the present invention provides a method for appealing abnormal deductions of public transportation, which is applied to a complaint server and includes:
[0004] receiving a ride parameter and sending it to a public transportation company database to obtain a first ride video and a second ride video related to the ride parameter, wherein the ride parameter comes from a client in response to a user operation;
[0005] receiving the first riding video and the second riding video, and sending the first riding video to the client so that the client selects at least one image including the user and selects a user portrait in response to a user operation;
[0006] Receive the image, identify whether the user has gotten off the vehicle in the second riding video based on the user portrait through a preset image re-recognition model and generate a complaint result, and send the complaint result to the client to present the complaint result.
[0007] Furthermore,
[0008] The receiving of the image, identifying whether the user has got off the vehicle from the second riding video according to the user portrait by using a preset image re-recognition model and generating a complaint result, and sending the complaint result to the client to present the complaint result specifically includes:
[0009] Inputting the user portrait into the image re-recognition model to obtain a first image feature, identifying the user from the second riding video according to the first image feature and generating a recognition result;
[0010] If the identification result is that the user is not identified, a complaint result indicating that the complaint failed is returned;
[0011] If the recognition result is that the user is recognized, the movement trajectory of the user is obtained, and it is determined according to the movement trajectory whether the user has gotten off the bus. If so, it is determined that the user has gotten off the bus and a successful appeal result is returned; otherwise, a failed appeal result is returned;
[0012] The appeal result is sent to the client to present the appeal result.
[0013] Furthermore,
[0014] The step of inputting the user portrait into the image re-recognition model to obtain a first image feature, and recognizing the user from the second riding video according to the first image feature and generating a recognition result specifically includes:
[0015] Inputting the user portrait into the image re-recognition model to generate a first image feature;
[0016] Performing human body detection on each frame of the second riding video to generate image blocks, and inputting each image block into the image re-recognition model to generate second image features corresponding to each image block;
[0017] Calculating the similarity between each of the second image features and the first image feature respectively, and comparing them with a preset similarity threshold, and marking the corresponding second image feature as recognized if the similarity threshold is met, otherwise as unrecognized;
[0018] If all the second image features are unrecognized, generating a recognition result that does not recognize the user, otherwise generating a recognition result that recognizes the user;
[0019] If the recognition result is that the user is recognized, the movement trajectory of the user is obtained, and whether the user has got off the bus is determined according to the movement trajectory. If so, it is determined that the user has gotten off the bus and a successful appeal result is returned. Otherwise, a failed appeal result is returned. Specifically, the following includes:
[0020] respectively calculating the position of each identified second image feature and generating at least one motion trajectory of the user;
[0021] It is determined whether each of the motion trajectories intersects with the preset door position. If so, it is determined that the user has got off the vehicle and a successful appeal result is returned; otherwise, a failed appeal result is returned.
[0022] Furthermore, the image re-identification model includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein
[0023] The first convolution network receives the user portrait and extracts a first image feature, performs square difference calculation with the second image feature extracted by the second convolution network receiving a frame of image in the second ride video, and generates a third image feature;
[0024] The third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function is used to identify the predicted probability that the first image feature and the second image feature are the same individual.
[0025] Furthermore,
[0026] The receiving of the riding parameters and sending the receiving parameters to the public transportation company database to obtain the first riding video and the second riding video related to the riding parameters specifically includes:
[0027] Obtaining all GPS locations of multiple vehicles within the operating time range from the public transportation company database according to the bus route and travel direction of the riding parameters;
[0028] According to the riding time range, boarding station and alighting station of the riding parameters, the plurality of vehicles are matched to determine the toll-collecting vehicle taken by the user, and the boarding time and alighting time of the user are obtained from the public transportation company database;
[0029] Acquire a first riding video and a second riding video from the public transportation company database according to the toll-deducting vehicle, the boarding time and the alighting time;
[0030] and / or
[0031] If the appeal result is that the appeal fails, the appeal method further includes:
[0032] In response to the administrator's operation, the first ride video and the second ride video are manually checked and a manual appeal result is generated, and the manual appeal result is sent to the client to present the manual appeal result.
[0033] A second aspect of the present invention provides a method for complaining about abnormal deductions of public transportation, which is applied to a client and includes:
[0034] In response to user operations, obtaining ride parameters and sending them to the complaint server;
[0035] receiving a first riding video, and selecting at least one image including the user and selecting a user portrait from the first riding video in response to a user operation;
[0036] sending the image to the complaint server;
[0037] Receive and display the appeal result, the appeal result comes from the appeal server identifying whether the user has got off the bus based on the user portrait through a preset image re-recognition model from the second riding video, if so, the appeal result is successful, otherwise, the appeal is unsuccessful;
[0038] The first riding video and the second riding video are video clips obtained by the complaint server from a public transportation company database according to the riding parameters.
[0039] Furthermore, if the appeal result is that the appeal fails, the appeal method further includes:
[0040] Receive and display a manual appeal result, where the manual appeal result comes from a manual review of the first ride video and the second ride video by an administrator operating the appeal server.
[0041] A third aspect of the present invention provides a complaint server for abnormal fare deductions in public transportation, comprising a control unit, a communication unit and an image re-recognition unit.
[0042] The communication unit is configured to receive or send communication information from a client or a public transportation company database;
[0043] The image re-recognition unit is configured to recognize a user corresponding to the input image from the video according to the input image;
[0044] The control unit is configured to receive riding parameters through the communication unit, and obtain a first riding video and a second riding video related to the riding parameters from a public transportation company database based on the riding parameters, send the first riding video to the client and receive at least one image including a user portrait returned by the client, identify whether the user has got off the vehicle from the second riding video based on the user portrait through the image re-recognition unit and generate a complaint result, and send the complaint result to the client to present the complaint result.
[0045] Furthermore,
[0046] The image re-identification unit includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein
[0047] The first convolution network receives the user portrait and extracts a first image feature, performs square difference calculation with the second image feature extracted by the second convolution network receiving a frame of image in the second ride video, and generates a third image feature;
[0048] The third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function is used to identify the predicted probability that the first image feature and the second image feature are the same individual;
[0049] and / or
[0050] The complaint server also includes a manual verification unit, which is configured to manually verify the first ride video and the second ride video in response to the administrator's operation and generate a manual complaint result, and send the manual complaint result to the client to present the manual complaint result.
[0051] A fourth aspect of the present invention provides a client for abnormal deduction of fees for public transportation, comprising an input unit, a communication unit, a selection unit and a display unit, wherein
[0052] The input unit is configured to obtain riding parameters in response to user operations;
[0053] The selection unit is configured to select an image including the user and a user portrait from a first ride video in response to a user operation, wherein the first ride video is a video clip obtained by the complaint server from a database of a public transportation company according to the ride parameters;
[0054] The communication unit is configured to communicate with the complaint server, send the riding parameters, receive the first riding video, send the user portrait and receive the complaint result;
[0055] The display unit is configured to display the appeal result.
[0056] A fifth aspect of the present invention provides a complaint system for abnormal fare deductions in public transportation, comprising a public transportation company database, a complaint server as described in the third aspect, and a client as described in the fourth aspect;
[0057] The public transportation company database is configured to obtain the first riding video and the second riding video according to the riding parameters sent by the complaint server and send them to the complaint server.
[0058] A sixth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon.
[0059] When the program is executed by a processor, the method according to the first aspect is implemented;
[0060] and / or
[0061] When the program is executed by a processor, the method described in the second aspect is implemented.
[0062] A seventh aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0063] When the processor executes the program, the method according to the first aspect is implemented;
[0064] and / or
[0065] When the processor executes the program, the method described in the second aspect is implemented.
[0066] The beneficial effects of the present invention are as follows:
[0067] In view of the existing problems, the present invention develops a complaint method, complaint server, client and complaint system. The complaint server obtains a first riding video and a second riding video from a public transportation company database according to riding parameters, obtains a user portrait of the passenger through the first riding video, and identifies whether the user has got off the vehicle from the second riding video through a preset image re-recognition model based on the user portrait to generate a complaint result, thereby compensating for the problems in the prior art and having practical application significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0069] Figure 1 A flowchart showing a complaint method according to an embodiment of the present invention;
[0070] Figure 2 A schematic diagram showing a scenario of a complaint system according to an embodiment of the present invention;
[0071] Figure 3 A structural block diagram of an image re-recognition model according to an embodiment of the present invention is shown;
[0072] Figure 4 A structural block diagram of a complaint server according to an embodiment of the present invention is shown;
[0073] Figure 5 A flowchart showing a complaint method according to another embodiment of the present invention;
[0074] Figure 6 A structural block diagram showing a client according to an embodiment of the present invention;
[0075] Figure 7 A structural block diagram of a complaint system according to an embodiment of the present invention is shown;
[0076] Figure 8 A schematic structural diagram of a computer device according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0077] In order to more clearly illustrate the present invention, the present invention is further described below in conjunction with preferred embodiments and accompanying drawings. Similar components in the accompanying drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present invention.
[0078] In the present invention, the public transportation means refers to vehicles, ships and other means of transportation for multiple passengers in public transportation, including but not limited to buses, subways, trams and trolleybuses.
[0079] For the convenience of schematic illustration, in the following embodiments, a bus is used as an example to illustrate the process of the complaint method of the present invention. It is easy to understand that other public transportation vehicles are also applicable.
[0080] In the prior art, when a user finds that he forgot to swipe his card after getting off the bus, or finds that he has overcharged the bus fare when he takes the bus again, he needs to file a complaint against the deduction. Figure 1 As shown, an embodiment of the present invention provides a method for complaining about abnormal deductions of fees by public transportation, which is applied to a complaint server and includes: receiving riding parameters and sending them to a public transportation company database to obtain a first riding video and a second riding video related to the riding parameters, wherein the riding parameters come from a client in response to user operations; receiving the first riding video and the second riding video, and sending the first riding video to the client so that the client selects at least one image including the user and selects a user portrait in response to the user operation; receiving the image, identifying from the second riding video whether the user has got off the vehicle based on the user portrait through a preset image re-recognition model and generating a complaint result, and sending the complaint result to the client to present the complaint result.
[0081] In a specific example, Figure 2The figure shows a schematic diagram of an application scenario of the present embodiment, wherein the client is an application program applied to devices such as smart phones, tablet computers, computers, smart TVs, etc., including an input unit, a communication unit, a selection unit, and a display unit; the public transportation company database is a database storing surveillance videos of various public buses, wherein the surveillance videos are video clips taken by cameras installed on the public buses, and the database may be a server, for example, including a database, a database query unit, a video compression unit, and a wireless communication unit; the complaint server is a server located locally, remotely, or in the cloud, for data interaction with the client and the public transportation company database, and for character recognition, judgment, and generation of complaint results according to a preset image re-recognition model, including a control unit, a communication unit, and an image re-recognition unit.
[0082] The specific complaint process is as follows:
[0083] 1. The client registers on the complaint server in response to user operations.
[0084] First, the client establishes a connection with the complaint server. In this embodiment, the client is an application running on a smart phone, which is used to register on the complaint server, and the registered information is stored on the complaint server, including but not limited to the user's account, name, and mobile phone number.
[0085] 2. The client responds to the user's operation, obtains the ride parameters and sends them to the complaint server.
[0086] When a user finds that he or she did not swipe the card when getting off the bus or that the fare is overcharged when riding again, the user submits a complaint request to the complaint server through the client. Specifically, the user enters the riding parameters through the client and sends them to the complaint server. The riding parameters include the user's bus route, travel direction, approximate boarding and alighting time, boarding and alighting stops, boarding and exiting doors, and other information.
[0087] 3. The complaint server receives the riding parameters and sends them to the public transportation company database to obtain the first riding video and the second riding video related to the riding parameters.
[0088] In this embodiment, the complaint server queries the public transportation company database based on the riding parameters to determine the toll-collecting vehicle, boarding time, and alighting time of the user. Specifically:
[0089] In the first step, all GPS positions of multiple vehicles within the operating time range are obtained from the public transportation company database according to the bus route and travel direction of the riding parameters.
[0090] For example, according to the No. 1 bus taken and the travel direction from east to west, all GPS location data of all No. 1 buses within the operating time range are searched through the database query unit of the public transportation company database.
[0091] The second step is to match the multiple vehicles according to the riding time range, boarding station and alighting station of the riding parameters to determine the deducted vehicle that the user takes, and obtain the user's boarding time and alighting time from the public transportation company database.
[0092] In this embodiment, data matching is performed from the vehicles found above according to the boarding time range, boarding station and alighting station to determine the vehicle the user is riding, that is, the toll-collecting vehicle with the overpaid fare, and the specific boarding time and alighting time of the user are obtained through the database query unit.
[0093] Step 3: acquiring the first riding video and the second riding video from the public transportation company database according to the toll-deducting vehicle, the boarding time and the alighting time;
[0094] In this embodiment, the first ride video and the second ride video are further obtained from the database query unit of the public transportation company database according to the toll-collecting vehicle, the specific boarding time and the alighting time, wherein the first ride video is a video clip of the user boarding the vehicle, and the second ride video is a video clip of the user alighting the vehicle. In order to achieve rapid transmission of the first ride video and the second ride video, in this embodiment, the video is compressed by the video compression unit of the public transportation company database to reduce the data volume of the video. It is worth noting that the first ride video and the second ride video include at least one video, and the number of the videos is related to the number of doors of the toll-collecting vehicle. For example, if the toll-collecting vehicle is a bus with 3 doors, the number of the first ride video and the second ride video is 3, that is, the videos corresponding to the boarding time and the alighting time of the three doors. Those skilled in the art should set the number of videos to be obtained according to the actual application scenario, which will not be repeated here.
[0095] 4. The complaint server receives the first ride video and the second ride video, and sends the first ride video to the client.
[0096] In this embodiment, the complaint server sends the boarding video of the user (ie, the first boarding video) to the client.
[0097] 5. The client receives the first ride video, and in response to a user operation, selects at least one image including the user and selects a user portrait.
[0098] In this embodiment, the user views the first ride video through the client, selects an image including the user from the first ride video through the selection unit, such as an image of the user getting on the bus, and selects the user's portrait in the image, such as framing the user's portrait on the image, and the user's portrait is required to be clear and the blocked area is less than 50%. It is worth noting that in order to protect the privacy of the user, the first ride video obtained by the user only has the right to be viewed within the application, and the first ride video cannot be downloaded, and the user is also prohibited from taking screenshots and recording the screen, thereby realizing the privacy protection of other users in the first ride video.
[0099] 6. The client sends the image to the complaint server.
[0100] In this embodiment, the client sends the image and the position information of the user portrait in the image to the appeal server so that the appeal server can obtain the user portrait.
[0101] 7. The complaint server receives the image, identifies whether the user has gotten off the vehicle in the second riding video based on the user's portrait through a preset image re-recognition model, and generates a complaint result.
[0102] In this embodiment, if Figure 3 As shown, the image re-identification model includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein the first convolutional network receives the user portrait and extracts a first image feature, and the second convolutional network receives a frame of image in the second ride video and extracts the second image feature, performs square difference calculation and generates a third image feature; the third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function identifies the predicted probability that the first image feature and the second image feature are the same individual.
[0103] In this embodiment, the first convolutional network and the second convolutional network adopt ResNet50 convolutional network, the first convolutional network performs feature extraction on the input user portrait to obtain the first image feature, the second convolutional network performs feature extraction on the input other portrait image blocks to obtain the second image feature, the square difference between the first image feature and the second image feature is calculated as the third image feature, and then processed by batch normalization layer (batch norm, BN) and fully connected layer FC, and processed by Sigmoid activation function to obtain the predicted probability that the first image feature and the second image feature are the same user, the predicted probability is a number between 0 and 1, and is compared with a preset similarity threshold. If the predicted probability meets the similarity threshold, it is determined that the user is identified, otherwise the user is not identified.
[0104] It is worth noting that those skilled in the art should select an appropriate convolutional network for feature extraction according to actual application requirements, such as ResNet50, Resnet 101, GoogleNet, etc., with the ability to realize image feature extraction as the design principle, which will not be repeated here.
[0105] Specific:
[0106] The first step is to input the user portrait into the image re-recognition model to obtain a first image feature, and to identify the user from the second riding video according to the first image feature and generate a recognition result, which specifically includes:
[0107] First, the user portrait is input into the image re-recognition model to generate a first image feature, so as to identify the user from the getting-off-vehicle video (i.e., the second getting-on-vehicle video).
[0108] In this embodiment, the user portrait is input into a first convolutional network to generate a first image feature.
[0109] Secondly, human body detection is performed on each frame image in the second riding video to generate image blocks, and each image block is input into the image re-recognition model to generate second image features corresponding to each image block.
[0110] In this embodiment, the getting off the vehicle video is first split into continuous frame images, and human body detection is performed on each frame image to obtain the human body candidate frame of the frame image and the image block corresponding to the human body candidate frame, and the image block is input into the second convolutional network to generate the second image feature. It is worth noting that there may be multiple human body candidate frames in a frame image, that is, there are multiple image blocks, and multiple second image features can be obtained by inputting them into the image re-recognition model respectively, so the frame image can obtain a feature set including multiple second image features.
[0111] Again, the similarity between each of the second image features and the first image feature is calculated respectively, and compared with a preset similarity threshold. If the similarity threshold is met, the corresponding second image feature is marked as recognized, otherwise it is unrecognized.
[0112] In this embodiment, the similarity between the second image feature of the feature set of each frame image and the first image feature is calculated, that is, the square difference between the second image feature and the first image feature is calculated, and after being processed by a batch normalization layer and a fully connected layer, a Sigmoid activation function is used to obtain the predicted probability that the second image feature and the first image feature are the same user, and the predicted probability is compared with a preset similarity threshold. If the predicted probability meets the similarity threshold, it is determined that the user is identified and the corresponding second image feature is marked as identified, otherwise it is marked as unidentified.
[0113] Finally, if all the second image features are unrecognized, a recognition result in which the user is not recognized is generated; otherwise, a recognition result in which the user is recognized is generated.
[0114] In this embodiment, each second image feature of each frame of the getting-off-vehicle video is identified as the user. If none of the second image features are identified, it is considered that the user does not exist in the getting-off-vehicle video, and the appeal result is that the user is not identified; otherwise, the user is identified.
[0115] In the second step, if the recognition result is that the user is not recognized, a complaint result indicating that the complaint failed is returned.
[0116] In this embodiment, a complaint result indicating a failed complaint is generated according to the recognition result that the user is not recognized, and the complaint result is sent to the client.
[0117] In the third step, if the recognition result is that the user is recognized, the movement trajectory of the user is obtained, and it is determined according to the movement trajectory whether the user has gotten off the bus. If so, it is determined that the user has gotten off the bus and a successful appeal result is returned. Otherwise, a failed appeal result is returned, which specifically includes:
[0118] First, positions of the identified second image features are calculated respectively to generate at least one motion trajectory of the user.
[0119] In this embodiment, data conversion is performed on all recognized second image features, and at least one motion trajectory of the user is generated according to the position information of each second image feature.
[0120] Secondly, it is determined whether each of the motion trajectories intersects with the preset door position. If so, it is determined that the user has gotten off the vehicle and a successful appeal result is returned; otherwise, a failed appeal result is returned.
[0121] In this embodiment, the position coordinates of the motion trajectory are compared with the position coordinates of the door position of the preset toll-deducting vehicle: if the position coordinates of the user's motion trajectory intersect with the door coordinates, it indicates that the user got off at the station and is judged that the user forgot to swipe the card and is overcharged, and a successful appeal result is generated; otherwise, it is judged that the user did not get off at the station and is not overcharged, and a failed appeal result is generated; thereby realizing the judgment of whether the user has got off the vehicle, and generating a complaint result based on the judgment result.
[0122] It is worth noting that when there are multiple motion trajectories, each motion trajectory can be used for judgment separately, or the longest motion trajectory can be selected for judgment, and this application does not impose any restrictions on this.
[0123] 8. The complaint server sends the complaint result to the client.
[0124] 9. The client receives and displays the appeal result.
[0125] The client displays the appeal result on a display unit. In this embodiment, the client displays the appeal result on a display screen of a smart phone.
[0126] 10. If the appeal result is a failed appeal, the appeal server manually checks the first ride video and the second ride video in response to the administrator's operation and generates a manual appeal result, which is sent to the client to present the manual appeal result.
[0127] 11. The client receives and displays the manual appeal result.
[0128] In this embodiment, when the complaint server fails to identify the user through the image re-recognition model or fails to identify that the user has got off the bus at the get-off stop, a manual verification solution is also provided. For example, the administrator operating the complaint server manually verifies the first and second riding videos to confirm whether the user has gotten on and off the bus to determine whether there is a problem of over-deduction of fare, thereby improving the complaint method.
[0129] At this point, in the case of abnormal deductions of fees by public transportation, the user sends the riding parameters to the complaint server through the client to make a complaint request. The complaint server queries and determines the fare-deducting vehicle that the user has taken from the database of the public transportation company based on the riding parameters, and obtains the riding video of the user getting on and off the vehicle. Based on the user portrait selected by the user from the riding video, the image re-recognition model is used to identify whether the user's getting off the vehicle is shown in the getting off vehicle video. The complaint result is generated based on the recognition situation and sent to the client to present the complaint result. This embodiment can solve the problem of over-deduction of fare due to failure to swiping the card when getting off the vehicle in the prior art, and has practical application significance.
[0130] Corresponding to the complaint method provided in the above-mentioned embodiment, an embodiment of the present application also provides a complaint server that implements the above-mentioned complaint method. Since the complaint server provided in the embodiment of the present application corresponds to the complaint methods provided in the above-mentioned embodiments, the aforementioned implementation method is also applicable to the complaint server provided in this embodiment and will not be described in detail in this embodiment.
[0131] like Figure 4As shown, an embodiment of the present application also provides a complaint server, including a control unit, a communication unit and an image re-recognition unit, wherein the communication unit is configured to receive or send communication information from a client or a public transportation company database; the image re-recognition unit is configured to identify the user corresponding to the input image from the video according to the input image; the control unit is configured to receive riding parameters through the communication unit, and obtain a first riding video and a second riding video related to the riding parameters from the public transportation company database according to the riding parameters, send the first riding video to the client and receive at least one image including a user portrait returned by the client, identify whether the user has got off the vehicle from the second riding video according to the user portrait through the image re-recognition unit and generate a complaint result, and send the complaint result to the client to present the complaint result.
[0132] In an optional embodiment, if Figure 4 As shown, the complaint server also includes a manual verification unit, which is configured to manually verify the first ride video and the second ride video in response to the administrator's operation and generate a manual complaint result, and send the manual complaint result to the client to present the manual complaint result.
[0133] In another optional embodiment, the image re-identification unit includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein the first convolutional network receives the user portrait and extracts a first image feature, and performs square difference calculation with the second image feature extracted by the second convolutional network from a frame of image in the second ride video to generate a third image feature; the third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function identifies the predicted probability that the first image feature and the second image feature are the same individual.
[0134] like Figure 5 As shown, an embodiment of the present invention provides a method for complaining about abnormal deductions of fees in public transportation, which is applied to a client and includes: in response to user operation, obtaining riding parameters and sending them to a complaint server; receiving a first riding video, and in response to the user operation, selecting at least one image including the user and selecting the user portrait therefrom; sending the image to the complaint server; receiving and displaying a complaint result, the complaint result comes from the complaint server identifying whether the user has got off the vehicle from a second riding video based on the user portrait through a preset image re-recognition model, and if so, the complaint result is a successful complaint, otherwise it is a failed complaint; the first riding video and the second riding video are from video clips obtained by the complaint server from a public transportation company database based on the riding parameters.
[0135] In an optional embodiment, if the appeal result is a failed appeal, the appeal method further includes: receiving and displaying a manual appeal result, the manual appeal result coming from a manual review of the first ride video and the second ride video by an administrator operating the appeal server.
[0136] Corresponding to the above embodiment, Figure 6 As shown, an embodiment of the present application also provides a client, including an input unit, a communication unit, a selection unit and a display unit, wherein the input unit is configured to obtain riding parameters in response to user operations; the selection unit is configured to select an image including a user and a user portrait from a first riding video in response to user operations, wherein the first riding video comes from a video clip obtained by a complaint server from a public transportation company database based on the riding parameters; the communication unit is configured to communicate with the complaint server, send the riding parameters, receive the first riding video, send the user portrait and receive the complaint result; the display unit is configured to display the complaint result.
[0137] like Figure 7 As shown, an embodiment of the present application also provides a complaint system for abnormal fare deductions in public transportation, including a public transportation company database, the above-mentioned complaint server and a client; wherein the public transportation company database is configured to obtain a first riding video and a second riding video according to the riding parameters sent by the complaint server and send them to the complaint server.
[0138] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: receiving riding parameters and sending them to a public transportation company database to obtain a first riding video and a second riding video related to the riding parameters, wherein the riding parameters come from a client in response to user operations; receiving the first riding video and the second riding video, and sending the first riding video to the client so that the client selects at least one image including the user and selects a user portrait in response to the user operation; receiving the image, identifying from the second riding video whether the user has got off the vehicle based on the user portrait through a preset image re-recognition model and generating a complaint result, and sending the complaint result to the client to present the complaint result.
[0139] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: in response to user operations, obtaining riding parameters and sending them to a complaint server; receiving a first riding video, and in response to user operations, selecting at least one image including the user and selecting a user portrait therefrom; sending the image to the complaint server; receiving and displaying a complaint result, the complaint result coming from the complaint server identifying whether the user has got off the vehicle from a second riding video based on the user portrait through a preset image re-recognition model, and if so, the complaint result is a successful complaint, otherwise, the complaint fails; the first riding video and the second riding video are from video clips obtained by the complaint server from a public transportation company database based on the riding parameters.
[0140] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media 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 the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0141] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0142] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0143] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0144] like Figure 8 As shown, a structural schematic diagram of a computer device provided by another embodiment of the present invention. Figure 8 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.
[0145] like Figure 8 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).
[0146] 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.
[0147] 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.
[0148] 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 8 not shown, usually called a "hard drive"). Although Figure 8 Not 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.
[0149] 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.
[0150] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or 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 through 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) through a network adapter 20. Figure 8 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with 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.
[0151] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a method for complaining about abnormal deductions of public transportation provided in an embodiment of the present invention.
[0152] In view of the existing problems, the present invention develops a complaint method, a complaint server, a client and a complaint system. The complaint server obtains a first riding video and a second riding video from a public transportation company database according to riding parameters, obtains a user portrait of the passenger through the first riding video, and identifies whether the user has got off the vehicle from the second riding video through a preset image re-recognition model based on the user portrait to generate a complaint result, thereby compensating for the problems in the prior art and having practical application significance.
[0153] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.
Claims
1. A method for appealing against abnormal deductions of fees for public transportation, applied to a complaint server, characterized in that: include: receiving a ride parameter and sending it to a public transportation company database to obtain a first ride video and a second ride video related to the ride parameter, wherein the ride parameter comes from a client in response to a user operation; receiving the first riding video and the second riding video, and sending the first riding video to the client so that the client selects at least one image including the user and selects a user portrait in response to a user operation; Receive the image, identify from the second riding video whether the user has gotten off the vehicle based on the user portrait through a preset image re-recognition model and generate a complaint result. If so, the complaint result is successful, otherwise, the complaint fails, and the complaint result is sent to the client to present the complaint result.
2. The complaint method according to claim 1, characterized in that: The receiving of the image, identifying whether the user has got off the vehicle from the second riding video according to the user portrait by using a preset image re-recognition model and generating a complaint result, and sending the complaint result to the client to present the complaint result specifically includes: Inputting the user portrait into the image re-recognition model to obtain a first image feature, identifying the user from the second riding video according to the first image feature and generating a recognition result; If the identification result is that the user is not identified, a complaint result indicating that the complaint failed is returned; If the recognition result is that the user is recognized, the movement trajectory of the user is obtained, and it is determined according to the movement trajectory whether the user has got off the bus. If so, it is determined that the user has got off the bus and a successful appeal result is returned, otherwise a failed appeal result is returned; The appeal result is sent to the client to present the appeal result.
3. The complaint method according to claim 2, characterized in that: The step of inputting the user portrait into the image re-recognition model to obtain a first image feature, and recognizing the user from the second riding video according to the first image feature and generating a recognition result specifically includes: Inputting the user portrait into the image re-recognition model to generate a first image feature; Performing human body detection on each frame of the second riding video to generate image blocks, and inputting each image block into the image re-recognition model to generate second image features corresponding to each image block; Calculating the similarity between each of the second image features and the first image feature respectively, and comparing them with a preset similarity threshold, and marking the corresponding second image feature as recognized if the similarity threshold is met, otherwise as unrecognized; If all the second image features are unrecognized, generating a recognition result that does not recognize the user, otherwise generating a recognition result that recognizes the user; If the recognition result is that the user is recognized, the movement trajectory of the user is obtained, and whether the user has got off the bus is determined according to the movement trajectory. If so, it is determined that the user has gotten off the bus and a successful appeal result is returned. Otherwise, a failed appeal result is returned. Specifically, the following includes: respectively calculating the position of each identified second image feature and generating at least one motion trajectory of the user; It is determined whether each of the motion trajectories intersects with the preset door position. If so, it is determined that the user has got off the vehicle and a successful appeal result is returned; otherwise, a failed appeal result is returned.
4. The complaint method according to any one of claims 1 to 3, characterized in that: The image re-identification model includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein The first convolution network receives the user portrait and extracts a first image feature, performs square difference calculation with the second image feature extracted by the second convolution network receiving a frame of image in the second ride video, and generates a third image feature; The third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function is used to identify the predicted probability that the first image feature and the second image feature are the same individual.
5. The complaint method according to claim 4, characterized in that: The receiving of the riding parameters and sending the receiving parameters to the public transportation company database to obtain the first riding video and the second riding video related to the riding parameters specifically includes: Obtaining all GPS locations of multiple vehicles within the operating time range from the public transportation company database according to the bus route and travel direction of the riding parameters; According to the riding time range, the boarding station and the alighting station of the riding parameters, the plurality of vehicles are matched to determine the fare-collecting vehicle taken by the user, and the boarding time and alighting time of the user are obtained from the public transportation company database; Acquire a first riding video and a second riding video from the public transportation company database according to the toll-deducting vehicle, the boarding time and the alighting time; and / or If the appeal result is that the appeal fails, the appeal method further includes: In response to the administrator's operation, the first ride video and the second ride video are manually checked and a manual appeal result is generated, and the manual appeal result is sent to the client to present the manual appeal result.
6. A method for appealing against abnormal deductions of public transportation, applied to a client, characterized in that: include: In response to user operations, obtaining ride parameters and sending them to the complaint server; receiving a first riding video, and selecting at least one image including the user and selecting a user portrait from the first riding video in response to a user operation; sending the image to the complaint server; Receive and display the appeal result, the appeal result comes from the appeal server identifying whether the user has got off the bus based on the user portrait through a preset image re-recognition model from the second riding video, if so, the appeal result is successful, otherwise, the appeal is unsuccessful; The first riding video and the second riding video are video clips obtained by the complaint server from a public transportation company database according to the riding parameters.
7. The complaint method according to claim 6, characterized in that: If the appeal result is that the appeal fails, the appeal method further includes: Receive and display a manual appeal result, where the manual appeal result comes from a manual review of the first ride video and the second ride video by an administrator operating the appeal server.
8. A complaint server for executing the complaint method according to any one of claims 1 to 5, characterized in that: It includes a control unit, a communication unit and an image re-recognition unit, wherein: The communication unit is configured to receive or send communication information from a client or a public transportation company database; The image re-recognition unit is configured to recognize a user corresponding to the input image from the video according to the input image; The control unit is configured to receive riding parameters through the communication unit, and obtain a first riding video and a second riding video related to the riding parameters from a public transportation company database based on the riding parameters, send the first riding video to the client and receive at least one image including a user portrait returned by the client, identify from the second riding video based on the user portrait through the image re-recognition unit whether the user has got off the vehicle and generate an appeal result. If so, the appeal result is a successful appeal, otherwise, the appeal fails, and the appeal result is sent to the client to present the appeal result.
9. The complaint server according to claim 8, characterized in that: The image re-identification unit includes a first convolutional network, a second convolutional network, a batch normalization layer, a fully connected layer and an activation function, wherein The first convolution network receives the user portrait and extracts a first image feature, performs square difference calculation with the second image feature extracted by the second convolution network receiving a frame of image in the second ride video, and generates a third image feature; The third image feature is processed by the batch normalization layer and the fully connected layer, and the activation function is used to identify the predicted probability that the first image feature and the second image feature are the same individual; and / or The complaint server also includes a manual verification unit, which is configured to manually verify the first ride video and the second ride video in response to the administrator's operation and generate a manual complaint result, and send the manual complaint result to the client to present the manual complaint result.
10. A client for executing the complaint method according to any one of claims 6 to 7, characterized in that: It includes an input unit, a communication unit, a selection unit and a display unit, wherein The input unit is configured to obtain riding parameters in response to user operations; The selection unit is configured to select an image including the user and a user portrait from a first ride video in response to a user operation, wherein the first ride video is a video clip obtained by the complaint server from a database of a public transportation company according to the ride parameters; The communication unit is configured to communicate with the complaint server, send the riding parameters, receive the first riding video, send the user portrait and receive the complaint result; The display unit is configured to display the appeal result.
11. A complaint system for abnormal fare deductions in public transportation, characterized in that: comprising a public transport company database, a complaint server as claimed in claim 8 or 9, and a client as claimed in claim 10; The public transportation company database is configured to obtain the first riding video and the second riding video according to the riding parameters sent by the complaint server and send them to the complaint server.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented; and / or When the program is executed by a processor, the method as claimed in claim 6 or 7 is implemented.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented; and / or When the processor executes the program, the method according to claim 6 or 7 is implemented.
