Code reading system, code reader, code reading method, and code reading program

The code reading system addresses inefficiencies by using a verifier to assess print quality and a code reader that selects the appropriate algorithm based on print quality, optimizing reading speed and reducing failures, thus enhancing production line efficiency and maintenance.

WO2024180978A1PCT designated stage expired Publication Date: 2024-09-06OMRON CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/002829
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-01-30
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing code reading systems on production lines are inefficient due to their failure to consider print quality, resulting in slow reading speeds and increased likelihood of reading failures, especially when the print quality is low.

Method used

A code reading system that includes a verifier to assess the print quality of codes and a code reader that selects the appropriate reading algorithm based on the print quality, using algorithms with varying robustness to optimize reading speed and prevent failures, while also outputting warnings for maintenance purposes.

Benefits of technology

The system optimizes reading speed by selecting the appropriate algorithm based on print quality, reduces reading failures, and enables scheduled maintenance, thereby improving production line efficiency and reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024002829_06092024_PF_FP
    Figure JP2024002829_06092024_PF_FP
Patent Text Reader

Abstract

This code reading system (1) comprises a verifier (200) and a code reader (300). The verifier (200) verifies the print quality of a code (8) printed on a workpiece (5), and transmits a verification result indicating the print quality to the code reader (300). The code reader (300) includes a determination unit that determines a reading algorithm to be used for reading the code (8) from among a plurality of algorithms on the basis of the verification result, and a reading unit that reads the code (8) in accordance with the reading algorithm. Each of the algorithms has a distinct level of robustness for reading the code (8).
Need to check novelty before this filing date? Find Prior Art

Description

Code reading system, code reader, code reading method, and code reading program

[0001] The present disclosure relates to a code reading system, a code reader, a code reading method, and a code reading program.

[0002] In a production line in a factory, a code is printed on a workpiece (e.g., a product) using, for example, a laser marker, and the code is read by a code reader. For example, Japanese Patent Laid-Open Publication No. 2004-214250 (Patent Document 1) discloses a reading device that reads an identification code according to code recognition level information set according to the surface condition.

[0003] Japanese Patent Application Laid-Open No. 2004-214250

[0004] The reading device disclosed in JP 2004-214250 A does not take into consideration the print quality of the identification code, and therefore the reading device uses a highly robust algorithm that can read identification codes of any print quality, resulting in a slow reading speed.

[0005] An object of the present disclosure is to optimize the reading speed of a code reader.

[0006] A code reading system according to one aspect of the present disclosure includes a verifier and a code reader. The verifier verifies the print quality of a code printed on a workpiece and transmits a verification result indicating the print quality to the code reader. The code reader includes a determination unit that determines a reading algorithm to use to read the code from among multiple algorithms based on the verification result, and a reading unit that reads the code in accordance with the reading algorithm. The multiple algorithms differ from one another in their robustness with respect to code reading.

[0007] According to this configuration, an algorithm having robustness according to the print quality of the code is selected as the reading algorithm, so that the reading speed of the code reader can be optimized.

[0008] In the above disclosure, the determination unit is preferably more likely to determine, as the print quality increases, an algorithm with a lower robustness from among the plurality of algorithms as the reading algorithm.

[0009] According to this configuration, when the print quality is high, the reading speed by the code reader can be increased.

[0010] In the above disclosure, the determination unit preferably determines a more robust algorithm from among the plurality of algorithms as the reading algorithm as the print quality decreases. The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The one or more robust algorithms have a slower code reading speed than the normal algorithm.

[0011] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0012] In the above disclosure, the determination unit preferably determines a more robust algorithm from among the plurality of algorithms as the reading algorithm as the print quality decreases. The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The range of print qualities of codes that can be read by the one or more robust algorithms is wider than the range of print qualities of codes that can be read by the normal algorithm.

[0013] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0014] In the above disclosure, the determination unit preferably determines a more robust algorithm from among the plurality of algorithms as the reading algorithm as the print quality decreases. The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The one or more robust algorithms determine that the reading conditions are to be changed to improve robustness.

[0015] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0016] In the above disclosure, the determination unit preferably determines a more robust algorithm from among the plurality of algorithms as the reading algorithm as the print quality decreases. The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The one or more robust algorithms define that more processing is to be performed by adding processing to the normal algorithm.

[0017] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0018] In the above disclosure, preferably, the lower the print quality, the more the determination unit determines a more robust algorithm from among the plurality of algorithms as the reading algorithm. The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The normal algorithm determines that code reading is to be performed once in accordance with predetermined reading conditions. The one or more robust algorithms determine that code reading is to be retried by changing the reading conditions within a predetermined range.

[0019] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0020] In the above disclosure, the code reading system preferably further comprises an output unit that outputs a warning notice when the reading algorithm is any one of the one or more robust algorithms.

[0021] This configuration allows for planned maintenance of the laser marker and the code reader.

[0022] In the above disclosure, preferably, the code reading system further includes a laser marker that prints a code on the workpiece.

[0023] This configuration allows for the automation of printing, verifying, and reading the code.

[0024] In the above disclosure, the reading conditions preferably include at least one of a contrast threshold when reading the code, a binarization threshold for cells included in the code, image processing conditions when reading the code, the color of illumination of the code reader when reading the code, and the brightness of illumination when reading the code.

[0025] According to this configuration, even if the print quality is low, it is possible to prevent failure of reading by the code reader.

[0026] A code reader according to another aspect of the present disclosure includes an acquisition unit that acquires a verification result indicating the print quality of a code printed on a workpiece, a determination unit that determines a reading algorithm to be used to read the code from among a plurality of algorithms based on the verification result, and a reading unit that reads the code in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in terms of robustness with respect to code reading.

[0027] This configuration makes it possible to optimize the reading speed of the code reader.

[0028] A code reading method according to another aspect of the present disclosure includes obtaining a verification result indicating the print quality of a code printed on a workpiece, determining a reading algorithm to be used to read the code from among a plurality of algorithms based on the verification result, and reading the code in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in terms of robustness with respect to code reading.

[0029] This configuration makes it possible to optimize the reading speed of the code reader.

[0030] A code reading program according to another aspect of the present disclosure causes a computer to execute the above-described code reading method.

[0031] This configuration makes it possible to optimize the reading speed of the code reader.

[0032] According to the present disclosure, the reading speed of a code reader can be optimized.

[0033] FIG. 1 is a diagram showing a code reading system according to the present embodiment. FIG. 2 is a diagram showing an example of the hardware configuration of a verifier according to the present embodiment. FIG. 3 is a diagram showing an example of the hardware configuration of a code reader according to the present embodiment. FIG. 4 is a diagram for explaining an overview of the code reading process of the code reading system according to the present embodiment. FIG. 5 is a diagram showing a plurality of algorithms according to the present embodiment. FIG. 6 is a diagram showing the relationship between robustness, reading speed and code print quality for a plurality of algorithms according to the present embodiment. FIG. 7 is a flowchart showing the procedure of the code reading process of the code reading system according to the present embodiment. FIG. 8 is a diagram showing a plurality of algorithms in Modification 1.

[0034] Hereinafter, embodiments and modifications according to the present disclosure will be described with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated. Note that the embodiments and modifications described below may be selectively combined as appropriate.

[0035] [Embodiments] <A. Application Examples> First, an example of a situation in which the present disclosure is applied will be described.

[0036] 1 is a diagram showing a code reading system according to the present embodiment. The code reading system 1 according to the present embodiment includes a laser marker 100, a verifier 200, and a code reader 300. The laser marker 100, the verifier 200, and the code reader 300 are provided along a production line 10 in a factory. A workpiece 5 (e.g., a product) is transported on the production line 10 in the direction of arrow 2.

[0037] The laser marker 100 irradiates a workpiece 5 conveyed on a production line 10 with a laser beam 3 to print a code 8 on the workpiece 5. For example, the code 8 is a barcode, a QR code (registered trademark), or a DataMatrix (registered trademark).

[0038] The verifier 200 verifies the print quality of the code 8 printed on the workpiece 5 and transmits the verification result indicating the print quality to the code reader 300. The verifier 200 adds number information indicating the order in which the workpiece was transported to the verification result.

[0039] The code reader 300 determines a reading algorithm to be used to read the code 8 from among multiple algorithms based on the verification result, to which number information indicating the Nth workpiece 5 has been added, for the code 8 printed on the workpiece 5 that has been transported for the Nth time (N is an integer). The code reader 300 reads the code 8 in accordance with the selected reading algorithm. The multiple algorithms differ in their robustness with respect to reading the code 8. In the following description, the robustness with respect to reading the code 8 will also be simply referred to as "robustness."

[0040] A highly robust algorithm is defined so that the reading conditions for the code 8 are broader than those for a less robust algorithm. Therefore, even if the print quality of the code 8 is low, reading the code 8 using a highly robust algorithm can reduce reading failures by the code reader 300. However, the reading speed by the code reader 300 differs depending on the robustness of the algorithm.

[0041] The code reader 300 determines the reading algorithm based on the print quality of the code 8. The reading speed of the code reader 300 varies depending on the robustness of the algorithm. Therefore, by selecting an algorithm with robustness that corresponds to the print quality of the code 8 as the reading algorithm, the reading speed of the code reader 300 can be optimized.

[0042] <B. Hardware Configuration of Verifier> Fig. 2 is a diagram showing an example of the hardware configuration of the verifier in this embodiment. The verifier 200 includes a control unit 210, a lighting unit 220, an image capture device 230, and a communication interface 240. The control unit 210, the lighting unit 220, the image capture device 230, and the communication interface 240 are connected by a bus 299.

[0043] The control unit 210 includes a processor 211, a memory 212, and a storage 213. The processor 211 is configured, for example, by a central processing unit (CPU) or a micro-processing unit (MPU). The memory 212 is configured, for example, by a volatile storage device such as a dynamic random access memory (DRAM) or a static random access memory (SRAM). The storage 213 is configured, for example, by a non-volatile storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory.

