Code reader and barcode recognition system

By directly driving the rotating cam with a drive motor, the mechanical structure of the barcode reader is simplified, solving the problems of large size and complex structure in existing technologies, and realizing miniaturization and efficient barcode recognition.

CN224052646UActive Publication Date: 2026-03-27SHENZHEN YANXIANG JINMA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The focusing devices of existing industrial barcode readers are large and complex, making it difficult to meet the miniaturization requirements, especially in space-constrained application scenarios.

Method used

The system uses a drive motor to directly drive a rotating cam, which in turn moves the module bracket to adjust the distance between the image acquisition module and the lens, thus achieving focusing. This simplifies the mechanical structure and reduces transmission links and accumulated errors.

Benefits of technology

It significantly reduces the overall size of the focusing device, has a compact structure, is suitable for small applications with limited space, and improves the success rate and efficiency of barcode recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224052646U_ABST
    Figure CN224052646U_ABST
Patent Text Reader

Abstract

The utility model discloses a code reader and a bar code identification system. The code reader comprises a housing; the lens and the image acquisition module are respectively arranged in the shell; the module support is movably arranged in the machine shell, and the image acquisition module is installed on the module support; the driving mechanism is arranged in the machine shell, the driving mechanism comprises a driving motor and a rotating cam connected with an output shaft of the driving motor, and the rotating cam abuts against the module support; the driving motor is used for driving the rotating cam to rotate, and rotation of the rotating cam drives the module support to move so as to adjust the distance of the image acquisition module relative to the lens. The code reader of the utility model adopts the structural design that the driving motor directly drives the rotating cam, and the rotating cam directly abuts against the module support, and the module support is driven to move through the rotation of the rotating cam so as to adjust the distance between the image acquisition module and the lens, thereby realizing the focusing function. The design replaces a traditional multi-gear transmission mode, and the overall size of the focusing device is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to the technical field of code reader, especially relates to a code reader and bar code identification system. BACKGROUND

[0002] In product automation detection, industrial intelligent code reader controls the running state such as pipeline start-stop through reading product bar code information, realizes automation detection and quality control. Code reader needs to focus according to product difference, and the existing focusing mode mainly moves up and down the lens base by increasing the base to the lens, drives gear set by motor, realizes focusing. This mode adopts multiple gear transmission, and the focusing device is large in size, not applicable to small application scenarios, and cannot well meet the miniaturization requirement of industrial code reader on focusing. SUMMARY

[0003] The utility model discloses a code reader and bar code identification system, which can solve the above technical problems.

[0004] The utility model discloses a code reader and bar code identification system, which can solve the above technical problems.

[0005] A code reader comprises:

[0006] A shell;

[0007] A lens and an image acquisition module are arranged in the shell respectively;

[0008] A movable module support is arranged in the shell, and the image acquisition module is installed on the module support;

[0009] A driving mechanism is arranged in the shell, and the driving mechanism comprises a driving motor and a rotating cam connected with the output shaft of the driving motor, and the rotating cam abuts against the module support;

[0010] The driving motor is used to drive the rotating cam to rotate, and the rotation of the rotating cam drives the module support to move, so as to adjust the distance between the image acquisition module and the lens.

[0011] The module support can move relative to the lens along a predetermined direction through the cooperation of the guide matching part and the guide part.

[0012] The shell is provided with an elastic reset member, one end of the elastic reset member is connected with the module support, and the elastic reset member is used to provide elastic force for moving the module support towards the rotating cam, so as to keep the rotating cam abutting against the module support.

[0013] The guide part comprises at least one guide column fixed on the internal support, and the guide matching part comprises guide holes corresponding to the number of the guide columns, and the guide holes are arranged on the module support.

[0014] The elastic reset member is a compression spring, the compression spring is sleeved on the guide column, one end of the compression spring abuts against the module support, and the other end abuts against the internal support.

[0015] The processing unit is electrically connected with the image acquisition module and the driving motor respectively, the processing unit is used for receiving images acquired by the image acquisition module, and a control signal is sent to the driving motor according to the quality of the images, so that the rotation of the driving motor is controlled.

[0016] The processing unit comprises a main control board and an interface board electrically connected with the main control board, the main control board is electrically connected with the image acquisition module, is used for analyzing the quality of the images and generating the control signal, and the interface board is electrically connected with the driving motor, and is used for transmitting the control signal to the driving motor.

[0017] The internal support is arranged in the shell, the lighting module, the main control board, the interface board and the lens are respectively mounted on the internal support.

[0018] One end of the shell is provided with a lens cover, and a sealing element is arranged between the lens cover and the shell.

[0019] A bar code recognition system suitable for a production line comprises the aforementioned code reader and a control device electrically connected with the code reader, and the control device is used for controlling the running state of the production line according to the bar code information recognized by the code reader.

[0020] The beneficial technical effects of the utility model are as follows:

[0021] The code reader disclosed by the utility model adopts a driving motor to directly drive a rotating cam, and the rotating cam directly abuts against the module support in the structural design, the distance between the image acquisition module and the lens is adjusted by rotating the rotating cam to drive the module support to move, and the focusing function is realized. This design replaces the traditional multi-gear transmission mode, not only simplifies the mechanical structure, reduces the transmission links and cumulative errors, but also significantly reduces the overall volume of the focusing device. Due to the compact structure and small occupied space, the code reader is particularly suitable for application in small application scenarios with limited space, and effectively solves the technical problems that the focusing device of the existing industrial code reader is large in volume, complex in structure and difficult to meet the miniaturization requirement. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the technical scheme of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.

[0023] Figure 1 The overall explosion schematic diagram of the code reader provided by the embodiment of the present application is provided.

[0024] Figure 2 The overall schematic diagram of the code reader provided by the embodiment of the present application is provided.

[0025] Figure 3 The overall cross-sectional schematic diagram of the code reader provided by the embodiment of the present application is provided.

[0026] Figure 4 The assembly schematic diagram of the driving mechanism and the module support in the code reader provided by the embodiment of the present application is provided.

[0027] Figure 5 The explosion schematic diagram of the driving mechanism and the module support in the code reader provided by the embodiment of the present application is provided.

[0028] Figure 6 The driving motor control flow schematic diagram in the code reader provided by the embodiment of the present application is provided.

[0029] Figure 7 The bar code recognition system schematic diagram provided by the embodiment of the present application is provided.

[0030] Explanation of the reference signs:

[0031] In the figure: 1-lens cover, 2-sealing element, 3-illumination module, 4-main control board, 5-internal support, 6-compression spring, 7-image acquisition module, 8-lens, 9-module support, 91-contact part, 10-rotary cam, 11-driving motor, 12-casing, 13-interface board, 14-casing screw, 15-guiding column, 16-guiding hole, 100-code reader, 200-control device. DETAILED DESCRIPTION

[0032] The technical scheme in the embodiment of the present application will be described clearly and completely in combination with the drawings in the embodiment of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the present application.

[0033] It should be understood that the terms "comprises" and "comprising," when used in this specification and the following claims, indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0034] It should also be understood that the terms used in the specification and the appended claims are intended to describe certain embodiments and do not limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0035] It should further be understood that the term "and / or" as used in the specification and the appended claims indicates any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0036] As shown in the Figures 1-6 embodiments of the present application provide a code reader, which comprises a casing 12; a lens 8 and an image acquisition module 7, which are respectively arranged in the casing 12; a module support 9, which is movably arranged in the casing 12, and the image acquisition module 7 is installed on the module support 9; a driving mechanism, which is arranged in the casing 12, and the driving mechanism comprises a driving motor 11 and a rotating cam 10 connected with the output shaft of the driving motor 11, and the rotating cam 10 abuts against the module support 9; wherein the driving motor 11 is used to drive the rotating cam 10 to rotate, and the rotation of the rotating cam 10 drives the module support 9 to move, so as to adjust the distance between the image acquisition module 7 and the lens 8.

[0037] In the present embodiment, the casing 12 is in the form of a box body, which is used to accommodate all the components inside the code reader 100. The lens 8 is fixedly installed inside the casing 12, and the image acquisition module 7 is locked on the module support 9 by screws. The module support 9 is designed to be movable in a predetermined direction, and since the image acquisition module 7 is fixed on the module support 9, when the module support 9 moves, the image acquisition module 7 also moves. This predetermined direction is the shooting direction of the code reader 100 or the optical axis direction of the lens 8, and the movement of the module support 9 directly causes the distance between the image acquisition module 7 and the fixed lens 8 to change, thereby realizing the focusing function.

