Intelligent batch delivery method and system for express cabinets

By generating door opening strategies based on express size information in the express cabinet system, the problem that the number of express cabinet openings cannot be dynamically adjusted in the existing technology is solved, and the efficiency of express delivery is improved.

CN118230467BActive Publication Date: 2025-02-14TIANJIN HAIRUI ZHIDA ENTERPRISE MANAGEMENT PARTNERSHIP (LLP)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410534999.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2025-02-14
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

In the prior art, the number of openings of express cabinets cannot be dynamically adjusted according to actual needs, resulting in too many openings when a small number of express delivery is delivered, affecting the work efficiency of the courier.

Method used

The express cabinet number is sent to the express company's server through the work terminal, obtain the dimension information of the express delivery that needs to be delivered, generate a door opening strategy, including the cabinet number that needs to be opened, and the express cabinet controls the opening of the door according to the strategy.

Benefits of technology

The number of express cabinets opened is dynamically adjusted according to the actual situation of express delivery, reducing the problem of excessive openings and improving the work efficiency of couriers when delivering to express delivery cabinets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230467B_ABST
    Figure CN118230467B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of logistics, and discloses a method and system for intelligent batch delivery of express cabinets, the method comprising: a working terminal sends the number of the express cabinet to a server of an express company; the server of the express company obtains size information according to the number of the express cabinet, and sends the size information and the number of the express cabinet to the express cabinet server; the express cabinet server generates a door opening strategy according to the size information and the number of the express cabinet; the express cabinet controls the door opening of the cabinet in the express cabinet according to the door opening strategy; the working terminal obtains the express delivery number and the cabinet number of the delivered express, and sends them to the express cabinet server; the express cabinet server generates a pickup code based on the express delivery number and the cabinet number and sends it to the server of the express company; the server of the express company sends the pickup code to the recipient based on the mobile phone number of the recipient corresponding to the express delivery number. The present invention can improve the work efficiency of couriers when performing batch delivery to express cabinets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics, and in particular to an intelligent batch delivery method and system for express lockers. Background Art

[0002] In the prior art, in order to improve the delivery efficiency of couriers, when delivering parcels to express lockers, couriers usually open the doors of all available lockers in the express lockers first, and then select appropriate lockers to store the parcels. When the courier has completed all the deliveries, the doors of the unused lockers need to be closed. However, this delivery method still has certain disadvantages, that is, the server that controls the opening of the express lockers cannot know the number of lockers that need to be opened and the size of the lockers that need to be opened, which leads to the problem that when the courier needs to deliver a small number of parcels, there is a problem of too many lockers being opened. In this way, the courier needs to close the doors of the unused lockers one by one. Obviously, this affects the courier's work efficiency. Summary of the invention

[0003] The purpose of the present invention is to disclose a method and system for intelligent batch delivery of express lockers, so as to solve the problem of how to improve the efficiency of the process of couriers delivering express to express lockers.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides a method for intelligent batch delivery of express lockers, comprising:

[0006] S1, sending the number of the express cabinet to the express company's server through the work terminal;

[0007] S2, the courier company's server obtains the size information of all couriers that need to be delivered to the courier cabinet according to the cabinet number, and sends the size information of all couriers and the cabinet number to the courier cabinet server;

[0008] S3, the express cabinet server generates an opening strategy based on the size information and the cabinet number, and sends the door opening strategy to the express cabinet, where the door opening strategy includes the cabinet number to be opened;

[0009] S4, the express cabinet controls the door opening of the cabinet in the express cabinet according to the door opening strategy;

[0010] S5, obtaining the express delivery number and the cabinet number of the delivered express through the working terminal, and sending the express delivery number and the cabinet number to the express cabinet server;

[0011] S6, the express cabinet server generates a pickup code based on the express order number and the cabinet number, and sends the pickup code and the express order number to the express company's server;

[0012] S7, the courier company's server sends the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number.

[0013] Optionally, S1 includes:

[0014] S11, the working terminal scans the QR code containing the number of the express cabinet to obtain the number of the express cabinet;

[0015] S12, the work terminal sends the number of the express cabinet to the server of the express company.

[0016] Optionally, S2 includes:

[0017] S21, the courier company's server obtains the location of the courier cabinet according to the cabinet number;

[0018] S22, obtaining a set U of express order numbers of the express deliveries that need to be delivered to the express delivery cabinet within the current time period based on the location of the express delivery cabinet;

[0019] S23, respectively obtain the type and weight of the courier corresponding to each courier number in U;

[0020] S24, matching the type and weight of the express with the pre-stored size information of various types of express at various weights, to obtain the size information of the express corresponding to the express number;

[0021] S25, after obtaining the size information of all the express deliveries in U, the size information of all the express deliveries in U and the number of the express delivery cabinet are sent to the express delivery cabinet server.

[0022] Optionally, S3 includes:

[0023] S31, determining the size type of the corresponding cabinet based on the size information of each express delivery;

[0024] S32, counting the sizes of all express lockers that need to be delivered, and obtaining the number of lockers of various sizes that need to be opened;

[0025] S33, obtaining a set of free cabinets of each size type in the current express cabinet according to the number of the express cabinet;

[0026] S34, respectively make the following judgments on the cabinets of each size type:

[0027] For size type i, i belongs to S, S represents the set of all size types of cabinets, if the number A1 of free cabinets corresponding to size type i is greater than or equal to the number A2 of cabinets corresponding to size type i that need to be opened, then A2 is used as the final number of cabinets of size type i that need to be opened, otherwise, A1 is used as the final number of cabinets of size type i that need to be opened;

[0028] S35, determining the number of cabinets of each size type that need to be opened based on the final determined number of cabinets of each size type to be opened;

[0029] S36, a door opening strategy is formed by a set of the final determined number of cabinets of each size type to be opened and the numbers of the cabinets of each size type to be opened;

[0030] S36, sending the door opening strategy to the express cabinet.

[0031] Optionally, after executing S36, the step further includes: sending the door opening strategy to the work terminal.

[0032] Optionally, S5 includes:

[0033] S51, photographing the express delivery slip attached to the express delivery to be delivered through the working terminal to obtain a photographed image;

[0034] S52, identifying the captured image and obtaining the express delivery number of the express delivery to be delivered on the express delivery note;

[0035] S53, the working terminal obtains the number of the cabinet where the express delivery to be delivered is stored, which is input by the courier;

[0036] S54, sending the express delivery number and the cabinet number to the express cabinet server.

[0037] Optional, before S6, also includes:

[0038] The express locker sends the number of the closed locker to the express locker server;

[0039] The express locker server changes the status of the closed locker from idle to used.

[0040] Optionally, S6 includes:

[0041] S61, based on the cabinet number sent by the work terminal, determine whether the cabinet corresponding to the number is in use. If so, proceed to S62; if not, send a prompt message to the work terminal to prompt the courier to close the door of the cabinet corresponding to the number;

[0042] S62, generating a random number of a preset length as a pickup code;

[0043] S63, sending the pickup code and the express delivery number to the server of the express company.

[0044] Optionally, the working terminal is also used to prompt the courier according to the set prompt rules after receiving the prompt message.

[0045] In a second aspect, the present invention provides an express locker intelligent batch delivery system, comprising:

[0046] Work terminals, express company servers, express lockers and express locker servers;

[0047] The work terminal is used to send the number of the express cabinet to the express company's server;

[0048] The courier company's server is used to obtain the size information of all express parcels that need to be delivered to the express parcel locker according to the number of the express parcel locker, and send the size information of all express parcels and the number of the express parcel locker to the express parcel locker server;

[0049] The express cabinet server is used to generate a door opening strategy according to the size information and the number of the express cabinet, and send the door opening strategy to the express cabinet, where the door opening strategy includes the number of the cabinet to be opened;

[0050] The express cabinet is used to control the door opening of the cabinet in the express cabinet according to the door opening strategy;

[0051] The working terminal is used to obtain the express delivery number and the cabinet number of the delivered express, and send the express delivery number and the cabinet number to the express cabinet server;

[0052] The express locker server is used to generate a pickup code based on the express order number and the locker number, and send the pickup code and express order number to the express company's server;

[0053] The courier company's server is used to send the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number.

[0054] Beneficial effects:

[0055] Compared with the prior art, the present invention can generate an opening strategy including the number of cabinets of various size types that need to be opened based on the size information of the express delivery, so that the number and size of cabinets opened in batches of express delivery cabinets are adapted to the actual situation of the express delivery that needs to be delivered, thereby effectively reducing the probability of the problem of too many cabinets being opened and improving the work efficiency of couriers when delivering to express delivery cabinets. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0057] Figure 1 A schematic diagram of an intelligent batch delivery method for express lockers of the present invention.

[0058] Figure 2 A schematic diagram of an intelligent batch delivery system for express lockers of the present invention. DETAILED DESCRIPTION

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

[0060] Embodiment 1

[0061] like Figure 1 In one embodiment shown, the present invention provides a method for intelligent batch delivery of express lockers, comprising:

[0062] S1, sending the number of the express cabinet to the express company's server through the work terminal;

[0063] S2, the courier company's server obtains the size information of all couriers that need to be delivered to the courier cabinet according to the cabinet number, and sends the size information of all couriers and the cabinet number to the courier cabinet server;

[0064] S3, the express cabinet server generates an opening strategy based on the size information and the cabinet number, and sends the door opening strategy to the express cabinet, where the door opening strategy includes the cabinet number to be opened;

[0065] S4, the express cabinet controls the door opening of the cabinet in the express cabinet according to the door opening strategy;

[0066] S5, obtaining the express delivery number and the cabinet number of the delivered express through the working terminal, and sending the express delivery number and the cabinet number to the express cabinet server;

[0067] S6, the express cabinet server generates a pickup code based on the express order number and the cabinet number, and sends the pickup code and the express order number to the express company's server;

[0068] S7, the courier company's server sends the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number.

[0069] The above-mentioned delivery method can generate an opening strategy including the number of cabinets of various sizes that need to be opened based on the size information of the express, so that the number and size of cabinets opened in batches are adapted to the actual situation of the express that needs to be delivered, thereby effectively reducing the probability of the problem of too many cabinets being opened and improving the work efficiency of couriers when delivering to express cabinets.

[0070] Optionally, S1 includes:

[0071] S11, the working terminal scans the QR code containing the number of the express cabinet to obtain the number of the express cabinet;

[0072] S12, the work terminal sends the number of the express cabinet to the server of the express company.

[0073] In another scenario, the work terminal can obtain the number of the express cabinet by obtaining the number entered by the courier.

[0074] A QR code containing the number of the express cabinet usually appears on the operation page of the express cabinet entering the delivery status. Therefore, when the courier clicks the "Deliver Express" button on the operation page of the express cabinet, the express cabinet will enter the delivery status.

[0075] Optionally, S2 includes:

[0076] S21, the courier company's server obtains the location of the express cabinet according to the cabinet number.

[0077] The server of the express company pre-stores the numbers and locations of the express lockers owned by the express locker operating companies that have a cooperative relationship with the express company.

[0078] S22, based on the location of the express cabinet, obtain a set U of express order numbers of the express that need to be delivered to the express cabinet within the current time period.

[0079] Different express delivery companies have different delivery management methods. For most express delivery companies, delivery is divided into morning time periods and afternoon time periods. For example, the morning time period is between 8-12 o'clock and the afternoon time period is between 14-18 o'clock.

[0080] On the server of the express company, information about the express deliveries that need to be delivered to the express cabinet corresponding to the number sent to the work terminal within the current time period is stored.

[0081] For large express deliveries (i.e. express deliveries that exceed the upper size limit of general express lockers), they will not be treated as objects that need to be delivered to express lockers, and will have special markings in the express company's system.

[0082] S23, respectively obtain the type and weight of the courier corresponding to each courier number in U.

[0083] During the delivery process, the courier will fill in the type of courier and the weight of the courier measured on the courier system.

[0084] S24, matching the type and weight of the express with the pre-saved size information of various types of express at various weights to obtain the size information of the express corresponding to the express number.

[0085] In the present invention, the dimensions of various common types of express (such as government documents, shoes, etc.) at different weights are pre-stored in the express company's server. Therefore, the dimension information of the express that needs to be delivered to the express cabinet can be obtained only based on the type and weight of the express.

[0086] The sizes of common types of express delivery are basically fixed and are commonly seen in express delivery and receipt. Therefore, by saving the size information of these types of express delivery at different weights, it is possible to more accurately estimate the volume of the express delivery to be delivered, thereby determining the size of the corresponding cabinet for storage.

[0087] For example, when the express delivery type is shoes and the weight is 0.8kg, the length, width and height stored in the server are 40cm, 30cm and 20cm respectively. These parameters are filled in by the express operator according to the actual situation.

[0088] S25, after obtaining the size information of all the express deliveries in U, the size information of all the express deliveries in U and the number of the express delivery cabinet are sent to the express delivery cabinet server.

[0089] Specifically, the size information includes the length, width and height of the express.

[0090] Optionally, S3 includes:

[0091] S31, determining the size type of the corresponding cabinet based on the size information of each express delivery.

[0092] Specifically, based on the length, width and height of the express, first obtain the cabinets of all size types that are larger than the length, width and height of the express, and then use the cabinet of the smallest size type as the cabinet for storing the express.

[0093] In this step, for a smaller express delivery, cabinets of all sizes can meet the size requirements. However, in order to improve the utilization efficiency of the express delivery cabinets and reduce the probability of small express deliveries occupying large cabinets, cabinets of the smallest size type are used as cabinets for storing express deliveries.

[0094] In some scenarios, the size types of cabinets include small, medium and large. The size of a small cabinet is 45.4CM long, 34CM wide and 8CM high; the size of a small cabinet is 45.4CM long, 34CM wide and 19CM high; the size of a large cabinet is 45.4CM long, 34CM wide and 29CM high.

[0095] S32, counting the size types of all express lockers that need to be delivered, and obtaining the number of lockers of various size types that need to be opened.

[0096] Specifically, by obtaining the number of cabinets of each type that need to be opened, it is possible to determine whether the number of free cabinets is sufficient in the subsequent process.

[0097] S33, obtaining a set of vacant lockers of each size type in the current express locker according to the locker number.

[0098] Specifically, the express locker server stores the numbers of free lockers at various locations.

[0099] S34, respectively make the following judgments on the cabinets of each size type:

[0100] For size type i, i belongs to S, S represents the set of all size types of cabinets. If the number A1 of free cabinets corresponding to size type i is greater than or equal to the number A2 of cabinets corresponding to size type i that need to be opened, then A2 is used as the final number of cabinets of size type i that need to be opened; otherwise, A1 is used as the final number of cabinets of size type i that need to be opened.

[0101] In some scenarios, S∈{small, medium, large}. When the number of free cabinets is sufficient, A2 is directly used as the final opening number, otherwise, the number of free cabinets is used as the final opening number.

[0102] S35, determining the numbers of the cabinets of each size type that need to be opened based on the final determined opening quantity of the cabinets of each size type.

[0103] In this step, for any size type, if A1 is greater than A2, the numbers of A2 cabinets are randomly selected from the free cabinets as the numbers of the cabinets of the current size type that need to be opened; otherwise, the numbers of all the free cabinets are used as the numbers of the cabinets of the current size type that need to be opened.

[0104] S36, a door opening strategy is formed by a set of the final determined number of cabinets of each size type to be opened and the numbers of the cabinets of each size type that need to be opened.

[0105] S36, sending the door opening strategy to the express cabinet.

[0106] Optionally, after executing S36, the step further includes: sending the door opening strategy to the work terminal.

[0107] Specifically, since the number of free lockers in the express lockers may be insufficient, by sending the door opening strategy to the work terminal, the courier can know approximately how many parcels can be delivered.

[0108] Optionally, S5 includes:

[0109] S51, photographing the express delivery note attached to the express delivery to be delivered through the working terminal to obtain a photographed image.

[0110] In some scenarios, the courier uses a work terminal to take a photo of the delivery note, thereby obtaining a photographed image containing the delivery note.

[0111] In the express delivery note, the express delivery number is represented in the form of a barcode.

[0112] S52, identifying the captured image, and obtaining the express delivery number of the express delivery that needs to be delivered on the express delivery note.

[0113] By identifying the barcode in the express delivery number, you can get the express delivery number.

[0114] S53, the working terminal obtains the number of the cabinet where the express delivery to be delivered is stored, which is input by the courier.

[0115] After the courier scans the delivered package, he will deposit it in the cabinet and then enter the cabinet number in the courier terminal.

[0116] S54, sending the express delivery number and the cabinet number to the express cabinet server.

[0117] The work terminal sends the express delivery number and the cabinet number to the express cabinet server.

[0118] Optionally, S52 includes:

[0119] S521, performing optimization calculation on the captured image to obtain a calculated image;

[0120] S522, identifying the calculated image to obtain the express delivery number.

[0121] By optimizing the image quality, the accuracy of the image can be improved.

[0122] When the computational image is recognized, the barcode is obtained by detecting the barcode region in the computational image and then recognizing the barcode region.

[0123] Optionally, performing optimization calculation on the captured image to obtain a calculated image includes:

[0124] Perform grayscale calculation on the captured image to obtain a grayscale image;

[0125] Perform adaptive filtering calculation on the grayscale image to obtain a calculated image.

[0126] Grayscale calculation can be obtained using the weighted average method.

[0127] Adaptive filtering of grayscale images can improve image quality.

[0128] Optionally, adaptive filtering is performed on the grayscale image to obtain a calculated image, including:

[0129] Cutting the grayscale image into multiple areas to be filtered;

[0130] Each area to be filtered is filtered separately to obtain a calculated image.

[0131] By segmenting the grayscale image, a more reasonable filtering algorithm can be automatically selected to filter the area to be filtered according to the actual situation of the area to be filtered, thereby taking into account both the filtering efficiency and the accuracy of the filtering results.

[0132] Optionally, the grayscale image is cut into a plurality of areas to be filtered, including:

[0133] The grayscale image is cut by a circular cutting method. The sub-regions obtained by each cutting are judged, and the sub-regions that meet the judgment conditions are used as the targets for the next cutting. When all the regions obtained by cutting do not meet the judgment conditions, the circular cutting is terminated, and all the sub-regions that do not meet the judgment conditions are saved in the set D.

[0134] The sub-regions in the set D are merged using a preset connection rule to obtain the region to be filtered.

[0135] The traditional cutting method generally directly cuts into sub-regions of the same area. Obviously, the difference between the pixels in the sub-regions obtained in this way is relatively large, which cannot meet the requirement of the present invention to automatically select a more reasonable filtering algorithm according to the actual situation. Therefore, the present invention adopts a cyclic cutting method. Except for the first cutting, which is performed on the grayscale image, the subsequent cutting is performed on the sub-regions obtained by the previous cutting that meet the judgment conditions. In this way, it is beneficial to make the difference between the pixels in the final obtained sub-region as small as possible, thereby meeting the need for adaptive filtering of the present invention.

[0136] Optionally, the sub-region obtained by each cutting is judged, including:

[0137] For the sub-region s, the cutting coefficient of the sub-region s is calculated. If the cutting coefficient is greater than a preset cutting coefficient threshold, it means that s does not meet the judgment condition. Otherwise, it means that s meets the judgment condition.

[0138] When cutting, the present invention does not directly judge whether to continue cutting based on the size of the sub-region, because the size of the sub-region cannot reflect the difference between the pixels in the sub-region. Therefore, the present invention judges through the cutting coefficient, so that the difference between the pixels in the cut sub-region is as small as possible.

[0139] Optionally, the cutting factor is calculated as:

[0140]

[0141] Among them, cutcoef s represents the cutting coefficient of sub-region s, Nfx s Represents the number of pixels in s, Nfx all represents the number of pixels in the grayscale image, xfs represents the set of pixels in s, xfp represents the set of pixels in the grayscale image, and grad b and grad c Respectively represent the image gradients of pixel b and pixel c, avegrad s and avegradp represent the average values ​​of image gradients of pixels in xfs and xfp, respectively. α and β represent the preset quantitative weight and image gradient weight, respectively.

[0142] The cutting coefficient takes into account the number of pixels on the one hand, and the difference between pixels on the other hand. It not only makes the sub-region with larger difference and larger area more likely to enter the next cutting, but also avoids the area of ​​the obtained sub-region being too small and the appearance of too many sub-regions. In this way, while taking into account the subsequent filtering efficiency, the difference between the pixels in the sub-region obtained by cutting is made as small as possible.

[0143] Optionally, α and β are 0.4 and 0.6 respectively.

[0144] Optionally, the preset cutting factor threshold is 0.2.

[0145] The cutting coefficient threshold can be adjusted according to actual needs. The smaller the threshold, the more times of cutting. It is suitable for cyclic cutting of more complex grayscale images, that is, grayscale images with more noise content.

[0146] Optionally, the sub-regions in the set D are merged using a preset connection rule to obtain a region to be filtered, including:

[0147] For sub-region d in set D, save each sub-region adjacent to d into set neid;

[0148] Calculate the connection probability coefficient of each sub-region in neid respectively;

[0149] Obtain the minimum value of the connection probability coefficient. If the minimum value of the connection probability coefficient is less than the set connection probability coefficient threshold, merge the sub-region corresponding to the minimum value of the connection probability coefficient with d to obtain the region to be filtered.

[0150] If the minimum value of the connection probability coefficient is greater than or equal to the set connection probability coefficient threshold, d is directly used as the area to be filtered.

[0151] After the sub-regions are cut, the present invention also merges the sub-regions whose connection probability coefficients meet the requirements, thereby effectively reducing the number of regions to be filtered and ensuring that the differences between the pixels in the regions to be filtered are as small as possible.

[0152] Optionally, the connection probability coefficient is calculated as:

[0153] conpro h,d =|cutcoef h -cutcoef d |

[0154] conpro h,d represents the connection probability coefficient of the sub-region h in neid, cutcoef h and cutcoef drepresent the cutting coefficients of h and d respectively.

[0155] The connection probability coefficient is mainly obtained by comparing the cutting coefficients between two sub-regions. The closer the cutting coefficients are, the smaller the difference in pixels between the two sub-regions is.

[0156] Optionally, the connection probability coefficient threshold is 0.1.

[0157] Optionally, filtering each area to be filtered is performed separately to obtain a calculated image, including:

[0158] First filtering:

[0159] Save all the areas to be filtered into a set K, and calculate the filtering priority value of each area to be filtered in K respectively;

[0160] The area to be filtered with the largest filtering priority value is deleted from the set K;

[0161] The area to be filtered with the largest filter priority value is saved in the set KF;

[0162] In the grayscale image, filter the area to be filtered with the largest filter priority value to obtain image lwnP1;

[0163] The kth filtering, k is greater than or equal to 2:

[0164] Calculate the filter priority value of each area to be filtered in K separately;

[0165] The area to be filtered with the largest filtering priority value is deleted from the set K;

[0166] The area to be filtered with the largest filter priority value is saved in the set KF;

[0167] In the image lwnP k-1 In the filter, the area to be filtered with the largest filter priority value is filtered to obtain the image lwnP k ;

[0168] Determine whether the number of sub-regions in K is 0. If so, set lwnP k As the calculated image, if not, perform the next filtering.

[0169] The filtering process of the present invention is different from the prior art. The prior art generally filters each pixel in the grayscale image separately, that is, the filtering is based on the same image, while the filtering of the present invention is based on the image obtained by the previous filtering each time. The advantage of this filtering method is that the subsequent filtering process can fully utilize the previous filtering results, further improving the accuracy of the filtering results. If the same image is targeted, the correct grayscale information obtained after filtering cannot be used for filtering. If there is more noise in the grayscale image, then for the noise at the same position, after filtering, the accuracy of the results obtained by filtering using the prior art and filtering using the technology of the present invention will obviously be quite different.

[0170] Optionally, the filter priority value is calculated as:

[0171]

[0172] fxz represents the set of pixels in the area z to be filtered, filprival z Indicates the filter priority value of z, grad j represents the image gradient of pixel j in fxz, avegrad z Represents the average value of the image gradient of pixel j in fxz, Nstrlin z Indicates the total number of straight line segments contained in z, Nstrlin max Indicates the maximum value of the total number of straight line segments contained in all the areas to be filtered before filtering; neiKF z Indicates the total number of to-be-filtered areas adjacent to z that do not belong to KF; z represents the total number of areas to be filtered that are adjacent to z; δ, η, and λ represent the first calculation weight, the second calculation weight, and the third calculation weight, respectively; gradcmx represents the maximum value of the variance of the image gradients of all areas to be filtered before filtering.

[0173] The function of the filtering priority value is to judge the filtering priority of the area to be filtered that has not been filtered in the image obtained by the previous filtering. In the present invention, if the difference between the pixels in the area to be filtered is smaller, the number of straight line segments contained is smaller, and the number of adjacent elements belonging to KF is smaller, the filtering priority value is larger, indicating that the useful details contained in such area to be filtered are smaller, and it is more necessary to filter such area to be filtered first. Therefore, the present invention can make the filtering order of the area to be filtered with a smaller filtering priority value later, so that the useful details contained in such area to be filtered can be filtered based on more filtering results, and a more accurate filtering result can be obtained.

[0174] By considering the number of straight line segments, the filtering order of the to-be-filtered area including the barcode area can be made later, so that the quality of the obtained barcode area is higher.

[0175] Optionally, the first calculation weight, the second calculation weight, and the third calculation weight are 0.1, 0.2, and 0.7, respectively.

[0176] Optionally, the process of filtering the area to be filtered includes:

[0177] The noise ratio of the pixels in the area to be filtered is obtained. If the noise ratio is less than the preset ratio threshold, the spatial domain filtering algorithm is used to filter the area to be filtered; otherwise, the frequency domain filtering algorithm is used to filter the area to be filtered.

[0178] When the noise ratio is low, the present invention adopts a filtering algorithm that takes less time to filter, and when the noise ratio is high, the present invention adopts a filtering algorithm with better filtering effect but more time-consuming to filter. In this way, the accuracy of the filtering result can be guaranteed while taking into account the efficiency of the filtering.

[0179] Optionally, the process of obtaining the noise ratio includes:

[0180] The first step is to make the following judgments for each pixel in the filter area:

[0181] For a pixel v in the area to be filtered, obtain the maximum absolute value of the grayscale value difference between v and the pixels in v's 8-neighborhood;

[0182] If the maximum value is greater than the set grayscale value, it means that the pixel v is a noise probability point;

[0183] In the second step, the total number of noise probability points is divided by the total number of pixels in the area to be filtered to obtain the noise ratio.

[0184] The greater the difference between the grayscale difference between v and other pixels in the 8-neighborhood, the greater the possibility that the pixel belongs to noise, so that the noise in the image can be detected more accurately.

[0185] Optionally, the preset ratio threshold is 0.1.

[0186] Optional, before S6, also includes:

[0187] The express locker sends the number of the closed locker to the express locker server;

[0188] The express locker server changes the status of the closed locker from idle to used.

[0189] Specifically, the state of the cabinet is modified in time, so as to facilitate the determination in S6 whether a pickup code can be generated. This is because the courier may forget to close the door after putting the package in.

[0190] Optionally, S6 includes:

[0191] S61, based on the cabinet number sent by the work terminal, determine whether the cabinet corresponding to the number is in use. If so, proceed to S62; if not, send a prompt message to the work terminal to prompt the courier to close the door of the cabinet corresponding to the number;

[0192] Specifically, the prompt message may include the number of the cabinet that needs to be closed.

[0193] S62, generating a random number of a preset length as a pickup code;

[0194] Specifically, after the pickup code is generated, it is determined whether the generated pickup code is in a used state. If so, a new pickup code is generated. When the recipient takes out the express according to the pickup code, the state of the pickup code will be changed to an unused state.

[0195] S63, sending the pickup code and the express delivery number to the server of the express company.

[0196] Specifically, after receiving the pickup code, the express company can obtain the contact information based on the express number and send the pickup code to the mobile phone used by the recipient based on the contact information.

[0197] Optionally, the working terminal is also used to prompt the courier according to the set prompt rules after receiving the prompt message.

[0198] Specifically, the set prompt rule includes playing a prompt voice, and the prompt voice includes the number of the cabinet that needs to be closed.

[0199] Embodiment 2:

[0200] like Figure 2 As shown, the present invention provides an intelligent batch delivery system for express lockers, comprising:

[0201] Work terminals, express company servers, express lockers and express locker servers;

[0202] The work terminal is used to send the number of the express cabinet to the express company's server;

[0203] The courier company's server is used to obtain the size information of all express parcels that need to be delivered to the express parcel locker according to the number of the express parcel locker, and send the size information of all express parcels and the number of the express parcel locker to the express parcel locker server;

[0204] The express cabinet server is used to generate a door opening strategy according to the size information and the number of the express cabinet, and send the door opening strategy to the express cabinet, where the door opening strategy includes the number of the cabinet to be opened;

[0205] The express cabinet is used to control the door opening of the cabinet in the express cabinet according to the door opening strategy;

[0206] The working terminal is used to obtain the express delivery number and the cabinet number of the delivered express, and send the express delivery number and the cabinet number to the express cabinet server;

[0207] The express locker server is used to generate a pickup code based on the express order number and the locker number, and send the pickup code and express order number to the express company's server;

[0208] The courier company's server is used to send the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number.

[0209] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0210] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0211] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0212] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope parameters of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligent batch delivery of express lockers, characterized in that: include: S1, sending the number of the express cabinet to the express company's server through the work terminal; S2, the courier company's server obtains the size information of all couriers that need to be delivered to the courier cabinet according to the cabinet number, and sends the size information of all couriers and the cabinet number to the courier cabinet server; S3, the express cabinet server generates an opening strategy based on the size information and the cabinet number, and sends the door opening strategy to the express cabinet, where the door opening strategy includes the cabinet number to be opened; S4, the express cabinet controls the door opening of the cabinet in the express cabinet according to the door opening strategy; S5, obtaining the express delivery number and the cabinet number of the delivered express through the working terminal, and sending the express delivery number and the cabinet number to the express cabinet server; S6, the express cabinet server generates a pickup code based on the express order number and the cabinet number, and sends the pickup code and the express order number to the express company's server; S7, the courier company's server sends the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number; S5 includes: S51, photographing the express delivery slip attached to the express delivery to be delivered through the working terminal to obtain a photographed image; S52, identifying the captured image and obtaining the express delivery number of the express delivery to be delivered on the express delivery note; S53, the working terminal obtains the number of the cabinet where the express delivery to be delivered is stored, which is input by the courier; S54, sending the express delivery number and the cabinet number to the express cabinet server; S52 includes: S521, performing optimization calculation on the captured image to obtain a calculated image; S522, identifying the calculated image to obtain the express delivery number; Perform optimization calculation on the captured image to obtain a calculated image, including: Perform grayscale calculation on the captured image to obtain a grayscale image; Perform adaptive filtering calculation on the grayscale image to obtain a calculated image; Perform adaptive filtering calculation on the grayscale image to obtain a calculated image, including: Cutting the grayscale image into multiple areas to be filtered; Filter each area to be filtered respectively to obtain a calculated image; Cut the grayscale image into multiple areas to be filtered, including: The grayscale image is cut by a circular cutting method. The sub-regions obtained by each cutting are judged, and the sub-regions that meet the judgment conditions are used as the targets for the next cutting. When all the regions obtained by cutting do not meet the judgment conditions, the circular cutting is terminated, and all the sub-regions that do not meet the judgment conditions are saved in the set D. The sub-regions in the set D are merged using a preset connection rule to obtain the region to be filtered.

2. The intelligent batch delivery method for express lockers according to claim 1, characterized in that: S1 includes: S11, the working terminal scans the QR code containing the number of the express cabinet to obtain the number of the express cabinet; S12, the work terminal sends the number of the express cabinet to the server of the express company.

3. The intelligent batch delivery method for express lockers according to claim 1, characterized in that S2 include: S21, the courier company's server obtains the location of the courier cabinet according to the cabinet number; S22, obtaining a set U of express order numbers of the express deliveries that need to be delivered to the express delivery cabinet within the current time period based on the location of the express delivery cabinet; S23, respectively obtain the type and weight of the courier corresponding to each courier number in U; S24, matching the type and weight of the express with the pre-stored size information of various types of express at various weights, to obtain the size information of the express corresponding to the express number; S25, after obtaining the size information of all the express deliveries in U, the size information of all the express deliveries in U and the number of the express delivery cabinet are sent to the express delivery cabinet server.

