Duplex barcode scanner, electronic equipment and duplex barcode scanning control method

By incorporating a scanning camera, reflector, and distance detection component into the double-sided scanning device, the problem of inconvenient directional operation of the scanning device is solved, achieving efficient and low-power double-sided scanning functionality, suitable for multi-directional scanning scenarios.

CN123070147APending Publication Date: 2026-11-10SHANGHAI SUMI TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611312993.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing barcode scanning devices typically have a fixed scanning direction, which requires users in different directions to move or adjust the position and orientation of the scanning device, making operation inconvenient. Furthermore, multiple scanning devices increase the number of hardware components and power consumption, affecting the miniaturization and integration of the device.

Method used

A double-sided scanning device is adopted, which uses a scanning camera combined with a reflector and a distance detection component to form an image acquisition optical path between the two scanning windows and the camera. The distance detection component controls the camera to acquire images, and the supplementary lighting component provides auxiliary lighting when needed.

Benefits of technology

It enables efficient scanning in different directions, reduces the number of hardware components and power consumption, improves operational convenience and scanning efficiency, and adapts to multi-directional scanning needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123070147A_ABST
    Figure CN123070147A_ABST
Patent Text Reader

Abstract

This application discloses a double-sided barcode scanning device, electronic device, and double-sided barcode scanning control method. The device includes: a main body with a first scanning window and a second scanning window; a barcode scanning camera; a first reflector and a second reflector, positioned within the field of view of the barcode scanning camera. The first reflector forms a first image acquisition optical path, and the second reflector forms a second image acquisition optical path, enabling the barcode scanning camera to acquire barcode images corresponding to the first and second scanning windows respectively through the first and second reflectors; a first distance detection component and a second distance detection component for detecting the distance to a target object outside the corresponding scanning window; and a control component for image acquisition when a target object is detected to meet a preset distance condition. This application has the technical effect of improving scanning convenience and the integration of barcode scanning equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of barcode scanning equipment technology, and in particular to a double-sided barcode scanning device, electronic equipment, and double-sided barcode scanning control method. Background Technology

[0002] In retail POS applications, electronic devices can be equipped with displays facing different users and scanning devices to collect barcode information such as product barcodes, membership codes, or payment codes. Existing scanning devices typically have a fixed scanning direction. When users facing different directions need to scan, the position and orientation of the scanning device may need to be moved or adjusted, which is inconvenient.

[0003] To enable scanning by users facing different directions, some electronic devices can have separate scanning units for each direction. However, multiple scanning units increase the number of hardware components such as cameras, occupying more internal space and hindering miniaturization. Furthermore, continuous image acquisition and recognition can increase power consumption and make the device more susceptible to interference from non-scanning objects passing through the scanning area. Therefore, the ease of scanning and device integration when electronic devices face different directions warrant attention. Summary of the Invention

[0004] In view of this, this application provides a double-sided scanning device, electronic device, and double-sided scanning control method to improve the convenience and efficiency of scanning in different scanning directions.

[0005] In a first aspect, a double-sided barcode scanning device is provided, comprising: a device body having a first scanning window and a second scanning window; a barcode scanning camera disposed within the device body; a first reflector and a second reflector disposed within the field of view of the barcode scanning camera, the first reflector forming a first image acquisition optical path between the first scanning window and the barcode scanning camera, and the second reflector forming a second image acquisition optical path between the second scanning window and the barcode scanning camera, so that the barcode scanning camera can acquire barcode images corresponding to the first and second scanning windows respectively through the first and second reflectors; a first distance detection component and a second distance detection component respectively disposed corresponding to the first and second scanning windows, for detecting the distance to a target object outside the corresponding scanning window; and a control component connected to the barcode scanning camera, the first distance detection component, and the second distance detection component, for controlling the barcode scanning camera to acquire images when the first distance detection component or the second distance detection component detects that the target object meets a preset distance condition.

[0006] The above-described double-sided barcode scanning device uses a first reflector and a second reflector to form different image acquisition optical paths between the first and second scanning windows and the same scanning camera, respectively. This allows a single scanning camera to capture barcode images from different directions. While achieving double-sided scanning, it reduces the number of hardware components and internal space required by setting up multiple scanning cameras. Furthermore, by setting distance detection components corresponding to the two scanning windows and controlling the scanning camera to acquire images based on the distance detection results of the target object, scanning can be triggered based on the proximity of the target object from different scanning directions. This helps reduce invalid image acquisition when there is no actual scanning need and improves the operational convenience when scanning from different directions.

[0007] Optionally, it also includes a supplementary lighting component, which is set to correspond to the barcode scanning camera. The light emitted by the supplementary lighting component can be guided to the first barcode scanning window through the first reflector and to the second barcode scanning window through the second reflector, so that for any barcode scanning window, the supplementary lighting path corresponding to the supplementary lighting component and the image acquisition path corresponding to the barcode scanning camera pass through the same reflector. The control component is also connected to the supplementary lighting component and is used to control the supplementary lighting component to provide supplementary lighting when the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition.

[0008] Optionally, the first distance detection component and the second distance detection component are single-point time-of-flight sensors, and the detection direction of the single-point time-of-flight sensor is towards the outside of the corresponding scanning window.

[0009] Optionally, the control component is used to control the scanning camera to acquire images when the first distance detection component or the second distance detection component detects that the distance between the target object and the corresponding scanning window meets the preset distance condition, and the duration for which the target object meets the preset distance condition reaches the preset duration.

[0010] Optionally, the control component is further configured to adjust the luminance of the supplementary lighting component based on the distance of the target object detected by the first distance detection component or the second distance detection component; wherein, when the distance of the target object is less than a first distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a first brightness; when the distance of the target object is greater than or equal to the first distance threshold and less than or equal to a second distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a second brightness, wherein the second brightness is greater than the first brightness.

[0011] Optionally, the image captured by the barcode scanning camera includes a first image region corresponding to the first reflector and a second image region corresponding to the second reflector; the control component is further configured to: determine the first image region as the target image region when the first distance detection component detects that the corresponding target object meets the preset distance condition; determine the second image region as the target image region when the second distance detection component detects that the corresponding target object meets the preset distance condition; and perform barcode decoding on the target image region.

[0012] Optionally, the optical axis of the barcode scanning camera is oriented toward the side where the first and second reflectors are located, and the field of view of the barcode scanning camera simultaneously covers the mirror areas of the first and second reflectors; the first and second reflectors are tilted relative to the optical axis of the barcode scanning camera and are respectively oriented toward the first and second barcode scanning windows.

[0013] In a second aspect, an electronic device is provided, including a device body, a first display screen, a second display screen, and a double-sided barcode scanning device as provided in the first aspect; the first display screen and the second display screen are respectively arranged facing different directions; the double-sided barcode scanning device is disposed on the device body, with a first scanning window disposed on the side where the first display screen is located and a second scanning window disposed on the side where the second display screen is located, so that the double-sided barcode scanning device can respectively capture barcode images on the side where the first display screen is located and the side where the second display screen is located.

[0014] Thirdly, a double-sided barcode scanning control method is provided, applied to the double-sided barcode scanning device provided in the first aspect. The method includes: detecting the distance to a target object outside the first and second scanning windows respectively by a first distance detection component and a second distance detection component; controlling a barcode scanning camera to acquire an image when the first or second distance detection component detects that the target object meets a preset distance condition; acquiring the barcode image acquired by the barcode scanning camera and decoding the barcode image.

[0015] Optionally, the image captured by the barcode scanning camera includes a first image region corresponding to the first reflector and a second image region corresponding to the second reflector; after controlling the barcode scanning camera to capture the image when the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition, the method further includes: determining the first image region as the target image region when the first distance detection component detects that the corresponding target object meets the preset distance condition; or, determining the second image region as the target image region when the second distance detection component detects that the corresponding target object meets the preset distance condition; and performing barcode decoding on the target image region. Attached Figure Description

[0016] The accompanying drawings used in the description of the embodiments of this disclosure are briefly introduced below: Figure 1The diagram shows a structural schematic of a double-sided barcode scanning device provided in some embodiments of this application; Figure 2 This paper shows a schematic diagram of the structure of another double-sided barcode scanning device provided in some embodiments of this application; Figure 3 The present application provides a schematic diagram of the structure of an electronic device according to some embodiments; Figure 4 A flowchart illustrating a double-sided barcode scanning control method provided in some embodiments of this application is shown. Detailed Implementation

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the specific implementation methods of this application will be described below with reference to the accompanying drawings. The accompanying drawings described below are merely some embodiments of this application. For those skilled in the art, other drawings or embodiments can be obtained based on these drawings or embodiments without creative effort. Adjustments and improvements made without departing from the concept of this application are all within the protection scope of this application.

[0018] In this application, unless otherwise expressly specified and limited, ordinal numbers, such as “first”, “second”, etc., are used only to distinguish and describe related objects, and should not be construed as indicating or implying the relative importance or order between related objects; furthermore, they do not represent the number of related objects.

[0019] In retail stores, restaurants, and other similar settings, point-of-sale (POS) devices are typically used for transactions such as merchandise checkout, customer identification, and mobile payments. With increasing demand for self-service, some POS devices can be equipped with multiple displays facing different directions. For example, one display can face the cashier, and another can face the customer, allowing the cashier to perform transactions on one screen while the customer can view payment information, make payments, or undergo customer identification on another.

[0020] In the aforementioned application scenarios, POS devices are also equipped with barcode scanning functions to collect barcode information such as product barcodes, membership codes, or payment codes. Existing barcode scanning devices are typically installed in the POS device's pillar, base, or other main structure and have a relatively fixed image acquisition direction. For example, when the scanning device is facing the cashier, the cashier can simply bring the product barcode close to the scanning area to scan it; however, when a customer needs to present a membership code or payment code, the cashier may need to move the scanning device, adjust its direction, or the customer may need to insert their mobile device into the corresponding scanning range. The operation is limited by the scanning direction.

[0021] In view of this, embodiments of this application provide a duplex scanning device, an electronic device, and a duplex scanning control method. By setting a scanning camera and a first and second reflector corresponding to a first and second scanning window respectively in the duplex scanning device, and based on the image acquisition optical paths formed by the first and second reflectors between the two scanning windows and the same scanning camera, a single scanning camera can acquire barcode images from different scanning directions. Simultaneously, distance detection components are set corresponding to the first and second scanning windows respectively, and the scanning camera is controlled to acquire images based on the distance detection results of the target object outside the corresponding scanning window. Therefore, scanning from different directions can be achieved while reducing the number of scanning cameras, and invalid image acquisition when there is no actual scanning need can be reduced.

[0022] The following description is in conjunction with the accompanying drawings: Figure 1 A schematic diagram of a double-sided barcode scanning device provided in some embodiments of this application is shown. The double-sided barcode scanning device 100 includes: a device body 110 having a first scanning window 111 and a second scanning window 112; a barcode scanning camera 120 disposed within the device body 110; a first reflector 131 and a second reflector 132 disposed within the field of view of the barcode scanning camera 120. The first reflector 131 forms a first image acquisition optical path between the first scanning window 111 and the barcode scanning camera 120, and the second reflector 132 forms a second image acquisition optical path between the second scanning window 112 and the barcode scanning camera 120, so that the barcode scanning camera 120 can acquire images through the first reflector 131 and the second reflector 132 respectively. The lens 132 acquires barcode images corresponding to the first scanning window 111 and the second scanning window 112; the first distance detection component 141 and the second distance detection component 142 are respectively set for the first scanning window 111 and the second scanning window 112, and are used to detect the distance of the target object outside the corresponding scanning window; the control component 150 is connected to the barcode camera 120, the first distance detection component 141 and the second distance detection component 142, and is used to control the barcode camera 120 to acquire images when the first distance detection component 141 or the second distance detection component 142 detects that the target object meets the preset distance condition.

[0023] In the above embodiments, the device body 110 serves as the mounting base for components such as the barcode scanning camera 120, the first reflector 131, the second reflector 132, the first distance detection component 141, the second distance detection component 142, and the control component 150, and forms a first barcode scanning window 111 and a second barcode scanning window 112 in different directions. The first barcode scanning window 111 and the second barcode scanning window 112 allow light from the corresponding side barcode image to enter the area inside the device body 110. For example, they can be implemented using a light-transmitting window or other structures that allow the barcode scanning camera 120 to acquire external barcode images.

[0024] The first scanning window 111 and the second scanning window 112 correspond to different scanning directions of the duplex scanning device 100. For example, when the duplex scanning device 100 is applied to an electronic device with two opposing operating sides, the first scanning window 111 can face the cashier's side, and the second scanning window 112 can face the customer's side. The target object can be an object carrying a barcode to be identified, such as a mobile terminal displaying a membership code, payment code, or other barcode, or an object with a product barcode, material barcode, or other barcode. The barcode can include a one-dimensional barcode, a two-dimensional barcode, or other codes that can be identified through image acquisition and decoding.

[0025] The barcode camera 120 is an image acquisition component shared by the first scanning window 111 and the second scanning window 112. The first reflector 131 and the second reflector 132 are used to change the image acquisition optical path corresponding to different scanning directions, so that barcode images from both the first and second scanning windows 111 can be acquired by the same barcode camera 120. The barcode light corresponding to the target object located outside the first scanning window 111 can enter the device body 110 through the first scanning window 111, and after its propagation direction is changed by the first reflector 131, it enters the barcode camera 120, thus forming the first image acquisition optical path. Correspondingly, the barcode light corresponding to the target object located outside the second scanning window 112 can enter the device body 110 through the second scanning window 112, and after its propagation direction is changed by the second reflector 132, it enters the barcode camera 120, thus forming the second image acquisition optical path. The barcode light corresponding to the target object can include light emitted by the target object itself, or light reflected by the target object after it illuminates the target object. For example, when the target object is a mobile terminal displaying a payment code, the barcode camera 120 can capture the barcode image displayed on the mobile terminal's display interface; when the target object is a product with a printed product barcode, the barcode camera 120 can capture the barcode image on the product's surface.

[0026] In this application, both the first reflector 131 and the second reflector 132 are within the field of view of the barcode scanning camera 120, allowing it to capture images. Therefore, the first reflector 131 and the second reflector 132 can guide barcode images from different directions to the barcode scanning camera 120. Compared to using separate barcode scanning cameras for the first scanning window 111 and the second scanning window 112, this embodiment folds the image acquisition optical path, allowing the first scanning window 111 and the second scanning window 112 to share the barcode scanning camera 120, thereby reducing the number of barcode scanning cameras required for double-sided scanning.

[0027] The first distance detection component 141 is configured corresponding to the first scanning window 111 and is used to detect the distance to the target object outside the first scanning window 111; the second distance detection component 142 is configured corresponding to the second scanning window 112 and is used to detect the distance to the target object outside the second scanning window 112. The detection areas of the above-mentioned distance detection components correspond to the areas outside the corresponding scanning windows where the target object can be scanned, thereby obtaining the distance information of the target object entering the corresponding scanning area.

