A method for collecting QR codes of vacuum packaging

By pre-acquisitioning, logical completion and coding of vacuum packaging products, combined with high-speed dynamic acquisition methods, the problem of low QR code collection and recognition rate of vacuum packaging products is solved, which improves the acquisition success rate and reduces the removal rate.

CN115293187BActive Publication Date: 2025-08-26HEFEI YOUGAO INTERNET OF THINGS IDENTIFICATION EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211110126.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-13
Publication Date
2025-08-26
Estimated Expiration
2042-09-13

AI Technical Summary

Technical Problem

Severe surface wrinkles of vacuum packaging products lead to low QR code collection and recognition rate and high rejection rate.

Method used

By pre-collecting QR codes for empty packaging that are not bagged, a pre-collected QR code queue is constructed, and QR codes are collected after bagging, logical completion and assignment are performed for QR codes that cannot be fully collected, combined with high-speed dynamic QR code collection methods, multiple sensors and removal devices are used for precise control.

Benefits of technology

It improves the success rate of vacuum packaging QR code collection, reduces the number of products removed due to the inability to identify QR codes, and ensures accurate collection without slowing down the transmission belt speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115293187B_ABST
    Figure CN115293187B_ABST
Patent Text Reader

Abstract

The present invention relates to two-dimensional code acquisition, and in particular to a two-dimensional code acquisition method for vacuum packaging. The method comprises the following steps: pre-acquisition of two-dimensional codes for unbagged empty packaging, and sequentially constructing the pre-acquired two-dimensional codes into a pre-acquired two-dimensional code queue; acquisition of two-dimensional codes for vacuum packaging that has been bagged and vacuum-treated; logical completion of vacuum packaging two-dimensional codes that cannot be completely acquired; judgment and coding of vacuum packaging two-dimensional codes that cannot be logically completed based on the pre-acquired two-dimensional code queue; and rejection of vacuum packaging on a conveyor belt whose two-dimensional codes have not been successfully acquired. The technical solution provided by the present invention can effectively overcome the defect in the prior art that the rejection rate of vacuum packaging products during two-dimensional code acquisition is greatly increased due to severe surface wrinkles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to two-dimensional code acquisition, and in particular to a method for acquiring a vacuum-packaged two-dimensional code. Background Art

[0002] With the country placing increasing emphasis on food safety, food traceability is also gaining increasing attention from manufacturers. To achieve "one item, one code" traceability, it's essential to collect and associate the product's QR code information with the packaging during the production process.

[0003] However, for some vacuum-packed products, the QR code collector has a low recognition rate due to the serious wrinkles on the surface, which greatly increases the rejection rate when collecting QR codes. In order to reduce the number of rejections when collecting QR codes for vacuum-packed products, this application was developed. Summary of the Invention

[0004] (1) Technical problems solved

[0005] In response to the above-mentioned shortcomings of the prior art, the present invention provides a method for collecting QR codes for vacuum packaging, which can effectively overcome the defect of the prior art that the rejection rate of vacuum-packaged products during QR code collection is greatly increased due to severe surface wrinkles.

[0006] (2) Technical solution

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0008] A method for collecting a QR code of a vacuum package comprises the following steps:

[0009] S1. Pre-collect QR codes for unpacked empty packages, and construct the pre-collected QR codes into a pre-collected QR code queue in order;

[0010] S2. Collect the QR code of the vacuum package that has been bagged and vacuum treated;

[0011] S3. Perform logical completion on the vacuum packaging QR code that cannot be completely collected;

[0012] S4. Based on the pre-collected QR code queue, determine and assign codes to vacuum packaging QR codes that cannot be logically completed;

[0013] S5. Remove the vacuum packaging on the conveyor belt whose QR code has not been successfully collected.

[0014] Preferably, the conveyor belt is equipped with an empty package QR code collector, a vacuum package QR code collector, a first sensor, a second sensor, a third sensor, a fourth sensor, a first rejecting device, a second rejecting device and a controller;

[0015] A first sensor is installed at the empty package input end of the conveyor belt;

[0016] Empty package QR code collector, used to pre-collect QR codes for unpacked empty packages and construct the pre-collected QR codes into a pre-collected QR code queue in sequence;