[0044] The storage 213 stores a program 214. The program 214 includes computer-readable instructions for controlling the verifier 200. The processor 211 executes the program 214 to control each unit of the verifier 200 and realize various processes according to this embodiment.

[0045] The program 214 may be provided not as a standalone program but as part of an arbitrary program. In this case, the program 214 cooperates with the arbitrary program to realize the processing according to this embodiment. Even if the program does not include some of these modules, this does not deviate from the spirit of the verifier 200 according to this embodiment. Furthermore, some or all of the functions provided by the program 214 may be realized by dedicated hardware.

[0046] The lighting 220 shines light onto the surface of the workpiece 5. The imaging device 230 includes, for example, a charge coupled device (CCD) camera. The imaging device 230 captures an image of the code 8 printed on the workpiece 5 and transmits the image of the code 8 to the processor 211.

[0047] The communication interface 240 communicates with the code reader 300. As an example, the processor 211 transmits a verification result indicating the print quality of the code 8 to the code reader 300 via the communication interface 240.

[0048] <C. Hardware Configuration of Code Reader> Figure 3 is a diagram showing an example of the hardware configuration of a code reader according to this embodiment. The code reader 300 includes a control unit 310, a light 320, an image capture device 330, a speaker 340, and a communication interface 350. The control unit 310, the light 320, the image capture device 330, the speaker 340, and the communication interface 350 are connected via a bus 399.

[0049] The control unit 310 includes a processor 311, a memory 312, and a storage 313. The processor 311 is configured by, for example, a CPU or an MPU. The memory 312 is configured by, for example, a volatile storage device such as a DRAM or an SRAM. The storage 313 is configured by, for example, a non-volatile storage device such as an HDD, an SSD, or a flash memory.

[0050] The storage 313 stores a program 314. The program 314 includes computer-readable instructions for controlling the code reader 300. The program 314 includes a "code reading program" in this disclosure. By executing the program 314, the processor 311 controls each unit of the code reader 300 and realizes various processes according to this embodiment.

[0051] The program 314 may be provided not as a standalone program but as part of an arbitrary program. In this case, the program 314 cooperates with the arbitrary program to realize the processing according to this embodiment. Even if the program does not include some of these modules, this does not deviate from the spirit of the code reader 300 according to this embodiment. Furthermore, some or all of the functions provided by the program 314 may be realized by dedicated hardware.

[0052] The lighting 320 shines light onto the surface of the workpiece 5. The imaging device 330 includes, for example, a CCD camera. The imaging device 330 captures an image of the code 8 printed on the workpiece 5 and transmits the image of the code 8 to the processor 311.

[0053] The speaker 340 outputs a warning notification when the reading algorithm is one of one or more robust algorithms described below. The warning notification is a notification for informing the user that the reading algorithm is one of one or more robust algorithms described below. The speaker 340 may issue a notification sound or voice as the warning notification. The speaker 340 is an example of an "output unit" in the present disclosure.

[0054] The communication interface 350 communicates with the verifier 200. The communication interface 350 is an example of an “acquisition unit” in this disclosure. As an example, the processor 311 receives a verification result indicating the print quality of the Code 8 from the verifier 200 via the communication interface 350.

[0055] <D. Code Reading Process of Code Reading System> FIG. 4 is a diagram for explaining an outline of the code reading process of the code reading system according to this embodiment.

[0056] The verifier 200 includes an imaging device 230, a verification unit 271, and a transmission unit 272. The verification unit 271 and the transmission unit 272 are realized by the processor 211 executing the program 214.

[0057] The verification unit 271 verifies the print quality of the code 8 based on the image of the code 8 received from the imaging device 230 and obtains a verification result indicating the print quality. More specifically, the verification unit 271 calculates a score (grade) for each of multiple inspection parameters based on the image of the code 8 received from the imaging device 230. The verification unit 271 calculates a single score indicating the print quality of the code 8 based on the score of the inspection parameter with the lowest score among the multiple inspection parameters. The inspection items and the method of calculating the score are defined by international standards. As an example, the print quality of the code 8 is scored in a range of 0.0 to 4.0 points, and the closer the score is to 4.0, the higher the print quality of the code 8. The score indicating the print quality of the code 8 is an example of a "verification result" in this disclosure.

[0058] The transmitting unit 272 transmits the verification result indicating the print quality of the code 8 (one score indicating the print quality of the code 8) to the code reader 300. Note that the transmitting unit 272 may transmit the scores of each of the multiple inspection parameters to the code reader 300 as the verification result.

[0059] The code reader 300 includes an imaging device 330, a determination unit 371, a reading unit 372, and a speaker 340. The determination unit 371 and the reading unit 372 are realized by the processor 311 executing the program 314.

[0060] The determination unit 371 determines a reading algorithm to be used for reading the code 8 from among a plurality of algorithms based on the verification result acquired (received) for the code 8. The plurality of algorithms differ from one another in terms of robustness with respect to reading the code 8.

[0061] The plurality of algorithms include a normal algorithm and one or more robust algorithms that are more robust than the normal algorithm. The normal algorithm specifies that the Code 8 is read once in accordance with predetermined reading conditions. The more robust algorithm specifies a wider range of reading conditions for the Code 8 than the less robust algorithm.

[0062] As one example, the range of print quality of the Code 8 that can be read by one or more robust algorithms is wider than the range of print quality of the Code 8 that can be read by a normal algorithm. As another example, the one or more robust algorithms determine that the reading conditions of the Code 8 are changed to improve robustness. As another example, the one or more robust algorithms determine that more processing is performed by adding processing to the normal algorithm. As another example, the one or more robust algorithms determine that the reading conditions of the Code 8 are changed within a predetermined range and reading of the Code 8 is retried.

[0063] Therefore, when reading code 8 using one or more robust algorithms, the number of processing steps increases, which slows down the reading speed of code 8, but it is possible to prevent failure to read code 8 even in the case of codes with low print quality (for example, deformed codes, codes with missing parts, or codes with low contrast).

[0064] The higher the print quality of Code 8, the more the determination unit 371 determines an algorithm with a lower robustness from among the multiple algorithms as the reading algorithm.The lower the print quality of Code 8, the more the determination unit 371 determines an algorithm with a higher robustness from among the multiple algorithms as the reading algorithm.

[0065] The reading unit 372 reads the code 8 based on the image of the code 8 received from the imaging device 330 in accordance with the reading algorithm determined by the determination unit 371 .

[0066] The speaker 340 outputs a warning notification if the reading algorithm is any one of one or more robust algorithms.

[0067] 5 is a diagram showing a plurality of algorithms in this embodiment. The plurality of algorithms in this embodiment includes one normal algorithm and one robust algorithm. That is, in this embodiment, one robust algorithm is provided as one or more robust algorithms.

[0068] The normal algorithm and the robust algorithm have different reading conditions for the code 8. The reading conditions include a contrast threshold when reading the code 8, a binarization threshold for cells included in the code 8, image processing (preprocessing) conditions when reading the code 8, the color of the illumination 320 when reading the code 8, and the brightness of the illumination 320 when reading the code 8. In the following description, the contrast threshold when reading the code 8 is referred to as the "contrast threshold." In the following description, the binarization threshold for cells included in the code 8 is referred to as the "binarization threshold." In the following description, the image processing (preprocessing) conditions when reading the code 8 are referred to as the "image processing conditions." In the following description, the color of the illumination 320 when reading the code 8 is referred to as the "color of the illumination 320." In the following description, the brightness of the illumination 320 when reading the code 8 is referred to as the "brightness of the illumination 320."

[0069] The contrast threshold is a threshold for determining black and white (light and dark) edges when searching for code 8. When the contrast threshold is high, the number of candidates for code 8 is small. Therefore, when the contrast threshold is high, the code reading time is shortened, but if the print quality of code 8 is low, code 8 may not be found and reading of code 8 may fail. On the other hand, when the contrast threshold is low, the number of candidates for code 8 is large. Therefore, when the contrast threshold is low, it takes time to read the code, but failure to read code 8 is suppressed even if the print quality of code 8 is low.

[0070] The normal algorithm is defined to have a higher contrast threshold than the robust algorithm, while the robust algorithm is defined to have a lower contrast threshold than the normal algorithm. The robust algorithm may also define a retry of reading Code 8 by changing the contrast threshold within a predetermined range.

[0071] The binarization threshold is a threshold used to binarize the cells included in the code 8. If a common value is set as the binarization threshold for the entire code 8, the time required to read the code is shortened, but if the print quality of the code 8 is low, reading of the code 8 may fail. On the other hand, if different values ​​are set as the binarization threshold for each local portion of the code 8, reading of the code takes longer, but the influence of local noise can be reduced. Therefore, if different values ​​are set as the binarization threshold for each local portion of the code 8, failure to read the code 8 is suppressed even if the print quality of the code 8 is low.

[0072] In the normal algorithm, a common value is set as the binarization threshold for the entire code 8. More specifically, the normal algorithm calculates a median value of black and white (light and dark) based on the maximum and minimum values ​​of black and white (light and dark) for the entire code 8, and sets this median value as the binarization threshold. On the other hand, in the robust algorithm, different values ​​are set as the binarization threshold for each local portion of the code 8. More specifically, the robust algorithm determines that a binarization threshold is set for each local portion of the code 8. For example, in the case of a code consisting of 16 x 16 cells, a local portion is, for example, a portion consisting of 3 x 3 cells. Note that the robust algorithm may also determine that reading of the code 8 is retried by changing the binarization threshold within a predetermined range.

[0073] The image processing (preprocessing) performed when reading the code 8 is, for example, a process of expanding or contracting at least one of the white (light) areas and the black (dark) areas in the code 8. This allows adjacent dots to be connected. The dots are components of the cells contained in the code 8.

[0074] As another example, image processing (preprocessing) when reading the code 8 is processing to remove black defects (spots) in white (light) areas within the code 8 and white defects (voids) in black (dark) areas within the code 8. This makes it possible to remove black defects in white (light) areas within the code 8 and white defects in black (dark) areas within the code 8.

[0075] If image processing (preprocessing) is not performed when reading the code 8, the time required to read the code is reduced, but if the print quality of the code 8 is low, there is a possibility that the code 8 will fail to be read. On the other hand, if image processing (preprocessing) is performed when reading the code 8, it will take longer to read the code, but failure to read the code 8 will be reduced even if the print quality of the code 8 is low.

[0076] The normal algorithm does not perform image processing (pre-processing), whereas the robust algorithm modifies the image processing (pre-processing) conditions within a predetermined range and determines whether to retry reading the Code 8.

[0077] The color of the illumination 320 is the color of light that is shone on the code 8 when reading the code 8. If the color of the illumination 320 is a fixed value, the time required to read the code is shortened, but if the print quality of the code 8 is low, reading of the code 8 may fail. On the other hand, if the color of the illumination 320 is changed and reading of the code 8 is retried, it takes longer to read the code, but failure to read the code 8 is reduced even if the print quality of the code 8 is low.

[0078] In the normal algorithm, the color of the illumination 320 is a fixed value, whereas in the robust algorithm, the color of the illumination 320 is changed within a predetermined range and a retry of reading the Code 8 is performed.

[0079] The brightness of the illumination 320 is the intensity of the light that is shone on the code 8 when reading the code 8. When the brightness of the illumination 320 is a fixed value, the time required to read the code is shortened, but if the print quality of the code 8 is low, reading of the code 8 may fail. On the other hand, when the brightness of the illumination 320 is changed and reading of the code 8 is retried, it takes longer to read the code, but failure to read the code 8 is reduced even if the print quality of the code 8 is low.

[0080] In the normal algorithm, the brightness of the illumination 320 is fixed, whereas in the robust algorithm, the brightness of the illumination 320 is changed within a predetermined range and retrying to read the Code 8 is performed.

[0081] Due to these differences between the normal algorithm and the robust algorithm, the robust algorithm is more robust in reading the Code 8 than the normal algorithm. On the other hand, when reading the Code 8 using the robust algorithm, it takes longer to read the Code 8 than when reading the Code 8 using the normal algorithm. In other words, the robust algorithm is slower at reading the Code 8 than the normal algorithm. The lower the robustness of an algorithm among multiple algorithms, the faster the reading speed of the Code 8.

[0082] 6 is a diagram showing the relationship between robustness, reading speed, and code print quality for multiple algorithms in this embodiment. As described above, the robust algorithm is more robust in reading Code 8 than the normal algorithm, but the reading speed of Code 8 is slower.

[0083] If the score indicating the print quality of Code 8 is 1.5 points or higher, the determination unit 371 determines the normal algorithm as the reading algorithm. On the other hand, if the score indicating the print quality of Code 8 is less than 1.5 points, the determination unit 371 determines the robust algorithm as the reading algorithm. As a result, if the print quality of Code 8 is equal to or higher than a predetermined quality, an algorithm that has low robustness in reading Code 8 but a fast reading speed for Code 8 is determined as the reading algorithm. If the print quality of Code 8 is lower than the predetermined quality, an algorithm that has a slow reading speed for Code 8 but a high robustness in reading Code 8 is determined as the reading algorithm. Note that, although 1.5 points is used as the score threshold in this embodiment, the score threshold is not limited to this.

[0084] 7 is a flowchart showing the procedure of the code reading process of the code reading system according to this embodiment. Steps S1 and S2 are processes performed by the verifier 200. Steps S3 to S7 are processes performed by the code reader 300.

[0085] In step S1, the processor 211 verifies the print quality of the code 8. In step S2, the processor 211 transmits the verification result indicating the print quality of the code 8 (a score indicating the print quality of the code 8) to the code reader 300.

[0086] In step S3, the processor 311 acquires (receives) the verification result. In step S4, the processor 311 determines a reading algorithm to be used to read the code 8 from among multiple algorithms based on the acquired verification result for the code 8. In step S5, when the workpiece 5 on which the code 8 is printed reaches a predetermined position, the processor 311 reads the code 8 according to the reading algorithm determined in step S4.

[0087] In step S6, processor 311 determines whether the reading algorithm used to read code 8 is one of one or more robust algorithms. If the reading algorithm used to read code 8 is one of one or more robust algorithms (YES in step S6), processor 311 proceeds to step S7. On the other hand, if the reading algorithm used to read code 8 is not one of one or more robust algorithms (NO in step S6), processor 311 ends the code reading process.

[0088] In step S7, the processor 311 instructs the speaker 340 to output a warning notice. After step S7, the code reading process ends.

[0089] As described above, in the code reading system 1 of the present embodiment, a reading algorithm to be used for reading the code is determined from among a plurality of algorithms based on the print quality of the code 8. The plurality of algorithms differ in their robustness in reading the code 8. Therefore, in the code reading system 1 of the present embodiment, an algorithm having a robustness corresponding to the print quality of the code 8 is selected as the reading algorithm, thereby optimizing the reading speed of the code reader 300. Furthermore, the code reading system 1 of the present embodiment can prevent reading failures by the code reader 300 even when the print quality of the code 8 is low. Therefore, the code reading system 1 of the present embodiment can prevent a decrease in yield and an unexpected stoppage of the production line 10 due to reading errors of a code 8 with low print quality. Therefore, in the code reading system 1 of the present embodiment, the line speed of the production line 10 is optimized, thereby reducing production costs.

