A barcode scanning device and method for dynamic package

Through the combination of rotating mirror and scanning code camera, the cost and debugging complexity of scanning codes for multiple cameras in automated logistics sorting is solved, and efficient barcode scanning of a single camera in different locations is realized, simplifying installation and reducing costs .

CN113033228BActive Publication Date: 2024-11-22SHENZHEN HOME TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110346857.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2024-11-22
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

In the automated logistics sorting, the existing technology has a small barcode size and different parcel sizes, which makes it difficult to obtain clear and stable barcode pictures decoding, and multiple cameras are required to scan codes at the same time to cover different locations, which increases cost and debugging time.

Method used

The rotating mirror and the code scanning camera are combined to scan the images in the mirror through the code scanning camera, achieving the dual code scanning function of panoramic and detailed. Only one code scanning camera needs to replace multiple cameras, simplifying installation and debugging and reducing costs.

Benefits of technology

The function of a single scan camera scanning barcodes at different locations is realized, reducing costs and debugging complexity, and improving the convenience and efficiency of installation and deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113033228B_ABST
    Figure CN113033228B_ABST
Patent Text Reader

Abstract

The present invention discloses a barcode device and method for dynamic parcels, the device comprising: a frame, a barcode scanning camera, a reflector, an X-axis motor, a rotating bracket, and a Y-axis motor, and the method comprising: the barcode scanning camera finds the barcode area at a farther point, obtains the offset pixel dy of the barcode position according to the barcode position returned by the barcode scanning camera, calculates the lens rotation angle according to dy and controls the motor rotation, delays a fixed time to take pictures and decode. The dynamic parcel barcode scanning method provided by the present invention changes the field of view of the scanning camera by combining a reflector with the barcode scanning camera, achieves the purpose of seeing the whole picture from a distance and seeing the details from close up, realizes the function of replacing multiple barcode scanning cameras with only one barcode scanning camera, avoids the disadvantages of complex installation and debugging of multiple cameras and high cost, and has the advantages of simple installation and debugging and lower cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of logistics and relates to a barcode scanning device, in particular to a barcode scanning device and method for dynamic packages. Background Art

[0002] With the rapid growth of the logistics industry, the logistics industry has put more and more automated sorting equipment into use. Automated sorting relies on barcode information to sort different flows, and barcode reading is a key part of it. However, since the barcode size is generally smaller than the package, and the package sizes vary, how to obtain clear and stable barcode images for decoding has become a difficult problem.

[0003] In order to increase sorting efficiency, the parcel must be scanned while moving forward on the conveyor; in order to solve the problem of motion blur, it is necessary to increase the aperture to increase the amount of light entering, and the consequence of increasing the aperture is that the depth of field becomes smaller. If the height of the parcel barcode from the camera varies greatly, multiple focal length barcode scanning cameras are required to decode at the same position at the same time. In addition, since the conveyor is wide, the lateral position of the parcel on the conveyor is uncertain, and multiple cameras are also required in the lateral direction to cover the entire width of the conveyor. In summary, in order to solve the problem of parcel scanning in high-speed motion, the current common method in the industry is that multiple cameras are required to scan and decode a surface at the same time to cover the different positions where the label may appear, which brings high costs and takes a long time to debug. There are also other solutions that use a linear array camera to scan the barcode of a surface, but linear array cameras are expensive and not cost-effective. Summary of the invention

[0004] In order to solve the problem that multiple cameras are needed to scan a surface in the prior art, the present invention provides a dynamically wrapped barcode scanning device and method, which only uses one scanning camera to meet the barcode scanning needs of different positions, reduces costs, and is more convenient and quick to install and deploy.

[0005] On the one hand, one of the technical solutions adopted by the present invention is: a barcode scanning device for dynamic packaging, which includes the following components:

[0006] The frame is used to fix the X-axis motor, rotating bracket and barcode scanning camera;

[0007] Barcode scanning camera, used to obtain the package panoramic image and barcode information;

[0008] Reflector, used to change the field of view of the scanning camera;

[0009] The X-axis motor has an output end connected to the rotating bracket, and is used to drive the rotating bracket to rotate around its axis;

[0010] Rotating bracket, used to fix the Y-axis motor;

[0011] The Y-axis motor is used to connect the reflector and drive the reflector to rotate around its axis.

[0012] Furthermore, the barcode scanning device is installed on the gantry of the conveyor line, with the installation height between 1.5 meters and 2.0 meters from the conveyor line, and is horizontally installed at the center of the conveyor line.

[0013] Furthermore, the frame includes a device base and a device shell.

[0014] On the other hand, the second technical solution adopted by the present invention is: a barcode scanning method for dynamic packages, which comprises the following steps:

[0015] S1. The barcode scanning camera finds the barcode area at a farther point;

[0016] S2, according to the barcode position returned by the barcode scanning camera, obtain the offset pixel dy of the barcode position;

[0017] S3, calculating the lens rotation angle according to the offset pixel dy and controlling the motor rotation;

[0018] S4, take photos and decode after a fixed delay.