[0038] The driving motor 11 is fixed in the casing 12 by screws, and the rotating cam 10 is installed on the output shaft of the driving motor 11, and the rotating cam 10 abuts against the bottom of the module support 9.

[0039] In the working process of the embodiment, the output shaft of the driving motor 11 rotates to drive the rotating cam 10 to rotate, and the rotation of the rotating cam 10 drives the module support 9 and the image acquisition module 7 thereon to move in a predetermined direction, so as to change the distance between the image acquisition module 7 and the lens 8. This way of changing the imaging distance by using the motor to drive the cam to realize focusing does not need multiple gear transmissions, greatly simplifies the structure, and makes the whole code reader 100 smaller in size and more suitable for small application scenarios.

[0040] In a specific embodiment, the output shaft of the driving motor 11 is perpendicular to the movable direction of the module support 9. Such an arrangement can effectively utilize the space in the casing 12 and further improve the compactness of the whole code reader.

[0041] In an embodiment, the code reader 100 further comprises a guide part and a guide matching part matched with the guide part. The guide part is arranged in the casing 12, and the guide matching part is arranged on the module support 9. The module support 9 can move relative to the lens 8 in a predetermined direction through the cooperation of the guide matching part and the guide part.

[0042] In the embodiment, as shown in Figure 1 and Figure 5 , the guide part is arranged inside the casing 12, and the guide matching part is arranged on the module support 9 to form a cooperation relationship with the guide part. Such a cooperation relationship is used to limit the moving direction of the module support 9. Specifically, when the driving motor 11 drives the rotating cam 10 to rotate, the contact position of the cam 10 with the bottom of the module support 9 changes to push the module support 9 to move. At this time, the guide matching part on the module support 9 cooperates with the guide part to ensure that the module support 9 can only move in a predetermined direction, i.e., along the shooting direction of the code reader 100 (or the optical axis direction of the lens 8).

[0043] The design of such a guide mechanism effectively prevents the module support 9 from deviating laterally or rotating during movement, ensures that the image acquisition module 7 always remains on the same optical axis with the lens 8, and avoids the decline of imaging quality caused by the deviation of the module support 9 during movement. The design of such a guide mechanism is simple in structure, small in space occupation, improves the compactness of the whole code reader 100, and makes it more suitable for use in limited space.

[0044] In an embodiment, an elastic reset member is arranged in the casing 12. One end of the elastic reset member is connected with the module support 9 to provide an elastic force for moving the module support 9 towards the rotating cam 10, so as to keep the rotating cam 10 in abutment with the module support 9.

[0045] In the embodiment, as shown in Figure 1 and Figure 5As shown, the elastic return member is installed inside the casing 12, one end of which is connected to the module support 9, thereby exerting a force on the module support 9 towards the direction of the rotating cam 10. This design ensures that the module support 9 is always in close contact with the rotating cam 10. This close contact is critical for the normal operation of the code reader 100, because only when the module support 9 is in good abutment with the rotating cam 10, the rotation of the cam can effectively transmit motion to the module support 9.

[0046] In actual operation, when the rotating cam 10 rotates, it will push the module support 9 to move in a predetermined direction due to the change of the cam profile. At this time, the elastic return member is compressed and stores elastic potential energy. When the cam rotates to a position where the module support 9 needs to move in the opposite direction, the previously compressed elastic return member releases the potential energy and pushes the module support 9 back, thereby always maintaining the contact between the module support 9 and the rotating cam 10.

[0047] This design of using an elastic return member to maintain the contact between the module support 9 and the rotating cam 10 not only simplifies the structure and reduces the number of components, but also improves the reliability of the entire code reader 100, thereby improving the success rate and efficiency of barcode recognition.

[0048] In an embodiment, the module support 9 is provided with a contact portion 91 that contacts the rotating cam 10, and the shape of the contact portion 91 is adapted to the profile of the rotating cam 10.

[0049] In this embodiment, as shown in Figure 1 , Figure 4 and Figure 5 , the rotating cam 10 is a non-circular body of revolution, and the profile of its outer surface is a continuously changing curved shape in the circumferential direction. The profile of the rotating cam 10 is designed to gradually transition from the smallest radius to the largest radius. When the rotating cam 10 rotates, the components in contact with it will displace as the radius of the cam profile changes.

[0050] The bottom of the module support 9 is provided with a contact portion 91. The contact portion 91 is a protruding structure for contacting the outer surface of the rotating cam 10. The contact surface of the contact portion 91 is arc-shaped or planar, and can maintain good contact with the profile of the rotating cam 10 at any rotational position.

[0051] With this design of the contact portion 91 being adapted to the profile of the rotating cam 10, combined with the aforementioned elastic return member, it is ensured that the rotating cam 10 and the module support 9 always maintain a stable and reliable contact state, making the entire code reader 100 operate more accurately and smoothly.

[0052] In an embodiment, the internal support 5 is arranged inside the casing 12; the guiding part comprises at least one guiding column 15 fixed to the internal support 5; the guiding cooperating part comprises guiding holes 16 corresponding in number to the guiding columns 15, which are arranged on the module support 9.

[0053] In the embodiment, as shown in Figure 1 , Figure 4 and Figure 5 , the internal support 5 is fixedly arranged inside the casing 12. The guiding part is in the form of guiding columns 15 arranged on the internal support 5, the length direction of the guiding columns 15 is consistent with the optical axis direction of the lens 8, ensuring that the moving direction of the module support 9 is consistent with the optical axis direction. Correspondingly, the guiding cooperating part is in the form of guiding holes 16 arranged on the module support 9, the number of the guiding holes 16 corresponds to the number of the guiding columns 15.

[0054] Specifically, two guiding columns 15 and two corresponding guiding holes 16 are arranged in the embodiment to provide more stable guiding effect and prevent the module support 9 from deflecting or rotating during movement. The inner diameter of the guiding hole 16 is slightly larger than the outer diameter of the guiding column 15, so that the module support 9 can smoothly slide along the guiding column 15, but at the same time, sufficient precision is maintained to avoid shaking caused by excessive gap.

[0055] This design ensures that the image acquisition module 7 and the lens 8 always remain on the same optical axis, avoiding the decline in imaging quality caused by the possible deviation when the module support 9 moves. During the rotation of the rotating cam 10 to drive the movement of the module support 9, the cooperation of the guiding column 15 and the guiding hole 16 always keeps the module support 9 moving along the predetermined direction, and the module support 9 will not deviate due to external vibration or lateral force when the cam rotates, ensuring that the image acquisition module 7 is always in the correct position of the optical path.

[0056] The design of this guiding mechanism not only has a simple structure, but also occupies a small space, improving the compactness of the entire code reader 100, making it more suitable for use in limited space. Through the cooperation of the guiding column 15 on the internal support 5 and the guiding hole 16 on the module support 9, the movement trajectory of the module support 9 is effectively controlled, ensuring the accuracy and stability of the focusing process.

[0057] In other embodiments, the guiding part comprises a guide rail (not shown in the drawings) arranged inside the casing 12 or the internal support 5, and the guiding cooperating part comprises a sliding block (not shown in the drawings) arranged on the module support 9, which is in sliding cooperation with the guide rail. The guide rail can adopt various forms such as linear guide rail, dovetail groove guide rail or T-shaped groove guide rail, which can be selected according to actual application requirements.

[0058] In an embodiment, the elastic return member is a compression spring 6, which is sleeved on the guide column 15, one end of the compression spring 6 abutting against the module support 9, and the other end abutting against the inner support 5.

[0059] In the embodiment, as shown in Figure 1 , Figure 4 and Figure 5 , the elastic return member is specifically a compression spring 6, which is sleeved on the guide column 15. One end of the compression spring 6 abutting against the module support 9, and the other end abutting against the inner support 5. This design combines the guiding function and the elastic return function together, which saves space and simplifies the structure design.