[0017] A second sensor is installed at the input end of the first reject device on the conveyor belt, and is used to provide a trigger signal for the first reject device;

[0018] The third sensor is installed at the vacuum packaging input end of the conveyor belt;

[0019] Vacuum packaging QR code collector, used to collect QR codes of vacuum packaging that has been bagged and vacuum treated;

[0020] a fourth sensor, mounted on the conveyor belt at the input end of the second reject device, for providing a trigger signal to the second reject device;

[0021] The controller receives the trigger signals provided by the second sensor and the fourth sensor, and controls the first rejecting device and the second rejecting device respectively to reject the empty packages and vacuum packages whose QR codes have not been successfully collected.

[0022] Preferably, the empty packaging QR code collector and the vacuum packaging QR code collector are both installed on the conveyor belt through a bracket. There are two vacuum packaging QR code collectors, and the angle between the two vacuum packaging QR code collectors is 90°-180°.

[0023] Preferably, S3 performs logical completion on the vacuum packaging QR code that cannot be completely collected, including:

[0024] Unify the coordinate systems of the vacuum packaging QR code collectors and identify the QR code parts successfully collected by each vacuum packaging QR code collector;

[0025] Based on each successfully collected QR code portion, determining an unsuccessfully collected QR code portion, and setting a splicing point at an edge of each unsuccessfully collected QR code portion;

[0026] Based on the splicing points on the edges of the unsuccessfully collected QR code parts, the successfully collected QR code parts are spliced ​​together to complete the logical completion of the vacuum packaging QR code.

[0027] Preferably, in S4, judging and assigning codes to vacuum package QR codes that cannot be logically completed based on the pre-collected QR code queue includes:

[0028] The vacuum packaging that cannot be logically completed is put into a coding queue together with the vacuum packaging before and after it;

[0029] If the QR codes of all vacuum packages in the coding queue are successfully collected except for the vacuum package that cannot be logically completed, and are in the pre-collected QR code queue, the QR code between the corresponding QR codes of the previous and next vacuum packages in the pre-collected QR code queue will be coded to the vacuum package that cannot be logically completed, and it will be determined that the QR code of the vacuum package has been successfully collected.

[0030] Preferably, the process of pre-collecting the QR code of the unbagged empty package and collecting the QR code of the vacuum package that has been bagged and vacuum-treated is performed by using a high-speed dynamic QR code collection method, and the specific process includes:

[0031] Perform global motion compensation and estimation on the captured images under dynamic background to obtain a stable image sequence;

[0032] Detect motion areas in stable image sequences and extract moving target images;

[0033] The moving target image is preprocessed, and image edge detection and distortion correction are performed to obtain the captured QR code image.

[0034] Preferably, performing global motion compensation and estimation on the captured images in a dynamic background to obtain a stable image sequence includes:

[0035] The phase correlation algorithm is used to determine the phase correlation area in the previous and next frame acquisition images, and a motion compensation is performed through translation transformation;

[0036] Harris corner detection algorithm is used to detect feature points, and SURF feature point matching algorithm is used to match feature points and complete motion estimation.

[0037] A motion model is constructed, global motion parameters are determined, and secondary motion compensation is performed based on the global motion parameters to obtain a stable image sequence.

[0038] Preferably, detecting a motion region in a stable image sequence and extracting a moving target image includes:

[0039] The three-frame difference method is used to detect the moving area in the stable image sequence. The moving target contour is obtained by performing AND operation on the difference images of two adjacent frames, and the moving target image is extracted from the moving target contour.

[0040] Preferably, the preprocessing of the moving target image and performing image edge detection and distortion correction includes:

[0041] Binarize the moving target image and use median filtering to eliminate salt and pepper noise;

[0042] Use the Canny operator to perform convolution calculation to obtain the gradient amplitude and direction of the image;

[0043] The non-maximum value of the gradient amplitude is suppressed, and the four-threshold method is used for edge detection and connection;

[0044] Hough transform is used for rotation correction, and perspective transform is used for distortion correction.

[0045] (3) Beneficial effects

[0046] Compared with the prior art, the vacuum package QR code acquisition method provided by the present invention has the following beneficial effects:

