A smart lens for barcode scanning

Through the multi-sub-lens and automatic adjustment mechanism of the smart lens, the problem of insufficient wrinkle barcode recognition efficiency and accuracy in the existing technology is solved, and efficient and low-cost barcode recognition is achieved, which is suitable for logistics and other industries.

CN118555343BActive Publication Date: 2024-09-20SICHUAN DULE PHOTOELECTRIC TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411012741.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-09-20
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing barcode scanning technology has insufficient recognition efficiency and accuracy when faced with wrinkled barcodes, especially in high-humidity environments, resulting in scanning failures and increased hardware costs and maintenance difficulties.

Method used

Design a smart lens for barcode scanning, which uses multiple sub-lenses to collect optical signals at different positions of the barcode, and automatically adjusts the angle of the sub-lenses through adjustment components. It combines the preliminary imaging module and the temporary storage module for image comparison to determine and correct the wrinkle position. , generate a complete barcode image.

Benefits of technology

It significantly improves the accuracy and efficiency of barcode recognition, reduces hardware costs, enhances the robustness and flexibility of the equipment, reduces recognition errors caused by wrinkles, and is suitable for industries with frequent scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555343B
    Figure CN118555343B
Patent Text Reader

Abstract

The present invention discloses a smart lens for barcode scanning in the field of barcode scanning technology, comprising a main lens barrel; an adjustment plate is arranged inside the main lens barrel; a plurality of sub-lenses arranged in an array and an adjustment component for adjusting the angle of the sub-lenses are arranged on the adjustment plate; the sub-lenses are used to collect optical signals respectively; and also comprises a light source, a preliminary imaging module, a temporary storage module and a control module; the light source is used to provide the light required for scanning the barcode; the preliminary imaging module is used to integrate the complete barcode image; the temporary storage module is used to obtain and temporarily store the latest successfully scanned barcode image; the control module is used to determine whether wrinkles appear in the barcode image when scanning fails, and if wrinkles appear in the barcode image, determine the specific position of the wrinkles, and control the adjustment component to adjust the corresponding sub-lens angle until the preliminary imaging module integrates the complete barcode image. This solution utilizes multiple sub-lenses and an intelligent adjustment mechanism to achieve high-precision barcode recognition while maintaining a low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of barcode scanning, and in particular is a smart lens for barcode scanning. Background Art

[0002] As an important part of modern automated management, barcode scanning technology has been widely used in many fields such as retail, logistics, manufacturing and medical industries. Its high efficiency, accuracy and economy make barcodes an important means to achieve fast data reading and object recognition. However, in practical applications, barcode scanning lenses often encounter various challenges during the scanning process. One of the most difficult problems is the wrinkle problem of barcodes. Despite the continuous advancement of barcode scanning technology, effective solutions for wrinkled barcodes are still insufficient. In the process of logistics tracking, the wrinkles of cargo barcodes may cause scanning failures and affect logistics efficiency. Especially in high humidity environments, the moisture absorption and swelling of labels further aggravate the wrinkle problem.

[0003] In the prior art, high-performance barcode scanners are mainly used to identify partially deformed or wrinkled barcodes. Although the above method can identify partially deformed and wrinkled barcodes, it requires higher resolution and more powerful image processing capabilities, which means that more advanced hardware components are needed. This not only increases costs, but may also lead to larger equipment size, increased power consumption, and increased maintenance difficulty. Therefore, there is an urgent need for a smart lens for barcode scanning that can improve the recognition efficiency and accuracy of wrinkled barcodes without significantly increasing hardware costs. Summary of the invention

[0004] In order to solve the above problems, the purpose of the present invention is to provide a smart lens for barcode scanning, which can meet the needs for efficient and accurate barcode recognition, and can also effectively reduce costs and improve user experience.

[0005] In order to achieve the above object, the technical solution of the present invention is as follows:

[0006] A smart lens for barcode scanning comprises a main lens barrel; an adjustment plate is arranged in the main lens barrel; a plurality of sub-lenses arranged in an array and an adjustment component for adjusting the angle of the sub-lenses are arranged on the adjustment plate; the sub-lenses are used to respectively collect optical signals reflected from different positions of the same barcode;

[0007] It also includes a light source, a preliminary imaging module, a temporary storage module and a control module; the light source is used to provide the light required for scanning the barcode; the preliminary imaging module is used to obtain the optical signals collected by each sub-lens and integrate them into a complete barcode image; the temporary storage module is used to obtain and temporarily store the latest successfully scanned barcode image; the control module is used to compare the barcode image integrated by the preliminary imaging module with the barcode image in the temporary storage module when the scan fails, to determine whether wrinkles appear in the barcode image, if wrinkles appear in the barcode image, to determine the specific position of the wrinkles, and control the adjustment component to adjust the corresponding sub-lens angle until the preliminary imaging module can integrate a complete barcode image.

[0008] The above scheme has the following beneficial effects:

[0009] 1. This solution uses a light source to emit light. When the light contacts the barcode, it will be reflected. The sub-lens collects the optical signals reflected by each position of the barcode, and then the preliminary imaging module integrates the optical signals collected by each sub-lens to generate a continuous barcode image. When the scan fails, the control module compares the temporary barcode image stored in the temporary storage module with the barcode image that failed to be scanned, judges and determines the position of the wrinkle, and adjusts the corresponding sub-lens angle to enable it to collect the barcode information at the position blocked by the wrinkle, thereby more effectively capturing and identifying the barcode information.

[0010] Compared with the existing technology, this solution significantly improves the accuracy and efficiency of barcode recognition by splitting the barcode scanning process into multiple sub-lenses to scan different positions of the barcode respectively, and integrating the results of these independent scans to form a complete barcode image. In particular, when the barcode is wrinkled or deformed, the angle of the sub-lens is intelligently adjusted to ensure that the barcode information at the wrinkles can also be effectively captured, thereby avoiding scanning failure. Traditional high-precision barcode scanning equipment is often expensive, and this solution uses multiple sub-lenses and intelligent adjustment mechanisms to achieve high-precision barcode recognition while maintaining a low cost. This is of great significance for occasions where frequent barcode scanning is required, such as logistics, retail and other industries.

[0011] 2. In this solution, when the barcode is wrinkled or blocked during scanning, resulting in recognition failure, the control module can automatically compare the temporarily stored barcode image with the current scanned image, determine the wrinkle position, and automatically adjust the angle of the corresponding sub-lens to obtain the barcode information blocked by the wrinkle. This adaptive adjustment capability significantly improves the robustness and flexibility of barcode scanning.

[0012] Furthermore, the control module determines whether the barcode has wrinkles based on the following logic: the barcode image integrated by the preliminary imaging module is compared with the size of the barcode carrier of the barcode image in the temporary storage module. If the size difference between the two is greater than a first preset value, it is determined that the barcode has wrinkles; otherwise, the length of the barcode in the barcode image is compared. If the length difference between the two is greater than a second preset value, it is determined that the barcode has wrinkles.

[0013] Beneficial effects: In industries such as logistics that require batch scanning of barcodes, the specifications of barcodes are generally unified, which facilitates quick scanning. Through a double verification mechanism (first comparing the barcode carrier size, then comparing the barcode length), it is possible to more accurately determine whether the barcode has wrinkles. This comprehensive judgment method is more reliable than a single-dimensional judgment, reducing misjudgments caused by a single factor.

[0014] Furthermore, the control module determines the position of the wrinkle through the following logic: comparing the barcode image integrated by the preliminary imaging module with the barcode image in the temporary storage module, respectively obtaining the positions of the black bars and blanks in the two images, and arranging and comparing them one by one according to the minimum width of the black bars or blanks in the barcode image in the temporary storage module; if the width of the black bar or blank at the Mth position in the barcode image integrated by the preliminary imaging module is N times the minimum width, when N is an integer, it indicates that the barcode at position M in the barcode image integrated by the preliminary imaging module has no wrinkle; when N is a non-integer, it indicates that the barcode at position M in the barcode image integrated by the preliminary imaging module has a wrinkle.

[0015] Beneficial effect: By accurately comparing the width of black bars and blanks in the barcode image and comparing it with the latest successfully scanned image in the temporary storage module, the wrinkled part of the barcode can be identified very accurately, so that the angle of the corresponding sub-lens can be adjusted separately to optimize the scanning effect of the barcode in this area. This instant feedback and adjustment mechanism helps to reduce recognition errors caused by wrinkles and improve scanning accuracy and efficiency.

[0016] Furthermore, the barcode images integrated by the preliminary imaging module include barcode images when scanning is successful and barcode images when scanning fails.

[0017] Beneficial effect: When scanning fails, the control module can quickly compare the image of the failed scan with the image of the successful scan, so as to quickly locate the problem.

[0018] Furthermore, the light source is a laser diode.

[0019] Beneficial effects: Laser diodes can produce highly focused, directional beams, which allows the light to be more accurately irradiated on the barcode during scanning, reducing scattering and reflection, thereby improving the clarity and contrast of the barcode image.

[0020] Furthermore, the control module is also used to determine whether the cause of failure is due to reflection when scanning fails; if a light spot appears in the barcode image integrated by the preliminary imaging module, the cause of the scanning failure is determined to be reflection, and the adjustment component is controlled to adjust the deflection angle of the sub-lens until the light spot disappears.

[0021] Beneficial effect: By identifying and dealing with reflection problems, the number of scanning failures caused by reflections can be reduced. Once a light spot is detected, the control module immediately adjusts the angle of the sub-lens to effectively prevent light from being directly reflected into the lens, thereby ensuring the quality of the barcode image and improving the success rate of scanning.

[0022] Furthermore, the control module is also used to determine whether the reason for the failure is that the barcode is printed on a curved carrier when the scan fails; obtain the width W of all black bars or blanks in the barcode image integrated by the preliminary imaging module, if there is no linear relationship between the widths W of all black bars or blanks, then it is determined that the scan failure is caused by the barcode being printed on a curved carrier, and the adjustment component is controlled to adjust the angle of the corresponding sub-lens until the scan is successful.

[0023] Beneficial effect: When scanning fails, the width W of the black bars or blanks is checked to see if they are linearly related. For a barcode on a flat carrier, the widths of the bars and blanks are usually regularly linearly spaced, but this linear relationship may be broken due to the curvature of the barcode on a curved carrier. If the widths W of all black bars or blanks are not linearly related, it is determined that the scanning failure is indeed caused by the barcode being printed on a curved carrier. In this way, the control module can quickly determine the cause and take corresponding measures, by detecting the influence of the barcode carrier (such as the carrier is a curved surface) on the scanning process, and adjusting the angle of the sub-lens to adapt to this change, thereby improving the accuracy of scanning.

[0024] Furthermore, the adjustment component includes a plurality of adjustment slots provided on the adjustment plate, and the adjustment slots correspond to the sub-lenses one by one; adjustment blocks and motors are respectively provided in the adjustment slots, and the adjustment blocks rotate in cooperation with the adjustment slots; the motor is used to drive the adjustment blocks to rotate; movable slots are provided in the adjustment blocks; electromagnets are provided in the side walls of the movable slots; the sub-lenses are respectively placed in the movable slots, and both sides of the sub-lenses are rotationally connected to the movable slots, and magnetized sheets are provided at the ends of the sub-lenses; the electromagnets are used to generate magnetic fields in different directions to deflect the magnetized sheets.

[0025] Beneficial effect: By driving the adjustment block to rotate with a motor, combined with the different directions of magnetic fields generated by the electromagnet in the movable slot on the magnetized sheet, the sub-lens can be adjusted slightly or significantly at any angle in space, thereby achieving a higher adjustment accuracy.

