Large-area-array code reading detection device and method
By using multiple surface array cameras and adjustable red, green and blue light sources in the large-face array code reading and detection device, the problem of barcode recognition in the prior art is solved, automatic recognition and light source adjustment are realized, and the clarity and accuracy of the recognition are improved.
Patent Information
- Application Number
- CN202510215320.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When identifying barcodes on electronic components, the prior art is difficult to identify and the effect is not good due to factors such as ambient light, component tray background color, barcode material and type.
A large-face array code reading and detection device is designed, including multiple face array cameras and adjustable red, green and blue light sources. By controlling the host to receive and recognize images, light source adjustment parameters are generated, and the light source is adjusted until the barcode clarity reaches the set standard.
It realizes automatic identification of barcodes and light source adjustment, adapts to different environments and barcode types, and improves the clarity and accuracy of scan code recognition.
Smart Images

Figure CN119721091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of code reading detection, and more specifically, to a large-area array code reading detection device and method. Background Art
[0002] Identifying barcodes on electronic components is of great significance in industrial production. Currently, one or more area array cameras are used in conjunction with a light source for scanning. The light source is usually white light. However, due to the influence of multiple factors such as ambient light, component tray background color, barcode material, and barcode type, barcode recognition is difficult. China's authorized invention patent, application number CN201810210757.1 discloses a QR code scanning device, which adopts a 45-degree oblique white light source illumination method. At the same time, its specification mentions: "The color of the light source can be determined according to the environment in which the QR code is located. For example, when the QR code is etched on the metal surface, the light source is preferably a white light source, which is used to simulate natural light and obtain a better recognition effect; when the background of the QR code is dark (for example: black), the light source is preferably a red light source. The red light source has the characteristics of a long wavelength and strong penetration, and can obtain a better recognition effect." However, this concept is too abstract. Taking the metal surface as an example, different metals have different reflectivities. The same metal can also have different states and different reflectivities in different states. For example, for paper barcodes, the material, color, degree of pollution, and aging of different papers will cause interference, and the obtained effect is often difficult to achieve the expected effect. In order to solve the above problems, a large-area array code reading and detection device and method are needed. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a large-area array code reading and detection device and a large-area array code reading and detection method in view of the above-mentioned defects of the prior art.
[0004] The technical solution adopted by the present invention to solve its technical problem is: A large area array barcode reading and detection device is constructed, comprising a processing table, a bracket is arranged on the processing table, a photographing station is arranged on the processing table, a plurality of area array cameras located directly above the photographing stations are arranged on the bracket, wherein a red light source, a green light source and a blue light source are evenly distributed around the plurality of area array cameras on the bracket, the red light source, the green light source and the blue light source all emit light obliquely downward, and a light spot formed by the convergence of the light rays covers the photographing station; a control host is arranged on the processing table, the control host is used to receive a barcode recognition image of the area array camera, perform image recognition and determine whether there is an abnormality in the component barcode, and is also used to receive multiple test images of the area array camera, recognize each test image and generate light source adjustment parameters, and adjust the red light source, the green light source and the blue light source according to the light source adjustment parameters until the barcode clarity of the test image reaches a set standard.
[0005] The large-area array code reading and detection device described in the present invention, wherein the bracket includes a cross bar, and the area array camera is fixed on the cross bar; an adjustment ring and a first drive motor that drives the adjustment ring to rotate are arranged on the cross bar for transverse rotation; the adjustment ring is provided with three rotating seats that are respectively longitudinally rotatable and connected to the red light source, the green light source and the blue light source, and the rotating seat is provided with a second drive motor, and the three second drive motors respectively drive the red light source, the green light source and the blue light source to rotate longitudinally; the first drive motor and the second drive motor are both controlled and operated by the control host.
[0006] The large-area array code reading and detection device of the present invention, wherein an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn are set; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; The light source adjustment parameter setting adopts: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different.
[0007] In the large-area array barcode reading and detection device described in the present invention, when the control host obtains the light source adjustment parameters of the first set, the second set and the third set through permutations and combinations, if the barcode clarity in the test image is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection stage detection.
[0008] In the large-area array code reading and detection device of the present invention, the projection areas of the red light source, the green light source and the blue light source are adjustable in size.
[0009] A large-area array code reading detection method, using the large-area array code reading detection device as described above, wherein the method comprises the steps of: Debugging phase: Take a workpiece and place it on the photographing station; Multiple area array cameras take test images of the workpiece in different areas, and the control host receives and recognizes the test images. If the barcode clarity in the test image is higher than the set value, the debugging is terminated. Otherwise, the light source adjustment parameters are generated according to the set rules, and the red light source, green light source and blue light source are adjusted according to the generated light source adjustment parameters. Repeat the previous step until the barcode clarity of the test image reaches the set standard; Detection phase: Place the workpiece on the photographing station; Multiple area array cameras capture barcode recognition images for the workpiece in partitions, and the control host receives and recognizes the barcode recognition images, performs image recognition, and determines whether there is any abnormality in the component barcode.
[0010] The large-area array code reading detection method of the present invention comprises the following steps: Setting an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; Setting rules using: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different.
[0011] The large-area array code reading detection method of the present invention further comprises: If the barcode clarity in the test image corresponding to the light source adjustment parameters obtained by permuting and combining the first set, the second set and the third set is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection stage detection.
[0012] The beneficial effects of the present invention are as follows: debugging stage: taking a workpiece and placing it on a photographing station; multiple array cameras partition the workpiece to shoot test images, controlling a host to receive and identify the test images, and terminating the debugging if the barcode clarity in the test image is higher than a set value, otherwise generating light source adjustment parameters according to set rules, and adjusting the red light source, the green light source, and the blue light source according to the generated light source adjustment parameters; repeating the previous step until the barcode clarity of the test image reaches the set standard; detection stage: placing the workpiece on a photographing station; multiple array cameras partition the workpiece to shoot barcode recognition images, controlling a host to receive and identify the barcode recognition images, performing image recognition, and judging whether there is an abnormality in the component barcode; By applying the method and technique of the present application and the principle of three-color light compounding, and by improving and developing hardware and software, it is possible to automatically screen colors so that the color of the light source can be better adapted to the purpose of the workpiece to be inspected. The adjustment process is fully automatic and does not require human intervention. It is convenient and fast and can improve the clarity of code scanning and recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work: Figure 1 2 is a front view of a large-area array code reading and detection device according to a preferred embodiment of the present invention; Figure 2 It is a bottom view of the adjustment ring of the large-area array code reading and detection device of the preferred embodiment of the present invention; Figure 3 It is a flow chart of a large-area array code reading detection method according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0015] A large area array code reading detection device according to a preferred embodiment of the present invention is as follows: Figure 1 See also Figure 2 , comprising a processing table 1, a bracket 2 is arranged on the processing table 1, a photographing station 10 is arranged on the processing table 1, a plurality of array cameras 20 are arranged on the bracket 2 and are located directly above the photographing station 10, and a red light source 30, a green light source 31 and a blue light source 32 are evenly distributed around the plurality of array cameras. The red light source 30, the green light source 31 and the blue light source 32 all emit light obliquely downward, and a light spot formed by the convergence of the light covers the photographing station 10; a control host 4 is arranged on the processing table 1, and the control host 4 is used to receive a barcode recognition image of the array camera 20, perform image recognition and determine whether there is an abnormality in the component barcode, and is also used to receive multiple test images of the array camera 20, recognize each test image and generate light source adjustment parameters, and adjust the red light source 30, the green light source 31 and the blue light source 32 according to the light source adjustment parameters until the barcode clarity of the test image reaches the set standard; Debugging stage: take a workpiece and place it on the photographing station; multiple array cameras take test images of the workpiece in different areas, and the host is controlled to receive and recognize the test images. If the barcode clarity in the test image is higher than the set value, the debugging is terminated, otherwise the light source adjustment parameters are generated according to the set rules, and the red light source, green light source and blue light source are adjusted according to the generated light source adjustment parameters; repeat the previous step until the barcode clarity of the test image reaches the set standard; Detection stage: place the workpiece on the photographing station; multiple array cameras take barcode recognition images of the workpiece in different areas, and the host is controlled to receive and recognize the barcode recognition images, perform image recognition and determine whether there is any abnormality in the component barcode; By applying the method and technique of the present application and the principle of three-color light compounding, and by improving and developing hardware and software, it is possible to automatically screen colors so that the color of the light source can be better adapted to the purpose of the workpiece to be inspected. The adjustment process is fully automatic and does not require human intervention. It is convenient and fast and can improve the clarity of code scanning and recognition.
[0016] Preferably, the bracket 2 includes a cross bar, and the area array camera 20 is fixed on the cross bar; an adjustment ring 3 and a first drive motor 5 that drives the adjustment ring to rotate are arranged on the cross bar for transverse rotation; the adjustment ring 3 is provided with three rotating seats 33 that are respectively connected to the red light source, the green light source and the blue light source for longitudinal rotation, and the rotating seats 33 are provided with second drive motors 34, and the three second drive motors 34 respectively drive the red light source 30, the green light source 31 and the blue light source 32 to rotate longitudinally; the first drive motor 5 and the second drive motor 34 are both controlled and operated by the control host 4; it is convenient to control and adjust the positions and inclination angles of the three light sources through the adjustment ring 3 and the rotating seat 33 to improve the adaptability to the environment.
[0017] Preferably, the arrangement method of the red light source 30, the green light source 31 and the blue light source 32 may be: Setting an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; Light source adjustment parameters are set using: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different; If the barcode clarity in the test images corresponding to the light source adjustment parameters obtained by taking the first set, the second set and the third set after the permutation and combination is completed is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection phase detection; The automation level is high, and the initial value and the maximum value can be set according to the required accuracy, and the interval value can also be set. The accuracy is adjustable and the adaptability is good.
[0018] Preferably, the projection areas of the red light source, the green light source and the blue light source are adjustable in size, and the existing light spot adjustment structure can be used for adjustment, which will not be described in detail. The purpose of adopting this design is to facilitate improving the adaptability to photographing stations of different sizes.
[0019] A large area array code reading detection method, using the large area array code reading detection device as described above, such as Figure 3 As shown, the method comprises the steps of: Debugging phase: S01: Take a workpiece and place it on the photographing station; S02: Multiple area array cameras take test images of the workpiece in different areas, and the control host receives and recognizes the test images. If the barcode clarity in the test image is higher than the set value, the debugging is terminated. Otherwise, light source adjustment parameters are generated according to the set rules, and the red light source, green light source and blue light source are adjusted according to the generated light source adjustment parameters; S03: Repeat the previous step until the barcode clarity of the test image reaches the set standard; Detection phase: S04: placing the workpiece on the photographing station; S05: Multiple area array cameras capture barcode recognition images for the workpiece in different areas, and the control host receives and recognizes the barcode recognition images, performs image recognition, and determines whether there is an abnormality in the component barcode; By applying the method and technique of the present application and the principle of three-color light compounding, and by improving and developing hardware and software, it is possible to automatically screen colors so that the color of the light source can be better adapted to the purpose of the workpiece to be inspected. The adjustment process is fully automatic and does not require human intervention. It is convenient and fast and can improve the clarity of code scanning and recognition.
[0020] Preferably, the method comprises the steps of: Setting an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; Setting rules using: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different; If the barcode clarity in the test image corresponding to the light source adjustment parameters obtained by taking the first set, the second set and the third set of permutations and combinations is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection phase detection; The automation level is high, and the initial value and the maximum value can be set according to the required accuracy, and the interval value can also be set. The accuracy is adjustable and the adaptability is good.
[0021] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A large area array code reading and detection device, comprising a processing table, a bracket is arranged on the processing table, a photographing station is arranged on the processing table, and a plurality of area array cameras are arranged on the bracket and located directly above the photographing station, characterized in that: The bracket is provided with a red light source, a green light source and a blue light source evenly distributed around the plurality of area array cameras, the red light source, the green light source and the blue light source all emit light obliquely downward, and a light spot formed by the convergence of the light rays covers the photographing station; A control host is arranged on the processing table. The control host is used to receive the barcode recognition image of the area array camera, perform image recognition and determine whether there is any abnormality in the component barcode, and is also used to receive multiple test images of the area array camera, recognize each test image and generate light source adjustment parameters, and adjust the red light source, the green light source and the blue light source according to the light source adjustment parameters until the barcode clarity of the test image reaches the set standard.
2. The large-area array code reading and detection device according to claim 1, characterized in that: The bracket includes a cross bar, and the area array camera is fixed on the cross bar; an adjustment ring and a first drive motor that drives the adjustment ring to rotate are arranged on the cross bar for transverse rotation; three rotating seats that are respectively connected to the red light source, the green light source and the blue light source for longitudinal rotation are arranged on the adjustment ring, and a second drive motor is arranged on the rotating seat, and the three second drive motors respectively drive the red light source, the green light source and the blue light source to rotate longitudinally; the first drive motor and the second drive motor are both controlled and operated by the control host.
3. The large-area array code reading and detection device according to claim 1, characterized in that: Setting an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; The light source adjustment parameter setting adopts: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different.
4. The large-area array code reading and detection device according to claim 3, characterized in that: If the barcode clarity in the test image corresponding to the light source adjustment parameters obtained by the control host after permuting and combining the first set, the second set and the third set is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection stage detection.
5. The large-area array code reading and detection device according to claim 1, characterized in that: The projection areas of the red light source, the green light source and the blue light source are adjustable in size.
6. A large-area array code reading detection method, using the large-area array code reading detection device as described in any one of claims 1 to 5, characterized in that: The method comprises the steps of: Debugging phase: Take a workpiece and place it on the photographing station; Multiple area array cameras take test images of the workpiece in different areas, and the control host receives and recognizes the test images. If the barcode clarity in the test image is higher than the set value, the debugging is terminated. Otherwise, the light source adjustment parameters are generated according to the set rules, and the red light source, green light source and blue light source are adjusted according to the generated light source adjustment parameters. Repeat the previous step until the barcode clarity of the test image reaches the set standard; Detection phase: Place the workpiece on the photographing station; Multiple area array cameras capture barcode recognition images for the workpiece in partitions, and the control host receives and recognizes the barcode recognition images, performs image recognition, and determines whether there is any abnormality in the component barcode.
7. The large-area array code reading detection method according to claim 6, characterized in that: The method comprises the steps of: Setting an initial value R0 of the red light source and a plurality of adjustment change values R1, R2...Rn; Setting an initial value G0 of the green light source and a plurality of adjustment change values G1, G2...Gn; Setting an initial value B0 of the blue light source and a plurality of adjustment change values B1, B2...Bn; Setting rules using: R0, R1, R2...Rn are the first set, G0, G1, G2...Gn are the second set, and B0, B1, B2...Bn are the third set; The light source adjustment parameters generated each time include: Rm, Gm and Bm; Rm is a random value taken from the first set, Gm is a random value taken from the second set, and Bm is a random value taken from the third set; The light source adjustment parameters generated each time are different.
8. The large-area array code reading detection method according to claim 7, characterized in that: The method further comprises: If the barcode clarity in the test image corresponding to the light source adjustment parameters obtained by permuting and combining the first set, the second set and the third set is lower than the set value, the light source adjustment parameter with the highest clarity is selected as the set value for subsequent detection stage detection.
Citation Information
Patent Citations
Two-dimensional code scanning device and two-dimensional code scanning method
CN108280378A
Optical detection device and method thereof
CN110609039A
Circuit board welding quality detection method and assembly
CN112051279A
Cigarette code detection and recognition method and device
CN112434544A
Device for automated optical inspection of surface of product
CN201707304U