4. The intelligent batch delivery method for express lockers according to claim 1, characterized in that S3 include: S31, determining the size type of the corresponding cabinet based on the size information of each express delivery; S32, counting the sizes of all express lockers that need to be delivered, and obtaining the number of lockers of various sizes that need to be opened; S33, obtaining a set of free cabinets of each size type in the current express cabinet according to the number of the express cabinet; S34, respectively make the following judgments on the cabinets of each size type: For size type i, i belongs to S, S represents the set of all size types of cabinets, if the number A1 of free cabinets corresponding to size type i is greater than or equal to the number A2 of cabinets corresponding to size type i that need to be opened, then A2 is used as the final number of cabinets of size type i that need to be opened, otherwise, A1 is used as the final number of cabinets of size type i that need to be opened; S35, determining the number of cabinets of each size type that need to be opened based on the final determined number of cabinets of each size type to be opened; S36, a door opening strategy is formed by a set of the final determined number of cabinets of each size type to be opened and the numbers of the cabinets of each size type to be opened; S36, sending the door opening strategy to the express cabinet.

5. The intelligent batch delivery method for express lockers according to claim 4, characterized in that: After executing S36, the method further includes: Send the door opening strategy to the work terminal.

6. The intelligent batch delivery method for express lockers according to claim 1, characterized in that: Prior to S6, this also included: The express locker sends the number of the closed locker to the express locker server; The express locker server changes the status of the closed locker from idle to used.

7. The intelligent batch delivery method for express lockers according to claim 6, characterized in that S6 include: S61, based on the cabinet number sent by the work terminal, determine whether the cabinet corresponding to the number is in use, if so, proceed to S62; If not, a prompt message is sent to the work terminal to prompt the courier to close the door of the cabinet corresponding to the number; S62, generating a random number of a preset length as a pickup code; S63, sending the pickup code and the express delivery number to the server of the express company.

8. The intelligent batch delivery method for express lockers according to claim 7, characterized in that: The working terminal is also used to prompt the courier according to the set prompt rules after receiving the prompt message.

9. An intelligent batch delivery system for express lockers, characterized in that: Including work terminals, express company servers, express cabinets and express cabinet servers; The work terminal is used to send the number of the express cabinet to the express company's server; The courier company's server is used to obtain the size information of all express parcels that need to be delivered to the express parcel locker according to the number of the express parcel locker, and send the size information of all express parcels and the number of the express parcel locker to the express parcel locker server; The express cabinet server is used to generate a door opening strategy according to the size information and the number of the express cabinet, and send the door opening strategy to the express cabinet, where the door opening strategy includes the number of the cabinet to be opened; The express cabinet is used to control the door opening of the cabinet in the express cabinet according to the door opening strategy; The working terminal is used to obtain the express delivery number and the cabinet number of the delivered express, and send the express delivery number and the cabinet number to the express cabinet server; The express locker server is used to generate a pickup code based on the express order number and the locker number, and send the pickup code and express order number to the express company's server; The courier company's server is used to send the pickup code to the recipient based on the recipient's mobile phone number corresponding to the courier number; Obtain the delivery order number and the cabinet number of the delivered express, and send the delivery order number and the cabinet number to the express cabinet server, including: S51, photographing the express delivery slip attached to the express delivery to be delivered through the working terminal to obtain a photographed image; S52, identifying the captured image and obtaining the express delivery number of the express delivery to be delivered on the express delivery note; S53, the working terminal obtains the number of the cabinet where the express delivery to be delivered is stored, which is input by the courier; S54, sending the express delivery number and the cabinet number to the express cabinet server; S52 includes: S521, performing optimization calculation on the captured image to obtain a calculated image; S522, identifying the calculated image to obtain the express delivery number; Perform optimization calculation on the captured image to obtain a calculated image, including: Perform grayscale calculation on the captured image to obtain a grayscale image; Perform adaptive filtering calculation on the grayscale image to obtain a calculated image; Perform adaptive filtering calculation on the grayscale image to obtain a calculated image, including: Cutting the grayscale image into multiple areas to be filtered; Filter each area to be filtered respectively to obtain a calculated image; Cut the grayscale image into multiple areas to be filtered, including: The grayscale image is cut by a circular cutting method. The sub-regions obtained by each cutting are judged, and the sub-regions that meet the judgment conditions are used as the targets for the next cutting. When all the regions obtained by cutting do not meet the judgment conditions, the circular cutting is terminated, and all the sub-regions that do not meet the judgment conditions are saved in the set D. The sub-regions in the set D are merged using a preset connection rule to obtain the region to be filtered.

Citation Information

Patent Citations

  • Express cabinet intelligent delivery method and system

    CN107705061A

  • Express batch delivery system and method

    CN110633942A