Search

CN-121981134-A - Batch bar code data acquisition method, system, equipment and readable storage medium

CN121981134ACN 121981134 ACN121981134 ACN 121981134ACN-121981134-A

Abstract

The invention provides a method, a system, equipment and a readable storage medium for collecting batch bar code data, wherein the method comprises the steps of obtaining a bar code set to be collected, the coding type of each bar code and the scanning time interval between adjacent bar codes; the method comprises the steps of analyzing logic continuity of each bar code, determining the bar code with the logic continuity which does not meet the preset requirement as an abnormal bar code, obtaining a first product batch code of the abnormal bar code, wherein a prefix field of the first product batch code comprises a first production time field, a first production line number field and a first serial number field, checking product batches to which each abnormal bar code belongs according to the prefix field, marking bar codes which do not belong to the same product batch in the abnormal bar code, and eliminating the bar codes subjected to marking treatment so as to realize collection of batch bar code data. The method and the device can improve the effectiveness of the batch bar code data acquisition result and reduce the deviation of bar code data on the whole layer.

Inventors

  • JIANG HE
  • DAI YANFEI
  • CHEN ZHIHUA

Assignees

  • 广州爱格尔智能科技有限公司

Dates

Publication Date
20260505
Application Date
20251230

Claims (10)

  1. 1. The method for collecting the batch bar code data is characterized by comprising the following steps: Acquiring a barcode set to be acquired, acquiring the coding type of each barcode in the barcode set to be acquired, and acquiring the scanning time interval between adjacent barcodes in the barcode set to be acquired; analyzing the logic continuity of each bar code according to the coding type and the scanning time interval between the adjacent bar codes; determining a bar code with logic continuity which does not meet preset requirements as an abnormal bar code, and acquiring a first product batch code of the abnormal bar code, wherein a prefix field of the first product batch code comprises a first production time field, a first production line number field and a first serial number field; the method comprises the steps of encoding a first product batch, checking the product batch to which each abnormal bar code belongs according to a prefix field of the first product batch, marking bar codes which do not belong to the same product batch in the abnormal bar codes according to a checking result, and eliminating the bar codes subjected to marking treatment from the bar code set to be acquired, so that acquisition of batch bar code data is realized.
  2. 2. The method for collecting batch bar code data according to claim 1, wherein the step of eliminating the bar codes subjected to the marking process from the bar code set to be collected, thereby realizing collection of batch bar code data, comprises the steps of: Removing the bar codes subjected to marking treatment from the bar code set to be acquired; Reading a scanning event through a data cache of the bar code scanning device; Based on the scanning event, extracting the optical capturing signal intensity of each bar code in the removed acquired bar code data, and screening the bar code with the optical capturing signal intensity larger than a preset signal intensity threshold value from the removed acquired bar code data to obtain a screened bar code image; decoding the screening bar code image to obtain a character string sequence; Identifying coding structure characteristics based on the character string sequence, and carrying out character rule verification on a prefix code segment and a data code segment of the character string sequence according to the coding structure characteristics; and according to the bar codes passing through the regular check of the characters in the screening bar code image, acquiring batch bar code data.
  3. 3. The method for collecting batch barcode data according to claim 1, wherein the verifying the product batch to which each of the heterogeneous barcodes belongs according to the prefix field of the first product batch code comprises: Acquiring prefix fields of second product batch codes of adjacent bar codes of the different bar codes; Comparing the prefix field of the first product batch code with the prefix field of the second product batch code; And judging the batch matching degree between the abnormal bar code and the adjacent bar code according to the comparison result, thereby realizing the inspection of the product batch to which each abnormal bar code belongs.
  4. 4. The method of claim 3, wherein the prefix field of the second product lot code includes a second production time field, a second line number field, and a second serial number field, and wherein the comparing based on the prefix field of the first product lot code and the prefix field of the second product lot code includes: determining the comparison priority of each prefix field based on a preset business scene association rule; and according to the comparison priority, respectively performing comparison processing based on the first production line number field and the second production line number field, performing comparison processing based on the first production time field and the second production time field, and performing comparison processing based on the first serial number field and the second serial number field.
  5. 5. The method for collecting batch bar code data according to claim 4, wherein the comparing based on the first line number field and the second line number field comprises: inquiring a preset line number mapping table according to the first line number field and the second line number field; And judging whether the change time of the history number is before the time corresponding to the first production time field and the second production time, thereby obtaining a comparison result of the first production line number field and the second production line number field.
  6. 6. The method for collecting batch barcode data as claimed in claim 5, wherein the comparing based on the first time-of-production field and the second time-of-production field comprises: when the comparison of the first production line number field and the second production line number field is passed; calling associated production configuration data according to the first production line number field, extracting a production mode based on the production configuration data, and determining a time window according to the production mode; Calculating a time difference based on the first and second production time fields; And checking whether the time difference value is in the range of the time window, and obtaining a comparison result of the first production time field and the second production time field.
  7. 7. The method for collecting batch barcode data according to claim 1, wherein analyzing the logical continuity of each barcode according to the coding type and scanning time interval between the adjacent barcodes comprises: according to the coding type, analyzing the compatibility between adjacent bar codes to obtain a compatibility analysis result; checking the scanning time interval through a preset time threshold value to obtain a time checking result; and determining the logic continuity of each bar code according to the compatibility analysis result and the time verification result.
  8. 8. A system for collecting batch bar code data is characterized by comprising a data acquisition module, an analysis module, a code acquisition module and a collection module, wherein, The data acquisition module is used for acquiring a bar code set to be acquired, acquiring the coding type of each bar code in the bar code set to be acquired, and acquiring the scanning time interval between adjacent bar codes in the bar code set to be acquired; the analysis module is used for analyzing the logic continuity of each bar code according to the coding type and the scanning time interval between the adjacent bar codes; The code acquisition module is used for determining a bar code with logic continuity which does not meet the preset requirement as an abnormal bar code, and acquiring a first product batch code of the abnormal bar code, wherein a prefix field of the first product batch code comprises a first production time field, a first production line number field and a first serial number field; The acquisition module is used for checking the product batch to which each abnormal bar code belongs according to the prefix field of the first product batch code, marking the bar codes which do not belong to the same product batch in the abnormal bar codes according to the checking result, and eliminating the bar codes subjected to marking from the bar code set to be acquired, thereby realizing the acquisition of batch bar code data.
  9. 9. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of collecting bulk barcode data according to any one of claims 1 to 7 when the computer program is executed.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to perform the method for collecting bulk barcode data according to any one of claims 1 to 7.

Description

Batch bar code data acquisition method, system, equipment and readable storage medium Technical Field The present invention relates to the field of barcode recognition, and in particular, to a method, a system, an apparatus, and a readable storage medium for collecting batch barcode data. Background Bar code data identification and classification technology plays a vital role in modern logistics, retail and industrial automation, and the accuracy and reliability of the bar code data identification and classification technology directly influence the smoothness and efficiency of the business process. However, with the complexity of the business scenario, the barcode data is not just an independent information unit, but gradually merges into the serialized logical relationship, which puts higher demands on the identification and classification technology. In the prior art, verification of barcode data is often focused on a verification rule of a single barcode, for example, whether the verification rule meets a coding standard is judged by calculating a verification bit. Although the method can ensure certain accuracy on the independent data layer, the practical requirement that barcode data is often required to be logically associated with other barcodes in actual business is ignored. Under the scene of continuous scanning or batch processing, the business rule contradiction hidden between bar codes cannot be dealt with by relying on the verification rule alone, the effectiveness of the batch data bar code data acquisition result is poor due to the lack of consideration of logic association between bar codes, and the data can deviate on the whole level. Disclosure of Invention The invention provides a method, a system, equipment and a readable storage medium for collecting batch bar code data, which are used for solving the technical problem of how to improve the effectiveness of the collection result of the batch bar code data. In order to solve the technical problems, the invention provides a method for collecting batch bar code data, which comprises the following steps: Acquiring a barcode set to be acquired, acquiring the coding type of each barcode in the barcode set to be acquired, and acquiring the scanning time interval between adjacent barcodes in the barcode set to be acquired; analyzing the logic continuity of each bar code according to the coding type and the scanning time interval between the adjacent bar codes; determining a bar code with logic continuity which does not meet preset requirements as an abnormal bar code, and acquiring a first product batch code of the abnormal bar code, wherein a prefix field of the first product batch code comprises a first production time field, a first production line number field and a first serial number field; the method comprises the steps of encoding a first product batch, checking the product batch to which each abnormal bar code belongs according to a prefix field of the first product batch, marking bar codes which do not belong to the same product batch in the abnormal bar codes according to a checking result, and eliminating the bar codes subjected to marking treatment from the bar code set to be acquired, so that acquisition of batch bar code data is realized. As a preferred solution, the removing the bar code subjected to the marking processing from the bar code set to be collected, thereby realizing collection of batch bar code data, including: Removing the bar codes subjected to marking treatment from the bar code set to be acquired; Reading a scanning event through a data cache of the bar code scanning device; Based on the scanning event, extracting the optical capturing signal intensity of each bar code in the removed acquired bar code data, and screening the bar code with the optical capturing signal intensity larger than a preset signal intensity threshold value from the removed acquired bar code data to obtain a screened bar code image; decoding the screening bar code image to obtain a character string sequence; Identifying coding structure characteristics based on the character string sequence, and carrying out character rule verification on a prefix code segment and a data code segment of the character string sequence according to the coding structure characteristics; and according to the bar codes passing through the regular check of the characters in the screening bar code image, acquiring batch bar code data. Preferably, the verifying the product lot to which each abnormal bar code belongs according to the prefix field of the first product lot code includes: Acquiring prefix fields of second product batch codes of adjacent bar codes of the different bar codes; Comparing the prefix field of the first product batch code with the prefix field of the second product batch code; And judging the batch matching degree between the abnormal bar code and the adjacent bar code according to the comparison result, thereby realizing the inspection of t