Barcode recognition equipment and working method thereof
By adopting the synchronous control of the high-brightness fill light system and the main control chip in the barcode identification device, the problem of insufficient motion tolerance performance in existing equipment is solved, and higher recognition accuracy and efficiency are achieved.
Patent Information
- Application Number
- CN202411912542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-15
AI Technical Summary
The existing barcode identification equipment has low recognition accuracy and recognition efficiency due to low motion tolerance performance.
A barcode identification device is designed, and the fill light system is adopted, including fill light, control circuit and driving circuit. The drive circuit stores and charges energy before the fill light is lit, and discharges it when it is lit, so that the fill light gets a large current at the moment it is lit and is in a high brightness instantly. The main control chip controls the exposure start time of the camera coincides with the lighting time of the fill light to ensure that the fill light is in a high brightness during the camera exposure.
By improving the brightness and stability of the fill light, reducing the exposure time of the camera, improving image quality and recognition efficiency, the motion tolerance performance of the device is enhanced.
Smart Images

Figure CN119830937A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automatic identification technology, and in particular to a barcode identification device and a working method thereof. Background Art
[0002] Barcode recognition technology has been developed for many years. Barcodes are graphic symbols used to represent various data information, and barcode recognition equipment is a collection and conversion device that specifically restores these graphic symbols into data information. Barcode recognition equipment is rapidly being widely used in many industries and application occasions, including warehousing, logistics, education, medical care, etc. At present, there are more and more image-based barcode scanning devices on the market to adapt to barcode scanning and reading in various application environments.
[0003] However, with the popularization of barcode recognition equipment, new requirements have been put forward for accurate and fast barcode recognition. In the process of collecting images, barcode recognition equipment needs to collect images in a very short time to ensure that the image is not deformed, because the barcodes to be recognized are mostly handheld or on conveyor belts, and the hands are shaking and moving on the conveyor belt. This is the mobile adaptability of the barcode recognition equipment or it can also be called motion tolerance. Motion tolerance is an important part of the performance of barcode recognition equipment. Improving motion tolerance can directly improve the performance of barcode recognition equipment.
[0004] Therefore, it is a technical problem that needs to be solved urgently by those skilled in the art to provide a barcode recognition device and a working method that has strong versatility and feasibility, can perform fast and accurate recognition, improve motion tolerance performance, and ensure recognition performance. Summary of the invention
[0005] In order to solve the above technical problems, the present disclosure provides a barcode recognition device and a working method thereof, so as to solve the problem that the barcode recognition device in the prior art has low recognition accuracy and recognition efficiency due to low motion tolerance performance.
[0006] The present disclosure provides a barcode recognition device, including a power supply system, a main control chip, a camera and a fill light system;
[0007] The fill light system includes a fill light, a control circuit and a drive circuit; the control circuit is used to control the lighting and extinguishing of the fill light, and the drive circuit is used to provide energy storage for the fill light;
[0008] The power supply system is configured to supply power to the main control chip, camera, and fill light system respectively;
[0009] The main control chip is configured to control the camera exposure trigger, receive the image data sent by the camera and perform image analysis and processing, output the decoding results to the outside, and control the control circuit of the fill light system;
[0010] The main control chip controls the camera's exposure start time to coincide with the fill light's lighting time, and the fill light's lighting time is less than or equal to the camera's exposure time.
[0011] Optionally, the main control chip configures the camera via an I2C serial bus, and the main control chip controls the camera exposure trigger by outputting a first pulse width modulation signal;
[0012] The main control chip outputs the decoding result to the outside through the first communication interface;
[0013] The main control chip receives the image data sent by the camera through the second communication interface;
[0014] The main control chip controls the control circuit of the fill light system by outputting a second pulse width modulation signal.
[0015] Further optionally, the first communication interface includes a USB interface or a UART interface, and the second communication interface includes a MIPI interface.
[0016] Optionally, the driving circuit includes a first resistor, a second resistor, a first capacitor, and a second capacitor;
[0017] One end of the first resistor is electrically connected to the power supply system, the other end of the first resistor is electrically connected to one end of the second resistor and one end of the first capacitor, and the other end of the first capacitor is grounded; the other end of the second resistor is electrically connected to the first power supply end and one end of the second capacitor, and the other end of the second capacitor is grounded; the first power supply end is electrically connected to one end of the fill light, and the other end of the fill light is electrically connected to the control circuit.
[0018] Further optionally, the power supply system includes a first power supply end, a second power supply end and a third power supply end, the first power supply end is electrically connected to one end of the first resistor, the second power supply end is electrically connected to the camera, and the third power supply end is electrically connected to the main control chip.
[0019] Based on the same inventive concept, the present disclosure also provides a working method of a barcode recognition device, which is applied to the above-mentioned barcode recognition device; the working method comprises:
[0020] Initialization phase, including power supply system, main control chip, and camera initialization;
[0021] In the dormant stage, the main control chip enters the dormant stage, and the power supply system provides the first power supply to charge the drive circuit to prepare for lighting the fill light;
[0022] In the barcode image acquisition stage, the main control chip controls the exposure trigger of the camera. At the same time, it controls the opening of the control circuit, and the drive circuit discharges the fill light with a large current, making the fill light in an instant high-brightness state to provide high-brightness fill light for the camera to acquire images. The main control chip controls the closing of the control circuit, and the power supply system provides the first power supply to charge the drive circuit, and the fill light goes out. After the camera reaches the exposure time, the exposure ends and the image data is sent to the main control chip. Among them, the main control chip controls the coincidence of the exposure start moment of the camera and the lighting moment of the fill light, and the lighting time of the fill light is less than or equal to the exposure time of the camera.
[0023] In the barcode image analysis stage, the main control chip analyzes the received image data. After the analysis is completed, the decoding result is output externally.
[0024] Optionally, in the barcode image acquisition stage, the main control chip controls the lighting time of the fill light to be tl1 and the extinguishing time of the fill light to be tl2, where tl1 < tl2.
[0025] The time for the drive circuit to discharge the fill light is tc1, and the time for the power supply system to provide the first power supply to charge the drive circuit is tc2. Among them, tl1 = tc1 and tl2 = tc2.
[0026] Further optionally, the time of one frame of the camera is tt1, and the main control chip controls the time of one frame of the camera tt1 to satisfy: tl1 + tl2 = tt1.
[0027] Further optionally, the main control chip controls the lighting time of the fill light to satisfy: tl1 < tt1 × 0.024; where tt1 is the time of one frame of the camera controlled by the main control chip.
[0028] Optionally, the drive circuit includes a first resistor, a second resistor, a first capacitor, and a second capacitor.
[0029] One end of the first resistor is electrically connected to the power supply system, the other end of the first resistor is electrically connected to one end of the second resistor and one end of the first capacitor respectively, and the other end of the first capacitor is grounded; the other end of the second resistor is electrically connected to the first power supply terminal and one end of the second capacitor respectively, and the other end of the second capacitor is grounded; the first power supply terminal is electrically connected to one end of the fill light, and the other end of the fill light is electrically connected to the control circuit.
[0030] The power supply system provides the first power supply to charge the drive circuit, including:
[0031] The control circuit is turned off, the power supply system provides the first power supply through the first power supply terminal, the first power supply is input to one end of the first resistor, the first power supply charges the first capacitor through the first resistor and charges the second capacitor through the second resistor. After the charging is completed, the voltage of the first power supply terminal is equal to the value of the first power supply.
[0032] The driving circuit discharges the fill light with a large current, including:
[0033] The control circuit is turned on, the voltage stored in the second capacitor is transmitted to the first power supply end, the driving circuit provides current for the fill light, and the control circuit controls the fill light to be in an instantaneous high-brightness state.
[0034] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0035] The fill light system in the barcode recognition device provided by the present disclosure includes a fill light, a control circuit and a drive circuit. The control circuit is used to control the lighting and extinguishing of the fill light, and the drive circuit is used to provide energy storage for the fill light. The drive circuit performs energy storage charging before the fill light is lit, and discharges when the fill light needs to be lit, so that the fill light obtains a large current at the moment of being lit, and is instantly in a high-brightness state, which greatly improves the luminous brightness of the fill light when it is lit by the control circuit. The present disclosure also controls the camera exposure start time to coincide with the lighting time of the fill light through the main control chip, that is, the camera exposure and the lighting of the fill light are started at the same time, and the camera exposure and image acquisition can be started at the moment the fill light is lit, avoiding the waste of the brightness loss of the fill light. The main control chip disclosed in the present invention also controls the lighting time of the fill light to be less than or equal to the exposure time of the camera, that is, to ensure that the camera exposure and the fill light are lit at the same time, but the camera exposure end time and the fill light off time can be consistent or inconsistent, and the camera exposure time is longer than or equal to the fill light lighting time, so that the fill light can be in a high-brightness state during the camera's exposure and image acquisition process, ensuring that the camera can obtain a clear barcode image with the high brightness of the fill light, thereby improving the barcode recognition performance. The barcode recognition device disclosed in the present invention is controlled by the main control chip and the driving circuit and the control circuit in the fill light system cooperate. At the moment the camera starts to expose, the control circuit quickly lights the fill light through the energy storage discharge of the driving circuit, which can ensure that the fill light is instantly in a high-power working state. The brighter the light irradiated on the barcode, the brighter the barcode, and the shorter the time for the camera to collect the preset barcode image brightness value. Under the high brightness of the fill light, the camera can quickly obtain a clear barcode image, which is beneficial to reducing the exposure time of the camera. By reducing the exposure time of the camera, the displacement of the barcode in motion collected is smaller, the image quality is higher, and it is easier to read, thereby improving the ability to read the barcode in motion, and then can improve the motion tolerance performance, and has strong versatility and feasibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 is a structural schematic diagram of a barcode recognition device provided by an embodiment of the present invention;
[0039] Figure 2 is another structural schematic diagram of a barcode recognition device provided by an embodiment of the present invention;
[0040] Figure 3 yes Figure 2 Schematic diagram of the electrical connection structure of the driving circuit;
[0041] Figure 4 It is a flowchart of a working method of a barcode recognition device provided by an embodiment of the present invention;
[0042] Figure 5 yes Figure 4 A sequence diagram of the work method provided;
[0043] Figure 6 yes Figure 4 and Figure 5 The corresponding timing diagram of each power signal and the fill light status. DETAILED DESCRIPTION
[0044] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0046] Please refer to Figure 1 , Figure 1 000 is a structural diagram of a barcode recognition device provided by an embodiment of the present invention. The barcode recognition device 000 provided by this embodiment includes a power supply system 10, a main control chip 20, a camera 30 and a fill light system 40;
[0047] The fill light system 40 includes a fill light 401, a control circuit 402 and a drive circuit 403; the control circuit 402 is used to control the lighting and extinguishing of the fill light 401, and the drive circuit 403 is used to provide energy storage for the fill light 401;
[0048] The power supply system 10 is configured to respectively supply power to the main control chip 20 , the camera 30 , and the fill light system 40 ;
[0049] The main control chip 20 is configured to control the exposure trigger of the camera 30, receive the image data sent by the camera 30 and perform image analysis and processing, output the decoding result to the outside, and control the control circuit 402 of the fill light system 40;
[0050] The main control chip 20 controls the exposure start time of the camera 30 to coincide with the lighting time of the fill light 401 , and the lighting time of the fill light 401 is less than or equal to the exposure time of the camera 30 .
[0051] Specifically, the barcode recognition device 000 provided in this embodiment can be mainly used for the recognition and reading of barcodes. This device can be used in all environments that require barcode reading, such as product barcodes, cargo barcodes, payment codes, identification codes, etc., including paper barcodes, mobile phone screen codes, barcodes on various physical objects, etc. The application environment includes but is not limited to warehousing, logistics, hospitals, supermarkets, banks, schools, etc. The barcode recognition device 000 of this embodiment supports high-speed and accurate recognition of barcodes in any form and at any angle, and supports simultaneous recognition of multiple barcodes.
[0052] The barcode recognition device 000 of this embodiment includes a power supply system 10, a main control chip 20, a camera 30 and a fill light system 40, wherein the power supply system 10 is used to supply power to the main control chip 20, the camera 30 and the fill light system 40 respectively, and the power supply system 10 may include a multi-channel power management chip, which can be used to provide power supply to the camera 30, the fill light system 40 and the main control chip 20 through internal connection. The fill light system 40 includes a fill light 401, which can provide a fill light source for the camera 20 during barcode image acquisition, and is used to illuminate the barcode so that the camera 20 can obtain a clear image. The main control chip 20 is used to control the exposure trigger of the camera 30, receive the image data sent by the camera 30 and perform image analysis processing, output the decoding result to the outside, and control the control circuit 402 of the fill light system 40.
[0053] The existing technology of using fill light to illuminate the barcode has low brightness of the fill light, which leads to long exposure time of the camera and long image acquisition time, reducing the performance of the barcode recognition equipment. In order to meet the high motion tolerance requirements, it is necessary to increase the brightness of the fill light. The existing technology generally increases the brightness of the fill light by increasing the voltage, and generally uses an external boost or constant current driver chip to boost the voltage, which greatly increases the product cost. In addition, in this way, the fill light is in full light state when the camera is exposed, which can easily cause the fill light to be lit for too long and cause the fill light to overheat, greatly reducing the service life of the fill light; and in order to improve the power supply fluctuation problem in the existing technology, the fill light is usually not used at full power, resulting in a waste of resources.
[0054] In order to solve the above problems, the fill light system 40 provided in this embodiment includes a fill light 401, a control circuit 402 and a drive circuit 403, wherein the control circuit 402 and the drive circuit 403 are both electrically connected to the fill light 401, the control circuit 402 is used to control the lighting and extinguishing of the fill light 401, and the drive circuit 403 is used to provide energy storage for the fill light 401, that is, the drive circuit 403 is an energy storage circuit of the fill light 401, which is used to provide electrical energy for the fill light 401, and provides current to the fill light 401 when the control circuit 402 controls the fill light 401 to light up, thereby reducing voltage fluctuations when the fill light 401 is lit with a large current and for a short time. The lighting and extinguishing of the fill light 401 are completed by the control circuit 402. The function of the control circuit 402 can be understood as a switch function. After the driving circuit 403 is charged, the fill light 401 can be controlled to light up and extinguish by the control circuit 402, that is, the control circuit 402 mainly controls the lighting and extinguishing of the fill light 401.
[0055] Since the direct factor affecting motion tolerance is the camera exposure time, the shorter the exposure time, the better the motion tolerance effect, and the longer the exposure time, the worse the motion tolerance. The brighter the fill light, the brighter the brightness of the barcode, and the shorter the camera exposure time. Conversely, the darker the fill light, the longer the exposure time, and the worse the motion tolerance. Therefore, in this embodiment, the driving circuit 403 in the fill light system 40 performs energy storage charging before the fill light 401 is lit, and discharges when the fill light 401 needs to be lit, so that the fill light 401 obtains a large current at the moment of being lit, and is instantly in a high-brightness state, which greatly improves the luminous brightness of the fill light 401 when it is lit by the control circuit 402. Moreover, the driving circuit 403 discharges when the fill light 401 needs to be lit, so that the fill light 401 can be instantly in a high-power working state with extremely high brightness.
[0056] In this embodiment, the main control chip 20 is also used to control the start time of the exposure of the camera 30 to coincide with the lighting time of the fill light 401, that is, the exposure of the camera 30 and the lighting of the fill light 401 are started at the same time, and the exposure and image acquisition of the camera 30 can be started at the moment the fill light 401 is lit, thereby avoiding the waste of the brightness loss of the fill light 401. The main control chip 20 of this embodiment also controls the lighting time of the fill light 401 to be less than or equal to the exposure time of the camera 30, that is, it is ensured that the exposure of the camera 30 and the lighting of the fill light 401 are started at the same time, but the end time of the exposure of the camera 30 and the extinguishing time of the fill light 401 can be consistent or inconsistent, and the exposure time of the camera 30 can be longer than the lighting time of the fill light 401, so that the fill light 401 can be in a high brightness state during the exposure and image acquisition process of the camera 30, ensuring that the camera 30 can obtain a clear barcode image with the high brightness of the fill light 401, thereby improving the barcode recognition performance.
[0057] The barcode recognition device 000 of this embodiment, through the control of the main control chip 20, cooperates with the driving circuit 403 and the control circuit 402 in the fill light system 40. At the moment when the camera 30 starts to expose, the control circuit 402 quickly lights up the fill light 401 through the energy storage discharge of the driving circuit 403, which can ensure that the fill light 401 is instantly in a high-power working state. The brighter the light irradiated on the barcode, the brighter the barcode, and the shorter the time for the camera 30 to collect the preset barcode image brightness value. Under the high brightness of the fill light 401, the camera 30 can quickly obtain a clear barcode image, which is beneficial to reducing the exposure time of the camera 30. By reducing the exposure time of the camera 30, the displacement of the barcode in motion collected is smaller, the image quality is higher, and it is easier to read, thereby improving the ability to read the barcode in motion, and then can improve the motion tolerance performance, and has strong versatility and feasibility.
[0058] It should be noted that the fill light 401 of this embodiment can be an LED lamp, which provides a visible light source, which is beneficial to reduce costs while ensuring the fill light effect, and is harmless to the environment and human body.
[0059] In some optional embodiments, please refer to Figure 1 and Figure 2 , Figure 2 000 is another structural diagram of a barcode recognition device provided by an embodiment of the present invention. In the barcode recognition device 000 provided by this embodiment, the main control chip 20 configures the camera 30 through the I2C serial bus, and the main control chip 20 controls the exposure trigger of the camera 30 by outputting the first pulse width modulation signal PWM-1;
[0060] The main control chip 20 outputs the decoding result to the outside through the first communication interface;
[0061] The main control chip 20 receives the image data sent by the camera 30 through the second communication interface;
[0062] Optionally, the first communication interface includes a USB interface or a UART interface, and the second communication interface includes a MIPI interface;
[0063] The main control chip 20 controls the control circuit 402 of the fill light system 40 by outputting the second pulse width modulation signal PWM-2.
[0064] This embodiment explains that the main control chip 20 controls the exposure of the camera 30 by outputting the first pulse width modulation signal PWM-1, specifically, the camera 30 is configured through the I2C serial bus, and the exposure of the camera 30 is triggered by the first pulse width modulation signal PWM-1, so that the exposure start time of the camera 30 coincides with the lighting time of the fill light 401. The main control chip 20 also controls the control circuit 402 of the fill light system 40 by outputting the second pulse width modulation signal PWM-2, so that the control circuit 402 can control the lighting and extinguishing of the fill light 401; optionally, in order to make the exposure start time of the camera 30 coincide with the lighting time of the fill light 401, the edge change time of the first pulse width modulation signal PWM-1 can be set to be consistent with the edge change time of the second pulse width modulation signal PWM-2. The main control chip 20 also receives the image data sent by the camera 30 through the second communication interface such as the MIPI interface, and performs decoding and analysis processing through the core of the main control chip 30. After the analysis is completed, the decoding result is output to the outside through the first communication interface such as the USB interface or the UART interface.
[0065] In this embodiment, the exposure trigger of the camera 30 is controlled by an external first pulse width modulation signal PWM-1, and the lighting of the fill light 401 is controlled by an external second pulse width modulation signal PWM-2, and the edge change moment of the first pulse width modulation signal PWM-1 is consistent with the edge change moment of the second pulse width modulation signal PWM-2. In this way, the exposure time interval of the camera 30 can be consistent with the lighting time interval of the fill light 401, which is convenient for adjusting the exposure parameters. That is, the fill light 401 can be set to light up at the same time as the exposure of the camera 30, which will not cause the human eye to feel that the fill light flickers, thereby improving the user experience.
[0066] Optionally, the barcode recognition device 000 of this embodiment may also include an interface circuit, which may include the above-mentioned interface. The interface circuit generally includes an external interface of the barcode recognition device 000, such as a power supply interface, a communication interface, a code scanning trigger pin, an indicator light control output interface, and a buzzer control output interface. Among them, the power supply interface connects an external USB power supply to the barcode recognition device 000 to power it; the communication interface, such as a USB interface or a UART interface, is used to output decoding results and receive configuration instructions; the code scanning trigger pin is used to trigger the barcode recognition device 000 to perform a code scanning operation through the code scanning trigger pin in the trigger mode; the indicator light control output interface can be connected to an external indicator light circuit, and the indicator light is a code scanning success indicator light. After the code scanning is successful, the indicator light control output interface can output a pulse high level to the outside, and the indicator light can be lit through the external indicator light circuit; the buzzer control output interface can be connected to an external buzzer control circuit. When scanning the code, the buzzer control output interface can output a control signal to the outside, and the buzzer sound is controlled by the external buzzer control circuit.
[0067] It can be understood that the interface circuit of this embodiment is only an example. During specific implementation, different interfaces can be set or replaced according to actual needs to achieve different performance requirements of the barcode recognition device 000, and this embodiment does not limit this.
[0068] In some optional embodiments, please refer to Figure 2 and Figure 3 , Figure 3 yes Figure 2 Schematic diagram of the electrical connection structure of the driving circuit in the embodiment, in this embodiment, the driving circuit 403 includes a first resistor R1, a second resistor R2, a first capacitor C1, and a second capacitor C2;
[0069] One end of the first resistor R1 is electrically connected to the power supply system 10, and the other end of the first resistor R1 is electrically connected to one end of the second resistor R2 and one end of the first capacitor C1, respectively, and the other end of the first capacitor C1 is grounded GND; the other end of the second resistor R2 is electrically connected to the first power supply terminal VCC and one end of the second capacitor C2, respectively, and the other end of the second capacitor C2 is grounded GND; the first power supply terminal VCC is electrically connected to one end of the fill light 401, and the other end of the fill light 401 is electrically connected to the control circuit 402.
[0070] Optionally, the power supply system 10 includes a first power supply terminal 101, a second power supply terminal 102 and a third power supply terminal 103, the first power supply terminal 101 is electrically connected to one end of the first resistor R1, the second power supply terminal 102 is electrically connected to the camera 30, and the third power supply terminal 103 is electrically connected to the main control chip 20.
[0071] This embodiment explains that the electrical connection structure of the driving circuit 403 for providing energy storage for the fill light 401, that is, for providing electrical energy for the fill light 401, may include two resistors and two capacitors. Before the fill light 401 does not need to be lit, the second pulse width modulation signal PWM-2 is transmitted to the control circuit 402 through the main control chip 20 to control the control circuit 402 to turn off the fill light system 40. The first power supply VIN provided by the first power supply terminal 101 charges the first capacitor C1 and the second capacitor C2 through the first resistor R1 and the second resistor R2. After charging, the voltage of the first power supply terminal VCC is equal to the first power supply VIN. When the fill light 401 needs to be turned on, the second pulse width modulation signal PWM-2 is transmitted to the control circuit 402 through the main control chip 20, the control circuit 402 of the fill light system 40 is turned on, the first power supply terminal VCC is electrically connected to one end of the fill light 401, the other end of the fill light 401 is electrically connected to the control circuit 402, the control circuit 402 can be grounded, the electric energy stored in the second capacitor C2 is transmitted to the first power supply terminal VCC, and current is provided to the fill light 401. The first capacitor C1 provides current to the fill light 401 through the current limiting of the second resistor R2, and the fill light 401 is turned on. When the fill light 401 is instantly lit, the current on the fill light 401 can be discharged to the ground terminal through the control circuit 402. The driving circuit 403 can ensure that the fill light 401 is lit quickly and provide a large current value for the fill light 401, so that the fill light 401 can be lit with a large current and in a short time, reducing voltage fluctuations; after the first power supply terminal VCC voltage lights up the fill light 401, the control circuit 402 controls the fill light 401 to turn off; the control circuit 402 is turned off, and the first power supply VIN charges the first capacitor C1 and the second capacitor C2 again through the first resistor R1 and the second resistor R2, and this process is repeated during the operation of the device.
[0072] The driving circuit 403 provided in this embodiment limits the charging current of the first power supply VIN through the first resistor R1 and the second resistor R2, thereby reducing the fluctuation of the system power supply voltage. In addition, the driving circuit 403 of the fill light system 40 of this embodiment adopts a discrete component parallel connection mode, and does not use boost and constant current driving components. While maintaining the same fill light performance as the existing ones, the circuit is simple, low-cost, and easy to maintain. In this embodiment, through the charging and discharging control of the driving circuit 403, the camera 30 is charged and stored before the camera 30 starts to expose, and the fill light 401 is quickly lit up by discharging at the moment of camera exposure. This can ensure that the fill light 401 can work at full power during the exposure and picture collection period of the camera 30, so as to quickly obtain a clear image, which is conducive to reducing the exposure time of the camera 30. By reducing the exposure time of the camera, the motion tolerance performance can be effectively improved, thereby improving the ability to read barcodes in motion.
[0073] In some optional embodiments, please refer to Figure 1-Figure 2 , Figure 4 and Figure 5 , Figure 4 is a flowchart of a working method of a barcode recognition device provided by an embodiment of the present invention. Figure 5 yes Figure 4 The working method provided is a sequential diagram of the working method. The working method of the barcode recognition device provided in this embodiment can be applied to the barcode recognition device 000 of any of the above embodiments; the working method of this embodiment includes:
[0074] S11: initialization phase, including initialization of the power supply system 10, the main control chip 20, and the camera 30;
[0075] S12: Sleeping stage: the main control chip 20 enters the sleeping stage, and the power supply system 10 provides the first power supply VIN to charge the driving circuit 403 to prepare for lighting the fill light 401;
[0076] S13: In the barcode image acquisition stage, the main control chip 20 controls the exposure trigger of the camera 30, and controls the opening of the control circuit 402 at the same time, and the driving circuit 403 discharges the fill light 401 with a large current, so that the fill light 401 is in an instantaneous high-brightness state, providing high-brightness fill light for the camera 30 to collect images; the main control chip 20 controls the closing of the control circuit 402, and the power supply system 10 provides the first power supply VIN to charge the driving circuit 403, and the fill light 401 is extinguished; after the camera 30 reaches the exposure time, the exposure ends and the image data is sent to the main control chip 20; wherein, the main control chip 20 controls the exposure start time of the camera 30 to coincide with the lighting time of the fill light 401, and the lighting time of the fill light 401 is less than or equal to the exposure time of the camera 30;
[0077] S14: In the barcode image parsing stage, the main control chip 20 parses the received image data, and outputs the decoding result after the parsing is completed.
[0078] This embodiment explains that when the barcode recognition device 000 in the above embodiment is used to read and recognize the barcode, the workflow or working method can be an initialization phase in the T1 period, which includes resetting the power supply system 10, initializing the main control chip 20, and initializing the camera 30. Then, a dormant phase is performed in the T2 period, the main control chip 20 enters a dormant state, and the power supply system 10 provides the first power supply VIN to charge the drive circuit 403, in preparation for lighting the fill light 401. Then, in the T3 time period, the barcode image acquisition phase is carried out. The main control chip 20 controls the exposure trigger of the camera 30 by outputting a control signal, and at the same time controls the opening of the control circuit 402. The driving circuit 403 discharges the fill light 401 with a large current, so that the fill light 401 is in an instantaneous high-brightness state, providing high-brightness fill light for the camera 30 to collect images; the main control chip 20 controls the closing of the control circuit 402, and the power supply system 10 provides the first power supply VIN to charge the driving circuit 403, and the fill light 401 is extinguished; after the camera 30 reaches the exposure time, the exposure ends and the image data is sent to the main control chip 20; wherein, the main control chip 20 controls the exposure start time of the camera 30 to coincide with the lighting time of the fill light 401, and the lighting time of the fill light 401 is less than or equal to the exposure time of the camera 30. Finally, in the T4 time period, the barcode image parsing phase is carried out, and the core of the main control chip 20 parses the received image data, and after the parsing is completed, the decoding result is output externally. Optionally, the decoding time can be significantly reduced by increasing the main frequency of the main control chip 20. Therefore, the barcode recognition device 000 of this embodiment can use a high-performance main control chip 20 to reduce the decoding time and improve the recognition efficiency.
[0079] The working method of the barcode recognition device of this embodiment is that in the dormant stage, the power supply system 10 provides the first power supply VIN to charge the driving circuit 403 to prepare for lighting the fill light 401, so that after entering the barcode image acquisition stage, through the control of the main control chip 20, the driving circuit 403 and the control circuit 402 in the fill light system 40 cooperate, at the moment when the camera 30 starts to expose, the control circuit 402 quickly lights up the fill light 401 through the energy storage discharge of the driving circuit 403, which can ensure that the fill light 401 is instantly in a high-power working state. The brighter the light irradiated on the barcode, the brighter the barcode, and the shorter the time for the camera 30 to collect the preset barcode image brightness value. Under the high brightness of the fill light 401, the camera 30 can quickly obtain a clear barcode image, which is beneficial to reducing the exposure time of the camera 30. By reducing the exposure time of the camera 30, the displacement of the barcode in motion collected is smaller, the image quality is higher, and it is easier to read, thereby improving the ability to read the barcode in motion, and then can improve the motion tolerance performance, and has strong versatility and feasibility.
[0080] Optionally, in the working method of the barcode recognition device provided in this embodiment, in the barcode image acquisition stage, the main control chip 20 controls the exposure of the camera 30 by outputting the first pulse width modulation signal PWM-1, specifically, the camera 30 is configured through the I2C serial bus, and the exposure of the camera 30 is triggered by the first pulse width modulation signal PWM-1, so that the exposure start time of the camera 30 coincides with the lighting time of the fill light 401. The main control chip 20 also controls the control circuit 402 of the fill light system 40 by outputting the second pulse width modulation signal PWM-2, so that the control circuit 402 can control the lighting and extinguishing of the fill light 401. In order to make the exposure start time of the camera 30 coincide with the lighting time of the fill light 401, the edge change time of the first pulse width modulation signal PWM-1 can be set to be consistent with the edge change time of the second pulse width modulation signal PWM-2. The main control chip 20 also receives the image data sent by the camera 30 through the second communication interface such as the MIPI interface, and performs decoding and analysis processing through the core of the main control chip 30. After the analysis is completed, the decoding result is output to the outside through the first communication interface such as the USB interface or the UART interface. In the working method provided in this embodiment, the exposure trigger of the camera 30 is controlled by the external first pulse width modulation signal PWM-1, and the lighting of the fill light 401 is controlled by the external second pulse width modulation signal PWM-2, and the edge change moment of the first pulse width modulation signal PWM-1 is consistent with the edge change moment of the second pulse width modulation signal PWM-2, so that the exposure time interval of the camera 30 can be consistent with the lighting time interval of the fill light 401, which is convenient for adjusting the exposure parameters, that is, the fill light 401 can be set to light up at the same time as the exposure of the camera 30, which will not cause the human eye to feel that the fill light flickers, which is conducive to improving the user experience.
[0081] In some optional embodiments, please refer to Figure 1-Figure 2 , Figure 4-Figure 5 and Figure 6 , Figure 6 yes Figure 4 and Figure 51 is a timing diagram corresponding to each power signal and the fill light status. In this embodiment, in the barcode image acquisition stage, the main control chip 20 controls the fill light 401 to be turned on for tl1, and the fill light is turned off for tl2, tl1<tl2; the time for the drive circuit 403 to discharge the fill light 401 is tc1, and the time for the power supply system 10 to provide the first power supply VIN to charge the drive circuit 403 is tc2; wherein, the time tc1 for the drive circuit 403 to discharge the fill light 401 is the time tl1 for the main control chip 20 to control the fill light 401 to be turned on, and the time tc2 for the power supply system 10 to provide the first power supply VIN to charge the drive circuit 403 is the time tl2 for the fill light to be turned off. Assuming that the one-frame time of the camera 30 is tt1, the one-frame time tt1 of the camera 30 controlled by the main control chip 20 satisfies tl1+tl2=tt1, that is, the sum of the lighting time tl1 and the extinguishing time tl2 of the fill light 401 controlled by the main control chip 20 is the one-frame time tt1 of the camera 30. It can be understood that, in this embodiment, the one-frame time tt1 of the camera 30 refers to the time required for the camera to capture one picture, and the frame rate (Frame Rate) refers to the number of frames that the camera can capture per second, usually expressed in fps (Frames Per Second). For example, a camera with a frame rate of 25fps means that 25 pictures can be captured per second, that is, the time of one frame is 1 / 25 second. Assuming that the frame rate of the camera is 25fps, the time of one frame is 1 / 25 second, that is, 40 milliseconds.
[0082] In the sleep stage, the power supply system 10 provides the first power supply VIN to charge the driving circuit 403, and prepares for lighting the fill light 401. After entering the barcode image acquisition stage, through the control of the main control chip 20, the driving circuit 403 and the control circuit 402 in the fill light system 40 cooperate. At the moment when the camera 30 starts to be exposed, the fill light 401 is instantly lit and is in a high-brightness state. That is, within the lighting time tl1 of the fill light 401 controlled by the main control chip 20, the fill light 401 is in an instantaneous high-power working state with extremely high brightness. The working method of this embodiment is set in the barcode image acquisition stage, and the main control chip 20 controls the lighting time tl1 of the fill light 401 to be less than the off time tl2 of the fill light, that is, the lighting time tl1 of the fill light 401 is short and high-brightness, the lighting time tl1 of the fill light 401 accounts for a small proportion, and the off time accounts for a large proportion. Optionally, it is ensured that the lighting time tl1 of the fill light 401 can be less than 10% of the sum of the lighting time tl1 and the off time tl2 of the fill light 401, so that the fill light 401 can be fully cooled during the off time, and then the overall average power of the fill light 401 is low, and the internal average temperature is low, which is beneficial to improve the brightness of the fill light 401 without affecting the service life of the fill light 401.
[0083] Optionally, in this embodiment, the lighting time of the supplementary light 401 controlled by the main control chip 20 satisfies: tl1 < tt1×0.024; where tt1 is the time of one frame of the camera controlled by the main control chip 20, and according to experiments, it can be set that during the bar code image acquisition stage, the lighting time tl1 of the supplementary light 401 controlled by the main control chip 20 is much less than the extinguishing time tl2 of the supplementary light. The lighting time tl1 of the supplementary light 401 can be less than 2.4% of the time tt1 of one frame of the camera 30, that is, the lighting time tl1 of the supplementary light 401 can be less than 2.4% of the sum of the lighting time tl1 and the extinguishing time tl2 of the supplementary light 401, so that the supplementary light 401 can be fully cooled during the extinguishing time, and thus the overall average power of the supplementary light 401 is low, which is beneficial to better improving the service life.
[0084] In some alternative embodiments, please continue to refer to Figure 2-Figure 6 in the bar code recognition device 000 to which the working method of this embodiment is applied, the driving circuit 403 includes a first resistor R1, a second resistor R2, a first capacitor C1, and a second capacitor C2;
[0085] One end of the first resistor R1 is electrically connected to the power supply system 10, and the other end of the first resistor R1 is electrically connected to one end of the second resistor R2 and one end of the first capacitor C1 respectively, and the other end of the first capacitor C1 is grounded to GND; the other end of the second resistor R2 is electrically connected to the first power supply terminal VCC and one end of the second capacitor C2 respectively, and the other end of the second capacitor C2 is grounded to GND; the first power supply terminal VCC is electrically connected to one end of the supplementary light 401, and the other end of the supplementary light 401 is electrically connected to the control circuit 402.
[0086] Optionally, the power supply system 10 includes a first power supply terminal 101, a second power supply terminal 102, and a third power supply terminal 103. The first power supply terminal 101 is electrically connected to one end of the first resistor R1, the second power supply terminal 102 is electrically connected to the camera 30, and the third power supply terminal 103 is electrically connected to the main control chip 20.
[0087] The power supply system 10 provides a first power supply VIN to charge the driving circuit 403, including: when the control circuit 402 is turned off, the power supply system 10 provides the first power supply VIN through the first power supply terminal 101. The first power supply VIN is input to one end of the first resistor R1, and the first power supply VIN charges the first capacitor C1 through the first resistor R1 and charges the second capacitor C2 through the second resistor R2. After charging is completed, the voltage of the first power supply terminal VCC is equal to the value of the first power supply VIN;
[0088] The driving circuit 403 discharges the fill light 401 with a large current, including: the control circuit 402 is turned on, the voltage stored in the second capacitor C2 is transmitted to the first power supply terminal VCC, the driving circuit 403 provides current for the fill light 401, and the control circuit 402 controls the fill light 401 to be in an instantaneous high-brightness state.
[0089] The working method of this embodiment explains the specific structure and working principle of the driving circuit 403. The electrical connection structure of the driving circuit 403 for providing electrical energy to the fill light 401 may include two resistors and two capacitors. Before the fill light 401 is not needed to be turned on, the control circuit 402 of the fill light system 40 is turned off, and the first power supply VIN provided by the first power supply terminal 101 charges the first capacitor C1 and the second capacitor C2 through the first resistor R1 and the second resistor R2. After charging, the voltage of the first power supply terminal VCC is equal to the first power supply VIN. When the fill light 401 needs to be turned on, the control circuit 402 of the fill light system 40 is turned on, and the electric energy stored in the second capacitor C2 is transmitted to the first power supply terminal VCC to provide current for the fill light 401. The first capacitor C1 provides current for the fill light 401 through the current limiting of the second resistor R2, and the fill light 401 is turned on. The drive circuit 403 can ensure that the fill light 401 is turned on quickly, and provides a large current value for the fill light 401, so that the fill light 401 can be turned on with a large current and in a short time, reducing voltage fluctuations; after the voltage at the first power supply terminal VCC turns on the fill light 401, the control circuit 402 controls the fill light 401 to turn off; the control circuit 402 is turned off, and the first power supply VIN charges the first capacitor C1 and the second capacitor C2 again through the first resistor R1 and the second resistor R2, and the process is repeated during the operation of the device.
[0090] In the working method provided in this embodiment, the driving circuit 403 limits the charging current of the first power supply VIN through the first resistor R1 and the second resistor R2, thereby reducing the fluctuation of the system power supply voltage. In addition, the driving circuit 403 adopts a parallel connection mode of discrete components, and does not use boost and constant current driving components. While being able to maintain the same performance as the existing fill light, the circuit is simple, low-cost, and easy to maintain. Through the charging and discharging control of the driving circuit 403, the camera 30 is charged and stored before the camera 30 starts to expose, and the fill light 401 is quickly lit up by discharging at the moment of exposure of the camera, which can ensure that the fill light 401 can work at full power during the exposure and picture collection period of the camera 30, so as to quickly obtain a clear image, which is conducive to reducing the exposure time of the camera 30. By reducing the exposure time of the camera, the motion tolerance performance can be effectively improved, thereby improving the ability to read barcodes in motion.
[0091] The working method of this embodiment controls the driving circuit 403 through the main control chip 20, so that the fill light 401 is in a state of instantaneous high brightness when the driving circuit 403 discharges, thereby increasing the brightness of the fill light 401 for the camera 30, and effectively reducing the exposure time of the camera 30. The barcode image acquisition stage is performed in the T3 time period, and the T3 time period is equal to the sum of the exposure time of the camera 30 and the time when the camera 30 outputs the acquired image data. The time when the camera 30 outputs the acquired image data is a fixed value, so reducing the exposure time of the camera 30 is equivalent to reducing the time of the barcode image acquisition stage, which can effectively improve the performance of the device.
[0092] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0093] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A barcode recognition device, characterized in that: Including power supply system, main control chip, camera and fill light system; The fill light system includes a fill light, a control circuit and a drive circuit; the control circuit is used to control the lighting and extinguishing of the fill light, and the drive circuit is used to provide energy storage for the fill light; The power supply system is configured to supply power to the main control chip, the camera, and the fill light system respectively; The main control chip is configured to control the exposure trigger of the camera, receive the image data sent by the camera and perform image analysis and processing, output the decoding result to the outside, and control the control circuit of the fill light system; The main control chip controls the exposure start time of the camera to coincide with the lighting time of the fill light, and the lighting time of the fill light is less than or equal to the exposure time of the camera.
2. The barcode recognition device according to claim 1, characterized in that: The main control chip configures the camera via an I2C serial bus, and the main control chip controls the camera exposure trigger by outputting a first pulse width modulation signal; The main control chip outputs the decoding result to the outside through the first communication interface; The main control chip receives the image data sent by the camera through the second communication interface; The main control chip controls the control circuit of the fill light system by outputting a second pulse width modulation signal.
3. The barcode recognition device according to claim 2, characterized in that: The first communication interface includes a USB interface or a UART interface, and the second communication interface includes a MIPI interface.
4. The barcode recognition device according to claim 1, characterized in that: The driving circuit includes a first resistor, a second resistor, a first capacitor, and a second capacitor; One end of the first resistor is electrically connected to the power supply system, and the other end of the first resistor is electrically connected to one end of the second resistor and one end of the first capacitor, respectively, and the other end of the first capacitor is grounded; the other end of the second resistor is electrically connected to the first power supply end and one end of the second capacitor, respectively, and the other end of the second capacitor is grounded; the first power supply end is electrically connected to one end of the fill light, and the other end of the fill light is electrically connected to the control circuit.
5. The barcode recognition device according to claim 4, characterized in that: The power supply system includes a first power supply end, a second power supply end and a third power supply end. The first power supply end is electrically connected to one end of the first resistor, the second power supply end is electrically connected to the camera, and the third power supply end is electrically connected to the main control chip.
6. A working method of a barcode recognition device, characterized in that: The barcode recognition device according to any one of claims 1 to 5; the working method comprises: The initialization phase includes initializing the power supply system, the main control chip, and the camera; In the dormant stage, the main control chip enters the dormant stage, and the power supply system provides a first power supply to charge the drive circuit to prepare for lighting the fill light; During the barcode image acquisition stage, the main control chip controls the exposure trigger of the camera. At the same time, it controls the opening of the control circuit, and the drive circuit discharges a large current to the fill light, making the fill light in an instant high-brightness state to provide high-brightness fill light for the camera to acquire images. The main control chip controls the closing of the control circuit, and the power supply system provides a first power supply to charge the drive circuit, and the fill light goes out. After the camera reaches the exposure time, the exposure ends and the image data is sent to the main control chip. Among them, the main control chip controls the coincidence of the exposure start moment of the camera and the lighting moment of the fill light, and the lighting time of the fill light is less than or equal to the exposure time of the camera. During the barcode image parsing stage, the main control chip parses the received image data, and after the parsing is completed, it outputs the decoding result externally.
7. The working method of the barcode recognition device according to claim 6, characterized in that During the barcode image acquisition stage, the main control chip controls the lighting time of the fill light to be tl1, and the extinguishing time of the fill light to be tl2, where tl1 < tl2. The time for the drive circuit to discharge the fill light is tc1, and the time for the power supply system to provide a first power supply to charge the drive circuit is tc2. Among them, tl1 = tc1 and tl2 = tc2.
8. The working method of the barcode recognition device according to claim 7, characterized in that: The time for one frame of the camera is tt1, and the main control chip controls the time for one frame of the camera tt1 to satisfy: tl1 + tl2 = tt1.
9. The working method of the barcode recognition device according to claim 7, characterized in that: The main control chip controls the lighting time of the fill light to satisfy: tl1 < tt1 × 0.024; where tt1 is the time for one frame of the camera controlled by the main control chip.
10. The working method of the barcode recognition device according to claim 6, characterized in that: The drive circuit includes a first resistor, a second resistor, a first capacitor, and a second capacitor. One end of the first resistor is electrically connected to the power supply system, and the other end of the first resistor is electrically connected to one end of the second resistor and one end of the first capacitor respectively. The other end of the first capacitor is grounded. The other end of the second resistor is electrically connected to the first power supply terminal and one end of the second capacitor respectively. The other end of the second capacitor is grounded. The first power supply terminal is electrically connected to one end of the fill light. The other end of the fill light is electrically connected to the control circuit. The power supply system provides a first power supply to charge the drive circuit, including: When the control circuit is turned off, the power supply system provides a first power supply through the first power supply terminal. The first power supply is input to one end of the first resistor. The first power supply charges the first capacitor through the first resistor and charges the second capacitor through the second resistor. After the charging is completed, the voltage at the first power supply terminal is equal to the value of the first power supply. The drive circuit discharges a large current to the fill light, including: When the control circuit is turned on, the voltage stored in the second capacitor is transmitted to the first power supply terminal. The drive circuit provides current to the fill light, and the control circuit controls the fill light to be in an instant high-brightness state.
Citation Information
Patent Citations
Camera light-filling method
CN107257428A
Fill light panel
CN108227336A
Circuit for continuous photographing of camera
CN108363261A
Barcode scanning system and method
CN109740393A
Camera light supplementing method and device
CN112351184A