Anti-counterfeiting code identifying and reading device and identifying and reading method thereof

By using imaging components combined with multiple light sources and filters in the anti-counterfeiting code reading device, the problem that existing equipment cannot be compatible with multiple anti-counterfeiting codes is solved, and efficient and universal reading effect is achieved, reducing equipment cost and volume.

CN119886171APending Publication Date: 2025-04-25FUJIAN NEWLAND AUTO ID TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411889689.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Existing anti-counterfeiting code reading equipment cannot be compatible with a variety of anti-counterfeiting codes, which is difficult to read, and has high cost and large equipment size.

Method used

The lighting components including visible and invisible light sources, image sensors, lens modules and filters are used, combined with the main control unit and decoding module, and the light source polling and filter combination are used to realize the recognition of ultraviolet, infrared and visible anti-counterfeiting codes.

Benefits of technology

It improves the contrast of invisible barcode imaging, improves reading performance and efficiency, realizes general reading of a variety of anti-counterfeiting codes, and reduces equipment cost and volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119886171A_ABST
    Figure CN119886171A_ABST
Patent Text Reader

Abstract

The invention relates to anti-counterfeiting code reading equipment and a reading method thereof, and the equipment comprises an illumination assembly which comprises a visible light source and two invisible light sources; the imaging assembly comprises an image sensor, a lens module and an optical filter, and visible light can penetrate through the optical filter; and the main control unit is in communication connection with the illumination assembly and the imaging assembly and controls the working states of the illumination assembly and the imaging assembly. The specific wavelength is matched with the optical filter, so that the invisible barcode imaging contrast is improved. And meanwhile, an ultraviolet anti-counterfeiting code, an infrared anti-counterfeiting code and a conventional visible code can be read. One optical filter, one lens and the image sensor are adopted to realize compatible reading of ultraviolet invisible codes and infrared invisible codes, the cost is low, and the efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of barcode reading and detection, and in particular to an anti-counterfeiting code reading device and a reading method thereof. Background Art

[0002] With the development of anti-counterfeiting code technology, the types of anti-counterfeiting barcodes are classified according to the coding materials, mainly including visible anti-counterfeiting barcodes, ultraviolet invisible anti-counterfeiting codes, and infrared invisible anti-counterfeiting codes. Early anti-counterfeiting codes were mostly made of ultraviolet fluorescent ink. However, due to the impact of ultraviolet light on the human eye and special application products, the invisible technology of printing anti-counterfeiting codes with infrared invisible ink has gradually become another development direction of anti-counterfeiting codes. Although the invisible anti-counterfeiting code has a good anti-counterfeiting effect, it is difficult to read. At present, there are the following difficulties: First, the contrast of the anti-counterfeiting code is much lower than that of the traditional anti-counterfeiting code, which increases the difficulty of reading the reading equipment. Second, there are mixed anti-counterfeiting anti-counterfeiting codes that are a combination of light and dark codes in the anti-counterfeiting code. It is necessary to read both the light code and the dark code at the same time, which is difficult to read. Third, there are many types of anti-counterfeiting codes, and the anti-counterfeiting code reading equipment is basically customized for one type of anti-counterfeiting code, and cannot be compatible with the reading requirements of multiple anti-counterfeiting codes.

[0003] Nowadays, the anti-counterfeiting code reading equipment on the market is mainly designed for a single type of anti-counterfeiting barcode, with poor compatibility, so its application is limited and difficult to popularize. For example, the reading equipment for reading visible anti-counterfeiting barcodes cannot read invisible anti-counterfeiting barcodes, the reading equipment for reading invisible anti-counterfeiting barcodes cannot read visible anti-counterfeiting barcodes, the reading equipment for reading ultraviolet anti-counterfeiting barcodes cannot read infrared anti-counterfeiting barcodes, and the reading equipment for reading infrared anti-counterfeiting barcodes cannot read ultraviolet anti-counterfeiting barcodes. In actual applications, various types of anti-counterfeiting barcodes coexist with each other, rather than replacing each other. Invention patent 201811388545.9 "A scanning device and its scanning method" uses dual cameras to achieve rapid reading of anti-counterfeiting codes and visible barcodes. However, this solution requires the use of two cameras and two CMOS at the same time, one camera and CMOS are used to read conventional visible anti-counterfeiting codes, and the other special camera and ultraviolet CMOS are used to read anti-counterfeiting codes. This solution can only read one type of anti-counterfeiting code and is not compatible with both ultraviolet and infrared. In addition, this solution uses a large number of cameras and CMOS, so the cost is high and the device size is large.

[0004] On the other hand, in order to obtain high-contrast imaging images of anti-counterfeiting codes to improve the decoding performance of the reading equipment, the reading equipment on the market often uses image sensors and lenses corresponding to the fluorescent components of the barcode. As a result, the anti-counterfeiting code reading equipment is a customized reading equipment for a single anti-counterfeiting code, which has poor versatility. Summary of the invention

[0005] Therefore, the technical problem to be solved by the present invention is to provide an anti-counterfeiting code reading device and a reading method thereof in view of the deficiencies of the above-mentioned prior art.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] Technical Solution 1

[0008] An anti-counterfeiting code reading device, comprising:

[0009] A lighting assembly, wherein the lighting assembly comprises a visible light source and an invisible light source;

[0010] An imaging component, the imaging component comprising an image sensor, a lens module, and a filter;

[0011] A main control unit is respectively connected to the lighting component and the imaging component for communication, and controls the working states of the lighting component and the imaging component.

[0012] The invisible light source of the lighting assembly includes a first invisible light source and a second invisible light source, and the first invisible light source and the second invisible light source have different wavelength ranges.

[0013] The optical filter is a short-wave pass filter or a visible light transmission filter.

[0014] It also includes a decoding module, which receives and decodes the image data transmitted by the imaging component.

[0015] The decoding module is integrated in the main control unit.

[0016] The decoding module is independent of the main control unit, and is electrically connected to the main control unit and the imaging component respectively.

[0017] Technical Solution 2

[0018] A method for reading an anti-counterfeiting code comprises the following steps:

[0019] S1: The main control unit receives a working signal and controls the lighting assembly to perform polling switching of light sources;

[0020] S2: The imaging component acquires target images under illumination of different light sources;

[0021] S3: The decoding module receives the target image under different light sources, determines the category of the current anti-counterfeiting code according to the decoding result, outputs the correct decoding result, and sets the corresponding light source as the first priority;

[0022] S4: the main control unit receives the working signal, controls the lighting assembly to illuminate the target with the first priority light source, and performs decoding;

[0023] When the first priority light source is used to perform multiple illuminations and still fails to read, it is considered that the category of the current anti-counterfeiting code has been changed, and the main control unit controls the lighting assembly to perform polling switching of the remaining light sources and enters step S2.

[0024] Technical Solution 3

[0025] A method for reading an anti-counterfeiting code comprises the following steps:

[0026] S1: the main control unit receives a working signal and controls the lighting assembly to work in a first preset mode;

[0027] S2: The imaging component acquires a target image under the illumination of the current illumination light source;

[0028] S3: The decoding module receives the image data transmitted by the imaging component and decodes it. When the decoding is successful, the decoding module outputs the decoding result, ends the current reading process, and sets the current working mode of the lighting component to the default mode; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit, and the process goes to step S4;

[0029] S4: The main control unit controls the lighting component to work in the second preset mode and enters step S2. If the decoding is not completed after the lighting component works in all preset modes, a decoding failure result is returned and the process is terminated.

[0030] Technical Solution 4

[0031] A method for reading an anti-counterfeiting code comprises the following steps:

[0032] S1: the main control unit receives a working signal and controls the lighting assembly to work in a first preset mode;

[0033] S2: The imaging component acquires a target image under the illumination of the current illumination light source;

[0034] S3: The decoding module receives the image data transmitted by the imaging component and decodes it. When the decoding is successful, the decoding module outputs the decoding result and ends the current reading process; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit and the process goes to step S4;

[0035] S4: The main control unit sends the target image and the decoding result in step S3 to a preset model for processing, and returns the barcode category corresponding to the current target;

[0036] S5: The main control unit controls the lighting component to select the corresponding lighting source to illuminate the target according to the barcode category obtained in step S4, and enters step S2 until the decoding is successful, or when the lighting component has traversed all lighting sources and still has not completed the decoding, it exits the process and outputs the decoding failure information.

[0037] Technical Solution 5

[0038] A method for reading an anti-counterfeiting code comprises the following steps:

[0039] S1: When the target barcode is a combination anti-counterfeiting code, the main control unit receives a working signal and switches the lighting component to a combination code working mode;

[0040] S2: the lighting component uses a visible light source to illuminate the target to obtain a clear code image in the combination code;

[0041] S3: The decoding module acquires and decodes the plain code image, and stores the plain code decoding information;

[0042] S4: the lighting component uses all invisible light sources to illuminate the target to obtain a dark code image in the combination code;

[0043] S5: The decoding module obtains the secret code image and decodes it, combines the plain code decoding information and the secret code decoding information to obtain the combined anti-counterfeiting code decoding information;

[0044] S6: According to the category corresponding to the secret code, all invisible light irradiation modes in step S4 are replaced with single corresponding light source irradiation modes.

[0045] The anti-counterfeiting code reading device and the reading method of the present invention adopt a specific wavelength and a filter method to effectively improve the contrast of invisible barcode imaging, and effectively improve the reading performance and reading efficiency of the reading device; a single filter is used to realize the reading requirements of ultraviolet invisible codes, infrared invisible codes, and visible codes, with strong versatility and high utilization rate. No special ultraviolet or infrared sensors and lenses are required, and there is no need to switch filters, and the original traditional code scanning equipment can be optimized and upgraded. The type of anti-counterfeiting code is automatically determined, and the reading mode is adapted to realize fast switching to read different anti-counterfeiting barcodes, thereby improving the reading efficiency of the reading device. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A system block diagram of an anti-counterfeiting code reading device according to Embodiment 1 of the present invention;

[0047] Figure 2 This is another system block diagram of an anti-counterfeiting code reading device according to Embodiment 1 of the present invention;

[0048] Figure 3A flow chart of an anti-counterfeiting code reading method according to Embodiment 2 of the present invention;

[0049] Figure 4 This is a schematic diagram of the imaging effect of the ultraviolet anti-counterfeiting code of Example 2 of the present invention;

[0050] Figure 5 Schematic diagram of the imaging effect of the infrared anti-counterfeiting code of Example 2 of the present invention

[0051] Figure 6 A flow chart of an anti-counterfeiting code reading method according to Embodiment 3 of the present invention;

[0052] Figure 7 A flow chart of an anti-counterfeiting code reading method according to Embodiment 4 of the present invention;

[0053] Figure 8 This is a flow chart of an anti-counterfeiting code reading method according to Embodiment 5 of the present invention.

[0054] 1-lighting component, 11-first invisible light source, 12-second invisible light source, 13-visible light source, 2-imaging component, 21-image sensor, 22-lens module, 23-filter, 3-main control unit, 4-decoding module. DETAILED DESCRIPTION

[0055] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] Embodiment 1, as Figure 1 As shown, an anti-counterfeiting code reading device includes:

[0057] A lighting assembly 1, wherein the lighting assembly comprises a visible light source 13 and an invisible light source;

[0058] The invisible light source of the lighting assembly 1 includes a first invisible light source 11 and a second invisible light source 12 , and the first invisible light source 11 and the second invisible light source 12 have different wavelength ranges.

[0059] In this embodiment, the lighting component 1 includes three light sources, which can emit visible light to read visible barcodes, can emit ultraviolet light to read ultraviolet anti-counterfeiting codes (wavelength range 200-400nm), and can emit near-infrared light to read infrared anti-counterfeiting codes (wavelength range 800-1000nm). The number of LED light sources can be the same or different for the three lighting light sources. The effective working range of the lighting light should be larger than the effective working area of ​​the imaging component 2.

[0060] An imaging component 2, the imaging component comprising an image sensor 21, a lens module 22, and a filter 23;

[0061] The filter 23 is a short-wave pass filter or a visible light transmission filter.

[0062] In this embodiment, a high-contrast target image is obtained by the imaging component 2. The image sensor 21 is a conventional visible light image sensor. The lens module 22 is a conventional visible light transmission lens. The filter 23 can adopt an 800nm ​​short-wave pass filter or a visible light transmission filter (ultraviolet light and infrared light cutoff), and the light transmission range is about 410nm to 780nm. The filter can be placed at the front end of the lens, or between the lens and the image sensor. The filter transmission band satisfies T≥90%, and the cutoff band satisfies T<1%. The higher the cutoff rate, the better the imaging contrast.

[0063] The main control unit 3 is respectively connected to the lighting component 1 and the imaging component 2 for communication, and controls the working states of the lighting component 1 and the imaging component 2.

[0064] The anti-counterfeiting code reading device further comprises a decoding module 4, which receives the image data transmitted by the imaging component 2 and performs decoding.

[0065] In this embodiment, the decoding module 4 is integrated into the main control unit 3 .

[0066] In another embodiment, Figure 2 As shown, the decoding module 4 is independent of the main control unit 3, and is electrically connected to the main control unit 3 and the imaging component 2 respectively.

[0067] Example 2

[0068] like Figure 3 As shown, a method for reading an anti-counterfeiting code comprises the following steps:

[0069] S1: the main control unit 3 receives a working signal and controls the lighting assembly 1 to perform polling switching of light sources;

[0070] S2: The imaging component 2 acquires target images under illumination of different light sources;

[0071] S3: The decoding module 4 receives the target image under different light sources, determines the category of the current anti-counterfeiting code according to the decoding result, outputs the correct decoding result, and sets the corresponding light source as the first priority;

[0072] S4: the main control unit 3 receives the working signal, controls the lighting assembly 1 to illuminate the target with the first priority light source, and performs decoding;

[0073] When the first priority light source is used for multiple illuminations and still fails to read, it is considered that the category of the current anti-counterfeiting code has been changed, and the main control unit 3 controls the lighting assembly 1 to perform polling switching of the remaining light sources and enters step S2.

[0074] In this embodiment, for the anti-counterfeiting code read for the first time, the device will use the polling mechanism to switch the three lighting sources in turn, and judge the category of the anti-counterfeiting code based on the image. After determining the category of the anti-counterfeiting code, the light source used by the anti-counterfeiting code is set to the first priority by default, and this light source is used preferentially in the subsequent reading process. When the reading process encounters multiple failures in reading the first priority barcode, the type of anti-counterfeiting code required to be read is changed by default, and other light sources will be automatically switched to complete the rapid switching of different anti-counterfeiting code types to ensure reading efficiency.

[0075] When the barcode on the object to be read is a visible anti-counterfeiting barcode, the visible light source 11 emits visible light, the light irradiates the barcode surface, and the reflected light enters the imaging component 2 for imaging, and then the decoding module 4 decodes the imaging image obtained by the imaging component 2, restores the encoded information and outputs it to the main control unit 3 to complete the barcode reading. When the barcode on the object to be read is an ultraviolet invisible anti-counterfeiting barcode, the first invisible light source 12 emits ultraviolet light, the light irradiates the barcode surface, and excites the barcode to emit light in the visible band. The reflected ultraviolet light is filtered and intercepted by the filter 23 (that is, the illumination light and the background reflected light other than the barcode cannot pass through the imaging component 2), while the visible band light excited and emitted by the barcode can pass normally, thereby obtaining a barcode image with high imaging contrast, and the decoding module 4 decodes the imaging image, restores the encoded information and outputs it to complete the barcode reading. When the barcode on the object to be read is an infrared invisible anti-counterfeiting barcode, the second invisible light source 13 of the reading device emits near-infrared light, which irradiates the surface of the barcode, stimulating the barcode to emit light in the visible band. The reflected near-infrared light is filtered and intercepted by the filter 23 (that is, the illumination light and interference light such as background reflection light other than the barcode cannot pass through the imaging component), while the visible band light emitted by the barcode can pass normally, thereby obtaining a barcode image with high imaging contrast. The decoding module 4 decodes the image and restores the encoded information output to complete the barcode reading.

[0076] like Figure 4 and Figure 5 As shown, there are the physical picture of the anti-counterfeiting code, the visible light imaging picture, the infrared light imaging picture, and the imaging picture of the anti-counterfeiting code under the corresponding filter. It can be seen that the physical picture of the anti-counterfeiting code and the visible light are both invisible. It will only appear after being excited by the corresponding light source. However, the image displayed at this time is not obvious. Only after using the filter to filter and retain the visible light can the anti-counterfeiting code image be clearly displayed.

[0077] Example 3

[0078] like Figure 6 As shown, a method for reading an anti-counterfeiting code comprises the following steps:

[0079] S1: the main control unit 3 receives a working signal and controls the lighting assembly 1 to work in a first preset mode;

[0080] S2: the imaging component 2 acquires a target image under the illumination of the current illumination light source;

