CN116415870A - Bar code distribution method, device and equipment for express package and storage medium - Google Patents

Bar code distribution method, device and equipment for express package and storage medium Download PDF

Info

Publication number
CN116415870A
CN116415870A CN202310380186.7A CN202310380186A CN116415870A CN 116415870 A CN116415870 A CN 116415870A CN 202310380186 A CN202310380186 A CN 202310380186A CN 116415870 A CN116415870 A CN 116415870A
Authority
CN
China
Prior art keywords
bar code
distribution
unique
module
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310380186.7A
Other languages
Chinese (zh)
Inventor
杨满坡
杨周龙
潘宏晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yunda Hi Tech Co ltd
Original Assignee
Shanghai Yunda Hi Tech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yunda Hi Tech Co ltd filed Critical Shanghai Yunda Hi Tech Co ltd
Priority to CN202310380186.7A priority Critical patent/CN116415870A/en
Publication of CN116415870A publication Critical patent/CN116415870A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of warehouse logistics, and discloses a bar code distribution method, a device, equipment and a storage medium for express packages. The method comprises the following steps: receiving an electronic bill request sent by at least one express delivery network point; generating and storing a unique bar code corresponding to the electronic face sheet; when the storage state of the unique bar code meets the bar code distribution condition, sending a bar code distribution instruction to a bar code distribution module; and distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction. According to the technical scheme, the hash value is generated according to the picture key data and the text key data in the electronic face sheet; encoding the hash value improves the encoding efficiency, and improves the bar code distribution speed by analyzing the current load condition and the processing speed of all bar code distribution modules.

Description