[0047] 1) On the one hand, logical completion is performed on vacuum packaging QR codes that cannot be fully captured. On the other hand, the vacuum packaging QR codes that cannot be logically completed are judged and coded based on the pre-captured QR code queue. This can effectively improve the success rate of vacuum packaging QR code capture and greatly reduce the number of vacuum packaging products rejected due to inability to accurately recognize the QR code;

[0048] 2) During the process of pre-collecting QR codes for unbagged empty packages and collecting QR codes for vacuum packages that have been bagged and vacuum-treated, high-speed dynamic QR code collection is used. This method can accurately collect the QR codes for vacuum packages without slowing down the product conveying speed of the conveyor belt, ensuring the accuracy of subsequent logical completion and coding of the vacuum package QR codes, and further improving the success rate of vacuum package QR code collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0050] Figure 1 It is a schematic diagram of the process of the present invention;

[0051] Figure 2 The figure is a flow chart of the high-speed dynamic two-dimensional code acquisition method for collecting two-dimensional codes from unbagged empty packages and vacuum packages in the present invention. DETAILED DESCRIPTION

[0052] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0053] A method for collecting QR codes of vacuum packaging, such as Figure 1 As shown, ① pre-collect the QR code of the empty package without bag (at this time, since the empty package is relatively flat, the QR code collection success rate is extremely high), and construct the pre-collected QR code into a pre-collected QR code queue in sequence.

[0054] ② Collect the QR code of the vacuum packaging that has been bagged and vacuum treated.

[0055] ③ Perform logical completion on vacuum packaging QR codes that cannot be fully captured, including:

[0056] Unify the coordinate systems of the vacuum packaging QR code collectors and identify the QR code parts successfully collected by each vacuum packaging QR code collector;

[0057] Based on each successfully collected QR code portion, determining an unsuccessfully collected QR code portion, and setting a splicing point at an edge of each unsuccessfully collected QR code portion;

[0058] Based on the splicing points on the edges of the unsuccessfully collected QR code parts, the successfully collected QR code parts are spliced ​​together to complete the logical completion of the vacuum packaging QR code.

[0059] ④ Based on the pre-collected QR code queue, the vacuum packaging QR code that cannot be logically completed is judged and coded, specifically including:

[0060] The vacuum packaging that cannot be logically completed is put into a coding queue together with the vacuum packaging before and after it;

[0061] If the QR codes of all vacuum packages in the coding queue are successfully collected except for the vacuum package that cannot be logically completed, and are in the pre-collected QR code queue, the QR code between the corresponding QR codes of the previous and next vacuum packages in the pre-collected QR code queue will be coded to the vacuum package that cannot be logically completed, and it will be determined that the QR code of the vacuum package has been successfully collected.

[0062] ⑤Remove the vacuum packaging on the conveyor belt that has not successfully captured the QR code.

[0063] The above technical solution, on the one hand, performs logical completion on the vacuum packaging QR codes that cannot be completely collected, and on the other hand, judges and codes the vacuum packaging QR codes that cannot be logically completed based on the pre-collected QR code queue, thereby effectively improving the success rate of vacuum packaging QR code collection and greatly reducing the number of vacuum packaging products that are rejected due to the inability to accurately identify the QR code.

[0064] In the technical solution of the present application, an empty package QR code collector, a vacuum package QR code collector, a first sensor, a second sensor, a third sensor, a fourth sensor, a first rejection device, a second rejection device and a controller are installed on the conveyor belt;

[0065] A first sensor is installed at the empty package input end of the conveyor belt;

[0066] Empty package QR code collector, used to pre-collect QR codes for unpacked empty packages and construct the pre-collected QR codes into a pre-collected QR code queue in sequence;

[0067] A second sensor is installed at the input end of the first reject device on the conveyor belt, and is used to provide a trigger signal for the first reject device;

[0068] The third sensor is installed at the vacuum packaging input end of the conveyor belt;

[0069] Vacuum packaging QR code collector, used to collect QR codes of vacuum packaging that has been bagged and vacuum treated;

[0070] a fourth sensor, mounted on the conveyor belt at the input end of the second reject device, for providing a trigger signal to the second reject device;

[0071] The controller receives the trigger signals provided by the second sensor and the fourth sensor, and controls the first rejecting device and the second rejecting device respectively to reject the empty packages and vacuum packages whose QR codes have not been successfully collected.

