Mark reading method, code reading system and stacker

Through multi-image stitching and fusion technology, the problem of barcode information loss caused by environmental reflection and occlusion of mark images in three-dimensional storage is solved, and efficient barcode recognition and decoding is achieved, improving the robustness and efficiency of the system.

CN118735803BActive Publication Date: 2024-11-29KEDA INTELLIGENT IOT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411234810.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-11-29
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

In a three-dimensional storage environment, the mark image is easily affected by environmental reflection and occlusion, resulting in the loss of barcode information, which leads to the failure of decoding, affecting the robustness of automated inventory management and the efficiency of entry and exit.

Method used

By obtaining multiple pictures of the relative position change between the shooting device and the mark, identifying and extracting the barcode area, aligning and splicing and fusion, filling in the missing data area, and finally decoding processing.

Benefits of technology

It improves the success rate of barcode information identification, enhances the robustness of the system, and ensures the operating stability of the automated production line and the efficiency of entry and exit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735803B_ABST
    Figure CN118735803B_ABST
Patent Text Reader

Abstract

The present invention provides a mark reading method, a mark reading system and a stacker. The mark reading method obtains multiple pictures of the shooting device and the mark position changes, identifies and extracts the barcode area from the pictures, and aligns the barcode area; the aligned barcode area is partially or completely filled with the data missing area in the barcode area through the effective data area in several barcode areas to obtain the barcode area after splicing and fusion; the splicing and fusion barcode area is decoded. The mark reading method provides a technical solution for improving the integrity of the barcode by obtaining images of multiple different positions of the mark or label containing the barcode area. The effective area of ​​the barcode is spliced ​​and fused based on different images to reconstruct the barcode based on multiple images, and on this basis, the recognizability of the barcode is guaranteed, thereby ensuring the robustness of the system in detecting the barcode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a mark reading method, a mark reading system and a stacker. Background Art

[0002] With the advancement of industrial automation, three-dimensional warehousing has been increasingly widely used in the manufacturing industry. In order to adapt to the development of three-dimensional warehousing business, logistics automation and intelligent inventory management are both urgent issues to be solved. In order to achieve intelligent and dynamic inventory management, it is required to ensure timely and accurate acquisition of product information. This generally requires the cooperation between scanning devices distributed throughout the manufacturing and storage nodes and the labels on the product packaging.

[0003] For large-scale stereoscopic warehouses used for storing photovoltaic modules, each pallet of photovoltaic modules will be labeled with shipping marks in the required area, which record the specifications and quantity of the contents of the package. In the operation scenarios such as outbound, inbound, and inventory, the information on the shipping marks is identified to determine the cargo information and realize the comparison and update of inventory and physical objects, ensuring the consistency of inventory and physical objects under automated warehousing conditions.

[0004] In actual warehousing scenarios, the problem is much more complicated. Due to the different environments in which the goods are located and the different packaging methods, the images of the shipping marks that can be obtained often have reflections and occlusions from the surrounding environment. It is common to form a highlight area in the shipping mark image, resulting in missing information in the barcode photo. Once the missing barcode information exceeds the error correction capability of the encoding, it may not be possible to decode the required information from the barcode image. For example, for photovoltaic modules to be stored, their outer packaging is generally covered with a wrapping film to ensure that the surface of the shipping mark is not flat, but is covered with a layer of transparent protective film with small undulations, which will affect the clarity of the captured barcode image. In fact, due to the influence of the environment, there may be reflections of external light sources on the surface of the shipping mark, resulting in large local highlights on the surface of the captured image, and on the basis of the undulating transparent film in front, under the irradiation of external light sources, fish-scale-like scattered highlights may be formed on the surface of the shipping mark. Similar problems may cause image quality loss to exceed the error correction capability of the barcode, resulting in decoding failure.

[0005] Decoding failure has a significant impact on existing automated three-dimensional warehouses. In order to ensure accurate inventory information, once decoding fails, logistics operations in three-dimensional warehouses basically cannot be continued, and it is necessary to stop waiting or take rollback operations to return materials that cannot be decoded. Therefore, the effective recognition of barcode information on marks or material labels also determines the robustness and warehousing efficiency of automated three-dimensional warehouse systems to a certain extent. Summary of the invention

[0006] In order to improve the ability to identify and read barcode information in existing labels and shipping marks, and ensure the robustness of the operation of automated production lines, the present application provides a shipping mark reading method, a shipping mark reading system, and a stacker.

[0007] The technical solution of the present invention provides a method for reading a mark, which obtains multiple pictures of the relative position change between the shooting device and the mark, identifies and extracts the barcode area from the pictures, and aligns the barcode areas of the multiple pictures;

[0008] Splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, and partially or completely filling in the data missing region in the barcode region with the valid data regions in several barcode regions to obtain the spliced ​​and fused barcode region;

[0009] Decode the barcode area after splicing and fusion.

[0010] Preferably, in the step of splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, the barcode region is binarized to obtain a corresponding binary image, and the binary image is fused and spliced ​​based on pixels or data blocks to obtain the spliced ​​and fused barcode region.

[0011] Preferably, in the step of performing pixel-based or data block-based fusion and splicing on the binary image to obtain the spliced ​​and fused barcode area, the principle of splicing and fusion is that for pixels or data blocks with the same color, their colors after fusion remain the same, and for pixels or data blocks with different colors, the colors of the fused pixels or data blocks are determined by the color values ​​around the pixels or data blocks.

[0012] Preferably, in the step of determining the color of the fused pixel or data block by taking color values ​​around the pixel or data block for pixels or data blocks with different colors, a mask of a certain size centered on the current pixel or data block is selected, and the area ratio of the fused and spliced ​​barcode area within the mask that is the same color as the current pixel or data block is calculated. Only when the area ratio of one barcode area exceeds a preset threshold and the area ratio of another barcode area is lower than the preset threshold, the color of the pixel or data block in the barcode area that is lower than the preset threshold is assigned to the corresponding position of the spliced ​​and fused barcode area.

[0013] Preferably, in the step of splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, the barcode region is detected and identified to determine the data missing area of ​​the barcode region; then the barcode region is binarized; and then the binarized image is fused.

[0014] Preferably, before the binary image is fused, the fusion and splicing order of the barcode regions used for fusion is determined based on the area of ​​the data missing region and / or the union area of ​​the barcode region.

[0015] Preferably, in the step of determining the fusion and splicing order of the barcode areas for fusion based on the union area of ​​the data missing areas of the barcode areas, the union of the data missing areas of the barcode areas is verified in ascending order from one barcode area to all the barcode areas. If there is a combination whose union area accounts for a proportion of the total area of ​​the barcode areas that is lower than the error correction rate, the verification process is interrupted and all the barcode areas in this combination are selected for fusion and splicing operations.

[0016] Preferably, in the step of splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, the barcode region with the smallest data missing area is selected from all the acquired barcode regions as the starting point of the fusion and splicing, and then a barcode region is selected from the remaining barcode region set to be fused with the aforementioned barcode region with the smallest data missing area. The fusion process is to binarize the barcode region to obtain a binary image, and fuse the binary image based on the color of pixels or data blocks to obtain the fused barcode region; the decodability of the fused image is judged, and if it is judged that the area ratio of the data missing area of ​​the fused image is lower than the error correction rate of the barcode, a decoding operation is performed. If it is not decodable, the fused image is used as the starting point of the fusion and splicing, and the splicing and fusing steps are repeated with a barcode region selected from the remaining barcode region set.

[0017] Preferably, in the step of detecting the barcode area and identifying and determining the data missing area of ​​the barcode area: the data missing area is determined by using the grayscale information of the image, and a set of pixel points corresponding to the grayscale values ​​within a certain range at the two end points of the image histogram is selected as the data missing area; and / or, the data missing area is determined by using the image connectivity, and an area with the same grayscale, a whole area and an area greater than a preset area threshold is taken as the data missing area.

[0018] Preferably, in the process of binarizing the barcode region, the binarization process is only applied to the portion of the barcode region except the data missing region, and the value used in the binarization process is used as the characterization value.

[0019] Preferably, in the process of binarizing the barcode area, it is ensured that the data missing area of ​​the barcode area does not have a value identical to the characterization value, and the method is: filling with other values ​​other than the characterization value; or filling the pixels in the data missing area that are identical to the characterization value with other values.

[0020] Preferably, in the step of performing fusion processing on the binary image, the value used in the binary processing is a characterization value;

[0021] For pixels or data blocks with the same representation value, the fused barcode area maintains the same representation value;

[0022] For pixels or data blocks where the representation value corresponds to a value other than the representation value, the fused pixel or data block remains the same as the representation value;

[0023] For pixels or data blocks with different representation values, the pixels or data blocks in the fused barcode area are filled with other values ​​that are not representation values;

[0024] For pixels or data blocks that all correspond to values ​​other than the representation value, the pixels or data blocks in the fused barcode area are filled with other values ​​other than the representation value.

[0025] The technical solution of the present invention also provides a mark reading system, including a shooting device, wherein the relative position between the shooting device and the mark can be changed when the shooting device obtains the image of the mark, and the mark reading system executes any of the above-mentioned mark reading methods when it is running.

[0026] The technical solution of the present invention also provides a stacker, including a photographing device, which is movably arranged on the side of the stacker's cargo platform along the height direction of the cargo platform, and executes any of the above-mentioned mark reading methods when the stacker is running.

[0027] The mark reading method of the present application provides a technical solution to improve the integrity of the barcode by acquiring images of multiple different positions of the mark or label containing the barcode area. It obtains images of different relative positions through the relative movement between the shooting device and the material, thereby avoiding the appearance of highlights or shadows at the same position of the barcode. Then, the effective area of ​​the barcode is spliced ​​and fused based on different images to reconstruct the barcode based on multiple images, on this basis, the recognizability of the barcode is guaranteed, thereby ensuring the robustness of the system in detecting the barcode. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a preliminary flow chart of the method for reading a mark of the present invention;

[0029] Figure 2 is a schematic diagram of a stacker of the present invention;

[0030] Figure 3 It is a schematic diagram of the process of fusion and splicing of barcode regions in the method for reading a mark of the present invention;

[0031] Figure 4It is a schematic flow chart of another embodiment of the barcode region fusion and splicing of the mark reading method of the present invention;

[0032] Figure 5 It is a schematic flow chart of another embodiment of the barcode region fusion and splicing of the mark reading method of the present invention;

[0033] Figure 6 It is a schematic flow chart of another embodiment of the barcode region fusion and splicing of the mark reading method of the present invention;

[0034] Figure 7 It is a flow chart of another embodiment of the barcode region fusion and splicing of the mark reading method of the present invention.

[0035] In the figure:

[0036] 1: Stacker; 11: Cargo platform; 12: Guide rail; 13: Photographing equipment. DETAILED DESCRIPTION

[0037] The following is a detailed description of this patent in conjunction with the accompanying drawings and specific embodiments. In this specification, the dimensions of the drawings do not represent the actual size ratios. The drawings are only used to reflect the relative position relationship and connection relationship between the components. Components with the same name or the same number represent similar or identical structures and are only for illustrative purposes.

[0038] The present invention provides a solution for optimizing barcode scanning and decoding to improve the success rate of barcode decoding. The barcode in the present invention should be understood as a pattern that encodes specific information and can restore the information through a specific decoding process. Although in the embodiments below, this mainly refers to widely used QR codes, barcodes, etc., it should not be understood as being limited to this. Its original intention is to repair the barcode that was originally unable to be decoded due to information loss through certain technical improvements, thereby realizing the decoding operation of the damaged barcode information.

[0039] The reason why the above functions need to be implemented is that in most cases, successful decoding is only a small part of the workflow, but it is the basis of subsequent workflows, which means that even a small probability of decoding failure may have a relatively serious impact on the workflow. For example, in automated warehousing or automated logistics design, scanning barcodes and decoding are often the main means for the system to track material dynamics. Therefore, scanning and decoding operations are designed in major key nodes and key operations to verify whether the operating conditions are met. For example, when the warehouse is out of the warehouse, the stacker usually determines the correctness of the goods by scanning the code before transferring the goods. In this case, if the decoding fails, the subsequent operations cannot be performed, and the system may stagnate in the current state. Even if such situations are considered in the logistics control system, it is generally only possible to reset the goods and re-retrieve other goods, which will still affect the logistics efficiency.

[0040] In the logistics industry, especially in stereoscopic warehousing, the mobile setting of the code scanning equipment is a relatively common setting. Specifically, in the stereoscopic warehousing scanning used in the present invention, in order to save storage space, multiple pallets of photovoltaic components and other goods are generally placed in the same storage location and processed together. At this time, in order to obtain the mark information posted on multiple goods, the shooting equipment used for scanning can be configured to be movable. Based on this, this objectively also has the prerequisite for multiple imaging of the mark at different positions. The shooting equipment can be independently set on the base where it is located, or it can be fixed on the mobile base or both. In the stereoscopic warehouse used in the present invention, the shooting equipment is set on the stacker, and it is set on the stacker. It is generally set to move along the up and down directions of the stacker, which is mainly to deal with the problem of scanning the marks of the stacked photovoltaic components. That is, when there are stacked goods, the images of the marks corresponding to the upper and lower layers of goods can be obtained by lifting the shooting equipment up and down. Since either the photographing device or the base on which it is installed is a mobile device, the relative position between the photographing device and the mark can be conveniently controlled in both cases, which makes it possible to obtain images at different positions later.

[0041] Based on the above usage scenarios, in order to improve the success rate of image-based barcode decoding, the decoding method of the present invention generally provides a solution for reconstructing missing information of the mark barcode by splicing and fusion of multiple images. Since multiple images at different positions can ensure that the positions of the highlight areas or shadow areas caused by environmental factors are migrated, the original information on the barcode that can be retained on the images at different positions can be complementary to a certain extent, so there is a greater probability of restoring the original information after fusion, thereby potentially improving the decoding success rate of the barcode information in the mark and reducing the interference of decoding failures on the operation of the logistics system.

[0042] Figure 1The schematic diagram of the preliminary flow of the mark reading method of the present application. Since the relative position between the camera and the mark is variable in the actual application scenario, it is possible to obtain at least two pictures with different relative positions between the camera and the barcode to be identified on the mark. The barcode area corresponding to the barcode to be identified is cut out from the picture. In the prior art, the barcode area with a regular shape can be accurately identified and extracted by identifying the edge features of the barcode area through edge detection and other means, which will not be repeated here. Aligning the barcode areas in the above-mentioned acquired pictures is actually to perform appropriate affine transformation on the pictures to ensure that the barcode areas have consistent shapes and sizes, so as to ensure that the data points of different barcode areas can be seamlessly aligned in the subsequent fusion process. Take several of the acquired pictures, and perform fusion processing on the aligned barcode areas. The principle of fusion processing is to retain the effective area in the barcode area, and the missing information caused by environmental reasons is supplemented by the content in the effective area of ​​other pictures. The specific supplementation method is not unique. Obviously, the effective information amount of the repaired barcode area obtained after the filling process is greater than the barcode area in any single image. Therefore, scanning the repaired barcode area will effectively complete the recognition of the barcode on the mark, thereby ensuring the success rate of barcode recognition, ensuring the efficiency of the production line and the stability of operation.

[0043] In the application scenario provided in the present application, the relative position between the photographing device and the shipping mark (the barcode on the shipping mark) is variable. Figure 2 An implementation method in practical applications is provided. Figure 2As shown, a photographing device 13 can be installed on the loading platform 11 of the stacker 1. It is not only used for spot inspection and confirmation operations on goods such as photovoltaic components during loading and unloading, warehousing, etc., but also needs to take into account the status of inventory in a specific storage location when receiving instructions for inventory count requirements. During inventory count, the goods in the storage location are generally temporarily taken out to the loading platform for photographing and scanning before being sent to the storage location. The photographing device 1 is generally arranged on the side of the loading platform and movable along the height direction of the loading platform. It changes the height from the loading platform to take pictures and identify the marks of the upper and lower layers of materials in the case of stacking. In further cases, multiple groups of photographing devices can be optionally provided, and are respectively arranged on the opposite sides of the loading platform, and are preferably arranged in a centrally symmetrical manner relative to the center of the loading platform. This is mainly to take into account the situation of horizontal stacking. Since the area of ​​the mark on the outer package of the goods is roughly fixed, when stacking the pallets horizontally, in order to ensure that the marks are exposed, the marks of the two pallets of goods side by side on the same layer are located at opposite positions on the opposite sides. The two sets of camera equipment that are centrally symmetrical can adapt to this actual situation while reducing the degree of freedom of the camera equipment. At least one of the two camera equipment is set to move in the height direction, such as being set on the guide rail 12 arranged along the height direction on the side of the loading platform 11, which can meet the requirements of mark photography and identification in the aforementioned stacking situation. Of course, it is also feasible to set both sets of camera equipment to be mobile.

[0044] The obtained mark image is first cropped to obtain the area where the barcode is located in each image, which is recorded as the barcode area. Due to the different shooting positions of each image, the specific size and shape of the barcode area will be slightly different, which will affect the splicing and fusion of the barcode areas of multiple images. In order to ensure the subsequent effective splicing, the size and shape of each barcode area are corrected to obtain a standardized barcode area. The standardized barcode area in any corrected image should be basically consistent in shape and size. When any two groups of standardized barcode areas are superimposed, the corresponding areas of their patterns will overlap. The size and shape correction process is a prior art. In practice, it is generally based on the detected barcode area edge or other representative features as reference elements, and the parameters of the affine matrix are solved and determined, and then the barcode area is affine transformed to obtain a standardized barcode area.

[0045] On the basis of the standardized barcode area, an effective, clear and complete barcode pattern is obtained by fusing the standardized barcode areas of several pictures. Figure 3 As shown, the standardized barcode area is binarized by selecting a suitable threshold value to convert it into a binary image. In the prior art, the grayscale threshold required for processing can be determined by the histogram of the barcode area image, usually taking the grayscale value represented by the median in the histogram or the grayscale value of the area between two peaks in the histogram, or simply taking the average grayscale of the image as the threshold used in the binarization.

[0046] Specifically, the above-mentioned fusion processing steps for the barcode regions of several images can be performed as follows: Figure 3 The technical solution is as follows. Its fusion operation is based on the fusion of two binary images, with "0" representing the white part and "1" representing the black part. The minimum scale of the fusion process can be either pixel scale or data block size. Then the fusion process performs the following operations: 0+0=0, 1+1=1. The fusion of 0+1 is the key to this solution and determines the reliability of data fusion. In specific scenarios, the main reason for the barcode to be unrecognizable is that the barcode surface is highlighted or blocked by shadows due to problems such as position and direction. Therefore, the data area that cannot be recognized as a whole generally always appears in blocks. Based on this principle, 0+1, that is, the target color when the two binary images are black data blocks or white data blocks, can be determined. Usually, a reasonable mask size can be designed based on the size of the QR code, such as a square mask with a side length spanning 3-5 data blocks, and the area ratio r of the black data block in the mask centered on the current data block is calculated. According to the type of QR code, a suitable area ratio interval D is set, such as 30%-50%. Let's say two binary images are A and B. If there is an area ratio of the current data block of image A , and the area ratio of the current data block of another image B is , then 0+1=a, a represents the color value of the current data block of image A, which is 0 or 1. Its essence is that when a large area is covered in one image and the other image does not cover the same position, the uncovered data information is written into the fused image. When there are several images, the above process can be superimposed between all several images or selectively in a subset of them, thereby eliminating the problem of barcode recognition caused by different scenes in different images.