Bar code distribution method, device and equipment for express package and storage medium
Technical Field
The invention relates to the field of warehouse logistics, in particular to a bar code distribution method, a device, equipment and a storage medium for express packages.
Background
In the logistics process, the functions of transportation, storage, loading, unloading, carrying, packaging, circulation processing, distribution, information processing and the like are organically combined according to actual needs in the physical flowing process of the articles from the supply place to the receiving place to realize the process required by a user, and in order to better distribute the articles, the related information of the articles needs to be marked by using bar codes; with the increasing number of bar codes used by logistics companies, a brand new bar code distribution mode is needed, and distribution efficiency is improved.
Disclosure of Invention
The invention mainly aims to solve the problem that in the prior art, the express to be modified cannot be reassigned or dispatch planning can not be adjusted in real time, so that the residence time of the express is too long.
The first aspect of the invention provides a bar code distribution method for express packages, comprising the following steps: receiving an electronic bill request sent by at least one express delivery network point; generating and storing a unique bar code corresponding to the electronic face sheet; when the storage state of the unique bar code meets bar code distribution conditions, transmitting the unique bar code distribution instruction to a bar code distribution module; and distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction.
Optionally, in a second implementation manner of the first aspect of the present invention, the receiving an electronic facesheet request sent by at least one express delivery network node includes the following steps:
receiving an electronic bill request sent by at least one express delivery network point, wherein the electronic bill request comprises text information and picture information; analyzing the text information in the request, and extracting text key data, wherein the text key data at least comprises sender information, receiver information and cargo information; and identifying and extracting the picture information in the request to obtain picture key data, wherein the picture key data at least comprises cargo picture information and signature picture information.
Optionally, in a third implementation manner of the first aspect of the present invention, the generating and storing a unique barcode corresponding to the electronic facesheet includes the following steps:
generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet; encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet; the unique bar code is stored.
Optionally, in a fourth implementation manner of the first aspect of the present invention, when the storage state of the unique barcode meets a barcode allocation condition, a barcode allocation instruction is sent to a barcode allocation module, including the following steps:
monitoring the state of the stored unique bar code, and judging whether the unique bar code meets the distribution condition or not; the bar codes meeting the distribution conditions are subjected to priority ranking according to the estimated processing time; and analyzing the current load conditions and the processing speed of all the bar code distribution modules, and selecting the bar code distribution module with lower load and higher processing speed.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the analyzing the current load situation and the processing speed of all barcode distribution modules, selecting a barcode distribution module with a lower load and a faster processing speed, includes the following steps:
collecting real-time data of all barcode distribution modules, including: the number of processing tasks currently (Ti), the average completion time of the processing tasks (Ai), the processing capacity of the module (Ci); for each barcode distribution module i, its load factor (Li) and process speed index (Si) are calculated as follows:
load factor (Li) =ti/Ci
Processing speed index (Si) =1/Ai
For each barcode assignment module i, its score value (Pi) is then calculated as follows:
Pi=αi*(1-Li)+βi*Si
wherein, alpha i and beta i are weight coefficients;
and comparing the scoring values (Pi) of all the bar code distribution modules, and selecting the bar code distribution module with the highest scoring value as the optimal distribution module.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the weight coefficients αi and βi are obtained by:
acquiring a historical performance index Hi of a module; defining an adaptive weight distribution function F (Hi), wherein the input is the historical performance index Hi of the module and the output is the weight coefficients αi and βi;
αi=a*Hi+b
βi=1-αi
where a and b are constants for adjusting the influence of the historical manifestation on the weight distribution.
Optionally, in a seventh implementation manner of the first aspect of the present invention, the distributing the stored unique barcode to the electronic facesheet through the barcode distributing module according to the unique barcode distributing instruction includes the following steps:
analyzing the received bar code allocation instruction, and acquiring electronic face sheet information and unique bar code information in the bar code allocation instruction, wherein the electronic face sheet information comprises picture key data and text key data; judging whether the electronic face sheet information is matched with the unique bar code or not according to the electronic face sheet information and the unique bar code; if so, updating the distribution state of the stored unique bar code.
The second aspect of the present invention provides a barcode distribution device for express packages, comprising:
the receiving module is used for receiving the electronic face sheet request sent by at least one express delivery network point;
the generating module is used for generating and storing a unique bar code corresponding to the electronic face sheet;
the sending module is used for sending the bar code allocation instruction to the bar code allocation module when the storage state of the unique bar code meets the bar code allocation condition;
and the distribution module is used for distributing the stored unique bar codes to the electronic face bill through the unique bar code distribution module according to the bar code distribution instruction.
A third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; and the at least one processor invokes the instructions in the memory to enable the electronic equipment to execute the bar code distribution method of the express packages.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the barcode distribution method of express packages as described above.
According to the technical scheme, the hash value is generated according to the picture key data and the text key data in the electronic face sheet; encoding the hash value improves the encoding efficiency, and improves the bar code distribution speed by analyzing the current load condition and the processing speed of all bar code distribution modules.
Drawings
Fig. 1 is a first flowchart of a barcode allocation method for express packages according to an embodiment of the present invention;
fig. 2 is a second flowchart of a barcode allocation method for express packages according to an embodiment of the present invention;
fig. 3 is a third flowchart of a barcode allocation method for express packages according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a barcode allocation method for express packages according to an embodiment of the present invention;
fig. 5 is a fifth flowchart of a barcode allocation method for express packages according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a barcode distribution device for express packages according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Detailed Description
The embodiment of the invention provides a bar code distribution method, a device, equipment and a storage medium for express packages, which comprise the following steps: receiving an electronic bill request sent by at least one express delivery network point; generating and storing a unique bar code corresponding to the electronic face sheet; when the storage state of the unique bar code meets the bar code distribution condition, sending a bar code distribution instruction to a bar code distribution module; and distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction. According to the technical scheme, the hash value is generated according to the picture key data and the text key data in the electronic face sheet; encoding the hash value improves the encoding efficiency, and improves the bar code distribution speed by analyzing the current load condition and the processing speed of all bar code distribution modules.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and a first embodiment of a barcode allocation method for express packages in the embodiment of the present invention includes:
101. receiving an electronic bill request sent by at least one express delivery network point;
the method and system related by the invention receive the electronic bill request from at least one express delivery network point. This means that the system may serve multiple clients or multiple sites, collecting and processing their electronic requests for sheets.
102. Generating and storing a unique bar code corresponding to the electronic face sheet;
when the system receives an electronic face sheet request, it will generate and store a unique barcode for the face sheet. This unique barcode may be used to track the status of the electronic form, identify the sender and receiver, etc.
103. When the storage state of the unique bar code meets the bar code distribution condition, sending a bar code distribution instruction to a bar code distribution module;
the present invention relates to a method and system having a bar code assignment module that can assign stored unique bar codes to specific electronic coupons. When the storage state of the unique bar code meets the bar code distribution condition, the system sends an instruction to the bar code distribution module so as to distribute the unique bar code to the corresponding electronic receipt.
104. And distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction.
High efficiency: by using the electronic bill and the unique bar code management system, the electronic bill requests of a plurality of express network points can be rapidly and accurately processed, and unique identifiers can be generated for each bill. This can improve the efficiency of the logistics process, reducing errors and repeated operations.
Real-time performance: the system can track and manage the state and position of each electronic bill and unique bar code in real time to ensure that each package is processed and delivered in time.
Traceability: through the unique bar code identification, the system can track and manage each electronic bill in the whole course, including information such as sources, directions and states of packages, so as to improve traceability and safety of logistics flow.
And (3) automation: the system can automatically process a plurality of electronic face sheet requests, and automatically distributes unique bar code identifications through the bar code distribution module, so that manual intervention and errors are reduced.
Scalability: the system can be expanded to process more express network points and electronic face sheet requests, and the capacity and performance of the system are improved by increasing the number of bar code distribution modules.
Referring to fig. 2, a first embodiment of a barcode distribution method for express packages according to an embodiment of the present invention includes:
201. receiving an electronic bill request sent by at least one express delivery network point, wherein the electronic bill request comprises text information and picture information;
the system needs to be ready to receive electronic requests for sheets, which can be done by developing an API or using standard HTTP or HTTPs protocols. When an express delivery network sends an electronic receipt request to the system, the system needs to receive and prepare for processing. The electronic receipt request needs to contain text information such as the names and addresses of the sender and recipient, etc. The system needs to parse the text information and store it in a database or file system. Parsing may be implemented using regular expressions or natural language processing techniques to extract useful information. The electronic menu request may also include picture information, such as an express menu or a parcel photo. The system needs to process these picture information to store it in the appropriate location and associate it with the corresponding text information.
202. Analyzing the text information in the request, and extracting text key data, wherein the text key data at least comprises sender information, receiver information and cargo information;
identifying an entity: the system needs to first identify entities in the text, such as person names, addresses, item names, etc. This may be accomplished using Named Entity Recognition (NER) techniques. The NER technique can automatically identify entities in text using machine learning algorithms and label them as specific types of entities (e.g., person names, addresses, and item names).
Extracting key data: after identifying the entity, the system may use pattern matching techniques to extract the critical data. For example, for the sender information, sentences including keywords such as "sender" or "sender" in the text may be searched for, and entities therein extracted. A similar approach may be used for consignee information and cargo information.
Normalized data: after the critical data is extracted, the system needs to normalize the data to be more convenient in storage and processing. For example, for address information, the system may normalize it to a standard format, such as province, city, street, house number, and the like.
Storing data: finally, the system needs to store the extracted critical data in a database or file system for access and processing when needed.
203. Identifying and extracting picture information in the request to obtain picture key data, wherein the picture key data at least comprises cargo picture information and signature picture information;
and (3) image identification: the system needs to first image identify the picture in the electronic facesheet request to convert it to a processable format. This may be accomplished using computer vision techniques such as convolutional neural networks or object detection algorithms.
Object detection: for cargo picture information, the system may use object detection techniques to automatically identify objects in the picture and extract useful information. For example, object detection algorithms may be used to identify information such as the type, weight, and size of the cargo.
Signature detection: for signing picture information, the system may use handwriting recognition techniques to detect the signature in the picture and convert it to usable text information. This may be accomplished using Optical Character Recognition (OCR) techniques.
And (3) data extraction: after identifying and detecting critical data in the tiles, the system needs to extract and process the data. For example, the goods picture information and the signature picture information may be stored in a database or file system and associated with corresponding text information (e.g., sender, recipient, order number, etc.).
Storing data: finally, the system needs to store the extracted critical data in a database or file system for access and processing when needed.
Identifying and extracting picture information in the request requires implementation using image processing techniques and object detection techniques. This can help the system automatically extract useful information, such as cargo picture information and signature picture information, and store them in a database or file system for tracking and management during the logistics process.
204. Generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet;
the hash algorithm maps data of any size to a fixed-size value, commonly referred to as a hash value or hash value. The hash value is unique and is different for different input data. The following steps in the embodiments of the present invention:
extracting key data: the system needs to first extract picture key data and text key data from the electronic facebook. This may be accomplished using image processing and natural language processing techniques. For example, for cargo picture information and signature picture information, the system may use object detection and handwriting recognition techniques to extract key data. For text key data, the system may use named entity recognition and pattern matching techniques to extract the key data.
Combination data: after extracting the critical data, the system needs to combine these data together in order to generate a unique hash value. The key data may be stitched together to generate a string, which is then used as input data.
A hash algorithm is applied: the system needs to take the spliced character strings as input data and hash the input data by using a hash algorithm to generate a unique hash value. Common hash algorithms include MD5, SHA-1, SHA-256, and the like.
Storing the hash value: finally, the system needs to store the generated hash value in a database or file system for access and processing when needed.
205. Encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet;
to encode the unique hash value, in embodiments of the present invention, a bar code generator library may be used to generate a unique bar code. Common bar Code formats include Code 39, code 128, EAN-13, and the like. The following are possible steps:
obtaining a hash value: the system needs to first obtain a unique hash value generated from the picture key data and the text key data in the electronic facebook. This may be obtained from a database or file system.
Encoding the hash value: after the hash value is obtained, the system needs to encode it into a bar code format. This step may be implemented using a bar code generation library. For example, for a bar Code in Code 128 format, a Code 128 generation library may be used to encode hash values into the bar Code format.
Storing bar codes: finally, the system needs to store the generated unique bar code in a database or file system for access and processing when needed. The bar code may be associated with an electronic bill to facilitate tracking and management during the logistics process.
Encoding the unique hash value to generate a unique barcode requires implementation using a barcode generation library. This may help the system generate a unique barcode for each electronic form and store it in a database or file system for tracking and management during the logistics process.
206. The unique bar code is stored.
207. When the storage state of the unique bar code meets the bar code distribution condition, sending a bar code distribution instruction to a bar code distribution module;
208. and distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction.
The scheme of the invention adopts the following technology:
natural language processing technology: parsing and extracting the text information in the electronic face sheet request requires the use of natural language processing techniques. This can help the system automatically extract important information and store it in a standardized format for tracking and management during the logistics process.
Image processing technology: the identification and extraction of the key data for the picture information in the electronic face sheet request requires the use of image processing techniques. This can help the system automatically extract useful information, such as cargo picture information and signature picture information, and store them in a database or file system for tracking and management during the logistics process.
Hash algorithm: generating a unique hash value using a hash algorithm may help the system generate a unique identification for each electronic facebook and store it in a database or file system for tracking and management during the logistics process.
It can be seen that the scheme of the embodiment utilizes a plurality of advanced technologies to process text information and picture information in the electronic face sheet request, and generates a unique bar code for tracking and management. The efficiency and the reliability of the logistics system can be improved, the cost of manual operation is reduced, and better service experience is provided for users.
Referring to fig. 3, a first embodiment of a barcode distribution method for express packages according to an embodiment of the present invention includes:
301. receiving an electronic bill request sent by at least one express delivery network point;
specifically, embodiments of the present invention include: receiving an electronic bill request sent by at least one express delivery network point, wherein the electronic bill request comprises text information and picture information; analyzing the text information in the request, and extracting text key data, wherein the text key data at least comprises sender information, receiver information and cargo information; and identifying and extracting the picture information in the request to obtain picture key data, wherein the picture key data at least comprises cargo picture information and signature picture information.
302. Generating and storing a unique bar code corresponding to the electronic face sheet;
specifically, embodiments of the present invention include: generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet; encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet; the unique bar code is stored.
303. Monitoring the state of the stored unique bar code, and judging whether the unique bar code meets the distribution condition or not;
304. the bar codes meeting the distribution conditions are subjected to priority ranking according to the estimated processing time;
305. and analyzing the current load conditions and the processing speed of all the bar code distribution modules, and selecting the bar code distribution module with lower load and higher processing speed.
Specifically, the following steps are adopted to realize the selection of the bar code distribution module:
collecting real-time data of all barcode distribution modules, including: the number of processing tasks currently (Ti), the average completion time of the processing tasks (Ai), the processing capacity of the module (Ci);
for each barcode distribution module i, its load factor (Li) and process speed index (Si) are calculated as follows:
load factor (Li) =ti/Ci
Processing speed index (Si) =1/Ai
For each barcode assignment module i, its score value (Pi) is then calculated as follows:
Pi=αi*(1-Li)+βi*Si
wherein, alpha i and beta i are weight coefficients;
and comparing the scoring values (Pi) of all the bar code distribution modules, and selecting the bar code distribution module with the highest scoring value as the optimal distribution module.
Assume that three bar code distribution modules are provided, namely a module A, a module B and a module C. Their real-time data are as follows:
module a: ti=5, ai=10, ci=30
Module B: ti=2, ai=8, ci=25
Module C: ti=3, ai=12, ci=35
In order to calculate the load factor and the processing speed index, the following formula may be used:
module a: li=5/30=0.17, si=1/10=0.1
Module B: li=2/25=0.08, si=1/8=0.125
Module C: li=3/35=0.086, si=1/12=0.083
Assuming that the weight coefficient is αi=0.6, βi=0.4, the scoring value can be calculated using the following formula:
module a: pi=0.6 (1-0.17) +0.4×0.1=0.514
Module B: pi=0.6 (1-0.08) +0.4×0.125=0.597
Module C: pi=0.6 (1-0.086) +0.4×0.083=0.538
According to the calculation result, the module B has the highest scoring value, so the module B is selected as the optimal allocation module. The stored unique bar codes can be distributed to the electronic bill through the bar code distribution module B, so that the efficiency and the accuracy of the logistics system are improved.
306. And distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction.
Referring to fig. 4, a first embodiment of a barcode distribution method for express packages according to an embodiment of the present invention includes:
401. receiving an electronic bill request sent by at least one express delivery network point;
specifically, embodiments of the present invention include: receiving an electronic bill request sent by at least one express delivery network point, wherein the electronic bill request comprises text information and picture information; analyzing the text information in the request, and extracting text key data, wherein the text key data at least comprises sender information, receiver information and cargo information; and identifying and extracting the picture information in the request to obtain picture key data, wherein the picture key data at least comprises cargo picture information and signature picture information.
402. Generating and storing a unique bar code corresponding to the electronic face sheet;
specifically, embodiments of the present invention include: generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet; encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet; the unique bar code is stored.
403. Monitoring the state of the stored unique bar code, and judging whether the unique bar code meets the distribution condition or not;
404. the bar codes meeting the distribution conditions are subjected to priority ranking according to the estimated processing time;
405. and analyzing the current load condition and processing speed of all the bar code distribution modules, and selecting the bar code distribution module with lower load and higher processing speed, wherein the method comprises the step of defining an adaptive weight distribution function F (Hi).
Specifically, the following steps are adopted to realize the selection of the bar code distribution module:
collecting real-time data of all barcode distribution modules, including: the current number of processing tasks (Ti), the average completion time of the processing tasks (Ai), the processing capacity of the module (Ci), and the historical performance index of the module (Hi).
For each barcode distribution module i, its load factor (Li) and process speed index (Si) are calculated as follows:
load factor (Li) =ti/Ci
Processing speed index (Si) =1/Ai
An adaptive weight distribution function F (Hi) is defined, wherein the input is the historical performance index (Hi) of the module and the output is the weight coefficients (αi and βi).
For example, we can design a simple linear function:
αi=a*Hi+b
βi=1-αi
where a and b are constants for adjusting the influence of the historical manifestation on the weight distribution.
For each barcode allocation module i, its weight coefficients (αi and βi) are calculated using the adaptive weight allocation function F (Hi), and then its scoring value (Pi) is calculated as follows:
Pi=αi*(1-Li)+βi*Si
and comparing the scoring values (Pi) of all the bar code distribution modules, and selecting the bar code distribution module with the highest scoring value as the optimal distribution module.
Let us assume that we have 3 barcode distribution modules, the real-time data are as follows:
module 1:
current processing task quantity (T1) =5
Average completion time of processing task (A1) =2 seconds
Processing capacity of module (C1) =10
History performance index (H1) =0.8
Module 2:
current number of processing tasks (T2) =3
Average completion time of processing task (A2) =1.5 seconds
Processing capacity of module (C2) =8
History performance index (H2) =0.9
Module 3:
current number of processing tasks (T3) =7
Average completion time of processing task (A3) =1 second
Processing power of module (C3) =12
History performance index (H3) =0.7
First, we calculate the load factor (Li) and the process speed index (Si) for each module: module 1:
load factor (L1) =t1/c1=5/10=0.5
Process speed index (S1) =1/a1=1/2=0.5
Module 2:
load factor (L2) =t2/c2=3/8=0.375
Process speed index (S2) =1/a2=1/1.5≡0.667
Module 3:
load factor (L3) =t3/c3=7/12≡0.583
Process speed index (S3) =1/a3=1/1=1
Next, the weight coefficients (αi and βi) are calculated using the adaptive weight distribution function F (Hi). Let a=0.6, b=0.4:
module 1:
α1=a*H1+b=0.6*0.8+0.4=0.88
β1=1-α1=1-0.88=0.12
module 2:
α2=a*H2+b=0.6*0.9+0.4=0.94
β2=1-α2=1-0.94=0.06
module 3:
α3=a*H3+b=0.6*0.7+0.4=0.82
β3=1-α3=1-0.82=0.18
finally, a scoring value (Pi) is calculated for each module:
module 1:
P1=α1*(1-L1)+β1*S1=0.50
module 2:
P2=α2*(1-L2)+β2*S2=0.628
module 3:
P3=α3*(1-L3)+β3*S3==0.522
comparing the scoring values (Pi) of all barcode assignment modules, it can be seen that:
module 1: p1=0.50
Module 2: p2= 0.628
Module 3: p3= 0.522
Module 2 has the highest score value (0.628), so module 2 is selected as the best allocation module.
406. And distributing the stored unique bar code to the electronic bill through the bar code distribution module according to the bar code distribution instruction.
The historical data can be better referenced by using the scoring value of the adaptive weight distribution function calculation module, so that the selected better bar code distribution module.
Referring to fig. 5, a first embodiment of a barcode distribution method for express packages according to an embodiment of the present invention includes:
501. receiving an electronic bill request sent by at least one express delivery network point;
502. generating and storing a unique bar code corresponding to the electronic face sheet;
specifically, embodiments of the present invention include: generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet; encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet; the unique bar code is stored.
503. When the storage state of the unique bar code meets the bar code distribution condition, sending a bar code distribution instruction to a bar code distribution module;
504. analyzing the received bar code allocation instruction, and acquiring electronic face sheet information and unique bar code information in the bar code allocation instruction, wherein the electronic face sheet information comprises picture key data and text key data;
and analyzing the electronic bill information and the unique bar code information from the received bar code distribution instruction. This may be accomplished by identifying a particular field or data structure in the instruction. And extracting electronic menu information comprising picture key data and text key data. The picture key data may include an image (e.g., logo, two-dimensional code, etc.) on the face sheet, and the text key data may include key text information (e.g., recipient, sender, address, etc.) on the face sheet.
505. Judging whether the electronic face sheet information is matched with the unique bar code or not according to the electronic face sheet information and the unique bar code;
before the step, generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet; and encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet, and at the moment, calculating the matching degree of the picture key data and the text key data with the unique bar code according to the picture key data and the text key data, thereby reducing errors in the bar code distribution process. If there is no match, the unique bar code will not be assigned.
506. If so, updating the distribution state of the stored unique bar code.
The scheme of the embodiment can rapidly process a large number of electronic face sheet requests, automatically allocate and schedule the bar codes according to preset allocation conditions and priorities, and improve the efficiency and accuracy of a logistics system. In addition, the security and confidentiality of electronic face bill information and unique bar code information can be protected, and information leakage and data loss are avoided.
The method for distributing the bar code of the express package in the embodiment of the present invention is described above, and the bar code distributing device of the express package in the embodiment of the present invention is described below, referring to fig. 6, one embodiment of the bar code distributing device of the express package in the embodiment of the present invention includes:
601. the receiving module is used for receiving the electronic face sheet request sent by at least one express delivery network point;
602. the generating module is used for generating and storing a unique bar code corresponding to the electronic face sheet;
603. the sending module is used for sending the bar code allocation instruction to the bar code allocation module when the storage state of the unique bar code meets the bar code allocation condition;
604. and the distribution module is used for distributing the stored unique bar code to the electronic receipt through the bar code distribution module according to the bar code distribution instruction.
Fig. 6 above describes the barcode distribution device of the express package in the embodiment of the present invention in detail from the perspective of the modularized functional entity, and the electronic device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 710 (e.g., one or more processors) and a memory 720, and one or more storage media 730 (e.g., one or more mass storage devices) storing application programs 733 or data 732. Wherein memory 720 and storage medium 730 may be transitory or persistent. The program stored in the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations in the electronic device 700. Still further, the processor 710 may be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the electronic device 700.
The electronic device 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input/output interfaces 750, and/or one or more operating systems 731, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting on the electronic device-based and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions are run on a computer, cause the computer to perform the steps of the barcode allocation method for express packages.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The bar code distribution method for the express packages is characterized by comprising the following steps of:
receiving an electronic bill request sent by at least one express delivery network point;
generating and storing a unique bar code corresponding to the electronic face sheet;
when the storage state of the unique bar code meets bar code distribution conditions, transmitting the unique bar code distribution instruction to a bar code distribution module;
and distributing the stored unique bar code to the electronic face bill through the bar code distribution module according to the unique bar code distribution instruction.
2. The method for distributing the bar code of the express package according to claim 1, wherein the step of receiving the electronic receipt request sent by the at least one express website comprises the following steps:
receiving an electronic bill request sent by at least one express delivery network point, wherein the electronic bill request comprises text information and picture information;
analyzing the text information in the request, and extracting text key data, wherein the text key data at least comprises sender information, receiver information and cargo information;
and identifying and extracting the picture information in the request to obtain picture key data, wherein the picture key data at least comprises cargo picture information and signature picture information.
3. The method for distributing the bar codes of the express packages according to claim 2, wherein the generating and storing the unique bar codes corresponding to the electronic facesheets comprises the following steps:
generating a unique hash value by utilizing a hash algorithm according to the picture key data and the text key data in the electronic face sheet;
encoding the unique hash value to generate a unique bar code corresponding to the electronic face sheet;
the unique bar code is stored.
4. The barcode distribution method of express packages according to claim 1, wherein when the storage state of the unique barcode satisfies a barcode distribution condition, a barcode distribution instruction is sent to a barcode distribution module, comprising the following steps:
monitoring the state of the stored unique bar code, and judging whether the unique bar code meets the distribution condition or not;
the bar codes meeting the distribution conditions are subjected to priority ranking according to the estimated processing time;
and analyzing the current load conditions and the processing speed of all the bar code distribution modules, and selecting the bar code distribution module with lower load and higher processing speed.
5. The bar code distribution method for express packages according to claim 4, wherein the analyzing the current load condition and processing speed of all bar code distribution modules selects a bar code distribution module with a lower load and a faster processing speed, and comprises the following steps:
collecting real-time data of all barcode distribution modules, including: the number of processing tasks currently (Ti), the average completion time of the processing tasks (Ai), the processing capacity of the module (Ci);
for each barcode distribution module i, its load factor (Li) and process speed index (Si) are calculated as follows:
load factor (Li) =ti/Ci
Processing speed index (Si) =1/Ai
For each barcode assignment module i, its score value (Pi) is then calculated as follows:
Pi=αi*(1-Li)+βi*Si
wherein, alpha i and beta i are weight coefficients;
and comparing the scoring values (Pi) of all the bar code distribution modules, and selecting the bar code distribution module with the highest scoring value as the optimal distribution module.
6. The bar code distribution method for express packages according to claim 5, wherein the weight coefficients αi and βi are obtained by:
acquiring a historical performance index Hi of a module;
defining an adaptive weight distribution function F (Hi), wherein the input is the historical performance index Hi of the module and the output is the weight coefficients αi and βi;
αi=a*Hi+b
βi=1-αi
where a and b are constants for adjusting the influence of the historical manifestation on the weight distribution.
7. The method for distributing the bar code of the express package according to claim 1, wherein the step of distributing the stored unique bar code to the electronic receipt through the bar code distribution module according to the bar code distribution instruction comprises the following steps:
analyzing the received bar code allocation instruction, and acquiring electronic face sheet information and unique bar code information in the bar code allocation instruction, wherein the electronic face sheet information comprises picture key data and text key data;
judging whether the electronic face sheet information is matched with the unique bar code or not according to the electronic face sheet information and the unique bar code;
if so, updating the distribution state of the stored unique bar code.
8. The utility model provides a bar code distribution device of express delivery parcel which characterized in that includes:
the receiving module is used for receiving the electronic face sheet request sent by at least one express delivery network point;
the generating module is used for generating and storing a unique bar code corresponding to the electronic face sheet;
the sending module is used for sending the bar code allocation instruction to the bar code allocation module when the storage state of the unique bar code meets the bar code allocation condition;
and the distribution module is used for distributing the stored unique bar code to the electronic receipt through the bar code distribution module according to the bar code distribution instruction.
9. An electronic device comprising a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the electronic device to perform the steps of the barcode allocation method of the express package of any of claims 1-7.
10. A computer readable storage medium having instructions stored thereon, which when executed by a processor, perform the steps of the barcode distribution method of an express package of any of claims 1-7.
CN202310380186.7A 2023-04-11 2023-04-11 Bar code distribution method, device and equipment for express package and storage medium Pending CN116415870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310380186.7A CN116415870A (en) 2023-04-11 2023-04-11 Bar code distribution method, device and equipment for express package and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310380186.7A CN116415870A (en) 2023-04-11 2023-04-11 Bar code distribution method, device and equipment for express package and storage medium

