A method, system, medium and program product for automatic sampling of a piece of tobacco

CN122735751APending Publication Date: 2026-09-11HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610851196.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-12
Publication Date
2026-09-11

AI Technical Summary

Technical Problem

[0003]本发明提供了一种件烟自动抽检方法、系统、介质及程序产品,以解决现有件烟抽检严重依赖人工、抽检效率低,且易出现错误抽检的问题

Benefits of technology

[0009] The technical solution of this invention involves identifying the length of the cigarette code when a cigarette sorting and identification request is received, thereby determining the target brand and the target carton sealing machine number based on the cigarette code length, and then verifying the target brand and the target carton sealing machine number according to the cigarette sampling inspection task. When the cigarette is verified to be a cigarette to be inspected, the cigarette to be inspected is transported to the sampling port. This solution can specifically identify the brand and sealing machine number carried by the codes on cigarette cartons of different lengths, maximizing the variety of cigarette cartons that can be automatically inspected. Based on the cigarette carton inspection task, it performs dual-dimensional verification of cigarette cartons by using the brand that uniquely identifies the cigarette category and the sealing machine number that indicates the production source, identifying the cigarette cartons that need to be inspected and then transmitting them to the inspection port. This achieves automated inspection of multiple types of cigarette cartons, reduces the error rate of manual operation, and solves the problems of existing cigarette carton inspections that rely heavily on manual labor, have low inspection efficiency, and are prone to erroneous inspections. It can improve the efficiency of cigarette carton inspections, reduce the strong dependence on manual labor, and also reduce the erroneous inspection rate of cigarette cartons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122735751A_ABST
    Figure CN122735751A_ABST
Patent Text Reader

Abstract

The application discloses a kind of piece cigarette automatic sampling inspection method, system, medium and program product, it is related to sampling inspection field.Piece cigarette automatic sampling inspection method includes: when receiving piece cigarette sorting identification request, the piece cigarette code length of piece cigarette is identified;According to the piece cigarette code length of piece cigarette, determine target brand and target carton sealing machine number;According to piece cigarette sampling inspection task, the target brand and target carton sealing machine number are verified, and when verifying that piece cigarette is to be sampled and inspected piece cigarette, to be sampled and inspected piece cigarette is handled to sampling inspection port.The technical scheme of the embodiment of the application can improve piece cigarette sampling inspection efficiency, get rid of strong dependence on artificial, and can also reduce piece cigarette error sampling inspection rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sampling inspection technology, and in particular to an automatic sampling inspection method, system, medium, and program product for cigarettes. Background Technology

[0002] With the continuous improvement of automation and informatization in the tobacco industry, the quality control of cigarette cartons has become increasingly stringent, and random inspection of cigarette cartons is an important means of quality control. However, traditional inspection methods usually rely on manual operation, such as setting inspection tasks, and the extraction and verification of cigarette cartons, which makes the efficiency of cigarette carton inspection low and prone to erroneous inspections. Summary of the Invention

[0003] This invention provides an automatic sampling inspection method, system, medium, and program product for cigarettes, to solve the problems of existing cigarette sampling inspections being heavily reliant on manual labor, having low sampling efficiency, and being prone to erroneous sampling.

[0004] According to one aspect of the present invention, an automatic sampling inspection method for cigarettes is provided, comprising: Upon receiving a request to sort and identify cigarette packs, identify the length of the cigarette pack code. The target brand and target carton sealing machine number are determined based on the length of the cigarette pack code. According to the cigarette sampling inspection task, the target brand and target carton sealing machine number are verified, and when the cigarette is verified to be the cigarette to be inspected, the cigarette to be inspected is moved to the sampling port.

[0005] According to another aspect of the present invention, an automatic cigarette sampling inspection device is provided, comprising: The code length recognition module is used to identify the code length of a pack of cigarettes when a pack of cigarettes is received for sorting and recognition. The brand and carton number determination module is used to determine the target brand and target carton sealing machine number based on the length of the cigarette code in the carton; The verification and handling module is used to verify the target brand and target carton sealing machine number according to the cigarette sampling inspection task, and when the cigarette is verified to be the cigarette to be inspected, it is handled to the sampling port.

[0006] According to another aspect of the present invention, a warehouse control system is provided, the warehouse control system comprising: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the automatic cigarette sampling method according to any embodiment of the present invention.

[0007] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the automatic cigarette sampling method according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the automatic cigarette sampling inspection method according to any embodiment of the present invention.

[0009] The technical solution of this invention involves identifying the length of the cigarette code when a cigarette sorting and identification request is received, thereby determining the target brand and the target carton sealing machine number based on the cigarette code length, and then verifying the target brand and the target carton sealing machine number according to the cigarette sampling inspection task. When the cigarette is verified to be a cigarette to be inspected, the cigarette to be inspected is transported to the sampling port. This solution can specifically identify the brand and sealing machine number carried by the codes on cigarette cartons of different lengths, maximizing the variety of cigarette cartons that can be automatically inspected. Based on the cigarette carton inspection task, it performs dual-dimensional verification of cigarette cartons by using the brand that uniquely identifies the cigarette category and the sealing machine number that indicates the production source, identifying the cigarette cartons that need to be inspected and then transmitting them to the inspection port. This achieves automated inspection of multiple types of cigarette cartons, reduces the error rate of manual operation, and solves the problems of existing cigarette carton inspections that rely heavily on manual labor, have low inspection efficiency, and are prone to erroneous inspections. It can improve the efficiency of cigarette carton inspections, reduce the strong dependence on manual labor, and also reduce the erroneous inspection rate of cigarette cartons.

[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart of an automatic sampling inspection method for cigarettes provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of an automatic sampling inspection method for cigarettes provided in Embodiment 2 of the present invention; Figure 3 This is a flowchart of a sampling, sorting, and shelving process provided in Embodiment 2 of the present invention; Figure 4This is a schematic diagram of the structure of an automatic cigarette sampling inspection device provided in Embodiment 3 of the present invention; Figure 5 A schematic diagram of a warehouse control system that can be used to implement an embodiment of the present invention is shown. Detailed Implementation

[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0014] It should be noted that the terms "current," "target," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0015] Example 1 Figure 1 This is a flowchart of an automatic sampling inspection method for cigarette cartons provided in Embodiment 1 of the present invention. This embodiment is applicable to the fully automatic sampling inspection of multiple types of cigarette cartons. The method can be executed by an automatic cigarette carton sampling inspection device, which can be implemented in hardware and / or software and can be configured in a warehouse control system. Figure 1 As shown, the method includes: Step 110: Upon receiving a request to sort and identify cigarette packs, identify the length of the cigarette pack code.

[0016] The cigarette sorting and identification request can be a request to identify cigarettes that have passed through the main cigarette sorting gate. The cigarette code length can be the number of digits in the cigarette identification barcode.

[0017] In this embodiment of the invention, all cigarette cartons submitted to the line will pass through the main cigarette sorting gate, meaning that at least one type of cigarette carton will pass through the main cigarette sorting gate within a continuous period of time. When a carton of cigarettes passes through the main cigarette sorting gate, the main cigarette sorting gate will send a cigarette sorting identification request, which will instruct the warehouse control system to identify the length of the cigarette identification barcode of the passing carton, as captured by the camera at the main cigarette sorting gate.

[0018] Step 120: Determine the target brand and target carton sealing machine number based on the length of the cigarette pack code.

[0019] The target brand number can be the brand number of the cigarettes passed through the main sorting gate. The target carton sealing machine number can be the carton sealing machine number of the cigarettes passed through the main sorting gate. The carton sealing machine number can be understood as a unique source identifier for the cigarettes in the packaging process, used for traceability, sorting, quality control, and other end-to-end management. The brand number can be a unique code for the brand and specifications of the cigarettes.

[0020] In this embodiment of the invention, a query strategy can be used to look up the brand and sealing machine number corresponding to different brand codes based on the length of the cigarette code. The target brand and target sealing machine number of the cigarette can then be determined according to the brand and sealing machine number query strategy.

[0021] Step 130: According to the cigarette sampling inspection task, verify the target brand and the target carton sealing machine number, and when the cigarette is verified to be the cigarette to be inspected, move the cigarette to be inspected to the sampling port.

[0022] The task of sampling cigarettes can be a task of sampling cigarettes in cartons. This task can include the type of cigarettes to be sampled, the sampling time, and the quantity to be sampled. The cigarettes to be sampled can be the cartons of cigarettes that need to be sampled. The sampling port can be the sorting port for collecting the cigarettes to be sampled.

[0023] In this embodiment of the invention, based on the cigarette sampling inspection task, it can be confirmed whether the target brand and target sealing machine number of each cigarette passing through the cigarette sorting main channel match the brand and sealing machine number of the cigarette to be sampled. If the target brand and target sealing machine number of the current cigarette passing through the cigarette sorting main channel match the brand and sealing machine number of the cigarette to be sampled, then the current cigarette is determined to be a cigarette to be sampled, and the cigarette to be sampled is transported to the sampling port according to the preset control logic. If the target brand and target sealing machine number of the current cigarette passing through the cigarette sorting main channel do not match the brand and sealing machine number of the cigarette to be sampled, then the current cigarette is not a cigarette to be sampled, and the non-sampling cigarette is transferred to the downstream normal sorting port.

[0024] The technical solution of this invention involves identifying the length of the cigarette code when a cigarette sorting and identification request is received, thereby determining the target brand and the target carton sealing machine number based on the cigarette code length, and then verifying the target brand and the target carton sealing machine number according to the cigarette sampling inspection task. When the cigarette is verified to be a cigarette to be inspected, the cigarette to be inspected is transported to the sampling port. This solution can specifically identify the brand and sealing machine number carried by the codes on cigarette cartons of different lengths, maximizing the variety of cigarette cartons that can be automatically inspected. Based on the cigarette carton inspection task, it performs dual-dimensional verification of cigarette cartons by using the brand that uniquely identifies the cigarette category and the sealing machine number that indicates the production source, identifying the cigarette cartons that need to be inspected and then transmitting them to the inspection port. This achieves automated inspection of multiple types of cigarette cartons, reduces the error rate of manual operation, and solves the problems of existing cigarette carton inspections that rely heavily on manual labor, have low inspection efficiency, and are prone to erroneous inspections. It can improve the efficiency of cigarette carton inspections, reduce the strong dependence on manual labor, and also reduce the erroneous inspection rate of cigarette cartons.

[0025] Example 2 Figure 2 This is a flowchart of an automatic cigarette sampling inspection method according to Embodiment 2 of the present invention. This embodiment is based on the above embodiment and provides specific optional implementation methods for generating cigarette sampling inspection tasks. Figure 2 As shown, the method includes: Step 210: Analyze the cigarette sampling inspection work order through the warehouse management system, determine the key data of the cigarettes to be sampled, and generate the cigarette sampling inspection task based on the key data of the cigarettes to be sampled.

[0026] The cigarette sampling inspection work order can be an automatically generated system document or a manually initiated document for sampling and inspecting cigarette cartons. The work order may include the sampling period, brand, quantity, and sealing machine number. Key data for the cigarette cartons to be inspected may include the sampling time interval and the total number of cartons sampled.

[0027] In this embodiment of the invention, the production management system can send a cigarette sampling inspection work order to the warehouse management system. The warehouse management system can parse the cigarette sampling inspection work order to obtain the sampling time point and the total number of cigarettes to be sampled for the required sampling type. Based on the sampling time point, sampling duration and total number of cigarettes to be sampled for the required sampling type, the system determines the key data of the cigarettes to be sampled. Based on the key data of the cigarettes to be sampled, the system generates a cigarette sampling inspection task for the corresponding sampling type according to a preset program script.

[0028] Step 220: Upon receiving a request to sort and identify cigarette packs, identify the length of the cigarette pack code.

[0029] Step 230: Determine the target brand and target carton sealing machine number based on the length of the cigarette pack code.

[0030] In an optional embodiment of the present invention, determining the target brand and the target carton sealing machine number based on the length of the cigarette pack code may include: when the length of the cigarette pack code is the first digit, using the cigarette pack brand as the target brand and the packaging machine number that produces the cigarette pack as the target carton sealing machine number; when the length of the cigarette pack code is the second digit, querying the target brand and the target carton sealing machine number from the No. 1 project database.

[0031] The first digit can be the length of the quality traceability code for each cigarette. The second digit can be the length of the "Project Number" code. The Project Number database can be the database of the cigarette production and operation decision-making management system. The Project Number code can be a nationally unified identification code assigned to each cigarette by the cigarette production and operation decision-making management system.

[0032] In this embodiment of the invention, it can be determined whether the length of the cigarette code in a carton is the first or second digit. If the length is the first digit, the brand of the cigarette and the machine number of the packaging box used to produce the cigarette are retrieved from the warehouse control system. The brand of the cigarette is then used as the target brand, and the machine number of the packaging box used to produce the cigarette is used as the target sealing machine number. If the length is the second digit, the target brand and the target sealing machine number are retrieved from the No. 1 project database.

[0033] Step 240: According to the cigarette sampling inspection task, verify the target brand and target carton sealing machine number, and when the cigarette is verified to be a sample to be inspected, move the sample to be inspected to the sampling port.

[0034] In an optional embodiment of the present invention, the verification of the target brand and the target carton sealing machine number according to the cigarette sampling inspection task may include: when the cigarette sampling inspection task involves multiple cigarettes, the target brand and the target carton sealing machine number corresponding to the cigarettes passing through the cigarette sorting main channel are verified in a distributed manner.

[0035] In this embodiment of the invention, if there are multiple cigarette sampling inspection tasks, the target brand number and target sealing machine number corresponding to each cigarette passing through the cigarette sorting main channel can be verified in a distributed manner based on the multiple cigarette sampling inspection tasks, that is, the multiple cigarette sampling inspection tasks can be executed in parallel.

[0036] Optionally, multiple cigarette sampling inspection tasks can be executed in parallel. Specifically, this can be achieved by verifying the target brand and the target carton sealing machine number, thereby identifying the cigarettes to be sampled for each cigarette sampling inspection task in parallel.

[0037] In an optional embodiment of the present invention, after verifying the target brand and the target carton sealing machine number according to the cigarette sampling inspection task, the method may further include: when it is verified that the cigarette is not a cigarette to be sampled, the cigarette is transmitted to the target cigarette sorting channel according to the cigarette association data of the cigarette.

[0038] Among them, non-sampled cigarette packs can be cigarette packs that do not require sampling and can be transported normally. Cigarette pack association data can be data describing the attributes of the cigarette packs. Cigarette pack association data may include the cigarette brand and batch number, etc. The target cigarette pack sorting channel can be the sorting channel for cigarette packs that do not require sampling. Optionally, different categories of non-sampled cigarette packs may correspond to different target cigarette pack sorting channels; that is, non-sampled cigarette packs of the same category may be transported to a single target cigarette pack sorting channel.

[0039] In this embodiment of the invention, if the cigarette is found to be a non-sampling cigarette, the cigarette association data of the cigarette is obtained, and the category of the current non-sampling cigarette is determined based on the cigarette association data, and then the cigarette is transferred to the target cigarette sorting channel based on the category of the current non-sampling cigarette.

[0040] In an optional embodiment of the present invention, distributed verification of the target brand number and target carton sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate may include: determining the cigarette sampling time interval and the total number of cigarettes sampled for each cigarette sampling task; and performing distributed verification of the target brand number and target carton sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate according to the cigarette sampling time interval and the total number of cigarettes sampled for each cigarette sampling task.

[0041] In this embodiment of the invention, each cigarette sampling task can be analyzed to obtain the sampling time interval and the total number of cigarettes sampled for each task. Thus, when the number of sampled cigarettes has not reached the total number of cigarettes sampled and the sampling time interval does not exceed the latest sampling time interval of the corresponding cigarette sampling task, the target brand number and target carton sealing machine number of the cigarettes passing through the cigarette sorting gate are verified to achieve distributed verification of multiple cigarette sampling tasks, that is, to execute multiple cigarette sampling tasks in parallel.

[0042] In an optional embodiment of the present invention, distributed verification is performed on the target brand and target sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate, according to the cigarette sampling time interval and the total number of cigarettes sampled for each cigarette sampling task. This may include: when the number of cigarettes sampled for the current cigarette sampling task is less than the corresponding total number of cigarettes sampled, and no cigarettes matching the current cigarette sampling task are detected and verified within the current cigarette sampling time interval, updating the number of cigarettes sampled for the adjacent target cigarette sampling time interval; and within the adjacent target cigarette sampling time interval, distributed verification is performed on the target brand and target sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate, according to the number of cigarettes sampled for the adjacent target cigarette sampling time interval.

[0043] The target adjacent cigarette sampling time interval can be the next adjacent cigarette sampling time interval after the current cigarette sampling time interval. The current cigarette sampling time interval and the target adjacent cigarette sampling time interval correspond to one cigarette sampling task.