[0026] Furthermore, initially, all sub-lenses maintain a preset tilt angle.

[0027] Benefits: In many cases, scanning at an angle (i.e., the reflected light is at an angle to the barcode, rather than perfectly perpendicular) can provide better results. This helps reduce reflections and ensures that the scan light fully covers the barcode.

[0028] Furthermore, a lens is arranged at the entrance of the main lens barrel.

[0029] Beneficial effect: The lens can collect more emitted light from the barcode and direct it to the sub-lens, which helps to improve the scanning success rate in low-light environments and reduce recognition failures caused by insufficient light. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 The figure is a three-dimensional schematic diagram of a smart lens for barcode scanning according to the present invention.

[0031] Figure 2 for Figure 1 Side view of.

[0032] Figure 3 for Figure 1 Front view of .

[0033] Figure 4 for Figure 2 Middle AA section view.

[0034] Figure 5 for Figure 4 The M in the middle are partial enlarged schematic diagrams.

[0035] Figure 6 The system block diagram of a smart lens for barcode scanning of the present invention.

[0036] The reference numerals in the drawings of the specification include: main lens barrel 1, sub-lens 2, adjustment plate 3, adjustment slot 301, motor 302, adjustment block 303, movable slot 304, electromagnet 305, magnetization sheet 306, lens 4. DETAILED DESCRIPTION

[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0038] In the description of the present invention, it is to be understood that the terms “longitudinal”, “lateral”, “vertical”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside” and “outside” etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0039] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0040] The following is further described in detail through specific implementation methods:

[0041] The embodiment is basically as follows Figure 1-Figure 6 As shown:

[0042] A smart lens for barcode scanning comprises a main lens barrel 1; in order to better capture light, a lens 4 is bonded and fixed at the entrance of the main lens barrel 1; an adjustment plate 3 is bonded and fixed inside the main lens barrel 1; a plurality of sub-lenses 2 arranged in an array and an adjustment component for adjusting the angle of the sub-lenses 2 are arranged on the adjustment plate 3; the sub-lenses 2 are used to respectively collect optical signals reflected from different positions of the same barcode; in the present embodiment, at the initial stage, all the sub-lenses 2 maintain a preset tilt angle.

[0043] Specifically, the adjustment component includes a plurality of adjustment slots 301 provided on the adjustment plate 3, and the adjustment slots 301 correspond to the sub-lenses 2 one by one; the adjustment slots 301 are respectively provided with adjustment blocks 303 and motors 302, and the adjustment blocks 303 are rotatably matched with the adjustment slots 301; the motor 302 is used to drive the adjustment blocks 303 to rotate; the adjustment blocks 303 are provided with movable slots 304; an electromagnet 305 is bolted to the side wall of the movable slot 304; the sub-lenses 2 are respectively placed in the movable slots 304, and the two sides of the sub-lens 2 are rotatably connected to the side walls of the movable slots 304 through a rotating shaft, and the ends of the sub-lenses 2 are bonded and fixed with magnetizing sheets 306, which are iron sheets that have been magnetized, so that when the electromagnet 305 generates magnetic fields in different directions, the magnetizing sheets 306 can be attracted or repelled; the electromagnet 305 is used to generate magnetic fields in different directions to deflect the magnetizing sheets 306.

[0044] It also includes a light source, a preliminary imaging module, a temporary storage module and a control module;

[0045] The light source is used to provide the light required for scanning the barcode; specifically, the light source adopts a laser diode, which can emit a laser beam of a specific wavelength, which is reflected after being irradiated onto the barcode.

[0046] The preliminary imaging module is used to obtain the optical signals collected by each sub-lens 2 and integrate them into a complete barcode image; the barcode image integrated by the preliminary imaging module includes the barcode image when the scanning is successful and the barcode image when the scanning fails.