Publications (1)

Publication Number Publication Date
CN116415870A true CN116415870A (en) 2023-07-11

Family

ID=87057696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310380186.7A Pending CN116415870A (en) 2023-04-11 2023-04-11 Bar code distribution method, device and equipment for express package and storage medium

Country Status (1)

Country Link
CN (1) CN116415870A (en)

Similar Documents

Publication Publication Date Title
US20200111555A2 (en) Synchronization of hierarchical data
US20210174150A1 (en) Automated Classification Engine with Human Augmentation
CN112650858A (en) Method and device for acquiring emergency assistance information, computer equipment and medium
CN116245112A (en) Logistics information identification method and device and computer equipment
CN114757619A (en) Package transportation state identification method and related equipment
CN113469612A (en) Logistics timeliness prompting method, device, equipment and storage medium
CN116415870A (en) Bar code distribution method, device and equipment for express package and storage medium
CN114444751A (en) Material demand prediction method and device, computer equipment and storage medium
CN114612047A (en) Electronic bill generation method, device, equipment and storage medium
CN107563700A (en) Shared box for material circulation sort management method, apparatus and system
CN112101837A (en) Method and device for generating express waybill, electronic equipment and storage medium
CN115512453A (en) Goods acceptance method, system, electronic equipment and medium
CN115034704A (en) Logistics tracking method, device, equipment and storage medium
CN115034717A (en) Method, device, equipment and computer readable medium for monitoring logistics menu
CN115471148A (en) Data processing method, device, equipment and storage medium
CN115170073A (en) Logistics arbitration list processing method, device, equipment and storage medium
CN115170017A (en) Waybill processing method and device and storage medium
CN114254973A (en) Cold chain transportation method, device, equipment and storage medium based on small program
CN113724049A (en) Information processing method, device, equipment and storage medium
CN111453098B (en) Packing method and device for abnormal automatic packer
CN117235541A (en) Confidence matching method, device, equipment and storage medium for logistics data
CN105051723A (en) Identification of packaged items
CN107545443B (en) Storage management method and system based on anti-counterfeiting information code
CN115577867B (en) Method and system for creating spot check task, computer equipment and storage medium
CN116304230A (en) Work order creation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination