A device for reading a CG two-dimensional code
By combining asymmetric ring lighting and conical focusing devices with TOF ranging technology, precise alignment and uniform illumination of the light source and QR code are achieved, solving the problems of unclear imaging and low recognition rate of micro QR codes in complex environments, and improving recognition accuracy and system stability.
Patent Information
- Application Number
- CN202510709778.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-05-29
AI Technical Summary
The existing technology has unclear imaging, low recognition rate and poor adaptability when reading micro QR codes embedded in the ink edge interlayer of the glass cover, especially in 2.5D and 3D curved structures and complex lighting conditions. The recognition stability and success rate are insufficient.
An asymmetric circular lighting layout is adopted, with the area ratio of the lamp bead distribution area to the non-light source area being 2:1. Combined with a conical focusing device and TOF ranging technology, three-dimensional adjustment and fine-tuning of the light source are achieved, ensuring the coaxial layout of the light source device and the QR code area. Through the adaptive adjustment mechanism and automatic calibration function, the lighting uniformity and recognition accuracy are optimized.
It significantly improves the imaging clarity and recognition accuracy of micro QR codes, adapts to recognition stability under complex backgrounds, reduces power consumption and manufacturing costs, and improves the reliability and economy of the system.
Smart Images

Figure CN120258021B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of optical equipment, in particular to a device for reading CG two-dimensional code. BACKGROUND
[0002] With the rapid evolution of electronic consumer product technology, users' requirements for visual experience of display devices continue to improve, and the screen-to-body ratio of mobile phone screens has become one of the important indicators for measuring display performance. In order to meet the needs of users for larger visual area and immersive display effect, narrow-bezel screens, ultra-narrow-bezel screens, full-screen, and 2.5D and 3D curved screen technologies are widely used. These advanced display forms generally use a cover glass (CG) as the screen surface material, and achieve optical shielding and aesthetic effect through a black ink layer in the edge distribution area.
[0003] In such display assemblies, the width of the ink edge directly affects the actual display area of the screen, so the "ink edge narrowing" design has become an important means to improve the screen-to-body ratio. However, the reduction of the ink edge width also brings new challenges in product manufacturing and quality tracing. To achieve accurate tracing, the product two-dimensional code is usually laser-engraved in the interlayer distribution area between the CG glass and the ink layer. Especially in 2.5D and 3D curved glass structures, to not affect the front display effect, the two-dimensional code is often designed to be very small (e.g., only 0.2mm x 0.2mm), which poses very high image resolution and recognition accuracy requirements on subsequent identification equipment.
[0004] The present application proposes a two-dimensional code reading device with optimized structure and optical performance to address the problems of unclear imaging, low recognition rate, and poor adaptability when reading a micro two-dimensional code embedded in the ink edge interlayer of a cover glass. The device aims to improve the imaging clarity and image contrast of the micro two-dimensional code, significantly enhance its recognition stability and success rate under 2.5D / 3D curved structures and complex lighting conditions, and support fast and reliable reading of two-dimensional codes in narrow spaces, special-shaped structures, or non-standard angles, thereby meeting the needs of industrial production lines for high-speed, high-consistency, and high-robustness automated identification. SUMMARY
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one purpose of the present invention is to propose a device for reading CG QR codes, comprising: a workbench, the workbench being used to place an object to be identified; a mounting frame, the mounting frame being fixedly mounted on the workbench, the mounting frame being a vertical lifting structure; a reading device, the reading device being fixedly mounted on the mounting frame; a light source device, the light source device being adjustably mounted on the workbench, the light source device being internally provided with an annular light source, the annular light source comprising a lamp bead distribution area and a non-light source area, the area ratio of the lamp bead distribution area to the non-light source area being 2:1; wherein the mounting frame is adjustable in a vertical direction, and the light source device is adjustable in a three-dimensional direction; the light source device is provided with a fine-tuning structure, the fine-tuning structure being used to adjust the lamp beads of the annular light source to align with the QR code distribution area. When in the detection state, the light source device, the reading device, and the QR code distribution area are located in the same light path, thereby improving the recognition accuracy and imaging quality of the QR code.
[0006] In some examples of the present invention, the light source device also includes a conical focusing device, the bottom of which is fixedly connected to the annular light source, the top of which is provided with a light-transmitting hole, and the inner surface of which is provided with a reflecting surface for converting direct light into diffused light; wherein the distance between the annular light source and the QR code imaging target is 10-20 mm.
[0007] In some examples of the present invention, the fine-tuning structure includes: a driving member, which is used to drive the annular light source to rotate around the central axis; a detection member, which includes at least two ranging sensors based on TOF (time of flight) ranging technology, and the two detection members are respectively arranged at the junction of the lamp bead distribution area and the non-light source area; a controller, which is electrically connected to the detection member and the driving member respectively, and is used to control the adjustment of the light source angle according to the ranging results, so that the lamp bead distribution area is opposite to the QR code distribution area; wherein a light source detection channel is provided inside the driving member, the detection member and the controller.
[0008] In some examples of the present invention, the controller implements an adaptive adjustment mechanism, specifically including: step 1, calculating the error ΔD = D1 - D2, where D1 and D2 are the distances between the two ranging sensors and the QR code distribution area; step 2, controlling the light source to rotate clockwise when ΔD > 0, and controlling the light source to rotate counterclockwise when ΔD < 0; step 3, cyclically rotating with a fixed step size and repeating the ranging until ΔD = 0.
[0009] In some examples of the present application, the controller further comprises an automatic calibration function, a maximum number of adjustments is set, if the preset range X is exceeded, wherein X is greater than or equal to zero, X is less than or equal to still not aligned, the rotation direction is automatically switched, and the light source angle is locked after calibration is completed.
[0010] In some examples of the present application, the mounting frame comprises: a frame body, a guide rail extending in the vertical direction is arranged on the frame body, the inner side of the guide rail has a threaded structure; a lead screw is threadedly arranged in the guide rail; a driving assembly is in transmission connection with the lead screw for driving the lead screw to rotate about its axis; a mounting platform is fixedly connected to the lead screw for carrying the reading device and vertically guiding and lifting along the guide rail when the lead screw rotates.
[0011] In some examples of the present application, further comprising an adjustment structure, the adjustment structure is detachably mounted on the workbench, and the adjustment structure is fixedly connected with the light source device.
[0012] In some examples of the present application, the adjustment structure comprises: a detachable fixing plate mounted on the workbench; a vertical shaft fixedly connected to the fixing plate, the vertical shaft is used to provide vertical adjustment support; a first adjustment block sleeved on the vertical shaft, the first adjustment block can rotate around the vertical shaft and move along the vertical shaft direction; a horizontal shaft, one end of the horizontal shaft is connected to the first adjustment block, so that the horizontal shaft and the vertical shaft are arranged perpendicular to each other; a second adjustment block, the second adjustment block can be adjusted in position along the horizontal shaft, and the light source device is fixedly connected to the second adjustment block.
[0013] In some examples of the present application, the workbench is provided with a mounting plate, the mounting plate is provided with a plurality of insertion holes, the bottom of the detachable fixing plate is provided with a plug pin, the plug pin is matched with the insertion hole, and the detachable positioning connection of the adjustment structure is realized.
[0014] In some examples of the present application, the workbench is provided with a positioning markline, the positioning markline is used to assist in positioning the two-dimensional code distribution area of the to-be-identified machine body, so as to ensure that the two-dimensional code distribution area and the reading device are located on the same optical axis.
[0015] Additional aspects and advantages of the present application will be given in part in the following description, part will become obvious from the following description, or will be understood to have the following beneficial effects by practicing the present application:
[0016] The present invention optimizes the traditional annular light source structure and adopts an asymmetric annular lighting method with a ratio of 2:1 between the area of the lamp bead distribution area and the non-light source area, so that the lamp beads are concentrated in the position facing the QR code, effectively improving the illumination intensity and imaging contrast of the QR code area, avoiding the problems of uneven illumination, interlacing of bright spots and dark spots caused by the uniform distribution of lamp beads in the prior art, and significantly improving the image quality of the QR code. At the same time, there are no lamp beads in the non-light source area to prevent light from irradiating the outer area of the QR code and reflecting through the CG ink layer or glass layer to form stray light, thereby reducing optical interference, improving imaging stability and recognition accuracy, and is particularly suitable for complex imaging areas such as 2.5D or 3D curved glass. By providing a conical focusing structure in the light source device and forming a diffuse reflection surface on its inner surface, the uniform distribution of light is further achieved, and the incident angle is effectively controlled, so that the QR code can still obtain uniform illumination under a complex optical structure. Furthermore, because the asymmetric lighting arrangement significantly reduces the number of LEDs, it can reduce power consumption by 30% to 40% compared to traditional ring light solutions, reducing heat generation and extending light source life. This also reduces driver circuit complexity and manufacturing costs, improving overall system reliability and cost-effectiveness. Combined with this structure, the light source assembly features three-dimensional adjustability, enabling precise alignment of the LED distribution area with the QR code area using a fine-tuning mechanism, further enhancing image contrast and recognition stability. The mounting frame utilizes a vertical lift mechanism, combined with the fixed mounting of the reader, allowing precise vertical adjustment of the reader to accommodate workpieces of varying heights and thicknesses, ensuring consistent image acquisition focal planes and preventing blur. Furthermore, the reader and light source are designed to be coaxial, aligning the QR code area, illumination center, and imaging path. This minimizes off-axis imaging and tilt distortion, effectively improving QR code recognition accuracy and image clarity. The overall structure offers high integration, flexible adjustment, and strong adaptability, making it particularly suitable for high-precision QR code recognition applications against complex backgrounds within CG ink layers. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A schematic structural diagram of a device for reading a CG two-dimensional code according to the present invention;
[0019] Figure 2 for Figure 1 Schematic diagram of the structure of the central light source;
[0020] Figure 3 for Figure 1 Another structural diagram of the light source structure in the center;
[0021] Figure 4 for Figure 3 Structural diagram of the central light source structure from another perspective.
[0022] Description of reference numerals:
[0023] 100-ring light source; 110-lamp distribution area; 120-non-light source area;
[0024] 200-conical focusing device; 210-reflecting surface; 220-light transmission hole;
[0025] 300-fine-tuning structure; 310-driving part; 320-detection part; 330-controller;
[0026] 400- workbench; 410- positioning mark;
[0027] 500-mounting frame; 510-frame; 520-lead screw; 530-guide rail; 540-drive assembly; 550-mounting platform;
[0028] 600-reading device;
[0029] 700-light source device;
[0030] 800 - adjustment structure; 810 - removable fixing plate; 820 - vertical axis; 830 - first adjustment block; 840 - horizontal axis; 850 - second adjustment block;
[0031] 900-Mounting plate. DETAILED DESCRIPTION
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0033] In the description of the present application, it needs to be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the features defined with "first", "second" can be explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0034] In the description of the present application, it needs to be noted that, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0035] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are only used to explain the present application, and cannot be understood as a limitation on the present application.
[0036] Figure 1 A structural schematic diagram of a device for reading CG two-dimensional code provided according to the present application; Figure 2 A structural schematic diagram of a device for reading CG two-dimensional code provided according to the present application; Figure 1 A structural schematic diagram of a light source structure; Figure 3 A structural schematic diagram of a light source structure; Figure 1 A structural schematic diagram of a light source structure from another perspective; Figure 4 A structural schematic diagram of a light source structure from another perspective; Figure 3 A structural schematic diagram of a light source structure from another perspective.
[0037] Please refer to Figures 1-4The application discloses a device for reading CG two-dimensional codes, which comprises a workbench 400 for placing a machine body to be identified, a mounting frame 500 fixedly installed on the workbench 400, the mounting frame 500 being a vertical lifting structure, a reading device 600 fixedly installed on the mounting frame 500, and a light source device 700 adjustably installed on the workbench 400, the light source device 700 being internally provided with a ring-shaped light source 100, the ring-shaped light source 100 comprising a lamp bead distribution area 110 and a non-light source area 120, and the area ratio of the lamp bead distribution area 110 to the non-light source area 120 being 2:1; wherein the adjusting direction of the mounting frame 500 is a vertical direction, and the adjusting direction of the light source device 700 is a three-dimensional direction; the light source device 700 is provided with a fine adjustment structure 300 for adjusting the lamp beads of the ring-shaped light source 100 to be directly opposite to a two-dimensional code distribution area; when in a detection state, the light source device 700, the reading device 600 and the two-dimensional code distribution area are located on the same light path to improve the identification accuracy and imaging quality of the two-dimensional code, wherein the reading device 600 is a multifunctional code reading device, which can read CG small codes and also can read type two-dimensional codes.
[0038] Specifically, the device is designed by asymmetrically optimizing a traditional ring-shaped light source structure, so that the area ratio of the lamp bead distribution area 110 to the non-light source area 120 is 2:1, thereby concentrating resources on the two-dimensional code direct opposite area in the light source illumination path. The lamp beads are densely arranged in the area, which not only enhances the illumination intensity of the two-dimensional code area, but also improves the imaging contrast of the image. The non-light source area 120 is not provided with lamp beads, which can effectively avoid the illumination of the light on the external area of the two-dimensional code, reduce the stray light generated by the reflection of the CG ink layer or the glass layer, and improve the imaging stability. The mounting frame 500 is vertically adjusted through a screw transmission structure, so that the reading device 600 can accurately match the positions of two-dimensional codes with different heights, and the three-dimensional adjusting capability of the light source device 700 and the fine adjustment structure 300 further realize the accurate correction of the lamp bead distribution direction, so that the two-dimensional code area is always in the optimal illumination condition. The reading device 600 and the light source device 700 are coaxially arranged in structure, so that the two-dimensional code, the illumination center and the image acquisition path are located on the same light path, the off-axis imaging problem is avoided, and the collected image is ensured to be clear and distortion-free.
[0039] Further, the embodiment solves the problems of traditional uniform lamp arrangement, such as alternating bright and dark spots, uneven illumination distribution, etc., and is particularly suitable for two-dimensional code recognition under complex backgrounds (such as 2.5D or 3D curved glass). The asymmetric lamp arrangement significantly improves the illumination intensity and contrast of the two-dimensional code image area, avoids interference caused by external light reflection, thereby enhancing the anti-interference ability and recognition accuracy of the system. At the same time, due to the reduced lamp bead distribution area 110 and the reduction of the total number of lamp beads by about 30% to 40%, significant power consumption and heat reduction are achieved, which helps to prolong the service life of the light source and reduce the complexity and cost of the circuit. In addition, the coaxial light path design effectively avoids distortion, improves the clarity and reading accuracy of the image. The entire structure is compact and integrated, flexible and adaptable, and can maintain stable recognition ability under high-reflective materials or complex ink backgrounds.
[0040] Please continue to participate Figures 1-3 As shown in a possible embodiment, the light source device 700 further comprises a conical light condensing device 200, the bottom of the conical light condensing device 200 is fixedly connected with the annular light source 100, the top is provided with a light transmission hole 220, and the inner surface is provided with a reflecting surface 210 for converting direct light into diffuse reflection light; wherein the distance between the annular light source 100 and the two-dimensional code imaging target is 10-20 mm.
[0041] Specifically, the embodiment introduces a conical light condensing device 200 based on the annular light source 100, which is closely connected with the light source at the bottom to form a closed light guide cavity. The top of the conical structure is provided with a light transmission hole 220 for outputting the regulated uniform light. The inner wall surface is designed as a diffuse reflecting surface 210 with high reflectivity, which can uniformly diffuse the direct light emitted by the lamp beads after multiple internal reflections, realizing flexible lighting of the two-dimensional code area. This structure effectively reduces the phenomenon of highlight interference caused by direct strong light on image formation, and is particularly suitable for CG two-dimensional code backgrounds with complex optical reflection. By controlling the annular light source 100 within a distance of 10-20 mm from the two-dimensional code, the uniformity of the illumination coverage and the stability of the imaging clarity can be ensured, taking into account the near-distance illumination intensity and viewing angle control.
[0042] Further, the structure solves the problems of traditional lighting methods, such as forming light spots and ghosting on curved glass or high-reflective materials, by combining the conical light condensing device 200 with the annular light source 100, significantly improving the uniformity and recognizability of the two-dimensional code image. The diffuse reflection design in the conical cavity reduces the interference of direct light on the image, making the image contrast clearer, especially in environments with CG ink and other shielding and light-reflecting properties. In addition, the structure maintains a distance of 10-20 mm for light arrangement, which not only helps to control the illumination angle and brightness, but also prevents the problems of glare and imaging defocus caused by close illumination, thereby ensuring the stability of scanning and reading.
[0043] It should be noted that the inner wall reflective layer of the conical focusing device 200 can be made of different reflective materials such as nano-spraying, micro-structured diffusion film or matte coating to achieve optical control of specific wavelength bands. Its shape can also be adjusted from a cone to a parabolic shape or a tapered cylindrical structure to adjust the light distribution characteristics according to the surface curvature of the imaging target. The size and position of the light-transmitting hole 220 can be changed accordingly according to the size of the QR code to control the light output diameter and projection angle. To enhance flexibility, the focusing device and the ring light source 100 can also be detachably connected by a snap or threaded structure to facilitate maintenance or replacement of different types of focusing modules. In addition, the distance from the ring light source 100 to the QR code target can also be adjusted according to the actual focal length of the recognition device, expanding the system's adaptability to different types of QR code reading tasks.
[0044] Please continue to see Figure 1 As shown, according to one embodiment of the present invention, the fine-tuning structure 300 includes: a driving member 310, which is used to drive the annular light source 100 to rotate around the central axis; a detection member 320, which includes at least two ranging sensors based on TOF (time of flight) ranging technology, and the two detection members 320 are respectively arranged at the junction of the lamp bead distribution area 110 and the non-light source area 120; a controller 330, which is electrically connected to the detection member 320 and the driving member 310 respectively, and the controller 330 is used to control the adjustment of the light source angle according to the ranging result, so that the lamp bead distribution area 110 is opposite to the QR code distribution area; wherein, a light source detection channel is provided inside the driving member 310, the detection member 320 and the controller 330.
[0045] Specifically, the adjustment structure of this embodiment relies on the coordinated operation of the detection element 320, the driver 310, and the controller 330 to automatically detect and adjust the light source, ensuring uniform illumination coverage of the QR code area, thereby ensuring QR code imaging quality and recognition accuracy. The detection element 320 is responsible for real-time monitoring the current angle of the light source, determining whether the bead distribution area 110 is directly facing the QR code area and whether the non-light area 120 is directly facing the outside of the CG ink edge. When the light source angle deviates, the signal data collected by the detection element 320 changes, and the detection results are immediately fed back to the controller 330. After receiving the signal from the detection element 320, the controller 330 analyzes the angular error of the light source and calculates the adjustment direction and rotation angle. The controller 330 uses logical judgment, such as comparing the offset between the bead distribution area 110 and the QR code, to determine whether the light source needs to rotate clockwise or counterclockwise. It also controls the rotation angle step size for more precise adjustment. Next, the controller 330 sends a control command to the driver 310. Under the command of the controller 330, the driver 310 drives the annular light source 100 to rotate and adjust along the horizontal plane where the annular light source 100 is located until the detection component 320 detects that the lamp bead distribution area 110 is completely aligned with the QR code distribution area and the non-light source area 120 is completely aligned with the outside of the CG ink edge. During the adjustment process, the detection component 320 continuously monitors the angle of the light source and feeds back real-time data to the controller 330, allowing the controller 330 to continuously fine-tune the light source angle based on the latest data to ensure that precise alignment is ultimately achieved. When the detection component 320 confirms that the light source has been adjusted to the optimal position, the controller 330 immediately stops the rotation of the driver 310, locks the light source angle, and completes the calibration adjustment of the light source. This embodiment achieves automatic adjustment of the light source angle through a series of steps such as detection, calculation, adjustment, feedback, and calibration. The close cooperation between the various components ensures that the light source can quickly and stably complete the adjustment, so that the QR code area receives optimal illumination and optimizes imaging quality.
[0046] Furthermore, the present embodiment realizes automatic detection and intelligent adjustment of the light source angle through the coordination of the detection member 320, the controller 330 and the driver 310, so that the two-dimensional code area is always in the best lighting state, significantly improving the imaging quality and recognition accuracy of the two-dimensional code. First, the detection member 320 monitors the light source state in real time to ensure that the system can quickly perceive the angular deviation of the light source. When the light source is not aligned with the two-dimensional code area, the detection member 320 can quickly capture the offset data and provide accurate feedback signals, so that the controller 330 can make adjustment decisions in a very short time. Secondly, the controller 330, as the core processing unit, can accurately calculate the angular deviation between the light source and the two-dimensional code, and judge the best adjustment direction and angle based on the data of the detection member 320, to ensure that the light source adjustment process is efficient and accurate, and avoid the problem of uneven illumination caused by excessive or insufficient adjustment. In addition, the precise execution of the driver 310 ensures the stability and controllability of the light source angle adjustment. Under the instruction of the controller 330, the driver 310 can rotate according to the set step size to avoid the adjustment error caused by rotating too fast or too slow, and ensure that the light source always maintains a stable illumination effect during the adjustment process. After adjustment, the light source's bead distribution area 110 is precisely aligned with the QR code area, ensuring uniform and adequate illumination of the QR code. Meanwhile, the non-light source area 120 faces the outer edge of the CG ink, minimizing light waste and improving light source utilization. Compared to traditional fixed light source solutions, this implementation significantly reduces reliance on the initial installation accuracy of the light source, avoiding illumination deviations caused by installation errors. It also eliminates the need for manual re-adjustment, reducing maintenance costs and improving the system's automation. Furthermore, because the light source's illumination angle is always optimal, the illumination of the QR code area is more uniform, significantly reducing issues such as blurred edges or reduced contrast caused by uneven illumination. This improves QR code recognition stability and enables scanners to more quickly and accurately interpret QR code information. This solution is also highly adaptable, adapting to QR codes of varying sizes and positions. Automatic alignment is achieved through software control without requiring additional physical adjustments to the light source, enabling automatic adjustment of the light source angle and optimizing QR code image quality. This improves the system's intelligence and applicability, while reducing maintenance costs and manual operation complexity, making it more efficient and stable in practical applications.
[0047] The two ranging sensors work together to detect the light source's angular state in real time and provide precise light source position data to the control system, ensuring that the light source is aligned with the QR code distribution area, improving illumination uniformity and image clarity. The two ranging sensors are installed at the junction of the LED distribution area 110 and the non-light source area 120. They utilize time-of-flight (TOF) ranging technology to measure the distance between the light source and the CG screen by emitting light pulses and calculating the time it takes for the light to return. Upon system startup, the two ranging sensors operate synchronously and transmit data on the light source's distance relative to the CG screen to the controller 330. When the light source is misaligned with the QR code distribution area, one ranging sensor measures the distance outside the CG screen (i.e., the light source does not fully cover the QR code area, with some light illuminating the CG screen outside the QR code area), while the other ranging sensor measures the distance inside the CG screen (i.e., the light source illuminates the area containing the QR code). Due to improper alignment of the light source with the QR code, the measurement results of the two ranging sensors may differ significantly. After receiving the distance measurement data, controller 330 controls driver 310 to adjust the light source angle, rotating it within the horizontal plane of ring light source 100 until the light source bead distribution area 110 is precisely aligned with the QR code distribution area, and the non-light source area 120 faces the outside of the CG ink edge. Once the light source is adjusted, the distance measurement results of the two distance measurement sensors converge, and both measure the distance value within the CG screen. At this point, controller 330 confirms that the light source is aligned with the QR code area and stops driver 310, locking the light source angle.
[0048] This embodiment uses two ranging sensors based on TOF ranging technology to achieve accurate detection of the angle state of the light source, and ensure that the light source is always aligned with the QR code distribution area, thereby improving the illumination uniformity and imaging clarity of the QR code. When the light source is not aligned with the QR code area, one ranging sensor measures the distance outside the CG screen, and the other measures the distance inside the CG screen. When the light source is adjusted to the correct position, both ranging sensors detect the distance inside the CG screen. This change can be used as a basis for judging the alignment state of the light source, ensuring that the light source always maintains the optimal lighting angle and reducing the QR code recognition error caused by uneven lighting. In addition, since TOF ranging technology has the characteristics of high precision, strong anti-interference ability, and fast response speed, the system can quickly detect the light source state and make adjustments, thereby improving the recognition efficiency of the QR code. At the same time, this embodiment can continuously monitor the angle state of the light source after the adjustment is completed to ensure that the light source will not be offset due to external vibrations or equipment changes, thereby improving the stability and long-term reliability of the system. In summary, this embodiment uses the high-precision detection and real-time feedback mechanism of two ranging sensors to ensure that the light source is accurately aligned with the QR code, improve lighting uniformity, optimize the QR code imaging quality, and enhance the system automation level, enabling it to maintain efficient and stable operation in smart manufacturing, industrial code scanning, logistics tracking and other fields.
[0049] It's worth noting that the adjustment structure of this embodiment can be replaced in various ways to meet the needs of different application scenarios and improve the accuracy, stability, and intelligence of light source adjustment. First, in the detection element 320, an ultrasonic sensor, infrared sensor, photoelectric sensor, or high-resolution camera can be used instead of a TOF (time-of-flight) ranging sensor. For example, a camera combined with an image processing algorithm can be used to determine the brightness distribution of the QR code area to improve the accuracy of light source alignment. In addition, a Hall effect sensor can be used to detect the rotation angle of the light source, or a laser ranging module can be used to improve the accuracy of long-distance detection. Second, in the drive element 310, the stepper motor can be replaced with a servo motor, DC motor, or piezoelectric drive. A servo motor combined with a closed-loop control system can provide more precise angle adjustment and improve light source stability. Alternatively, a mechanical fine-tuning mechanism such as a gear drive, worm gear, or spring-loaded structure can be used for low-power or fixed-mount applications. A magnetic fluid drive can even be used to reduce mechanical wear and extend system life. The controller 330 can utilize an FPGA (field programmable gate array), DSP (digital signal processor), or industrial-grade PLC (programmable logic controller 330) to meet varying computing power requirements. FPGAs are suitable for high-speed parallel computing, improving the real-time nature of light source adjustment. Furthermore, the controller 330 can incorporate deep learning or machine learning algorithms to optimize light source adjustment strategies, enabling the system to adapt to diverse environments and improve lighting uniformity. Furthermore, in conjunction with an edge computing platform or IoT controller 330, remote control and intelligent adjustment can be achieved, increasing the automation level of the device. Regarding the light source structure and installation method, a modular light source design can be employed, enabling flexible adjustment without requiring changes to the mounting method of the entire device. A dual-axis or multi-axis rotation mechanism can also be introduced, allowing the light source to be rotated and adjusted not only horizontally within the ring light source 100 but also vertically for fine-tuning to accommodate complex QR code layouts.
[0050] Please continue to see Figure 1 As shown, according to another embodiment of the present invention, the controller 330 performs an adaptive adjustment mechanism, specifically including: step 1, calculating the error ΔD = D1 - D2, where D1 and D2 are the distances between the two ranging sensors and the QR code distribution area; step 2, controlling the light source to rotate clockwise when ΔD > 0, and controlling the light source to rotate counterclockwise when ΔD < 0; step 3, cyclically rotating with a fixed step size and repeating the ranging until ΔD = 0.
[0051] Specifically, this embodiment uses an adaptive adjustment mechanism based on ranging feedback to enable the light source to intelligently adjust its angle based on real-time ranging data, ensuring that the light source lamp bead distribution area 110 is always accurately aligned with the QR code distribution area, improving the uniformity of illumination, and optimizing the imaging quality of the QR code. Based on the error calculation logic, the controller 330 can accurately analyze the deviation of the light source angle and intelligently adjust the rotation direction so that the QR code area obtains optimal illumination, reducing the uneven illumination caused by angle deviation, and improving the clarity and recognition accuracy of the QR code. The gradual rotation adjustment mode ensures the accuracy and stability of the light source angle correction, avoids overshoot problems caused by too fast adjustment, and makes the light source adjustment more stable and reliable. In addition, the adaptive adjustment mechanism can monitor the status of the light source in real time, ensuring that the light source always maintains the optimal lighting angle even during long-term operation of the device, preventing illumination deviation caused by changes in the external environment (such as vibration, temperature changes or equipment aging), and improving the long-term stability of the system.
[0052] Compared with traditional fixed-angle light sources, this embodiment has dynamic adjustment capabilities, does not require manual intervention, and improves production efficiency. Since the adjustment process adopts a step-by-step correction mode, the light source can complete precise alignment in a relatively short time, avoiding the accumulation of errors caused by adjusting too fast or too slow, and improving the system response speed. In addition, the adaptive adjustment mechanism can also be combined with historical adjustment data to continuously optimize the adjustment strategy during long-term operation. For example, the controller 330 can record the direction, step size, and final alignment status of each adjustment to reduce unnecessary calculation steps in future adjustment processes and improve adjustment efficiency. Furthermore, this mechanism can be combined with an AI optimization algorithm, using machine learning to predict the optimal adjustment path, so that the system can adapt to different types of QR codes and improve the level of intelligence.
[0053] In summary, this implementation ensures that the light source is precisely aligned with the QR code through ranging feedback, error calculation, direction adjustment, and loop optimization, thereby improving illumination uniformity, optimizing QR code imaging quality, and enhancing the system's automation level. This allows the system to maintain efficient and stable operation in areas such as intelligent manufacturing, industrial code scanning, and logistics tracking. Furthermore, the system is highly adaptable, reduces manual intervention, and improves the long-term stability and service life of the system.
[0054] Please continue to see Figure 1 and Figure 3 As shown, according to another embodiment of the present invention, the controller 330 further includes: a controller 330 having an automatic calibration function, setting a maximum number of adjustments, and if it exceeds a preset range X, where X is greater than or equal to zero and X is less than or equal to 0 and is still not aligned, the rotation direction is automatically switched, and the light source angle is locked after the calibration is completed.
[0055] Specifically, this solution adds a rotation direction switching and step size optimization mechanism when the light source adjustment is unsuccessful, ensuring that the light source adjustment does not fall into an invalid adjustment loop, thereby improving alignment efficiency. The automatic calibration process includes the following steps:
[0056] Cumulative calculation of adjustment angle: When the light source is adjusted, the controller 330 continuously monitors the change in the rotation angle of the light source and compares the cumulative adjustment angle with the set maximum adjustment range (such as ±10°).
[0057] Calibration trigger judgment: If the light source is adjusted by more than 10° in a single rotation direction, but the light source alignment condition is still not met (i.e., the lamp bead distribution area 110 is not accurately aligned with the QR code distribution area), the controller 330 will determine that there may be an error in the current adjustment direction, thereby triggering the automatic calibration mode.
[0058] Automatic rotation direction switching: Once the automatic calibration mode is triggered, the controller 330 immediately switches the rotation direction, for example:
[0059] If the light source has rotated clockwise by more than 10°, the controller 330 adjusts the rotation direction to counterclockwise and recalculates the adjustment step size.
[0060] If the light source has rotated counterclockwise by more than 10°, the controller 330 adjusts the rotation direction to clockwise to ensure that the light source is not misaligned due to a wrong direction determination.
[0061] Step size optimization: While adjusting the direction switching, the controller 330 optimizes the adjustment step size based on historical adjustment data, for example, reducing the rotation step size (e.g., 0.5° → 0.2°) to improve the adjustment accuracy and enable the light source to complete the final alignment more precisely.
[0062] Calibration completed and locked: When the light source is successfully aligned with the QR code area through automatic calibration, the controller 330 stops adjusting and locks the light source angle to ensure that the light source maintains the optimal illumination state for a long time and avoids light source deviation due to external interference.
[0063] This solution effectively solves problems such as incorrect adjustment direction or over-adjustment that may occur when adjusting the light source through the automatic calibration function, ensuring that the light source can always accurately align with the QR code area in complex environments, improving lighting uniformity and imaging quality. This solution further optimizes the adjustment logic, and can automatically switch the rotation direction when the adjustment fails, and optimize the step size to improve alignment efficiency and prevent the light source from being repeatedly adjusted due to incorrect direction adjustment or excessive adjustment steps. In addition, the automatic calibration mechanism reduces the requirements for the initial installation accuracy of the light source. Even if there are certain errors in the light source during installation, precise alignment can still be completed through intelligent adjustment, thereby reducing manual debugging costs and improving the adaptability of the system. At the same time, the automatic calibration mode of this solution can continuously monitor the angular state of the light source. Even if the position of the light source changes due to external vibration or aging during long-term operation of the equipment, the optimal lighting state can be restored through regular calibration, thereby improving the long-term stability and reliability of the system. In summary, this embodiment makes light source adjustment more intelligent and stable through mechanisms such as setting the maximum number of adjustments, automatic rotation direction switching, step size optimization and final locking.
[0064] Please continue to see Figure 1 As shown, according to an optional embodiment of the present invention, the mounting frame 500 includes: a frame body 510, a guide rail 530 extending in a vertical direction is provided on the frame body 510, and the inner side of the guide rail 530 has a threaded structure;
[0065] The lead screw 520 is threadedly disposed in the guide rail 530;
[0066] A drive assembly 540 is in driving connection with the lead screw 520 and is used to drive the lead screw 520 to rotate around its axis;
[0067] The mounting platform 550 is fixedly connected to the lead screw 520 , and is used to carry the reading device 600 and realize vertical guidance and lifting along the guide rail 530 when the lead screw 520 rotates.
[0068] Specifically, the mounting frame 500 in this embodiment is used to precisely adjust the vertical position of the reader 600 to accommodate areas with varying heights of QR codes. The frame 510 forms the main support structure of the mounting frame 500, upon which a vertically extending guide rail 530 is mounted. The guide rail 530 is internally provided with a precision threaded structure for threaded engagement with the lead screw 520. The lead screw 520 extends longitudinally through the guide rail 530, forming a stable threaded connection with the threaded structure of the guide rail 530.
[0069] The lower end of lead screw 520 is connected to the output shaft of drive assembly 540 via a coupling. Drive assembly 540 can be a manually driven rocker or a motor. When the output shaft of drive assembly 540 drives lead screw 520 to rotate about its own axis, due to the mating relationship between the threaded structure of lead screw 520 and guide rail 530, lead screw 520 cannot move axially during rotation. Instead, this rotation drives the mounting platform 550, which is fixed to it, to move up and down along guide rail 530, thus achieving the vertical guidance and lifting function of mounting platform 550.
[0070] Mounting platform 550 is a rigid platform with a connecting structure at its bottom, tightly secured to the upper portion of lead screw 520. This ensures that reader 600 is securely positioned and supported. Mounted above the platform, its optical axis aligns with the direction of guide rail 530, ensuring that reader 600 remains perpendicular to the QR code during lifting and lowering, preventing tilt or offset.
[0071] By controlling the start, stop, and rotation of the drive assembly 540, the lead screw 520 can be driven to raise or lower the mounting platform 550, thereby adjusting the height of the reading device 600. This adjustment motion, constrained by the vertical guide rail 530, maintains excellent straightness and repeatability. By adjusting the rotation angle of the lead screw 520, the platform's elevation and displacement can be controlled within a micron range, allowing the focal length of the reading device 600 to precisely align with the position of the QR code surface, ensuring a flat and consistent image capture surface.
[0072] This structure utilizes highly rigid guide rails 530 to ensure structural stability and vibration resistance during the lifting process, preventing image blur or offset during reading. The overall lifting mechanism offers smooth movement and precise positioning, meeting the technical requirements for adaptability to height variations during QR code reading, effectively improving the device's stability and recognition accuracy in practical applications.
[0073] Please continue to see Figure 1 As shown, according to a further embodiment of the present invention, an adjustment structure 800 is further included. The adjustment structure 800 is detachably mounted on the workbench 400 and is fixedly connected to the light source device 700 .
[0074] Specifically, this embodiment provides a set of independent adjustment structures 800 on the workbench 400, which is used to form a fixed connection with the light source device 700 and provide additional spatial positioning and adjustment capabilities. The adjustment structure 800 is installed on the surface of the workbench 400 in a detachable manner, so that it can not only provide stable structural support when needed, but also be conveniently disassembled and assembled during maintenance, replacement or system upgrades, thereby enhancing the flexibility and operability of the equipment. During the installation process, the bottom of the adjustment structure 800 is precisely matched with the connection interface on the workbench 400 through a positioning mechanism, so that it has a reliable installation and positioning function in the horizontal direction. A connecting unit is provided on the upper part of the adjustment structure 800 for firmly fixing the light source device 700 thereon. The light source device 700 is combined with the adjustment structure 800 by means of screws, clips or guide rail 530 slots, and can be installed or disassembled without complicated operations during the assembly process, which facilitates maintenance operations. When the reading system is in operation, the light source device 700 maintains a fixed position with the aid of the adjustment structure 800 and maintains a precise spatial relative relationship with the reading device 600 and the QR code target area, ensuring that the illumination center is consistent with the imaging center, thereby improving imaging consistency and recognition accuracy. At the same time, the modular design of the adjustment structure 800 allows it to be adapted for use on workbenches 400 of different models or shapes, facilitating its promotion and application in multiple scenarios. This structure provides additional support for the light source device 700 and introduces an independently controlled adjustment module into the spatial structural layout, avoiding the difficulty of adjustment caused by the rigid integration of the light source and the workbench 400, thereby optimizing the entire machine's light source arrangement capabilities within the QR code imaging path.
[0075] Furthermore, by providing a detachable adjustment structure 800, the light source device 700 is given independent spatial positioning and adjustment capabilities, making it more flexible and efficient in installation, maintenance, and debugging. This structure not only improves the adaptability of the light source device 700 in different working environments, but also significantly simplifies the on-site assembly process, reduces the dependence on professional tools and operators, and improves the convenience and versatility of the system. The light source device 700 is fixedly connected to the workbench 400 through the adjustment structure 800, achieving mechanical stability support, avoiding light source deviation caused by vibration, external force interference, etc. during operation, and effectively ensuring the stability of the lighting area. Especially in application scenarios with high-frequency switching, batch operations, or long-term operation, the consistency of the light source position can be maintained, thereby improving the repeatability of image acquisition and the accuracy of QR code recognition. At the same time, the adjustment structure 800 serves as the mounting platform 550 of the light source device 700. Its detachability does not affect the integrity of the main structure when a fault occurs, specifications need to be changed, configurations need to be upgraded, or system reconstruction is performed, without having to disassemble the entire device, significantly shortening maintenance time and reducing maintenance costs.
[0076] In addition, the adjustment structure 800 provides a good mechanical interface basis for subsequent light source adjustment functions (such as three-dimensional direction adjustment, fine angle control, etc.), which can be further matched with high-precision mechanical mechanisms or electric adjustment units to expand the design space of the equipment function modules, and enhance the expandability and productization capability of the system.
[0077] Please continue to refer to Figure 1 and Figure 3 As shown, in a possible implementation, the adjustment structure 800 includes: a detachable fixing plate 810, which is installed on the workbench 400; a vertical shaft 820, which is fixedly connected to the fixing plate, and is used to provide vertical direction adjustment support; a first adjustment block 830, which is sleeved on the vertical shaft 820, and can rotate around the vertical shaft 820 and move along the direction of the vertical shaft 820; a horizontal shaft 840, one end of which is connected to the first adjustment block 830, so that it is arranged perpendicular to the vertical shaft 820; and a second adjustment block 850, which can be adjusted in position along the horizontal shaft 840, and the light source device 700 is fixedly connected to the second adjustment block 850.
[0078] Specifically, the present embodiment introduces a multi-dimensional adjustable assembly in the adjustment structure 800 to realize accurate adjustment of the light source device 700 in the spatial position. The detachable fixing plate 810, as the basic installation platform 550 of the entire adjustment mechanism, is fixed on the surface of the workbench 400, and is stably positioned through screws, bolts or positioning hole structures, while having a quick disassembly and assembly function. The vertical shaft 820 is fixed vertically on the fixing plate, and is used to provide support and adjustment path in the vertical direction. The first adjustment block 830 is a hollow structure, which is sleeved outside the vertical shaft 820, can rotate around the vertical shaft 820, realizes angle adjustment of the light source in the horizontal plane, and can slide up and down along the vertical shaft 820 to finely control the height position of the light source. This structure makes the light source illumination angle and illumination height flexible to adjust according to the position of the two-dimensional code. The horizontal shaft 840 is connected to the first adjustment block 830 at one end, and extends perpendicular to the direction of the vertical shaft 820, constituting the second adjustment direction. The horizontal shaft 840 is equipped with the second adjustment block 850, which can slide left and right along the direction of the horizontal shaft 840, and is used to adjust the translation position of the light source in the horizontal direction. The light source device 700 is fixedly installed on the second adjustment block 850, and by means of the above multi-axis movement system, high-precision three-dimensional spatial alignment can be realized. The movements between the adjustment blocks are smooth, and the structure is closely matched, which ensures the adjustment accuracy while maintaining the stability of the overall structure. The user can quickly and reliably finely adjust the position of the light source according to the actual needs through manual sliding or screw fine adjustment, so that the light source is accurately aligned with the two-dimensional code distribution area in the horizontal, vertical and angle directions.
[0079] It should be noted that the multi-dimensional adjustment structure 800 significantly enhances the adjustment flexibility and alignment accuracy of the light source device 700. Through the combination of the vertical axis 820, the horizontal axis 840, and the two adjustment blocks, the light source device 700 achieves full three-dimensional adjustment capability, effectively meeting the lighting alignment requirements of QR codes in different spatial positions. Compared with traditional fixed light source structures, this structure can dynamically adapt to the distribution characteristics of QR codes of varying specifications, layouts, or curved surfaces, improving the device's adaptability in complex working conditions. The light source can be meticulously aligned without changing the main unit structure, avoiding the impact of installation errors, workpiece morphology differences, and other factors on recognition performance. This improves the image clarity and center alignment of the QR code recognition image, enhancing imaging consistency and system reliability. Furthermore, the structure utilizes mechanical sliding and rotating adjustment methods for simple operation and easy maintenance, allowing for rapid on-site light source calibration and repositioning. This makes it particularly suitable for industrial applications where frequent product model changes or significant QR code position changes are required. With its compact overall structure, distinct modules, and flexible assembly, it is an effective solution for implementing high-precision QR code optical recognition adjustment mechanisms.
[0080] Please continue to see Figure 1 and Figure 3 As shown, in some examples of the present invention, in one possible embodiment, a mounting plate 900 is provided on the workbench 400, a plurality of sockets are provided on the mounting plate 900, a pin is provided at the bottom of the detachable fixing plate 810, and the pin is adapted to the socket to realize a detachable positioning connection of the adjustment structure 800.
[0081] This embodiment achieves rapid positioning and stable installation of the adjustment structure 800 by providing a dedicated mounting plate 900 on the workbench 400. The mounting plate 900 is a rigid substrate that is laid flat on the surface of the workbench 400 and is pre-set with a plurality of sockets. These sockets are arranged according to a standard spacing or functional layout and are used to provide reference points for the insertion and positioning of the pins. The detachable fixing plate 810 serves as the basic mounting unit of the adjustment structure 800, and a plurality of pins are provided at its bottom. The size, shape and distribution of the pins match the sockets on the mounting plate 900, enabling precise plug-in and fit. During installation, the operator precisely aligns the pins on the fixing plate with the sockets on the mounting plate 900 and inserts them to complete the initial horizontal positioning of the adjustment structure 800, and achieves stable locking through friction or a clamping structure. The pin-and-hole structure not only ensures the mechanical stability of the adjustment structure 800 during use and prevents position drift caused by external forces, vibrations, etc., but also has the characteristics of quick plug-in and pull-out and no need for screws, greatly improving assembly and disassembly efficiency. When changing scenes, maintaining equipment, or adjusting light source layouts, users can quickly disassemble the entire adjustment structure 800 by simply pulling out a latch, facilitating rearrangement or module replacement. This structure creates a secure yet flexible mounting relationship between the adjustment structure 800 and the workbench 400, ensuring operational reliability and repeatable positioning.
[0082] This embodiment utilizes a pin-socket coupling structure to achieve a removable, fixed connection for the adjustment structure 800, significantly improving assembly efficiency and facilitating on-site maintenance. Compared to traditional bolt-on fastening, the plug-in method requires no tools, saving assembly time and making it particularly suitable for industrial applications requiring modularity, high-frequency replacement, or flexible deployment.
[0083] In addition, the positioning structure has good repeat positioning accuracy and can return to its original position each time it is reinserted, ensuring that the spatial relationship between the light source device 700 relative to the reading device 600 and the QR code area remains unchanged, thereby improving the stability and recognition consistency of the overall system.
[0084] This structure also features features such as anti-misinstallation, anti-slip, and anti-loosening, effectively enhancing the safety and reliability of the device in vibration-prone or continuous operating environments. The entire mounting plate 900 and latch structure offer a simple design, manageable costs, and easy manufacturing, making it suitable for mass production and system rollout, and an ideal solution for efficient installation and flexible adjustment of light source modules.
[0085] In a possible embodiment, a positioning mark 410 is provided on the workbench 400 , and the positioning mark 410 is used to assist in locating the QR code distribution area of the body to be identified to ensure that the QR code distribution area and the reading device 600 are located on the same optical axis.
[0086] This embodiment provides a visual reference benchmark for the placement of the body to be identified by setting clear positioning markings 410 on the surface of the workbench 400, so as to assist the user in quickly and accurately aligning the QR code distribution area when placing the workpiece. The positioning markings 410 can be formed by laser etching, screen printing or engraving, and are usually linear, cross-shaped, frame-shaped or arrow-shaped identification symbols, whose centers or key alignment lines are strictly aligned with the optical axis center of the reading device 600. During operation, the user aligns the QR code area on the body to be identified with the corresponding marking position on the workbench 400, and ensures that the QR code is within the optimal imaging range of the reading device 600 without the need for additional measuring tools or auxiliary devices. This method is particularly suitable for standardized workpieces with fixed QR code positions or known position ranges. The marking guidance can significantly speed up the workpiece clamping efficiency and reading preparation time.
[0087] At the same time, the marking line, the illumination area of the light source device 700, and the image acquisition path together constitute an integrated positioning visual guidance system, ensuring that the QR code area, the illumination center, and the image acquisition channel are strictly coaxial, effectively avoiding problems such as image distortion, edge blur, or off-axis recognition.
[0088] By setting the positioning mark 410, the operator's workpiece alignment efficiency before QR code reading is effectively improved, and the probability of QR code misalignment, eccentricity or reading failure is significantly reduced. This visually assisted alignment method is intuitive and easy to use, suitable for automated assembly line operations or manual assisted placement scenarios, and improves the overall system's ease of use and batch processing capabilities. The marking design takes into account both functionality and durability. It will not fall off due to wear or cleaning during long-term use, ensuring the stability of long-term recognition effects. At the same time, the marking structure does not require the addition of additional sensors or image recognition programs. It has a simple structure, low implementation cost, and strong stability. It is an effective auxiliary means to achieve high-precision QR code alignment control.
[0089] This method optimizes the spatial layout and operation interface of the QR code reading system, enhances the standardization and consistency of the recognition process, and is particularly suitable for high-precision visual recognition systems with strict requirements on two-dimensional optical paths.
[0090] Throughout this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" indicate that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, illustrative uses of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0091] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.
Claims
1. A device for reading CG two-dimensional codes, characterized in that: include: A workbench, the workbench being used to place the body to be identified; A mounting frame, the mounting frame is fixedly mounted on the workbench, and the mounting frame is a vertical lifting structure; a reading device, the reading device being fixedly mounted on the mounting frame; A light source device, the light source device can be adjusted and mounted on the workbench, an annular light source is provided inside the light source device, the annular light source includes a lamp bead distribution area and a non-light source area, and the area ratio of the lamp bead distribution area to the non-light source area is 2:1; a conical light-concentrating device, wherein the bottom of the conical light-concentrating device is fixedly connected to the annular light source, the top is provided with a light-transmitting hole, and the inner surface is provided with a reflective surface for converting direct light into diffusely reflected light; The distance between the annular light source and the QR code imaging target is 10-20 mm. The mounting bracket is adjusted in a vertical direction, and the light source device is adjusted in a three-dimensional direction. The light source device is provided with a fine-tuning structure for adjusting the alignment of the lamp beads of the annular light source with the QR code distribution area. The fine-tuning structure includes: a driving member, the driving member being used to drive the annular light source to rotate around a central axis; A detection component, comprising at least two distance measuring sensors based on TOF distance measuring technology, wherein the two detection components are respectively arranged at the junction of the lamp bead distribution area and the non-light source area; A controller, the controller being electrically connected to the detection element and the driving element, respectively, and configured to control the adjustment of the light source angle according to the distance measurement result so that the lamp bead distribution area is aligned with the QR code distribution area; Wherein, a light source detection channel is provided inside the driving component, the detecting component and the controller; The controller executes an adaptive adjustment mechanism, specifically including: Step 1: Calculate the error ΔD = D1 - D2, where D1 and D2 are the distances between the two ranging sensors and the QR code distribution area; Step 2: When ΔD > 0, control the light source to rotate clockwise; when ΔD < 0, control the light source to rotate counterclockwise; Step 3: Circularly rotate with a fixed step size and repeat the distance measurement until ΔD = 0; Furthermore, the controller is provided with an automatic calibration function, and the automatic calibration function comprises the following steps: Cumulative calculation of adjustment angle: when the controller executes the adaptive adjustment mechanism, the controller continuously monitors the rotation angle of the light source and compares the cumulative adjustment angle with the set maximum adjustment range; Calibration trigger judgment: If the light source is adjusted beyond the maximum adjustment range in a single rotation direction and the lamp bead distribution area is still not aligned with the QR code distribution area, the controller triggers the automatic calibration mode; Automatic rotation direction switching: once the automatic calibration mode is triggered, the controller switches the rotation direction; Step length optimization: While adjusting the direction switching, the controller optimizes the adjustment step length based on historical adjustment data to complete the alignment of the light source; Calibration completed and locked: When the light source is aligned with the QR code area through the automatic calibration mode, the controller stops adjusting and locks the light source angle; When in the detection state, the light source device, the reading device and the two-dimensional code distribution area are located on the same light path to improve the recognition accuracy and imaging quality of the two-dimensional code.
2. The device for reading a CG two-dimensional code according to claim 1, characterized in that: The mounting frame comprises: A frame body, wherein the frame body is provided with a guide rail extending in a vertical direction, and the inner side of the guide rail has a threaded structure; A lead screw, threadedly arranged in the guide rail, for driving the assembly to rise and fall; A drive assembly, drivingly connected to the lead screw, for driving the lead screw to rotate around its axis; The mounting platform is fixedly connected to the lead screw and is used to carry the reading device and realize vertical guidance and lifting along the guide rail when the lead screw rotates.
3. The device for reading a CG two-dimensional code according to claim 1, wherein: It also includes an adjustment structure, which is detachably mounted on the workbench and fixedly connected to the light source device.
4. The device for reading a CG two-dimensional code according to claim 3, wherein: The adjustment structure includes: a detachable fixing plate, the detachable fixing plate being mounted on the workbench; A vertical shaft, the vertical shaft is fixedly connected to the fixing plate, and the vertical shaft is used to provide adjustment support in the vertical direction; a first adjusting block, the first adjusting block being sleeved on the vertical axis and being capable of rotating around the vertical axis and moving along the vertical axis; a horizontal axis, one end of which is connected to the first adjusting block so as to be arranged perpendicular to the vertical axis; The second adjusting block can slide along the horizontal axis to adjust its position, and the light source device is fixedly connected to the second adjusting block.
5. The device for reading a CG two-dimensional code according to claim 4, characterized in that: The workbench is provided with a mounting plate, which is provided with a plurality of sockets. The bottom of the detachable fixing plate is provided with a latch, which is adapted to the sockets to realize the detachable positioning connection of the adjustment structure.
6. The device for reading a CG two-dimensional code according to claim 1, wherein: Positioning markings are provided on the workbench, and the positioning markings are used to assist in positioning the two-dimensional code distribution area of the body to be identified, so as to ensure that the two-dimensional code distribution area and the reading device are located on the same optical axis.
Citation Information
Patent Citations
Group code reading and scanning system for logistics
CN110147692A
Two -dimensional code check out test set
CN205176871U
Two -dimensional code recognition machine
CN205263826U
LED annular light source
CN212456334U