[0060] The compression spring 6 is in a pre-compressed state in the installed state, providing a continuous pressure to the module support 9 in the direction of the rotating cam 10, ensuring that the module support 9 and the rotating cam 10 always maintain close contact. When the rotating cam 10 rotates to the profile high point, it will push the module support 9 to continuously compress the compression spring 6; when the rotating cam 10 rotates to the profile low point, the elastic force of the compression spring 6 will push the module support 9 to move along the cam surface, always maintaining contact.

[0061] This structure design of sleeving the compression spring 6 on the guide column 15 makes the compression spring 6 provide elastic force along the axial direction of the guide column 15, ensuring that the module support 9 always maintains a good guiding relationship with the guide column 15 during movement, while being able to follow the profile changes of the rotating cam 10 to achieve smooth focus adjustment. This design is simple and compact, relatively easy to manufacture and assemble, which is conducive to reducing the manufacturing cost of the code reader 100 and improving production efficiency.

[0062] In an embodiment, the code reader 100 further includes a processing unit, which is electrically connected with the image acquisition module 7 and the drive motor 11 respectively. The processing unit is used to receive the image collected by the image acquisition module 7, and send a control signal to the drive motor 11 according to the quality of the image, to control the rotation of the drive motor 11.

[0063] In the embodiment, as shown in Figure 1 , the processing unit is installed inside the housing 12, and forms an electrical connection with the image acquisition module 7 and the drive motor 11. When the code reader 100 is working, the image acquisition module 7 collects the image of the target barcode through the lens 8, and transmits the collected image information to the processing unit. After receiving the image, the processing unit analyzes and processes the image, evaluates the quality parameters such as the sharpness and contrast of the image, and judges whether the current focus state meets the requirements of barcode recognition.

[0064] If the processing unit determines that the image quality is not good and needs to be adjusted, it will generate a corresponding control signal according to the image quality analysis result and send it to the drive motor 11. After receiving the control signal, the drive motor 11 rotates according to the instructions, driving the rotating cam 10 to rotate, thereby adjusting the distance between the image acquisition module 7 on the module support 9 and the lens 8, changing the focal length, and achieving focus adjustment.

[0065] During the adjustment process, the processing unit continuously receives new images from the image acquisition module 7, constantly evaluates the image quality, and continues to send control signals to the drive motor 11 according to the evaluation results until the best focus state image is obtained. This closed-loop control method ensures the accuracy and efficiency of the focus.

[0066] The setting of the processing unit makes the entire code reader 100 form a complete autofocus system, which can achieve accurate focusing without manual intervention. Especially in industrial environments, when the product type or distance changes, the code reader 100 can automatically adapt to these changes and adjust to the best focus state, greatly improving the reading efficiency and accuracy.

[0067] In this embodiment, electrical connection refers to connecting the signal input / output ports of the processing unit with the corresponding electrical interfaces of the image acquisition module 7 and the drive motor 11 through conductive media such as wires, cables, flexible circuit boards or conductive traces on printed circuit boards to achieve signal transmission. Specifically, the image acquisition module 7 is connected to the image input interface of the processing unit through a data transmission line for transmitting the collected image data to the processing unit; the control output interface of the processing unit is connected to the receiving end of the drive motor 11 through a control cable for transmitting control signals to the drive motor 11. These connections can be achieved by plug-in connectors, soldering or other conventional electrical connection methods.

[0068] In an embodiment, the processing unit includes a main control board 4 and an interface board 13 electrically connected to the main control board 4, the main control board 4 is electrically connected to the image acquisition module 7 for analyzing the quality of the image and generating control signals, and the interface board 13 is electrically connected to the drive motor 11 for transmitting the control signals to the drive motor 11.

[0069] In this embodiment, as shown in Figure 4 and Figure 5 , the main control board 4 is installed inside the casing 12 and connected to the image acquisition module 7. The image information collected by the image acquisition module 7 is first transmitted to the main control board 4, which can analyze and process the received image, evaluate the quality parameters such as sharpness, contrast, edge sharpness, and judge the current focus state.

[0070] The main control board 4 determines whether adjustment is needed and how to adjust according to the image quality analysis results. If adjustment is needed, the main control board 4 generates corresponding control signals. These control signals contain instructions on how the driving motor 11 should rotate, such as rotation direction, rotation angle, or rotation speed, etc.

[0071] The interface board 13 is electrically connected to the main control board 4 and receives control signals from the main control board 4. The interface board 13 mainly functions as signal conversion and transmission, converting the control signals generated by the main control board 4 into electrical signals suitable for driving the motor 11, and then transmitting them to the driving motor 11. This separation design allows the main control board 4 to focus on image processing and control algorithms, while the interface board 13 is responsible for specific motor driving control, achieving functional module separation and improving the reliability and maintainability of the code reader 100.

[0072] When the driving motor 11 receives the control signals from the interface board 13, it rotates according to the instructions, driving the rotating cam 10 to rotate and adjusting the distance between the image acquisition module 7 and the lens 8, thus achieving focus adjustment. After adjustment, the image acquisition module 7 will again acquire images and transmit them to the main control board 4, which will continue to evaluate image quality, and this cycle will continue until the best focus state image is obtained.

[0073] This combination of the main control board 4 and the interface board 13 in the processing unit design not only achieves functional separation of image processing and motor control, improving the degree of modularity, but also facilitates subsequent maintenance and upgrades. For example, when upgrading image processing algorithms, only the main control board 4 needs to be updated without affecting other parts; when adapting to different types of driving motors 11, only the interface board 13 needs to be adjusted without affecting the main control board 4.

[0074] In actual application, this processing unit design allows the code reader 100 to control the focusing process more accurately, improving the precision and efficiency of focus adjustment, thereby improving the accuracy and speed of barcode recognition, making it particularly suitable for use in high-demand industrial automation environments.

[0075] In a specific embodiment, as shown in Figure 1 The main control board 4 and the interface board 13 are both printed circuit board assemblies (PCBA), with the main control board 4 integrating processors, memories, and image processing circuits, etc. (not shown in the figure), and the interface board 13 integrating signal processing-related electronic components (not shown in the figure).

[0076] In an embodiment, the casing 12 is provided with an illumination module 3 and an internal support 5, and the illumination module 3, the main control board 4 and the interface board 13, and the lens 8 are respectively mounted on the internal support 5.

[0077] In this embodiment, as shown in Figure 1 andFigure 6 As shown, the illumination module 3 is fixed on the inner support 5 by screws, and is located around the lens 8, for providing necessary light when reading bar code, to ensure that the image acquisition module 7 can acquire clear bar code image.

[0078] The main control board 4 is also fixed on the inner support 5 by screws, and is located to facilitate electrical connection with the image acquisition module 7 and other components. The interface board 13 is also fixedly installed on the inner support 5, and is arranged opposite to the main control board 4.

[0079] The lens 8 is fixedly installed on the inner support 5, and the image acquisition module 7 is installed on the movable module support 9, which facilitates focusing by changing the distance between the image acquisition module 7 and the lens 8.

[0080] The design of installing the illumination module 3, the main control board 4, the interface board 13 and the lens 8 on the same inner support 5 can simplify the assembly process. The above-mentioned functional modules only need to be respectively installed on the inner support 5, and then the entire inner support 5 is installed in the casing 12, which greatly simplifies the assembly process. At the same time, when a certain module needs to be repaired or replaced, the corresponding component can be conveniently disassembled without affecting the position of other modules. By reasonably arranging the above-mentioned modules on the inner support 5, the limited internal space is fully utilized, and the structure of the entire code reader 100 is more compact.

[0081] In an embodiment, the casing 12 is detachably connected with a lens cover 1 at one end, and a sealing element 2 is arranged between the lens cover 1 and the casing 12.

[0082] In the embodiment, as shown in Figure 1 and Figure 1 , the lens cover 1 is arranged at the front end of the casing 12, i.e. the end where the lens 8 is located. The lens cover 1 is detachably connected with the casing 12 by the casing screws 14, forming a complete housing structure. The front end of the lens cover 1 is provided with a viewing window (not shown in the figure), and the lens 8 can observe the external target bar code through the viewing window. The sealing element 2 is a dustproof gasket, which is arranged between the lens cover 1 and the casing 12 to prevent external dust, moisture and the like from entering the inside of the casing 12.

