A method and system for collecting whole-layer codes
By optimizing the reading logic and partition reading strategy of the code whole layer acquisition system, the problems of high equipment requirements, high cost and read errors in the existing technology are solved, and efficient and low-cost code whole layer acquisition is achieved, which significantly improves production efficiency.
Patent Information
- Application Number
- CN202210372826.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-04-11
AI Technical Summary
In the prior art, the code-wide layer acquisition system has high requirements for equipment, resulting in high costs, and read errors are prone to reading, resulting in low production efficiency.
By optimizing the reading logic and system, it is divided into two visual readings: the small box code in the middle package product is read for the first time, and if it fails, it will be eliminated; after success, the small box code is divided into several sub-regions, and gradually read and match to ensure that it is associated with the large box code after successful reading.
It reduces equipment performance requirements, reduces costs, and improves read success rate from 95% to 99.99%, significantly improving production efficiency.
Smart Images

Figure CN114692794B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of coding technology and equipment automatic control, and in particular to a method and system for whole-layer code collection. [Background technology]
[0002] See the current system diagram for code acquisition at the entire layer. Figure 1 As shown, the serialization relationship system 001 needs to associate and bind the small box codes on all small boxes in the package 002 in the entire layer with the code on the label of the large box 003.
[0003] First, the whole layer reading visual machine 004 will be used to read the small box codes of all small boxes in all areas of the whole layer of middle package 002. When all the small box codes are read successfully, the whole layer reading visual machine 004 will send all the small box codes to the serialization relationship system 001, and the serialization relationship system 001 will complete the association and binding of all the small box codes in the whole layer of middle package 002 with the code on the label of the large box 003. If any small box code in the whole layer of middle package 002 is not read successfully, it will cause the failure of this round of collection, and it is necessary to stop the machine or remove the whole layer of middle package 002 for rework.
[0004] Due to the large reading area, each small box code must be read efficiently, which requires each small box code to have very high pixels. Therefore, the pixels of the whole layer reading visual machine 004 must be very high. Since all the codes in the whole layer of middle package 002 need to be read each time, the number of decodings is large, and the decoding performance of the whole layer reading visual machine 004 is very high, resulting in high costs. In addition, since the middle package 005 has a PE film covering the small box code, the PE film is uneven. Due to the optical properties of vision, the PE film will cause irregular reflections in the images collected by the whole layer reading visual machine 004, making the code on the small box unclear, and causing the whole layer reading visual machine 004 to fail in visual decoding, resulting in shutdown or removal of the entire layer, reducing production efficiency. [Summary of the invention]
[0005] The present invention provides a method and system for collecting whole-layer codes, which are used to solve the problems in the prior art of high requirements on equipment, resulting in high costs, and easy reading errors, resulting in low production efficiency.
[0006] A method for collecting codes in a whole layer according to an embodiment of the present invention comprises the following steps: S1, reading the small box code on each small box product in the current middle package of goods, if all are read successfully, proceeding to step S2, if any small box code fails to be read, the current middle package of goods is discarded; S2, recording the read small box code in the current group; S3, judging whether the middle package of goods covers the entire layer, if it has covered the entire layer, proceeding to step S4, otherwise returning to step S1; S4, reading the small box codes on the small box products in the designated area of the entire layer according to predetermined rules, if the reading is successful, proceeding to step S5, otherwise judging that the collection of codes in the whole layer fails; S5, matching the small box code read from the designated area with the small box code in the current group to obtain all the small box codes in the current group; S6, associating all the small box codes in the current group with the code on the large box to complete this round of code collection in the whole layer.
[0007] Preferably, the step S4 of reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: dividing the designated area of the entire layer into a plurality of sub-areas; and reading any small box code from each of the sub-areas. Further, if any small box code cannot be read successfully from each of the sub-areas, any small box code is read again from each of the sub-areas within a preset reading number threshold.
[0008] Preferably, the step S4 of reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: dividing the designated area of the entire layer into a plurality of sub-areas; and reading at least two small box codes from each of the sub-areas. Further, if at least one small box code is read successfully in each sub-area, the reading is determined to be successful, otherwise, the code collection of the entire layer is determined to fail.
[0009] Preferably, the step S4 of reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: reading a specified number of small box codes from random positions in the designated area. Further, if the specified number of small box codes read from the random positions in the designated area are not all read successfully, the specified number of small box codes are read again from the random positions in the designated area within a preset reading number threshold.
[0010] A system for whole-layer code collection in an embodiment of the present invention comprises, according to the conveying direction of the conveyor line: a middle-pack reading visual machine, a middle-pack rejection mechanism and a whole-layer reading visual machine, a whole-layer middle-pack placement area corresponding to the whole-layer reading visual machine, and a serialization association subsystem respectively connected to the middle-pack reading visual machine and the whole-layer reading visual machine; the middle-pack reading visual machine is used to read the small box code on each small box product in the current middle-pack product, and if all reads are successful, the read small box code is sent to the serialization association subsystem, and if any small box code fails to read, the middle-pack rejection mechanism is triggered; the middle-pack rejection mechanism is used to reject the current middle-pack product; the whole-layer reading visual machine The vision machine is used to read the small box codes on the small box products in the designated area of the whole layer of middle package placement area according to predetermined rules when the middle package products cover the whole layer of middle package placement area. If the reading is successful, the read small box code will be sent to the serialization association subsystem, otherwise it will be determined that the whole layer code collection has failed; the serialization association subsystem is used to record the small box code sent from the middle package reading vision machine into the current group, match the small box code sent from the whole layer reading vision machine with the small box code in the current group, obtain all the small box codes in the current group, and associate all the small box codes in the current group with the codes on the large box, so as to complete the whole layer code collection of this round.
[0011] The method and system for collecting whole-layer codes of the present invention have low performance requirements for the equipment, low cost, and improved reading success rate, thereby improving production efficiency. The success rate can be increased from the original 95% to 99.99%.
Brief Description of the Drawings
[0012] Figure 1 It is a schematic diagram of a system for collecting whole-layer codes in the prior art of the present invention;
[0013] Figure 2 is a flow chart of a method for collecting whole-layer codes according to Embodiment 1 of the present invention;
[0014] Figure 3 It is a schematic diagram of the system structure of code whole layer acquisition in embodiment 2 of the present invention. [Specific implementation method]
[0015] The inventor has found that by optimizing the reading logic and system, the problem of equipment cost, low reading success rate and low production efficiency can be solved. It should be noted that each small box of goods in the present invention has a small box code, and each large box also has a unique code. For example, 10 small boxes of goods are packaged into a medium package of goods through PE film, and 6 medium packages of goods fill a whole layer, and then a whole layer of 6 medium packages of goods are packaged into a large box. The following embodiments will not be repeated.
[0016] Example 1: The method for collecting the entire code layer in this embodiment is as follows: Figure 2 As shown, it includes the following main steps:
[0017] S101, the middle package of goods passes through the conveyor belt in sequence, and the small box code on each small box of goods in the current middle package is read.
[0018] S102, determine whether all reads are successful, if all reads are successful, then go to step S103, if any small box code reading fails, then the current middle package product is discarded, and the next middle package product is read as the new current middle package product.
[0019] S103, recording the read small box code into the current group.
[0020] S104, judging whether the middle-packed commodities cover the whole layer, for example: a total of 6 middle-packed commodities cover the whole layer, if the whole layer is covered, then proceeding to step S105, otherwise returning to step S101.
[0021] S105, reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule.
[0022] S106, determine whether the reading is successful. If the reading is successful, proceed to step S107, otherwise it is determined that the collection of the entire layer of codes has failed, and it is necessary to shut down the machine or remove the entire layer of goods for rework.
[0023] In steps S105 and S106, the designated area of the entire layer can be divided into several sub-areas, and any small box code can be read from each sub-area. For example, the central rectangular area of the entire layer is set as the designated area, and the rectangular area is equally divided into 6 squares as sub-areas, and then any small box code is read from each square area. If any small box code cannot be read successfully from each sub-area, any small box code is read again from each sub-area within a preset reading number threshold range. For example, if the reading number threshold is set to 1, then as long as the reading is not successful once, it is determined that the whole layer of code acquisition has failed. It can also be set to 3 times to prevent reading errors caused by refraction and reflection of PE film packaging, and improve a certain fault tolerance rate.
[0024] In steps S105 and S106, sub-areas may be divided as described above, and two or more small box codes may be read in each sub-area. If at least one small box code is read successfully in each sub-area, the reading is determined to be successful, otherwise the whole layer code acquisition is determined to have failed.
[0025] In steps S105 and S106, a specified number of small box codes can also be read from random positions in the specified area. Of course, the specified area can be an entire layer. If the specified number of small box codes read from random positions in the specified area cannot be read successfully, the specified number of small box codes are read again from random positions in the specified area within a preset reading number threshold range to prevent reading errors caused by refraction and reflection of PE film packaging, thereby improving a certain fault tolerance rate.
[0026] S107, matching the small box codes read from the designated area with the small box codes in the current group to obtain all the small box codes in the current group.
[0027] S108, associating all the small box codes in the current group with the codes on the large box to complete the whole-layer code collection in this round.
[0028] In this embodiment, the front end first reads the small box code on each small box of the middle package. If the reading fails, the middle package will be removed, which will not affect the efficiency of the whole layer reading. The small box code that is read successfully is included in the current group; the back end only needs to read part of the small box codes in the whole layer according to the reading rules. Obviously, the success rate will be much higher than that of the prior art, thereby improving the efficiency; then the read small box code is matched with the current group, so as to retrieve all the small box codes read by the front end; finally, the associated binding is completed. This embodiment splits the visual reading part into 2 times, and then completes the call through the reading and matching logic. Compared with the prior art, the performance requirements of the equipment are greatly reduced, and the problem of low success rate caused by reading a large number of small box codes at one time is avoided, which greatly improves the success rate, and basically eliminates the failure of the whole layer of code collection, and the need to shut down or remove the whole layer of middle package products for rework.
[0029] Embodiment 2: The system for code layer collection in this embodiment is implemented by using the code layer collection method in the above embodiment, see Figure 3 As shown, according to the transmission direction of the conveyor line, it includes: a middle-pack reading visual machine 301, a middle-pack rejection mechanism 302 and a whole-layer reading visual machine 303, a whole-layer middle-pack placement area 304 corresponding to the whole-layer reading visual machine 303, and a serialization association subsystem 305 respectively connected to the middle-pack reading visual machine 301 and the whole-layer reading visual machine 303.
[0030] The middle package reading visual machine 301 is used to read the small box code on each small box product in the current middle package product. If all reads are successful, the read small box code will be sent to the serialization association subsystem 305. If any small box code fails to read, the middle package rejection mechanism 302 will be triggered.
[0031] The middle package rejecting mechanism 302 is used to reject the commodity in the current middle package.
[0032] The whole-layer reading visual machine 303 is used to read the small box codes on the small box products in the designated area of the whole-layer middle package placement area 304 according to predetermined rules when the middle package products fill the whole-layer middle package placement area 304. If the reading is successful, the read small box code is sent to the serialization association subsystem 305, otherwise it is determined that the whole-layer code collection fails.
[0033] The above-mentioned predetermined rule can be to divide the designated area of the package placement area 304 of the whole layer into several sub-areas, and read any small box code from each sub-area, for example: the central rectangular area of the whole layer is set as the designated area, and the rectangular area is equally divided into 6 squares as sub-areas, and then any small box code is read from each square area respectively. If any small box code is not read successfully from each sub-area, any small box code is read again from each sub-area within the preset reading number threshold range, for example: the reading number threshold is set to 1, then as long as it is not read successfully once, it is determined that the whole layer of code acquisition fails. It can also be set to 2 times to prevent reading errors caused by refraction and reflection of PE film packaging, and improve a certain fault tolerance rate. It is also possible to read 2 or more small box codes in each sub-area according to the above-mentioned division of sub-areas, and if at least one small box code is read successfully in each sub-area, it is determined that the reading is successful, otherwise it is determined that the whole layer of code acquisition fails. It is also possible to read a specified number of small box codes from random positions within the specified area. Of course, the specified area may be the entire middle package placement area 304. If the specified number of small box codes read from random positions within the specified area are not all read successfully, the specified number of small box codes are read again from random positions within the specified area within a preset reading number threshold to prevent reading errors caused by refraction and reflection of PE film packaging, thereby improving a certain fault tolerance rate.
[0034] The serialization association subsystem 305 is used to record the small box code sent from the middle package reading visual machine 301 into the current group, match the small box code sent from the whole layer reading visual machine 303 with the small box code in the current group, and obtain all the small box codes in the current group, and associate all the small box codes obtained in the current group with the code on the large box to complete the whole layer collection of this round of codes.
[0035] In this embodiment, the front-end middle package reading visual machine 301 first reads the small box code on each small box product in the middle package product. If the reading fails, the middle package rejection mechanism 302 will reject the middle package product, which will not affect the efficiency of the whole layer reading, and the small box code that is successfully read is included in the current group; the back-end whole layer reading visual machine 303 only needs to read part of the small box code in the whole layer middle package placement area 304 according to the reading rules. Obviously, the success rate will be much higher than the existing technology, thereby improving the efficiency; then match the read small box code with the current group, so as to retrieve all the small box codes read by the front end; finally complete the associated binding. This embodiment splits the visual reading part into 2 times, and then completes the call through the reading and matching logic. Compared with the existing technology, the performance requirements of the equipment are greatly reduced, and the problem of low success rate caused by reading a large number of small box codes at one time is avoided, which greatly improves the success rate, and basically eliminates the failure of the whole layer of code collection, and the need to shut down or remove the whole layer of middle package products for rework.
[0036] The description and application of the present invention here are only illustrative and schematic, and are not intended to limit the scope of the present invention to the above-mentioned embodiments. The deformation and changes of the embodiments disclosed here are entirely possible, and the replacement of the embodiments and the various components of the equivalent are well known to those of ordinary skill in the art. It should also be clear to those skilled in the art that the present invention can be implemented in other forms, structures, arrangements, proportions, and with other components, materials and parts without departing from the spirit or essential characteristics of the present invention, and other deformations and changes can be made to the embodiments disclosed here without departing from the scope and spirit of the present invention.
Claims
1. A method for collecting whole-layer codes, characterized in that: The following steps are involved: S1, read the small box code on each small box product in the current middle package product. If all are read successfully, go to step S2. If any small box code fails to be read, the current middle package product is discarded; S2, recording the read small box code into the current group; S3, determine whether the middle package of goods covers the entire layer, if it has covered the entire layer, then go to step S4, otherwise return to step S1; S4, reading the small box codes on the small box commodities in the designated area of the whole layer according to a predetermined rule, if the reading is successful, then proceeding to step S5, otherwise it is determined that the whole layer code collection fails, the reading of the small box codes on the small box commodities in the designated area of the whole layer according to the predetermined rule specifically includes: dividing the designated area of the whole layer into a plurality of sub-areas; reading any small box code from each of the sub-areas respectively, if any small box code from each of the sub-areas cannot be read successfully, then reading any small box code from each of the sub-areas again within a preset reading number threshold range; or, The step of reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: dividing the designated area of the entire layer into a plurality of sub-areas; reading at least two small box codes from each of the sub-areas, and if at least one small box code in each sub-area is read successfully, then the reading is determined to be successful, otherwise, it is determined that the code collection of the entire layer fails; or The reading of the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: reading a specified number of small box codes from random positions in the designated area, and if all of the specified number of small box codes read from the random positions in the designated area are not read successfully, reading the specified number of small box codes from the random positions in the designated area again within a preset reading number threshold range; S5, matching the small box codes read from the designated area with the small box codes in the current group to obtain all the small box codes in the current group; S6. Associating the obtained codes of all small boxes in the current group with the codes on the large box to complete the whole-layer code collection in this round.
2. A system for collecting whole-layer codes, characterized in that: According to the conveying direction of the conveyor line, it includes: a middle-pack reading visual machine, a middle-pack rejecting mechanism and a whole-layer reading visual machine, a whole-layer middle-pack placement area corresponding to the whole-layer reading visual machine, and a serialization association subsystem respectively connected to the middle-pack reading visual machine and the whole-layer reading visual machine; The middle package reading visual machine is used to read the small box code on each small box of the current middle package. If all the small box codes are read successfully, the read small box code is sent to the serialization association subsystem. If any small box code fails to be read, the middle package rejection mechanism is triggered. The middle package rejection mechanism is used to reject the commodity in the current package; The whole-layer reading visual machine is used to read the small box codes on the small box products in the designated area of the whole layer of middle package placement area according to a predetermined rule when the middle package products fill the whole layer of middle package placement area. If the reading is successful, the read small box code is sent to the serialization association subsystem, otherwise it is determined that the whole layer code collection fails. The reading of the small box codes on the small box products in the designated area of the whole layer according to the predetermined rule specifically includes: dividing the designated area of the whole layer into a plurality of sub-areas; reading any small box code from each of the sub-areas respectively; if any small box code from each of the sub-areas cannot be read successfully, reading any small box code from each of the sub-areas again within a preset reading number threshold range; or, The step of reading the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: dividing the designated area of the entire layer into a plurality of sub-areas; reading at least two small box codes from each of the sub-areas, and if at least one small box code in each sub-area is read successfully, then the reading is determined to be successful, otherwise, it is determined that the code collection of the entire layer fails; or The reading of the small box codes on the small box commodities in the designated area of the entire layer according to a predetermined rule specifically includes: reading a specified number of small box codes from random positions in the designated area, and if all of the specified number of small box codes read from the random positions in the designated area are not read successfully, reading the specified number of small box codes from the random positions in the designated area again within a preset reading number threshold range; The serialization association subsystem is used to record the small box code sent from the middle package reading visual machine into the current group, match the small box code sent from the whole layer reading visual machine with the small box code in the current group, and obtain all the small box codes in the current group, and associate all the small box codes obtained in the current group with the code on the large box to complete the whole layer collection of this round of codes.
Citation Information
Patent Citations
Multi-packaging code assigning method for complementary code error correction
CN103072386A
Method for increasing correlation efficiency of cigarette box strip two-dimensional code by adding front reading code
CN112001192A