CN109325380B - Method and system for realizing automatic analysis of label bar code through configuration - Google Patents
Method and system for realizing automatic analysis of label bar code through configuration Download PDFInfo
- Publication number
- CN109325380B CN109325380B CN201811097901.1A CN201811097901A CN109325380B CN 109325380 B CN109325380 B CN 109325380B CN 201811097901 A CN201811097901 A CN 201811097901A CN 109325380 B CN109325380 B CN 109325380B
- Authority
- CN
- China
- Prior art keywords
- bar code
- configuring
- characters
- label bar
- original factory
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
Abstract
The invention provides a method and a system for realizing automatic analysis of a label bar code through configuration, which comprises the following steps: establishing basic information of the original factory label bar code; configuring a separator of the original factory label bar code; configuring data items of each code segment of the original factory label bar code; configuring an atomic algorithm; and performing single operation or mixed operation according to the configured atomic algorithm to finish character processing on the data item and finish analysis. According to the invention, the analysis rules are set through the configuration of each step, and the information hidden in the original factory material bar codes is analyzed one by one according to the actual requirement, so that the method is convenient to use when the original factory material bar codes are converted into new bar codes subsequently.
Description
Technical Field
The invention relates to a method and a system for automatically analyzing a label bar code.
Background
The bar code technology appears in the 40 th of the 20 th century, and is widely applied to various industries due to the characteristics of low cost, high accuracy of information acquisition and the like. In recent years, barcode technology has been well developed in the production process of enterprises, and currently, many enterprises adopt a mode of scanning material barcodes in different procedures to control the whole production flow, and the material purchased by a production enterprise is often attached with the barcodes of raw material manufacturers, and after the material is delivered to the production enterprise through logistics, the barcodes of the production enterprise or the barcodes meeting the requirements of subsequent suppliers need to be replaced. The existing original factory material bar code is generally formed by combining a plurality of pieces of information of materials, and the information hidden in the original factory material bar code is difficult to identify by naked eyes, so that useful information cannot be extracted in time.
2013-08-21, the chinese invention with publication number CN103258182A provides a method for converting a commodity barcode and an electronic tag, which comprises: and step S101, reading data information contained in the commodity bar codes, wherein the commodity bar codes are all EAN13 commodity bar codes in a 13-bit data format. And S102, decoding the data information of the commodity bar code and respectively extracting the data of each section of the bar code. Different commodity bar codes contain different commodity data information, and the commodity data information can be obtained by identifying and decoding the commodity bar codes. And step S103, identifying the electronic tag, reading electronic tag data and/or writing electronic tag data and printing the electronic tag. In a specific application, the electronic tag may be identified by radio frequency, and data information of the electronic tag may be read/written. Preferably, the electronic tag of the present invention can be in various categories, and can be specifically an EPC SGTIN-96 electronic tag or an EPC SGTIN-198 electronic tag according to different requirements. And step S104, decoding the electronic tag and respectively extracting data of each section of the electronic tag. The data of the electronic tag has a plurality of data segments, each data segment has different commodity information, and the subsequent step S105 can be conveniently realized by extracting each segment of data and corresponding meanings. And step S105, processing the data of the commodity bar code and the electronic tag, and converting the data of the commodity bar code and the electronic tag. However, the invention can only identify the EAN13 commodity bar code in 13-bit data format, and can not automatically analyze various label bar codes in a configuration mode. And the new label bar code according with the production enterprise can not be obtained according to various atom calculation modes.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a system for realizing automatic analysis of a label bar code through configuration, and the method and the system are used for setting an analysis rule, analyzing information hidden in the original factory material bar code one by one according to actual needs and facilitating the use of the subsequent original factory material bar code when being converted into a new bar code.
The method of the invention is realized as follows: a method for realizing automatic analysis of a label bar code through configuration comprises the following steps:
step S1, establishing basic information of the original factory label bar code;
step S2, configuring separators of original factory label bar codes;
s3, configuring data items of each code segment of the original factory label bar code;
step S4, configuring an atomic algorithm;
and step S5, performing single operation or mixed operation according to the configured atomic algorithm, completing character processing on the data item, and ending the analysis.
Further, the atomic algorithm includes:
(1) removing '0' at the beginning of the numeric character string;
(2) removing left and right spaces;
(3) deleting the left N bits;
(4) deleting the right N bits;
(5) acquiring the Nth to Mth characters from left to right;
(6) acquiring the Nth to Mth characters from right to left;
(7) inserting characters on the right side;
(8) inserting characters on the left;
(9) all are converted into lower case;
(10) all are converted into capitals;
(11) deleting characters;
(12) intercepting the Mth section according to a separator X;
(13) intercepting character Y from the Nth bit;
wherein, N and M are natural numbers, N < M, X is separator variable, and Y is character variable.
Further, the blending operation supports a hierarchical operation and an ordering up and down operation.
The system of the invention is realized as follows: a system configured to implement automatic resolution of tag barcodes, comprising:
the basic information establishing module is used for establishing basic information of the original factory label bar code by a user;
the separator configuration module is used for configuring separators of original factory label bar codes by a user;
the data item configuration module is used for configuring the data items of the code segments by a user;
the atomic algorithm configuration module is used for configuring an atomic algorithm by a user;
and the data item character processing module performs single operation or mixed operation according to the configured atomic algorithm to complete character processing on the data item.
Further, the atomic algorithm includes:
(1) removing '0' at the beginning of the numeric character string;
(2) removing left and right spaces;
(3) deleting the left N bits;
(4) deleting the right N bits;
(5) acquiring the Nth to Mth characters from left to right;
(6) acquiring the Nth to Mth characters from right to left;
(7) inserting characters on the right side;
(8) inserting characters on the left;
(9) all are converted into lower case;
(10) all are converted into capitals;
(11) deleting characters;
(12) intercepting the Mth section according to a separator X;
(13) intercepting character Y from the Nth bit;
wherein, N and M are natural numbers, N < M, X is separator variable, and Y is character variable.
Further, the blending operation supports a hierarchical operation and an ordering up and down operation.
The invention has the following advantages: setting analysis rules, including configuring basic information of the original factory label bar code, configuring separators of the original factory label bar code, data items of each code segment and configuring an atomic algorithm, so that information hidden in the original factory material bar code is analyzed one by one according to actual needs, and the information is convenient to use when the subsequent original factory material bar code is converted into a bar code meeting the requirements of a supplier.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a flow chart of the method and system of the present invention.
FIG. 2 is a schematic diagram of an interface for establishing a status of basic information in the method and system of the present invention.
FIG. 3 is a schematic diagram of an interface for configuring the status of delimiters in the method and system of the present invention.
FIG. 4 is a schematic diagram of an interface for configuring the status of data items in the method and system of the present invention.
FIG. 5 is a schematic diagram of an interface for configuring atomic algorithm states in the method and system of the present invention.
Detailed Description
Referring to fig. 1, the method for implementing automatic resolution of a tag barcode by configuration according to the present invention includes:
step S1, establishing basic information of the original factory label bar code, such as the full name and the short name of the raw material supplier of the original factory label bar code, the material number and the like;
step S2, configuring separators of original factory label bar codes;
s3, configuring data items of each code segment of the original factory label bar code;
step S4, configuring an atomic algorithm;
and step S5, performing single operation or mixed operation according to the configured atomic algorithm, completing character processing on the data item, and ending the analysis.
The invention discloses a system for realizing automatic analysis of a label bar code by configuration, which comprises: the system comprises a basic information establishing module, a separator configuration module, a data item configuration module, an atomic algorithm configuration module and a data item character processing module.
The basic information establishing module is used for a user to establish basic information of the original factory label bar code; as shown in fig. 2, basic information of the original factory tag barcode, such as the full name and short name of the original factory tag barcode, the number of materials, and the like, is established for each raw material supplier of the user enterprise.
The separator configuration module is used for configuring separators of original factory label bar codes by users; as shown in fig. 3, any genuine product label bar code of the material supplier is selected as a test code and is input into the corresponding test code frame, and the separator of the genuine product label bar code in the test code frame shown in fig. 3 is "," so that "," can be input into the separator configuration frame.
The data item configuration module is used for configuring the data item to which each code segment belongs by a user; as shown in fig. 4, after the separator is entered as "and" the system automatically fills the data items of each code segment obtained by the separation of the separator as "and" into the table, so as to obtain the test value; the user fills the meaning configuration in the corresponding column, such as original plant material number, quantity, LotNo, date of manufacture (DATECODE), etc.
The atomic algorithm configuration module is used for configuring an atomic algorithm by a user; as shown in fig. 4, after "character processing" at the end of a certain data item column is clicked, a job step page of character processing is entered, and as shown in fig. 5, an atomic algorithm configuration may be performed, and if "number" code segment needs to be removed from 0 before the number, the job step selects < 0 at the beginning of the number character string is removed, and the process returns to fig. 4, and a result value is obtained.
In the present invention, the atomic algorithm includes:
(1) removing '0' at the beginning of the numeric character string;
(2) removing left and right spaces;
(3) deleting the left N bits;
(4) deleting the right N bits;
(5) acquiring the Nth to Mth characters from left to right;
(6) acquiring the Nth to Mth characters from right to left;
(7) inserting characters on the right side;
(8) inserting characters on the left;
(9) all are converted into lower case;
(10) all are converted into capitals;
(11) deleting characters;
(12) intercepting the Mth section according to a separator X;
(13) intercepting character Y from the Nth bit;
wherein, N and M are natural numbers, N < M, X is separator variable, and Y is character variable.
The atomic algorithms (2) to (13) are explained one by taking a test value 'LYRYCLH 99LKHD6D7 JJK' as an example, and the details are shown in the following table;
and the data item character processing module performs single operation or mixed operation according to the configured atomic algorithm to complete character processing on the data item.
When the configuration of the data items cannot be met by single atomic calculation, mixed operation can be performed, and the system supports hierarchical and top-bottom ordering operation. If the L BM673-P1 character strings need to be acquired from the original factory information [) > @06@12S0001@ X11081040@1PLBM673@6P1008717219@1TTC7120H699@9D1713@ Q3000@1LP1, after the original factory information is acquired, the configuration acquisition rule is as follows:
1. intercepting the 5 th section of the original factory information according to the separator @;
2. deleting the left 2 bits of the value obtained in the step 1;
3. inserting a character "-" at the right side of the result in the step 3;
4. intercepting the 10 th segment of the original factory information according to the separator @;
5. deleting the left 2 bits of the value obtained in the step 4;
6. and splicing the values of the step 2 and the step 4.
Then the following is configured in the system:
wherein ">", "> > > >", and "> > > >" in the work steps are operations at the second level to the fourth level.
When the analysis is finished, the analysis result can be used for generating a new label bar code, and when an original factory bar code of a raw material supplier of a user enterprise is analyzed according to the method, the original factory bar code similar to the raw material supplier can be automatically analyzed by scanning subsequently.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (2)
1. A method for realizing automatic analysis of a label bar code through configuration is characterized in that: the method comprises the following steps:
step S1, establishing basic information of the original factory label bar code;
step S2, configuring separators of original factory label bar codes;
s3, configuring data items of each code segment of the original factory label bar code;
step S4, configuring an atomic algorithm, including:
(1) removing '0' at the beginning of the numeric character string;
(2) removing left and right spaces;
(3) deleting the left N bits;
(4) deleting the right N bits;
(5) acquiring the Nth to Mth characters from left to right;
(6) acquiring the Nth to Mth characters from right to left;
(7) inserting characters on the right side;
(8) inserting characters on the left;
(9) all are converted into lower case;
(10) all are converted into capitals;
(11) deleting characters;
(12) intercepting the Mth section according to a separator X;
(13) intercepting character Y from the Nth bit;
wherein, N and M are both natural numbers, N < M, X is a separator variable, and Y is a character variable;
step S5, performing single operation or mixed operation according to the configured atomic algorithm, completing character processing on the data items, and ending the analysis; the blending operation supports hierarchical operations and sort up and down operations.
2. A system for realizing automatic analysis of a label bar code through configuration is characterized in that: the method comprises the following steps:
the basic information establishing module is used for establishing basic information of the original factory label bar code by a user;
the separator configuration module is used for configuring separators of original factory label bar codes by a user;
the data item configuration module is used for configuring the data items of the code segments by a user;
the atomic algorithm configuration module is used for configuring an atomic algorithm by a user and comprises the following steps:
(1) removing '0' at the beginning of the numeric character string;
(2) removing left and right spaces;
(3) deleting the left N bits;
(4) deleting the right N bits;
(5) acquiring the Nth to Mth characters from left to right;
(6) acquiring the Nth to Mth characters from right to left;
(7) inserting characters on the right side;
(8) inserting characters on the left;
(9) all are converted into lower case;
(10) all are converted into capitals;
(11) deleting characters;
(12) intercepting the Mth section according to a separator X;
(13) intercepting character Y from the Nth bit;
wherein, N and M are both natural numbers, N < M, X is a separator variable, and Y is a character variable;
the data item character processing module performs single operation or mixed operation according to a configured atomic algorithm to complete character processing on the data item; the blending operation supports hierarchical operations and sort up and down operations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811097901.1A CN109325380B (en) | 2018-09-20 | 2018-09-20 | Method and system for realizing automatic analysis of label bar code through configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811097901.1A CN109325380B (en) | 2018-09-20 | 2018-09-20 | Method and system for realizing automatic analysis of label bar code through configuration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109325380A CN109325380A (en) | 2019-02-12 |
CN109325380B true CN109325380B (en) | 2021-10-26 |
Family
ID=65266227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811097901.1A Active CN109325380B (en) | 2018-09-20 | 2018-09-20 | Method and system for realizing automatic analysis of label bar code through configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109325380B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110070162B (en) * | 2019-03-11 | 2022-07-26 | 上海因致信息科技有限公司 | Method and system for encoding data to be filled in bar code |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1349193A (en) * | 2000-10-13 | 2002-05-15 | 北京金百冠投资顾问有限公司 | Automatic internet addressing bar code import system |
WO2012114444A1 (en) * | 2011-02-21 | 2012-08-30 | 三菱電機株式会社 | Engineering device |
CN103258182A (en) * | 2013-05-24 | 2013-08-21 | 深圳市检验检疫科学研究院 | Conversion method and system for article bar code and electronic tag |
US8713031B1 (en) * | 2011-09-06 | 2014-04-29 | Bryant Christopher Lee | Method and system for checking citations |
CN105740909A (en) * | 2016-02-02 | 2016-07-06 | 华中科技大学 | Text recognition method under natural scene on the basis of spatial transformation |
CN105893583A (en) * | 2016-04-01 | 2016-08-24 | 北京鼎泰智源科技有限公司 | Data acquisition method and system based on artificial intelligence |
CN106446750A (en) * | 2016-07-07 | 2017-02-22 | 深圳市华汉伟业科技有限公司 | Bar code reading method and device |
-
2018
- 2018-09-20 CN CN201811097901.1A patent/CN109325380B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1349193A (en) * | 2000-10-13 | 2002-05-15 | 北京金百冠投资顾问有限公司 | Automatic internet addressing bar code import system |
WO2012114444A1 (en) * | 2011-02-21 | 2012-08-30 | 三菱電機株式会社 | Engineering device |
US8713031B1 (en) * | 2011-09-06 | 2014-04-29 | Bryant Christopher Lee | Method and system for checking citations |
CN103258182A (en) * | 2013-05-24 | 2013-08-21 | 深圳市检验检疫科学研究院 | Conversion method and system for article bar code and electronic tag |
CN105740909A (en) * | 2016-02-02 | 2016-07-06 | 华中科技大学 | Text recognition method under natural scene on the basis of spatial transformation |
CN105893583A (en) * | 2016-04-01 | 2016-08-24 | 北京鼎泰智源科技有限公司 | Data acquisition method and system based on artificial intelligence |
CN106446750A (en) * | 2016-07-07 | 2017-02-22 | 深圳市华汉伟业科技有限公司 | Bar code reading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109325380A (en) | 2019-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3425408B2 (en) | Document reading device | |
CA2895917C (en) | System and method for data extraction and searching | |
CN110276456A (en) | A kind of machine learning model auxiliary construction method, system, equipment and medium | |
CN109409452B (en) | Method and device for analyzing universal label and automatically generating printing label | |
CN111639066A (en) | Data cleaning method and device | |
CN104484558B (en) | The analysis report automatic generation method and system of biological information project | |
CN112163553B (en) | Material price accounting method, device, storage medium and computer equipment | |
JP2008009586A (en) | Bar-code print data creation device and bar-code print data creation program | |
CN109214642B (en) | Automatic extraction and classification method and system for building construction process constraints | |
US9256805B2 (en) | Method and system of identifying an entity from a digital image of a physical text | |
US7200811B1 (en) | Form processing apparatus, form processing method, recording medium and program | |
CN109325380B (en) | Method and system for realizing automatic analysis of label bar code through configuration | |
CN100378720C (en) | Document processing device, document processing method, and storage medium recording program therefor | |
CN110427530B (en) | Method, device, equipment and storage medium for identifying electronic tags of materials | |
WO2007070010A1 (en) | Improvements in electronic document analysis | |
CN111898378A (en) | Industry classification method and device for government and enterprise clients, electronic equipment and storage medium | |
CN109544134B (en) | Convenient payment service method and system | |
CN115964457A (en) | Fuzzy matching method for document character string codes | |
CN111400644B (en) | Calculation processing method for laboratory analysis sample | |
JP4347675B2 (en) | Form OCR program, method and apparatus | |
US20100023517A1 (en) | Method and system for extracting data-points from a data file | |
CN106446192A (en) | Method and device for management of sign-off document | |
CN110619128B (en) | Construction method of digital factory | |
KR101447526B1 (en) | Method and apparatus for sorting personal information database based on an address and for grouping information from the sorted database | |
CN112287184B (en) | Migration labeling method, device, equipment and storage medium based on neural network |
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 | ||
CB02 | Change of applicant information |
Address after: 350000 room 710, 7 / F, building a, jiuce building, Haixi high tech Industrial Park, Fuzhou high tech Zone, Fuzhou, Fujian Applicant after: Moore element (Fujian) Technology Co.,Ltd. Address before: 361000 1218-20, No. 99, Songyu South Second Road, Xiamen area, China (Fujian) pilot Free Trade Zone, Xiamen, Fujian Applicant before: MOREWIS (XIAMEN) TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |