Two-dimensional code detection device and system
By designing a QR code detection device that includes optical components and a controller, image acquisition and processing are automatically completed, which solves the problem of low efficiency of existing QR code detection and achieves efficient and accurate detection in complex environments.
Patent Information
- Application Number
- CN202510791301.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-30
AI Technical Summary
Most existing QR code detection methods rely on manual scanning, which is inefficient and prone to detection failure in conditions such as insufficient light or contamination on the QR code surface.
A QR code detection device is designed, which includes a housing, an optical component and a controller. The optical component includes a light source group, a first polarizer, a reflector and an image sensor. Through the coordinated action of the optical components, image acquisition and processing are automatically completed, and the QR code quality detection is performed using a preset image algorithm.
It improves the automation and intelligence level of QR code detection, enhances its adaptability in complex environments, and ensures the efficiency and accuracy of detection.
Smart Images

Figure CN120725035A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of two-dimensional code technology, and in particular to a two-dimensional code detection device and system. Background Art
[0002] With the rapid development of information technology, QR codes, as a convenient means of storing and transmitting information, have been widely used in a variety of fields, including product identification, payment verification, and logistics tracking. To ensure the accuracy and readability of QR code information, fast and efficient QR code detection is particularly important.
[0003] However, most existing QR code detection methods rely on manual scanning, which is not only inefficient but also prone to detection failure in conditions such as insufficient light or contamination on the QR code surface. Summary of the Invention
[0004] The embodiments of the present application provide a QR code detection device and system for solving the problem that existing QR code detection methods mostly rely on manual scanning, which is not only inefficient but also prone to detection failure in conditions such as insufficient light or contamination on the QR code surface.
[0005] In a first aspect, an embodiment of the present application provides a two-dimensional code detection device, comprising:
[0006] A housing, wherein the housing is provided with a receiving cavity and a first detection window is further provided on the housing, the first detection window is communicated with the receiving cavity, and a first detection glass is installed at the first detection window, the first detection glass is used to place the QR code to be detected;
[0007] An optical assembly is disposed in the accommodating cavity, comprising a light source group, a first polarizer, a reflector, and an image sensor. The light source group is used to provide illumination, the reflector is used to reflect the image of the QR code to be detected to the image sensor, and the first polarizer is disposed in the optical path between the QR code to be detected and the reflector.
[0008] A controller is provided, wherein the image sensor is in communication with the controller; the controller is configured to receive image data collected by the image sensor and process the image data based on a preset image algorithm.
[0009] In a possible implementation, the method further includes:
[0010] A drive assembly is disposed in the accommodating cavity, the drive assembly is in communication with the controller, and the drive assembly is also in transmission connection with the reflector;
[0011] The controller is further configured to control the driving assembly to drive the reflector to rotate about a first direction or translate along a second direction, so that the reflector reflects the image of the to-be-detected two-dimensional code to the image sensor.
[0012] In one possible implementation, the driving component includes:
[0013] a first drive motor, a lead screw, a nut block, and a second drive motor, wherein the first drive motor is fixedly mounted on the inner wall of the accommodating chamber, the output end of the first drive motor is transmission-connected to the lead screw, the lead screw is extended along the second direction, the nut block is threadedly connected to the lead screw, the second drive motor is mounted on the nut block, and the second drive motor is arranged along the first direction, and the output end of the second drive motor is connected to the reflector;
[0014] The first drive motor and the second drive motor are both in communication with the controller, and the controller is further configured to control the first drive motor to drive the reflector parallel to the first direction, and to control the second drive motor to drive the reflector to rotate around the first direction.
[0015] In a possible implementation, the housing further defines a second detection window, the second detection window being disposed opposite to the first detection window, and a second detection glass being disposed at the second detection window;
[0016] The optical assembly further comprises: a second polarizer, the second polarizer being arranged on the optical path between the second detection window and the reflector;
[0017] The controller is further configured to control the driving component to drive the reflective mirror to rotate by a preset angle in response to determining that the two-dimensional code image to be detected is placed at the second detection window.
[0018] In a possible implementation, the light source group includes:
[0019] a plurality of lamp beads and a light intensity sensor, wherein the plurality of lamp beads are horizontally and spaced apart on the inner wall of the accommodating cavity, the light intensity sensor is installed around the first detection window, and the plurality of lamp beads and the light intensity sensor are all communicatively connected to the controller;
[0020] The controller is further configured to, in response to determining that the light intensity in the accommodating cavity is less than a first preset light intensity, control the brightness of the lamp beads to increase by pulse width modulation; and in response to determining that the light intensity in the accommodating cavity is greater than a second preset light intensity, control the brightness of the lamp beads to decrease by pulse width modulation; wherein the first preset light intensity is less than the second preset light intensity.
[0021] In a possible implementation, the method further includes:
[0022] a temperature regulating assembly disposed in the accommodating cavity, the temperature regulating assembly comprising a temperature sensor and a heat dissipation fan, the temperature sensor and the heat dissipation fan both being communicatively connected to the controller, a heat dissipation hole being formed on the housing and communicating with the accommodating cavity, the heat dissipation fan being mounted at the heat dissipation hole;
[0023] The controller is further configured to control the cooling fan to start in response to determining that the detected temperature of the temperature sensor is greater than a first preset temperature value; and to control the cooling fan to shut down in response to determining that the detected temperature of the temperature sensor is lower than a second preset temperature value; wherein the first preset temperature value is greater than the second preset temperature value.
[0024] In a possible implementation, the method further includes:
[0025] a buzzer, the buzzer being communicatively connected to the controller;
[0026] The controller is further configured to control the buzzer to emit a first beep in response to determining that the QR code to be detected does not meet the standards; and control the buzzer to emit a second beep in response to determining that the QR code to be detected meets the standards.
[0027] In a possible implementation, the method further includes:
[0028] an indicator light group, disposed on an outer wall of the housing, the indicator light group being communicatively connected to the controller, the indicator lights comprising a first indicator light and a second indicator light;
[0029] The controller is further configured to control the first indicator to light up in response to determining that the QR code to be detected does not meet the standards; and control the second indicator light to light up in response to determining that the QR code to be detected meets the standards.
[0030] In a possible implementation, the method further includes:
[0031] A control button group is arranged on the outer wall of the shell, and the control button group is communicatively connected with the controller. The control button group includes a test button and a termination button. The test button is used to start the test, and the termination button is used to end the test.
[0032] In a second aspect, an embodiment of the present application provides a QR code detection system, comprising a QR code detection terminal and any one of the above-described QR code detection devices, wherein the QR code detection device further comprises a communication module, and the QR code detection device is communicatively connected to the QR code detection terminal via the communication module;
[0033] The communication module is used to receive the detection instruction sent by the QR code detection terminal;
[0034] The communication module is further configured to send the QR code detection result and / or the QR code grayscale image to the QR code detection terminal.
[0035] The embodiment of the present application provides a two-dimensional code detection device and system, which includes: a housing, an optical component, and a controller. The housing is provided with a receiving cavity, and a first detection window is also provided on the housing. The first detection window is connected to the receiving cavity, and a first detection glass is installed at the first detection window. The first detection glass is used to place the two-dimensional code to be detected; the optical component is arranged in the receiving cavity, and the optical component includes a light source group, a first polarizer, a reflector, and an image sensor. The light source group is used to provide illumination, the reflector is used to reflect the image of the two-dimensional code to be detected to the image sensor, and the first polarizer is arranged on the light path between the two-dimensional code to be detected and the reflector; the image sensor is communicatively connected to the controller; the controller is used to receive image data collected by the image sensor and process the image data based on a preset image algorithm.
[0036] When it is necessary to detect a QR code, the QR code to be detected is first placed on the first detection glass, and then the light source group, image sensor and controller are started; the light source group emits light to penetrate the first detection glass to illuminate the QR code to be detected, and the image of the QR code to be detected is reflected to the image sensor through the first polarizer and the reflector. After the image sensor receives the reflected image, it converts it into image data and transmits it to the controller; after the controller receives the image data, it processes the image using a preset image algorithm to determine the quality level of the QR code. Specifically, by setting the first detection glass as the interface between the QR code and the optical component, the clarity of the image transmission is guaranteed; through the synergy between the light source group, the first polarizer and the reflector, it is ensured that the image sensor can capture a high-definition QR code image, thereby improving the subsequent recognition accuracy. In addition, when detecting the QR code, it is only necessary to place the QR code to be detected on the first detection glass to automatically complete the image acquisition and processing process. The operation is simple and fast, which improves the efficiency of QR code detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] Figure 1 A schematic cross-sectional view of a QR code detection device according to an embodiment of the present application;
[0039] Figure 2 A schematic diagram showing the principle of a QR code detection device provided in one embodiment of the present application;
[0040] Figure 3 A schematic diagram of the principles of a QR code detection system provided in one embodiment of the present application.
[0041] Reference numerals:
[0042] 11-housing; 111-accommodating chamber; 12-first detection glass; 13-optical assembly; 131-light source assembly; 132-first polarizer; 133-reflector; 134-image sensor; 14-controller; 15-drive assembly; 16-temperature adjustment assembly; 17-buzzer; 18-indicator assembly; 19-control button assembly; 100-communication module;
[0043] 10-QR code detection device; 20-QR code detection terminal.
[0044] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0045] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the embodiments of the present application.
[0046] In the embodiments of the present application, the terms "upper", "lower", "inside", "middle", "outside", "front", "back", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. These terms are primarily intended to better describe the present application and its embodiments, and are not intended to limit the indicated devices, elements, or components to having a specific orientation, or to being constructed and operated in a specific orientation. Moreover, in addition to being used to indicate orientations or positional relationships, some of the above terms may also be used to indicate other meanings. For example, the term "upper" may also be used to indicate a certain dependency or connection relationship in certain circumstances. For those of ordinary skill in the art, the specific meanings of these terms in the embodiments of the present application can be understood based on the specific circumstances.
[0047] Furthermore, the terms "disposed," "connected," and "fixed" should be interpreted broadly. For example, "connected" can mean a fixed connection, a removable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection, an indirect connection through an intermediary, or an internal connection between two devices, elements, or components. Those skilled in the art will understand the specific meanings of these terms in the embodiments of this disclosure based on the specific circumstances.
[0048] In the description and claims of the embodiments of the present application and the accompanying drawings, the terms "first," "second," "third," "fourth," and so on (if any) are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present application described herein can, for example, be implemented in an order other than that illustrated or described herein.
[0049] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0050] Unless otherwise stated, the term "plurality" means two or more.
[0051] As described in the background technology, with the continuous development of information technology, QR code, as an efficient and convenient information storage and transmission medium, has rapidly expanded its application scope to multiple key areas such as product identification, payment verification, logistics tracking, advertising and personal information management, greatly promoting the flexibility and immediacy of information interaction. The popularity of QR code technology is due to its high-density encoding capability, wide compatibility and user-friendly interaction mode, making information acquisition simple and fast. However, in practical applications, the detection and recognition of QR codes are faced with many challenges, which directly affect the accuracy and transmission efficiency of information. Most of the current mainstream QR code detection methods rely on manual operation, that is, manual handheld scanning equipment to detect the various parameters of the QR code, which is not only time-consuming and labor-intensive, but also has low detection efficiency. Moreover, under certain circumstances, such as dim light, stains, scratches or wear on the surface of the QR code, the reliability of manual scanning is greatly reduced, which can easily lead to detection failure or misreading, thereby affecting the subsequent information processing process, bringing inconvenience to users, and even causing economic losses.
[0052] In order to solve the problem that the existing QR code detection method is inefficient and prone to failure in complex environments, the present application proposes a QR code detection device. By arranging optical components such as a light source group, a first polarizer, a reflector and an image sensor in the accommodating cavity of the shell, a compact and efficient detection device is formed, wherein the light source group can ensure the brightness during detection, the polarizer and the reflector can ensure the clarity of the image, and by setting the first detection window and the first detection glass, the user can conveniently place the QR code to be detected, ensuring the stability of the detection process. The controller can receive the image data captured by the image sensor in real time, and quickly process it according to the preset advanced image algorithm, thereby realizing accurate recognition of the QR code information, which not only improves the automation and intelligence level of QR code detection, but also significantly enhances its adaptability in complex environments, providing a more efficient and reliable QR code detection experience.
[0053] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0054] Figure 1 This is a schematic cross-sectional view of a two-dimensional code detection device according to an embodiment of the present application, with reference to Figure 1 As shown in , an embodiment of the present application provides a two-dimensional code detection device 10, comprising: a housing 11, an optical assembly 13, and a controller 14. The housing 11 is provided with a housing cavity 111, and a first detection window is also provided on the housing 11. The first detection window is connected to the housing cavity 111, and a first detection glass 12 is installed at the first detection window. The first detection glass 12 is used to place the two-dimensional code to be detected; the optical assembly 13 is arranged in the housing cavity 111, and the optical assembly 13 includes a light source group 131, a first polarizer 132, a reflector 133, and an image sensor 134. The light source group 131 is used to provide illumination, the reflector 133 is used to reflect the image of the two-dimensional code to be detected to the image sensor 134, and the first polarizer 132 is arranged on the optical path between the two-dimensional code to be detected and the reflector 133; the image sensor 134 is in communication with the controller 14; the controller 14 is used to receive image data collected by the image sensor 134 and process the image data based on a preset image algorithm.
[0055] The housing 11 is the supporting structure of the entire QR code detection device 10. It has a housing 111 for mounting the optical assembly 13 and the controller 14. The housing 11 also defines a first detection window and a first detection glass 12 corresponding to the first detection window. When detecting a QR code, the QR code to be detected is placed on the first detection glass 12. Optionally, the housing 11 can be square in shape and made of aluminum alloy. The housing 11 is processed by oxidation and spray painting. This configuration can ensure that the housing 11 has high structural stability, strong shielding properties, and good heat dissipation.
[0056] The first detection glass 12 provides a flat placement surface, ensuring stable placement of the QR code to be detected while ensuring clarity of image transmission. Optionally, the first detection glass 12 is made of transparent optical quartz glass. Transparent optical quartz glass has high transmittance and can transmit light within the visible and ultraviolet ranges, with a transmittance exceeding 99.9%. Furthermore, its low dispersion coefficient reduces the dispersion effect of light and improves the clarity and accuracy of optical imaging.
[0057] The light source assembly 131 is used to provide illumination, ensuring that the image sensor 134 can capture a clear image of the QR code and preventing QR code recognition failures due to insufficient light. The light source assembly 131 can optionally be composed of a variety of materials, such as LEDs, fluorescent lamps, and halogen lamps. In this embodiment, the light source assembly 131 is not specifically limited, as long as it can illuminate the QR code detection area.
[0058] The first polarizer 132 is used to adjust the polarization direction of light, reduce reflection and glare, remove stray light, and improve image quality.
[0059] The reflector 133 is used to reflect the image of the to-be-detected two-dimensional code to the image sensor 134. Optionally, the reflector 133 can be a plane reflector 133 or a concave reflector 133.
[0060] It should be noted that the configuration of the optical component 13 also avoids the problems of poor image quality and severe interference that may occur when directly using the image sensor 134 to capture the two-dimensional code image.
[0061] The image sensor 134 is used to convert received images into electrical signals (image data) and transmit them to the controller 14. Optionally, the image sensor 134 may be a CMOS (Complementary Metal-Oxide-Semiconductor Image Sensor) or a CCD (Charge-Coupled Device) image sensor. Specifically, in this embodiment, the type of image sensor 134 is not specifically limited. Furthermore, before collecting image data via the image sensor 134, the image sensor 134 is first adjusted to an appropriate focal length.
[0062] The controller 14 is configured to receive image data captured by the image sensor 134 and process the image using a preset image algorithm to extract the information from the QR code. The preset image algorithm is an algorithm pre-set in the controller 14 for processing image data. Such an algorithm may include, but is not limited to, edge detection algorithms, contour detection algorithms, projection positioning algorithms, image segmentation algorithms, and the like. The controller 14 may optionally be a microcontroller 14, a digital signal processor, or a field programmable gate array. Specifically, different types of controllers 14 have different performance and functional characteristics. The present embodiment does not specifically limit the type of controller 14, and a flexible selection may be made based on actual needs.
[0063] Specifically, the working principle of the two-dimensional code detection device 10 provided in this embodiment is: the optical component 13 obtains the image of the two-dimensional code to be detected, and the controller 14 processes the image to determine the quality level of the two-dimensional code to be detected. The specific detection process is as follows:
[0064] When a QR code needs to be detected, the QR code to be detected is first placed on the detection glass 12, and then the light source group 131, image sensor 134 and controller 14 are started; the light source group 131 emits light to penetrate the detection glass 12, illuminating the QR code to be detected. The image of the QR code to be detected is reflected to the image sensor 134 through the first polarizer 132 and the reflector 133. After receiving the reflected image, the image sensor 134 converts it into image data and transmits it to the controller 14; after receiving the image data, the controller 14 processes the image using a preset image algorithm to determine the quality level of the QR code. It should be noted that Figure 1 The arrows indicate the paths of light propagation.
[0065] Specifically, the QR code detection device 10 provided in this embodiment ensures image clarity by providing a first detection glass 12 as the interface between the QR code and the optical assembly 13. The synergistic effect between the light source assembly 131, the first polarizer 132, and the reflector 133 ensures that the image sensor 134 can capture a high-definition QR code image, improving subsequent recognition accuracy. Furthermore, during QR code detection, simply placing the QR code to be detected on the first detection glass 12 automatically completes the image acquisition and processing process, making operation simple and quick, and improving the efficiency of QR code detection.
[0066] Figure 2 This is a schematic diagram of the principle of a two-dimensional code detection device provided in an embodiment of the present application. As an optional implementation, based on any of the above embodiments, refer to Figure 1 and Figure 2 As shown in , the two-dimensional code detection device 10 also includes: a driving component 15; wherein the driving component 15 is arranged in the accommodating cavity 111, the driving component 15 is communicatively connected with the controller 14, and the driving component 15 is also transmission-connected with the reflector 133; the controller 14 also controls the driving component 15 to drive the reflector 133 to rotate around the first direction or translate along the second direction, so that the reflector 133 reflects the image of the two-dimensional code to be detected to the image sensor 134.
[0067] Specifically, in order to facilitate adjustment of the position and angle of the reflective mirror 133 so as to more clearly reflect the two-dimensional code image to the image sensor 134, the two-dimensional code detection device 10 provided in this embodiment is further provided with a drive assembly 15. The drive assembly 15 is communicatively connected to the controller 14 and is in transmission connection with the reflective mirror 133. The drive assembly 15 can adjust the position of the reflective mirror 133 according to the instructions of the controller 14. Specifically, the drive assembly 15 can drive the reflective mirror 133 to rotate about a first direction or translate along a second direction, thereby ensuring that the two-dimensional code image can be accurately and clearly reflected to the image sensor 134.
[0068] Illustratively, in this embodiment, the length direction of the housing 11 is the first direction, and the width direction of the housing 11 is the second direction.
[0069] Alternatively, the drive assembly 15 can be configured in a variety of ways, such as by combining a stepper motor with a transmission mechanism, wherein the stepper motor is communicatively connected to the controller 14, the stepper motor is in transmission connection with the transmission mechanism, and the transmission mechanism is in transmission connection with the reflector 133. To convert the rotation of the stepper motor into the required motion of the reflector 133, i.e., rotation about a first direction or translation along a second direction, the transmission mechanism can include a gear set, a pulley, or a screw nut, etc., and the specific configuration is selected according to the specific motion requirements of the reflector 133. In addition, the stepper motor can also be replaced with a servo motor.
[0070] Optionally, the translational movement of the reflector 133 along the second direction can be achieved by a linear actuator, which can directly convert electrical energy into linear motion without the need for an additional transmission mechanism; the linear actuator can be an electric push rod or a linear motor, and the specific selection is set according to the required stroke and accuracy.
[0071] Optionally, the controller 14 sends an adjustment command to the drive assembly 15 based on the received adjustment instruction. Upon receiving the command, the drive assembly 15 begins to drive the reflector 133 to rotate about the first direction or translate along the second direction, so that the reflector 133 more accurately reflects the QR code image to the image sensor 134, thereby improving the accuracy and clarity of image acquisition. Optionally, the adjustment instruction received by the controller 14 can be implemented by the user using position adjustment buttons, which include a translation button and a rotation button. When the user presses the corresponding button, the controller 14 will receive the corresponding instruction.
[0072] Specifically, the QR code detection device 10 provided in this embodiment is provided with a drive assembly 15, which is in transmission connection with a reflective mirror 133. The drive assembly 15 enables dynamic adjustment of the reflective mirror 133, ensuring that the QR code image is reflected to the image sensor 134 at the optimal angle and position, thereby improving the accuracy and clarity of image acquisition. Furthermore, by providing the drive assembly 15 to adjust the position of the reflective mirror 133, it can be adjusted to accommodate QR codes of varying sizes or placement, thereby enhancing the versatility and practicality of the device.
[0073] As an optional embodiment, based on any one of the above embodiments, the drive assembly includes: a first drive motor, a lead screw, a nut block and a second drive motor, the first drive motor is fixedly mounted on the inner wall of the accommodating chamber 111, the output end of the first drive motor is connected to the lead screw for transmission, the lead screw is extended along the second direction, the nut block is threadedly connected to the lead screw, the second drive motor is mounted on the nut block, and the second drive motor is arranged along the first direction, and the output end of the second drive motor is connected to the reflector 133; the first drive motor and the second drive motor are both communicatively connected to the controller 14, and the controller 14 is also used to control the first drive motor to drive the reflector 133 parallel to the first direction, and to control the second drive motor to drive the reflector 133 to rotate around the first direction.
[0074] Specifically, in this embodiment, a specific composition scheme of a driving assembly 15 is provided. Specifically, the driving assembly 15 includes a first driving motor, a lead screw, a nut block, and a second driving motor.
[0075] The first drive motor is fixedly mounted on the inner wall of the accommodating chamber 111 and drives the lead screw to rotate through a transmission connection, thereby driving the nut block to move in the second direction.
[0076] The lead screw is extended along the second direction and is threadedly connected to the nut block, so as to transmit the rotational power of the first drive motor to realize the movement of the nut block in the first direction.
[0077] The nut block is threadably connected to the lead screw, and the nut block moves along the lead screw, and at the same time serves as a mounting platform for the second drive motor to achieve adjustment of the reflective mirror 133 in the vertical direction.
[0078] The second drive motor is installed on the nut block and arranged along the first direction. Its output end is connected to the reflector 133 for driving the reflector 133 to rotate around the first direction to achieve angle adjustment of the reflector 133 in the horizontal direction.
[0079] In this embodiment, the controller 14 is also responsible for controlling the states of the first drive motor and the second drive motor to achieve position adjustment of the reflector 133 in the first direction and the second direction. Specifically, when it is necessary to adjust the position of the reflector 133 in the second direction, the controller 14 sends a command to the first drive motor. After the first drive motor is started, it drives the lead screw to rotate through the transmission connection. Since the nut block is threadedly connected to the lead screw, the nut block will move along the extension direction of the lead screw. The second drive motor and the reflector 133 on the nut block also move accordingly, thereby achieving adjustment of the reflector 133 in the vertical direction. When it is necessary to adjust the rotation of the reflector 133 around the first direction, the controller 14 sends a command to the second drive motor. After the second drive motor is started, its output end drives the reflector 133 to rotate around the first direction, thereby achieving angle adjustment of the reflector 133 in the second direction.
[0080] Specifically, in this embodiment, the drive assembly 15 includes a first drive motor, a lead screw, a nut block, and a second drive motor. The first and second drive motors work together to adjust the reflector 133 in the first and second directions, ensuring that the QR code image is reflected to the image sensor 134 at the optimal angle and position. Furthermore, the threaded connection between the lead screw and the nut block is self-locking, preventing the reflector 133 from shifting due to external forces during adjustment.
[0081] As an optional embodiment, based on any one of the above embodiments, the shell 11 is further provided with a second detection window, the second detection window is arranged opposite to the first detection window, and a second detection glass is provided at the second detection window; the optical component 13 also includes: a second polarizer, the second polarizer is arranged on the optical path between the second detection window and the reflector 133; the controller 14 is also used to control the driving component 15 to drive the reflector 133 to rotate a preset angle in response to determining that the two-dimensional code image to be detected is placed at the second detection window.
[0082] Specifically, in order to improve the convenience of detection, the two-dimensional code detection device 10 provided in this embodiment can also perform multi-directional detection. Specifically, in this embodiment, the housing 11 is also provided with a second detection window, and the second detection window is arranged opposite to the first detection window, and the second detection window is also equipped with a second detection glass. In addition, the optical component 13 also includes a second polarizer, which is arranged on the optical path of the second detection window and the reflector 133, thereby ensuring the quality of the two-dimensional code image captured from the second detection window. When it is determined that the two-dimensional code to be detected is placed in the second detection window, the controller 14 can control the driving component 15 to drive the reflector 133 to rotate to a preset angle, so that the reflector 133 can reflect the image of the two-dimensional code to be detected at the second detection window to the image sensor 134.
[0083] Specifically, when the first detection window of the two-dimensional code detection device 10 is not convenient for detecting the two-dimensional code, the two-dimensional code to be detected can be placed on the second detection glass of the second detection window for detection to ensure that the detection can be carried out smoothly. In addition, when the two-dimensional code is placed in the second detection window, the second polarizer in the optical component 13 is used to filter light to ensure the image quality captured from the second detection window. Optionally, the two-dimensional code detection device 10 is also provided with a switching button, which is in communication with the controller 14. When it is necessary to perform two-dimensional code detection in the second detection window, by pressing the switching button, the controller 14 receives the signal of the switching button, that is, controls the driving component 15 to drive the reflector 133 to rotate a preset angle.
[0084] Specifically, the QR code detection device 10 provided in this embodiment improves the detection flexibility of the QR code detection device 10 by setting a second detection window to provide another placement position for QR code detection; by setting a second polarizer to filter the light, the image quality of the captured QR code is ensured; by flexibly adjusting the angle of the reflector 133 so that it faces the first detection window or the second detection window.
[0085] As an optional embodiment, based on any one of the above embodiments, the light source group 131 includes: multiple lamp beads and light intensity sensors, the multiple lamp beads are horizontally and spaced apart on the inner wall of the accommodating cavity 111, the light intensity sensor is installed on the peripheral side of the first detection window, and the multiple lamp beads and light intensity sensors are all communicated with the controller 14; the controller 14 is also used to control the brightness of the lamp beads to increase through pulse width modulation in response to determining that the light intensity in the accommodating cavity 111 is less than the first preset light intensity; in response to the light intensity in the accommodating cavity 111 being greater than the second preset light intensity, the brightness of the lamp beads is controlled to decrease through pulse width modulation; wherein the first preset light intensity is less than the second preset light intensity.
[0086] Specifically, in this embodiment, the light source assembly 131 includes multiple lamp beads and a light intensity sensor. The multiple lamp beads are horizontally and spaced apart on the inner wall of the accommodating cavity 111, providing light to illuminate the QR code to be detected. The light intensity sensor is mounted around the first detection window to monitor the light intensity within the accommodating cavity 111 and transmit the data to the controller 14. The controller 14 is also responsible for receiving the data from the light intensity sensor and adjusting the brightness of the lamp beads using PWM (Pulse Width Modulation) according to a preset light intensity threshold.
[0087] It should be noted that by adjusting the brightness of the lamp beads through PWM, the power of the light source can be adjusted according to actual needs to achieve energy-saving and power-saving effects.
[0088] The first preset light intensity and the second preset light intensity are both preset light intensity thresholds, which are used to determine when the brightness of the light source needs to be adjusted to ensure that the image sensor 134 can capture clear and accurate images.
[0089] Optionally, the light intensity sensor can be a digital semiconductor light intensity sensor or a digital ambient light sensor; the lamp bead can be a surface mount LED or an integrated package LED. In this embodiment, the specific types of the light intensity sensor and lamp bead are not limited and can be selected according to actual needs.
[0090] Specifically, when the controller 14 receives data from the light intensity sensor and determines that the light intensity in the accommodating cavity 111 is less than the first preset light intensity, the controller 14 controls the brightness of the lamp bead to increase through pulse width modulation.
[0091] When the light intensity in the accommodating cavity 111 is greater than the second preset light intensity, the controller 14 will also control the brightness of the lamp beads to decrease by pulse width modulation to prevent excessive light from interfering with the capture of the two-dimensional code image.
[0092] Optionally, the lamp beads of the light source group 131 are arranged in the accommodating cavity 111, and the lamp beads are at a certain distance from the first detection glass 12 and are parallel to the first detection glass 12; further, different lighting methods have an impact on the detection results. The lighting angle of the lamp beads is generally set to 45°, and the color of the light source can be selected as red or white to adapt to different application requirements.
[0093] Specifically, in this embodiment, multiple lamp beads are provided to provide lighting and a light intensity sensor is provided to monitor the light intensity in the accommodating cavity 111. The lamp beads, the light intensity sensor and the controller 14 work together to automatically adjust the light intensity in the accommodating cavity 111, thereby ensuring that the brightness in the accommodating cavity 111 is moderate, which helps the image sensor 134 capture clearer QR code images, thereby improving the accuracy of QR code recognition.
[0094] As an optional implementation, based on any of the above embodiments, refer to Figure 1 and Figure 2 As shown in , the two-dimensional code detection device 10 also includes:
[0095] The temperature adjustment component 16 is arranged in the accommodating cavity 111. The temperature adjustment component 16 includes a temperature sensor and a heat dissipation fan. The temperature sensor and the heat dissipation fan are both communicated with the controller 14. A heat dissipation hole connected to the accommodating cavity 111 is opened on the shell 11, and the heat dissipation fan is installed at the heat dissipation hole; the controller 14 is also used to control the heat dissipation fan to start in response to determining that the detection temperature of the temperature sensor is greater than the first preset temperature value; in response to determining that the detection temperature of the temperature sensor is lower than the second preset temperature value, control the heat dissipation fan to turn off; wherein the first preset temperature value is greater than the second preset temperature value.
[0096] Specifically, to prevent the performance of components such as the controller 14 from deteriorating due to excessively high temperatures within the accommodating chamber 111 after the QR code detection device 10 has been operating for a long time, a temperature adjustment assembly 16 is provided in this embodiment to ensure a moderate temperature within the accommodating chamber 111. Specifically, the temperature adjustment assembly 16 includes a temperature sensor and a heat dissipation fan. Heat dissipation holes are also provided on the housing 11, and the heat dissipation fan is mounted on the heat dissipation holes.
[0097] Among them, the temperature sensor is used to monitor the temperature inside the accommodating cavity 111 and send the data to the controller 14; the heat dissipation fan is installed at the heat dissipation hole, and is used to inhale external cold air and discharge hot air to reduce the temperature inside the accommodating cavity 111; the heat dissipation hole is connected to the accommodating cavity 111, providing an air intake and exhaust channel for the heat dissipation fan; the controller 14 is also responsible for receiving data from the temperature sensor and controlling the start and stop of the heat dissipation fan according to a preset temperature threshold.
[0098] Specifically, the temperature adjustment assembly 16 operates as follows: When the controller 14 receives data from the temperature sensor and determines that the temperature within the receiving chamber 111 is greater than a first preset temperature value, the controller 14 controls the cooling fan to start. The cooling fan draws in cool air from the outside and exhausts the hot air within the receiving chamber 111, thereby lowering the temperature within the receiving chamber 111. When the temperature sensor detects that the temperature within the receiving chamber 111 is lower than a second preset temperature value, the controller 14 controls the cooling fan to shut down to avoid unnecessary energy consumption and noise.
[0099] Optionally, there are various types of temperature sensors, such as thermocouples, thermistors, and platinum resistance sensors. There are also various types of cooling fans, such as axial-flow fans, mixed-flow fans, and centrifugal fans. Specifically, in this embodiment, the types of temperature sensors and cooling fans are not limited and can be flexibly selected based on actual needs.
[0100] The first preset temperature value and the second preset temperature value are both pre-set temperature values, which are used to control the temperature thresholds for starting and shutting down the cooling fan.
[0101] Specifically, the QR code detection device 10 provided in this embodiment utilizes a temperature sensor, a cooling fan, and a controller 14 to coordinate operations to ensure that the temperature within the receiving chamber 111 remains within a suitable range, thereby protecting internal components from damage caused by high temperatures and maintaining normal operation of the device. By flexibly controlling the activation and deactivation of the cooling fan, the device maintains a moderate temperature within the receiving chamber 111 while also avoiding energy consumption and noise caused by the fan being left on for an extended period of time.
[0102] As an optional implementation, based on any of the above embodiments, refer to Figure 1 and Figure 2 As shown in , the two-dimensional code detection device 10 also includes:
[0103] The buzzer 17 is in communication with the controller 14 ; the controller 14 is further configured to control the buzzer 17 to emit a first beep in response to determining that the QR code to be detected does not meet the standards; and to control the buzzer 17 to emit a second beep in response to determining that the QR code to be detected meets the standards.
[0104] Specifically, to ensure that staff can clearly understand the working status of the QR code detection device 10, this embodiment is also provided with a buzzer 17 for providing audio feedback. When the QR code to be detected is determined to be substandard or qualified, the controller 14 controls the buzzer 17 to emit different beeps to inform the staff of the detection result.
[0105] The buzzer 17 is used to provide sound feedback and emits different sounds according to the instructions of the controller 14. The controller 14 is also responsible for controlling the buzzer 17 to emit corresponding sound feedback according to the result of the QR code detection.
[0106] Specifically, when the controller 14 determines that the QR code to be tested does not meet the standards, it controls the buzzer 17 to emit a first beep. The first beep can be short, high-frequency, or have a specific rhythm to attract the user's attention and convey the failure result. When the controller 14 determines that the QR code to be tested meets the standards, it controls the buzzer 17 to emit a second beep. The second beep can be continuous, low-frequency, or have a different rhythm to signal a successful test.
[0107] It should be noted that the quality level of QR codes has five levels (AF). When the quality level is F, the QR code is considered to be substandard, otherwise it is considered to be up to standard.
[0108] Optionally, in addition to the first beeping sound and the second beeping sound, more types of sounds may be added to indicate different detection results or states, such as error prompt sounds, warning sounds, and the like.
[0109] Specifically, the QR code detection device 10 provided in this embodiment enhances the interactive experience by providing a buzzer 17 to feedback the results of the QR code detection, thereby facilitating the staff to understand the QR code detection results more intuitively and quickly.
[0110] As an optional implementation, based on any of the above embodiments, refer to Figure 1 and Figure 2 As shown in , the two-dimensional code detection device 10 also includes:
[0111] The indicator light group 18 is arranged on the outer wall of the shell 11. The indicator light group 18 is communicated with the controller 14. The indicator lights include a first indicator light and a second indicator light. The controller 14 is also used to control the first indicator light to light up in response to determining that the QR code to be detected does not meet the standards; and control the second indicator light to light up in response to determining that the QR code to be detected meets the standards.
[0112] Specifically, in order to facilitate the staff to understand the detection result of the two-dimensional code more intuitively, the two-dimensional code detection device 10 provided in this embodiment is further provided with an indicator light group 18 for providing visual feedback.
[0113] Specifically, the indicator light group 18 is provided on the outer wall of the housing 11, and includes a first indicator light and a second indicator light, and the first indicator light and the second indicator light are both connected to the controller 14 in communication. When the QR code to be detected is determined to be substandard or up to standard, the controller 14 will control the corresponding indicator light to light up, so as to intuitively display the detection result to the user. Furthermore, when the controller 14 determines that the QR code to be detected is substandard, it will control the first indicator light to light up, and the color, flashing frequency or brightness of the first indicator light and other characteristics can be associated with the substandard state so that the user can quickly identify it; when the controller 14 determines that the QR code to be detected is up to standard, it will control the second indicator light to light up, and the characteristics of the second indicator light can be associated with the up-to-standard state to distinguish it from the substandard state.
[0114] For example, it is taken that the color of the first indicator light is set to red and the color of the second indicator light is set to green.
[0115] Optionally, in addition to the first indicator light and the second indicator light, more types of indicator lights may be added to indicate different detection results or states, such as an error indicator light, a warning light, a working status light, and the like.
[0116] Specifically, the QR code detection device 10 provided in this embodiment enhances the interactive experience by providing an indicator light group 18 to feedback the detection results of the QR code. The staff can intuitively understand the detection results of the QR code through the status of the indicator lights.
[0117] As an optional implementation, based on any of the above embodiments, refer to Figure 1 and Figure 2 As shown in , the two-dimensional code detection device 10 also includes:
[0118] The control button group 19 is arranged on the outer wall of the shell 11. The control button group 19 is in communication with the controller 14. The control button group 19 includes a test button and a stop button. The test button is used to start the test, and the stop button is used to end the test.
[0119] Specifically, in order to facilitate the control of the QR code detection device 10, the QR code detection device 10 provided in this embodiment is also provided with a control button group 19, which includes a test button and a termination button, and both are provided on the outer wall of the shell 11.
[0120] The test button is used to start the QR code detection test. When the operator presses the test button, the controller 14 starts the detection process. The stop button is used to end the QR code detection test. When the operator presses the stop button, the controller 14 stops the detection process. The controller 14 is also responsible for receiving instructions sent by the user through the control button group 19 and controlling the start and end of the QR code detection process according to the instructions.
[0121] Optionally, in addition to the test button and the end button, more types of control buttons may be added, such as a reset button, a pause button, etc., to provide richer operating functions.
[0122] Optionally, the indicator lights and control buttons can be linked to more intuitively reflect the test status. For example, when the test button is pressed, an indicator light can light up to indicate that the test is in progress; when the stop button is pressed, the indicator light can go out to indicate that the test is over.
[0123] Specifically, the QR code detection device 10 provided in this embodiment is provided with a test button and a stop button. A worker presses the test button to start a QR code detection test, and presses the stop button to end the test. Thus, the worker can conveniently control the operating state of the QR code detection device 10 through the control buttons.
[0124] As an optional implementation, based on any of the above embodiments, refer to Figure 2As shown in FIG, the QR code detection device 10 further includes a power management module 100. The power management module 100 is in communication with the controller 14. The power management module 100 is used to provide power to the various components of the QR code detection device 10. Furthermore, the power management module 100 sequentially powers the controller 14, the image sensor 134, and the light source assembly 131 according to a preset power-on sequence.
[0125] Optionally, the two-dimensional code detection device 10 is plugged into an external power interface via an external power adapter to achieve connectivity between the power management module 100 and the external circuit.
[0126] Figure 3 This is a schematic diagram of the principle of the QR code detection system provided in one embodiment of the present application, refer to Figure 3 As shown in , an embodiment of the present application also provides a QR code detection system, including a QR code detection terminal 20 and the above-mentioned QR code detection device 10, the QR code detection device 10 also includes a communication module 100, and the QR code detection device 10 is communicatively connected to the QR code detection terminal 20 through the communication module 100.
[0127] Specifically, the communication module 100 is used to receive a detection instruction sent by the QR code detection terminal 20 ; the communication module 100 is also used to send a QR code detection result and / or a QR code grayscale image to the QR code detection terminal 20 .
[0128] The two-dimensional code detection terminal 20 is used to send a detection instruction to the two-dimensional code detection device 10 to start the detection process; and receive the detection result and / or the two-dimensional code grayscale image sent by the two-dimensional code detection device 10.
[0129] In addition, the QR code detection terminal 20 can also display the detection results and / or the grayscale image of the QR code for staff to view and analyze.
[0130] Optionally, when starting detection, the QR code detection terminal 20 sends a detection instruction to the QR code detection device 10, which includes instructing the QR code detection device 10 to send the detection result to the QR code detection terminal 20 through the communication module 100, or to send the acquired QR code grayscale image.
[0131] Specifically, when the QR code detection terminal 20 receives the detection result, it only needs to display the detection result. When the QR code detection terminal 20 receives the QR code grayscale image, it processes the QR code grayscale image according to the image processing algorithm preset by the QR code detection terminal 20 to obtain the QR code detection result, that is, the QR code quality grade.
[0132] Optionally, the QR code detection terminal 20 includes, but is not limited to, a display device, a processor, an input device, and a communication interface. The display device is used to display the detection results and / or the grayscale image of the QR code, as well as a user interface; the processor is responsible for processing user input, sending detection instructions, receiving and processing detection results, etc.; the input device is used for user input and parameter setting, and the input device can be a keyboard, a touch screen, etc.; and the communication interface is used for communication connection and data transmission with the QR code detection device 10.
[0133] Optionally, the QR code detection terminal 20 can be a smart phone, a tablet computer, an industrial computer or a cloud computing platform, etc.
[0134] Optionally, the QR code detection device 10 and the QR code detection terminal 20 can be connected through a variety of communication methods to meet the needs of different scenarios, such as USB connection, network port connection, Bluetooth connection or WiFi connection.
[0135] Specifically, the QR code detection system provided in the embodiments of the present application achieves effective detection and analysis of QR codes through the collaborative operation of the QR code detection device 10 and the QR code detection terminal 20. The QR code detection system not only directly returns the detection results but also provides a grayscale image of the QR code for further analysis. This makes the system more comprehensive and accurate in QR code quality detection and adaptable to different application scenarios and needs.
[0136] It should be noted that this QR code detection system can be widely used in various applications requiring QR code detection, such as quality control on production lines, package tracking in logistics centers, and merchandise management in retail stores. This QR code detection system enables fast and accurate QR code detection, improving production efficiency and product quality.
[0137] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.
Claims
1. A two-dimensional code detection device, characterized in that: include: A housing (11), wherein the housing (11) is provided with a receiving cavity (111), and a first detection window is further provided on the housing (11), wherein the first detection window is in communication with the receiving cavity (111), and a first detection glass (12) is installed at the first detection window, wherein the first detection glass (12) is used for placing a QR code to be detected; An optical component (13), the optical component (13) being arranged in the accommodating cavity (111), the optical component (13) comprising a light source group (131), a first polarizer (132), a reflector (133), and an image sensor (134), the light source group (131) being used to provide illumination, the reflector (133) being used to reflect an image of a two-dimensional code to be detected to the image sensor (134), and the first polarizer (132) being arranged on an optical path between the two-dimensional code to be detected and the reflector (133); A controller (14), the image sensor (134) being in communication with the controller (14); the controller (14) being configured to receive image data collected by the image sensor (134) and process the image data based on a preset image algorithm.
2. The device according to claim 1, characterized in that Also includes: A drive assembly (15) is disposed in the accommodating cavity (111), the drive assembly (15) is communicatively connected to the controller (14), and the drive assembly (15) is also transmission-connected to the reflective mirror (133); The controller (14) is further configured to control the driving assembly (15) to drive the reflective mirror (133) to rotate about a first direction or translate along a second direction, so that the reflective mirror (133) reflects the image of the two-dimensional code to be detected to the image sensor (134).
3. The device according to claim 2, characterized in that The drive assembly (15) comprises: A first drive motor, a lead screw, a nut block, and a second drive motor, wherein the first drive motor is fixedly mounted on the inner wall of the accommodating chamber (111), the output end of the first drive motor is transmission-connected to the lead screw, the lead screw is extended along the second direction, the nut block is threadedly connected to the lead screw, the second drive motor is mounted on the nut block, and the second drive motor is arranged along the first direction, and the output end of the second drive motor is connected to the reflector (133); The first drive motor and the second drive motor are both connected to the controller (14) for communication. The controller (14) is further configured to control the first drive motor to drive the reflective mirror (133) parallel to the first direction, and to control the second drive motor to drive the reflective mirror (133) to rotate around the first direction.
4. The device according to claim 2, characterized in that The housing (11) is further provided with a second detection window, the second detection window being arranged opposite to the first detection window, and a second detection glass being arranged at the second detection window; The optical component (13) further includes: a second polarizer, the second polarizer being arranged on the optical path between the second detection window and the reflector (133); The controller (14) is further configured to control the driving component (15) to drive the reflective mirror (133) to rotate by a preset angle in response to determining that the two-dimensional code image to be detected is placed at the second detection window.
5. The device according to claim 1, characterized in that The light source group (131) comprises: a plurality of lamp beads and a light intensity sensor, wherein the plurality of lamp beads are horizontally and spaced apart on the inner wall of the accommodating cavity (111), the light intensity sensor is installed on the peripheral side of the first detection window, and the plurality of lamp beads and the light intensity sensor are all communicatively connected to the controller (14); The controller (14) is further configured to, in response to determining that the light intensity in the accommodating cavity (111) is less than a first preset light intensity, control the brightness of the lamp beads to increase by means of pulse width modulation; and in response to determining that the light intensity in the accommodating cavity (111) is greater than a second preset light intensity, control the brightness of the lamp beads to decrease by means of pulse width modulation; wherein the first preset light intensity is less than the second preset light intensity.
6. The device according to any one of claims 1 to 5, characterized in that Also includes: A temperature regulating assembly (15) is disposed in the accommodating cavity (111), the temperature regulating assembly (15) comprising a temperature sensor and a heat dissipation fan, the temperature sensor and the heat dissipation fan both being communicatively connected to the controller (14), a heat dissipation hole in communication with the accommodating cavity (111) being provided on the housing (11), and the heat dissipation fan being mounted at the heat dissipation hole; The controller (14) is further configured to control the cooling fan to start in response to determining that the temperature detected by the temperature sensor is greater than a first preset temperature value; and to control the cooling fan to shut down in response to determining that the temperature detected by the temperature sensor is lower than a second preset temperature value; wherein the first preset temperature value is greater than the second preset temperature value.
7. The device according to any one of claims 1 to 5, characterized in that Also includes: a buzzer (17), the buzzer (17) being communicatively connected to the controller (14); The controller (14) is further configured to control the buzzer (17) to emit a first beeping sound in response to determining that the two-dimensional code to be detected does not meet the standard; and to control the buzzer (17) to emit a second beeping sound in response to determining that the two-dimensional code to be detected meets the standard.
8. The device according to any one of claims 1 to 5, characterized in that Also includes: an indicator light group (18) disposed on the outer wall of the housing (11), the indicator light group (18) being communicatively connected to the controller (14), the indicator lights comprising a first indicator light and a second indicator light; The controller (14) is further configured to control the first indicator to light up in response to determining that the two-dimensional code to be detected does not meet the standard; and control the second indicator to light up in response to determining that the two-dimensional code to be detected meets the standard.
9. The device according to any one of claims 1 to 5, characterized in that Also includes: A control button group (19) is arranged on the outer wall of the housing (11), the control button group (19) is communicatively connected with the controller (14), and the control button group (19) includes a test button and a termination button, the test button is used to start a test, and the termination button is used to end a test.
10. A two-dimensional code detection system, characterized in that: The invention comprises a two-dimensional code detection terminal (20) and a two-dimensional code detection device (10) according to any one of claims 1 to 9, wherein the two-dimensional code detection device (10) further comprises a communication module (100), and the two-dimensional code detection device (10) is communicatively connected with the two-dimensional code detection terminal (20) via the communication module (100); The communication module (100) is used to receive a detection instruction sent by the two-dimensional code detection terminal (20); The communication module (100) is further configured to send a two-dimensional code detection result and / or a two-dimensional code grayscale image to the two-dimensional code detection terminal (20).