[0019] Furthermore, before the step S1, it also includes: S0, obtaining a panoramic view of the package: when in standby mode, both the X-axis motor and the Y-axis motor rotate to the standby position, so that the field of view of the barcode scanning camera is directed toward a farther point in the direction of the package, and a panoramic image of the package can be captured to obtain a panoramic view of the package.

[0020] Furthermore, after obtaining the panoramic view of the package, the barcode positioning function built into the barcode scanning camera is used to obtain the position of the barcode area in the panoramic scanned image of the package, and at the same time, the offset pixel dy of the barcode relative to the center position of the scanned image is obtained based on the barcode area and the scanned image.

[0021] Furthermore, in step S3, the angle calculation method of the Y-axis motor is as follows:

[0022] Calculate the angle of the Y-axis motor based on the offset pixel dy:

[0023] in, h is the height of the camera from the conveyor line, and fx is the focal length in the x direction of the camera intrinsic parameter.

[0024] Furthermore, in step S4, it is necessary to rotate the reflector by a certain angle to the code scanning position for photo decoding after a delay of t, and the delay time t=L / v; wherein V is the forward speed of the conveyor line, and L is the horizontal distance from the center position of the package to the code scanning camera when both the X-axis motor and the Y-axis motor rotate to the standby position.

[0025] Furthermore, the scanning position can capture the image of the barcode at the point closest to the camera. At this time, the barcode image is the largest, which can support the scanning camera to scan and decode the code; after the scanning is completed, the reflector immediately rotates to the standby position, waiting to detect the next barcode.

[0026] Compared with the prior art, the present invention has the following beneficial effects: the present invention changes the field of view of the scanning camera by using a rotating reflector in combination with a code scanning camera, and scans the image in the reflector through the code scanning camera, so as to achieve the purpose of seeing the whole picture from a distance and seeing the details up close; the function of only needing one code scanning camera to replace multiple code scanning cameras is realized, thus avoiding the disadvantages of complex installation and debugging of multiple cameras and high cost, and at the same time has the advantages of simple installation and debugging and lower cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above technical solution is an overview of the present invention. In order to make the technical solution of the present invention clearer, the following is a brief introduction to the drawings involved in the embodiments of the technical solution:

[0028] Figure 1 is a top view of the arrangement on the conveyor line in the embodiment;

[0029] Figure 2 It is a top view of the code scanning device;

[0030] Figure 3 This is a schematic diagram of the barcode scanning device when it is ready to capture a panoramic image (the barcode scanning camera's field of view is facing a farther point in the direction of the package);

[0031] Figure 4 This is a schematic diagram of the barcode scanning device taking a photo and scanning a barcode (the barcode scanning camera's field of view is facing the center of the conveyor line);

[0032] Figure 5 It is a schematic diagram of the whole scan;

[0033] Figure 6 This is a scanning and decoding step diagram.

[0034] Markings in the figure are: 1- conveyor line, 2- far-point package, 3- barcode on the far-point package, 4- near-point package, 5- barcode scanning device, 6- device housing, 7- device base, 8- X-axis motor, 9- rotating bracket, 10- Y-axis motor, 11- reflector, 12- barcode scanning camera, 13- camera field of view. DETAILED DESCRIPTION

[0035] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are used to illustrate the present invention but do not limit the scope of use of the present invention.

[0036] Embodiment 1:

[0037] A barcode scanning device for dynamic packages, comprising:

[0038] The frame is composed of a device base and a device shell, and is used to fix the X-axis motor, the rotating bracket and the barcode scanning camera; wherein, the barcode scanning device is installed on the gantry of the conveyor line, with a height between 1.5 meters and 2.0 meters from the conveyor line, and is located at the center of the conveyor line in the horizontal direction;

[0039] Barcode scanning camera, used to obtain the package panoramic image and barcode information;

[0040] Reflectors, which change the field of view of the scanning camera;

[0041] The X-axis motor is used to connect the rotating bracket and can drive the rotating bracket to rotate around the axis of the X-axis motor;

[0042] Rotating bracket, used to fix the Y-axis motor;

[0043] The Y-axis motor is used to connect the reflector and can drive the reflector to rotate around the axis of the Y-axis motor.

[0044] Embodiment 2:

[0045] A barcode scanning method for a dynamic package includes the following steps:

[0046] Step 1: The barcode scanning camera finds the barcode area at a farther point. Before that, the X-axis motor and the Y-axis motor rotate to put the reflector in the standby position, such as Figure 3 At this time, the barcode scanning camera's field of view is facing a farther point in the direction of the package, and a panoramic image of the package can be captured to obtain a panoramic view of the package.

[0047] Step 2: According to the barcode position returned by the barcode scanning camera, the offset pixel dy of the barcode position is obtained. According to the barcode area and the scanned image, the offset pixel dy of the barcode relative to the center position of the scanned image can be obtained. However, due to the long distance, it is not enough to decode the barcode. It is necessary to calculate the motor rotation angle and delay time based on the offset dy and then take a photo to scan the code.

[0048] Step 3, calculate the lens rotation angle according to the offset pixel dy and control the motor rotation;

[0049] The rotation angle of the X-axis motor is fixed and set by the system debugging, and then the angle of the Y-axis motor is calculated based on the offset dy:

[0050] in,

[0051] For example, at a certain moment, the height h of the barcode scanning camera from the conveyor line is 2 meters, the rotation angles of the X-axis motor and the Y-axis motor are 60 and 0 degrees respectively, and they are in standby state. The horizontal distance L from the far point package 2 to the barcode scanning camera is 3 meters. At this time, the focal length fx in the x direction of the camera internal parameter is 800, and the offset dy of the detected distant barcode position is 400.

[0052] Specifically, the following calculation formula is obtained:

[0053]

[0054] α = atan(1.8 / 2) = 42;

[0055] Furthermore, after a delay of t time, the Y-axis motor is rotated 42 degrees, and the X-axis motor is rotated by a fixed angle set by the system to take photos and scan the code.

[0056] Step 4: Take photos and decode after a fixed delay;

[0057] The reflector needs to be rotated to the scanning position for photo decoding after a delay of t time, and the delay time t = L / v;

[0058] Wherein, V is the forward speed of the conveyor line;

[0059] Specifically, V is 1 meter per second, t = 3 / 1 = 3,

[0060] Therefore, after a delay of 3 seconds, the reflector is rotated to the code scanning position, and the image of the barcode at the closest point to the camera can be captured at the code scanning position. At this time, the barcode image is the largest, which can support the code scanning camera to scan and decode the code.

[0061] After scanning the barcode, the reflector immediately rotates to the standby position, waiting to detect the next barcode.

[0062] In summary, according to the above technical solution, the barcode scanning camera only needs to capture the barcode information at a far point, calculate the motor rotation angle according to the offset dy according to the formula, drive the reflector to rotate to change the field of view of the barcode scanning camera, take a photo of the package barcode information at a near point and decode it, complete a decoding process, restore the standby state, and then perform the next decoding.

[0063] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the protection scope of the present invention in any form, and all technical solutions obtained by equivalent replacement and the like fall within the protection scope of the present invention.

[0064] The parts not involved in the present invention are the same as the prior art or can be implemented by using the prior art.

Claims

1. A barcode scanning device for dynamic packaging, characterized in that: Includes the following components: The frame is used to fix the X-axis motor, rotating bracket and barcode scanning camera; Barcode scanning camera, used to obtain the package panoramic image and barcode information; Reflector, used to change the field of view of the scanning camera; The X-axis motor has an output end connected to the rotating bracket, and is used to drive the rotating bracket to rotate around its axis; Rotating bracket, used to fix the Y-axis motor; The Y-axis motor is used to connect the reflector and drive the reflector to rotate around its axis; The scanning steps of the scanning device are: S0. Obtaining a panoramic view of the package: When in standby mode, both the X-axis motor and the Y-axis motor rotate to the standby position, so that the barcode scanning camera's field of view faces a farther point in the direction of the package, and a panoramic image of the package can be captured to obtain a panoramic view of the package; S1. The barcode scanning camera finds the barcode area at a farther point; S2, according to the barcode position returned by the barcode scanning camera, obtain the offset pixel dy of the barcode position; S3. Calculate the lens rotation angle according to the offset pixel dy and control the motor rotation; the angle calculation method of the Y-axis motor is as follows: Calculate the angle of the Y-axis motor based on the offset pixel dy: in, h is the height of the camera from the conveyor line, and fx is the focal length in the x direction of the camera's intrinsic parameters; S4, delay a fixed time to take pictures and decode; after a delay of t time, the reflector needs to be rotated a certain angle to the code scanning position for picture taking and decoding, and the delay time t = L / v; where V is the forward speed of the conveyor line, and L is the horizontal distance from the center position of the package to the code scanning camera when both the X-axis motor and the Y-axis motor rotate to the standby position.

2. A barcode scanning device for dynamic packaging according to claim 1, characterized in that: The barcode scanning device is installed on the gantry of the conveyor line, with an installation height between 1.5 meters and 2.0 meters from the conveyor line, and is horizontally installed at the center of the conveyor line.

3. A barcode scanning device for dynamic packaging according to claim 1, characterized in that: The frame includes a device base and a device shell.

4. A barcode scanning device for dynamic packaging according to claim 1, characterized in that: After obtaining the panoramic view of the package, the built-in barcode positioning function of the barcode scanning camera is used to obtain the position of the barcode area in the panoramic scanned image of the package. At the same time, based on the barcode area and the scanned image, the offset pixel dy of the barcode relative to the center position of the scanned image is obtained.

5. The barcode scanning device for dynamic packaging according to claim 1, characterized in that: At the scanning position, an image of the barcode at its closest point to the camera can be captured. At this time, the barcode image is the largest, which can support the scanning camera to scan and decode the barcode. After scanning, the reflector immediately rotates to the standby position, waiting to detect the next barcode.