[0090] When a user selects a reading algorithm from multiple algorithms that matches the print quality of the code 8, trial and error is required, which is time-consuming for the user. In recent years, different products are often produced on the same production line. It is time-consuming for the user to select a reading algorithm that matches the print quality of the code 8 printed on each different product that is conveyed. However, in the code reading system 1 of this embodiment, the reading algorithm is determined based on the print quality of the code 8. Therefore, the code reading system 1 of this embodiment can be said to be a system that is convenient for the user and highly reliable.

[0091] If a highly robust algorithm is always used to read the code 8, regardless of the print quality of the code 8, it will take a long time to read the code 8, lengthening the line tact of the production line 10. However, in the code reading system 1 of this embodiment, when the print quality of the code 8 is low, a highly robust algorithm (for example, a robust algorithm) is used to read the code 8, but when the print quality of the code 8 is high, a less robust algorithm (for example, a normal algorithm) is used to read the code 8. Therefore, the code reading system 1 of this embodiment can prevent the line tact of the production line 10 from becoming longer.

[0092] In the code reading system 1 of the present embodiment, a warning notice is output when the reading algorithm is one of one or more robust algorithms. This allows the user to know that the reading algorithm is one of one or more robust algorithms. If the reading algorithm is one of one or more robust algorithms, it is inferred that the print quality of the code 8 is low or that the reading conditions of the code reader 300 do not match the code 8. Therefore, the warning notice provides an opportunity for the user to adjust at least one of the printing conditions of the laser marker 100 and the reading conditions of the code reader 300. Therefore, the code reading system 1 of the present embodiment allows for planned maintenance of the laser marker 100 and the code reader 300.

[0093] [Modification 1] In the above embodiment, one robust algorithm is provided as the one or more robust algorithms, but a plurality of robust algorithms may be provided as the one or more robust algorithms.

[0094] 8 is a diagram showing multiple algorithms in Modification 1. The multiple algorithms in Modification 1 include one normal algorithm and three robust algorithms. The differences between the normal algorithms and the robust algorithms are as explained in the above embodiment. The three robust algorithms include robust algorithm A, robust algorithm B, and robust algorithm C. In Modification 1 as well, the multiple algorithms differ from one another in their robustness with respect to reading the code 8.

[0095] The algorithm with the highest robustness among the multiple algorithms is robust algorithm C. The algorithm with the second highest robustness among the multiple algorithms is robust algorithm B. The algorithm with the third highest robustness among the multiple algorithms is robust algorithm A. The algorithm with the lowest robustness among the multiple algorithms is the normal algorithm. The lower the robustness of the algorithm among the multiple algorithms, the faster the code 8 reading speed by the code reader 300.

[0096] The three robust algorithms, for example, have different contrast thresholds. The more robust the algorithm, the lower the contrast threshold. As another example, the three robust algorithms have different sizes of regions (local portions of Code 8) where a common value is set as the binarization threshold. The more robust the algorithm, the narrower the region where a common value is set as the binarization threshold.

[0097] In the first modification, the print quality of Code 8 is also scored in the range of 0.0 to 4.0 points, with the closer the score is to 4.0, the higher the print quality of Code 8. If the score indicating the print quality of Code 8 is 3.5 points or higher, the determination unit 371 determines the normal algorithm as the reading algorithm. If the score indicating the print quality of Code 8 is 2.5 points or higher and lower than 3.5 points, the determination unit 371 determines robust algorithm A as the reading algorithm. If the score indicating the print quality of Code 8 is 1.5 points or higher and lower than 2.5 points, the determination unit 371 determines robust algorithm B as the reading algorithm. If the score indicating the print quality of Code 8 is lower than 1.5 points, the determination unit 371 determines robust algorithm C as the reading algorithm. In this way, a reading algorithm is determined according to the print quality of Code 8.

[0098] Therefore, the code reading system 1 in the first modification has the same effects as the code reading system 1 in the above embodiment.

[0099] Note that the numerical values ​​used as the score thresholds in Modification 1 are merely examples, and the score thresholds are not limited to these. Furthermore, when multiple robust algorithms are provided as the one or more robust algorithms, the number of robust algorithms may be two or more.

[0100] [Modification 2] The code reading system 1 in the above embodiment includes the laser marker 100, but the code reading system 1 in the above embodiment does not have to include the laser marker 100.

[0101] [Variation 3] The code reading system 1 in the above embodiment includes the speaker 340 as the "output unit", but the code reading system 1 in the above embodiment may include a display instead of or in addition to the speaker 340. If the code reading system 1 includes a display as the "output unit", a warning notification is displayed on the display.

[0102] The "output unit" may also be a communication unit with a PLC (Programmable Logic Controller) in the code reader 300. In this case, a warning notification is sent to the PLC via the communication unit, and the PLC can change the control of the production line 10 or adjust the maintenance schedule.