[0047] The temporary storage module is used to obtain and temporarily store the latest successfully scanned barcode image, that is, the successfully scanned barcode image after integration by the preliminary imaging module. After each successful scan, the temporary storage module will update the barcode image in real time; the control module is used to compare the barcode image integrated by the preliminary imaging module with the barcode image in the temporary storage module when the scan fails, to determine whether wrinkles appear in the barcode image. If wrinkles appear in the barcode image, the specific position of the wrinkles is determined, and the motor 302 is controlled to adjust the corresponding sub-lens 2 angle until the preliminary imaging module can integrate a complete barcode image.

[0048] Specifically, when the control module determines whether the barcode has wrinkles: the barcode image integrated by the preliminary imaging module is compared with the size of the barcode carrier of the barcode image in the temporary storage module. If the size difference between the two is greater than a first preset value, it is determined that the barcode has wrinkles; otherwise, the length of the barcode in the barcode image is compared. If the length difference between the two is greater than a second preset value, it is determined that the barcode has wrinkles.

[0049] When the control module determines the position of the wrinkle: the barcode image integrated by the preliminary imaging module is compared with the barcode image in the temporary storage module, the positions of the black bars and blanks in the two images are obtained respectively, and the positions are arranged and compared one by one according to the minimum width of the black bars or blanks in the barcode image in the temporary storage module. If the width of the black bar or blank at the Mth position in the barcode image integrated by the preliminary imaging module is N times the minimum width, when N is an integer, it indicates that the barcode at the Mth position in the barcode image integrated by the preliminary imaging module has no wrinkle, and when N is a non-integer, it indicates that the barcode at the Mth position in the barcode image integrated by the preliminary imaging module has a wrinkle.

[0050] The control module is also used to determine whether the failure is caused by reflection when scanning fails; if a light spot appears in the barcode image integrated by the preliminary imaging module, the reason for the scanning failure is determined to be reflection, and the motor 302 is controlled to adjust the deflection angle of the sub-lens 2 until the light spot disappears.

[0051] The control module is also used to determine whether the reason for the failure is that the barcode is printed on a curved carrier when the scan fails; obtain the width W of all black bars or blanks in the barcode image integrated by the preliminary imaging module. If there is no linear relationship between the widths W of all black bars or blanks, it is determined that the scan failure is caused by the barcode being printed on a curved carrier, and the motor 302 is controlled to adjust the angle of the corresponding sub-lens 2 until the scan is successful.

[0052] The specific implementation process is as follows:

[0053] For example, when the device is used to scan barcodes in a warehouse inspection center, the laser diode emits a laser beam of a specific wavelength to illuminate the logistics barcode to be scanned. The sub-lenses 2 arranged in an array respectively collect the optical signals reflected from different positions of the barcode (of the same barcode) to ensure full coverage of the barcode area.

[0054] The preliminary imaging module receives the optical signal from the sub-lens 2 and quickly integrates it into a complete barcode image A.

[0055] If the scan is successful, the temporary storage module will temporarily store the barcode image A when the scan is successful; when the barcode scan on the next item fails, the control module will determine the reasons for the scan failure from three aspects and adjust the deflection direction and angle of the corresponding sub-lens 2. The adjustment of the sub-lens 2 corresponding to each situation is different. The specific process is as follows:

[0056] Wrinkle detection and treatment:

[0057] Obtain the barcode image B that failed to be scanned. The control module first compares the size of the barcode carrier in the barcode image (specifically including the barcode and the barcode carrier). In this embodiment, the barcode carrier is specifically a sticker to determine whether wrinkles appear. By calculating the size difference between the sticker in the barcode image A and the sticker in the barcode image B, if the size difference is not less than the first preset value, it is determined that wrinkles appear in the barcode image B, otherwise the next step of determination is performed. By calculating the length difference between the barcode in the barcode image A and the barcode in the barcode image B, it is further determined whether wrinkles appear. If the length difference between the two barcodes is greater than the second preset value, it means that wrinkles appear, causing the barcode to shorten, and it is determined that wrinkles appear in the barcode.

[0058] When the control module determines that wrinkles appear, the control module will determine the specific position of the wrinkles, thereby determining the deflection angle and direction of the sub-lens 2.