[0083] As shown in Figure 3 Figure 1 Figure 2 Figure 7 , corresponding to the above-mentioned code reader, the utility model embodiment also provides a bar code identification system, which is suitable for a production line, and the system comprises the code reader 100 of the foregoing embodiment, and a control device 200 electrically connected with the code reader 100, and the control device 200 is used for controlling the running state of the production line according to the bar code information identified by the code reader 100.

[0084] In this embodiment, in a production line application scenario, the barcode recognition system is installed at a key detection point of the production line, such as a product sorting area or a quality inspection station. The code reader 100 in the system can accurately identify product barcodes at different distances and positions, and can complete focus adjustment without manual intervention.

[0085] When the product passes through the code reader 100, the illumination module 3 of the code reader 100 provides stable light source illumination, and the image acquisition module 7 acquires the barcode image on the product through the lens 8 after automatic focusing. The processing unit (main control board 4 and interface board 13) processes and analyzes the image, identifies the barcode information, and transmits the information to the control device 200 electrically connected to the code reader 100.

[0086] The control device 200 can be a PLC (Programmable Logic Controller) or an industrial computer. After receiving the barcode information, the control device 200 makes judgments and decisions according to the preset logic to control the running state of the production line. For example:

[0087] In the product sorting area, according to the different barcode information read, the control device 200 can instruct the sorting mechanism to guide the product to different production channels or packaging areas, or in the quality inspection station, the control device 200 can retrieve the product specification parameters according to the barcode information, and perform automatic detection. If it is found that it does not meet the requirements, it can trigger an alarm or automatically reject unqualified products, etc.

[0088] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A code reader characterized by, The application relates to a code reader, which comprises a casing, a lens and an image acquisition module arranged in the casing respectively, a module support movably arranged in the casing, the image acquisition module being mounted on the module support, a driving mechanism arranged in the casing, the driving mechanism comprising a driving motor and a rotating cam connected with an output shaft of the driving motor, the rotating cam abutting against the module support, wherein the driving motor is used for driving the rotating cam to rotate, and the rotating of the rotating cam drives the module support to move, so as to adjust the distance between the image acquisition module and the lens. The code reader further comprises a guide part arranged in the casing and a guide matching part matched with the guide part, the guide matching part being arranged on the module support, and the module support can move relative to the lens along a predetermined direction through the cooperation of the guide matching part and the guide part. The casing is provided with an elastic reset member, one end of the elastic reset member being connected with the module support, and the elastic reset member is used for providing elastic force for moving the module support towards the rotating cam, so as to keep the rotating cam abutting against the module support. The casing is provided with an internal support, the guide part comprises at least one guide column fixed on the internal support, and the guide matching part comprises guide holes corresponding to the number of the guide columns, the guide holes being arranged on the module support. The elastic reset member is a compression spring, the compression spring is sleeved on the guide column, one end of the compression spring abutting against the module support, and the other end of the compression spring abutting against the internal support. The code reader further comprises a processing unit electrically connected with the image acquisition module and the driving motor respectively, the processing unit is used for receiving images acquired by the image acquisition module, and the processing unit sends a control signal to the driving motor according to the quality of the images, so as to control the rotation of the driving motor.

2. The code reader of claim 1, wherein, The processing unit comprises a main control board and an interface board electrically connected with the main control board, the main control board is electrically connected with the image acquisition module, is used for analyzing the quality of the images and generating the control signal, and the interface board is electrically connected with the driving motor, and is used for transmitting the control signal to the driving motor.

3. The code reader of claim 2, wherein, The casing is provided with an illumination module and an internal support, the illumination module, the main control board, the interface board and the lens are mounted on the internal support respectively.

4. The code reader of claim 3, wherein, One end of the casing is provided with a lens cover, and a sealing member is arranged between the lens cover and the casing.

5. The code reader of claim 4, wherein, The application further relates to a control device electrically connected with the code reader, the control device being used for controlling the running state of the production line according to the bar code information identified by the code reader.

6. The code reader of claim 1, wherein, ​ 7. The code reader of claim 6, wherein, ​ 8. The code reader of claim 7, wherein, ​ 9. The reader of any of claims 1-8, wherein, ​ 10. A bar code recognition system suitable for use in a production line, characterized in that ​