[0103] Furthermore, in the code reading system 1 in the above embodiment, the "output unit" was provided in the code reader 300, but the "output unit" may also be provided in a device that can communicate with the code reader 300 (for example, the laser marker 100, the verifier 200, or a terminal used by the user).

[0104] [Variation 4] In the above embodiment, the reading conditions include the contrast threshold, the binarization threshold, the image processing conditions, the color of the illumination 320, and the brightness of the illumination 320, but the reading conditions are not limited to these. The reading conditions may include at least one of the contrast threshold, the binarization threshold, the image processing conditions, the color of the illumination 320, and the brightness of the illumination 320, or may include other conditions instead of these conditions.

[0105] [Variation 5] In the above embodiment, the verifier 200 and the code reader 300 identify the code 8 printed on the workpiece 5 based on the order in which the workpiece 5 was transported on the production line 10. However, the method of identifying the code 8 by the verifier 200 and the code reader 300 is not limited to this. As another example, if the code reading system 1 includes a PLC, the verifier 200 and the code reader 300 may identify the code 8 by communicating with the PLC.

[0106] [Variation 6] In the above embodiment, the determination unit 371 is included in the code reader 300, but it may be included in the verifier 200. When the determination unit 371 is included in the verifier 200, the verifier 200 determines a reading algorithm and transmits a setting instruction for the reading algorithm to the code reader 300.

[0107] The code reading system 1 may also include a PLC as a hub. In this case, the instruction to set the reading algorithm is transmitted from the verifier 200 to the code reader 300 via the PLC.

[0108] Furthermore, if the code reading system 1 includes a PLC, the determination unit 371 may be included in the PLC. When the determination unit 371 is included in the PLC, the PLC receives the verification result from the verifier 200 and determines the reading algorithm based on the verification result. The PLC then transmits an instruction to set the reading algorithm to the code reader 300.

[0109] [Variation 7] The code reading system 1 may include multiple code readers 300. In this case, the verifier 200 may transmit the verification result to the code reader 300 used to read the code corresponding to the verification result. The verifier 200 may also determine a reading algorithm based on the verification result and transmit a setting instruction for the reading algorithm to the code reader 300 used to read the code corresponding to the verification result.

[0110] The code reading system 1 may further include a PLC in addition to the multiple code readers 300. In this case, the PLC may transmit the verification result received from the verifier 200 to the code reader 300 used to read the code corresponding to the verification result. The PLC may also determine a reading algorithm based on the verification result received from the verifier 200, and transmit a setting instruction for the reading algorithm to the code reader 300 used to read the code corresponding to the verification result.

[0111] [Modification 8] In the above embodiment, the code 8 is printed by the laser marker 100, but the method for printing the code 8 is not limited to this. The code 8 may also be printed by a printer.

[0112] [Variation 9] The code reader 300 may be configured to be connectable to a computer such as a PC (Personal Computer). The code reader 300 may be connected to the computer directly or via a network. A dedicated application may be installed on the computer, and the computer may be able to set and check the threshold for changing the conditions for reading the code 8 by the code reader 300, the verification results of the verifier 200, the reading results of the code reader 300, the reading time of the code reader 300, the image of the code 8 when read by the code reader 300, and the reading history by the code reader 300.

[0113] [Additional Notes] The above-described embodiment and modifications include the following technical ideas.

[0114] [Configuration 1] A code reading system comprising a verifier (200) and a code reader (300), wherein the verifier (200) verifies the print quality of a code (8) printed on a work (5) and transmits a verification result indicating the print quality to the code reader (300), and the code reader (300) includes: a determination unit (371) that determines a reading algorithm to be used to read the code (8) from among a plurality of algorithms based on the verification result; and a reading unit (372) that reads the code (8) in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in their robustness with respect to reading the code (8).

[0115] [Configuration 2] The code reading system according to Configuration 1, wherein the determining unit (371) determines an algorithm having a lower robustness among the plurality of algorithms as the reading algorithm as the print quality increases.

[0116] [Configuration 3] The code reading system according to Configuration 1, wherein the determining unit (371) determines an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm as the print quality becomes lower, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms have a slower reading speed of the code (8) than the normal algorithm.

[0117] [Configuration 4] The code reading system described in Configuration 1, wherein the determining unit (371) determines an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm as the printing quality becomes lower, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the range of printing qualities of the code (8) that can be read by the one or more robust algorithms is wider than the range of printing qualities of the code (8) that can be read by the normal algorithm.

[0118] [Configuration 5] The code reading system according to Configuration 1, wherein the determining unit (371) determines an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm as the print quality becomes lower, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms determine that reading conditions are changed to improve the robustness.

[0119] [Configuration 6] The code reading system according to Configuration 1, wherein the determining unit (371) determines an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm as the print quality becomes lower, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms determine to perform more processing by adding processing to the normal algorithm.

[0120] [Configuration 7] The code reading system according to Configuration 1, wherein the determining unit (371) determines an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm as the print quality becomes lower, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, the normal algorithm determines that reading of the code (8) is to be performed once in accordance with predetermined conditions as reading conditions, and the one or more robust algorithms determine that reading of the code (8) is to be retried by changing the reading conditions within a predetermined range.