[0059] Specifically, the minimum width value of all black bars or blanks is found from the barcode image A of the temporary storage module as the reference width.

[0060] The width of each black bar or blank in the barcode image B integrated by the preliminary imaging module is compared with the reference width one by one.

[0061] The width values ​​are aligned and compared according to their relative position in the barcode (from left to right or from right to left).

[0062] For each position M (ie, each black bar or blank) in the preliminary imaging module image, the value of N (ie, the current width divided by the reference width) is calculated.

[0063] Determine whether N is an integer:

[0064] If N is an integer, it means that the width of the black bar or blank space at this position is an integer multiple of the reference width, and wrinkles may not occur or wrinkles do not affect the width measurement. Therefore, it is judged that no wrinkles occur at this position.

[0065] If N is a non-integer, it means that the width of the black bar or blank space at that position is not an integer multiple of the reference width. This is usually because the barcode is wrinkled at that position, causing the width to change, so it is determined that wrinkles have occurred at that position.

[0066] The control module records the judgment results, including the positions where wrinkles occur and the degree of wrinkles (estimated by the degree of deviation of N).

[0067] This information is fed back to the control module so that the control module can adjust the angle of the corresponding sub-lens 2 in a targeted manner to optimize the scanning effect of the barcode in the area.

[0068] The control module drives the motor 302 to rotate the adjustment block 303 according to the position and degree of the wrinkles, and changes the deflection angle of the sub-lens 2 through the electromagnet 305. Specifically, for example, if the wrinkles are tilted from the left side of the barcode to the right, the sub-lens 2 at the corresponding position is adjusted to align with the gap of the wrinkles, and rescans from right to left.

[0069] Repeat the scanning process and perform image integration and comparison again until the scan is successful.

[0070] Reflective Treatment:

[0071] The control module identifies whether reflection occurs by detecting whether a light spot appears in the barcode image B, and automatically adjusts the angle of the sub-lens 2 through the motor 302 and the electromagnet 305 until the light spot disappears.

[0072] Curved surface carrier processing:

[0073] If the barcode information cannot be successfully decoded during the scanning process, the control module determines that the scanning has failed, and analyzes the integrated barcode image B to measure the width W of all black bars and blanks.

[0074] Compare these width values ​​to check if there is a linear relationship between them. On a flat carrier, since the barcode is arranged in a straight line, the width of the black bars and blanks usually presents a regular linear interval. On a curved carrier, due to the influence of curvature, this linear relationship will be broken, resulting in irregular changes between the width values.

[0075] If the widths W of all black bars or blanks do not show a linear relationship between each other, the reason for the scanning failure is that the barcode is printed on a curved carrier.

[0076] Once the cause of the failure is determined, the control module activates the motor 302 and the electromagnet 305 to automatically adjust the angle of the sub-lens 2 to adapt to the curvature of the curved carrier. This adjustment process may be gradual, by trying different angles multiple times until an optimal angle is found that can successfully scan the barcode.

[0077] The above is only an embodiment of the present invention, and the common knowledge such as the known specific structure and / or characteristics in the scheme is not described in detail here. It should be pointed out that for those skilled in the art, several deformations and improvements can be made without departing from the structure of the present invention, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A smart lens for barcode scanning, Features: It comprises a main lens barrel; an adjustment plate is arranged in the main lens barrel; a plurality of sub-lenses arranged in an array and an adjustment component for adjusting the angle of the sub-lenses are arranged on the adjustment plate; the sub-lenses are used to respectively collect optical signals reflected from different positions of the same barcode; It also includes a light source, a preliminary imaging module, a temporary storage module and a control module; the light source is used to provide the light required for scanning the barcode; the preliminary imaging module is used to obtain the optical signals collected by each sub-lens and integrate them into a complete barcode image; the temporary storage module is used to obtain and temporarily store the latest successfully scanned barcode image; the control module is used to compare the barcode image integrated by the preliminary imaging module with the barcode image in the temporary storage module when the scan fails, to determine whether wrinkles appear in the barcode image, if wrinkles appear in the barcode image, to determine the specific position of the wrinkles, and control the adjustment component to adjust the corresponding sub-lens angle until the preliminary imaging module can integrate a complete barcode image.

