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

The code reading system addresses slow reading speeds by using a verifier to assess print quality and a code reader that selects appropriate algorithms, optimizing speed and reliability for various code qualities.

JP2024121201AInactive Publication Date: 2024-09-06OMRON CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023028164
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing code reading devices do not consider the printing quality of identification codes, leading to slow reading speeds due to the use of highly robust algorithms that can read codes of any print quality.

Method used

A code reading system that includes a verifier to assess print quality and a code reader that selects an appropriate reading algorithm based on the print quality, using algorithms with varying robustness to optimize reading speed and reliability.

Benefits of technology

The system optimizes reading speed by selecting algorithms tailored to the print quality, reducing reading failures and maintaining production line efficiency, even with low-quality codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121201000001
    Figure 2024121201000001
Patent Text Reader

Abstract

To make it possible to optimize reading speed by a code reader.SOLUTION: A 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. The plurality of algorithms differ from each other in their robustness in reading the code 8.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

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

[0002] In a production line in a factory, a code is printed on a work (e.g., a product) by, for example, a laser marker, and the code is read by a code reader. For example, Japanese Patent Application Laid-Open 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. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2004-214250 A Summary of the Invention [Problem to be solved by the invention]

[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. [Means for solving the problem]

[0006] A code reading system according to an 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 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. The plurality of algorithms have different robustness in reading the code.

[0007] According to this configuration, an algorithm having a robustness corresponding 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, preferably, the determination unit determines an algorithm having a lower robustness among the plurality of algorithms as the reading algorithm, as the print quality increases.

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

[0010] In the above disclosure, the determination unit preferably determines, as the print quality becomes lower, an algorithm having a higher robustness from among the plurality of algorithms as the reading algorithm. The plurality of algorithms includes a normal algorithm and one or more robust algorithms having a higher robustness 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 suppress failure of reading by the code reader.

[0012] In the above disclosure, preferably, the determination unit determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm as the print quality is lower. The plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm. A range of print qualities of codes that can be read by the one or more robust algorithms is wider than a 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 suppress failure of reading by the code reader.

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

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

[0016] In the above disclosure, the determination unit preferably determines an algorithm having a higher robustness among the plurality of algorithms as the reading algorithm as the print quality becomes lower. The plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm. The one or more robust algorithms define that more processes are to be executed by adding a process to the normal algorithm.

[0017] According to this configuration, even if the print quality is low, it is possible to suppress 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 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 the code is read once in accordance with a condition that is predetermined as the reading condition. The one or more robust algorithms determine that the reading condition is changed within a predetermined range and the code reading is retried.

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

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

[0021] This configuration enables 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 the printing, verification and reading of the code to be automated.

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

[0025] According to this configuration, even if the print quality is low, it is possible to suppress 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. The plurality of algorithms differ from one another in robustness with respect to reading the code.

[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 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, the plurality of algorithms having different robustness in reading the code.

[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-mentioned code reading method.

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

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

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

Embodiments for Carrying Out the Invention

[0034] Hereinafter, embodiments and modification examples 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 modification examples described below may be selectively combined as appropriate.

[0035] [Embodiment] <A. Application Example> First, an example of a scene to which the present disclosure is applied will be described.

[0036] FIG. 1 is a diagram showing a code reading system in this embodiment. The code reading system 1 in this 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 certain factory. A workpiece 5 (for example, a product) is conveyed on the production line 10 in the direction of arrow 2.

[0037] The laser marker 100 irradiates a laser beam 3 onto a workpiece 5 conveyed on a production line 10, and prints 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 of the transported workpiece to the verification result.

[0039] The code reader 300 determines a reading algorithm to be used to read the code 8 from among a plurality of 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 according to the reading algorithm. The plurality of algorithms differ from one another in terms of robustness with respect to reading the code 8. In the following description, the robustness with respect to reading the code 8 is also simply referred to as "robustness".

[0040] A more 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 more 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 having robustness according 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 the Verifier> FIG. 2 is a diagram showing an example of the hardware configuration of the verifier in the present embodiment. The verifier 200 includes a control unit 210, an illumination unit 220, an imaging device 230, and a communication interface 240. The control unit 210, the illumination unit 220, the imaging 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 by, for example, a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The memory 212 is configured by a volatile storage device such as, for example, a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory). The storage 213 is configured by a non-volatile storage device such as, for example, an HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash memory.

[0044] The storage 213 stores a program 214. The program 214 includes computer-readable instructions for controlling the verifier 200. By executing the program 214, the processor 211 controls each part of the verifier 200 and realizes various processes according to the present embodiment.

[0045] The program 214 may be provided not as a single program but incorporated into a part of any program. In this case, the processes according to the present embodiment are realized in cooperation with any program. Even a program that does not include such a part of the module does not deviate from the gist of the verifier 200 according to the present embodiment. Also, part or all of the functions provided by the program 214 may be realized by dedicated hardware.

[0046] Illumination 220 shines light on the surface of the workpiece 5. The imaging device 230 includes, for example, a CCD (Charge Coupled Device) 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, via the communication interface 240, a verification result indicating the printing quality of the code 8 to the code reader 300.

[0048] <C. Hardware Configuration of Code Reader> FIG. 3 is a diagram showing an example of the hardware configuration of the code reader according to the present embodiment. The code reader 300 includes a control unit 310, an illumination 320, an imaging device 330, a speaker 340, and a communication interface 350. The control unit 310, the illumination 320, the imaging device 330, the speaker 340, and the communication interface 350 are connected by 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 a volatile storage device such as, for example, a DRAM or an SRAM. The storage 313 is configured by a non-volatile storage device such as, for example, 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 the "code reading program" in the present disclosure. The processor 311 executes the program 314 to control each part of the code reader 300 and realize various processes according to the present embodiment.

[0051] Program 314 may be provided incorporated into a part of an arbitrary program, rather than as a single program. In this case, processing according to the present embodiment is realized in cooperation with an arbitrary program. Even a program that does not include such a part of the module does not deviate from the gist of the code reader 300 according to the present embodiment. Further, part or all of the functions provided by program 314 may be realized by dedicated hardware.

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

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

[0054] Communication interface 350 communicates with verifier 200. Communication interface 350 is an example of the "acquisition unit" in the present disclosure. As an example, processor 311 receives a verification result indicating the printing quality of code 8 from verifier 200 via 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 in the present embodiment.

[0056] Verifier 200 includes imaging device 230, verification unit 271, and transmission unit 272. Verification unit 271 and transmission unit 272 are realized by processor 211 executing 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 a plurality of inspection parameters based on the image of the code 8 received from the imaging device 230. The verification unit 271 calculates one score indicating the print quality of the code 8 based on the score of the inspection parameter that has the lowest score among the plurality of 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 the range of 0.0 to 4.0 points, and the closer the score is to 4.0 points, 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 each score of a plurality of 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 have different 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 a predetermined condition as the reading condition. The more robust algorithm is specified so that the reading condition of the Code 8 is broader than that of the less robust algorithm.

[0062] As one example, the range of print qualities of the Code 8 that can be read by the one or more robust algorithms is wider than the range of print qualities of the Code 8 that can be read by the normal algorithm. As another example, the one or more robust algorithms define changing the reading conditions of the Code 8 to improve robustness. As another example, the one or more robust algorithms define adding processing to the normal algorithm to perform more processing. As another example, the one or more robust algorithms define changing the reading conditions of the Code 8 within a predetermined range and retrying reading the Code 8.

[0063] Therefore, when reading Code 8 using one or more robust algorithms, the number of processing steps increases, slowing 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 (e.g., 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 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 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 (pre-processing) 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 (pre-processing) 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 longer 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 for binarizing cells contained in the code 8. When a common value is set for the entire code 8 as the binarization threshold, 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 different values ​​are set for each local portion of the code 8 as the binarization threshold, it takes longer to read the code, but the effects of local noise can be reduced. Therefore, when different values ​​are set for each local portion of the code 8 as the binarization threshold, 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 determines that a median value of black and white (light and dark) is calculated based on the maximum and minimum values ​​of black and white (light and dark) of the entire code 8, and that the median value is set as the binarization threshold. On the other hand, in the robust algorithm, a different value is 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 composed of 16×16 cells, a local portion is, for example, a portion composed of 3×3 cells. The robust algorithm may also determine that a retry is made to read the code 8 by changing the binarization threshold within a predetermined range.

[0073] Image processing (pre-processing) when reading the code 8 is, for example, processing to expand or contract at least one of the white (light) areas in the code 8 and the black (dark) areas in the code 8. This makes it possible to connect adjacent dots. A dot is a component of a cell 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 in the code 8 and white defects (voids) in black (dark) areas in the code 8. This makes it possible to remove black defects in white (light) areas in the code 8 and white defects in black (dark) areas in the code 8.

[0075] If image processing (preprocessing) is not performed when reading the code 8, the time required to read the code is shortened, but if the print quality of the code 8 is low, there is a possibility that reading of the code 8 will fail. 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 suppressed even if the print quality of the code 8 is low.

[0076] In the normal algorithm, no image processing (pre-processing) is performed. On the other hand, in the robust algorithm, the conditions of the image processing (pre-processing) are changed within a predetermined range and a retry is performed to read the Code 8.

[0077] The color of the illumination 320 is the color of the light that is shone on the code 8 when reading the code 8. When 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, when 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 suppressed 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 the robust algorithm specifies that the color of the illumination 320 is changed within a predetermined range and a retry is made to read the Code 8.

[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 suppressed even if the print quality of the code 8 is low.

[0080] In the normal algorithm, the brightness of the illumination 320 is a fixed value. On the other hand, the robust algorithm specifies that the brightness of the illumination 320 is changed within a predetermined range and a retry is made to read the Code 8.

[0081] Due to such differences between the normal algorithm and the robust algorithm, the robust algorithm is more robust in reading Code 8 than the normal algorithm. On the other hand, when reading Code 8 using the robust algorithm, it takes longer to read Code 8 than when reading Code 8 using the normal algorithm. In other words, the robust algorithm is slower at reading Code 8 than the normal algorithm. The less robust an algorithm is among the multiple algorithms, the faster it is at reading 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] When the score indicating the print quality of the code 8 is 1.5 points or more, the determination unit 371 determines the normal algorithm as the reading algorithm. On the other hand, when the score indicating the print quality of the code 8 is less than 1.5 points, the determination unit 371 determines the robust algorithm as the reading algorithm. As a result, when the print quality of the code 8 is equal to or higher than a predetermined quality, an algorithm that has low robustness in reading the code 8 but has a high reading speed for the code 8 is determined as the reading algorithm. When the print quality of the code 8 is less than the predetermined quality, an algorithm that has a slow reading speed for the code 8 but has high robustness in reading the code 8 is determined as the reading algorithm. Note that, although 1.5 points is adopted 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 in 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 to the code reader 300 a verification result indicating the print quality of the Code 8 (a score indicating the print quality of the Code 8).

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

[0087] In step S6, processor 311 determines whether or not 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 notification. After step S7, the code reading process ends.

[0089] In this manner, 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 from one another in robustness in reading the code 8. Therefore, in the code reading system 1 of the present embodiment, an algorithm having robustness according to the print quality of the code 8 is selected as a reading algorithm, so that the reading speed of the code reader 300 can be optimized. Furthermore, the code reading system 1 of the present embodiment can suppress failure of reading 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 suppress a decrease in yield due to abnormal reading of the code 8 with low print quality and an unexpected stop of the production line 10. Therefore, in the code reading system 1 of the present embodiment, the line speed of the production line 10 is optimized, so that production costs are suppressed.

[0090] When a user selects a reading algorithm that matches the print quality of the code 8 from among multiple algorithms, 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 takes a long time to read the code 8, and the line tact of the production line 10 becomes longer. However, in the code reading system 1 of this embodiment, when the print quality of the code 8 is low, a highly robust algorithm (e.g., 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 (e.g., 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 this embodiment, a warning notification 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 at least one of the print quality of the code 8 is low and the reading conditions of the code reader 300 do not match the code 8. Therefore, the warning notification 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 this embodiment allows planned maintenance of the laser marker 100 and the code reader 300.

[0093] [Variation 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] FIG. 8 is a diagram showing a plurality of algorithms in Modification 1. The plurality of 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 plurality of algorithms differ from one another in their robustness with respect to reading the Code 8.

[0095] The most robust algorithm among the multiple algorithms is robust algorithm C. The second most robust algorithm among the multiple algorithms is robust algorithm B. The third most robust algorithm among the multiple algorithms is robust algorithm A. The least robust algorithm among the multiple algorithms is the normal algorithm. The less robust the algorithm among the multiple algorithms is, the faster the code 8 reading speed of 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 parts of code 8) in which a common value is set as the binarization threshold. The more robust the algorithm, the narrower the region in which a common value is set as the binarization threshold.

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

[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 the first modification are merely examples, and the score thresholds are not limited to these. In addition, when multiple robust algorithms are provided as the one or more robust algorithms, the number of robust algorithms may be two or more.

[0100] [Variation 2] Although the code reading system 1 in the above embodiment includes the laser marker 100, the code reading system 1 in the above embodiment does not necessarily need to include the laser marker 100.

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

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

[0103] In addition, in the code reading system 1 in the above embodiment, the "output unit" is provided in the code reader 300, but the "output unit" may be provided in a device capable of communicating with the code reader 300 (e.g., the laser marker 100, the verifier 200, or a terminal used by a user, etc.).

[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 along the production line 10, but 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 the reading algorithm and transmits an instruction to set the reading algorithm to the code reader 300.

[0107] The code reading system 1 may also include a PLC as a hub. In that 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. In the case where the determination unit 371 is included in the PLC, the PLC receives a verification result from the verifier 200, and determines a reading algorithm based on the verification result. The PLC 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 a 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] Furthermore, 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 an instruction to set the reading algorithm to the code reader 300 used to read the code corresponding to the verification result.

[0111] [Variation 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 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 threshold value for changing the reading conditions of the code 8 by the code reader 300, the verification result of the verifier 200, the reading result 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 may be set and checked on the computer.

[0113] [Note] The above-described embodiment and modified examples include the following technical ideas.

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

[0115] [Configuration 2] 2. The code reading system according to configuration 1, wherein the determination unit (371) is more likely to determine, as the reading algorithm, an algorithm having a lower robustness among the plurality of algorithms as the print quality is higher.

[0116] [Configuration 3] the determining unit (371) determines, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system of claim 1, wherein the one or more robust algorithms have a slower reading speed for the code (8) than the normal algorithm.

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

[0118] [Configuration 5] the determining unit (371) determines, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system of claim 1, wherein the one or more robustness algorithms define changes to reading conditions to improve robustness.

[0119] [Configuration 6] the determining unit (371) determines, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system of claim 1, wherein the one or more robust algorithms define a process to be added to the normal algorithm to perform more processing.

[0120] [Configuration 7] the determining unit (371) determines, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, The normal algorithm specifies that the code (8) is read once in accordance with a predetermined condition as a reading condition, 2. The code reading system according to claim 1, wherein the one or more robust algorithms determine that the reading conditions are changed within a predetermined range and a retry is made to read the code (8).

[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 any 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 contained in the code (8), an image processing condition 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] an acquisition unit that acquires a verification result indicating the print quality of the code (8) printed on the work (5); a determination unit (371) for determining a reading algorithm to be used for reading the code (8) from among a plurality of algorithms based on the verification result; a reading unit (372) for reading the code (8) according to the reading algorithm; A code reader, wherein the plurality of algorithms differ from one another in robustness with respect to reading the code (8).

[0125] [Configuration 12] Obtaining a verification result indicating the printing quality of the code (8) printed on the work (5); determining a reading algorithm to be used for reading the code (8) from among a plurality of algorithms based on the verification result; and reading the code (8) according to the reading algorithm, The code reading method, wherein the plurality of algorithms differ from one another in their robustness with respect to reading the code (8).

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

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

[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 verifier and a code reader are provided, the verifier verifies the print quality of the code printed on the 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 be used for reading the code from among a plurality of algorithms based on the verification result; a reading unit that reads the code according to the reading algorithm; A code reading system, wherein the plurality of algorithms differ from one another in terms of robustness with respect to reading the code.

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

3. the determination unit is configured to determine, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system according to claim 1, wherein the one or more robust algorithms have a slower reading speed for the code than the normal algorithm.

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

5. the determination unit is configured to determine, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system of claim 1, wherein the one or more robustness algorithms define reading conditions to be changed such that the robustness is improved.

6. the determination unit is configured to determine, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include a normal algorithm and one or more robust algorithms having a higher robustness than the normal algorithm, 2. The code reading system of claim 1, wherein the one or more robust algorithms define the normal algorithm to perform more processing by adding processing to the normal algorithm.

7. the determination unit is configured to determine, as the reading algorithm, an algorithm having a higher robustness among the plurality of algorithms as the printing quality is lower; the plurality of algorithms include 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 a predetermined condition as a reading condition, 2. The code reading system according to claim 1, wherein the one or more robust algorithms define that the reading conditions are changed within a predetermined range and a retry is made to read the code.

8. The 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. The 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. 8. The code reading system according to 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 included 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. An acquisition unit that acquires a verification result indicating the print quality of the code printed on the workpiece; 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; a reading unit that reads the code in accordance with the reading algorithm; A code reader, wherein the plurality of algorithms differ from one another in robustness with respect to reading the code.

12. Obtaining a verification result indicating the printing quality of the code printed on the workpiece; determining a reading algorithm to be used for reading the code from among a plurality of algorithms based on the verification result; reading the code according to the reading algorithm; A code reading method, wherein the plurality of algorithms differ from one another in robustness with respect to reading the code.

13. A code reading program that causes a computer to execute the code reading method according to claim 12.

Citation Information

Patent Citations

  • Method and device for reading character and crystal inspection method

    JP2004214250A