[0081] S3: The decoding module 4 receives the image data transmitted by the imaging component 2 and decodes it. When the decoding is successful, the decoding module 4 outputs the decoding result, ends the current reading process, and sets the current working mode of the lighting component 1 to the default mode; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit 3, and the process goes to step S4;

[0082] S4: The main control unit 3 controls the lighting assembly 1 to work in the second preset mode and enters step S2. If the lighting assembly 1 has not completed decoding after working in all preset modes, a decoding failure result is returned and the process is terminated.

[0083] In this embodiment, the preset mode means that only one light source works at a time, and the visible light source is prioritized by default as the first preset mode.

[0084] Example 4

[0085] like Figure 7 As shown, a method for reading an anti-counterfeiting code comprises the following steps:

[0086] S1: the main control unit 3 receives a working signal and controls the lighting assembly 1 to work in a first preset mode;

[0087] S2: the imaging component 2 acquires a target image under the illumination of the current illumination light source;

[0088] S3: the decoding module 4 receives the image data transmitted by the imaging component 2 and decodes it. When the decoding is successful, the decoding module 4 outputs the decoding result and ends the current reading process; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit 3 and the process goes to step S4;

[0089] S4: the main control unit 3 sends the target image and the decoding result in step S3 to a preset model for processing, and returns the barcode category corresponding to the current target;

[0090] S5: The main control unit controls the lighting component to select the corresponding lighting source to illuminate the target according to the barcode category obtained in step S4, and enters step S2 until the decoding is successful, or when the lighting component has traversed all lighting sources and still has not completed the decoding, it exits the process and outputs the decoding failure information.

[0091] In this embodiment, the preset model is a neural network model. By training the preset model, the category of the current anti-counterfeiting code can be identified according to the image differences of different anti-counterfeiting codes under different lighting conditions.

[0092] In this embodiment, the first preset mode of the lighting assembly is an ultraviolet light mode.

[0093] Example 5

[0094] like Figure 8 As shown, a method for reading an anti-counterfeiting code is characterized by comprising the following steps:

[0095] S1: When the target barcode is a combination anti-counterfeiting code, the main control unit 1 receives a working signal and switches the lighting assembly 1 to a combination code working mode;

[0096] S2: The lighting assembly 1 uses a visible light source to illuminate the target to obtain a clear code image in the combination code;

[0097] S3: The decoding module 4 acquires the plain code image and decodes it, and stores the plain code decoding information;

[0098] S4: the lighting assembly 1 uses all invisible light sources to illuminate the target to obtain a dark code image in the combination code;

[0099] S5: The decoding module 4 obtains the secret code image and decodes it, combines the plain code decoding information and the secret code decoding information to obtain the combined anti-counterfeiting code decoding information;

[0100] S6: According to the category corresponding to the secret code, all invisible light irradiation modes in step S4 are replaced with single corresponding light source irradiation modes.

[0101] When the barcode on the item to be read is a combination barcode, the barcode type configuration must be performed in advance so that the device can switch to the combination anti-counterfeiting code decoding mode. The visible light source 11 is preferably used to emit visible light, decode the plain code, and store the decoded information. Then the invisible light source 12 is used to emit near-ultraviolet light, and the invisible light source 13 is used to emit near-infrared light. The imaging images obtained by the two invisible lights have only one valid decoding information, and then the secret code is decoded. According to the coordination relationship between the plain code and the secret code, a combined decoding process is performed to restore the encoded information. When the invisible light source is irradiated, it can be irradiated simultaneously or in turn.

[0102] The first reading is an invisible code polling mechanism to determine the category of the invisible anti-counterfeiting code. After determining the category of the invisible anti-counterfeiting code, the light source used by the anti-counterfeiting code is set to the first priority by default. In the subsequent reading link, the invisible light source and the visible light source combination are preferentially used.

[0103] The above embodiments are only for illustration rather than limitation of the present invention, so all equivalent changes or modifications made according to the method described in the scope of the present patent application are included in the scope of the present patent application.

Claims

1. An anti-counterfeiting code reading device, characterized in that: include: A lighting assembly (1), comprising a visible light source (13) and an invisible light source; An imaging component (2), the imaging component comprising an image sensor (21), a lens module (22), and a filter (23); A main control unit (3), wherein the main control unit (3) is respectively connected to the lighting component (1) and the imaging component (2) for communication, and controls the working states of the lighting component (1) and the imaging component (2).

2. The anti-counterfeiting code reading device according to claim 1, characterized in that: The invisible light source of the lighting assembly (1) comprises a first invisible light source (11) and a second invisible light source (12); the first invisible light source (11) and the second invisible light source (12) have different wavelength ranges.

3. The anti-counterfeiting code reading device according to claim 1, characterized in that: The optical filter (23) is a short-wave pass filter or a visible light transmission filter.

4. The anti-counterfeiting code reading device according to claim 1, characterized in that: It also comprises a decoding module (4), which receives the image data transmitted by the imaging component (2) and performs decoding.

5. The anti-counterfeiting code reading device according to claim 4, characterized in that: The decoding module (4) is integrated in the main control unit (3).

6. The anti-counterfeiting code reading device according to claim 4, characterized in that: The decoding module (4) is independent of the main control unit (3), and is electrically connected to the main control unit (3) and the imaging component (2) respectively.

7. A method for reading an anti-counterfeiting code, characterized in that: The following steps are involved: S1: the main control unit (3) receives a working signal and controls the lighting assembly (1) to perform polling switching of light sources; S2: the imaging component (2) acquires target images under illumination of different light sources; S3: The decoding module (4) receives the target image under different light sources, determines the category of the current anti-counterfeiting code according to the decoding result, outputs the correct decoding result, and sets the corresponding light source as the first priority; S4: the main control unit (3) receives the working signal, controls the lighting assembly (1) to illuminate the target with the first priority light source, and performs decoding; When the first priority light source is used to illuminate for multiple times and still fails to read, it is considered that the category of the current anti-counterfeiting code has been changed, and the main control unit (3) controls the lighting component (1) to perform polling switching of the remaining light sources and enters step S2.

8. A method for reading an anti-counterfeiting code, characterized in that: The following steps are involved: S1: the main control unit (3) receives a working signal and controls the lighting assembly (1) to work in a first preset mode; S2: the imaging component (2) acquires a target image under the illumination of the current illumination light source; S3: the decoding module (4) receives the image data transmitted by the imaging component (2) and decodes it. When the decoding is successful, the decoding module (4) outputs the decoding result, ends the current reading process, and sets the current working mode of the lighting component (1) to the default mode; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit (3), and the process proceeds to step S4; S4: The main control unit (3) controls the lighting component (1) to operate in the second preset mode and enters step S2. If the decoding is not completed after the lighting component (1) operates in all preset modes, a decoding failure result is returned and the process is terminated.

9. A method for reading an anti-counterfeiting code, characterized in that: The following steps are involved: S1: the main control unit (3) receives a working signal and controls the lighting assembly (1) to work in a first preset mode; S2: the imaging component (2) acquires a target image under the illumination of the current illumination light source; S3: the decoding module (4) receives the image data transmitted by the imaging component (2) and decodes it. When the decoding is successful, the decoding module (4) outputs the decoding result and ends the current reading process; when the decoding is unsuccessful, an unsuccessful signal is fed back to the main control unit (3) and the process proceeds to step S4; S4: the main control unit (3) sends the target image and the decoding result in step S3 to a preset model for processing, and returns the barcode category corresponding to the current target; S5: The main control unit controls the lighting component to select the corresponding lighting source to illuminate the target according to the barcode category obtained in step S4, and enters step S2 until the decoding is successful, or when the lighting component has traversed all lighting sources and still has not completed the decoding, it exits the process and outputs the decoding failure information.

10. A method for reading an anti-counterfeiting code, characterized in that: The following steps are involved: S1: When the target barcode is a combination anti-counterfeiting code, the main control unit (1) receives a working signal and switches the lighting component (1) to a combination code working mode; S2: the lighting component (1) uses a visible light source to illuminate the target to obtain a clear code image in the combination code; S3: the decoding module (4) acquires the plain code image and decodes it, and stores the plain code decoding information; S4: the lighting component (1) uses all invisible light sources to illuminate the target to obtain a dark code image in the combination code; S5: the decoding module (4) acquires the secret code image and decodes it, combines the plain code decoding information and the secret code decoding information to obtain the combined anti-counterfeiting code decoding information; S6: According to the category corresponding to the secret code, all invisible light irradiation modes in step S4 are replaced with single corresponding light source irradiation modes.

Citation Information

Patent Citations

  • A scanning device and a scanning method thereof

    CN109598173A