[0072] Among them, the empty packaging QR code collector and the vacuum packaging QR code collector are both installed on the conveyor belt through a bracket. There are two vacuum packaging QR code collectors, and the angle between the two vacuum packaging QR code collectors is 90°-180° (depending on the actual size of the vacuum packaging product).

[0073] The above technical solution, through reasonable hardware layout and combined with the vacuum packaging QR code collection method, can significantly improve the success rate of vacuum packaging QR code collection during the entire vacuum packaging QR code collection process compared with traditional collection methods. While maintaining a collection speed similar to that of traditional collection methods, it can greatly reduce the number of vacuum-packed products that are rejected due to the inability to accurately identify the QR code.

[0074] like Figure 1 and Figure 2 As shown in the figure, the QR code pre-collection of the unbagged empty package and the QR code collection of the vacuum package that has been bagged and vacuum-treated are both performed using a high-speed dynamic QR code collection method. The specific process includes:

[0075] Perform global motion compensation and estimation on the captured images under dynamic background to obtain a stable image sequence;

[0076] Detect motion areas in stable image sequences and extract moving target images;

[0077] The moving target image is preprocessed, and image edge detection and distortion correction are performed to obtain the captured QR code image.

[0078] 1) Perform global motion compensation and estimation on the captured images in a dynamic background to obtain a stable image sequence, including:

[0079] The phase correlation algorithm is used to determine the phase correlation area in the previous and next frame acquisition images, and a motion compensation is performed through translation transformation;

[0080] Harris corner detection algorithm is used to detect feature points, and SURF feature point matching algorithm is used to match feature points and complete motion estimation.

[0081] A motion model is constructed, global motion parameters are determined, and secondary motion compensation is performed based on the global motion parameters to obtain a stable image sequence.

[0082] 2) Detecting the moving area in the stable image sequence and extracting the moving target image, including:

[0083] The three-frame difference method is used to detect the moving area in the stable image sequence. The moving target contour is obtained by performing AND operation on the difference images of two adjacent frames, and the moving target image is extracted from the moving target contour.

[0084] 3) Preprocess the moving target image and perform image edge detection and distortion correction, including:

[0085] Binarize the moving target image and use median filtering to eliminate salt and pepper noise;

[0086] Use the Canny operator to perform convolution calculation to obtain the gradient amplitude and direction of the image;

[0087] The non-maximum value of the gradient amplitude is suppressed, and the four-threshold method is used for edge detection and connection;

[0088] Hough transform is used for rotation correction, and perspective transform is used for distortion correction.

[0089] The above technical solution uses a high-speed dynamic QR code collection method to collect QR codes in the process of pre-collecting QR codes for unbagged empty packages and collecting QR codes for vacuum packages that have been bagged and vacuum-treated. It can accurately collect the QR codes of vacuum packages without slowing down the conveying speed of the conveyor belt products, ensure the accuracy of subsequent logical completion and coding of the vacuum package QR codes, and further improve the success rate of vacuum package QR code collection.

[0090] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for collecting QR codes of vacuum packages, characterized by: The following steps are involved: S1. Pre-collect QR codes for unpacked empty packages, and construct the pre-collected QR codes into a pre-collected QR code queue in order; S2. Collect the QR code of the vacuum package that has been bagged and vacuum treated; S3. Perform logical completion on the vacuum packaging QR code that cannot be completely collected; S4. Based on the pre-collected QR code queue, determine and assign codes to vacuum packaging QR codes that cannot be logically completed; S5. Remove the vacuum packaging on the conveyor belt that has not successfully captured the QR code; In S3, logical completion is performed on vacuum packaging QR codes that cannot be fully collected, including: Unify the coordinate systems of the vacuum packaging QR code collectors and identify the QR code parts successfully collected by each vacuum packaging QR code collector; Based on each successfully collected QR code portion, determining an unsuccessfully collected QR code portion, and setting a splicing point at an edge of each unsuccessfully collected QR code portion; Based on the splicing points of the edges of the unsuccessfully collected QR code parts, the successfully collected QR code parts are spliced ​​together to complete the logical completion of the vacuum packaging QR code; In S4, based on the pre-collected QR code queue, the vacuum packaging QR codes that cannot be logically completed are judged and coded, including: The vacuum packaging that cannot be logically completed is put into a coding queue together with the vacuum packaging before and after it; If the QR codes of all vacuum packages in the coding queue are successfully collected except for the vacuum package that cannot be logically completed, and are in the pre-collected QR code queue, the QR code between the corresponding QR codes of the previous and next vacuum packages in the pre-collected QR code queue will be coded to the vacuum package that cannot be logically completed, and it will be determined that the QR code of the vacuum package has been successfully collected.

