Information code acquisition method, information code acquisition device, and information code acquisition program
The method and device use spectral imaging to detect and analyze information codes with imperceptible color differences, ensuring design integrity and efficient detection across diverse surfaces.
Patent Information
- Application Number
- JP2023019331
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional information codes formed in colors different from the background impair design quality, and methods using special inks require matching blending ratios, making them conspicuous on diverse backgrounds, thus affecting design integrity.
An information code acquisition method and device that utilizes spectral imaging to detect codes with color differences imperceptible to the human eye, employing a spectroscopic camera to capture and analyze spectral images across multiple wavelengths, determining the presence and content of the code based on spectral characteristics.
Enables accurate detection and analysis of information codes on various surfaces without altering their design, allowing for flexible application across different backgrounds and improving detection efficiency by optimizing wavelength scanning strategies.
Smart Images

Figure 2024113998000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information code acquisition method, an information code acquisition device, and an information code acquisition program. [Background technology]
[0002] Conventionally, information codes such as QR codes (registered trademark) and bar codes are sometimes formed on articles. Generally, such information codes are formed in a color different from the background color so as to be easily recognized in an image captured by an RGB camera, and are displayed so as not to be buried in the background color. Also, it is known that such an information code is formed by using special ink (for example, see Patent Document 1). Patent Document 1 discloses an information code in which a mixed color material is formed by mixing at least two or more types of color materials such as pigments or dyes while modulating the respective concentrations, and information is provided in the blending ratio of each color material in the mixed color material. In addition, as a method for analyzing the information code, a spectrometer is used to measure the spectral reflectance of the information code, and the blending ratio of each color material contained in the mixed color material is calculated from the spectral reflectance. Then, whether the information code is true or false is determined depending on whether the calculated blending ratio matches a predetermined blending ratio. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 8-69680 Summary of the Invention [Problem to be solved by the invention]
[0004] As described above, conventional information codes are generally formed in a color different from the background in order to improve visibility with an RGB camera, but in this case, the design of the product is impaired. On the other hand, when using a special ink as in Patent Document 1, it is possible to suppress the deterioration of design by matching the color of the information code to the base color of the product. However, the technology in Patent Document 1 provides information in the blending ratio of color materials, and in order to embed the same information, the blending ratio must also be the same. Therefore, when forming the same information code on multiple types of products with different base colors, depending on the color of the base, the information code will be a conspicuous color, and the design will be impaired. In addition, the technology in Patent Document 1 provides information by obtaining a spectral reflectance according to the blending ratio when the spectral reflectance specific to the pigment or dye is added, and the information code cannot be embedded in, for example, an image to be displayed on a display. In view of the above problems, an information code formed with a color difference that is indistinguishable from the surface color of an object by the human eye has been considered as an information code that can be formed not only on articles but also on any object such as an image displayed on a display without impairing the design of the object.Therefore, there is a demand for an information code acquisition method, an information code acquisition device, and an information code acquisition program that can appropriately acquire an information code formed on an object regardless of the surface color of the object. [Means for solving the problem]
[0005] An information code acquisition method according to a first aspect of the present disclosure is an information code acquisition method for acquiring an information code formed on a surface of an object with color differences that are indistinguishable to the human eye, and includes a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object, a code determination step of determining whether or not the object contains the information code based on the spectroscopic images of each of the spectroscopic wavelengths, and an output step of outputting the analyzed information code.
[0006] An information code acquisition device of a second aspect of the present disclosure is an information code acquisition device that acquires an information code formed on the surface of an object with color differences that are indistinguishable to the human eye, and includes a spectral image acquisition unit that acquires spectral images of a plurality of spectral wavelengths of the object, a code determination unit that determines whether the object contains the information code based on the spectral images, an analysis unit that analyzes the information code, and an output unit that analyzes and outputs the information code.
[0007] An information code acquisition program of a third aspect of the present disclosure is an information code acquisition program that can be read and executed by a computer, and acquires an information code formed on the surface of an object with color differences that are indistinguishable to the human eye, and causes the computer to perform a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object, a code determination step of determining whether the object contains the information code based on the spectroscopic images of each of the spectroscopic wavelengths, and an output step of analyzing and outputting the information code. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a schematic diagram showing an example of an information code acquisition device according to the first embodiment; [Diagram 2] FIG. 13 is a diagram showing an example of an object having an information code. [Diagram 3] 4 is a flowchart showing an information code acquisition method according to the first embodiment. [Figure 4] 10 is a flowchart showing an information code acquisition method according to a second embodiment. [Diagram 5] 5 is a flowchart showing the fine search process of FIG. 4. [Figure 6] 13 is a flowchart showing an information code acquisition method according to a third embodiment. [Figure 7] 7 is a flowchart showing the fine search process of FIG. 6. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] [First embodiment] Hereinafter, an information code obtaining device according to a first embodiment of the present disclosure will be described. FIG. 1 is a schematic diagram showing an example of an information code obtaining device according to the present embodiment. The information code acquisition device 1 is a device that analyzes an information code (such as a QR code (registered trademark) or a barcode) formed on an object W. Here, in this embodiment, spectroscopic images for a plurality of spectroscopic wavelengths of the object W are captured, and a spectroscopic image including an information code is determined from these spectroscopic images, and the information code is analyzed. Therefore, even if an information code with a color difference that cannot be recognized by the human eye is formed on the surface color (base color) of a product as the object W, the information code can be read by analyzing a spectral image of a specific spectral wavelength. In other words, by using the information code acquiring device 1 of this embodiment, it is not necessary to form an information code that impairs the design of the object and is recognizable by the human eye, and the degree of freedom in product design can be improved. Such an information code obtaining device 1 will be described in detail below.
[0010] As shown in FIG. 1, the information code obtaining device 1 includes an imaging section 10, an information processing section 20, and the like. Here, the information code obtaining device 1 may be configured such that the imaging unit 10 and the information processing unit 20 are separate entities and are communicatively connected by wired or wireless connection. In this case, for example, a portable device such as a smartphone or tablet terminal may be configured as the imaging unit 10, and a server device that communicates with the portable device via the Internet may be configured as the information processing unit 20. The information code acquiring device 1 may be configured such that the imaging unit 10 and the information processing unit 20 are incorporated into one device. In this case, a smartphone or a tablet terminal equipped with the imaging unit 10 having a spectroscopic camera 11 can be exemplified.
[0011] [Configuration of imaging unit 10] The imaging unit 10 is a device that captures a spectroscopic image of an object W, and includes a spectroscopic camera 11 and a camera control unit 12, as shown in FIG. The spectroscopic camera 11 is composed of a spectroscopic element 111, an imaging element 112, and an optical lens not shown. Image light incident from the object W through the optical lens enters the spectroscopic element 111, light of a predetermined spectral wavelength is transmitted through the spectroscopic element 111, and an image is formed and captured by the imaging element 112. The spectroscopic element 111 is an element capable of switching the spectral wavelength of light transmitted toward the image sensor 13, and may be, for example, a wavelength-variable Fabry-Perot etalon. The Fabry-Perot etalon is an element in which a pair of mirrors are arranged opposite each other, and incident light is multiple-reflected between these mirrors, and light of a predetermined spectral wavelength that is reinforced by interference is transmitted. In such a Fabry-Perot etalon, the spectral wavelength can be switched by changing the gap between the mirrors with an actuator element such as an electrostatic actuator. The spectroscopic element 111 is not limited to the above-mentioned Fabry-Perot etalon, and may be, for example, an AOTF (Acousto-Optic Tunable Filter) or an LCTF (Liquid crystal tunable filter).
[0012] The imaging element 112 receives light having a center of a desired spectral wavelength dispersed by the spectroscopic element 111, and captures a spectral image. As the imaging element 13, a general image sensor such as a charge-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) can be used.
[0013] The camera control unit 12 is configured to include, for example, a spectroscopic control circuit 121 that controls the spectroscopic element 111, an imaging control circuit 122 that controls the imaging element 112, a microcomputer 123 that controls the overall operation of the spectroscopic camera 11, and a camera memory 124 that stores various data. The spectroscopic control circuit 121 applies a predetermined drive voltage to the spectroscopic element 111 under the control of the microcomputer 123 to switch the spectroscopic wavelengths to be separated by the spectroscopic element 111 . The imaging control circuit 122 drives the imaging element 112 under the control of the microcomputer 123, and outputs to the microcomputer 123 an image signal according to the amount of light received by each pixel. The microcomputer 123 controls the spectroscopic control circuit 121 to switch the spectroscopic wavelength of the spectroscopic element 111, and controls the imaging control circuit 122 to acquire an image signal from the imaging element 112. Then, based on the image signal input from the imaging element 112, a spectroscopic image (image data) is generated. The camera memory 124 records various data for controlling the spectroscopic element 111 etc. For example, the camera memory 124 records, as drive table data, control signals (drive voltage values) to be output to the spectroscopic element 111 for each spectral wavelength of light to be dispersed by the spectroscopic element 111 etc. In addition, when the imaging unit 10 and the information processing unit 20 are integrated into one device such as a smartphone, the camera memory 124 may not be provided. In this case, various data such as the drive table data may be recorded in the storage unit 23 described later.
[0014] [Configuration of the information processing unit 20] As described above, the information processing unit 20 may be configured by a computer such as a server device capable of communicating with the imaging unit 10, or may be configured by a computer such as a smartphone or tablet terminal that is configured integrally with the imaging unit 10. As shown in Fig. 1, the information processing unit 20 at least includes a display unit 21, a communication unit 22, a storage unit 23, and one or more processors 24. Although not shown in the figure, the information processing unit 20 may be provided with an input operation unit configured by a keyboard, a touch panel, or the like, and an audio input / output unit such as a speaker or a microphone, and the like.
[0015] The display unit 21 is a device that displays information, and for example, displays a captured image of an object W on which an information code C is formed, or displays an analysis result of the information code. The communication unit 22 communicates with the imaging unit 10, and communicates with external devices via communication means such as the Internet.
[0016] The storage unit 23 is an information storage device configured with a memory, a hard disk, and the like. The information stored in the memory unit 23 includes various programs including an information code acquisition program for acquiring and analyzing an information code by the information processing unit 20, and various data used when executing the various programs. The various data include, for example, spectroscopic image data captured by the imaging unit 10. As described above, the storage unit 23 may store drive table data for controlling the spectroscopic element 111.
[0017] The processor 24 is composed of, for example, an arithmetic circuit such as a CPU (Central Processing Unit) and a memory circuit, and functions as a spectroscopic image acquisition unit 241, a code determination unit 242, an analysis unit 243, and an output unit 244 by reading and executing the information code acquisition program stored in the memory unit 23.
[0018] The spectral image acquiring unit 241 instructs the imaging unit 10 to acquire a spectral image of a predetermined spectral wavelength, and receives the spectral image from the imaging unit 10. As shown in FIG. 1, the spectral image acquiring unit 241 functions as a wavelength shift setting unit 241A and an imaging command unit 241B.
[0019] The wavelength shift setting unit 241A sets the spectral wavelength of the spectral image captured by the imaging unit . Here, in this embodiment, when the spectral image acquisition unit 241 acquires a spectral image of one spectral wavelength (first spectral wavelength), it inputs the spectral image to the code determination unit 242 described later, and causes the code determination unit 242 to determine whether or not an information code is included. Then, when it is determined that an information code is included, acquisition of spectral images of other spectral wavelengths for the object W is not performed. In other words, acquisition of the spectral images is terminated. On the other hand, when it is determined by the code determination unit 242 that an information code is not included, the spectral image acquisition unit 241 switches the spectral wavelength of the spectral image captured by the imaging unit 10 from the first spectral wavelength to a second spectral wavelength different from the first spectral wavelength, and causes the spectral image to be captured. At this time, the wavelength shift setting unit 241A sets a wavelength interval (wavelength shift amount) when switching from the first spectral wavelength to the second spectral wavelength.
[0020] In the present embodiment, the spectral image acquisition unit 241 gradually decreases or increases the spectral wavelength for a preset measurement wavelength range. For example, the spectral wavelength may be gradually decreased from a predetermined longest wavelength included in the measurement wavelength range by a wavelength shift amount set by the wavelength shift setting unit 241A, or may be gradually increased from a predetermined shortest wavelength included in the measurement wavelength range by a wavelength shift amount set by the wavelength shift setting unit 241A. Then, when the spectral wavelength is sequentially switched for the measurement wavelength range and a round of switching of the spectral wavelengths for the measurement wavelength range is performed, if the code determination unit 242 determines that none of the spectral images includes an information code, the wavelength shift setting unit 241A decreases the wavelength shift amount when setting the next spectral wavelength. That is, after capturing a spectral image by switching the spectral wavelength for the measurement wavelength range at a first wavelength interval, the spectral wavelength is again switched for the measurement wavelength range at a second wavelength interval shorter than the first wavelength interval to capture a spectral image. In the present embodiment, a process of switching the spectral wavelengths in a given wavelength range, for example, a process of switching the spectral wavelengths from the longest wavelength to the shortest wavelength, is regarded as one scan, and will be described below. In addition, the amount of reduction in the wavelength shift amount in this embodiment is not particularly limited, and the wavelength shift amount may be reduced by a preset value or by a preset ratio each time the measurement wavelength range is scanned.
[0021] The imaging command unit 241B sets the spectral wavelength of the spectral image to be captured by the imaging unit 10 based on the amount of wavelength shift set by the wavelength shift setting unit 241A, and outputs an imaging command signal to the imaging unit 10 to capture the spectral image.
[0022] The code determination unit 242 determines whether or not the spectroscopic image acquired by the spectroscopic image acquisition unit 241 includes an information code. The code determination unit 242 may determine the information code by, for example, storing determination criteria for each type of information code in the storage unit 23 and determining whether the captured image satisfies the determination criteria.
[0023] The analysis unit 243 analyzes the information code determined by the code determination unit 242. A publicly known technique can be used as a method for analyzing each information code, and a description thereof will be omitted here. The output unit 244 causes the display unit 21 to display the content of the information code analyzed by the analysis unit 243 .
[0024] [How to obtain information code] Next, an information code obtaining method in the information code obtaining device 1 of this embodiment will be described. The information code acquisition device 1 of this embodiment is capable of reading even information codes that have a very small color difference from the surface color of the object W and cannot be distinguished by the human eye, and of course, it is also possible to read information codes that have a color difference that is sufficiently large compared to the surface color. FIG. 2 is a diagram showing an example of an object W having an information code. For example, in the example of object W shown in FIG. 2, an information code is formed in area A with a color difference that cannot be recognized by the human eye from the surface color (base color) of object W. The information code C formed in area A in FIG. 2 has an extremely small color difference from the surface color (base color) of object W, making it difficult for the human eye to distinguish it. Therefore, the information code C of object W is inconspicuous, and the design of object W is not marred by the information code C. Furthermore, by using such an information code C, it is possible to embed information in object W while improving the degree of freedom in the design of object W. On the other hand, in an image captured by a normal RGB camera, the brightness difference between adjacent pixels of such an information code C is small, making it difficult to determine the edge (boundary) of the information code C by edge detection processing. Therefore, the information code cannot be properly read in an image captured by an RGB camera. In contrast, in this embodiment, the information code is read by the following method.
[0025] FIG. 3 is a flowchart showing a method for obtaining an information code. In this embodiment, when a user performs an input operation to obtain an information code, the wavelength shift setting unit 241A of the spectral image acquisition unit 241 initializes the number of sweeps i and the number of measurements j (step S1). Here, the number of sweeps i is a variable indicating the number of scans for the measurement wavelength range, and the number of measurements j is a variable indicating the number of measurements in one scan. In this embodiment, the spectral wavelength λ for i=1, j=1 is j That is, the initial spectroscopic wavelength λ1 is preset and is the longest wavelength in the measurement wavelength range. As will be described later in detail, from j=2 onwards, the spectroscopic wavelength λ j varies with the number of sweeps. Also, each wavelength shift amount ΔΛ i (i=1,2,3,...) is preset, but as the sweep number i increases, the absolute value of the wavelength shift |ΔΛ i In this embodiment, in order to gradually decrease the spectral wavelength from the maximum wavelength in the measurement wavelength range, the wavelength shift amount ΔΛ1 is set to a negative value.
[0026] Next, the imaging command unit 241B outputs the set spectral wavelength λ j and outputs an imaging command to the imaging unit 10 to capture a spectral image at a spectral wavelength λ j In this embodiment, as described above, the first measurement is performed when i=1, j=1, and the spectral wavelength λ1 is the longest wavelength in the preset measurement wavelength range. In step S2, the microcomputer 123 of the imaging unit 10 that has received the imaging command controls the spectral control circuit 121 and the imaging control circuit 122 to capture a spectral image corresponding to the spectral wavelength λ. That is, the spectroscopic control circuit 121 reads a drive voltage corresponding to the spectroscopic wavelength λ from the camera memory 124 and applies the drive voltage to the spectroscopic element 111, and the light having the spectroscopic wavelength λ is dispersed from the spectroscopic element 111 and enters the imaging element 112. In this embodiment, the drive table data is stored in the camera memory 124, but as described above, the drive table data may be stored in the storage unit 23. In this case, the imaging command unit 241B may output a drive voltage value corresponding to the spectroscopic wavelength λ to the imaging unit 10. As a result, the spectroscopic control circuit 121 applies the commanded drive voltage to the spectroscopic element 111. Furthermore, the imaging control circuit 122 controls the exposure of the imaging element 112, and forms image data from a light reception signal according to the amount of light received at each pixel. At this time, the microcomputer 123 may control an optical lens (not shown) to perform a focus adjustment process for adjusting the focus of the object W.
[0027] Next, the code determination unit 242 determines whether or not an information code is included in the spectroscopic image obtained in step S2 (step S3: code determination step). For example, the code determination unit 242 detects edges contained in the image based on the luminance difference between adjacent pixels in the spectral image, and determines whether or not the shape of the detected edge satisfies the determination criteria for the information code. The determination criteria for each type of information code may be stored in advance in the storage unit 23. For example, in the case of a QR code, if three rectangular symbol marks and an alignment pattern can be read accurately, it is determined that the determination criteria are met. In addition, in the case of a barcode, the line widths (number of modules) of the black and white lines are read, and it is determined whether or not the boundaries (edges) of these black and white lines can be read.
[0028] If the result of the determination in step S3 is NO, that is, if the information code cannot be detected, the wavelength shift setting unit 241A of the spectral image acquisition unit 241 sets the spectral wavelength λ j Reconfigure. Specifically, the wavelength shift setting unit 241A adds 1 to the measurement number j (step S4) and sets the spectral wavelength λ of the next spectral image to be captured. j Let λ j = λ j-1 +ΔΛ i (Step S5), and the provisionally calculated λ j It is determined whether or not the measured wavelength range is within the measurement wavelength range (step S6).
[0029] If the answer to step S6 is YES, that is, if the newly calculated spectral wavelength λ j If the newly set spectroscopic wavelength λ is within the measurement wavelength range, the process returns to step S2. j A spectroscopic image is captured at the wavelength of the incident light, and the presence or absence of an information code is determined. On the other hand, if the result of step S6 is NO, that is, if the newly calculated spectral wavelength λ j If the wavelength is outside the measurement wavelength range, the number of sweeps i is incremented by 1 (step S7). MAX If the result of the determination in step S8 is NO, the measurement number j is initialized (j=1) (step S9), and the process returns to step S2. That is, in this embodiment, the spectral wavelength λ newly calculated in step S5 j is outside the measurement wavelength range, the wavelength is returned to the initial spectral wavelength λ1, which is the longest wavelength in the measurement wavelength range, and the measurement wavelength range is scanned again. At this time, the wavelength shift amount ΔΛ is compared with the previous scan of the measurement wavelength range. i is set to a small value, and a more precise search for the information code is performed. That is, in this embodiment, when an information code is not included in any of the spectroscopic images obtained by switching the spectroscopic wavelengths in a round (for each scan) for the measurement wavelength range, the spectroscopic wavelength λ is set to a small value so that a more precise search is performed. j Steps S1, S2, and S4 to S8 correspond to the spectroscopic image acquisition steps of the present disclosure.
[0030] If the answer to step S8 is YES, the spectral wavelength λ j Even if the spectral image is acquired by dividing the area into smaller sections, this means that the information code was not found. In this case, the output unit 244 outputs output information to the effect that the information code was not found and ends the process. For example, the fact that the information code was not found may be output to the display unit 21 as a message or image, or may be output by voice.
[0031] If the result of the determination in step S3 is YES, that is, if it is determined that the spectroscopic image contains an information code, the analysis unit 243 analyzes the information code (step S10). For example, an analysis method for each information code is stored in the memory unit 23, and the analysis unit 243 performs the analysis method corresponding to the information code. For example, in the case of a QR code, white or black dots are read in a predetermined direction relative to the positions of the symbol marks or alignment marks, and information such as a URL is analyzed based on the order of the dots. In addition, in the case of a barcode, information is analyzed based on the line width of each black and white bar. Note that QR codes and barcodes are information codes that are widely used in the general public, and applications that analyze them are generally available. The analysis unit 243 may analyze the information code using such an application. Furthermore, the analysis unit 243 may transmit the information code to an external server device dedicated to analyzing the information code via the Internet or the like, and receive the analysis result from the external server device.
[0032] Then, when the analysis of the information code by the analysis unit 243 is successful (step S11: YES), the output unit 244 causes the display unit 21 to display the analysis result (step S12: output step). On the other hand, if the analysis unit 243 cannot analyze the information code, that is, if an error is returned from the analysis unit 243 (step S11: NO), the flow proceeds to step S4. In other words, if the analysis by the analysis unit 243 fails, it is possible that the correct information code has not been detected, and other spectral wavelengths λ j The information code is then determined again using the spectral image.
[0033] [Effects of this embodiment] The information code acquisition device 1 of this embodiment includes an imaging unit 10 and an information processing unit 20, and the information processing unit 20 includes a storage unit 23 and a processor 24. The processor 24 reads and executes an information code acquisition program stored in the storage unit 23, thereby functioning as a spectral image acquisition unit 241, a code determination unit 242, an analysis unit 243, and an output unit 244. The spectral image acquisition unit 241 acquires a plurality of spectral wavelengths λ jThe code determination unit 242 determines whether or not an information code is included in the object W based on the spectral image. The output unit 244 outputs the information code analyzed by the analysis unit 243. In this embodiment, the spectral image acquisition unit 241 acquires a plurality of spectral wavelengths λ j The method includes a spectroscopic image acquisition step (steps S2 to S3, steps S4 to S8) for acquiring a spectroscopic image of the object W, a code determination step (step S3) for the code determination unit 242 to determine whether or not the object W contains an information code based on the spectroscopic image, and an output step (step S12) for the output unit 244 to output the analyzed information code.
[0034] In this embodiment, even if an information code with color differences that cannot be distinguished by the human eye is formed on the object W, the information code included in the object W is determined based on each of the spectral images for a plurality of spectral wavelengths. This makes it possible to determine even an information code formed on the surface color of the object W with small color differences that cannot be distinguished by the human eye. That is, it is difficult to determine an information code formed with a small color difference in the surface color of the object W that cannot be distinguished by the human eye, for example, based on an image captured by an RGB camera. However, if there is a slight color difference between the background color of the object W and the color of the information code, a difference occurs in the characteristic wavelength, such as the absorption wavelength. Therefore, when determining an information code from spectral images for multiple spectral wavelengths as in this embodiment, if there is a slight color difference between the background color of the object W and the color of the information code, the characteristic wavelengths are different, and it is possible to appropriately determine the information code using the corresponding spectral images. In addition, in this embodiment, it is possible to properly determine whether or not an information code is included in an object W, not only in the case of a product in which an information code is formed on the object W using a pigment, dye, or the like, but also in the case of an image displayed on a display, etc. In addition, when the information code acquisition device 1 or the information code acquisition method of the present embodiment is used, even if an information code is formed with a color difference that cannot be distinguished by the human eye from the surface color (base color) of the object W, the information code can be determined and analyzed. Therefore, it is possible to form an information code on the object W without impairing the design of the object W.
[0035] In this embodiment, the code determination unit 242 detects one spectral wavelength λ j A code determination step (step S3) is performed every time a spectroscopic image is acquired. If it is determined that the spectroscopic image contains an information code, the spectroscopic image step of acquiring the subsequent spectroscopic images is terminated. As a result, after acquiring a spectroscopic image capable of analyzing the information code, it is not necessary to acquire another spectroscopic image, and all spectroscopic wavelengths λ j Therefore, it is not necessary to acquire a spectroscopic image of the information code, and the time required for determining and analyzing the information code can be reduced.
[0036] In this embodiment, in the chord determination step of step S3, the chord determination unit 242 determines the first spectral wavelength (spectral wavelength λ j-1 ), in the next step S2, a spectral image acquisition step, the first spectral wavelength (spectral wavelength λ j-1 ) at a second spectral wavelength (spectral wavelength λ j = λ j-1 +ΔΛ i ) to acquire a spectral image.
[0037] In this way, by sequentially switching the spectral wavelength λj to acquire spectral images and determining whether or not an information code is present, it is possible to search for an information code without acquiring all of the spectral images, thereby reducing the time required for determining and analyzing the information code.
[0038] In this embodiment, the spectroscopic image acquisition unit 241 calculates a predetermined wavelength shift amount ΔΛ for a preset measurement wavelength range. i(first wavelength interval) to acquire a spectral image. Then, in the code determination step of step S3, a cycle of spectral wavelengths λ 1 for the measurement wavelength range is acquired. j If it is determined that the information code is not included in any of the spectral images obtained by switching (one scan), in step S7, 1 is added to the sweep number i. That is, in the next scan, the wavelength shift amount ΔΛ i (First wavelength interval) is smaller wavelength shift amount ΔΛ i+1 (second wavelength interval) to acquire a spectral image.
[0039] That is, in this embodiment, each time scanning of the measurement wavelength range is completed, the spectral wavelength λ j The wavelength shift amount ΔΛ when switching i This makes it possible to obtain a spectral image with finer wavelength intervals, and improves the efficiency of searching for a spectral image containing an information code.
[0040] In this embodiment, in step S10, the analysis unit 243 analyzes the information code. If the analysis fails (if an error is returned), it is determined that the information code is not included, and the process returns to step S4, where the next spectral wavelength λ i Spectral images are acquired for the target object. Even if it is determined that there is an information code, if the information code cannot be analyzed, there is a possibility that the appropriate information code is not included in the spectral image. In contrast, in this embodiment, if an error occurs in the analysis of the information code, the spectral wavelength can be changed and the spectral image can be acquired again to determine and analyze the information code.
[0041] [Second embodiment] In the above-described first embodiment, an example has been shown in which the amount of wavelength shift is gradually decreased each time one scan in the measurement wavelength range is completed, thereby making it possible to perform a more precise determination of the information code. In contrast, in this embodiment, when a single scan of the measurement wavelength range is performed, if an information code is not determined, but it is determined that the information code contains a characteristic shape similar to its characteristics, a fine search is performed centered on that position, which differs from the first embodiment described above. The basic configuration of this embodiment is similar to that of the first embodiment shown in Fig. 1, and therefore a description thereof will be omitted here. In this embodiment, the operation of the spectroscopic image acquisition unit 241, which functions by the processor 24 reading and executing an information code acquisition program, differs from that of the first embodiment, and therefore the operation of the spectroscopic image acquisition unit 241 will be mainly described.
[0042] FIG. 4 is a flowchart showing the information code acquisition method according to the second embodiment, and FIG. 5 is a flowchart showing the fine search process S20 in FIG. In this embodiment, when a user performs an input operation to obtain an information code, the wavelength shift setting unit 241A of the spectroscopic image obtaining unit 241 initializes the number of sweeps i and the number of measurements j, similarly to step S1 in the first embodiment.
[0043] Next, the imaging command unit 241B executes step S2 in the same manner as in the first embodiment to obtain the spectral wavelength λ j The code determination unit 242 determines whether or not the spectral image includes an information code, similar to step S3 in the first embodiment. If the determination in step S3 is YES, the process proceeds to step S10. In this embodiment, if it is determined in step S3 that the spectroscopic image does not include an information code (step S3: NO), the code determination unit 242 further determines whether the spectroscopic image includes a characteristic shape similar to the characteristics of the information code (step S21). The characteristic shape similar to the information code characteristic is, for example, a case where the information code characteristic is displayed in a blurred manner. As described above, the code determination unit 242 detects edges based on the luminance difference between adjacent pixels in a spectral image. However, if the luminance difference is small, the edge portion cannot be clearly detected, and the information code cannot be properly generated. However, it is possible to determine a characteristic shape similar to the information code characteristic. For example, a QR code includes three rectangular symbol marks and an alignment pattern. Even if the edge portions of these symbol marks and alignment patterns cannot be clearly determined, a portion where a luminance change appears across multiple pixels can be determined as a candidate portion. Then, when the positional relationship of these candidate portions coincides with the positional relationship of the symbol mark and the alignment mark, the code determination unit 242 regards these candidate portions as characteristic shapes.
[0044] Here, if the result of the determination in step S21 is NO, that is, if it is determined that the spectral image does not include a characteristic shape as described above, the same process as in the first embodiment is carried out. That is, steps S4 to S9 are performed, and each time one scan of the measurement wavelength range is performed, the spectral wavelength λ j The wavelength shift amount ΔΛ is the switching width of i is decreased to perform a finer search for the information code.
[0045] On the other hand, if the determination in step S21 is YES, that is, if it is determined that the spectral image contains a characteristic shape as described above, a fine search process S20 is performed. In the fine search process S20, as shown in FIG. 5, the wavelength shift setting unit 241A sets the spectral wavelength λ of the spectral image. j is the reference wavelength λ B and the reference wavelength λ B A predetermined wavelength range (first wavelength region Z) centered on is set as the next search range (step S22). In addition, the sweep number i and the measurement number j at this time are referred to as the return sweep number i. R , return measurement time j R and stores it in the storage unit 23. The first wavelength range Z is a range smaller than the measurement wavelength range. For example, the first wavelength range Z is set to λ B -K ΔΛ i ≦Z≦λ B +K ΔΛ i Alternatively, set λ as the unsearched λ B Increase the range below λ B -2K·ΔΛ i ≦Z≦λ B +K ΔΛ i etc.
[0046] Then, the wavelength shift setting unit 241A adds 1 to the sweep number i, initializes the measurement number j (j=1), and sets a new spectral wavelength λ j The initial spectral wavelength λ1 = (λ B +K ΔΛ i―1 ) (step S23). After this, similarly to step S2, the imaging command unit 241B issues the set spectral wavelength λ j Then, the image capturing unit 10 is commanded to capture a spectroscopic image by switching to the spectroscopic imaging mode and acquiring the spectroscopic image (step S24). Similarly to step S3, the code determination unit 242 determines whether or not an information code is included in the spectroscopic image obtained in step S24 (step S25).
[0047] If it is determined in step S25 that an information code is included (step S25: YES), the process proceeds to step S10, where the information code is analyzed. In step S25, if it is determined that the information code is not included (step S25: NO), similarly to steps S4 to S6, the wavelength shift setting unit 241A adds 1 to the measurement number j (step S26) and sets the spectral wavelength λ j Let λ j = λ j-1 +ΔΛ i (step S27), and the provisionally calculated λ j is within the first wavelength range Z (step S28).
[0048] If the determination in step S28 is YES, that is, if the newly calculated spectral wavelength λ j If it is within the first wavelength range Z, return to step S24. On the other hand, if the result of step S28 is NO, that is, if the newly calculated spectral wavelength λ j If the number of sweeps i is outside the first wavelength region Z, 1 is added to the number of sweeps i (step S29). MAX If the result of the determination in step S30 is NO, the measurement number j is initialized (j=1) (step S31), and the process returns to step S24. That is, in the present embodiment, the same process as in the first embodiment is performed on the first wavelength range Z. Therefore, compared to the first embodiment, a search for an information code is performed in a narrower range, and the time required for searching for the information code can be shortened. If the answer to step S30 is YES, the return sweep count stored in the memory unit 23 is R , Measurement time for recovery j R Read, i=i R , j=j R +1 (step S32) to obtain a new spectral wavelength λ j (step S33), and then the process proceeds to step S6.
[0049] [Effects of this embodiment] In this embodiment, in the code determination step, it is determined whether or not the spectral image includes an information code, and if the information code is not included, it is further determined in step S21 whether or not the information code includes a feature shape similar to the feature shape. If it is determined that the feature shape is included, in step S22, the spectral wavelength of the spectral image determined to include the feature shape is set to the reference wavelength λ B As the reference wavelength λ B In step S23, the number of sweeps is incremented by 1 to obtain a wavelength shift amount ΔΛ ito a smaller value, and in step S24, the spectral wavelength λj is switched by the wavelength shift amount ΔΛi for the first wavelength range Z to obtain a spectral image.
[0050] That is, in this embodiment, the first scan detects a spectral wavelength (reference wavelength λ ) close to the characteristic wavelength of the information code. B ) is acquired, its reference wavelength λ B The wavelength range scanned with the center at is narrowed down to the first wavelength range Z. This makes it possible to search for a spectral image containing an information code more quickly than when spectral images are acquired by sequentially switching the spectral wavelengths for all measurement wavelength ranges.
[0051] [Third embodiment] In the above-described first embodiment, an example has been shown in which the amount of wavelength shift is gradually decreased each time one scan in the measurement wavelength range is completed, thereby making it possible to perform a more precise determination of the information code. In contrast, this embodiment differs from the first embodiment in that the surface color of the object W is first determined, and the wavelength range for performing the fine search is set based on the determined surface color. The basic configuration of this embodiment is similar to that of the first embodiment shown in Fig. 1, and therefore a description thereof will be omitted here. In this embodiment, the operation of the spectroscopic image acquisition unit 241, which functions by the processor 24 reading and executing an information code acquisition program, differs from that of the first embodiment, and therefore the operation of the spectroscopic image acquisition unit 241 will be mainly described.
[0052] FIG. 6 is a flowchart showing an information code acquisition method in the third embodiment, and FIG. 7 is a flowchart showing the fine search process of FIG. In this embodiment, when a user performs an input operation to obtain an information code, the wavelength shift setting unit 241A of the spectroscopic image obtaining unit 241 initializes the number of sweeps i and the number of measurements j, similarly to step S1 in the first embodiment.
[0053] Next, the imaging command unit 241B executes step S2 in the same manner as in the first embodiment to obtain the spectral wavelength λ jThe code determination unit 242 determines whether or not the spectral image includes an information code, similarly to step S3 in the first embodiment. If the determination in step S3 is YES, the process proceeds to step S10, similarly to the first embodiment.
[0054] If the result of the determination in step S3 is NO, the spectral image acquisition unit 241 performs the processes in steps S4 to S6, and the wavelength shift setting unit 241A adds 1 to the measurement number j and sets the next spectral wavelength λ j λ j = λ j-1 +ΔΛ i The provisionally calculated λ j It is determined whether or not the measured wavelength range is within the measurement wavelength range.
[0055] Here, the wavelength shift amount ΔΛ1 at sweep number i=1 corresponds to the first wavelength interval of the present disclosure, and the step of obtaining a spectral image by scanning at sweep number i=1 (the loop of steps S2 to S6 until NO is determined in step S6) corresponds to the first spectral image obtaining step of the present disclosure. This embodiment is an information code obtaining device that is particularly effective when the color difference between the background color of the object W and the color of the information code is a small value that cannot be distinguished by the human eye, and when NO is determined in step S6 and obtaining a spectral image for one scan is completed, a fine search process S40 based on the surface color (background color) of the object W is performed.
[0056] In the fine search process S40, as shown in FIG. 7, the spectral image acquisition unit 241 calculates the spectral reflectance of the surface color (base color) of the object W based on the spectral images of each spectral wavelength obtained in the first scan of sweep number i=1 (step S41). Then, the spectral image acquisition unit 241 calculates the characteristic wavelength λ of the background color from the spectral reflectance calculated in step S41. C (absorption wavelength) is detected (step S42: surface color determination step). After that, the wavelength shift setting unit 241A sets the characteristic wavelength λ C A predetermined wavelength range (second wavelength range Y) centered on is set as the next search range (step S43). The second wavelength range Y is a range smaller than the measurement wavelength range. For example, the second wavelength range Y is set to λ C -K·ΔΛ1≦Z≦λ C Set it as +K·ΔΛ1.
[0057] Then, the wavelength shift setting unit 241A adds 1 to the sweep number i, initializes the measurement number j (j=1), and sets a new spectral wavelength λ j The longest wavelength (λ C +K·ΔΛ1) (step S44). After this, similarly to step S2, the imaging command unit 241B issues the set spectral wavelength λ j Then, the image capturing unit 10 is commanded to capture a spectroscopic image by switching to the spectroscopic image capturing mode and acquiring the spectroscopic image (step S45). Moreover, similarly to step S3, the code determination unit 242 determines whether or not an information code is included in the spectroscopic image obtained in step S35 (step S46). In step S46, if it is determined that an information code is included (step S46: YES), the process proceeds to step S10, where the information code is analyzed. In step S46, if it is determined that the information code is not included (step S46: NO), similarly to steps S4 to S6, the wavelength shift setting unit 241A adds 1 to the measurement number j (step S47) and sets the spectral wavelength λ of the next spectral image to be captured. j Let λ j = λ j-1 +ΔΛ i (step S48), and the provisionally calculated λ j is within the second wavelength range Y (step S49).
[0058] If the determination in step S49 is YES, that is, if the newly calculated spectral wavelength λ j If is within the second wavelength range Y, return to step S45. On the other hand, if the result of the determination in step S49 is NO, that is, if the newly calculated spectral wavelength λ jis outside the second wavelength range Y, 1 is added to the sweep number i (step S50), and the sweep number i is set to a preset upper limit value i MAX If the result of the determination in step S51 is NO, the measurement number j is initialized (j=1) (step S52), and the process returns to step S45. That is, in this embodiment, the same process as in the first embodiment is performed on the second wavelength range Y based on the surface color of the object W. Therefore, compared to the first embodiment, a search for an information code is performed in a narrower range, and the time required for searching for the information code can be shortened. If the determination in step S51 is YES, the characteristic wavelength λ C It is then determined whether there are any other entries (step S53). In step S53, the determination is YES (other characteristic wavelength λ C If there is a characteristic wavelength λ C If the determination in step S53 is NO, the output unit 244 outputs output information indicating that the information code was not found, and the process ends.
[0059] [Effects of this embodiment] In this embodiment, in the first scan, the spectral wavelength λ is set at the first wavelength interval (initial wavelength shift amount ΔΛ1). j If a spectral image including the information code cannot be obtained by switching the spectral reflectance of the surface color (base color) of the object W based on the spectral image obtained by the first scan, the characteristic wavelength λ of the base color is calculated from the spectral reflectance. C (absorption wavelength) is detected, and the characteristic wavelength λ C In step S44, the number of sweeps is incremented by 1 to obtain a wavelength shift amount ΔΛ i to a smaller value, and in step S35, the updated wavelength shift amount ΔΛ for the second wavelength range Y is i and the spectral wavelength λ j to acquire a spectroscopic image.
[0060] In this embodiment, when an information code having a large color difference with respect to the surface color of the object W is formed, a spectral image in which the information code can be determined is obtained by the first scan. On the other hand, when an information code having a small color difference with respect to the surface color of the object W is formed and a spectral image including the information code cannot be found by the first scan, the characteristic wavelength λ of the surface color of the object W is obtained. C This narrows down the spectral images to a second wavelength range Y centered on the second wavelength range Y. This makes it possible to search for a spectral image containing an information code more quickly than when spectral images are acquired by sequentially switching the spectral wavelengths for all measurement wavelength ranges.
[0061] [Variations] The present invention is not limited to the above-described embodiments, and the present invention includes modifications, improvements, and configurations obtained by appropriately combining the embodiments within the scope that can achieve the object of the present invention.
[0062] (Variation 1) In the first embodiment, the longest wavelength in the measurement wavelength range is set as the initial spectroscopic wavelength λ1, and the wavelength shift amount ΔΛ i was set as a negative value, and the spectral wavelength was gradually decreased for each measurement in each scan of the measurement wavelength range. In contrast, the shortest wavelength in the measurement wavelength range is set as the initial spectral wavelength λ1, and the wavelength shift amount ΔΛ i may be a positive value, and the spectral wavelength may be gradually increased for each scan of the measurement wavelength range. j may be gradually increased.
[0063] (Variation 2) In the first embodiment, the wavelength shift amount ΔΛ i Although it has been assumed that is a negative value, it may have a different sign (positive or negative) depending on the sweep number i. That is, in the first embodiment, in the measurement wavelength range, the initial spectral wavelength λ1, which is the maximum wavelength, to the spectral wavelength λ jwas gradually decreased, and when it fell below the measurement wavelength range, it was returned to the initial spectral wavelength λ1, and the wavelength was gradually decreased by different wavelength shift amounts. On the other hand, when it is determined in step S5 that the wavelength is outside the measurement wavelength range, the spectral wavelength λ j Without initializing, the spectral wavelength λ j In other words, when the spectral wavelength λ1 is the longest wavelength in the measurement wavelength range, the wavelength shift amount ΔΛ is i is set to a negative value, and the wavelength shift amount ΔΛ is set to i is a positive value, and as i increases, |ΔΛ i In addition, when the spectral wavelength λ1 is the shortest wavelength in the measurement wavelength range, the wavelength shift amount ΔΛ is i is a positive value, and when the sweep number i is an even number, the wavelength shift amount ΔΛ i is set to a negative value, and as i increases, |ΔΛ i may be gradually decreased.
[0064] When returning from the shortest wavelength to the longest wavelength in the measurement wavelength range, or when returning from the longest wavelength to the shortest wavelength, the shift amount of the spectral wavelength increases, and the drive time increases. In contrast, by inverting the spectral wavelength from the longest or shortest wavelength as described above, the shift amount of the spectral wavelength can be reduced, and the increase in drive time can be suppressed.
[0065] [Summary of this disclosure] An information code acquisition method according to a first aspect of the present disclosure is an information code acquisition method for acquiring an information code formed on a surface of an object with color differences that are indistinguishable to the human eye, and includes a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object, a code determination step of determining whether or not the object contains the information code based on the spectroscopic images of each of the spectroscopic wavelengths, and an output step of outputting the analyzed information code.
[0066] As a result, even if an information code with color differences that cannot be distinguished by the human eye is formed on an object, the information code contained in the object can be determined based on each of the spectral images for a plurality of spectral wavelengths. In other words, it is possible to determine even an information code formed on the surface color of an object with small color differences that cannot be distinguished by the human eye. In addition, it is possible to accurately determine whether or not an object contains an information code not only for products in which an information code is formed on the object using pigments, dyes, etc., but also for images displayed on a display, etc. Furthermore, with this information code acquisition method, even if an information code is formed with a color difference that cannot be distinguished by the human eye from the surface color (base color) of the object, the information code can be determined and analyzed, making it possible to form an information code on an object without compromising the design of the object.
[0067] In the information code acquisition method of this aspect, it is preferable that the code determination step is performed each time the spectroscopic image of one spectral wavelength is acquired in the spectroscopic image acquisition step, and that the spectroscopic image acquisition step is terminated when it is determined that the information code is included. This eliminates the need to acquire another spectroscopic image after acquiring a spectroscopic image that can analyze the information code, thereby shortening the time required for determining and analyzing the information code.
[0068] In the information code acquisition method of this aspect, if it is determined in the code determination step that the information code is not included in the spectroscopic image of a first spectroscopic wavelength, it is preferable that in the next spectroscopic image acquisition step, the spectroscopic image is acquired by switching to a second spectroscopic wavelength different from the first spectroscopic wavelength. This makes it possible to search for the information code without acquiring all of the spectral images, thereby reducing the time required for determining and analyzing the information code.
[0069] In the information code acquisition method of this aspect, it is preferable that the spectroscopic image acquisition step acquires the spectroscopic images by switching the spectroscopic wavelengths at first wavelength intervals for a predetermined measurement wavelength range, and if it is determined in the code determination step that the information code is not included in any of the spectroscopic images obtained by switching the spectroscopic wavelengths once for the measurement wavelength range, in the next spectroscopic image acquisition step, the spectroscopic wavelengths are switched at second wavelength intervals shorter than the first wavelength interval to acquire the spectroscopic images. In this way, by reducing the wavelength interval when switching the spectral wavelengths each time a full cycle of spectral wavelength switching scanning is performed for the measurement wavelength range, even if a spectral image including an information code cannot be found for the measurement wavelength range at the beginning of the search, a spectral image including an information code can be searched for by a finer scan.
[0070] In the information code acquisition method of this aspect, the code determination step may further determine whether the spectral image includes the information code, and if the information code is not included, whether the spectral image includes a characteristic shape similar to the information code, and the spectral image acquisition step may acquire the spectral image by switching the spectral wavelength at first wavelength intervals for a predetermined measurement wavelength range, and if it is determined in the code determination step that the characteristic shape is included, may acquire the spectral image by switching the spectral wavelength at second wavelength intervals shorter than the first wavelength intervals for a predetermined first wavelength range centered on the spectral wavelength of the spectral image determined to include the characteristic shape. In this case, the range of spectral wavelengths (first wavelength range) of the spectral image that is likely to include the information code is narrowed down by coarse scanning, and the spectral image including the information code can be found by finer scanning. This makes it possible to search for the spectral image including the information code more quickly than when the spectral wavelengths are sequentially switched for all measurement wavelength ranges to obtain the spectral images.
[0071] In the information code acquisition method of this aspect, the spectral image acquisition step includes a first spectral image acquisition step of acquiring a plurality of the spectral images by switching the spectral wavelength at first wavelength intervals for a predetermined measurement wavelength range, a surface color determination step of determining a surface color of the object based on the plurality of the spectral images acquired in the first spectral image acquisition step, and a second spectral image acquisition step of acquiring a plurality of the spectral images by switching the spectral wavelength at second wavelength intervals shorter than the first wavelength intervals for a second wavelength range within the measurement wavelength range that corresponds to the surface color, and the code determination step may be configured to determine the presence or absence of the information code based on the spectral images acquired in the second spectral image acquisition step. In this case, in the first spectral image acquisition step, the range (second wavelength range) of the characteristic wavelength of the surface color of the object that is likely to contain the information code is narrowed down, and then a spectral image containing the information code can be found by finer scanning. This makes it possible to search for a spectral image containing the information code more quickly than when spectral images are acquired by sequentially switching the spectral wavelengths for all measurement wavelength ranges.
[0072] In the information code acquisition method of this aspect, it is preferable that the code determination step inputs the spectroscopic image to an analysis unit that analyzes the information code, and when an error is returned from the analysis unit, determines that the spectroscopic image does not contain the information code. That is, in this embodiment, even if it is determined that an information code is included, if the information code cannot be analyzed, the process returns to searching for the information code again. This makes it possible to appropriately search for an analyzable information code.
[0073] An information code acquisition device of a second aspect of the present disclosure is an information code acquisition device that acquires an information code formed on the surface of an object with color differences that are indistinguishable to the human eye, and includes a spectral image acquisition unit that acquires spectral images of a plurality of spectral wavelengths of the object, a code determination unit that determines whether the object contains the information code based on the spectral images, an analysis unit that analyzes the information code, and an output unit that analyzes and outputs the information code.
[0074] This makes it possible to carry out the information code acquisition method of the first aspect, and even if an information code with a color difference that cannot be distinguished by the human eye is formed on an object, the information code can be searched for. In addition, whether or not an information code is included in an object can be properly determined not only for products on which an information code is formed using a pigment, dye, or the like, but also for images displayed on a display or the like. Furthermore, with this type of information code acquisition device, even if an information code is formed with a color difference that cannot be distinguished by the human eye from the surface color (base color) of the object, the information code can be determined and analyzed, making it possible to form an information code on an object without compromising the design of the object.
[0075] An information code acquisition program of a third aspect of the present disclosure is an information code acquisition program that can be read and executed by a computer, and acquires an information code formed on the surface of an object with color differences that are indistinguishable to the human eye, and causes the computer to perform a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object, a code determination step of determining whether the object contains the information code based on the spectroscopic images of each of the spectroscopic wavelengths, and an output step of analyzing and outputting the information code. This makes it possible to cause the computer to carry out the information code acquisition method of the first aspect. [Explanation of symbols]
[0076] 1...information code acquisition device, 10...imaging unit, 11...spectroscopic camera, 12...camera control unit, 13...imaging element, 20...information processing unit, 21...display unit, 22...communication unit, 23...memory unit, 24...processor, 111...spectroscopic element, 112...imaging element, 121...spectroscopic control circuit, 122...imaging control circuit, 123...microcomputer, 124...camera memory, 241...spectroscopic image acquisition unit, 241A...wavelength shift setting unit, 241B...imaging command unit, 242...code determination unit, 243...analysis unit, 244...output unit, W...object.
Claims
1. 1. A method for acquiring an information code formed on a surface of an object with a color difference that is indistinguishable by the human eye, comprising: a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object; a code determination step of determining whether or not the object includes the information code based on the spectral images of each of the spectral wavelengths; an output step of outputting the analyzed information code; A method for obtaining an information code, including:
2. the code determination step is performed every time the spectral image of one spectral wavelength is acquired in the spectral image acquisition step, and when it is determined that the information code is included, the spectral image acquisition step is terminated. The method for obtaining an information code according to claim 1 .
3. when it is determined in the code determination step that the spectral image of the first spectral wavelength does not include the information code, in the next spectral image acquisition step, the spectral wavelength is switched to a second spectral wavelength different from the first spectral wavelength and the spectral image is acquired. The information code acquisition method according to claim 2.
4. In the spectral image acquisition step, the spectral wavelength is switched at a first wavelength interval for a predetermined measurement wavelength range to acquire the spectral images, and when it is determined in the code determination step that the information code is not included in any of the spectral images acquired by switching the spectral wavelengths once for the measurement wavelength range, in the next spectral image acquisition step, the spectral wavelength is switched at a second wavelength interval shorter than the first wavelength interval to acquire the spectral images. The information code acquisition method according to claim 3.
5. The code determination step further includes determining whether the spectral image includes the information code, and, if the information code is not included, determining whether a characteristic shape similar to the information code is included; the spectral image acquiring step acquires the spectral image by switching the spectral wavelength at first wavelength intervals for a predetermined measurement wavelength range, and when it is determined in the code determining step that the characteristic shape is included, acquires the spectral image by switching the spectral wavelength at second wavelength intervals shorter than the first wavelength intervals for a predetermined first wavelength range centered on the spectral wavelength of the spectral image determined to include the characteristic shape. The information code acquisition method according to claim 3.
6. The spectroscopic image acquisition step includes: a first spectral image acquiring step of acquiring a plurality of the spectral images by switching the spectral wavelength at first wavelength intervals for a predetermined measurement wavelength range; a surface color determination step of determining a surface color of the object based on the plurality of spectral images obtained in the first spectral image acquisition step; a second spectral image acquisition step of acquiring a plurality of the spectral images by switching the spectral wavelength at a second wavelength interval shorter than the first wavelength interval for a second wavelength range corresponding to the surface color within the measurement wavelength range, the code determination step determines whether or not the information code is present based on the spectral image obtained in the second spectral image acquisition step. The method for obtaining an information code according to claim 1 .
7. The code determination step includes inputting the spectroscopic image to an analysis unit that analyzes the information code, and determining that the information code is not included in the spectroscopic image when an error is returned from the analysis unit. The method for obtaining an information code according to claim 1 .
8. An information code acquisition device for acquiring an information code formed on a surface of an object with a color difference that is indistinguishable by the human eye, comprising: a spectral image acquisition unit for acquiring spectral images of a plurality of spectral wavelengths of the object; a code determination unit that determines whether or not the object includes the information code based on the spectral image; an analysis unit that analyzes the information code; an output unit that analyzes and outputs the information code; An information code acquisition device comprising:
9. An information code acquisition program that can be read and executed by a computer to acquire an information code formed on a surface of an object with a color difference that is indistinguishable by the human eye, The computer includes: a spectroscopic image acquisition step of acquiring spectroscopic images of a plurality of spectroscopic wavelengths of the object; a code determination step of determining whether or not the object includes the information code based on the spectral images of each of the spectral wavelengths; an output step of analyzing and outputting the information code; An information code acquisition program that performs the above.
Citation Information
Patent Citations
Security information code and its reading method
JP1996069680A
