Waybill Recognition Method, Device, Computer Equipment, and Storage Medium
By obtaining and querying the waybill data and identifying the waybill to be verified, the time-limit delay caused by one order in logistics distribution is solved, and the old waybills are automatically identified and timely verified, reducing the circulation cost and delay risks.
Patent Information
- Application Number
- CN202011423724.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2040-12-08
AI Technical Summary
In logistics distribution, due to human negligence, some packaging boxes may cause the old waybill to be lost, resulting in a long order, resulting in a confusion of paths, delayed timeliness and misrouts in data routing, affecting logistics companies and customers.
By obtaining the waybill scanning data of the express delivery to be shipped, check the waybill operation data associated with the waybill identification logo to be identified, and identify whether the waybill corresponding to the waybill identification logo to be identified is a waybill to be verified based on the waybill operation data.
It realizes automatic identification of whether the express delivery carries old waybills before the express delivery is shipped, timely verification and intercept and correction, reducing circulation costs and reducing time-limit delays.
Smart Images

Figure CN114612031B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of logistics technologies, and particularly to a waybill identification method, device, computer device, and storage medium. Background Art
[0002] With the development of Internet technologies and e-commerce platforms, more and more people tend to shop online, so that logistics services play an increasingly important role in society. In logistics distribution, in order to prevent waste of resources, the outer packaging of express items is often reused. The recipient will use the packaging box that has been delivered to pack new express items. Before use, the recipient needs to tear off the old waybill on the packaging box and stick a new waybill.
[0003] Due to human negligence, it may lead to the situation that some packaging boxes are not torn off the old waybill. This situation will result in two or more waybills (referred to as multiple waybills for one item) on the packaging box of an express. One of them is new and valid, and the other one or more are old and invalid. For such an express during the circulation process, if the old waybill is scanned, it may be routed according to the destination of the old waybill, resulting in chaotic routes and delayed timeliness. There will also be phenomena such as routing confusion and difficulty in distinguishing true from false in terms of data, thus causing adverse effects on logistics companies and customers. Therefore, it is necessary to verify whether the current express carries an old waybill before shipment.
[0004] Currently, the method for identifying old waybills relies on manual work. Generally, after manually discovering anomalies during the circulation process of an express, the old waybill is identified by the method of restoring waybill routing data. However, this method can only identify after the event and cannot solve the problem of delayed timeliness. Summary of the Invention
[0005] Based on this, it is necessary to provide a waybill identification method, device, computer device, and storage medium that can reduce timeliness delays for the above technical problems.
[0006] A waybill identification method, the method includes:
[0007] Obtain the waybill scan data of the express to be shipped, where the waybill scan data includes the waybill identifier to be identified;
[0008] Query the waybill operation data associated with the waybill identifier to be identified;
[0009] According to the waybill operation data, identify whether the waybill corresponding to the waybill identifier to be identified is the waybill to be verified.
[0010] A waybill identification device, the device includes:
[0011] An obtaining module, configured to obtain the waybill scan data of the express to be shipped, where the waybill scan data includes the waybill identifier to be identified;
[0012] A query module, configured to query waybill operation data associated with the waybill identification to be recognized;
[0013] An identification module, configured to identify whether the waybill corresponding to the waybill identification to be recognized is a waybill to be verified according to the waybill operation data.
[0014] A computer device, comprising a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0015] Obtain waybill scanning data of an express delivery to be shipped, where the waybill scanning data includes a waybill identification to be recognized;
[0016] Query waybill operation data associated with the waybill identification to be recognized;
[0017] According to the waybill operation data, identify whether the waybill corresponding to the waybill identification to be recognized is a waybill to be verified.
[0018] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0019] Obtain waybill scanning data of an express delivery to be shipped, where the waybill scanning data includes a waybill identification to be recognized;
[0020] Query waybill operation data associated with the waybill identification to be recognized;
[0021] According to the waybill operation data, identify whether the waybill corresponding to the waybill identification to be recognized is a waybill to be verified.
[0022] In the above waybill identification method, device, computer device and storage medium, waybill scanning data of an express delivery to be shipped is obtained, and the waybill scanning data includes a waybill identification to be recognized; waybill operation data associated with the waybill identification to be recognized is queried; according to the waybill operation data, it is identified whether the waybill corresponding to the waybill identification to be recognized is a waybill to be verified. Accordingly, before the express delivery is shipped, it can be automatically identified according to the waybill operation data whether the express delivery carries an old waybill, so as to timely verify and intercept and correct the possible old waybill, achieve in-process identification and control, reduce the circulation cost, and reduce the time delay. Description of the Drawings
[0023] Figure 1 It is a schematic flowchart of a waybill identification method in an embodiment;
[0024] Figure 2 It is a schematic flowchart of a method for determining a blacklist of operation identifiers in an embodiment;
[0025] Figure 3 Schematic flowchart of a method for determining the minimum abnormal duration in an embodiment;
[0026] Figure 4 Schematic flowchart of a waybill recognition method in an embodiment;
[0027] Figure 5 Structural block diagram of a waybill recognition device in an embodiment;
[0028] Figure 6 Internal structure diagram of a computer device in an embodiment;
[0029] Figure 7 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0030] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0031] In an embodiment, as Figure 1 shown, a waybill recognition method is provided. In this embodiment, it is exemplified that this method is applied to a terminal. It can be understood that this method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps S102 to step S106.
[0032] S102, Obtain the waybill scanning data of the express delivery to be shipped. The waybill scanning data includes the waybill identifier to be recognized.
[0033] The express delivery to be shipped is an express delivery that has been packaged and is waiting to be shipped. The waybill scanning data is the data obtained by scanning the waybill carried on the outer package (such as a packaging box) of the express delivery to be shipped. The waybill identifier to be recognized is the waybill identifier included in the waybill scanning data of the express delivery to be shipped, and specifically may be a waybill number, which is used to distinguish different waybills, and each waybill corresponds to a unique waybill identifier.
[0034] It should be noted that when the packaging box of the express to be shipped is scanned by the scanning machine, due to the scanning range and accuracy of the machine, the machine may not be able to scan all the waybill information carried by the packaging box. In most cases, only one waybill information can be scanned, that is, if there are multiple waybills on the packaging box, the waybill scanning data obtained by scanning may include multiple waybill identification numbers to be recognized, or may only include one waybill identification number to be recognized. In one embodiment, regardless of whether the waybill scanning data includes multiple waybill identification numbers to be recognized or one waybill identification number to be recognized, the waybill corresponding to each waybill identification number to be recognized is identified to determine whether the waybill needs to be verified.
[0035] S104. Query the waybill operation data associated with the waybill identification number to be recognized.
[0036] The waybill operation data is the operation data of the waybill during the circulation process, which can specifically be the operation data of the handheld scanner. Each waybill operation data includes a waybill identification number and related operation information, that is, each waybill operation data is associated with a unique waybill identification number, and the related operation information may include, but is not limited to, information such as operation time, operation site code, operator, operation code, etc. All the waybill operation data that has been carried out is stored in the operation database of the logistics system, and the waybill operation data associated with the waybill identification number to be recognized can be queried from the operation database.
[0037] S106. According to the waybill operation data, identify whether the waybill corresponding to the waybill identification number to be recognized is a waybill to be verified.
[0038] It can be understood that for a waybill identification number to be recognized, there are two possible situations for its corresponding waybill. One is a normal waybill that can continue to be shipped, and the other is an old and invalid waybill. According to the waybill operation data associated with the waybill identification number to be recognized, it can be identified which situation its corresponding waybill belongs to. The waybill to be verified refers to an old and invalid waybill, which means that when a waybill to be verified is automatically recognized, it can be further manually verified and intercepted for correction.
[0039] In the above waybill identification method, the waybill scanning data of the express to be shipped is obtained, and the waybill scanning data includes the waybill identification number to be recognized; the waybill operation data associated with the waybill identification number to be recognized is queried; according to the waybill operation data, it is identified whether the waybill corresponding to the waybill identification number to be recognized is a waybill to be verified. Accordingly, before the express is shipped, it can be automatically identified according to the waybill operation data whether the express carries an old waybill, so as to timely verify and intercept and correct the possible old waybill, achieving in-process identification and control, reducing the circulation cost, and reducing the time delay.
[0040] In one embodiment, the step of identifying whether the waybill corresponding to the waybill identifier to be identified is a waybill to be verified according to the waybill operation data may specifically include: when the waybill operation data includes a delivery operation identifier, determining that the waybill corresponding to the waybill identifier to be identified is a waybill to be verified.
[0041] The delivery operation identifier is used to represent the delivery operation, and specifically may be a delivery operation code (80). The fact that the waybill operation data includes the delivery operation identifier indicates that the waybill corresponding to the waybill identifier to be identified has undergone a delivery operation. A waybill having undergone a delivery operation means that the logistics transfer operation of the waybill has ended, and generally will not be scanned again and then enter the shipping process. Therefore, when the waybill operation data associated with the waybill identifier carried by the express to be shipped includes the delivery operation identifier, it is considered that the waybill identifier may be an old waybill identifier, and thus it is determined that the waybill corresponding to the waybill identifier is a waybill to be verified. At this time, a prompt may be issued to prompt the staff to verify in time whether there is a phenomenon of multiple waybills for the express to be shipped.
[0042] In one embodiment, considering the normal post-processing operations (such as redirection, return, etc.) after the delivery operation, these normal post-processing operations can be further excluded. That is, when the waybill operation data associated with the waybill identifier carried by the express to be shipped includes the delivery operation identifier and does not include the normal post-processing operation identifier, it is determined that the waybill corresponding to the waybill identifier is a waybill to be verified, and accordingly, the recognition accuracy can be further improved.
[0043] In one embodiment, the step of identifying whether the waybill corresponding to the waybill identifier to be identified is a waybill to be verified according to the waybill operation data may specifically include: when the waybill operation data includes a delivery operation identifier and an abnormal operation identifier belonging to a pre-determined operation identifier blacklist, determining that the waybill corresponding to the waybill identifier to be identified is a waybill to be verified; wherein, the abnormal operation identifier is the identifier of the first operation after the delivery operation.
[0044] The first operation performed after the delivery operation is defined as an abnormal operation, and the abnormal operation identifier is used to represent the abnormal operation. For example, if the first operation after the delivery operation is a sorting operation, the abnormal operation identifier is the sorting operation identifier (such as the sorting operation code 60). It can be understood that when the waybill corresponding to a waybill identifier is scanned again after the delivery operation, it indicates that the waybill has undergone subsequent operations after the delivery operation, that is, the waybill has undergone an abnormal operation, and thus the waybill operation data associated with the waybill identifier will include both the delivery operation identifier and the abnormal operation identifier.
[0045] The operation identification blacklist is an operation identification blacklist determined in advance according to the historical waybill operation data of old waybills. The operation identifications in the operation identification blacklist can be understood as the abnormal operation identifications of old waybills that are wrongly re-circulated. When the abnormal operation identification associated with the waybill identification to be recognized belongs to the operation identification blacklist, it indicates that the waybill corresponding to the waybill identification to be recognized is more likely to be an old waybill that is wrongly re-circulated. Therefore, when the waybill identification carried by the express to be shipped is associated with a delivery operation identification and the associated abnormal operation identification belongs to the operation identification blacklist, it is considered that the waybill identification may be an old waybill identification, and thus it is determined that the waybill corresponding to the waybill identification is a waybill to be verified. At this time, a prompt can be issued to prompt the staff to verify in time whether there is a phenomenon of multiple waybills for the express to be shipped. Accordingly, based on the two-fold judgment of the delivery operation identification and the operation identification blacklist, the recognition accuracy can be further improved.
[0046] In one embodiment, the step of identifying whether the waybill corresponding to the waybill identification to be recognized is a waybill to be verified according to the waybill operation data may specifically include: when the waybill operation data includes a delivery operation identification and an abnormal operation identification belonging to a pre-determined operation identification blacklist, and the corresponding abnormal duration is greater than a pre-determined minimum abnormal duration, it is determined that the waybill corresponding to the waybill identification to be recognized is a waybill to be verified; wherein, the abnormal operation identification is the identification of the first operation after the delivery operation, and the abnormal duration is the time difference between the abnormal operation time and the delivery operation time.
[0047] The first operation after the delivery operation is defined as an abnormal operation, and the abnormal operation identification is used to represent the abnormal operation. The delivery operation time is the operation time corresponding to the delivery operation, and the abnormal operation time is the operation time corresponding to the abnormal operation, both of which can be obtained from the waybill operation data. The abnormal duration is the time difference between the abnormal operation time and the delivery operation time, which can be understood as the time interval between the abnormal operation and the delivery operation. For example, if in the waybill operation data associated with a waybill identification, the delivery operation time is 12:00 on May 1, 2020, and the abnormal operation time is 12:00 on May 2, 2020, then the abnormal duration corresponding to the waybill identification is 86,400 seconds.
[0048] The minimum abnormal duration is the minimum abnormal duration determined in advance according to the historical waybill operation data of the old waybill. The minimum abnormal duration can be understood as the minimum time interval between the abnormal operation and the delivery operation of the old waybill that is wrongly re-circulated. The longer the abnormal duration corresponding to the waybill identifier to be recognized, the more likely it is that the waybill corresponding to the waybill identifier to be recognized is an old waybill that is wrongly re-circulated. Therefore, when the waybill identifier carried by the express to be shipped is associated with a delivery operation identifier, and the associated abnormal operation identifier belongs to the blacklist of operation identifiers, and the corresponding abnormal duration is greater than the minimum abnormal duration, it is considered that the waybill identifier may be an old waybill identifier, and thus it is determined that the waybill corresponding to the waybill identifier is a waybill to be verified. At this time, a prompt can be issued to prompt the staff to timely verify whether there is a phenomenon of multiple waybills for the express to be shipped. Accordingly, based on the triple judgment of the delivery operation identifier, the blacklist of operation identifiers, and the minimum abnormal duration, the recognition accuracy can be further improved.
[0049] In one embodiment, as Figure 2 shown, the method for determining the blacklist of operation identifiers includes the following steps S202 to S206.
[0050] S202, obtain the historical waybill scanning data of historical express deliveries, where the historical waybill scanning data includes historical waybill identifiers.
[0051] The historical express deliveries can be the shipped express deliveries within a historical period (for example, 30 days before the current date). The historical waybill scanning data is the waybill scanning data within this historical period, and the historical waybill identifier is the waybill identifier included in the historical waybill scanning data.
[0052] S204, screen out the target waybill identifiers from the historical waybill identifiers. The target waybill identifiers have a one-waybill-for-multiple-items label, and their associated historical waybill operation data includes a delivery operation identifier and does not include a normal post-processing operation identifier.
[0053] It can be understood that the historical waybill identifiers include multiple waybill identifiers, which can be divided into two categories. The first category is one waybill for one item, and the second category is one waybill for multiple items. One waybill for one item is used to indicate that the waybill identifier belonging to the one-waybill-for-one-item category is not scanned from the same express outer package as other waybill identifiers. One waybill for multiple items is used to indicate that the waybill identifier belonging to the one-waybill-for-multiple-items category is scanned from the same express outer package as at least one other waybill identifier. In one embodiment, when the scanning machine scans out multiple waybill identifiers from the same express delivery, a "one waybill for multiple items" label will be attached to these multiple waybill identifiers, so that the waybill identifiers belonging to the one-waybill-for-multiple-items category can be screened out according to the "one waybill for multiple items" label. As shown in Table 1 below, an embodiment shows the waybill identifiers of the one-waybill-for-multiple-items category and their scanning times.
[0054] Table 1
[0055] Waybill Number Scanning Time 111111 2020 / 5 / 1 12:00 222222 2020 / 5 / 1 12:00 333333 2020 / 5 / 1 12:00 444444 2020 / 5 / 2 12:00 555555 2020 / 5 / 2 12:00 666666 2020 / 5 / 3 12:00 777777 2020 / 5 / 4 12:00 888888 2020 / 5 / 4 12:00
[0056] The waybill identifiers of the multi-waybill type can be divided into two sub-types. The first sub-type is the normal waybill identifier, and the second sub-type is the abnormal waybill identifier. Specifically, it can be determined which sub-type a waybill identifier of the multi-waybill type belongs to by judging whether the historical waybill operation data associated with the waybill identifier includes a delivery operation identifier and a normal post-processing operation identifier. In one embodiment, the normal post-processing operation identifier refers to a transfer / return operation identifier (such as transfer / return operation code 70). For a waybill identifier of the multi-waybill type, when the historical waybill operation data associated with it includes a delivery operation identifier and does not include a transfer / return operation identifier, it is considered an abnormal waybill identifier, and an "abnormal" label is attached to it, so that abnormal waybill identifiers can be screened out according to the "abnormal" label. As shown in Table 2 below, the abnormal situations of each waybill identifier in Table 1 are shown.
[0057] Table 2
[0058] Waybill Number Whether Abnormal 111111 Yes 222222 No 333333 Yes 444444 No 555555 Yes 666666 Yes 777777 Yes 888888 Yes
[0059] Take the abnormal waybill identifiers as the target waybill identifiers for subsequent processing. As shown in Table 3 below, the target waybill identifiers selected from Table 2 are shown.
[0060] Table 3
[0061] Waybill Number Whether Abnormal 111111 Yes 333333 Yes 555555 Yes 666666 Yes 777777 Yes 888888 Yes
[0062] S206. Determine an operation identifier blacklist according to the historical abnormal operation identifiers associated with each target waybill identifier.
[0063] Define the first operation after the historical delivery operation as the historical abnormal operation, and the historical abnormal operation identifier is used to represent the historical abnormal operation. In one embodiment, the step of determining the operation identifier blacklist according to the historical abnormal operation identifiers associated with each target waybill identifier may specifically include the following steps: According to the historical abnormal operation identifiers associated with each target waybill identifier, count the number of target waybill identifiers corresponding to each historical abnormal operation identifier; Add the historical abnormal operation identifiers whose corresponding number of target waybill identifiers meets the quantity requirement to the operation identifier blacklist.
[0064] It can be understood that for different target waybill identifiers, the historical abnormal operation identifiers associated with them may be the same or different. As shown in Table 4 below, the historical abnormal operation identifiers of each target waybill identifier in Table 3 are shown.
[0065] Table 4
[0066] Waybill Number Historical Abnormal Operation Identifier 111111 30 333333 60 555555 60 666666 60 777777 75 888888 30
[0067] According to Table 4, the number of target waybill identifiers corresponding to each historical abnormal operation identifier can be counted. Among them, the numbers of target waybill identifiers corresponding to historical abnormal operation identifiers 60, 30, and 75 are 3, 2, and 1 respectively.
[0068] In one embodiment, historical abnormal operation identifiers whose corresponding numbers of target waybill identifiers meet the quantity requirements are added to the blacklist of operation identifiers.
[0069] It can be understood that the more the number of target waybill identifiers corresponding to a historical abnormal operation identifier, the more likely the operation represented by this historical abnormal operation identifier is an actual abnormal operation. Therefore, historical abnormal operation identifiers whose corresponding numbers of target waybill identifiers meet the quantity requirements are added to the blacklist of operation identifiers.
[0070] In one embodiment, when the number of corresponding target waybill identifiers is greater than or equal to the number of target waybill identifiers at the first preset ratio among all the numbers of target waybill identifiers, it is determined that the number of corresponding target waybill identifiers meets the quantity requirements.
[0071] Among them, the first preset ratio can be set according to the actual situation and is not limited here. For example, it can be set to 90%. In one of the embodiments, the numbers of target waybill identifiers corresponding to each historical abnormal operation identifier can be sorted from more to less, with the serial number starting from 1 and increasing from small to large. As shown in Table 5 below, it shows the sorting situation of the numbers of target waybill identifiers corresponding to each historical abnormal operation identifier in Table 4.
[0072] Table 5
[0073] Historical Abnormal Operation Identifier Target Waybill Identifier Quantity Serial Number 60 3 1 30 2 2 75 1 3
[0074] The percentile function can be used to calculate the 90th percentile serial number in Table 5. percentile([1, 2, 3], 90%) = 2.8. Rounding down, the 90th percentile serial number is obtained as 2, and the corresponding number of target waybill identifiers is 2. Historical abnormal operation identifiers whose corresponding numbers of target waybill identifiers are greater than or equal to 2 are added to the blacklist of operation identifiers, that is, 60 and 30 are added to the blacklist of operation identifiers, and 75 is not added to the blacklist of operation identifiers. Among them, 60 represents the sorting operation, 30 represents the loading operation, and 75 represents the operation of putting into the post station, indicating that the abnormal operations of old waybills are more logistics transfer operations, such as 60 and 30, rather than delivery link types, such as 75.
[0075] In the above embodiment, by analyzing and mining historical data, obtaining the blacklist of abnormal operation identifiers helps to automatically identify abnormal waybills, reduce manual processing links, improve the identification efficiency, and can cover a variety of possible abnormal scenarios, with a more comprehensive identification range.
[0076] In one embodiment, such asFigure 3 As shown in Figure 3 , the method for determining the minimum abnormal duration includes the following steps S302 to S306.
[0077] S302. Obtain the historical waybill scanning data of historical express deliveries, where the historical waybill scanning data includes historical waybill identifiers.
[0078] S304. Screen out target waybill identifiers from the historical waybill identifiers. The target waybill identifiers have the one-way-multiple-waybills label, and the associated historical waybill operation data includes the delivery operation identifier and does not include the normal post-processing operation identifier.
[0079] For the descriptions of steps S302 to S304, reference can be made to the descriptions of steps S202 to S204 in the foregoing embodiments, which will not be elaborated here.
[0080] S306. Determine the minimum abnormal duration according to the historical delivery operation time and the historical abnormal operation time associated with each target waybill identifier.
[0081] In one embodiment, the step of determining the minimum abnormal duration according to the historical delivery operation time and the historical abnormal operation time associated with each target waybill identifier may specifically include the following steps: Obtain the historical abnormal duration corresponding to each target waybill identifier according to the time difference between the historical abnormal operation time and the historical delivery operation time associated with each target waybill identifier; Based on each historical abnormal duration, determine the minimum abnormal duration, and the minimum abnormal duration is greater than the historical abnormal durations that account for the second preset ratio among all historical abnormal durations.
[0082] For any target waybill identifier, the corresponding historical abnormal duration is the time difference obtained by subtracting the historical delivery operation time from the historical abnormal operation time. As shown in Table 6 below, the historical delivery operation time, the historical abnormal operation time, and the historical abnormal duration corresponding to each target waybill identifier in Table 3 are shown.
[0083] Table 6
[0084]
[0085]
[0086] Based on each historical abnormal duration, determine the minimum abnormal duration, where the minimum abnormal duration is greater than the historical abnormal durations that account for the second preset ratio among all historical abnormal durations. The second preset ratio can be set according to the actual situation and is not limited here. For example, it can be set to 90%. In one embodiment, the historical abnormal durations can be sorted from largest to smallest, and the 90th percentile of the historical abnormal durations can be calculated using the percentile function, percentile([115200,108000,86400,39600,28800,21600],90%) = 111600, and 111600 seconds can be used as the minimum abnormal duration.
[0087] In the above embodiment, by analyzing and mining historical data to obtain the minimum abnormal duration and making a judgment in combination with the abnormal duration, it helps to further improve the accuracy of automatically identifying abnormal waybills.
[0088] In one embodiment, when the waybill scanning data of the express to be shipped includes at least two waybill identification numbers to be recognized, directly determine the waybill corresponding to the waybill identification number to be recognized as the waybill to be verified.
[0089] When the waybill scanning data of the express to be shipped includes at least two waybill identification numbers to be recognized, it indicates that at least two waybill information has been scanned by the scanning machine, meaning that the express to be shipped carries at least two waybills. In this case, a prompt can be directly sent to prompt the staff to verify the waybills carried by the express to be shipped in a timely manner and tear off the invalid waybills. It should be noted that it is also possible to identify the waybill corresponding to each waybill identification number to be recognized through the previous embodiments, so as to prompt the staff which waybill corresponding to the waybill identification number to be recognized is more likely to be an invalid waybill.
[0090] In one embodiment, as Figure 4 shown, a waybill identification method is provided, including the following steps S401 to step S408.
[0091] S401, obtain the waybill scanning data of the express to be shipped, where the waybill scanning data includes the waybill identification number to be recognized.
[0092] S402, determine whether the number of waybill identification numbers to be recognized is greater than 1. If so, enter step S407; if not, enter step S403.
[0093] S403, query the waybill operation data associated with the waybill identification number to be recognized.
[0094] S404, determine whether the waybill operation data includes a delivery operation identification. If so, enter step S405; if not, enter step S408.
[0095] S405. Determine whether the abnormal operation flag in the waybill operation data belongs to the operation flag blacklist. If so, go to step S406; if not, go to step S408.
[0096] S406. Determine whether the corresponding abnormal duration is greater than the minimum abnormal duration. If so, go to step S407; if not, go to step S408.
[0097] S407. Prompt to verify whether there is a phenomenon of multiple waybills for the express to be shipped.
[0098] S408. Continue the shipment.
[0099] For the specific descriptions of steps S401 - S408, reference can be made to the previous embodiments, which will not be elaborated here. In this embodiment, before the express is shipped, through triple judgments of the delivery operation flag, the operation flag blacklist, and the abnormal duration, the old waybills that the express may carry are automatically identified with high accuracy. Moreover, it can achieve early identification and in - process control, timely remind the staff to intercept and correct, improve the identification efficiency and feedback efficiency, thereby reducing the delay in timeliness and customer complaints.
[0100] It should be understood that although the steps in each flowchart involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in each flowchart involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps in other steps.
[0101] In one embodiment, as Figure 5 shown, a waybill recognition device 500 is provided, including: an acquisition module 510, a query module 520, and an identification module 530, where:
[0102] The acquisition module 510 is used to acquire the waybill scan data of the express to be shipped, and the waybill scan data includes the waybill identification to be recognized.
[0103] The query module 520 is used to query the waybill operation data associated with the waybill identification to be recognized.
[0104] The identification module 530 is used to identify whether the waybill corresponding to the waybill identification to be recognized is the waybill to be verified according to the waybill operation data.
[0105] In one embodiment, the identification module 530 identifies whether the waybill corresponding to the waybill identification to be identified is a waybill to be verified according to the waybill operation data, specifically: when the waybill operation data includes a delivery operation identification, it determines that the waybill corresponding to the waybill identification to be identified is a waybill to be verified.
[0106] In one embodiment, the identification module 530 identifies whether the waybill corresponding to the waybill identification to be identified is a waybill to be verified according to the waybill operation data, specifically: when the waybill operation data includes a delivery operation identification and an abnormal operation identification belonging to a pre-determined operation identification blacklist, it determines that the waybill corresponding to the waybill identification to be identified is a waybill to be verified; wherein, the abnormal operation identification is the identification of the first operation after the delivery operation.
[0107] In one embodiment, the identification module 530 identifies whether the waybill corresponding to the waybill identification to be identified is a waybill to be verified according to the waybill operation data, specifically: when the waybill operation data includes a delivery operation identification and an abnormal operation identification belonging to a pre-determined operation identification blacklist, and the corresponding abnormal duration is greater than a pre-determined minimum abnormal duration, it determines that the waybill corresponding to the waybill identification to be identified is a waybill to be verified; wherein, the abnormal operation identification is the identification of the first operation after the delivery operation, and the abnormal duration is the time difference between the abnormal operation time and the delivery operation time.
[0108] In one embodiment, the device further includes a first determination module for determining the operation identification blacklist. The first determination module includes: a first acquisition unit, a first screening unit, and a first determination unit, wherein:
[0109] The first acquisition unit is used to acquire the historical waybill scanning data of historical express deliveries, and the historical waybill scanning data includes historical waybill identifications.
[0110] The first screening unit is used to screen out target waybill identifications from the historical waybill identifications. The target waybill identifications have a one-way-multiple-waybills label, and the associated historical waybill operation data includes a delivery operation identification and does not include a normal post-processing operation identification.
[0111] The first determination unit is used to determine the operation identification blacklist according to the historical abnormal operation identifications associated with each target waybill identification.
[0112] In one embodiment, when the first determination unit determines the operation identification blacklist according to the historical abnormal operation identifications associated with each target waybill identification, it is specifically used to: according to the historical abnormal operation identifications associated with each target waybill identification, count the number of target waybill identifications corresponding to each historical abnormal operation identification; add the historical abnormal operation identifications whose corresponding target waybill identification numbers meet the quantity requirements to the operation identification blacklist.
[0113] In one embodiment, the first determination unit is further configured to: when the quantity of the corresponding target waybill identifier is greater than or equal to the quantity of the target waybill identifiers that is the first preset ratio among all the target waybill identifiers, determine that the quantity of the corresponding target waybill identifier meets the quantity requirement.
[0114] In one embodiment, the apparatus further includes a second determination module configured to determine the minimum abnormal duration. The second determination module includes: a second acquisition unit, a second screening unit, and a second determination unit, where:
[0115] The second acquisition unit is configured to acquire historical waybill scanning data of historical express deliveries, where the historical waybill scanning data includes historical waybill identifiers.
[0116] The second screening unit is configured to screen out target waybill identifiers from the historical waybill identifiers. The target waybill identifiers have a one-piece multi-waybill label, and the associated historical waybill operation data includes a delivery operation identifier and does not include a normal post-processing operation identifier.
[0117] The second determination unit is configured to determine the minimum abnormal duration according to the historical delivery operation time and the historical abnormal operation time associated with each target waybill identifier.
[0118] In one embodiment, when determining the minimum abnormal duration according to the historical delivery operation time and the historical abnormal operation time associated with each target waybill identifier, the second determination unit is specifically configured to: obtain the historical abnormal duration corresponding to each target waybill identifier according to the time difference between the historical abnormal operation time and the historical delivery operation time associated with each target waybill identifier; based on each historical abnormal duration, determine the minimum abnormal duration, where the minimum abnormal duration is greater than the historical abnormal duration that is the second preset ratio among all the historical abnormal durations.
[0119] In one embodiment, the recognition module 530 is further configured to directly determine that the waybill corresponding to the to-be-recognized waybill identifier is a to-be-verified waybill when the waybill scanning data includes at least two to-be-recognized waybill identifiers.
[0120] For the specific limitations on the waybill recognition apparatus, reference may be made to the limitations on the waybill recognition method in the foregoing text, which will not be elaborated here. Each module in the foregoing waybill recognition apparatus may be implemented in whole or in part by software, hardware, and their combination. The foregoing modules may be embedded in the processor in the computer device in the form of hardware or independent of the processor, or may be stored in the memory in the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to the foregoing modules.
[0121] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 6As shown in the figure. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a waybill recognition method.
[0122] In one embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 7 shown in the figure. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through WIFI, a carrier network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a waybill recognition method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the shell of the computer device, or an external keyboard, a touchpad, or a mouse, etc.
[0123] Those skilled in the art can understand that Figure 6 or Figure 7 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0124] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in the above method embodiments.
[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in the above method embodiments.
[0126] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0127] It should be understood that the terms "first", "second", etc. in the above embodiments are only for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. For the description of a numerical range, the term "a plurality" is understood to be equal to or greater than two.
[0128] Those of ordinary skill in the art can understand that all or part of the processes of implementing the above method embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0129] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as within the scope described in this specification.
[0130] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A waybill recognition method, characterized in that, the method includes: Obtain the waybill scanning data of the express delivery to be shipped, and the waybill scanning data includes the waybill identifier to be recognized; Query the waybill operation data associated with the waybill identifier to be recognized; According to the waybill operation data, identify whether the waybill corresponding to the waybill identifier to be recognized is a waybill to be verified. Among them, according to the waybill operation data, identifying whether the waybill corresponding to the waybill identifier to be recognized is a waybill to be verified includes: When the waybill operation data includes a delivery operation identifier and an abnormal operation identifier belonging to a pre-determined operation identifier blacklist, and the corresponding abnormal duration is greater than the pre-determined minimum abnormal duration, determine that the waybill corresponding to the waybill identifier to be recognized is a waybill to be verified; among them, the abnormal operation identifier is the identifier of the first operation after the delivery operation, and the abnormal duration is the time difference between the abnormal operation time and the delivery operation time.
2. The method according to claim 1, characterized in that, the method for determining the operation identifier blacklist includes: Obtain the historical waybill scanning data of historical express deliveries, and the historical waybill scanning data includes historical waybill identifiers; Screen out the target waybill identifiers from the historical waybill identifiers. The target waybill identifiers have a one-way-multiple-waybills label, and the associated historical waybill operation data includes a delivery operation identifier and does not include a normal post-processing operation identifier; Determine the operation identifier blacklist according to the historical abnormal operation identifiers associated with each of the target waybill identifiers.
3. The method according to claim 2, characterized in that, Determining the operation identifier blacklist according to the historical abnormal operation identifiers associated with each of the target waybill identifiers includes: According to the historical abnormal operation identifiers associated with each of the target waybill identifiers, count the number of target waybill identifiers corresponding to each of the historical abnormal operation identifiers; Add the historical abnormal operation identifiers whose corresponding target waybill identifier quantity meets the quantity requirement to the operation identifier blacklist.
4. The method according to claim 3, characterized in that, When the quantity of the corresponding target waybill identifiers is greater than or equal to the quantity of the target waybill identifiers that is the first preset ratio among all the quantities of the target waybill identifiers, it is determined that the quantity of the corresponding target waybill identifiers meets the quantity requirement.
5. The method according to claim 1, characterized in that, the method for determining the minimum abnormal duration includes: Obtain the historical waybill scanning data of historical express deliveries, and the historical waybill scanning data includes historical waybill identifiers; Screen out the target waybill identifiers from the historical waybill identifiers. The target waybill identifiers have a one-way-multiple-waybills label, and the associated historical waybill operation data includes a delivery operation identifier and does not include a normal post-processing operation identifier; Determine the minimum abnormal duration according to the historical delivery operation time and historical abnormal operation time associated with each of the target waybill identifiers.
6. The method according to claim 5, characterized in that, Determining the minimum abnormal duration according to the historical delivery operation time and historical abnormal operation time associated with each of the target waybill identifiers includes: Obtain the historical abnormal duration corresponding to each of the target waybill identifiers according to the time difference between the historical abnormal operation time and the historical delivery operation time associated with each of the target waybill identifiers; Based on each of the historical abnormal durations, determine the minimum abnormal duration, where the minimum abnormal duration is greater than the historical abnormal durations that account for a second preset ratio among all the historical abnormal durations.
7. The method according to claim 1, wherein, the method further includes: When at least two waybill identifiers to be recognized are included in the waybill scan data, directly determine that the waybills corresponding to the waybill identifiers to be recognized are waybills to be verified.
8. A waybill recognition device, wherein, the device includes: An acquisition module, configured to acquire waybill scan data of an express delivery to be shipped, where the waybill scan data includes waybill identifiers to be recognized; A query module, configured to query waybill operation data associated with the waybill identifiers to be recognized; An identification module, configured to identify whether the waybills corresponding to the waybill identifiers to be recognized are waybills to be verified according to the waybill operation data, where the identification module is specifically configured to: When the waybill operation data includes a delivery operation identifier and an abnormal operation identifier belonging to a pre-determined operation identifier blacklist, and the corresponding abnormal duration is greater than a pre-determined minimum abnormal duration, determine that the waybills corresponding to the waybill identifiers to be recognized are waybills to be verified; wherein, the abnormal operation identifier is the identifier of the first operation after the delivery operation, and the abnormal duration is the time difference between the abnormal operation time and the delivery operation time.
9. A computer device, including a memory and a processor, where the memory stores a computer program, wherein, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Logistics management method, device, equipment and system based on blockchain
CN111382980A