A method and system for linking traceability codes in tobacco production lines
By setting up a traceability code association method and system on the tobacco production line, and using control terminals to determine and process the traceability code sets of cigarette packs, cartons, and boxes, the problem of non-association of traceability codes between cigarette packs and cartons, and between cartons and boxes, has been solved, achieving accurate association and recognition precision of traceability codes.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2026-03-06
AI Technical Summary
The existing tobacco production lines cannot effectively guarantee the correlation between traceability codes between cigarette packs and cartons, and between cartons and boxes, which can easily lead to market feedback risks due to the lack of correlation between cigarette traceability codes.
By setting up a traceability code association method and system on the tobacco production line, the control terminal determines the traceability code set of the target cigarette pack, carton, and box from a preset traceability code association list, and performs precise traceability code coding at each coding station to ensure the traceability code association between cigarette packs and cartons, and between cartons and boxes.
It achieves accurate association of traceability codes between cigarette packs, cartons, and cases, avoiding market feedback risks caused by unassociated cigarette traceability codes and improving the accuracy and relevance of traceability code recognition on the production line.
Smart Images

Figure CN119809666B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of tobacco equipment technology, and specifically relates to a traceability code association method and system for tobacco production lines. Background Technology
[0002] The production process of a cigarette pack production line typically involves packaging multiple cigarettes into a pack, then packaging these packs into cartons (i.e., cartons of cigarettes), and finally wrapping and shaping these cartons in boxes and placing them on trays. Due to current market demands for tobacco product production and traceability, each cigarette pack, carton, and box needs to be assigned a traceability code to ensure the legal circulation of tobacco products, prevent counterfeit and substandard products from entering the market, and also assist the government in monitoring the sale of tobacco products.
[0003] Existing cigarette packaging production lines can produce unique traceability codes for cigarette packs, carton packs, and cases, and can ensure the correlation between the traceability codes for cigarette packs and carton packs, as well as between the traceability codes for carton packs and cases. However, in actual production, due to abnormal human operation or non-standard automated processes, the correlation between the traceability codes for cigarette packs and carton packs, as well as between the traceability codes for carton packs and cases, cannot be guaranteed. This can easily lead to market feedback risks due to the lack of correlation between cigarette traceability codes. Summary of the Invention
[0004] This application addresses the aforementioned technical shortcomings, such as the inability to guarantee the traceability code association between cigarette packs and cartons, and between cartons and boxes, due to abnormal human operation or non-standard automated processes during actual production, which can easily lead to market feedback risks due to unassociated cigarette traceability codes. Therefore, this application proposes a traceability code association method and system for tobacco production lines, the technical solution of which is as follows:
[0005] In a first aspect, embodiments of this application provide a method for associating traceability codes for tobacco production lines, including:
[0006] When at least one cigarette pack to be coded is detected at the cigarette pack coding station, the target cigarette pack traceability code set is determined from the preset traceability code association list; wherein, the preset traceability code association list includes at least two box pack traceability codes, at least two carton pack traceability codes corresponding to each box pack traceability code, and a cigarette pack traceability code set corresponding to each carton pack traceability code;
[0007] Based on the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all corresponding cigarette packs to be coded are coded. When a bar pack containing all the processed cigarette packs to be coded is detected at the bar pack coding station, the target bar pack traceability code corresponding to the target cigarette pack traceability code set is determined from the preset traceability code association list.
[0008] Based on the target barcode traceability code, the barcode to be coded is processed, and when a bag containing the processed barcode to be coded is detected at the bag coding station, all adjacent barcode traceability codes contained in the bag to be coded are identified.
[0009] Based on all adjacent barcode traceability codes and the preset traceability code association list, the bags to be coded are coded.
[0010] In one alternative of the first aspect, before detecting at least one cigarette pack to be coded at the cigarette pack coding station, the method further includes:
[0011] At a preset time interval, at least one cigarette pack to be identified is scanned at the cigarette pack coding station. When the scan result of any cigarette pack to be identified shows that a cigarette pack traceability code exists, the corresponding cigarette pack traceability code is marked.
[0012] When the scan result of any cigarette pack to be identified is that no traceability code exists, the corresponding cigarette pack to be identified will be used as a cigarette pack to be coded.
[0013] In another alternative to the first aspect, the target cigarette pack traceability code set is determined from a pre-defined traceability code association list, including:
[0014] All processed cigarette pack traceability codes are used as a set of labeled cigarette pack traceability codes, and the similarity between the set of labeled cigarette pack traceability codes and each cigarette pack traceability code set in the preset traceability code association list is calculated.
[0015] The set of cigarette pack traceability codes corresponding to similarities exceeding a preset similarity threshold is taken as the set of adjacent cigarette pack traceability codes, and it is determined whether the set of marked cigarette pack traceability codes contains the last cigarette pack traceability code in the set of adjacent cigarette pack traceability codes.
[0016] When it is determined that the traceability code set of the marked cigarette pack exists in the last traceability code set of the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined from the preset traceability code association list based on the adjacent cigarette pack traceability code set.
[0017] In another alternative to the first aspect, after coding all the corresponding cigarette packs to be coded according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, the method further includes:
[0018] Acquire an image of a cigarette pack containing any one of the processed cigarette packs to be coded, and identify the outline features of the traceability code from the cigarette pack image;
[0019] The traceability code contour features are preprocessed, and the image co-occurrence matrix is calculated based on the processed traceability code contour features.
[0020] Extract at least one image feature from the image co-occurrence matrix, and determine whether there is any abnormality in the processed cigarette pack to be coded based on the preset feature threshold and all image features.
[0021] If any processed cigarette pack awaiting coding is found to be abnormal, the corresponding cigarette pack awaiting coding will be rejected.
[0022] In another alternative to the first aspect, all image features include contrast features and correlation features, and the preset feature thresholds include a first feature threshold and a second feature threshold.
[0023] Based on preset feature thresholds and all image features, determine whether the processed cigarette packs to be coded contain any anomalies, including:
[0024] When the correlation feature is higher than the first feature threshold, determine whether the contrast feature is lower than the second feature threshold;
[0025] When the contrast feature is below the second feature threshold, it is determined that the processed cigarette pack to be coded does not have any abnormalities; or
[0026] When the correlation feature is lower than or equal to the first feature threshold, it is determined that the processed cigarette pack to be coded is abnormal; or
[0027] When the contrast ratio is higher than or equal to the second feature threshold, it is determined that the processed cigarette pack to be coded has an anomaly.
[0028] In another alternative to the first aspect, the package to be coded is coded based on all adjacent barcodes and a preset traceability code association list, including:
[0029] Query all associated traceability codes of the target package corresponding to the target package traceability code from the preset traceability code association list, and count the total number of all associated package traceability codes.
[0030] When the number of all associated barcodes is the same as the number of all adjacent barcodes, determine whether each adjacent barcode is the same as any associated barcode.
[0031] When each adjacent barcode traceability code is the same as any associated barcode traceability code, the target bag traceability code corresponding to the target barcode traceability code is retrieved from the preset traceability code association list, and the bag to be coded is coded based on the target bag traceability code.
[0032] In another alternative to the first aspect, after counting the total number of all associated barcode traceability codes, the following is also included:
[0033] When the number of all associated barcode traceability codes is inconsistent with the number of all adjacent barcode traceability codes, the location of the missing barcode traceability code is determined among all associated barcode traceability codes;
[0034] When the missing barcode is at the last position of all associated barcodes, the package to be coded is returned to the barcode packaging station.
[0035] When the missing barcode is not the last of all associated barcodes, a pre-set warning message will be sent to the user terminal.
[0036] Secondly, embodiments of this application provide a traceability code association system for tobacco production lines, comprising:
[0037] The first processing module is used to determine the target cigarette pack traceability code set from a preset traceability code association list when at least one cigarette pack to be coded is detected at the cigarette pack coding station; wherein, the preset traceability code association list includes at least two box pack traceability codes, at least two carton pack traceability codes corresponding to each box pack traceability code, and a cigarette pack traceability code set corresponding to each carton pack traceability code.
[0038] The first coding module is used to code all the cigarette packs to be coded according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set. When a carton to be coded is detected at the carton coding station containing all the processed cigarette packs to be coded, the target carton traceability code corresponding to the target cigarette pack traceability code set is determined from the preset traceability code association list.
[0039] The second processing module is used to perform coding processing on the barcode to be coded based on the target barcode traceability code, and when a bag containing the processed barcode to be coded is detected at the bag coding station, it identifies all adjacent barcode traceability codes contained in the bag to be coded.
[0040] The second coding module is used to code the bags to be coded based on all adjacent barcodes and a preset list of associated traceability codes.
[0041] Thirdly, embodiments of this application also provide a traceability code association system for tobacco production lines, including a processor and a memory;
[0042] The processor is connected to the memory;
[0043] Memory, used to store executable program code;
[0044] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the traceability code association method for tobacco production lines provided by the first aspect or any implementation of the first aspect of the embodiments of this application.
[0045] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, which includes program instructions. When executed by a processor, the program instructions can implement the traceability code association method for tobacco production lines provided by the first aspect or any implementation of the first aspect of this application.
[0046] The beneficial effects of this application are:
[0047] When performing traceability code association on cigarette packs, cartons, and cases on the tobacco production line, when at least one cigarette pack to be coded is detected at the cigarette pack coding station, the target cigarette pack traceability code set is determined from a preset traceability code association list. Based on the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all corresponding cigarette packs to be coded are coded. Similarly, when a carton containing all the processed cigarette packs to be coded is detected at the carton coding station, the target carton traceability code corresponding to the target cigarette pack traceability code set is determined from the preset traceability code association list. Based on the target carton traceability code, the carton to be coded is coded. And when a case containing the processed carton to be coded is detected at the case coding station, all adjacent carton traceability codes contained in the case to be coded are identified. Finally, based on all adjacent carton traceability codes and the preset traceability code association list, the case to be coded is coded. By identifying the target cigarette pack traceability code set from a pre-defined traceability code association list, all corresponding cigarette packs to be coded are processed, thus ensuring the accuracy of cigarette pack coding. Next, the target carton traceability code is identified from the pre-defined traceability code association list, and the carton containing all processed cigarette packs to be coded is coded, thus ensuring the correlation between the traceability codes of cigarette packs and cartons. Then, when a carton containing processed cartons to be coded is detected, the traceability codes of adjacent cartons contained in the carton to be coded are identified, and the carton to be coded is processed according to the adjacent carton traceability codes and the pre-defined traceability code association list, thus ensuring the correlation between the traceability codes of cartons and cartons, and effectively avoiding the market feedback risk of cigarette traceability codes not being correlated. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 A flowchart illustrating an overall method for associating traceability codes in a tobacco production line, provided as an embodiment of this application;
[0050] Figure 2 A schematic diagram of a tobacco production line provided for an embodiment of this application;
[0051] Figure 3 A schematic diagram of a preset traceability code association list provided in an embodiment of this application;
[0052] Figure 4 A schematic diagram illustrating the rejection of cigarette packs provided in an embodiment of this application;
[0053] Figure 5 A schematic diagram of a traceability code association system for a tobacco production line is provided as an embodiment of this application;
[0054] Figure 6 This is a schematic diagram of another traceability code association system for a tobacco production line provided in an embodiment of this application. Detailed Implementation
[0055] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0056] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.
[0057] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
[0058] Please see Figure 1 , Figure 1 The diagram shows an overall flowchart of a traceability code association method for a tobacco production line provided in an embodiment of this application.
[0059] like Figure 1 As shown, the method for associating traceability codes for tobacco production lines may include at least the following steps:
[0060] Step 102: When at least one cigarette pack to be coded is detected at the cigarette pack coding station, the target cigarette pack traceability code set is determined from the preset traceability code association list.
[0061] In this embodiment, the traceability code association method for a tobacco production line can be applied, but is not limited to, to the control terminal of the tobacco production line. This control terminal can control the coding station to perform traceability code coding on cigarette packs, cartons, or boxes during the production process, so that the traceability code coded on each carton can be associated with all the traceability codes coded on all cigarette packs, and the traceability code coded on each box can be associated with all the traceability codes coded on all cartons. Here, the tobacco production line can at least include a cigarette pack coding station, a carton coding station, and a box coding station connected to the control terminal. The cigarette pack coding station and the carton coding station are connected via a cigarette pack transport device, and the carton coding station and the box coding station can be connected via a carton transport device.
[0062] The cigarette pack coding station may include, but is not limited to, a cigarette pack detection device and a traceability code coding device. When the cigarette pack detection device detects that a cigarette pack to be coded has been transported to a designated location, the traceability code coding device will process the coding on the cigarette pack. A cigarette pack rejection device may also be installed between this cigarette pack coding station and the carton coding station to reject cigarette packs with abnormal coding, thereby ensuring the accuracy of the cigarette pack traceability code identification. The carton coding station may include, but is not limited to, a carton detection device and a traceability code coding device. When the carton detection device detects that a carton to be coded has been transported to a designated location, the traceability code coding device will process the coding on the carton. The barcode label is coded, and a manual operation station or cigarette pack packaging device can be set up between the barcode label coding station and the cigarette pack coding station to package multiple coded cigarette packs into the barcode label to be coded; the bag coding station may include, but is not limited to, a bag detection device and a traceability code coding device, so that when the bag detection device detects that the bag to be coded has been transported to a designated location, the traceability code coding device will coded the bag to be coded, and a manual operation station or barcode packaging device can be set up between the bag coding station and the barcode label coding station to package multiple coded barcode labels into the bagcode label to be coded.
[0063] Of course, a strip bag rejection device can also be installed between the bag coding station and the strip bag coding station to reject strip bags with abnormal coding, thereby ensuring the recognition accuracy of the strip bag traceability code.
[0064] It should be noted that the cigarette pack inspection device, carton inspection device, box inspection device, traceability code printing device, cigarette pack transportation device, carton transportation device, cigarette pack packaging device, carton packaging device, cigarette pack rejection device, and carton rejection device mentioned above are all industrial equipment well known in the art. Furthermore, the cigarette pack production line may also include other industrial equipment well known in the art, but these will not be elaborated upon here.
[0065] See also: Figure 2 The schematic diagram shown is of a tobacco production line provided in an embodiment of this application, as follows: Figure 2 As shown, a tobacco production line may include at least a cigarette pack coding station, a carton coding station, and a box coding station. The cigarette pack coding station and the carton coding station are connected by a cigarette pack transport device, which is equipped with a cigarette pack rejection device and a cigarette pack packaging device. The carton coding station and the box coding station are connected by a carton transport device, which is equipped with a carton rejection device.
[0066] Understandably, the control terminal can determine the target cigarette pack traceability code set from a preset traceability code association list to code all corresponding cigarette packs to be coded, thereby ensuring the accuracy of cigarette pack coding. Next, it determines the target carton traceability code from the preset traceability code association list to code the carton containing all processed cigarette packs to be coded, thereby ensuring the traceability code association between cigarette packs and cartons. Then, when a carton containing processed cartons to be coded is detected, the traceability codes of adjacent cartons within the carton are identified, and the carton is coded according to the adjacent carton traceability codes and the preset traceability code association list, thereby ensuring the traceability code association between cartons and cartons and effectively avoiding the market feedback risk of unassociated cigarette traceability codes.
[0067] Specifically, when associating traceability codes with cigarette packs, cartons, and cases on a tobacco production line, the control terminal can, but is not limited to, using the aforementioned cigarette pack detection device to monitor the cigarette pack coding station in real time. This allows the terminal to determine whether one or more cigarette packs awaiting coding have been transported to the designated location of that coding station. These packs can be packaged by other industrial equipment on the tobacco production line. When one or more packs are detected to have been transported to the designated location of the coding station, the terminal can retrieve the target traceability code set for coding the current pack from a pre-defined traceability code association list. This pre-defined traceability code association list can include multiple pre-prepared case traceability codes, multiple carton traceability codes associated with each case traceability code, a set of cigarette pack traceability codes associated with each carton traceability code, and each set of cigarette pack traceability codes including multiple cigarette pack traceability codes arranged in a pre-defined order. It is understandable that the correlation between multiple cigarette pack traceability codes in the cigarette pack traceability code set, the correlation between carton traceability codes and cigarette pack traceability codes, and the correlation between box traceability codes and carton traceability codes can be, but are not limited to, the correlation of production batch information, and are not limited to this.
[0068] See also: Figure 3 The diagram shown is a schematic representation of a preset traceability code association list provided in an embodiment of this application. Figure 3 As shown, the preset traceability code association list can include two pre-prepared bag traceability codes, referred to as bag traceability code A and bag traceability code B, respectively. Among them, the traceability codes associated with bag traceability code A are represented as bag traceability codes Aa, Ab, and Ac, respectively. The set of cigarette pack traceability codes associated with bag traceability code Aa can be represented as the cigarette pack traceability code set Aaa, the set of cigarette pack traceability codes associated with bag traceability code Ab can be represented as the cigarette pack traceability code set Abb, and the set of cigarette pack traceability codes associated with bag traceability code Ac can be represented as the cigarette pack traceability code set Acc. The traceability codes associated with bag traceability code B are represented as bag traceability codes Ba, Bb, and Bc, respectively. The set of cigarette pack traceability codes associated with bag traceability code Ba can be represented as the cigarette pack traceability code set Baa, the set of cigarette pack traceability codes associated with bag traceability code Bb can be represented as the cigarette pack traceability code set Bbb, and the set of cigarette pack traceability codes associated with bag traceability code Bc can be represented as the cigarette pack traceability code set Bcc. Each set of cigarette pack traceability codes may include, but is not limited to, multiple associated cigarette pack traceability codes.
[0069] As an optional embodiment of this application, before detecting at least one cigarette pack to be coded at the cigarette pack coding station, the method further includes:
[0070] At a preset time interval, at least one cigarette pack to be identified is scanned at the cigarette pack coding station. When the scan result of any cigarette pack to be identified shows that a cigarette pack traceability code exists, the corresponding cigarette pack traceability code is marked.
[0071] When the scan result of any cigarette pack to be identified is that no traceability code exists, the corresponding cigarette pack to be identified will be used as a cigarette pack to be coded.
[0072] Specifically, to ensure the accuracy of cigarette pack identification, before detecting at least one cigarette pack at the coding station, the control terminal can control the aforementioned cigarette pack detection device to transport one or more cigarette packs to the coding station for scanning at preset time intervals to determine whether a cigarette pack traceability code exists at a designated location on each cigarette pack. It is understood that when a cigarette pack traceability code is detected at a designated location on any cigarette pack, it indicates that the currently detected cigarette pack is a coded cigarette pack. Therefore, the detected cigarette pack traceability code can be marked, for example, but not limited to, marking the set of cigarette pack traceability codes containing that code in a preset traceability code association list. This means that any one of the marked cigarette pack traceability codes in the set has been used for coding.
[0073] When it is detected that no traceability code is found at a specified position on any cigarette pack to be identified, it indicates that the currently detected cigarette pack to be identified is a cigarette pack that has not yet been coded. Therefore, the cigarette pack to be identified can be used as a cigarette pack to be coded, and every cigarette pack to be identified after the one to be identified can be used as a cigarette pack to be coded, so as to improve coding efficiency.
[0074] As another optional embodiment of this application, the target cigarette pack traceability code set is determined from a preset traceability code association list, including:
[0075] All processed cigarette pack traceability codes are used as a set of labeled cigarette pack traceability codes, and the similarity between the set of labeled cigarette pack traceability codes and each cigarette pack traceability code set in the preset traceability code association list is calculated.
[0076] The set of cigarette pack traceability codes corresponding to similarities exceeding a preset similarity threshold is taken as the set of adjacent cigarette pack traceability codes, and it is determined whether the set of marked cigarette pack traceability codes contains the last cigarette pack traceability code in the set of adjacent cigarette pack traceability codes.
[0077] When it is determined that the traceability code set of the marked cigarette pack exists in the last traceability code set of the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined from the preset traceability code association list based on the adjacent cigarette pack traceability code set.
[0078] Specifically, to ensure the accuracy of cigarette pack coding, when the control terminal determines the target cigarette pack traceability code set from the preset traceability code association list, it can integrate all the marked cigarette pack traceability codes into a marked cigarette pack traceability code set. Then, using a preset similarity algorithm or automatic similarity calculation program, it calculates the similarity between this marked cigarette pack traceability code set and each cigarette pack traceability code set in the preset traceability code association list. It can be understood that the similarity between the marked cigarette pack traceability code set and any other cigarette pack traceability code set can be, but is not limited to, the sum of the maximum similarities between each marked cigarette pack traceability code in the marked cigarette pack traceability code set and all cigarette pack traceability codes in any other cigarette pack traceability code set. Furthermore, the similarity between the marked cigarette pack traceability code and any other cigarette pack traceability code in the cigarette pack traceability code set can be represented as 0 or 1, meaning completely different or completely identical.
[0079] Next, after calculating all similarities, the control terminal can use the set of cigarette pack traceability codes corresponding to similarities exceeding a preset similarity threshold as the set of adjacent cigarette pack traceability codes. That is, this set of adjacent cigarette pack traceability codes includes one or more cigarette pack traceability codes after marking. The terminal can identify the last cigarette pack traceability code from this set of adjacent cigarette pack traceability codes to determine whether the last cigarette pack traceability code exists in the aforementioned set of marked cigarette pack traceability codes; in other words, to determine whether the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the set of adjacent cigarette pack traceability codes. Here, the method of determination can be, but is not limited to, the similarity calculation method mentioned above, and is not limited to it.
[0080] It is understandable that when it is determined that the traceability code set of the marked cigarette pack exists in the last traceability code set of the adjacent cigarette pack, it indicates that all traceability codes of the adjacent cigarette pack are used for coding processing. Then, in the preset traceability code association list, the traceability code set of the adjacent cigarette pack is associated with the target traceability code set. Here, the target traceability code set and the adjacent cigarette pack traceability code set are associated with the same bag traceability code.
[0081] When it is determined that the set of marked cigarette pack traceability codes does not contain the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, it indicates that there are still one or more cigarette pack traceability codes in the adjacent cigarette pack traceability code set that have not been used for coding. Then, referring to the above-mentioned embodiment, at least one cigarette pack to be identified is scanned at a preset time interval. When the scanning result of any cigarette pack to be identified is that a cigarette pack traceability code exists, the corresponding cigarette pack traceability code is marked until it is determined that the set of marked cigarette pack traceability codes contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set.
[0082] Step 104: Based on the number of cigarette pack traceability codes in the target cigarette pack traceability code set, perform coding processing on all corresponding cigarette packs to be coded. When a bar pack containing all the processed cigarette packs to be coded is detected at the bar pack coding station, determine the target bar pack traceability code corresponding to the target cigarette pack traceability code set in the preset traceability code association list.
[0083] Specifically, after determining the target cigarette pack traceability code set, the control terminal can, but is not limited to, control the traceability code coding device to sequentially code all cigarette packs to be coded according to the number of traceability codes in the target cigarette pack traceability code set, to ensure that each cigarette pack traceability code in the target cigarette pack traceability code set is coded. It is understood that after each cigarette pack to be coded is completed, the cigarette pack transport device of the tobacco production line can also transport the coded cigarette pack to the manual operation station or the cigarette pack packaging device to package the coded cigarette pack into a carton to be coded. The cigarette pack transport device can then transport the carton containing multiple coded cigarette packs to the carton coding station.
[0084] Furthermore, during the process of transporting the cigarette packs to be coded by the cigarette pack transport device to the coded cigarette pack station, the control terminal can also perform real-time detection at the coded cigarette pack station using the aforementioned cigarette pack detection device to determine whether any cigarette packs containing all the coded cigarette packs have been transported to the designated location of the coded cigarette pack station. It is understandable that when a cigarette pack containing all the coded cigarette packs is detected, the control terminal can query the target cigarette pack traceability code corresponding to the target cigarette pack traceability code set from a preset traceability code association list.
[0085] As another optional embodiment of this application, after coding all the corresponding cigarette packs to be coded according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, the method further includes:
[0086] Acquire an image of a cigarette pack containing any one of the processed cigarette packs to be coded, and identify the outline features of the traceability code from the cigarette pack image;
[0087] The traceability code contour features are preprocessed, and the image co-occurrence matrix is calculated based on the processed traceability code contour features.
[0088] Extract at least one image feature from the image co-occurrence matrix, and determine whether there is any abnormality in the processed cigarette pack to be coded based on the preset feature threshold and all image features.
[0089] If any processed cigarette pack awaiting coding is found to be abnormal, the corresponding cigarette pack awaiting coding will be rejected.
[0090] Specifically, in order to ensure that the traceability code on each cigarette pack to be coded is free of wrinkles or abnormalities after coding, and to ensure the recognition accuracy of the traceability code, after coding each cigarette pack to be coded, the control terminal can also take pictures of each cigarette pack to be coded after coding through a cigarette pack image acquisition device, so as to obtain cigarette pack images containing each cigarette pack to be coded in real time, and can identify the outline features of the traceability code containing the cigarette pack traceability code from each cigarette pack image.
[0091] Next, after identifying multiple traceability code contour features, the control terminal can also preprocess each traceability contour feature, such as, but not limited to, performing grayscale processing, noise reduction processing, and binarization processing on each traceability contour feature in sequence, to ensure the accuracy of subsequent processing.
[0092] Next, after preprocessing each trace contour feature, the control terminal can, but is not limited to, use the pre-defined greycomatrix function in the Scikit-image library to calculate the image co-occurrence matrix (ACM) of each preprocessed trace contour feature, which can also be understood as a gray-level ACM, and identify at least one image feature from each ACM. Here, the type of image feature can, but is not limited to, at least one of contrast features, energy features, entropy features, correlation features, and homogeneity features.
[0093] Next, after identifying all image features in each image co-occurrence matrix, the control terminal can also determine whether there are any wrinkles or abnormalities in the corresponding coded cigarette packs based on preset feature thresholds and all image features. If any coded cigarette pack is found to have wrinkles or abnormalities, the control terminal will remove the corresponding pack. Understandably, if any coded cigarette pack is found to be free of wrinkles or abnormalities, the cigarette pack transport device can normally transport the coded cigarette pack to the manual operation station or the cigarette pack packaging device.
[0094] See also: Figure 4 The diagram shown is a schematic representation of a cigarette pack rejection method provided in an embodiment of this application. Figure 4 As shown, when the tobacco production line is removing cigarette packs, it can be equipped with a cigarette pack image acquisition device, a removal and storage box, a removal nozzle, and a removal detection switch. The cigarette pack image acquisition device can collect images of cigarette packs containing cigarette packs and feed them back to the control terminal. When the control terminal detects an abnormality in the cigarette pack, it controls the removal detection switch to be in operation. When the abnormal cigarette pack is transported to the designated location, the removal nozzle pushes the abnormal cigarette pack into the removal and storage box.
[0095] As another optional embodiment of this application, all image features include contrast features and correlation features, and the preset feature thresholds include a first feature threshold and a second feature threshold.
[0096] Based on preset feature thresholds and all image features, determine whether the processed cigarette packs to be coded contain any anomalies, including:
[0097] When the correlation feature is higher than the first feature threshold, determine whether the contrast feature is lower than the second feature threshold;
[0098] When the contrast feature is below the second feature threshold, it is determined that the processed cigarette pack to be coded does not have any abnormalities; or
[0099] When the correlation feature is lower than or equal to the first feature threshold, it is determined that the processed cigarette pack to be coded is abnormal; or
[0100] When the contrast ratio is higher than or equal to the second feature threshold, it is determined that the processed cigarette pack to be coded has an anomaly.
[0101] Specifically, taking contrast and correlation features as examples of all image features, when determining whether there are any anomalies in the cigarette pack to be coded after coding, the control terminal can determine the magnitude between the correlation feature and the first feature threshold used to characterize contrast. Since wrinkles will disrupt the linear relationship between the pixels of the cigarette pack traceability code, that is, lead to a decrease in correlation, when the correlation feature is higher than the first feature threshold, it indicates that the correlation of the corresponding cigarette pack traceability code is normal, and then the magnitude between the contrast feature and the second feature threshold used to characterize contrast can be determined.
[0102] Because wrinkles cause uneven changes in the grayscale values of the traceability code, which simultaneously increases the contrast, when the contrast feature is below the second feature threshold, it can be determined that the coded cigarette pack is not abnormal. It is understandable that when the correlation feature is below or equal to the first feature threshold, or when the contrast feature is above or equal to the second feature threshold, it indicates that the coded cigarette pack is abnormal, and thus the coded cigarette pack can be rejected.
[0103] It should be noted that after any cigarette pack to be coded has been removed, the control terminal can also remind the operator to replenish the cigarette pack in a timely manner to avoid the traceability codes between the cigarette pack and the carton being unrelated.
[0104] Step 106: Based on the target barcode traceability code, perform barcode processing on the barcode to be coded, and when a bag containing the processed barcode to be coded is detected at the bag coding station, identify all adjacent barcode traceability codes contained in the bag to be coded.
[0105] Specifically, after the target carton traceability code is determined, the control terminal can, but is not limited to, controlling the traceability code coding device to code the carton to be coded, and the carton transport device will transport the coded carton to the carton coding station. It is understood that after each carton is coded, the carton transport device of the tobacco production line can also transport the coded carton to the manual operation station or the carton packaging device to package it into a carton. The carton transport device can then transport the carton containing multiple coded cartons to the carton coding station.
[0106] Furthermore, to ensure the correlation between the traceability codes of the strips and the boxes, the boxes to be coded, which contain multiple strips that have undergone coding processing, can be provided with an opening (or left unsealed). This means the control terminal can control the aforementioned box detection device to identify and process the traceability codes of all adjacent strips contained in the box to be coded through this opening. Here, adjacent strip traceability codes can be understood as all other strip traceability codes within the box to be coded, excluding the target strip traceability code, and both the adjacent strip traceability codes and the target strip traceability code are correlated with the same box traceability code.
[0107] Step 108: Based on all adjacent barcode traceability codes and the preset traceability code association list, perform coding processing on the boxes and bags to be coded.
[0108] Specifically, after identifying all adjacent barcode traceability codes, the control terminal can, but is not limited to, querying all associated barcode traceability codes corresponding to the target barcode traceability code in the preset traceability code association list, and counting the number of all associated barcode traceability codes.
[0109] It is understandable that when the number of all associated barcode traceability codes is the same as the number of all adjacent barcode traceability codes, it indicates that the number of all barcode traceability codes in the package to be coded meets the association requirements. Therefore, it can be determined whether each adjacent barcode traceability code is the same as any associated barcode traceability code. Here, the method for determining similarity can refer to the similarity calculation method mentioned in the above embodiments, but is not limited to it.
[0110] Furthermore, when it is determined that the traceability code of each adjacent package is the same as the traceability code of any associated package, it indicates that all the traceability codes of the packages in the box to be coded meet the traceability code association requirements. Then, the target package traceability code corresponding to the target package traceability code can be queried from the preset traceability code association list, and the traceability code coding device is controlled to code the box to be coded. In addition, the coded box to be coded can be transported to a pallet by other industrial equipment in the tobacco production line to facilitate the normal operation of subsequent processes.
[0111] It is also understandable that when the number of all associated barcode traceability codes is inconsistent with the number of all adjacent barcode traceability codes (generally, the number of all associated barcode traceability codes is greater than the number of all adjacent barcode traceability codes), it indicates that there is an operational abnormality in the aforementioned manual operation station or barcode packaging device. In this case, the control terminal can determine the position of the missing barcode traceability code among all adjacent barcode traceability codes based on the arrangement order of all associated barcode traceability codes. That is, the cause of the abnormality of the bag to be coded can be determined by the position of the missing barcode traceability code.
[0112] When the missing barcode is at the last position of all associated barcodes, it indicates that there may be an anomaly such as the bag being transported too fast or the barcode being packed too slowly. In this case, the control terminal can return the bag to be coded to the barcode packing station so that the operator can pack the barcode corresponding to the missing barcode into the bag to be coded.
[0113] When the missing pack traceability code is not at the end of all associated pack traceability codes, it indicates that there may be an anomaly such as a missing pack. The control terminal can then send a preset warning message to the user terminal to remind operators to promptly investigate and handle the tobacco production line.
[0114] Please see Figure 5 , Figure 5 This illustration shows a structural diagram of a traceability code association system for a tobacco production line provided in an embodiment of this application.
[0115] like Figure 5 As shown, the traceability code association system for tobacco production lines may include at least a first processing module 501, a first coding module 502, a second processing module 503, and a second coding module 504, wherein:
[0116] The first processing module 501 is used to determine the target cigarette pack traceability code set from a preset traceability code association list when at least one cigarette pack to be coded is detected at the cigarette pack coding station; wherein, the preset traceability code association list includes at least two box pack traceability codes, at least two carton pack traceability codes corresponding to each box pack traceability code, and a cigarette pack traceability code set corresponding to each carton pack traceability code.
[0117] The first coding module 502 is used to code all the corresponding cigarette packs to be coded according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, and when a bar pack containing all the processed cigarette packs to be coded is detected at the bar pack coding station, the target bar pack traceability code corresponding to the target cigarette pack traceability code set is determined from the preset traceability code association list.
[0118] The second processing module 503 is used to perform coding processing on the barcode to be coded based on the target barcode traceability code, and when a bag containing the processed barcode to be coded is detected at the bag coding station, it identifies all adjacent barcode traceability codes contained in the bag to be coded.
[0119] The second coding module 504 is used to code the bags to be coded based on all adjacent barcodes and a preset traceability code association list.
[0120] In some possible embodiments, before detecting at least one cigarette pack to be coded at the cigarette pack coding station, the process further includes:
[0121] At a preset time interval, at least one cigarette pack to be identified is scanned at the cigarette pack coding station. When the scan result of any cigarette pack to be identified shows that a cigarette pack traceability code exists, the corresponding cigarette pack traceability code is marked.
[0122] When the scan result of any cigarette pack to be identified is that no traceability code exists, the corresponding cigarette pack to be identified will be used as a cigarette pack to be coded.
[0123] In some possible embodiments, the target cigarette pack traceability code set is determined from a preset traceability code association list, including:
[0124] All processed cigarette pack traceability codes are used as a set of labeled cigarette pack traceability codes, and the similarity between the set of labeled cigarette pack traceability codes and each cigarette pack traceability code set in the preset traceability code association list is calculated.
[0125] The set of cigarette pack traceability codes corresponding to similarities exceeding a preset similarity threshold is taken as the set of adjacent cigarette pack traceability codes, and it is determined whether the set of marked cigarette pack traceability codes contains the last cigarette pack traceability code in the set of adjacent cigarette pack traceability codes.
[0126] When it is determined that the traceability code set of the marked cigarette pack exists in the last traceability code set of the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined from the preset traceability code association list based on the adjacent cigarette pack traceability code set.
[0127] In some possible embodiments, after coding all the corresponding cigarette packs to be coded according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, the process further includes:
[0128] Acquire an image of a cigarette pack containing any one of the processed cigarette packs to be coded, and identify the outline features of the traceability code from the cigarette pack image;
[0129] The traceability code contour features are preprocessed, and the image co-occurrence matrix is calculated based on the processed traceability code contour features.
[0130] Extract at least one image feature from the image co-occurrence matrix, and determine whether there is any abnormality in the processed cigarette pack to be coded based on the preset feature threshold and all image features.
[0131] If any processed cigarette pack awaiting coding is found to be abnormal, the corresponding cigarette pack awaiting coding will be rejected.
[0132] In some possible embodiments, all image features include contrast features and correlation features, and the preset feature thresholds include a first feature threshold and a second feature threshold.
[0133] Based on preset feature thresholds and all image features, determine whether the processed cigarette packs to be coded contain any anomalies, including:
[0134] When the correlation feature is higher than the first feature threshold, determine whether the contrast feature is lower than the second feature threshold;
[0135] When the contrast feature is below the second feature threshold, it is determined that the processed cigarette pack to be coded does not have any abnormalities; or
[0136] When the correlation feature is lower than or equal to the first feature threshold, it is determined that the processed cigarette pack to be coded is abnormal; or
[0137] When the contrast ratio is higher than or equal to the second feature threshold, it is determined that the processed cigarette pack to be coded has an anomaly.
[0138] In some possible embodiments, the bag to be coded is processed according to all adjacent barcodes and a preset traceability code association list, including:
[0139] Query all associated traceability codes of the target package corresponding to the target package traceability code from the preset traceability code association list, and count the total number of all associated package traceability codes.
[0140] When the number of all associated barcodes is the same as the number of all adjacent barcodes, determine whether each adjacent barcode is the same as any associated barcode.
[0141] When each adjacent barcode traceability code is the same as any associated barcode traceability code, the target bag traceability code corresponding to the target barcode traceability code is retrieved from the preset traceability code association list, and the bag to be coded is coded based on the target bag traceability code.
[0142] In some possible embodiments, after counting the number of all associated barcode traceability codes, the process further includes:
[0143] When the number of all associated barcode traceability codes is inconsistent with the number of all adjacent barcode traceability codes, the location of the missing barcode traceability code is determined among all associated barcode traceability codes;
[0144] When the missing barcode is at the last position of all associated barcodes, the package to be coded is returned to the barcode packaging station.
[0145] When the missing barcode is not the last of all associated barcodes, a pre-set warning message will be sent to the user terminal.
[0146] Please see Figure 6 , Figure 6 This illustration shows a structural diagram of another traceability code association system for tobacco production lines provided in an embodiment of this application.
[0147] like Figure 6 As shown, the traceability code association system 600 for tobacco production lines may include at least one processor 601, at least one network interface 604, user interface 603, memory 605, and at least one communication bus 602.
[0148] The communication bus 602 can be used to realize the connection and communication of the above components.
[0149] The user interface 603 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0150] The network interface 604 may include, but is not limited to, Bluetooth modules, NFC modules, Wi-Fi modules, etc.
[0151] The processor 601 may include one or more processing cores. The processor 601 connects to various parts of the traceability code association system 600 for the tobacco production line using various interfaces and lines. It executes various functions and processes data within the traceability code association system 600 by running or executing instructions, programs, code sets, or instruction sets stored in memory 605, and by calling data stored in memory 605. Optionally, the processor 601 may be implemented using at least one hardware form of DSP, FPGA, or PLA. The processor 601 may integrate one or more of the following: CPU, GPU, and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 601 and may be implemented as a separate chip.
[0152] The memory 605 may include RAM or ROM. Optionally, the memory 605 may include a non-transitory computer-readable medium. The memory 605 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 605 may also be at least one storage device located remotely from the aforementioned processor 601. Figure 6 As shown, the memory 605, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a traceability code association application for tobacco production lines.
[0153] Specifically, processor 601 can be used to call the traceability code association application for the tobacco production line stored in memory 605, and specifically perform the following operations:
[0154] When at least one cigarette pack to be coded is detected at the cigarette pack coding station, the target cigarette pack traceability code set is determined from the preset traceability code association list; wherein, the preset traceability code association list includes at least two box pack traceability codes, at least two carton pack traceability codes corresponding to each box pack traceability code, and a cigarette pack traceability code set corresponding to each carton pack traceability code;
[0155] Based on the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all corresponding cigarette packs to be coded are coded. When a bar pack containing all the processed cigarette packs to be coded is detected at the bar pack coding station, the target bar pack traceability code corresponding to the target cigarette pack traceability code set is determined from the preset traceability code association list.
[0156] Based on the target barcode traceability code, the barcode to be coded is processed, and when a bag containing the processed barcode to be coded is detected at the bag coding station, all adjacent barcode traceability codes contained in the bag to be coded are identified.
[0157] Based on all adjacent barcode traceability codes and the preset traceability code association list, the bags to be coded are coded.
[0158] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0159] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0160] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.
[0162] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0163] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
Claims
1. A traceability code association method for a tobacco production line, characterized in that, The method comprises the following steps: When at least one to-be-coded cigarette packet is detected at the cigarette packet coding station, a target cigarette packet traceability code set is determined from a preset traceability code association list; the preset traceability code association list comprises at least two case packet traceability codes, at least two strip packet traceability codes corresponding to each case packet traceability code, and a cigarette packet traceability code set corresponding to each strip packet traceability code; the determination of the target cigarette packet traceability code set from the preset traceability code association list comprises: All the processed cigarette packet traceability codes are taken as a marked cigarette packet traceability code set, and the similarity between the marked cigarette packet traceability code set and each cigarette packet traceability code set in the preset traceability code association list is calculated; The cigarette packet traceability code set corresponding to the similarity exceeding a preset similarity threshold is taken as a neighboring cigarette packet traceability code set, and it is judged whether the marked cigarette packet traceability code set contains a last cigarette packet traceability code in the neighboring cigarette packet traceability code set; When it is determined that the marked cigarette packet traceability code set contains the last cigarette packet traceability code in the neighboring cigarette packet traceability code set, the target cigarette packet traceability code set is determined in the preset traceability code association list according to the neighboring cigarette packet traceability code set; According to the number of cigarette packet traceability codes in the target cigarette packet traceability code set, coding processing is performed on all the corresponding to-be-coded cigarette packets, and when a to-be-coded strip packet containing all the processed to-be-coded cigarette packets is detected at the strip packet coding station, a target strip packet traceability code corresponding to the target cigarette packet traceability code set is determined in the preset traceability code association list; Based on the target strip packet traceability code, coding processing is performed on the to-be-coded strip packet, and when a to-be-coded case packet containing the processed to-be-coded strip packet is detected at the case packet coding station, all neighboring strip packet traceability codes contained in the to-be-coded case packet are identified; According to all the neighboring strip packet traceability codes and the preset traceability code association list, coding processing is performed on the to-be-coded case packet.
2. The method of claim 1, wherein, Before the detection of at least one to-be-coded cigarette packet at the cigarette packet coding station, the method further comprises the following steps: At preset time intervals, scanning processing is performed on at least one to-be-identified cigarette packet transported to the cigarette packet coding station, and when the scanning result of any one to-be-identified cigarette packet is that a cigarette packet traceability code exists, the corresponding cigarette packet traceability code is marked; When the scanning result of any one to-be-identified cigarette packet is that a cigarette packet traceability code does not exist, the corresponding to-be-identified cigarette packet is taken as a to-be-coded cigarette packet.
3. The method of claim 1, wherein, After the coding processing of all the to-be-coded cigarette packets according to the number of cigarette packet traceability codes in the target cigarette packet traceability code set, the method further comprises the following steps: A cigarette packet image containing any one processed to-be-coded cigarette packet is acquired, and a traceability code contour feature is identified from the cigarette packet image; The traceability code contour feature is preprocessed, and an image co-occurrence matrix is calculated according to the processed traceability code contour feature; At least one image feature is extracted from the image co-occurrence matrix, and it is judged whether the corresponding processed to-be-coded cigarette packet is abnormal according to a preset feature threshold and all the image features. When it is determined that any one of the processed tobacco packages to be coded has an abnormality, the corresponding tobacco package to be coded is rejected.
4. The method of claim 3, wherein, All the image features include a contrast feature and a correlation feature, and the preset feature threshold includes a first feature threshold and a second feature threshold. The determination of whether the processed tobacco package to be coded has an abnormality according to the preset feature threshold and all the image features includes: When the correlation feature is higher than the first feature threshold, it is determined whether the contrast feature is lower than the second feature threshold; When the contrast feature is lower than the second feature threshold, it is determined that the processed tobacco package to be coded has no abnormality; or When the correlation feature is lower than or equal to the first feature threshold, it is determined that the processed tobacco package to be coded has an abnormality; or When the contrast feature is higher than or equal to the second feature threshold, it is determined that the processed tobacco package to be coded has an abnormality.
5. The method of claim 1, wherein, The coding of the box package to be coded according to all the adjacent strip package trace codes and the preset trace code association list includes: In the preset trace code association list, all the associated strip package trace codes corresponding to the target strip package trace code are queried, and the number of all the associated strip package trace codes is counted; When the number of all the associated strip package trace codes is consistent with the number of all the adjacent strip package trace codes, it is determined whether each adjacent strip package trace code is the same as any one of the associated strip package trace codes; When each adjacent strip package trace code is the same as any one of the associated strip package trace codes, the target box package trace code corresponding to the target strip package trace code is queried in the preset trace code association list, and the box package to be coded is coded based on the target box package trace code.
6. The method of claim 5, wherein, After counting the number of all the associated strip package trace codes, it further includes: When the number of all the associated strip package trace codes is inconsistent with the number of all the adjacent strip package trace codes, the position of the missing strip package trace code is determined in all the associated strip package trace codes; When the position of the missing strip package trace code is the last position of all the associated strip package trace codes, the box package to be coded is returned to the strip package boxing station; When the position of the missing strip package trace code is not the last position of all the associated strip package trace codes, preset warning information is fed back to the user terminal.
7. A traceability code association system for a tobacco production line, characterized in that, The system is used to execute the trace code association method for a tobacco production line as claimed in any one of claims 1-6, and the system includes: A first processing module is configured to determine a target set of tobacco package trace codes from a preset trace code association list when at least one tobacco package to be coded is detected at a tobacco package coding station; wherein the preset trace code association list includes at least two box package trace codes, at least two strip package trace codes corresponding to each box package trace code, and a set of tobacco package trace codes corresponding to each strip package trace code. The first coding module is configured to code all the to-be-coded cigarette packets according to the number of cigarette traceability codes in the target cigarette traceability code set, and determine the target carton traceability code corresponding to the target cigarette traceability code set in the preset traceability code association list when a to-be-coded carton containing all the to-be-coded cigarette packets is detected at the carton coding station. The second processing module is configured to code the to-be-coded carton based on the target carton traceability code, and identify all the adjacent carton traceability codes contained in the to-be-coded carton when a to-be-coded box containing the to-be-coded carton is detected at the box coding station. The second coding module is configured to code the to-be-coded box according to all the adjacent carton traceability codes and the preset traceability code association list.
8. A traceability code association system for a tobacco production line, characterized in that, The system comprises a processor and a memory; The processor is connected with the memory; The memory is configured to store executable program codes; The processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory, so as to execute the steps of the method according to any one of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer readable storage medium stores instructions, and when the instructions run on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Equipment parameter management system and method for cigarette production line
CN110222061A
Association method and management system for cigarette packet data of single assembly line
CN112686680A