[0028] The preset distance condition is set to indicate that the target object has entered a distance range suitable for triggering scanning. When the first distance detection component 141 detects that the target object outside the first scanning window 111 meets the preset distance condition, it indicates that there is a target object to be scanned on the side where the first scanning window 111 is located; correspondingly, the second distance detection component 142 can also detect and determine that there may be a target object to be scanned on the side where the second scanning window 112 is located.

[0029] The control component 150 can control the image acquisition of the barcode scanning camera 120 based on the distance detection results output by the first distance detection component 141 and the second distance detection component 142. When no target object meeting the preset distance condition is present, the image acquisition process can be triggered without triggering based on the proximity of the target object. When the distance detection result on either side indicates that the target object meets the preset distance condition, the control component 150 controls the barcode scanning camera 120 to perform image acquisition. For example, when the first distance detection component 141 detects that a target object has entered the scanning range corresponding to the first barcode scanning window 111, the control component 150 can control the barcode scanning camera 120 to perform image acquisition. The barcode light corresponding to the target object outside the first barcode scanning window 111 is reflected by the first reflector 131 and reaches the barcode scanning camera 120, enabling the barcode scanning camera 120 to obtain the corresponding barcode image.

[0030] The duplex scanning device 100 provided in the above embodiments forms different image acquisition optical paths between the first scanning window 111, the second scanning window 112 and the same scanning camera 120 through the first reflector 131 and the second reflector 132, respectively. This allows one scanning camera 120 to be used for barcode image acquisition from different directions. While achieving duplex scanning, it reduces the number of hardware devices and internal space occupied by setting up multiple scanning cameras. Furthermore, by setting distance detection components corresponding to the two scanning windows respectively, and controlling the scanning camera 120 to acquire images based on the distance detection results of the target object, scanning can be triggered based on the proximity of the target object in different scanning directions. This helps reduce invalid image acquisition when there is no actual scanning need and improves the operational convenience when scanning from different directions.

[0031] in addition, Figure 2 A schematic diagram of another duplex barcode scanner provided in some embodiments of this application is shown. It is similar to... Figure 1 The difference lies in the placement of the two reflectors (refracting lenses), with the first reflector 131 and the second reflector 132 replaced by the first refracting lens 1311 and the second refracting lens 1321, respectively. Therefore, in this application, the placement and tilt direction of the first refracting lens 1311 (first reflector 131) and the second refracting lens 1321 (second reflector 132) can be set according to the available space inside the device body 110, the positions of the first scanning window 111 and the second scanning window 112, and the field of view of the scanning camera 120. For example, such as... Figure 1 The first reflector 131 and the second reflector 132 shown can be positioned close to each other, and both are tilted relative to the optical axis of the barcode camera 120 to form a reflective structure. As another example, such as... Figure 2 The first refractive lens 1311 and the second refractive lens 1321 can also be spaced apart from each other and respectively disposed on the first image acquisition optical path from the first scanning window 111 to the scanning camera 120 and the second image acquisition optical path from the second scanning window 112 to the scanning camera 120. This allows the light from the barcode images of the first scanning window 111 and the second scanning window 112 to be refracted at the corresponding refractive lenses before entering the scanning camera 120. Thus, under different internal space conditions and scanning window arrangements, the barcode images corresponding to the two scanning windows can be acquired by the same scanning camera 120 by adjusting the position and tilt direction of the first reflector 131 (first refractive lens 1311) and the second reflector 132 (second refractive lens 1321).

[0032] Continue to refer to Figure 1It also includes: a supplementary lighting component 160, which is set to correspond to the barcode scanning camera 120. The light emitted from the supplementary lighting component 160 can be guided to the first barcode scanning window 111 via the first reflector 131 and to the second barcode scanning window 112 via the second reflector 132, so that for any barcode scanning window, the supplementary lighting path corresponding to the supplementary lighting component 160 and the image acquisition path corresponding to the barcode scanning camera 120 pass through the same reflector; the control component 150 is also connected to the supplementary lighting component 160 and is used to control the supplementary lighting component 160 to provide supplementary lighting when the first distance detection component 141 or the second distance detection component 142 detects that the target object meets the preset distance condition.

[0033] In the above embodiments, the supplementary lighting component 160 can be used to provide auxiliary illumination for the scanning areas corresponding to the first scanning window 111 and the second scanning window 112 when the ambient light is insufficient. The supplementary lighting component 160 can be disposed around the scanning camera 120, for example, multiple light-emitting elements can be arranged around the lens of the scanning camera 120 to form a supplementary lighting ring. For the first scanning window 111, part of the light emitted by the supplementary lighting component 160 changes its propagation direction after being changed by the first reflector 131, and is then directed from the first scanning window 111 to the target object outside the device body 110, so that the barcode area corresponding to the target object is illuminated; the supplementary lighting path for the second scanning window 112 is similar and will not be described again. Thus, the supplementary lighting path and the first image acquisition light path formed by the first scanning window 111 both pass through the first reflector 131, and the supplementary lighting path and the second image acquisition light path formed by the second scanning window 112 both pass through the second reflector 132.

[0034] With the above settings, the supplementary light and the corresponding image acquisition light are refracted through the same reflector, which can make the direction of the supplementary light match the direction of the corresponding image acquisition. This reduces the possibility of local shadows or excessive local brightness caused by a large difference between the lighting direction and the image acquisition direction, and helps to improve the quality of barcode images acquired in low-light environments.

[0035] Taking one side of the first scanning window 111 as an example, the control component 150 can control the working state of the supplementary lighting component 160 based on the detection results of the first distance detection component 141 and the second distance detection component 142. When the double-sided scanning device 100 is in a waiting state for scanning, the supplementary lighting component 160 can be in a turned-off state or a low-power state. When the first distance detection component 141 detects that the target object outside the first scanning window 111 meets the preset distance condition, the control component 150 can control the scanning camera 120 to perform image acquisition and control the supplementary lighting component 160 to emit light. Thus, the supplementary lighting process can be coordinated with the process of the target object entering the scanning area, reducing the power consumption caused by the supplementary lighting component 160 continuously emitting light when there is no scanning requirement.

[0036] In some examples, the control component 150 can simultaneously activate the supplementary lighting component 160 when the barcode scanning camera 120 is triggered to acquire images, so that image acquisition and auxiliary lighting are carried out in the same scanning process. After the barcode recognition is completed or the current scanning process ends, the control component 150 can control the supplementary lighting component 160 to turn off, so that the double-sided barcode scanning device 100 returns to the state of waiting for the next scanning.

[0037] In some embodiments of this application, the first distance detection component 141 and the second distance detection component 142 are single-point time-of-flight sensors, and the detection direction of the single-point time-of-flight sensor is directed towards the outside of the corresponding scanning window. For example, the first distance detection component 141 and the second distance detection component 142 can be single-point time-of-flight sensors with a ranging range covering the scanning area. For instance, devices such as VL53L0X and TMF8701 can be used, whose ranging range can cover a close-range detection range of 0-20cm to meet the distance detection requirements when users bring mobile terminals, product barcodes, and other target objects close to the scanning window for scanning. The above device models and parameters are only examples; specific selection can be made based on the scanning distance of the double-sided scanning device 100, the device structure, and the application scenario.

[0038] In some embodiments of this application, the control component 150 is used to control the barcode scanning camera 120 to perform image acquisition when the first distance detection component 141 or the second distance detection component 142 detects that the distance between the target object and the corresponding barcode scanning window meets a preset distance condition, and the duration for which the target object meets the preset distance condition reaches a preset duration.

[0039] In the above embodiments, the preset duration can be used to determine the dwelling state of the target object in front of the corresponding scanning window, so as to filter out non-scanning actions such as the target object moving quickly or briefly passing through the scanning window. When the target object only briefly enters the preset distance range and then quickly leaves, even if it meets the preset distance condition at a certain moment, the control component 150 can temporarily not trigger the scanning camera 120 to collect images. When the target object remains within the preset distance range for a preset duration, it can be determined that the current target object has a relatively stable dwelling state, and the scanning camera 120 can be triggered to collect images. For example, when any distance detection component detects that the distance between the target object and the corresponding scanning window is less than 10cm, and this distance state remains stable for 100ms, it can be determined that the target object has a valid scanning intention. Thus, situations such as hands, mobile terminals, or other objects quickly passing through or briefly moving in front of the scanning window can be filtered out, reducing the probability of the scanning camera 120 being activated due to short-term approach actions.

[0040] The preset duration can be determined through multiple consecutive distance detections. For example, the first distance detection component 141 and the second distance detection component 142 can acquire distance detection results according to a preset sampling period. When the distances obtained in multiple consecutive sampling periods all meet the preset distance conditions, the control component 150 can determine that the duration for which the target object meets the preset distance conditions has reached the preset duration. For example, a single-point time-of-flight sensor can perform distance detection every 20ms. When the distances to the target object obtained in three consecutive detections are all less than or equal to a preset distance threshold, the barcode scanning camera 120 can be triggered to acquire images. The sampling period, the number of consecutive samplings, the preset duration, and the distance threshold can all be adjusted according to the scanning distance, user operating habits, and the actual device structure, and are not limited to the above examples. Furthermore, after the barcode scanning camera 120 is triggered to acquire images, a preset timeout can also be set. For example, the preset timeout can be set to 2s. If the barcode decoding is not completed within the preset timeout, the current scanning process can be terminated, and the barcode scanning camera 120 can be restored to standby mode.

[0041] By combining the distance to the target object and the duration within a preset distance range to determine the triggering time of the barcode scanning camera 120, it can filter out target objects that pass by quickly or shake briefly, making the barcode scanning camera 120 more inclined to capture images when the target object stably enters the scanning area, reducing false triggering and corresponding invalid image capture caused by non-scanning actions.