[0044] In this embodiment of the invention, if it is detected that the number of cigarettes sampled in the current cigarette sampling task is less than the total number of cigarettes sampled, does not exceed the latest cigarette sampling time interval, and no cigarettes matching the current cigarette sampling task are detected and verified within the current cigarette sampling time interval, it indicates that the current inspection and sampling task has not been completed, and the production rate is too slow to match the sampling operation. Based on the number of cigarettes sampled in the current cigarette sampling time interval, the number of cigarettes sampled in the target adjacent cigarette sampling time interval is increased. Thus, within the target adjacent cigarette sampling time interval, based on the adjusted number of cigarettes sampled in the target adjacent cigarette sampling time interval, the target brand and target sealing machine number of the cigarettes passing through the cigarette sorting main channel are distributedly verified to obtain the cigarettes to be sampled.

[0045] Figure 3 This is a flowchart illustrating a sampling, sorting, and shelving process provided in Embodiment 2 of the present invention. Figure 3 As shown, the production management system issues a cigarette sampling inspection work order to the warehouse management system. The warehouse management system creates a cigarette sampling inspection task based on the sampling time and total number of cigarettes to be sampled in the work order, and then sends the task to the warehouse control system. Upon receiving the cigarette sorting and identification request, the warehouse control system determines the length of the cigarette code. If the code length is the first digit, it obtains the target brand and target sealing machine number. If the code length is the second digit, it queries the database of Project 1 to obtain the target brand and target sealing machine number. Further, it determines whether the target brand and target sealing machine number of the cigarettes in the sampled cigarettes match the brand and sealing machine number of the sampled cigarettes. If they do not match, the sampled cigarettes are sorted to the corresponding target cigarette sorting lane. If the target brand and target carton sealing machine number of the cigarettes in the case are the same as the brand and sealing machine number of the cigarettes to be inspected, then it is determined whether the current time exceeds the sampling time period of the corresponding cigarette sampling task (i.e., the cigarette sampling time interval). If it exceeds the sampling time period of the corresponding cigarette sampling task, then the sampling task for that case of cigarettes is terminated. If it does not exceed the sampling time period of the corresponding cigarette sampling task, then it is determined whether the number of cigarettes sampled has reached the total number of cigarettes sampled. If it has reached the total number of cigarettes sampled, then the sampling task for that case of cigarettes is terminated. If it has not reached the total number of cigarettes sampled, then the cigarettes are moved to the sampling port, and the number of cigarettes sampled is updated.

[0046] Optionally, the warehouse management system uses keyword retrieval or rule matching to extract sampling time points from cigarette sampling work orders. It then determines the sampling time period according to a preset sampling time range (e.g., 60 minutes before and after the sampling time point), and further determines the sampling time interval based on the total number of cigarettes sampled. For example, if the sampling time point is 13:00 and the total number of cigarettes sampled is 5, the sampling time period is 12:00-14:00. One cigarette is sampled every 120 / 5 = 24 minutes until the total number of cigarettes sampled is reached. If no cigarettes matching the sealing machine and brand are identified within 24 minutes, the sampling count for the next sampling time period is incremented by one.

[0047] The technical solution of this invention involves parsing the cigarette sampling inspection work order through the warehouse management system to determine the key data of the cigarettes to be sampled, and generating a cigarette sampling inspection task based on the key data. Upon receiving a cigarette sorting and identification request, the system identifies the length of the cigarette code and determines the target brand and target sealing machine number based on the cigarette code length. Then, according to the cigarette sampling inspection task, the system verifies the target brand and target sealing machine number, and if the cigarette is verified to be the one to be sampled, it is moved to the sampling port. This solution can specifically identify the brand and sealing machine number carried by the code on cigarette packs of different lengths, maximizing the types of cigarettes that can be automatically sampled. Based on the cigarette pack sampling task, it performs two-dimensional verification of cigarette packs by using the brand that uniquely identifies the cigarette category and the sealing machine number that indicates the production source, identifying the cigarette packs that need to be sampled and then sending them to the sampling port. This achieves automated sampling of multiple types of cigarette packs, reduces the error rate of manual operation, and solves the problems of existing cigarette pack sampling that rely heavily on manual labor, have low sampling efficiency, and are prone to erroneous sampling. It can improve the efficiency of cigarette pack sampling, reduce the strong dependence on manual labor, and also reduce the erroneous sampling rate of cigarette packs.