2. The method for collecting the two-dimensional code of vacuum packaging according to claim 1, characterized in that: The conveyor belt is equipped with an empty package QR code collector, a vacuum package QR code collector, a first sensor, a second sensor, a third sensor, a fourth sensor, a first rejecting device, a second rejecting device and a controller; A first sensor is installed at the empty package input end of the conveyor belt; Empty package QR code collector, used to pre-collect QR codes for unpacked empty packages and construct the pre-collected QR codes into a pre-collected QR code queue in sequence; A second sensor is installed at the input end of the first reject device on the conveyor belt, and is used to provide a trigger signal for the first reject device; The third sensor is installed at the vacuum packaging input end of the conveyor belt; Vacuum packaging QR code collector, used to collect QR codes of vacuum packaging that has been bagged and vacuum treated; a fourth sensor, mounted on the conveyor belt at the input end of the second reject device, for providing a trigger signal to the second reject device; The controller receives the trigger signals provided by the second sensor and the fourth sensor, and controls the first rejecting device and the second rejecting device respectively to reject the empty packages and vacuum packages whose QR codes have not been successfully collected.

3. The method for collecting the two-dimensional code of vacuum packaging according to claim 2, characterized in that: The empty packaging QR code collector and the vacuum packaging QR code collector are both installed on the conveyor belt through a bracket. There are two vacuum packaging QR code collectors, and the angle between the two vacuum packaging QR code collectors is 90°-180°.

4. The method for collecting a two-dimensional code of a vacuum package according to any one of claims 1 to 3, wherein: The process of pre-collecting the QR code of the unbagged empty package and collecting the QR code of the vacuum package that has been bagged and vacuum-treated is performed by using a high-speed dynamic QR code collection method. The specific process includes: Perform global motion compensation and estimation on the captured images under dynamic background to obtain a stable image sequence; Detect motion areas in stable image sequences and extract moving target images; The moving target image is preprocessed, and image edge detection and distortion correction are performed to obtain the captured QR code image.

5. The method for collecting the two-dimensional code of vacuum packaging according to claim 4, characterized in that: The method of performing global motion compensation and estimation on the collected images under a dynamic background to obtain a stable image sequence includes: The phase correlation algorithm is used to determine the phase correlation area in the previous and next frame acquisition images, and a motion compensation is performed through translation transformation; Harris corner detection algorithm is used to detect feature points, and SURF feature point matching algorithm is used to match feature points and complete motion estimation. A motion model is constructed, global motion parameters are determined, and secondary motion compensation is performed based on the global motion parameters to obtain a stable image sequence.

6. The method for collecting the two-dimensional code of vacuum packaging according to claim 5, characterized in that: The detecting and obtaining the motion region in the stable image sequence and extracting the motion target image includes: The three-frame difference method is used to detect the moving area in the stable image sequence. The moving target contour is obtained by performing AND operation on the difference images of two adjacent frames, and the moving target image is extracted from the moving target contour.

7. The method for collecting the two-dimensional code of vacuum packaging according to claim 6, characterized in that: The preprocessing of the moving target image and performing image edge detection and distortion correction include: Binarize the moving target image and use median filtering to eliminate salt and pepper noise; Use the Canny operator to perform convolution calculation to obtain the gradient amplitude and direction of the image; The non-maximum value of the gradient amplitude is suppressed, and the four-threshold method is used for edge detection and connection; Hough transform is used for rotation correction, and perspective transform is used for distortion correction.

Citation Information

Patent Citations

  • High-speed dynamic QR code identification method based on improved SURF composite algorithm

    CN110210584A

  • Point cloud splicing method and device, equipment and storage equipment

    CN113532311A