[0042] In some embodiments of this application, the control component 150 is further configured to adjust the luminance of the supplementary lighting component 160 according to the distance of the target object detected by the first distance detection component 141 or the second distance detection component 142; wherein, when the distance of the target object is less than a first distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a first brightness; when the distance of the target object is greater than or equal to the first distance threshold and less than or equal to a second distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a second brightness, wherein the second brightness is greater than the first brightness.

[0043] The control component 150 can also adjust the drive signal of the supplementary lighting component 160 according to the distance between the target object and the corresponding scanning window. For example, when the supplementary lighting component 160 uses a light-emitting diode, the brightness of the supplementary lighting component 160 can be changed by adjusting the duty cycle of the pulse width modulation signal. When the target object is close to the scanning window, a lower first brightness is used to reduce the possibility of local overexposure of the barcode image caused by close-range supplementary lighting; when the distance to the target object increases but it is still within the distance range that can trigger scanning, a higher second brightness is used to compensate for the decrease in illumination intensity caused by the increase in propagation distance.

[0044] For example, a first distance threshold can be set to 5cm, and a second distance threshold can be set to 15cm. When the distance to the target object is less than 5cm, the brightness of the supplementary lighting component 160 can be adjusted to the brightness corresponding to approximately 50% duty cycle; when the distance to the target object is between 5cm and 15cm, the brightness of the supplementary lighting component 160 can be adjusted to the brightness corresponding to 100% duty cycle. The above distance thresholds and brightness can be adjusted according to the imaging performance of the barcode scanning camera 120, the output capability of the supplementary lighting component 160, and the actual scanning distance. In some examples, the control component 150 can also acquire the ambient light brightness detected by the ambient light sensor and correct the supplementary lighting brightness determined according to the target object distance based on the ambient light brightness.

[0045] In some embodiments of this application, the image captured by the barcode scanning camera 120 includes a first image region corresponding to the first reflector 131 and a second image region corresponding to the second reflector 132; the control component 150 is further configured to: determine the first image region as the target image region when the first distance detection component 141 detects that the corresponding target object meets the preset distance condition; determine the second image region as the target image region when the second distance detection component 142 detects that the corresponding target object meets the preset distance condition; and perform barcode decoding on the target image region.

[0046] Since the field of view of the barcode scanning camera 120 simultaneously covers both the first reflector 131 and the second reflector 132, the images reflected by the first reflector 131 and the second reflector 132 can be located in different areas of the image captured by the barcode scanning camera 120. The first image area can correspond to the imaging area formed by the first barcode scanning window 111 through the first reflector 131, and the second image area can correspond to the imaging area formed by the second barcode scanning window 112 through the second reflector 132. The positions of the first image area and the second image area in the image captured by the barcode scanning camera 120 can be predetermined based on the spatial relationship between the barcode scanning camera 120, the first reflector 131, and the second reflector 132.

[0047] When the first distance detection component 141 detects that the target object corresponding to the first scanning window 111 meets the preset distance condition, it indicates that the current scanning action is occurring on the side where the first scanning window 111 is located. Based on this, the control component 150 determines the first image area as the target image area and performs barcode positioning and decoding on the first image area. Correspondingly, when the second distance detection component 142 detects that the target object corresponding to the second scanning window 112 meets the preset distance condition, the control component 150 determines the second image area as the target image area and performs barcode positioning and decoding on the second image area.

[0048] For example, the image coordinate ranges corresponding to the first and second image regions can be pre-stored. After the barcode scanning camera 120 completes the acquisition of one frame of image, the control component 150 can extract the image data within the corresponding coordinate range from the acquired image according to the distance detection component that currently triggers the scanning, and input the extracted image data into the barcode decoding process. The specific ranges of the first and second image regions can be set according to the imaging positions of the two reflectors in the field of view of the barcode scanning camera 120.

[0049] By establishing a correspondence between the detection results of the two distance detection components and different image regions in the barcode scanning camera 120, barcode processing can be performed on the image region corresponding to the current scanning direction after the current scanning direction is determined. This reduces the impact of the image content corresponding to the other scanning direction on the current decoding process, while also reducing the image range that needs to be located and decoded. This is beneficial for improving the image processing efficiency and the targeting of barcode recognition in double-sided scanning scenarios.

[0050] In some embodiments of this application, the optical axis of the barcode scanning camera 120 is oriented toward the side where the first reflector 131 and the second reflector 132 are located, and the field of view of the barcode scanning camera 120 simultaneously covers the mirror areas of the first reflector 131 and the second reflector 132; the first reflector 131 and the second reflector 132 are tilted relative to the optical axis of the barcode scanning camera 120 and are respectively oriented toward the first barcode scanning window 111 and the second barcode scanning window 112.

[0051] In the above embodiments, the barcode scanning camera 120 can face the area inside the device body 110 where the first reflector 131 and the second reflector 132 are provided, so that both the first reflector 131 and the second reflector 132 are within the range where the barcode scanning camera 120 can acquire images. Therefore, the barcode scanning camera 120 does not need to face directly towards the first scanning window 111 or the second scanning window 112 to acquire barcode images from two different directions through the corresponding reflectors.

[0052] The first reflector 131 and the second reflector 132 are tilted relative to the optical axis of the barcode camera 120 and are respectively positioned towards the corresponding barcode scanning windows. This allows the barcode image light from the first scanning window 111 to be reflected by the first reflector 131 to the barcode camera 120, and the barcode image light from the second scanning window 112 to be reflected by the second reflector 132 to the barcode camera 120. The specific tilt angles of the first reflector 131 and the second reflector 132 can be determined based on the available space inside the device body 110 and the positions of the first and second scanning windows 111 and 112. For example, when the double-sided barcode scanning device 100 is installed at the bottom of the cash register column, the first reflector 131 and the second reflector 132 can be set at an angle of 30° to 60° with the horizontal plane, and can be adjusted within the above angle range according to the space dimensions at the bottom of the column, the height and position of the scanning windows, and the installation position of the barcode camera 120.

[0053] By setting the angles as described above, the turning direction of the two image acquisition light paths can be adaptively adjusted when the space at the bottom of the cash register column is limited or the two scanning windows are in different positions. This allows the barcode image light from different scanning windows to enter the field of view of the barcode camera 120, thereby improving the adaptability of the double-sided scanning device 100 to different internal spaces and barcode window arrangements.

[0054] Figure 3 The diagram illustrates the structure of an electronic device provided in some embodiments of this application. The electronic device includes: a device body 310, a first display screen 320, a second display screen 330, and a double-sided barcode scanner 100 as provided in the above embodiments; the first display screen 320 and the second display screen 330 are respectively arranged facing different directions; the double-sided barcode scanner 100 is disposed on the device body 310, with a first scanning window 111 corresponding to the side where the first display screen 320 is located, and a second scanning window 112 corresponding to the side where the second display screen 330 is located, so that the double-sided barcode scanner 100 can respectively capture barcode images on the side where the first display screen is located and the side where the second display screen is located.

[0055] The above electronic devices can be dual-screen cash registers, desktop cash registers, self-service checkout terminals, self-service ordering devices, information interaction terminals, or other electronic devices with two opposing operating sides. Taking a dual-screen cash register as an example, the first display screen 320 can be set facing the cashier to display product settlement, order information, etc. The second display screen 330 can be set facing the customer to display settlement amount, payment information, membership information, etc. Correspondingly, the first barcode scanning window 111 can be set on the side where the first display screen 320 is located, for the cashier to scan product barcodes and other information. The second barcode scanning window 112 can be set on the side where the second display screen 330 is located, for customers to present payment codes, membership codes, etc. for scanning.

[0056] Figure 4 A flowchart illustrating a duplex barcode scanning control method provided in some embodiments of this application is shown. This method is applied to the duplex barcode scanning device 100 or the aforementioned electronic device provided in the above embodiments, and the method includes: S410: The distance to the target object outside the first scanning window and the second scanning window is detected by the first distance detection component and the second distance detection component, respectively. S420: When the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition, control the barcode scanning camera to perform image acquisition; S430: Acquires barcode images captured by the barcode scanning camera and decodes the barcode images.

[0057] The specific implementation and beneficial effects of the above-described duplex scanning control method can be found in the implementation of the duplex scanning device described above, and will not be repeated here. Additionally, in some examples, the duplex scanning device 100 may be in a standby monitoring state before executing the above-described duplex scanning control method. The first distance detection component 141 and the second distance detection component 142 perform distance detection on the target object outside the corresponding scanning window, and the scanning camera 120 may be in a standby state; if the duplex scanning device 100 includes a supplementary lighting component 160, the supplementary lighting component 160 may be in a turned-off state or a low-power state. When the target object is detected to meet the preset distance condition, the corresponding image acquisition and barcode decoding process begins. After the scanning camera 120 acquires the image, the acquired barcode image can be decoded within a preset decoding time. When decoding is successful within the preset decoding time, the corresponding decoding result is output, and the scanning camera 120 is controlled to return to the standby state after the current scanning process ends. If decoding is unsuccessful within the preset decoding time, the current scanning process ends, and the scanning camera 120 is controlled to return to the standby state. With the supplementary lighting component 160 in place, it can also be turned off when the current scanning process ends. The first distance detection component 141 and the second distance detection component 142 continue to perform distance detection in preparation for the next scanning trigger.

[0058] In some implementations, the image captured by the barcode scanning camera includes a first image region corresponding to the first reflector and a second image region corresponding to the second reflector; after controlling the barcode scanning camera to capture the image when the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition, the method further includes: determining the first image region as the target image region when the first distance detection component detects that the corresponding target object meets the preset distance condition; or, determining the second image region as the target image region when the second distance detection component detects that the corresponding target object meets the preset distance condition; and performing barcode decoding on the target image region.

[0059] In some examples, after successfully decoding the barcode image or target image area, the control component 150 can also provide the decoding result to at least one of the first display screen 320 and the second display screen 330 for display; if the current scanning process fails to decode, a prompt message for rescanning can be output on the display screen corresponding to the side where the target object is located to guide the user to scan again.