[0048] Example 3 Figure 4 This is a schematic diagram of an automatic cigarette sampling inspection device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: The code length recognition module 310 is used to recognize the code length of a pack of cigarettes when a pack of cigarettes is received for sorting and recognition. The brand and carton number determination module 320 is used to determine the target brand and target carton sealing machine number based on the length of the carton code. The verification and handling module 330 is used to verify the target brand and target carton sealing machine number according to the cigarette sampling inspection task, and when the cigarette is verified to be the cigarette to be inspected, it is handled to the sampling port.

[0049] The technical solution of this invention involves identifying the length of the cigarette code when a cigarette sorting and identification request is received, thereby determining the target brand and the target carton sealing machine number based on the cigarette code length, and then verifying the target brand and the target carton sealing machine number according to the cigarette sampling inspection task. When the cigarette is verified to be a cigarette to be inspected, the cigarette to be inspected is transported to the sampling port. This solution can specifically identify the brand and sealing machine number carried by the codes on cigarette cartons of different lengths, maximizing the variety of cigarette cartons that can be automatically inspected. Based on the cigarette carton inspection task, it performs dual-dimensional verification of cigarette cartons by using the brand that uniquely identifies the cigarette category and the sealing machine number that indicates the production source, identifying the cigarette cartons that need to be inspected and then transmitting them to the inspection port. This achieves automated inspection of multiple types of cigarette cartons, reduces the error rate of manual operation, and solves the problems of existing cigarette carton inspections that rely heavily on manual labor, have low inspection efficiency, and are prone to erroneous inspections. It can improve the efficiency of cigarette carton inspections, reduce the strong dependence on manual labor, and also reduce the erroneous inspection rate of cigarette cartons.

[0050] Optionally, the automatic cigarette sampling inspection device also includes a cigarette sampling inspection task generation module, which is used to parse the cigarette sampling inspection work order through the warehouse management system, determine the key data of the cigarettes to be sampled, and generate the cigarette sampling inspection task based on the key data of the cigarettes to be sampled; wherein, the key data of the cigarettes to be sampled includes the cigarette sampling inspection time interval and the total number of cigarettes to be sampled.

[0051] Optionally, the brand and carton number determination module 320 is used to determine the brand of the cigarette pack as the target brand and the packaging machine number that produces the cigarette pack as the target carton sealing machine number when the length of the cigarette pack code is the first digit; and to query the target brand and the target carton sealing machine number from the No. 1 project database when the length of the cigarette pack code is the second digit.

[0052] Optionally, the verification and handling module 330 includes a verification unit, which is used to perform distributed verification of the target brand number and target sealing machine number of the cigarettes passing through the main sorting channel when the cigarette sampling task is multiple pieces.

[0053] Optionally, the automatic cigarette sampling inspection device also includes a normal handling module, which, when it is verified that the cigarette is not a cigarette to be sampled, transfers the cigarette to the target cigarette sorting channel according to the cigarette association data of the cigarette.

[0054] Optionally, a verification unit is used to determine the sampling time interval and the total number of cigarette samples for each of the cigarette sampling tasks; and to perform distributed verification of the target brand and target sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate according to the sampling time interval and the total number of cigarette samples for each of the cigarette sampling tasks.

[0055] Optionally, the verification unit is used to update the number of cigarettes sampled in the target adjacent cigarette sampling time interval when the number of sampled cigarettes in the current cigarette sampling task is less than the total number of sampled cigarettes in the corresponding cigarette sampling task, and no cigarettes matching the current cigarette sampling task are detected and verified within the current cigarette sampling time interval; and to perform distributed verification of the target brand and target sealing machine number of the cigarettes passing through the cigarette sorting main gate according to the number of sampled cigarettes in the target adjacent cigarette sampling time interval.

[0056] The automatic cigarette sampling inspection device provided in this embodiment of the invention can execute the automatic cigarette sampling inspection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0057] Example 4 Figure 5 A schematic diagram of a warehouse control system that can be used to implement embodiments of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.

[0058] like Figure 5 As shown, the warehouse control system 10 includes at least one processor 11 and a memory, such as ROM 12 or RAM 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from the storage unit 18. The RAM 13 can also store various programs and data required for the operation of the warehouse control system 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An I / O interface 15 is also connected to the bus 14. The ROM 12 is a read-only memory, the RAM 13 is a random access memory, and the I / O interface 15 is an input / output interface.