[0121] [Configuration 8] The code reading system according to any one of configurations 3 to 7, further comprising an output unit (340) that outputs a warning notification when the reading algorithm is one of the one or more robust algorithms.

[0122] [Configuration 9] The code reading system according to any one of configurations 1 to 8, further comprising a laser marker (100) that prints the code (8) on the workpiece (5).

[0123] [Configuration 10] The code reading system according to Configuration 5 or 7, wherein the reading conditions include at least one of a contrast threshold when reading the code (8), a binarization threshold for cells included in the code (8), image processing conditions when reading the code (8), a color of the illumination (320) of the code reader (300) when reading the code (8), and a brightness of the illumination (320) when reading the code (8).

[0124] [Configuration 11] A code reader comprising: an acquisition unit that acquires a verification result indicating the print quality of a code (8) printed on a work (5); a determination unit (371) that determines a reading algorithm to be used to read the code (8) from among a plurality of algorithms based on the verification result; and a reading unit (372) that reads the code (8) in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in terms of robustness with respect to reading the code (8).

[0125] [Configuration 12] A code reading method comprising: obtaining a verification result indicating the print quality of a code (8) printed on a work (5); determining a reading algorithm to be used to read the code (8) from among a plurality of algorithms based on the verification result; and reading the code (8) in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in terms of robustness with respect to reading the code (8).

[0126] [Configuration 13] A code reading program that causes a computer to execute the code reading method according to Configuration 12.

[0127] The embodiments disclosed herein should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is defined by the claims, not by the above description, and is intended to include all modifications within the meaning and scope of the claims.

[0128] 1 Code reading system, 2 Arrow, 3 Laser light, 5 Work, 8 Code, 10 Production line, 100 Laser marker, 200 Verifier, 210, 310 Control unit, 211, 311 Processor, 212, 312 Memory, 213, 313 Storage, 214, 314 Program, 220, 320 Lighting, 230, 330 Imaging device, 240, 350 Communication interface, 271 Verification unit, 272 Transmission unit, 299, 399 Bus, 300 Code reader, 340 Speaker, 371 Determination unit, 372 Reading unit.

Claims

1. A code reading system comprising a verifier and a code reader, wherein the verifier verifies the printing quality of a code printed on a workpiece and transmits a verification result indicating the printing quality to the code reader, wherein the code reader comprises: a determination unit that determines a reading algorithm to be used for reading the code from among a plurality of algorithms based on the verification result; and a reading unit that reads the code in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in their robustness with respect to reading the code.

2. The code reading system according to claim 1, wherein the determination unit determines an algorithm having a lower robustness among the plurality of algorithms as the reading algorithm as the print quality increases.

3. The code reading system of claim 1, wherein the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm the lower the print quality, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms have a slower code reading speed than the normal algorithm.

4. The code reading system of claim 1, wherein the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm the lower the print quality, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the range of print qualities of the code that can be read by the one or more robust algorithms is wider than the range of print qualities of the code that can be read by the normal algorithm.

5. The code reading system of claim 1, wherein the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm the lower the print quality, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms determine that reading conditions are to be changed so as to improve the robustness.

6. The code reading system of claim 1, wherein the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm the lower the print quality, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, and the one or more robust algorithms determine to perform more processing by adding processing to the normal algorithm.

7. The code reading system of claim 1, wherein the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm the lower the print quality, the plurality of algorithms including a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, the normal algorithm determines that the code is to be read once in accordance with predetermined conditions as reading conditions, and the one or more robust algorithms determine that the reading conditions are changed within a predetermined range and reading of the code is to be retried.

8. A code reading system according to any one of claims 3 to 7, further comprising an output unit that outputs a warning notification when the reading algorithm is any one of the one or more robust algorithms.

9. A code reading system according to any one of claims 1 to 7, further comprising a laser marker that prints the code on the workpiece.

10. A code reading system as described in claim 5 or 7, wherein the reading conditions include at least one of a contrast threshold when reading the code, a binarization threshold for cells contained in the code, image processing conditions when reading the code, a color of illumination of the code reader when reading the code, and a brightness of the illumination when reading the code.

11. A code reader comprising: an acquisition unit that acquires verification results indicating the printing quality of a code printed on a work; a determination unit that determines a reading algorithm to be used for reading the code from among a plurality of algorithms based on the verification results; and a reading unit that reads the code in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in their robustness with respect to reading the code.

12. A code reading method comprising: obtaining a verification result indicating the printing quality of a code printed on a work; determining a reading algorithm to be used for reading the code from among a plurality of algorithms based on the verification result; and reading the code in accordance with the reading algorithm, wherein the plurality of algorithms differ from one another in their robustness with respect to reading the code.

13. A code reading program for causing a computer to execute the code reading method according to claim 12.

Citation Information

Patent Citations

  • Bar code signal analyzing system and bar code reader

    JP1995282181A

  • Picture recognition device

    JP1999184961A

  • Code reader and code reading method

    JP2008140033A

  • Writing device, writing system, and writing method

    JP2014184713A