Tracing code association method and system for tobacco production line

By implementing traceability code association methods and systems on the tobacco production line, the problem of difficult to ensure the traceability code association between tobacco bags and strips, and bags and luggage is solved, and the accurate correlation between tobacco product traceability codes is achieved, avoiding market feedback risks.

CN119809666AActive Publication Date: 2025-04-11HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411923839.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-11
Estimated Expiration
2044-12-25

Smart Images

  • Figure CN119809666A_ABST
    Figure CN119809666A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of tobacco equipment, and discloses a traceability code association method and system for a tobacco production line, and the method comprises the steps: determining a target cigarette packet traceability code set from a preset traceability code association list, and carrying out the coding of all corresponding to-be-coded cigarette packets, thereby guaranteeing the coding accuracy of the cigarette packets; a target strip package traceability code is determined in a preset traceability code association list, so that the to-be-coded strip packages containing all the processed to-be-coded cigarette packages are subjected to coding processing, and then the traceability code association between the cigarette packages and the strip packages is guaranteed; when the to-be-coded luggage containing the processed to-be-coded strip bag is detected, all adjacent strip bag traceability codes contained in the to-be-coded luggage are identified, and the to-be-coded luggage is coded according to all the adjacent strip bag traceability codes and a preset traceability code association list, so that the traceability code association between the strip bag and the luggage is guaranteed, and the efficiency of code printing is improved. And the market feedback risk that the cigarette traceability code is not associated is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of tobacco equipment, and in particular relates to a traceability code association method and system for a tobacco production line. Background Art

[0002] The production process of the cigarette pack production line generally packs multiple cigarettes into cigarette packs, then packs multiple cigarette packs into strip packs (i.e. cigarette cartons), and then wraps the multiple strip packs after film wrapping in boxes and bags and puts them on pallets. Due to the current market demand for the production and traceability of tobacco products, it is necessary to assign traceability codes to cigarette packs, strip packs and boxes to ensure the legal circulation of tobacco products and prevent counterfeit and inferior products from entering the market. It also helps the government to supervise the sales of tobacco products.

[0003] Existing cigarette pack production lines can produce cigarette pack traceability codes, bar pack traceability codes and luggage traceability codes with unique identity information, and can ensure the correlation between cigarette pack traceability codes and bar pack traceability codes, as well as the correlation between bar pack traceability codes and luggage traceability codes. However, in the actual production process, due to abnormal manual operations or irregular automatic processes, the correlation between the traceability codes of cigarette packs and bar packs, as well as the correlation between the traceability codes of bar packs and luggage cannot be guaranteed, which can easily lead to market feedback risks of unrelated cigarette traceability codes. Summary of the invention

[0004] In order to solve the above-mentioned technical defects that the traceability code association between cigarette packs and strip packs, as well as the traceability code association between strip packs and luggage bags, cannot be guaranteed due to abnormal manual operation or non-standard automatic processes in the actual production process, and thus easily cause market feedback risks of unrelated cigarette traceability codes, this application proposes a traceability code association method and system for tobacco production lines, and its technical solution is as follows: In a first aspect, an embodiment of the present application provides a traceability code association method for a tobacco production line, comprising: When at least one cigarette package to be coded is detected at the cigarette package coding station, a target cigarette package traceability code set is determined from a preset traceability code association list; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each luggage traceability code, and a cigarette package traceability code set corresponding to each bar package traceability code; According to the number of cigarette package traceability codes in the target cigarette package traceability code set, all corresponding cigarette packages to be coded are coded, and when a bar package to be coded containing all processed cigarette packages to be coded is detected at the bar package coding station, the target bar package traceability code corresponding to the target cigarette package traceability code set is determined in the preset traceability code association list; Coding the barbag to be coded based on the target barbag traceability code, and when a bag to be coded containing the processed barbag to be coded is detected at the bag coding station, identifying all adjacent barbag traceability codes contained in the bag to be coded; According to all adjacent bar package traceability codes and the preset traceability code association list, the bags to be coded are coded.

[0005] In an optional solution of the first aspect, before at least one cigarette packet to be coded is detected at the cigarette packet coding station, the method further includes: Scan at least one cigarette package to be identified that is transported to the cigarette package coding station at a preset time interval, and when the scanning result of any cigarette package to be identified shows that there is a cigarette package traceability code, mark the corresponding cigarette package traceability code; When the scanning result of any cigarette package to be identified is that there is no cigarette package traceability code, the corresponding cigarette package to be identified will be used as the cigarette package to be coded.

[0006] In another optional solution of the first aspect, determining a target cigarette package traceability code set from a preset traceability code association list includes: All processed cigarette package traceability codes are used as a marked cigarette package traceability code set, and the similarity between the marked cigarette package traceability code set and each cigarette package traceability code set in the preset traceability code association list is calculated; The cigarette pack traceability code set corresponding to the similarity exceeding the preset similarity threshold is used as the adjacent cigarette pack traceability code set, and it is determined whether the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set; When it is determined that the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined in the preset traceability code association list according to the adjacent cigarette pack traceability code set.

[0007] In another optional solution of the first aspect, after coding all corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, the method further includes: Acquire a cigarette package image containing any processed cigarette package to be coded, and identify the contour features of the traceability code from the cigarette package image; Preprocessing the traceability code contour features, and calculating the image co-occurrence matrix based on the processed traceability code contour features; Extracting at least one image feature from the image co-occurrence matrix, and judging whether the processed cigarette package to be coded has an abnormality according to a preset feature threshold and all image features; When it is determined that any processed cigarette package to be coded is abnormal, the corresponding cigarette package to be coded is rejected.

[0008] In yet another optional solution of 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; According to the preset feature threshold and all image features, it is judged whether there is any abnormality in the cigarette package to be coded after the corresponding processing, including: When the correlation feature is higher than the first feature threshold, determining 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 corresponding processed cigarette package to be coded does not have any abnormality; or When the correlation feature is lower than or equal to the first feature threshold, it is determined that the corresponding processed cigarette package to be coded has an abnormality; or When the contrast ratio is higher than or equal to the second characteristic threshold, it is determined that the corresponding processed cigarette package to be coded is abnormal.

[0009] In another optional solution of the first aspect, coding is performed on the bags to be coded according to all adjacent bar package traceability codes and a preset traceability code association list, including: Query all associated bar package traceability codes corresponding to the target bar package traceability code in the preset traceability code association list, and count the number of all associated bar package traceability codes; When the number of all associated bar package traceability codes is consistent with the number of all adjacent bar package traceability codes, determine whether each adjacent bar package traceability code is the same as any associated bar package traceability code; When each adjacent bar package traceability code is the same as any associated bar package traceability code, the target bag traceability code corresponding to the target bar package traceability code is queried in the preset traceability code association list, and the bag to be coded is coded based on the target bag traceability code.

[0010] In another optional solution of the first aspect, after counting the number of all associated bar package traceability codes, the method further includes: When the number of all associated bar package traceability codes is inconsistent with the number of all adjacent bar package traceability codes, the position of the missing bar package traceability code is determined in all associated bar package traceability codes; When the position of the missing bar package traceability code is the last position of all associated bar package traceability codes, the box to be coded will be returned to the bar package box packing station; When the position of the missing bar package traceability code is not the last position of all associated bar package traceability codes, the preset warning information is fed back to the user terminal.

[0011] In a second aspect, an embodiment of the present application provides a traceability code association system for a tobacco production line, including: A first processing module is used to determine a target cigarette package traceability code set from a preset traceability code association list when at least one cigarette package to be coded is detected at the cigarette package coding station; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each luggage traceability code, and a cigarette package traceability code set corresponding to each bar package traceability code; The first coding module is used to code all the corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, and when a bar package to be coded containing all the processed cigarette packages to be coded is detected at the bar package coding station, the target bar package traceability code corresponding to the target cigarette package traceability code set is determined in a preset traceability code association list; The second processing module is used to code the bar package to be coded based on the target bar package traceability code, and when a bag to be coded containing the processed bar package to be coded is detected at the bag coding station, identify all adjacent bar package traceability codes contained in the bag to be coded; The second coding module is used to code the bags to be coded according to all adjacent bar package traceability codes and a preset traceability code association list.

[0012] In a third aspect, an embodiment of the present application further provides a traceability code association system for a tobacco production line, including a processor and a memory; The processor is connected to the memory; A memory for storing executable program codes; The processor runs the 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 a tobacco production line provided by the first aspect of the embodiment of the present application or any one of the implementation methods of the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the traceability code association method for a tobacco production line provided by the first aspect of the embodiment of the present application or any one of the implementation methods of the first aspect can be implemented.

[0014] Beneficial effects of this application: When associating the traceability codes of cigarette packs, bar packs and case packs on the tobacco production line, when at least one cigarette pack to be coded is detected at the cigarette pack coding station, a target cigarette pack traceability code set is determined from a preset traceability code association list; according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all corresponding cigarette packs to be coded are coded, and when a bar pack to be coded containing all 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 in the preset traceability code association list; the bar pack to be coded is coded based on the target bar pack traceability code, and when a case pack to be coded containing processed bar packs to be coded is detected at the case pack coding station, all adjacent bar pack traceability codes contained in the case pack to be coded are identified; according to all adjacent bar pack traceability codes and the preset traceability code association list, the case pack to be coded is coded. By determining the target cigarette pack traceability code set from the preset traceability code association list, all corresponding cigarette packs to be coded are coded, thereby ensuring the coding accuracy of the cigarette packs; then, the target bar pack traceability code is determined in the preset traceability code association list, so as to code the bar packs to be coded containing all the processed cigarette packs to be coded, thereby ensuring the traceability code association between the cigarette packs and the bar packs; then, when the boxes to be coded containing the processed bar packs to be coded are detected, the traceability codes of the adjacent bar packs contained in the boxes to be coded are identified, and the boxes to be coded are coded according to the adjacent bar pack traceability codes and the preset traceability code association list, thereby ensuring the traceability code association between the bar packs and the boxes, and effectively avoiding the market feedback risk of the cigarette traceability codes being unrelated. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 An overall flow chart of a traceability code association method for a tobacco production line provided in an embodiment of the present application; Figure 2 A schematic diagram of a tobacco production line provided in an embodiment of the present application; Figure 3 A schematic diagram of a preset traceability code association list provided in an embodiment of the present application; Figure 4 A schematic diagram of cigarette pack rejection provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of a traceability code association system for a tobacco production line provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of another traceability code association system for a tobacco production line provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0018] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0019] 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 functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0020] See also Figure 1 , Figure 1 An overall flow chart of a traceability code association method for a tobacco production line provided in an embodiment of the present application is shown.

[0021] like Figure 1 As shown, the traceability code association method for a tobacco production line may include at least the following steps: Step 102: When at least one cigarette package to be coded is detected at the cigarette package coding station, a target cigarette package traceability code set is determined from a preset traceability code association list.

[0022] In the embodiment of the present application, the traceability code association method for a tobacco production line can be, but is not limited to, applied to a control terminal of a tobacco production line. The control terminal can control the coding station to code cigarette packs, bar packs, or luggage during the production process of the tobacco production line, so that the bar pack traceability code coded on each bar pack can be associated with all cigarette pack traceability codes coded on all cigarette packs, and the luggage traceability code coded on each luggage can be associated with the bar pack traceability code coded on all bar packs. Here, the tobacco production line can at least include a cigarette pack coding station, a bar pack coding station, and a luggage coding station connected to the control terminal, the cigarette pack coding station and the bar pack coding station are connected by a cigarette pack transport device, and the bar pack coding station and the luggage coding station can be connected by a bar pack transport device.

[0023] Among them, the cigarette package coding station may include but is not limited to a cigarette package detection device and a traceability code coding device, so that when the cigarette package detection device detects that the cigarette package to be coded is transported to the designated location, the traceability code coding device will code the cigarette package to be coded, and a cigarette package rejection device may be arranged between the cigarette package coding station and the bar package coding station to reject cigarette packages with abnormal coding, thereby ensuring the recognition accuracy of the cigarette package traceability code; the bar package coding station may include but is not limited to a bar package detection device and a traceability code coding device, so that when the bar package detection device detects that the bar package to be coded is transported to the designated location, the traceability code coding device will reject the bar package to be coded. The coded bar bags are coded, and a manual operation station or a cigarette bag packaging device may be provided between the bar bag coding station and the cigarette bag coding station to pack a plurality of coded cigarette bags into the bar bags to be coded; the luggage coding station may include but is not limited to a luggage detection device and a traceability code coding device, so that when the luggage detection device detects that the luggage to be coded is transported to the designated location, the traceability code coding device will code the luggage to be coded, and a manual operation station or a bar bag packaging device may be provided between the luggage coding station and the bar bag coding station to pack a plurality of coded bar bags into the luggage to be coded.

[0024] Of course, a bar bag rejection device can also be set between the bag coding station and the bar bag coding station to reject the bar bags with abnormal coding, thereby ensuring the recognition accuracy of the bar bag traceability code.

[0025] It should be noted that the above-mentioned cigarette pack detection device, strip pack detection device, box bag detection device, traceability code coding device, cigarette pack transportation device, strip pack transportation device, cigarette pack packaging device, strip pack packaging device, cigarette pack rejection device and strip pack rejection device can all be industrial equipment well known in the art, and the cigarette pack production line may also include other industrial equipment well known in the art, which will not be elaborated here.

[0026] Also see here Figure 2 A schematic diagram of a tobacco production line provided in an embodiment of the present application is shown, such as Figure 2 As shown, the tobacco production line may at least include a cigarette pack coding station, a strip pack coding station and a box pack coding station, the cigarette pack coding station and the strip pack coding station are connected with each other via a cigarette pack transport device, the cigarette pack transport device is provided with a cigarette pack rejection device and a cigarette pack packaging device, the strip pack coding station and the box pack coding station are connected with each other via a strip pack transport device, the strip pack transport device is provided with a strip pack rejection device.

[0027] It can be understood that the control terminal can determine the target cigarette package traceability code set from the preset traceability code association list to perform coding processing on all corresponding cigarette packages to be coded, thereby ensuring the coding accuracy of the cigarette packages; then, determine the target bar package traceability code in the preset traceability code association list to perform coding processing on the bar package to be coded containing all processed cigarette packages to be coded, thereby ensuring the traceability code association between the cigarette packages and the bar packages; then, when the box to be coded containing the processed bar packages to be coded is detected, the traceability codes of the adjacent bar packages contained in the box to be coded are identified, and the box to be coded is coded according to the adjacent bar package traceability codes and the preset traceability code association list, thereby ensuring the traceability code association between the bar packages and the boxes, and effectively avoiding the market feedback risk of the cigarette traceability codes being unrelated.

[0028] Specifically, when associating the traceability codes for cigarette packs, strip packs, and luggage packs on the tobacco production line, the control terminal may, but is not limited to, detect and process the cigarette pack coding station in real time through the above-mentioned cigarette pack detection device to determine whether there are one or more cigarette packs to be coded that are transported to the designated position of the cigarette pack coding station. The cigarette packs to be coded here can be obtained by packaging other industrial equipment on the tobacco production line, and when it is detected that there are one or more cigarette packs to be coded that are transported to the designated position of the cigarette pack coding station, the target traceability code set for coding the current cigarette pack can be queried from the preset traceability code association list. Here, the preset traceability code association list may include multiple luggage traceability codes prepared in advance, multiple stripe traceability codes associated with each luggage traceability code, and a cigarette pack traceability code set associated with each stripe traceability code, and each cigarette pack traceability code set includes multiple cigarette pack traceability codes arranged in a preset order. It is understandable that the correlation between multiple cigarette pack traceability codes in the cigarette pack traceability code set, the correlation between the bar pack traceability code and the cigarette pack traceability code, and the correlation between the luggage traceability code and the bar pack traceability code can be but are not limited to being reflected in the correlation of production batch information, and are not limited to this.

[0029] Also see here Figure 3 A schematic diagram of a preset traceability code association list provided in an embodiment of the present application is shown, such as Figure 3As shown, the preset traceability code association list may include two pre-prepared luggage traceability codes, which are represented as luggage traceability code A and luggage traceability code B respectively. Among them, the bar package traceability codes associated with the luggage traceability code A are respectively expressed as bar package traceability code Aa, bar package traceability code Ab and bar package traceability code Ac, the cigarette package traceability code set associated with the bar package traceability code Aa can be expressed as cigarette package traceability code set Aaa, the cigarette package traceability code set associated with the bar package traceability code Ab can be expressed as cigarette package traceability code set Abb, and the cigarette package traceability code set associated with the bar package traceability code Ac can be expressed as cigarette package traceability code set Acc; the bar package traceability codes associated with the luggage traceability code B are respectively expressed as bar package traceability code Ba, bar package traceability code Bb and bar package traceability code Bc, the cigarette package traceability code set associated with the bar package traceability code Ba can be expressed as cigarette package traceability code set Baa, the cigarette package traceability code set associated with the bar package traceability code Bb can be expressed as cigarette package traceability code set Bbb, and the cigarette package traceability code set associated with the bar package traceability code Bc can be expressed as cigarette package traceability code set Bcc, and each cigarette package traceability code set can include but is not limited to multiple associated cigarette package traceability codes.

[0030] As an option of the embodiment of the present application, before at least one cigarette package to be coded is detected at the cigarette package coding station, the method further includes: Scan at least one cigarette package to be identified that is transported to the cigarette package coding station at a preset time interval, and when the scanning result of any cigarette package to be identified shows that there is a cigarette package traceability code, mark the corresponding cigarette package traceability code; When the scanning result of any cigarette package to be identified is that there is no cigarette package traceability code, the corresponding cigarette package to be identified will be used as the cigarette package to be coded.

[0031] Specifically, in order to ensure the recognition accuracy of the cigarette packages to be coded, before at least one cigarette package to be coded is detected at the cigarette package coding station, the control terminal can also control the above-mentioned cigarette package detection device to transport one or more cigarette packages to be identified to the cigarette package coding station in real time for scanning at a preset time interval to determine whether there is a cigarette package traceability code at a designated position on each cigarette package to be identified. It can be understood that when a cigarette package traceability code is detected at a designated position on any cigarette package to be identified, it indicates that the currently detected cigarette package to be identified is a cigarette package to be identified after coding, and then the cigarette package traceability code detected by the cigarette package to be identified can be marked, for example but not limited to marking the cigarette package traceability code set containing the cigarette package traceability code in the preset traceability code association list, which means that any cigarette package traceability code in the marked cigarette package traceability code set has been used for coding.

[0032] When it is detected that there is no cigarette pack traceability code at the designated position on any cigarette pack to be identified, it indicates that the cigarette pack to be identified currently detected is a cigarette pack to be identified that has not yet been coded, and the cigarette pack to be identified can be used as the cigarette pack to be coded, and each cigarette pack to be identified after the cigarette pack to be identified can be directly used as the cigarette pack to be coded, so as to improve the coding efficiency.

[0033] As another option of the embodiment of the present application, determining a target cigarette package traceability code set from a preset traceability code association list includes: All processed cigarette package traceability codes are used as a set of marked cigarette package traceability codes, and the similarity between the set of marked cigarette package traceability codes and each cigarette package traceability code set in the preset traceability code association list is calculated; The cigarette pack traceability code set corresponding to the similarity exceeding the preset similarity threshold is used as the adjacent cigarette pack traceability code set, and it is determined whether the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set; When it is determined that the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined in the preset traceability code association list according to the adjacent cigarette pack traceability code set.

[0034] Specifically, in order to ensure the accuracy of cigarette package coding, when the control terminal determines the target cigarette package traceability code set from the preset traceability code association list, it can integrate all the cigarette package traceability codes after marking into a marked cigarette package traceability code set, and calculate the similarity between the marked cigarette package traceability code set and each cigarette package traceability code set in the preset traceability code association list through a preset similarity algorithm or a similarity automatic calculation program. It can be understood that the similarity between the marked cigarette package traceability code set and any cigarette package traceability code set can be, but is not limited to, the sum of the maximum similarities between each marked cigarette package traceability code in the marked cigarette package traceability code set and all cigarette package traceability codes in any cigarette package traceability code set, and the similarity between the marked cigarette package traceability code and any cigarette package traceability code in the cigarette package traceability code set can be expressed as 0 or 1, that is, completely different or completely the same.

[0035] Then, after calculating all similarities, the control terminal can use the cigarette package traceability code set corresponding to the similarity exceeding the preset similarity threshold as the adjacent cigarette package traceability code set, that is, the adjacent cigarette package traceability code set includes one or more cigarette package traceability codes after marking, and can identify the last cigarette package traceability code from the adjacent cigarette package traceability code set to determine whether the last cigarette package traceability code exists in the marked cigarette package traceability code set mentioned above, that is, to determine whether the marked cigarette package traceability code set contains the last cigarette package traceability code in the adjacent cigarette package traceability code set. Here, the judgment method can be, but is not limited to, the similarity calculation method mentioned above, and is not limited to this.

[0036] It can be understood that when it is determined that the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, it means that all cigarette pack traceability codes in the adjacent cigarette pack traceability code set are used for coding processing, and then the cigarette pack traceability code set associated with the adjacent cigarette pack traceability code set can be used as the target cigarette pack traceability code set in the preset traceability code association list. The target cigarette pack traceability code set and the adjacent cigarette pack traceability code set are associated with the same luggage traceability code.

[0037] When it is determined that the marked cigarette pack traceability code set does not contain the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, it indicates that at this time 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 processing, and then refer to the above-mentioned embodiment to scan and process at least one cigarette pack to be identified that is transported to the cigarette pack coding station at a preset time interval, and 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 marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set.

[0038] Step 104: according to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all corresponding cigarette packs to be coded are coded, and when a bar pack to be coded containing all 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 in the preset traceability code association list.

[0039] Specifically, after determining the target cigarette package traceability code set, the control terminal can, but is not limited to, control the traceability code coding device to code all cigarette packages of the corresponding number in sequence according to the number of cigarette package traceability codes in the target cigarette package traceability code set, so as to ensure that each cigarette package traceability code in the target cigarette package traceability code set is coded. It is understandable that after each cigarette package to be coded is completed, the cigarette package transportation device of the tobacco production line can also transport the coded cigarette package to be coded to a manual operation station or a cigarette package packaging device to package the coded cigarette package to be coded in a bar package to be coded, and the cigarette package transportation device can transport the bar package to be coded containing multiple coded cigarette packages to be coded to the bar package coding station.

[0040] Furthermore, in the process of transporting the bar packages to be coded to the bar package coding station by the cigarette package transport device, the control terminal can also detect and process the bar package coding station in real time through the above-mentioned bar package detection device to determine whether there is a bar package to be coded containing all the cigarette packages to be coded after coding and transported to the designated position of the bar package coding station. It is understandable that when a bar package to be coded containing all the cigarette packages to be coded after coding is detected, the control terminal can query the target bar package traceability code corresponding to the target cigarette package traceability code set in the preset traceability code association list.

[0041] As another option of the embodiment of the present application, after coding all corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, the method further includes: Acquire a cigarette package image containing any processed cigarette package to be coded, and identify the contour features of the traceability code from the cigarette package image; Preprocessing the traceability code contour features, and calculating the image co-occurrence matrix based on the processed traceability code contour features; Extracting at least one image feature from the image co-occurrence matrix, and judging whether the processed cigarette package to be coded has an abnormality according to a preset feature threshold and all image features; When it is determined that any processed cigarette package to be coded is abnormal, the corresponding cigarette package to be coded is rejected.

[0042] Specifically, in order to ensure that the cigarette package traceability code on each cigarette package to be coded after the coding process is free of abnormal wrinkles and to ensure the recognition accuracy of the cigarette package traceability code, after the coding process is completed for each cigarette package to be coded, the control terminal can also photograph each cigarette package to be coded after the coding process through the cigarette package image acquisition device, so as to obtain in real time the cigarette package image containing each cigarette package to be coded after the coding process, and can identify the traceability code contour features containing the cigarette package traceability code from each cigarette package image.

[0043] Next, after identifying multiple traceability code profile features, the control terminal may also pre-process each traceability profile feature, such as but not limited to grayscale processing, denoising processing and binarization processing of each traceability profile feature in turn to ensure the accuracy of subsequent processing.

[0044] Next, after preprocessing each traceable contour feature, the control terminal may also, but is not limited to, use the greycomatrix function preset in the Scikit-image library to calculate the image co-occurrence matrix of each traceable contour feature after preprocessing, which may also be understood as a grayscale co-occurrence matrix, and identify at least one image feature from each image co-occurrence matrix. Here, the type of image feature may be, but is not limited to, at least one of a contrast feature, an energy feature, an entropy feature, a correlation feature, and a homogeneity feature.

[0045] Then, after identifying all the image features of each image co-occurrence matrix, the control terminal can also determine whether the corresponding cigarette package to be coded after coding has abnormal wrinkles according to the preset feature threshold and all image features, and when it is determined that any cigarette package to be coded after coding has abnormal wrinkles, the cigarette package rejection device is controlled to reject the corresponding cigarette package to be coded. It is understandable that when it is determined that any cigarette package to be coded after coding has no abnormal wrinkles, the cigarette package transportation device can transport the cigarette package to be coded normally to the manual operation station or the cigarette package packaging device.

[0046] Also see here Figure 4 A schematic diagram of a cigarette pack rejection method provided in an embodiment of the present application is shown, as shown in FIG. Figure 4 As shown, when the tobacco production line is rejecting cigarette packs, a cigarette pack image acquisition device, a rejection storage box, a rejection air nozzle and a rejection detection switch may be provided. The cigarette pack image acquisition device may feed back the collected cigarette pack image containing the cigarette pack to the control terminal, so that when the control terminal detects that there is an abnormality in the cigarette pack, the rejection detection switch is controlled to be in an operating state, and when the abnormal cigarette pack is transported to a designated location, the rejection air nozzle pushes the abnormal cigarette pack into the rejection storage box.

[0047] As another option of the embodiment of the present 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; According to the preset feature threshold and all image features, it is judged whether there is any abnormality in the cigarette package to be coded after the corresponding processing, including: When the correlation feature is higher than the first feature threshold, determining 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 corresponding processed cigarette package to be coded does not have any abnormality; or When the correlation feature is lower than or equal to the first feature threshold, it is determined that the corresponding processed cigarette package to be coded has an abnormality; or When the contrast ratio is higher than or equal to the second characteristic threshold, it is determined that the corresponding processed cigarette package to be coded is abnormal.

[0048] Specifically, taking all image features as contrast features and correlation features as an example, when judging whether there is an abnormality in the cigarette package to be coded after coding, the control terminal can judge the size between the correlation feature and the first feature threshold used to characterize the contrast. Since wrinkles will destroy the linear relationship between the pixels of the cigarette package traceability code, that is, cause the correlation to decrease, when the correlation feature is higher than the first feature threshold, it indicates that the correlation of the corresponding cigarette package traceability code is normal, and then the size between the contrast feature and the second feature threshold used to characterize the contrast can be judged.

[0049] Since wrinkles will cause uneven changes in the grayscale value of the package traceability code, that is, the contrast will increase simultaneously, when the contrast feature is lower than the second feature threshold, it can be determined that there is no abnormality in the cigarette package to be coded after the corresponding coding process. It can be understood that when the correlation feature is lower than or equal to the first feature threshold, or when the contrast feature is higher than or equal to the second feature threshold, it can be indicated that there is an abnormality in the cigarette package to be coded after the corresponding coding process, and then the cigarette package to be coded after the corresponding coding process can be eliminated.

[0050] It should be noted that after any cigarette pack to be coded is removed after coding, the control terminal can also remind the operator to replenish the cigarette pack in time to avoid the traceability code between the cigarette pack and the strip pack being unrelated.

[0051] Step 106: Coding the bar package to be coded based on the target bar package traceability code, and when a case to be coded containing the processed bar package to be coded is detected at the case coding station, identifying all adjacent bar package traceability codes contained in the case to be coded.

[0052] Specifically, after determining the target bar package traceability code, the control terminal can, but is not limited to, control the traceability code coding device to code the bar package to be coded, and the bar package transportation device transports the bar package to be coded after coding to the bag coding station. It can be understood that after each bar package to be coded is completed, the bar package transportation device of the tobacco production line can also transport the coded cigarette package to be coded to the manual operation station or the bar package packaging device to package the coded bar package to be coded in the bag to be coded, and the bar package transportation device can transport the bag to be coded packed with multiple coded bar packages to be coded to the bag coding station.

[0053] Furthermore, in order to ensure the correlation between the traceability codes of the bar packages and the luggage, the luggage to be coded mentioned above, which is packed with multiple bar packages to be coded after coding, can be provided with a luggage opening (or not sealed), that is, the control terminal can control the luggage detection device mentioned above to identify and process all adjacent bar package traceability codes contained in the luggage to be coded through the luggage opening. Here, the adjacent bar package traceability code can be understood as all other bar package traceability codes in the luggage to be coded except the target bar package traceability code, and the adjacent bar package traceability code and the target bar package traceability code are both associated with the same luggage traceability code.

[0054] Step 108: Coding is performed on the bags to be coded according to all adjacent barcode traceability codes and a preset traceability code association list.

[0055] Specifically, after identifying all adjacent bar packet traceability codes, the control terminal can, but is not limited to, query all associated bar packet traceability codes corresponding to the target bar packet traceability code in a preset traceability code association list, and count the number of all associated bar packet traceability codes.

[0056] It is understandable that when the number of all associated bar package traceability codes is consistent with the number of all adjacent bar package traceability codes, it indicates that the number of all bar package traceability codes in the to-be-coded luggage meets the association requirement, and then it can be determined whether each adjacent bar package traceability code is the same as any associated bar package traceability code. Here, the method of determining the same can refer to the similarity calculation method mentioned in the above embodiment, and is not limited thereto.

[0057] Furthermore, when it is determined that each adjacent bar package traceability code is the same as any associated bar package traceability code, it indicates that all bar package traceability codes in the bags to be coded meet the traceability code association requirements, and then the target bag traceability code corresponding to the target bar package traceability code can be queried in the preset traceability code association list, and the traceability code coding device can be controlled to code the bags to be coded, and the coded bags to be coded can also be transported to the pallet through other industrial equipment in the tobacco production line to facilitate the normal progress of subsequent processes.

[0058] It can also be understood that when the number of all associated bar package traceability codes is inconsistent with the number of all adjacent bar package traceability codes (generally speaking, the number of all associated bar package traceability codes is greater than the number of all adjacent bar package traceability codes), it indicates that there is an operation abnormality in the above-mentioned manual operation station or bar package packaging device. Then, the control terminal can determine the position of the missing bar package traceability code among all adjacent bar package traceability codes according to the arrangement order of all associated bar package traceability codes, that is, the reason for the abnormality of the bag to be coded is determined by the position of the missing bar package traceability code.

[0059] When the position of the missing bar package traceability code is the last position of all associated bar package traceability codes, it indicates that there may be abnormalities such as the luggage is transported too fast or the bar package is packed slowly. Then the control terminal can return the luggage to be coded to the bar package packing station so that the operator can put the bar package corresponding to the missing bar package traceability code into the luggage to be coded.

[0060] When the position of the missing bar package traceability code is not the last position of all associated bar package traceability codes, it indicates that there may be abnormalities such as missing bar packages, and the control terminal can then feed back the preset warning information to the user terminal to remind the operator to promptly check and handle the tobacco production line.

[0061] See also Figure 5 , Figure 5 A structural schematic diagram of a traceability code association system for a tobacco production line provided in an embodiment of the present application is shown.

[0062] like Figure 5 As shown, the traceability code association system for a tobacco production line 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: The first processing module 501 is used to determine a target cigarette package traceability code set from a preset traceability code association list when at least one cigarette package to be coded is detected at the cigarette package coding station; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each luggage traceability code, and a cigarette package traceability code set corresponding to each bar package traceability code; The first coding module 502 is used to code all the corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, and when a bar package to be coded containing all the processed cigarette packages to be coded is detected at the bar package coding station, the target bar package traceability code corresponding to the target cigarette package traceability code set is determined in a preset traceability code association list; The second processing module 503 is used to code the bar package to be coded based on the target bar package traceability code, and when a bag to be coded containing the processed bar package to be coded is detected at the bag coding station, identify all adjacent bar package traceability codes contained in the bag to be coded; The second coding module 504 is used to code the bags to be coded according to all adjacent bag traceability codes and a preset traceability code association list.

[0063] In some possible embodiments, before at least one cigarette package to be coded is detected at the cigarette package coding station, the method further includes: Scan at least one cigarette package to be identified that is transported to the cigarette package coding station at a preset time interval, and when the scanning result of any cigarette package to be identified shows that there is a cigarette package traceability code, mark the corresponding cigarette package traceability code; When the scanning result of any cigarette package to be identified is that there is no cigarette package traceability code, the corresponding cigarette package to be identified will be used as the cigarette package to be coded.

[0064] In some possible embodiments, determining a target cigarette package traceability code set from a preset traceability code association list includes: All processed cigarette package traceability codes are used as a marked cigarette package traceability code set, and the similarity between the marked cigarette package traceability code set and each cigarette package traceability code set in the preset traceability code association list is calculated; The cigarette pack traceability code set corresponding to the similarity exceeding the preset similarity threshold is used as the adjacent cigarette pack traceability code set, and it is determined whether the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set; When it is determined that the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined in the preset traceability code association list according to the adjacent cigarette pack traceability code set.

[0065] In some possible embodiments, after coding all corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, the method further includes: Acquire a cigarette package image containing any processed cigarette package to be coded, and identify the contour features of the traceability code from the cigarette package image; Preprocessing the traceability code contour features, and calculating the image co-occurrence matrix based on the processed traceability code contour features; Extracting at least one image feature from the image co-occurrence matrix, and judging whether the processed cigarette package to be coded has an abnormality according to a preset feature threshold and all image features; When it is determined that any processed cigarette package to be coded is abnormal, the corresponding cigarette package to be coded is rejected.

[0066] 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; According to the preset feature threshold and all image features, it is judged whether there is any abnormality in the cigarette package to be coded after the corresponding processing, including: When the correlation feature is higher than the first feature threshold, determining 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 corresponding processed cigarette package to be coded does not have any abnormality; or When the correlation feature is lower than or equal to the first feature threshold, it is determined that the corresponding processed cigarette package to be coded has an abnormality; or When the contrast ratio is higher than or equal to the second characteristic threshold, it is determined that the corresponding processed cigarette package to be coded is abnormal.

[0067] In some possible embodiments, the coding process is performed on the bags to be coded according to all adjacent bar package traceability codes and a preset traceability code association list, including: Query all associated bar package traceability codes corresponding to the target bar package traceability code in the preset traceability code association list, and count the number of all associated bar package traceability codes; When the number of all associated bar package traceability codes is consistent with the number of all adjacent bar package traceability codes, determine whether each adjacent bar package traceability code is the same as any associated bar package traceability code; When each adjacent bar package traceability code is the same as any associated bar package traceability code, the target bag traceability code corresponding to the target bar package traceability code is queried in the preset traceability code association list, and the bag to be coded is coded based on the target bag traceability code.

[0068] In some possible embodiments, after counting the number of all associated bar package traceability codes, the following further includes: When the number of all associated bar package traceability codes is inconsistent with the number of all adjacent bar package traceability codes, the position of the missing bar package traceability code is determined in all associated bar package traceability codes; When the position of the missing bar package traceability code is the last position of all associated bar package traceability codes, the box to be coded will be returned to the bar package box packing station; When the position of the missing bar package traceability code is not the last position of all associated bar package traceability codes, the preset warning information is fed back to the user terminal.

[0069] See also Figure 6 , Figure 6 A structural schematic diagram of another traceability code association system for a tobacco production line provided in an embodiment of the present application is shown.

[0070] like Figure 6 As shown, the traceability code association system 600 for a tobacco production line may include at least one processor 601 , at least one network interface 604 , a user interface 603 , a memory 605 , and at least one communication bus 602 .

[0071] The communication bus 602 may be used to realize the connection and communication among the above-mentioned components.

[0072] The user interface 603 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0073] The network interface 604 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0074] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect various parts in the traceability code association system 600 for tobacco production lines, and executes various functions and processes data of the traceability code association system 600 for tobacco production lines by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 601 can integrate one or more combinations of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application program; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented by a single chip.

[0075] The memory 605 may include a RAM or a ROM. Optionally, the memory 605 includes a non-transitory computer-readable medium. The memory 605 may be used to store instructions, programs, codes, 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 a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 605 may optionally be at least one storage device located away from the aforementioned processor 601. As Figure 6 As shown, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a traceability code associated application for a tobacco production line.

[0076] Specifically, the processor 601 may be used to call the traceability code associated application for the tobacco production line stored in the memory 605, and specifically perform the following operations: When at least one cigarette package to be coded is detected at the cigarette package coding station, a target cigarette package traceability code set is determined from a preset traceability code association list; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each luggage traceability code, and a cigarette package traceability code set corresponding to each bar package traceability code; According to the number of cigarette package traceability codes in the target cigarette package traceability code set, all corresponding cigarette packages to be coded are coded, and when a bar package to be coded containing all processed cigarette packages to be coded is detected at the bar package coding station, the target bar package traceability code corresponding to the target cigarette package traceability code set is determined in the preset traceability code association list; Coding the barbag to be coded based on the target barbag traceability code, and when a bag to be coded containing the processed barbag to be coded is detected at the bag coding station, identifying all adjacent barbag traceability codes contained in the bag to be coded; According to all adjacent bar package traceability codes and the preset traceability code association list, the bags to be coded are coded.

[0077] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0078] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0079] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0080] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

Claims

1. A traceability code association method for a tobacco production line, characterized in that: include: When at least one cigarette package to be coded is detected at the cigarette package coding station, a target cigarette package traceability code set is determined from a preset traceability code association list; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each of the luggage traceability codes, and a cigarette package traceability code set corresponding to each of the bar package traceability codes; According to the number of cigarette pack traceability codes in the target cigarette pack traceability code set, all the corresponding cigarette packs to be coded are coded, and when a bar pack to be coded 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 in the preset traceability code association list; The bar package to be coded is coded based on the target bar package traceability code, and when a bag to be coded containing the processed bar package to be coded is detected at the bag coding station, all adjacent bar package traceability codes contained in the bag to be coded are identified; The bags to be coded are coded according to all the adjacent bar package traceability codes and the preset traceability code association list.

2. The method according to claim 1, characterized in that Before at least one cigarette package to be coded is detected at the cigarette package coding station, the method further includes: Scan at least one cigarette package to be identified that is transported to the cigarette package coding station at a preset time interval, and when the scanning result of any of the cigarette packages to be identified shows that there is a cigarette package traceability code, mark the corresponding cigarette package traceability code; When the scanning result of any of the cigarette packages to be identified is that there is no cigarette package traceability code, the corresponding cigarette package to be identified is used as the cigarette package to be coded.

3. The method according to claim 2, characterized in that The step of determining a target cigarette package traceability code set from a preset traceability code association list includes: All processed cigarette package traceability codes are used as a marked cigarette package traceability code set, and the similarity between the marked cigarette package traceability code set and each cigarette package traceability code set in the preset traceability code association list is calculated; The cigarette pack traceability code set corresponding to the similarity exceeding the preset similarity threshold is used as the adjacent cigarette pack traceability code set, and it is determined whether the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set; When it is determined that the marked cigarette pack traceability code set contains the last cigarette pack traceability code in the adjacent cigarette pack traceability code set, the target cigarette pack traceability code set is determined in the preset traceability code association list according to the adjacent cigarette pack traceability code set.

4. The method according to claim 1, characterized in that: After coding all the corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, the method further includes: Acquire a cigarette package image containing any one of the processed cigarette packages to be coded, and identify the contour features of the traceability code from the cigarette package image; Preprocessing the traceability code contour features, and calculating an image co-occurrence matrix based on the processed traceability code contour features; Extracting at least one image feature from the image co-occurrence matrix, and judging whether the processed cigarette package to be coded has an abnormality according to a preset feature threshold and all the image features; When it is determined that any of the processed cigarette packets to be coded is abnormal, the corresponding cigarette packet to be coded is rejected.

5. The method according to claim 4, characterized in that All of the image features include contrast features and correlation features, and the preset feature thresholds include a first feature threshold and a second feature threshold; The step of judging whether the processed cigarette 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, determining 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 cigarette package to be coded after the corresponding processing has no abnormality; or When the correlation feature is lower than or equal to the first feature threshold, it is determined that the processed cigarette 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 cigarette package to be coded after the corresponding processing is abnormal.

6. The method according to claim 1, characterized in that The coding process of the to-be-coded luggage according to all the adjacent bag traceability codes and the preset traceability code association list includes: Querying all associated bar package traceability codes corresponding to the target bar package traceability code in the preset traceability code association list, and counting the number of all associated bar package traceability codes; When the number of all the associated bar package traceability codes is consistent with the number of all the adjacent bar package traceability codes, determining whether each of the adjacent bar package traceability codes is the same as any of the associated bar package traceability codes; When each of the adjacent bar package traceability codes is the same as any of the associated bar package traceability codes, the target bag traceability code corresponding to the target bar package traceability code is queried in the preset traceability code association list, and the bag to be coded is coded based on the target bag traceability code.

7. The method according to claim 6, characterized in that After counting the number of all the associated bar package traceability codes, the method further includes: When the number of all the associated bar package traceability codes is inconsistent with the number of all the adjacent bar package traceability codes, determining the position of the missing bar package traceability code in all the associated bar package traceability codes; When the position of the missing bar package traceability code is the last position of all the associated bar package traceability codes, the box to be coded is returned to the bar package box packing station; When the position of the missing bar package traceability code is not the last position of all the associated bar package traceability codes, the preset warning information is fed back to the user terminal.

8. A traceability code association system for a tobacco production line, characterized in that: include: A first processing module is used to determine a target cigarette package traceability code set from a preset traceability code association list when at least one cigarette package to be coded is detected at the cigarette package coding station; wherein the preset traceability code association list includes at least two luggage traceability codes, at least two bar package traceability codes corresponding to each of the luggage traceability codes, and a cigarette package traceability code set corresponding to each of the bar package traceability codes; A first coding module is used to code all the corresponding cigarette packages to be coded according to the number of cigarette package traceability codes in the target cigarette package traceability code set, and when a bar package to be coded containing all the processed cigarette packages to be coded is detected at the bar package coding station, the target bar package traceability code corresponding to the target cigarette package traceability code set is determined in the preset traceability code association list; A second processing module is used to code the bar bag to be coded based on the target bar bag traceability code, and when a bag to be coded containing the processed bar bag to be coded is detected at the bag coding station, identify all adjacent bar bag traceability codes contained in the bag to be coded; The second coding module is used to code the bags to be coded according to all the adjacent bar package traceability codes and the preset traceability code association list.

9. A traceability code association system for a tobacco production line, characterized in that: including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cigarette online coding system and method

    CN110210593A

  • Equipment parameter management system and method for cigarette production line

    CN110222061A

  • Patient main index data merging method and device based on similarity

    CN111785341A

  • Parallel assembly line cigarette packet data association method

    CN112633902A

  • Association method and management system for cigarette packet data of single assembly line

    CN112686680A