[0059] Multiple components in the warehouse control system 10 are connected to the I / O interface 15, including: input units 16, such as a keyboard, mouse, etc.; output units 17, such as various types of displays, speakers, etc.; storage units 18, such as disks, optical disks, etc.; and communication units 19, such as network cards, modems, wireless transceivers, etc. The communication unit 19 allows the warehouse control system 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0060] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the automatic cigarette sampling method.

[0061] In some embodiments, the automatic cigarette sampling method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the warehouse control system 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the automatic cigarette sampling method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the automatic cigarette sampling method by any other suitable means (e.g., by means of firmware).

[0062] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0063] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0064] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0065] To provide user interaction, the systems and techniques described herein can be implemented on a warehouse control system having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the warehouse control system. Other types of devices can also be used to provide user interaction; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0066] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0067] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS servers, such as high management difficulty and weak business scalability.

[0068] This application also discloses a computer program product, which includes a computer program that, when executed by a processor, implements the automatic cigarette sampling inspection method provided in any embodiment of this application. This program product shares the same inventive concept as the automatic cigarette sampling inspection methods disclosed in the embodiments of this application, and therefore will not be described in detail here.

[0069] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0070] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for automatic sampling of a piece of tobacco, characterized in that, include: Upon receiving a request to sort and identify cigarette packs, identify the length of the cigarette pack code. The target brand and target carton sealing machine number are determined based on the length of the cigarette pack code. According to the cigarette sampling inspection task, the target brand and target carton sealing machine number are verified, and when the cigarette is verified to be a sample to be inspected, the sample to be inspected is moved to the sampling port.

2. The method of claim 1, wherein, Upon receiving a request for sorting and identifying cigarette packs, before identifying the length of the cigarette pack's code, the process also includes: The warehouse management system analyzes the cigarette sampling inspection work order, determines the key data of the cigarettes to be sampled, and generates the cigarette sampling inspection task based on the key data of the cigarettes to be sampled. The key data for the cigarette packs to be inspected include the time interval for the inspection and the total number of cigarette packs to be inspected.

3. The method according to claim 1, characterized in that, Based on the length of the cigarette pack code, determine the target brand and the target carton sealing machine number, including: When the length of the cigarette code of the cigarette pack is the first digit, the brand of the cigarette pack is taken as the target brand, and the packaging machine number that produces the cigarette pack is taken as the target carton sealing machine number; When the length of the cigarette code on the cigarette pack is the second digit, the target brand and the target carton sealing machine number are queried from the No. 1 project database.

4. The method according to claim 1, characterized in that, According to the cigarette sampling inspection task, the target brand and target carton sealing machine number are verified, including: When the cigarette sampling task involves multiple cigarettes, the target brand number and target sealing machine number corresponding to the cigarettes passing through the main cigarette sorting gate are verified in a distributed manner.

5. The method according to claim 1, characterized in that, After verifying the target brand and target carton sealing machine number according to the cigarette sampling inspection task, the process also includes: When it is verified that the cigarette pack is not a cigarette pack to be sampled, the cigarette pack is transferred to the target cigarette pack sorting channel according to the cigarette pack association data.

6. The method according to claim 4, characterized in that, Distributed verification is performed on the target brand and target carton sealing machine number corresponding to the cigarettes passing through the main sorting gate, including: Determine the time interval for each cigarette sampling inspection task and the total number of cigarettes to be sampled; Based on the sampling time interval and total number of cigarette samples for each sampling task, distributed verification is performed on the target brand and target sealing machine number corresponding to the cigarettes that pass through the main sorting gate.

7. The method according to claim 6, characterized in that, Based on the sampling time interval and total number of cigarette cartons sampled for each sampling task, distributed verification is performed on the target brand and target carton sealing machine number corresponding to the cigarette cartons passing through the main sorting gate, including: If the number of cigarettes sampled in the current cigarette sampling task is less than the total number of cigarettes sampled, and no cigarettes matching the current cigarette sampling task are detected and verified within the current cigarette sampling time interval, update the number of cigarettes sampled in the adjacent cigarette sampling time interval of the target. During the sampling time interval of adjacent cigarette packs, distributed verification is performed on the target brand and target sealing machine number of the cigarette packs that have passed through the main sorting gate, according to the number of cigarette packs sampled during the sampling time interval.

8. A warehouse control system, characterized in that, The warehouse control system includes: At least one processor, and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the automatic cigarette sampling inspection method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the automatic cigarette sampling method according to any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the automatic cigarette sampling inspection method according to any one of claims 1-7.