2. The smart lens for barcode scanning according to claim 1, Features: The control module determines whether the barcode has wrinkles based on the following logic: the barcode image integrated by the preliminary imaging module is compared with the size of the barcode carrier of the barcode image in the temporary storage module. If the size difference between the two is greater than a first preset value, it is determined that the barcode has wrinkles; otherwise, the length of the barcode in the barcode image is compared. If the length difference between the two is greater than a second preset value, it is determined that the barcode has wrinkles.

3. The smart lens for barcode scanning according to claim 2, Features: The control module determines the position of the wrinkle through the following logic: the barcode image integrated by the preliminary imaging module is compared with the barcode image in the temporary storage module, the positions of the black bars and blanks in the two images are respectively obtained, and the positions are arranged and compared one by one according to the minimum width of the black bars or blanks in the barcode image in the temporary storage module. If the width of the black bar or blank at the Mth position in the barcode image integrated by the preliminary imaging module is N times the minimum width, when N is an integer, it indicates that the barcode at the Mth position in the barcode image integrated by the preliminary imaging module has no wrinkle, and when N is a non-integer, it indicates that the barcode at the Mth position in the barcode image integrated by the preliminary imaging module has a wrinkle.

4. The smart lens for barcode scanning according to claim 3, Features: The barcode images integrated by the preliminary imaging module include barcode images when scanning is successful and barcode images when scanning fails.

5. The smart lens for barcode scanning according to claim 4, Features: The light source is a laser diode.

6. The smart lens for barcode scanning according to claim 5, Features: The control module is also used to determine whether the cause of the failure is reflection when the scan fails; if a light spot appears in the barcode image integrated by the preliminary imaging module, the cause of the scan failure is determined to be reflection, and the adjustment component is controlled to adjust the deflection angle of the sub-lens until the light spot disappears.

7. The smart lens for barcode scanning according to claim 6, Features: The control module is also used to determine whether the reason for the failure is that the barcode is printed on a curved carrier when the scan fails; obtain the width W of all black bars or blanks in the barcode image integrated by the preliminary imaging module. If there is no linear relationship between the widths W of all black bars or blanks, it is determined that the scan failure is caused by the barcode being printed on a curved carrier, and the adjustment component is controlled to adjust the angle of the corresponding sub-lens until the scan is successful.

8. The smart lens for barcode scanning according to claim 7, Features: The adjustment component includes a plurality of adjustment slots on the adjustment plate, and the adjustment slots correspond to the sub-lenses one by one; the adjustment slots are respectively provided with adjustment blocks and motors, and the adjustment blocks rotate in cooperation with the adjustment slots; the motor is used to drive the adjustment blocks to rotate; the adjustment blocks are provided with movable slots; the side walls of the movable slots are provided with electromagnets; the sub-lenses are respectively placed in the movable slots, and both sides of the sub-lenses are rotationally connected to the movable slots, and magnetized sheets are provided at the ends of the sub-lenses; the electromagnets are used to generate magnetic fields in different directions to deflect the magnetized sheets.

9. The smart lens for barcode scanning according to claim 8, Features: Initially, all sub-lenses maintain a preset tilt angle.

10. The smart lens for barcode scanning according to claim 9, Features: A lens is arranged at the entrance of the main lens barrel.

Citation Information

Patent Citations

  • Imaging device having light field image sensor

    CN104137117A

  • Binocular barcode reading equipment suitable for arc-shaped container

    CN106845301A

  • Two-dimensional code recognition method, mobile terminal and storage medium

    CN109190436A

  • Bar code recognition device based on many camera lenses

    CN204706039U

  • Equipment for scanning and quickly identifying large-format bar code at any position

    CN219085431U