[0060] To keep the drawings simple, each figure only schematically shows the parts relevant to the embodiment, and they do not represent the actual structure of the product. In addition, for the sake of clarity and ease of understanding, some figures only schematically show parts of components with the same structure or function, and there may actually be more or fewer components with the same structure or function.

Claims

1. A double-sided barcode scanning device, characterized in that, include: The main body of the device has a first scanning window and a second scanning window; A QR code scanning camera is installed inside the main body of the device; A first reflector and a second reflector are disposed within the field of view of the barcode scanning camera. The first reflector is used to form a first image acquisition optical path between the first barcode scanning window and the barcode scanning camera, and the second reflector is used to form a second image acquisition optical path between the second barcode scanning window and the barcode scanning camera, so that the barcode scanning camera can acquire barcode images corresponding to the first barcode scanning window and the second barcode scanning window respectively through the first reflector and the second reflector. The first distance detection component and the second distance detection component are respectively set for the first scanning window and the second scanning window, and are used to detect the distance of the target object outside the corresponding scanning window. A control component is connected to the barcode scanning camera, the first distance detection component, and the second distance detection component, respectively, and is used to control the barcode scanning camera to perform image acquisition when the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition.

2. The double-sided barcode scanning device according to claim 1, characterized in that, It also includes a supplementary lighting component, which is set in relation to the barcode scanning camera. The light emitted by the supplementary lighting component can be guided to the first barcode scanning window through the first reflector and to the second barcode scanning window through the second reflector, so that for any barcode scanning window, the supplementary lighting path corresponding to the supplementary lighting component and the image acquisition path corresponding to the barcode scanning camera pass through the same reflector. The control component is also connected to the supplementary lighting component and is used to control the supplementary lighting component to provide supplementary lighting when the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition.

3. The double-sided barcode scanning device according to claim 1, characterized in that, The first distance detection component and the second distance detection component are single-point time-of-flight sensors, and the detection direction of the single-point time-of-flight sensor is towards the outside of the corresponding scanning window.

4. The double-sided barcode scanning device according to claim 3, characterized in that, The control component is used to control the scanning camera to acquire images when the first distance detection component or the second distance detection component detects that the distance between the target object and the corresponding scanning window meets the preset distance condition, and the duration for which the target object meets the preset distance condition reaches a preset duration.

5. The double-sided scanning device according to claim 2, characterized in that, The control component is further configured to adjust the luminous brightness of the supplementary lighting component based on the distance of the target object detected by the first distance detection component or the second distance detection component; Specifically, when the distance to the target object is less than a first distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a first brightness; when the distance to the target object is greater than or equal to the first distance threshold and less than or equal to a second distance threshold, the supplementary lighting component is controlled to provide supplementary lighting at a second brightness, wherein the second brightness is greater than the first brightness.

6. The double-sided barcode scanning device according to any one of claims 1 to 5, characterized in that, The image captured by the barcode scanning camera includes a first image region corresponding to the first reflector and a second image region corresponding to the second reflector; The control component is also used for: When the first distance detection component detects that the corresponding target object meets the preset distance condition, the first image region is determined to be the target image region; when the second distance detection component detects that the corresponding target object meets the preset distance condition, the second image region is determined to be the target image region. Barcode decoding is performed on the target image region.

7. The double-sided barcode scanning device according to any one of claims 1 to 5, characterized in that, The optical axis of the scanning camera is oriented toward the side where the first reflector and the second reflector are located, and the field of view of the scanning camera simultaneously covers the mirror areas of the first reflector and the second reflector. The first reflector and the second reflector are tilted relative to the optical axis of the barcode scanning camera and are respectively facing the first barcode scanning window and the second barcode scanning window.

8. An electronic device, characterized in that, Includes a main body of the device, a first display screen, a second display screen, and a double-sided scanning device as described in any one of claims 1 to 7; The first display screen and the second display screen are oriented in different directions; The double-sided scanning device is disposed on the main body of the device. The first scanning window is disposed on the side where the first display screen is located, and the second scanning window is disposed on the side where the second display screen is located, so that the double-sided scanning device can respectively capture barcode images on the side where the first display screen is located and the side where the second display screen is located.

9. A double-sided barcode scanning control method, characterized in that, The method, applied to the duplex scanning device according to any one of claims 1 to 7, comprises: The distance to the target object outside the first scanning window and the second scanning window are detected by the first distance detection component and the second distance detection component, respectively. When the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition, the scanning camera is controlled to perform image acquisition; The barcode image captured by the scanning camera is acquired and the barcode image is decoded.

10. The double-sided barcode scanning control method according to claim 9, characterized in that, The image captured by the barcode scanning camera includes a first image region corresponding to the first reflector and a second image region corresponding to the second reflector; After the first distance detection component or the second distance detection component detects that the target object meets the preset distance condition, and controls the barcode scanning camera to perform image acquisition, the method further includes: When the first distance detection component detects that the corresponding target object meets the preset distance condition, the first image region is determined to be the target image region; or, when the second distance detection component detects that the corresponding target object meets the preset distance condition, the second image region is determined to be the target image region. Barcode decoding is performed on the target image region.