[0047] In fact, in the above technical solution, it is difficult to determine the binary pixel value of the fused target image during the fusion process because the specific situation of the missing part in the barcode area cannot be confirmed in advance. Although this problem can be solved to a certain extent by detecting local information, the determination of the pixel color of the target image at the edge of the missing distribution is still not ideal, and its effect still needs to be improved. In order to circumvent this problem, the image can be processed in a certain way during the fusion process.

[0048] like Figure 4As shown, it is recommended that before binarizing the barcode area, the barcode area should be detected first to identify and determine the data missing area therein, and then the valid barcode area except the data missing area should be binarized, and finally the binary image should be fused. For the barcode recognition problem in targeted scenarios, the main problem lies in the local lack of barcode area patterns caused by local highlights caused by uneven ambient lighting and shadow effects caused by other obstacles. In this embodiment, the data missing area is mainly detected in advance during the process of detecting and identifying the data missing area in advance, and the subsequent image fusion process is guided on this basis. There are at least two optional detection criteria.

[0049] First, the grayscale information of the image is used to determine the data missing area. Determine the grayscale range of the image, and determine the data missing area that roughly corresponds to the grayscale range by determining the grayscale range of the data missing information. In practice, the basic algorithm can determine a certain grayscale value range at both ends of the image histogram based on the dynamic range of the highlight area and the shadow area in the shooting scene. The highlight area and the obscured shadow area are circled based on the pixel grayscale, and the black and white blocks in the data area are affected by the material interface and ambient light during the imaging process. The grayscale value is generally different from the grayscale value of the highlight and shadow areas. Therefore, in the above process, by selecting an appropriate grayscale range, the data missing areas caused by highlights and shadows and the normal data areas can be distinguished. In order to check the effectiveness of the aforementioned identification of missing data areas, the grayscale distribution histogram and grayscale distribution density of the image can also be checked on the basis of the normal data area obtained after distinguishing the missing data area to verify the effectiveness of the result. If the grayscale distribution density of the image is abnormal, and a large range of obviously outlier high grayscale areas or low grayscale areas appear, it can be considered that the effective identification of the missing data area has not been achieved, and the data missing area can be reselected by relaxing the grayscale value range used to determine the grayscale area. If the grayscale distribution density is relatively even, it is considered that at least the missing data area is effectively removed. As for whether the normal data area is excessively removed, it is acceptable because the corresponding data can be retrieved from the fusion of multiple images, which will not cause the result to be unrecognizable, but may only increase the number of images required for the fusion data, which has a slight impact on the efficiency of the algorithm. Due to the uncertainty of the actual image, the area initially obtained based on the grayscale range may be discretely distributed. In order to ensure reliability, the range of the obtained area can be optimized through appropriate filtering or enhancement algorithms, and isolated low-density outlier areas can be deleted. A large number of densely clustered high-density areas are fused to obtain a merged large data area, and then only a number of areas with an area exceeding a certain size are formed and retained as data missing areas. For the embodiments of this application, the threshold for area retention can be 1-9 data block sizes. First, the grayscale of the barcode area is determined by image analysis.

[0050] The second is to use the image connectivity information to determine the data missing area. For the highlight area and the shadow area, they are not distributed in black and white as a normal barcode area, but cover a larger range with almost consistent grayscale values. Based on this, the connectivity of the image can be detected to identify a larger area with basically the same grayscale pixels. In order to reduce the damage to normal data, the area threshold needs to be determined reasonably. Taking the QR code as an example, the area of ​​the position detection figure can usually be taken as not less than the three corner points of the QR code. Of course, in the worst case, even if a small part of the local data block is mistakenly marked as a data missing area due to the selection of an inappropriate area threshold, the result is still acceptable. Because in the process of fusion and splicing of the barcode area of ​​several images, the data of similar mislabeled areas can eventually be completed in the data area of ​​other images. When only image connectivity is used to determine the data missing area, in order to avoid the influence of black bars or white bars on the barcode background on the detected data missing area, it is usually possible to impose certain restrictions on the edge of the data missing area during detection, such as area width restrictions or edge angle change rate restrictions, etc., to avoid the data missing area from unreasonably covering the normal data area connected to it. In the preferred technical solution, the above two detection methods are generally taken into account and integrated. On the one hand, the approximate range of missing data is determined by the gray value range, and on the other hand, the data missing area is finally obtained by the connectivity detection of the results. The filtering steps recorded above can be used to screen out data ranges with obviously smaller areas, such as isolated missing data ranges with an area smaller than a single data block; the isolated missing data range can also be expanded to the surrounding areas by area expansion, so that the missing data ranges with a closer distance are merged to form a large-area single missing data range. Finally, based on this, the final data missing area is obtained by connectivity detection.

[0051] Based on the above operation, the data missing area in the barcode area can be identified, and in the subsequent binarization process, the data missing area is treated differently. Specifically, in the general processing of this scheme, binarization is only to binarize the image based on a preset grayscale threshold. However, after the identification of the data missing area is completed in the above manner, the binarization process should also be optimized based on the information of the data missing area. During the binarization process, the content in the identified data missing area should not be processed. In order to facilitate subsequent operations, the content in the data missing area can usually be left blank, or more generally any data filling other than the two sets of values ​​used in the binarization process can be provided. For example, in some embodiments, in the binarization process, the area except the data missing area after processing is assigned 0 or 1 according to the grayscale information to indicate that it is a black pixel (data block) or a white pixel (data block). The information of the missing area is filled with a third set of data other than 0 and 1, such as -1, NULL or undefine, etc. Alternatively, in other embodiments, since the probability that the grayscale values ​​of pixels in the data missing area are all 0 or 1 is extremely low, the original grayscale value of the content in the data missing area can be retained. However, in this case, preferably, in order to avoid misjudgment of individual pixel points (data blocks), the pixel points in the data missing area with values ​​of 0 or 1 can be reassigned other values, or a value outside the grayscale range can be used as a representation value representing black and white pixels in binarization, such as -1, -2, etc. For storage characteristics, the representation value takes a negative value greater than -255, so as to achieve the use of signed integer storage while distinguishing and saving storage space.

[0052] Based on the above binarization process, the fusion and splicing of the image can be optimized as follows. The steps of sequential or synchronous fusion and splicing are still performed between the several barcode areas after binarization. For the above binarization process, the binary representation values ​​are uniformly taken as 0 and 1, and the representation value in the data missing area is undefine. The fusion rules between the two barcode areas are 0+0=0, 0+undefine=0, 1+1=0, 1+undefine=1, undefine+undefine=undefine. In theory, since high-precision image splicing can be achieved, the situation of pixel reversal during splicing is relatively small, and the situation of 0+1 rarely occurs, so the definition of the fusion rule for this has almost no effect on the final result. Of course, 0+1=undefine can also be defined if necessary. The representation values ​​0, 1 and undefine used in the above rules are representative values ​​used for convenience of description, and do not mean that only the above values ​​can be taken in the actual algorithm. The essence of the above fusion process is that for normal data areas, the same value of the corresponding pixel points or data blocks in the two areas is used as the binary value of the corresponding position of the fused image. In the case of missing data areas during fusion, if there is a corresponding normal data area, the data missing area is filled with the value of the normal data area, otherwise the original filling situation in the data missing area is maintained. Since the highlights or shadows on the barcode areas obtained from different positions are different, the fusion of multiple images can basically eliminate the unrecognizable missing data areas caused by highlights and shadows, ensure the integrity of the barcode area, and thus ensure that the barcode can be scanned. When it comes to the fusion of multiple barcode images, they can be fused two by two on the basis of the above scheme, or they can be fused in batches at the same time. When fusion is performed at the same time, the fusion rules can be equivalently expanded on the above rules.

[0053] When the above method is applied to merge and splice the barcode regions in multiple images, in order to reduce redundant operations in the fusion process and reduce the total time of the fusion operation, after detecting and identifying the data missing area, according to the specific situation of the data missing area of ​​each barcode area, several barcode areas for fusion or the fusion and splicing order of the barcode areas for fusion can be selected to reduce the number of barcode areas required for fusion before decodability. Figure 5As shown, if the above-mentioned fusion method is used for the obtained multiple barcode areas, after the data missing area is detected, for each barcode area, we will obtain the corresponding data missing area. In addition, the error correction rate and other information of the barcode can be determined from the normal barcode area according to the local data block distribution. For example, for a two-dimensional code, the color information of the four local data blocks represents four error correction levels. Or for a specific application such as the present application, the error correction rate and other information of the barcode can be known in advance. Therefore, the union of the data missing areas of the barcode area can be verified in the order of increasing number from one barcode area to all barcode areas. If there is a combination of the union area in the total area of ​​the barcode area is lower than the error correction rate, the verification process is interrupted, and all the barcode areas in this combination are selected for fusion and splicing operations, which can ensure that the final fused barcode area is decodable. In the specific process, the data missing area of ​​a single barcode area can be verified first. At this time, the union is the data missing area itself. If there is a data missing area of ​​a certain picture that is lower than the error correction rate, it is only necessary to select the barcode area to directly perform the decoding operation. If the conditions are not met, the fusion of the two barcode areas is confirmed. If the union of the data missing areas of the two barcode areas is lower than the error correction rate, the two barcode areas are selected as the barcode areas used for fusion and splicing. If the conditions are not met, the three barcode images are verified, and so on.

[0054] like Figure 6As shown, this process can also be performed sequentially in a step-by-step manner. When several images are taken and their barcode regions are obtained, the fusion and splicing of several barcode regions are initially fused with two barcode regions, and then the fused barcode regions are recursively fused with the originally obtained barcode regions. In order to minimize the number of cycles of this recursive process and improve the fusion efficiency, it is necessary to make a reasonable optimization selection for the basis of fusion. First, the barcode region with the smallest data missing area is selected from all the acquired barcode regions as the starting point of fusion and splicing, and then a barcode region is selected from the remaining barcode region set for fusion with the aforementioned barcode region with the smallest data missing area, and both are binarized. The binarized images are fused based on the color of pixels or data blocks using the aforementioned method to obtain the fused image. The decodability of the fused image is judged. If the area ratio of the data missing area of ​​the fused image is judged to be lower than the error correction rate of the barcode, it can be decoded, and the decoding operation is performed on it to obtain the data information carried by the barcode. If it is not decodable, the fused image is used as the barcode region with the smallest data missing area to repeat the previous fusion steps. In this step-by-step fusion process, in order to further improve the fusion efficiency, in the process of selecting a barcode area from the remaining barcode area set for fusion, the selected remaining barcode areas can also be screened, that is, a union operation is performed between the data missing areas of the remaining barcode areas and the data missing areas in the barcode area with the smallest data missing area, and the resulting unions are compared, and a barcode area corresponding to the group with the smallest union area is used for fusion with the selected barcode area with the smallest data missing area.

[0055] Although the above scheme provides a synchronous fusion operation for multiple barcode areas. However, in view of the actual situation, a sequence fusion operation based on this is more recommended to reduce the redundant time in the fusion process and improve the fusion efficiency. Based on the sequence stepping operation, additional solutions can be derived, which incorporate the image acquisition process into the barcode fusion recognition process, thereby avoiding the waiting of the system during the acquisition process and reducing repeated redundant acquisition operations. The specific method is based on the sequential fusion method in the above fusion method, but it also involves associated acquisition operations. In other words, the acquisition process is not completed directly without confirmation, but determines whether to continue the next acquisition operation based on the result of the fusion operation. The flow chart is as follows Figure 7As shown. In the initial process, the first image is captured by the shooting device, and then the barcode area in the image is obtained, and the obtained barcode area is used as the starting point of image fusion. In order to complete the image fusion operation, it is necessary to capture another image, and use the above-mentioned method to extract and align the barcode area. Then, the two obtained barcode areas are detected and identified for data missing areas, and the barcode areas are binarized. The same as the above-mentioned technical solution is that the data missing areas need to be processed accordingly to be different from the binarized values. Then, the above-mentioned implementation method is used to perform color fusion splicing based on pixels or data blocks on the two binarized barcode areas to obtain the fused barcode area, in which there may still be data missing areas. On this basis, the decodability of the spliced ​​and fused barcode area is judged. If it is decodable, the data carried by the barcode is decoded. Otherwise, the fused barcode area is used as a new fusion starting point, and the shooting device is continued to be controlled to capture the next image to perform the next round of fusion splicing process. In the decodability judgment, the fused image can be judged by attempting a decoding operation, but this is generally time-consuming. Therefore, it is preferably used as proposed above to compare the ratio of the area of ​​the data missing area to the area of ​​the barcode with the error correction rate of the barcode to determine whether it is decodable. If the area ratio is lower than the barcode error correction rate, it can be considered to be decodable and the decoding operation is performed. Otherwise, the next round of image acquisition and fusion stitching process is continued.

[0056] The above content only describes the preferred implementation methods of this patent type and does not limit the scope of this patent type. Without departing from the design spirit of this patent type, various modifications and improvements made to the technical solutions of this patent type by ordinary technicians in this field should fall within the protection scope determined by the claims of this patent type.

Claims

1. A method for reading a mark, characterized in that: Acquire multiple pictures of the relative position change between the camera and the mark, identify and extract the barcode area from the multiple pictures, and align the barcode areas of the multiple pictures; Splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, and filling all data missing regions in one barcode region with valid data regions in several barcode regions, or filling part of data missing regions in one barcode region with valid data regions in several barcode regions to obtain a spliced ​​and fused barcode region; Decoding the barcode area after splicing and fusion; In the step of splicing and fusing the aligned barcode regions to obtain the spliced ​​and fused barcode region, the barcode region is binarized to obtain a corresponding binary image, and the binary image is fused and spliced ​​based on pixels or data blocks to obtain the spliced ​​and fused barcode region; In the step of fusing and splicing the binary image based on pixels or data blocks to obtain the spliced ​​and fused barcode area, the principle of splicing and fusion is that for pixels or data blocks with the same color, the colors after fusion remain the same, and for pixels or data blocks with different colors, the colors of the pixels or data blocks after fusion are determined by the color values ​​around the pixels or data blocks; In the step of determining the color of the fused pixel or data block by taking the color values ​​around the pixel or data block for pixels or data blocks with different colors, a mask of a certain size centered on the current pixel or data block is selected, and the area ratio of the fused and spliced ​​barcode area within the mask that is the same color as the current pixel or data block is calculated. Only when the area ratio of one barcode area exceeds a preset threshold and the area ratio of another barcode area is lower than the preset threshold, the color of the pixel or data block of the barcode area lower than the preset threshold is assigned to the corresponding position of the spliced ​​and fused barcode area.

2. A method for reading a mark, characterized in that: Acquire multiple pictures of the relative position change between the camera and the mark, identify and extract the barcode area from the multiple pictures, and align the barcode areas of the multiple pictures; Splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, partially or completely filling all data missing regions in one of the barcode regions with valid data regions in several barcode regions, or filling part of data missing regions in one of the barcode regions with valid data regions in several barcode regions to obtain a spliced ​​and fused barcode region; Decoding the barcode area after splicing and fusion; In the step of splicing and fusing the aligned barcode regions to obtain the spliced ​​and fused barcode region, the barcode region is detected and identified to determine the data missing region of the barcode region; and then the barcode region is binarized; Then the binary image is fused; Before fusing the binary image, the fusing and splicing order of the barcode regions to be fused is determined based on the area of ​​the data missing region of the barcode region and / or the union area of ​​the data missing regions in several barcode regions, and splicing begins with the barcode region with the smallest area of ​​the data missing region and / or the combination with the smallest union area of ​​the data missing regions in several barcode regions.

3. The method for reading a mark according to claim 2, characterized in that: In the step of determining the fusion and splicing order of the barcode areas for fusion based on the union area of ​​the data missing areas of the barcode areas, the union of the data missing areas of the barcode areas is verified in ascending order from one barcode area to all the barcode areas. If there is a combination whose union area accounts for a proportion of the total area of ​​the barcode area that is lower than the error correction rate, the verification process is interrupted and all the barcode areas in this combination are selected for fusion and splicing operations.

4. A method for reading a mark, characterized in that: Acquire multiple pictures of the relative position change between the camera and the mark, identify and extract the barcode area from the multiple pictures, and align the barcode areas of the multiple pictures; Splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, partially or completely filling all data missing regions in one of the barcode regions with valid data regions in several barcode regions, or filling part of data missing regions in one of the barcode regions with valid data regions in several barcode regions to obtain a spliced ​​and fused barcode region; Decoding the barcode area after splicing and fusion; In the step of splicing and fusing several aligned barcode regions to obtain a spliced ​​and fused barcode region, the barcode region is detected and identified to determine the data missing region of the barcode region, and the barcode region with the smallest data missing region is selected from all the acquired barcode regions as the starting point of fusion and splicing, and then a barcode region is selected from the remaining barcode region set to be fused with the aforementioned barcode region with the smallest data missing region. The fusion process is to binarize the barcode region to obtain a binary image, and fuse the binary image based on the color of pixels or data blocks to obtain the fused barcode region; The decodability of the fused image is judged. If the area ratio of the data missing area of ​​the fused image is judged to be lower than the error correction rate of the barcode, the decoding operation is performed. If it is not decodable, the fused image is used as the starting point of the fusion stitching, and the stitching and fusion steps are repeated with a barcode area selected from the remaining barcode area set.

5. The method for reading a mark according to any one of claims 2 and 4, characterized in that: In the step of detecting the barcode area and identifying and determining the data missing area of ​​the barcode area: the data missing area is determined by using the grayscale information of the image, and a set of pixel points corresponding to grayscale values ​​within a certain range at the two end points of the image histogram is selected as the data missing area; And / or, the data missing region is determined by using image connectivity, and a region with the same grayscale, a whole area and an area greater than a preset area threshold is regarded as the data missing region.

6. The method for reading a mark according to any one of claims 2 and 4, characterized in that: In the process of binarizing the barcode region, the binarization process is only applied to the portion of the barcode region except the data missing region, and the value used in the binarization process is used as the characterization value.

7. The method for reading a mark according to claim 6, characterized in that: During the binarization process of the barcode area, it is ensured that the data missing area of ​​the barcode area does not have a value identical to the characterization value, and the method is: filling with other values ​​other than the characterization value; or filling the pixels in the data missing area that are identical to the characterization value with other values.

8. The method for reading a mark according to any one of claims 2 and 4, characterized in that: In the step of fusing the binary image, the value used in the binary processing is the representation value; For pixels or data blocks with the same representation value, the fused barcode area maintains the same representation value; For pixels or data blocks where the representation value corresponds to a value other than the representation value, the fused pixel or data block remains the same as the representation value; For pixels or data blocks with different representation values, the pixels or data blocks in the fused barcode area are filled with other values ​​that are not representation values; For pixels or data blocks that all correspond to values ​​other than the representation value, the pixels or data blocks in the fused barcode area are filled with other values ​​other than the representation value.

9. A mark reading system, characterized in that: It comprises a photographing device, and the relative position between the photographing device and the mark can be changed when the photographing device obtains the image of the mark. When the mark reading system is running, it executes the mark reading method as described in any one of claims 1 to 8.

10. A stacker, characterized in that: The method comprises a photographing device, which is arranged on the side of the cargo platform of the stacker and is movable along the height direction of the cargo platform. When the stacker is running, the mark reading method as described in any one of claims 1 to 8 is executed.

Citation Information

Patent Citations

  • Construction hoist lift car people counting method based on multi-information fusion

    CN104573697A

  • Two-dimensional code recognition method, mobile terminal and storage medium

    CN109190436A

  • Panoramic cigarette two-dimensional code scanning system

    CN110929541A

  • Bar code decoding method based on multi-frame image fusion and non-local mean filtering

    CN112580385A

  • Barcode identification method, device and equipment and readable storage medium

    CN117540762A