Information code reader
The information code reading device addresses the issue of deteriorating protective layers by measuring contrast values to detect and notify when the layer has deteriorated, ensuring accurate reading of information codes.
Patent Information
- Application Number
- JP2021135092
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2041-08-20
AI Technical Summary
Specular reflection from protective layers on information codes, such as barcodes or QR codes, can deteriorate over time, leading to reduced reading accuracy due to insufficient suppression of specular reflection, which is not easily detected.
An information code reading device that determines the deterioration of a protective layer by measuring the contrast value between bright and dark cells in the captured image, using threshold values and counting the number of times the contrast exceeds certain thresholds to notify when the layer has deteriorated.
The device accurately detects the deterioration of the protective layer, ensuring continued suppression of specular reflection and maintaining reading accuracy by notifying when the layer needs replacement.
Smart Images

Figure 0007553823000005 
Figure 0007553823000012 
Figure 0007553823000011
Abstract
Description
[Technical field]
[0001] The present invention relates to an information code reader that optically reads an information code provided with a protective layer capable of suppressing specular reflection. [Background technology]
[0002] When capturing an image of an information code such as a barcode or QR code (registered trademark) and optically reading it, the illumination light, etc. may be reflected specularly in the captured image. If the image is captured in such a way that some of the light and dark color cells of the information code are missing due to this specular reflection, there is a problem that the reading process will fail.
[0003] As a technique for suppressing the effect of specular reflection that occurs during the reading process of such information codes, for example, an identification code reading system disclosed in the following Patent Document 1 is known. In this identification code reading system, when marking an identification code on a small steel item, the marking area is subjected to a surface treatment such as blasting or matte finish in advance, and the identification code is marked on the surface-treated area. This suppresses specular reflection around the identification code, improving the reading accuracy of the identification code. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2003-006586 A Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, the influence of specular reflection during the reading process may occur not only in the reading process of reading an information code marked on a metal medium as described above, but also in the reading process of reading an information code printed on a predetermined medium. In such a printed information code, the surface is covered with a protective layer for suppressing specular reflection (e.g., a specular reflection preventing layer, etc.), and the illumination light, etc. is diffusely reflected by the protective layer, thereby suppressing the influence of specular reflection during the reading process.
[0006] However, the specular reflection preventing layer etc. covering the surface of the information code gradually deteriorates, and the deterioration speed varies depending on the environment in which the information code is read, etc. For this reason, if the deterioration of the specular reflection preventing layer etc. is not noticed more than expected, an image of the information code in which the influence of specular reflection is not sufficiently suppressed will be captured, resulting in a problem of reduced reading accuracy of the information code.
[0007] The present invention has been made to solve the above-mentioned problems, and its object is to provide a configuration that can determine whether or not a protective layer provided on an information code to suppress specular reflection has deteriorated. [Means for solving the problem]
[0008] In order to achieve the above object, the invention described in claim 1 of the claims is as follows: An information code reader (10) for optically reading an information code (30) having a plurality of light color cells and dark color cells arranged therein, The information code is covered with a protective layer (40) capable of suppressing specular reflection, an imaging unit (13) that images the information code through the protective layer; a decoding unit (11) that performs a decoding process for decoding the information code on the image captured by the imaging unit; a deterioration state determination unit (11) that determines whether or not the protective layer has deteriorated by utilizing an image of the information code captured by the imaging unit; a notification unit (17) capable of notifying a result of the determination by the deterioration state determination unit; Equipped with The deterioration state determining unit determines whether or not the protective layer has deteriorated based on a contrast value (C) between the light color cells and the dark color cells in the captured image. The symbols in parentheses above indicate the corresponding relationship with the specific means described in the embodiments described later. Effect of the Invention
[0009] In the invention of claim 1, an information code having a plurality of light color cells and dark color cells arranged therein is covered with a protective layer capable of suppressing specular reflection. Then, the deterioration state determination unit determines whether the protective layer has deteriorated or not based on the contrast value between the light color cells and the dark color cells in the captured image.
[0010] When deterioration of the protective layer progresses, it becomes difficult for the protective layer to diffusely reflect light, and therefore the entire information code is imaged darker through the protective layer. Therefore, as deterioration of the protective layer progresses, the light-colored cells and the dark-colored cells of the information code are imaged to be approximately the same darker, and the contrast value between the light-colored cells and the dark-colored cells becomes higher. In other words, when the contrast value between the light-colored cells and the dark-colored cells becomes higher than before, it can be determined that deterioration of the protective layer is progressing. Therefore, based on the contrast value between the light-colored cells and the dark-colored cells that constitute the information code in the image, it is possible to determine whether or not the protective layer provided on the information code to suppress specular reflection has deteriorated.
[0011] In the invention of claim 2, the deterioration state determination unit determines the presence or absence of deterioration of the protective layer based on the contrast value of the light color cells and the dark color cells that constitute a predetermined part of the information code in the captured image. As a result, for example, by determining the presence or absence of deterioration of the protective layer based on the contrast value of a portion of the protective layer that covers the light color cells and the dark color cells, where deterioration is likely to affect reading accuracy compared to other portions, it is possible to determine the presence or absence of deterioration even if it is only partial.
[0012] In the invention of claim 3, the deterioration state determination unit counts the number of times that the contrast value calculated at a predetermined interval is equal to or greater than a first threshold value, and when the number of times is equal to or greater than a first predetermined number of times, it is determined that the protective layer is deteriorated. As a result, even if the contrast value is calculated to be temporarily high due to a change in the surrounding environment or the like, the protective layer is not determined to be deteriorated unless that state continues, so that it is possible to improve the accuracy of determination regarding the presence or absence of deterioration of the protective layer.
[0013] In the invention of claim 4, when the deterioration state determination unit calculates a contrast value that is less than the first threshold value during a specified time period when direct reflection is likely to occur, the number of times that the contrast value is less than or equal to a second threshold value that is set smaller than the first threshold value is counted, and when the number of times becomes equal to or greater than a second specified number, it is determined that the protective layer is deteriorated.
[0014] When the captured image of the information code is affected by specular reflection, such as when sunlight is directly irradiated onto the protective layer, the entire information code is captured brightly through the protective layer, and the contrast value calculated from the captured image is low. In this case, even if the protective layer is deteriorated, if the contrast value calculated during a time period when specular reflection is likely to occur falls below the first threshold, the number of times the contrast value reaches or exceeds the first threshold decreases, and the period until the number of times reaches or exceeds the first predetermined number may become longer.
[0015] Therefore, when a contrast value less than the first threshold value is calculated during a predetermined time period when specular reflection is likely to occur, if the number of times that the contrast value is less than or equal to the second threshold value becomes equal to or greater than a second predetermined number of times, it is determined that the protective layer has deteriorated. As a result, even if the number of times that the calculated contrast value is equal to or greater than the first threshold value decreases due to the influence of specular reflection, it is possible to determine that the protective layer has deteriorated by the number of times that the contrast value is equal to or less than the second threshold value becoming equal to or greater than the second predetermined number of times, and therefore it is possible to suppress the influence of specular reflection in determining whether the protective layer has deteriorated.
[0016] In the invention of claim 5, a light color pattern having the same lightness as the light color cell and a dark color pattern having the same lightness as the dark color cell are arranged at a position where they are imaged by the imaging unit together with the information code without being protected by a protective layer. Then, when the deterioration state determination unit calculates a contrast value that is less than the first threshold value and exceeds the second threshold value during the specified time period, it counts the number of times that the contrast value is considered to be the same as the contrast value of the light color pattern and the contrast value of the dark color pattern, and when the number of times reaches a third specified number of times or more, it is determined that the protective layer is deteriorated.
[0017] When the light and dark cells protected by the protective layer fade, the contrast value calculated from the captured image becomes high, and the contrast value that should be determined to be equal to or less than the second threshold value during the predetermined time period is calculated to be high. As a result, the number of times that the contrast value becomes equal to or less than the second threshold value decreases, and it may take a longer time for the number of times that the contrast value becomes equal to or more than the second predetermined number.
[0018] Therefore, when a contrast value less than the first threshold value and exceeding the second threshold value is calculated during the specified time period, if the number of times that the contrast value and the contrast value of the light color pattern and the dark color pattern are deemed to be the same becomes equal to or greater than a third specified number of times, it is determined that the protective layer has deteriorated. As a result, even if the number of times that the calculated contrast value becomes equal to or less than the second threshold value decreases due to fading of the light color cells and the dark color cells protected by the protective layer, it is possible to determine that the protective layer has deteriorated by the number of times that the contrast value and the contrast value Cn of the light color pattern and the dark color pattern are deemed to be the same becoming equal to or greater than the third specified number of times, so that it is possible to suppress the influence of fading of the information code on the determination of the presence or absence of deterioration of the protective layer.
[0019] As in the invention of claim 6, the degradation state determining unit may determine the presence or absence of degradation of the protective layer based on a time change in the contrast value.
[0020] In the invention of claim 7, a protection layer is provided for each of the plurality of information codes, and the deterioration state determination unit determines whether the protection layer has deteriorated for each information code. This makes it possible to determine whether each protection layer has deteriorated, even when a protection layer is provided for each of the plurality of information codes. [Brief description of the drawings]
[0021] [Figure 1] FIG. 2 is an explanatory diagram showing an information code reading device and a returnable box being transported according to the first embodiment. [Diagram 2] 4 is a plan view illustrating the positional relationship between a protective layer and an information code covered by this protective layer. FIG. [Diagram 3] 2 is a block diagram illustrating a schematic example of an electrical configuration of the information code reading device of FIG. 1. [Figure 4] FIG. 4A is a conceptual diagram illustrating the diffuse reflection state caused by a non-deteriorated protective layer, and FIG. 4B is a conceptual diagram illustrating the diffuse reflection state caused by a deteriorated protective layer. [Diagram 5] 10 is an explanatory diagram illustrating the relationship between the luminance value of a light color cell and the luminance value of a dark color cell in a captured image and the diffuse reflectance of a protective layer. FIG. [Figure 6] 5 is a flowchart illustrating the flow of a reading process performed by a control unit in the first embodiment. [Figure 7] 6 is a graph illustrating the relationship between the time change of the contrast value calculated in the first embodiment and the first threshold value. [Figure 8] 13 is an explanatory diagram illustrating a predetermined part of an information code for which a contrast value is calculated in a modified example of the first embodiment. FIG. [Figure 9] 10 is a flowchart illustrating the flow of a reading process performed by a control unit in a second embodiment. [Figure 10] 10 is a graph illustrating the relationship between the time change of the contrast value calculated in the second embodiment and the first and second threshold values. [Figure 11]FIG. 11 is a plan view illustrating the positional relationship between a protective layer covering an information code and a light color pattern and a dark color pattern in the third embodiment. [Figure 12] 13 is a flowchart illustrating the flow of a reading process performed by a control unit in a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] [First embodiment] Hereinafter, a first embodiment of an information code reading device according to the present invention will be described with reference to the drawings. The information code reader 10 according to the present embodiment is a device that optically reads information codes such as barcodes in which a plurality of light-colored cells and dark-colored cells are arranged one-dimensionally and QR codes in which a plurality of light-colored cells and dark-colored cells are arranged two-dimensionally. In the present embodiment, the information code reader 10 is configured to read information about the articles transported using each of the transportable boxes B by performing a reading process to read an information code 30 on a label 20 attached to each of the transportable boxes B transported sequentially on a conveyor, as shown in FIG. 1. Note that, in the present embodiment, the information code 30 is configured as a QR code, but is not limited thereto, and may be configured as other types of information codes such as one-dimensional codes such as barcodes, and two-dimensional codes such as data matrix codes and maxicodes.
[0023] In particular, in this embodiment, in order to suppress the influence of specular reflection during the reading process, the surface of each information code 30 is covered with a protective layer for suppressing specular reflection (hereinafter also referred to as protective layer 40), such as a specular reflection preventing layer, as exemplified in Fig. 2. This protective layer 40 functions to suppress the influence of specular reflection on the information code 30 imaged through the protective layer 40 by diffusing and reflecting a part of the light incident from the outside.
[0024] Next, the electrical configuration of the information code reader 10 will be described with reference to FIG. As shown in FIG. 3, the information code reading device 10 includes a control unit 11 consisting of a CPU or the like, a memory unit 12 consisting of a ROM, RAM, non-volatile memory or the like, an imaging unit 13 configured as a camera equipped with a light receiving sensor (e.g., a C-MOS area sensor, a CCD area sensor, or the like), a display unit 14 consisting of an LCD display or the like, a light emitting unit 15 consisting of an LED or the like, a buzzer 16 capable of emitting beeps or the like, and a communication unit 17 configured as a communication interface for communicating with external devices such as a higher-level terminal.
[0025] The information code reading device 10 is disposed above the conveyor so that the information code 30 of the return box B transported on the conveyor is within the imaging range of the imaging unit 13. The control unit 11 functions as a decoding unit (decoding unit) that decodes (decodes) and acquires the data recorded in the information code 30 by performing a known decoding process (deciphering process) on the image data of the information code 30 imaged by the imaging unit 13. Note that the information code reading device 10 may be configured such that the imaging unit 13 and the like are configured as separate entities from a main body unit that houses the control unit 11 and the like, and the separate imaging unit 13 and the like are disposed above the conveyor.
[0026] Next, the characteristic configuration of the information code reader 10 will be described with reference to the drawings. When the returnable box B is used repeatedly, the protective layer 40 covering the information code 30 attached to the returnable box B gradually deteriorates, and the deterioration rate varies depending on the environment in which the information code 30 is read, the frequency of use, etc. For example, when the protective layer 40 is not deteriorated, the light incident on the protective layer 40 is more diffusely reflected, as shown in FIG. 4(A), and the effect of specular reflection is suppressed. However, when the protective layer 40 deteriorates, the diffuse reflection function of the protective layer 40 decreases, as shown in FIG. 4(B), and the specular reflection component increases. For this reason, if the deterioration of the protective layer 40 is not noticed more than expected, an image of the information code 30 in which the effect of specular reflection is not sufficiently suppressed may be captured, and the reading accuracy of the information code 30 may decrease.
[0027] For this reason, in this embodiment, the presence or absence of deterioration of the protective layer 40 is determined based on a contrast value C calculated using the following formula (1) from the average luminance value (hereinafter also referred to as the luminance value Mw) of the light color cells and the average luminance value (hereinafter also referred to as the luminance value Mb) of the dark color cells of the information code 30 imaged through the protective layer 40. In this way, by detecting the deterioration of the protective layer 40 at an early stage, a decrease in the reading accuracy of the information code is suppressed. C = (Mw - Mb) / Mw (1)
[0028] Hereinafter, the basis for determining whether or not the protective layer 40 has deteriorated based on the contrast value C will be described with reference to FIG. As deterioration of the protective layer 40 progresses, light is less likely to be diffusely reflected by the protective layer 40, and the information code 30 is imaged as being darker as a whole through the protective layer 40. Therefore, as deterioration of the protective layer 40 progresses, the light color cells and the dark color cells of the information code 30 are imaged as being darker to the same extent, and the contrast value C between the light color cells and the dark color cells becomes higher. In other words, when the contrast value C between the light color cells and the dark color cells becomes higher than before, it can be determined that deterioration of the protective layer 40 is progressing.
[0029] To explain this specifically using mathematical expressions, the following formulas (2) and (3) hold for the luminance value Mw of the light cells and the luminance value Mb of the dark cells of the information code 30 in the captured image, where α is the diffuse reflectance of the protective layer 40, A is a constant taking into account the diffusion and specular reflectance of the protective layer 40, Rw is the reflectance of the light cells, and Rb is the reflectance of the dark cells. Note that (1-A) corresponds to the proportion of light that has passed through the protective layer 40 and reached the information code 30. Mw = α + (1 - A)Rw (2) Mb = α + (1 - A)Rb (3)
[0030] The relationship shown in FIG. 5 is established between the luminance value Mw of the light cell, the luminance value Mb of the dark cell, and the diffuse reflectance α of the protective layer 40. As can be seen from FIG. 5, when the diffuse reflectance α decreases according to the deterioration of the protective layer 40, the luminance value Mw of the light cell and the luminance value Mb of the dark cell decrease with approximately the same slope. Therefore, the contrast value C calculated using the above formula (1) increases as the diffuse reflectance α decreases. For example, as illustrated in FIG. 5, the contrast value C at α1, where the diffuse reflectance is relatively small, increases compared to the contrast value C at α2, where the diffuse reflectance is relatively large, because the denominator "Mw" is smaller even though the numerator "Mw-Mb" is approximately the same. Therefore, based on the contrast value C, the state of decrease in the diffuse reflectance α of the protective layer 40, that is, the presence or absence of deterioration of the protective layer 40 can be determined.
[0031] Hereinafter, a detailed description will be given of a reading process in which the control unit 11 of the information code reader 10 determines the deterioration state of the protective layer 40 every time the information code 30 is successfully decoded, with reference to a flowchart shown in FIG.
[0032] When each returnable box B starts to be transported on the conveyor, the control unit 11 starts the reading process, and the imaging process shown in step S101 in Fig. 6 is performed, and the imaging unit 13 performs a process of capturing an image of the information code 30 of the returnable box B transported on the conveyor. Then, the decoding process shown in step S103 is performed, and the captured information code 30 is decoded.
[0033] Then, when the information code 30 of the return box B transported on the conveyor is imaged by the imaging unit 13 in a decodable manner and the information code 30 is successfully decoded (Yes in S105), a contrast value calculation process is performed as shown in step S107. In this process, the contrast value C is calculated using the above formula (1) based on the luminance value Mw of the light color cells and the luminance value Mb of the dark color cells of the information code 30 that has been successfully decoded as described above.
[0034] Next, in a determination process shown in step S109, it is determined whether the contrast value C calculated as described above is equal to or greater than the first threshold value Cth1. Here, the first threshold value Cth1 is set to a value equivalent to the contrast value C calculated from a captured image of the protective layer 40 that has deteriorated to such an extent that it affects the reading accuracy of the information code 30. If the calculated contrast value C is less than the first threshold value Cth1 (No in S109), a storage process shown in step S111 is performed. In this process, the decoded result, the contrast value C, and the like are stored in the storage unit 12 so that they can be transmitted to a higher-level terminal or the like via the communication unit 17 at a predetermined timing. In this way, if a contrast value C that is less than the first threshold value Cth1 is calculated, it is determined that the deterioration of the protective layer 40 has not progressed to such an extent that a notification is required, and this reading process is terminated.
[0035] Then, when the next returnable box B is transported, the above-mentioned reading process is performed to determine whether the protective layer 40 covering the information code 30 of that returnable box B has deteriorated, and the deterioration of each of the protective layers 40 covering the information code 30 of the returnable box B that is transported successively is determined individually. In this way, each time the returnable box B is used repeatedly, that is, at each predetermined interval, one contrast value C is calculated, and as the deterioration of the protective layer 40 gradually progresses as shown in Fig. 7, the calculated contrast value C gradually increases for each information code 30.
[0036] As described above, the protective layer 40 is gradually deteriorated by repeated use of the returnable box B, and when the contrast value C becomes equal to or greater than the first threshold value Cth1 (Yes in S109: see ta1 in FIG. 7), N1 indicating the number of times that the contrast value C has become equal to or greater than the first threshold value Cth1 is incremented (S113). Subsequently, in the determination process of step S115, it is determined whether the incremented number of times N1 is equal to or greater than the first predetermined number of times N1th, and if the number of times N1 is less than the first predetermined number of times N1th (No in S115), the storage process of the above step S111 is performed, and the number of times N1 is stored in the storage unit 12 in addition to the decoded result and the contrast value C, and the present reading process is terminated.
[0037] Further repeated use of the returnable box B causes the contrast value C calculated at a predetermined interval thereafter to be equal to or greater than the first threshold value Cth1 many times (Yes in S109: see ta2 in FIG. 7), and when the incremented number of times N1 becomes equal to or greater than the first predetermined number of times N1th (Yes in S115), a notification process shown in step S117 is performed. In this process, information indicating that the protective layer 40 covering the information code 30 that has been successfully decoded as described above has deteriorated is transmitted to a higher-level terminal or the like via the communication unit 17 together with information identifying the information code 30, etc., to be notified. The control unit 11 that performs the processes from step S107 to step S115 above corresponds to an example of a "deterioration state determination unit" that determines whether or not the protective layer 40 has deteriorated, and the control unit 11 and communication unit 17 that perform the notification process of step S117 above may correspond to an example of a "notification unit" that can notify the determination result of the "deterioration state determination unit".
[0038] A higher-level terminal or the like that receives this notification can easily identify the information code 30 and the return box B that are protected by the deteriorated protective layer 40. Therefore, for example, by replacing the label 20 (information code 30 and protective layer 40) on the return box B with a new one, it is possible to prevent a decrease in the reading accuracy of the information code 30 caused by deterioration of the protective layer 40.
[0039] As described above, in the information code reading device 10 according to this embodiment, the information code 30, which is an array of a plurality of light color cells and dark color cells, is covered with the protective layer 40 capable of suppressing specular reflection. Then, in the reading process performed by the control unit 11, the presence or absence of deterioration of the protective layer 40 is determined based on the contrast value C calculated from the luminance value Mw of the light color cells and the luminance value Mb of the dark color cells in the captured image.
[0040] As described above, when the contrast value C calculated from the luminance value Mw of the light cell and the luminance value Mb of the dark cell becomes higher than before, it can be determined that deterioration of the protective layer 40 is progressing, and based on this contrast value C, it can be determined whether or not the protective layer 40 provided on the information code 30 to suppress specular reflection has deteriorated.
[0041] In particular, in this embodiment, the number N1 of times that the contrast value C calculated at a predetermined interval (repeated interval of the return box B) becomes equal to or greater than the first threshold value Cth1 is counted, and when the number N1 becomes equal to or greater than the first predetermined number N1th, it is determined that the protective layer 40 has deteriorated. As a result, even if the contrast value C is calculated to be temporarily high due to a change in the surrounding environment or the like, the protective layer 40 will not be determined to have deteriorated unless that state continues, and therefore it is possible to improve the accuracy of determination regarding the presence or absence of deterioration of the protective layer 40.
[0042] In an environment where the contrast value C can be calculated with high accuracy, the notification process may be performed when the calculated contrast value C becomes equal to or greater than the first threshold value Cth1 at least once, without counting the number of times N1. In addition, the presence or absence of deterioration of the protective layer 40 may be determined based on a change over time in the calculated contrast value C, such as an increasing tendency of the contrast value C.
[0043] Also, for example, the notification process may be performed at the timing when the contrast value C exceeds 3σ of the normal distribution, without comparing the contrast value C with the first threshold value Cth1.
[0044] As a modification of this embodiment, in the contrast value calculation process in step S107, the contrast value C is not limited to being calculated based on the luminance values Mw of all light color cells and the luminance values Mb of dark color cells constituting the information code 30, but may be calculated based on the average luminance value of light color cells and the average luminance value of dark color cells constituting one or more predetermined parts of the information code 30. For example, as illustrated in FIG. 8, the contrast value C may be calculated based on the average luminance value of light color cells and the average luminance value of dark color cells constituting two divided regions S1 and S2, excluding the divided region including the FP pattern, among the divided regions obtained by dividing the image of the information code 30 into nine. As a result, for example, by determining the presence or absence of deterioration of the protective layer 40 based on the contrast value C at a portion of the protective layer 40 covering the light color cells and the dark color cells, the presence or absence of deterioration can be determined even if it is only partial deterioration.
[0045] [Second embodiment] Next, an information code reading device according to a second embodiment of the present invention will be described with reference to the drawings. The second embodiment differs from the first embodiment mainly in that the influence of regular reflection is taken into consideration in determining the presence or absence of degradation of the protective layer 40. Therefore, the same components as those in the first embodiment are denoted by the same reference numerals, and the description thereof will be omitted.
[0046] The protective layer 40 for suppressing the influence of specular reflection may be provided for an indoor information code attached to a shipping box B sequentially transported on a conveyor as in the above-mentioned first embodiment, or may be provided for an outdoor information code, for example, an information code attached to a door of a railway vehicle to detect whether the door is open or closed. In this way, when the captured image of the information code 30 is affected by specular reflection, such as when the protective layer 40 is directly irradiated with sunlight for use outdoors, the entire information code 30 is captured brightly through the protective layer 40, and the contrast value C calculated from the captured image is low.
[0047] In this case, even if the protective layer 40 has deteriorated, if the contrast value C calculated during a time period when direct reflection is likely to occur becomes less than the first threshold value Cth1, the number of times N1 that the contrast value C becomes equal to or greater than the first threshold value Cth1 will decrease, and the period until the number of times N1 becomes equal to or greater than the first predetermined number of times N1th may become longer.
[0048] Therefore, in this embodiment, when a contrast value C less than the first threshold value Cth1 is calculated in a predetermined time period when specular reflection is likely to occur, the number of times N2 that the contrast value C is equal to or less than a second threshold value Cth2 set smaller than the first threshold value Cth1 is counted, and when the number of times N2 is equal to or greater than a second predetermined number N2th, it is determined that the protective layer 40 has deteriorated. In this way, by considering the state in which a contrast value C less than the second threshold value Cth2 is calculated in a predetermined time period when specular reflection is likely to occur, it is possible to suppress the influence of specular reflection on the determination of the presence or absence of deterioration of the protective layer 40.
[0049] The reading process performed by the control unit 11 in this embodiment will be described in detail below with reference to the flowchart shown in Fig. 9. Note that in this embodiment, the information code 30 is attached to an article used outdoors, and the information code 30 is imaged at a predetermined interval of about several times a day, and the presence or absence of deterioration of the protective layer 40 protecting the information code 30 is determined on the assumption that the information code 30 is read. In addition, the predetermined time period during which regular reflection is likely to occur can be, for example, a time period from 7:00 a.m. to 8:00 a.m. depending on the imaging environment, etc.
[0050] When the reading process is started by the control unit 11, the imaging process shown in step S101 of Figure 9 is performed, and if the above-mentioned item is positioned within the imaging field of view of the imaging unit 13 and the information code 30 imaged by the imaging unit 13 is successfully decoded (Yes in S105), the contrast value C is calculated as described above for the information code 30 (S107).
[0051] If the contrast value C calculated in this way is less than the first threshold value Cth1 (No in S109), it is determined in the determination process of step S121 whether or not it is a predetermined time period in which specular reflection is likely to occur. If it is not the above-mentioned predetermined time period in which specular reflection is likely to occur (No in S121), the processes from step S111 onwards are performed.
[0052] On the other hand, if it is the above-mentioned predetermined time period when specular reflection is likely to occur (Yes in S121), a determination is made in step S123 as to whether the contrast value C determined to be less than the first threshold value Cth1 is equal to or less than the second threshold value Cth2. If the contrast value C exceeds the second threshold value Cth2 (No in S123), the processing from step S111 onwards is performed.
[0053] On the other hand, if the contrast value C determined to be less than the first threshold Cth1 is equal to or less than the second threshold Cth2 (Yes in S123: see tb1 in FIG. 10), N2 indicating the number of times that the contrast value C has become equal to or less than the second threshold Cth2 as described above is incremented (S125). Next, in the determination process of step S127, it is determined whether the incremented number of times N2 is equal to or greater than the second predetermined number of times N2th, and if the number of times N2 is less than the second predetermined number of times N2th (No in S127), the process from step S111 onwards is performed, and the number of times N2 is stored in the storage unit 12 in addition to the decoded result, the contrast value, and the number of times N1, etc., and this reading process ends.
[0054] Thereafter, as the article is used repeatedly, the contrast value C calculated in the predetermined time period thereafter becomes equal to or less than the second threshold value Cth2 many times (Yes in S123: see tb2 in FIG. 10), and when the incremented number of times N2 becomes equal to or greater than the second predetermined number of times N2th (Yes in S127), the notification process shown in step S117 described above is performed. As a result of this process, similar to the first embodiment, information indicating that the protective layer 40 covering the successfully decoded information code 30 has deteriorated is transmitted to a higher-level terminal or the like via the communication unit 17 together with information identifying the information code 30, etc., to be notified. In this embodiment, the control unit 11 that performs the processes from step S107 to step S115 and the processes from step S121 to step S127 may correspond to an example of a "deterioration state determination unit" that determines whether or not the protective layer 40 has deteriorated.
[0055] As described above, in the information code reading device 10 of this embodiment, when a contrast value C that is less than the first threshold value Cth1 is calculated during a specified time period when direct reflection is likely to occur, the number of times N2 that the contrast value C is less than or equal to the second threshold value Cth2 that is set smaller than the first threshold value Cth1 is counted, and when the number of times N2 becomes equal to or greater than a second specified number N2th, it is determined that the protective layer 40 is deteriorated.
[0056] As a result, even if the number of times N1 at which the calculated contrast value C becomes equal to or greater than the first threshold value Cth1 decreases due to the influence of specular reflection, the number of times N2 at which the contrast value C becomes equal to or less than the second threshold value Cth2 becomes equal to or greater than the second predetermined number N2th, so that it is possible to determine that the protective layer 40 has deteriorated, thereby suppressing the influence of specular reflection on determining whether or not the protective layer 40 has deteriorated.
[0057] [Third embodiment] Next, an information code reading device according to a third embodiment of the present invention will be described with reference to the drawings. The third embodiment differs from the second embodiment mainly in that the presence or absence of deterioration of the protective layer 40 is determined by taking into consideration the contrast value between a light color pattern and a dark color pattern that are arranged near the information code 30 and are not protected by the protective layer 40. Therefore, the same reference numerals are used for components that are substantially the same as those in the second embodiment, and the description thereof will be omitted.
[0058] When the light color cells and dark color cells of the information code 30 protected by the protective layer 40 fade, the contrast value C calculated from the captured image becomes high, and the contrast value C that should be determined to be equal to or less than the second threshold value Cth2 in the above-mentioned predetermined time period is calculated to be high. As a result, the number of times that the contrast value C becomes equal to or less than the second threshold value Cth2 decreases, and the period until the number of times N2 becomes equal to or greater than the second predetermined number of times N2th may become longer.
[0059] 11, a light color pattern 51 having the same lightness as the light color cells of the information code 30 and a dark color pattern 52 having the same lightness as the dark color cells are arranged at a position where they are not protected by the protective layer 40 and are imaged by the imaging unit 13 together with the information code 30. When a contrast value C that is less than the first threshold value Cth1 and exceeds the second threshold value Cth2 is calculated during the above-mentioned predetermined time period, a contrast value Cn between the light color pattern 51 and the dark color pattern 52 is calculated.
[0060] The number of times N3 at which the contrast value Cn thus calculated is deemed to be the same as the contrast value C is counted, and when the number N3 is equal to or greater than a third predetermined number N3th, it is determined that the protective layer 40 has deteriorated. In this manner, by utilizing the comparison result with the contrast value Cn of the light color pattern 51 and the dark color pattern 52 that are not protected by the protective layer 40, the influence of fading of the information code 30 on the determination of the presence or absence of deterioration of the protective layer 40 can be suppressed.
[0061] The reading process performed by the control unit 11 in this embodiment will be described in detail below with reference to the flowchart shown in FIG. As in the second embodiment, if the calculated contrast value C is less than the first threshold value Cth1 (No in S109 of FIG. 12), it is the above-mentioned predetermined time period in which specular reflection is likely to occur (Yes in S121), and the contrast value C exceeds the second threshold value Cth2 (No in S123), a contrast value calculation process shown in step S131 is performed. In this process, a contrast value Cn between the light color pattern 51 and the dark color pattern 52 included in the captured image in which the information code 30 has been successfully decoded is calculated.
[0062] Next, in the judgment process of step S133, it is judged whether or not the difference between the contrast value Cn calculated as described above and the contrast value C is equal to or less than a predetermined value ΔC. If the difference between the contrast value Cn and the contrast value C exceeds the predetermined value ΔC (No in S133), it is judged that the contrast value Cn and the contrast value C are not regarded as the same, and the processes from step S111 onwards are carried out.
[0063] On the other hand, if the difference between the contrast value Cn and the contrast value C is equal to or less than the predetermined value ΔC (Yes in S133), the contrast value Cn and the contrast value C are considered to be substantially the same. In this case, the number of times N3 at which the contrast value Cn and the contrast value C are considered to be the same is incremented (S135). Next, in the determination process of step S137, it is determined whether the incremented number of times N3 is equal to or greater than the third predetermined number of times N3th. If the number of times N3 is less than the third predetermined number of times N3th (No in S137), the process from step S111 onwards is performed, and the number of times N3 is stored in the storage unit 12 in addition to the decoded result, the contrast value, the number of times N1, the number of times N2, etc., and this reading process ends.
[0064] Thereafter, as the article is used repeatedly, the difference between the contrast value C calculated to exceed the second threshold value Cth2 during the predetermined time period and the contrast value Cn becomes equal to or smaller than the predetermined value ΔC many times (Yes in S133), and when the incremented number of times N3 becomes equal to or larger than the third predetermined number of times N3th (Yes in S137), the notification process shown in step S117 described above is performed. As a result of this process, similar to the first embodiment, information indicating that the protective layer 40 covering the successfully decoded information code 30 has deteriorated is transmitted to a higher-level terminal or the like via the communication unit 17 together with information identifying the information code 30, etc., to be notified. In this embodiment, the control unit 11 that performs the processes from step S107 to step S115, as well as the processes from step S121 to step S127 and the processes from step S131 to step S137, may correspond to an example of a "deterioration state determination unit" that determines whether or not the protective layer 40 has deteriorated.
[0065] As described above, in the information code reader 10 according to this embodiment, the light color pattern 51 having the same lightness as the light color cell and the dark color pattern 52 having the same lightness as the dark color cell are arranged at a position where they are imaged by the imaging unit 13 together with the information code 30 without being protected by the protective layer 40. When a contrast value C that is less than the first threshold value Cth1 and exceeds the second threshold value Cth2 is calculated during the predetermined time period, the number N3 of times that the contrast value C and the contrast value Cn of the light color pattern 51 and the dark color pattern 52 are considered to be the same is counted, and when the number N3 becomes equal to or greater than a third predetermined number N3th, it is determined that the protective layer 40 has deteriorated.
[0066] As a result, even if the number N2 of times that the calculated contrast value C becomes below the second threshold value Cth2 due to fading of the light and dark cells of the information code 30 protected by the protective layer 40 decreases, the number N3 of times that the contrast value C is deemed to be the same as the contrast value Cn of the light and dark patterns 51 and 52 becomes equal to or greater than the third predetermined number N3th, so that it can be determined that the protective layer has deteriorated, thereby suppressing the effect of fading of the information code on determining whether the protective layer has deteriorated.
[0067] The present invention is not limited to the above-described embodiments, and may be embodied as follows, for example. (1) In the above reading process, by performing the notification process of step S117, information indicating that protective layer 40 is deteriorated is not limited to being notified as the judgment result of the deterioration state judgment unit, but if it is not judged that protective layer 40 is deteriorated, the judgment result (the judgment result that protective layer 40 is not deteriorated) may be further notified using communication unit 17, etc.
[0068] (2) For example, when two or more information codes 30 are displayed on one label and each is individually protected by a protective layer 40, and a protective layer 40 is provided for each of the multiple information codes 30, the presence or absence of deterioration of the protective layer 40 may be determined individually for each information code 30. This makes it possible to determine the presence or absence of deterioration for each protective layer 40 even when a protective layer 40 is provided for each of the multiple information codes 30. [Explanation of symbols]
[0069] 10...Information code reader 11...Control unit (decoding unit, deterioration state determination unit) 13...Imaging unit 17...Communication section (alert section) 20,20a…Label 30...Information code 40...Protective layer 51...Light color pattern 52...Dark color pattern C, Cn: Contrast value Cth1: First threshold Cth2: Second threshold Mb…Brightness value of dark color cells Mw: Brightness value of light-colored cells N1, N2, N3…number of times N1th: First predetermined number of times N2th: Second predetermined number of times N3th: The third predetermined number of times
Claims
1. An information code reader that optically reads an information code having a plurality of light color cells and dark color cells arranged therein, the information code is covered with a protective layer capable of suppressing specular reflection; an imaging unit that images the information code through the protective layer; a decoding unit that performs a decoding process for decoding the information code on the image captured by the imaging unit; a deterioration state determination unit that determines whether or not the protective layer has deteriorated by utilizing an image of the information code captured by the imaging unit; a notification unit capable of notifying a result of the determination by the deterioration state determination unit; Equipped with The deterioration state determining unit determines whether or not the protective layer has deteriorated based on a contrast value between the light color cells and the dark color cells in the captured image.
2. The information code reading device according to claim 1, characterized in that the deterioration state determination unit determines whether or not the protective layer has deteriorated based on a contrast value between the light color cells and the dark color cells that constitute a predetermined portion of the information code in the captured image.
3. The information code reading device according to claim 1 or 2, characterized in that the deterioration state determination unit counts the number of times that the contrast value calculated at a predetermined interval becomes equal to or greater than a first threshold value, and determines that the protective layer is deteriorated when the number of times becomes equal to or greater than a first predetermined number.
4. The deterioration state determination unit counts the number of times that the contrast value is equal to or less than a second threshold value set smaller than the first threshold value when the contrast value is calculated to be less than the first threshold value during a specified time period when direct reflection is likely to occur, and determines that the protective layer is deteriorated when the number of times reaches or exceeds a second specified number.
5. a light color pattern having the same lightness as the light color cell and a dark color pattern having the same lightness as the dark color cell are disposed at positions where they are not protected by the protective layer and are imaged by the imaging unit together with the information code, The information code reading device according to claim 4, characterized in that the deterioration state determination unit counts the number of times that the contrast value is deemed to be the same as the contrast value between the light color pattern and the dark color pattern when the contrast value calculated during the specified time period is less than the first threshold value and exceeds the second threshold value, and determines that the protective layer is deteriorated when the number of times reaches or exceeds a third specified number.
6. 3. The information code reading device according to claim 1, wherein the deterioration state determining unit determines whether or not the protective layer has deteriorated based on a time change in the contrast value.
7. the protective layer is provided for each of the plurality of information codes; 7. The information code reading device according to claim 1, wherein the deterioration state determining unit determines whether or not the protective layer has deteriorated for each of the information codes.
Citation Information
Patent Citations
Instrument with identification code, manufacturing method therefor and identification code read system
JP2003006586A
Optical information reader
JP2009169931A
Printed matter, decoding method, decorder, and decoding system
JP2020067800A
