Tobacco batch data processing method and system, terminal and storage medium
By using image scanning equipment on the tobacco assembly line to collect batch codes and automatically process the data, the error problem caused by manual recording is solved, the automatic processing of tobacco batch data is realized, the real-time and accuracy of the data is improved, and the enterprise is satisfied needs for quick decision-making.
Patent Information
- Application Number
- CN202410960784.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
AI Technical Summary
Existing tobacco batch data processing relies on manual recording, which is prone to errors, making it difficult to ensure the real-time and accuracy of the data, affecting the monitoring effect, and failing to meet the company's rapid decision-making and management needs.
The image scanning equipment configured on the tobacco assembly line collects batch codes, determines tobacco batch data, determines processing strategies based on task information, and automatically processes batch data, including classification, verification, path allocation and equipment monitoring, to reduce human errors.
It realizes automated, real-time, and diverse processing of tobacco batch data, improves the effectiveness of data processing, reduces human errors, and meets the rapid decision-making and management needs of enterprises.
Smart Images

Figure CN118761589A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tobacco industry batch management, and more specifically, to a tobacco batch data processing method, system, terminal and storage medium. Background Art
[0002] With the in-depth development of enterprise informatization, digitalization, and intelligence, data has become a new production factor and plays a very important role in enterprises. How to improve the credibility and availability of data and give full play to the value of data assets is a key issue in realizing the digital transformation of traditional industries. With the gradual development of big data processing technology, various industrial enterprises have begun to effectively process data in work and production based on big data processing technology to improve production efficiency. Among them, tobacco is a mass-produced product, so it is necessary to manage and track the data of tobacco batches in an all-round way to ensure the normal production of tobacco products and abnormal tracking.
[0003] At present, the existing processing of tobacco batch data is usually to manually record each batch of data and perform operations such as inventory sum or sales volume subtraction. However, manual recording of batch data will cause human errors, resulting in the omission of tobacco product production information, and the manual recording method is difficult to ensure the real-time and accuracy of the data, resulting in a significant reduction in the monitoring effect of tobacco products, which greatly affects the monitoring effect of tobacco products and greatly reduces the effectiveness of tobacco batch data processing. In the case of large data volume and high update frequency, this method is even more inadequate and cannot meet the needs of enterprises for rapid decision-making and management. Summary of the invention
[0004] An object of the present invention is to provide a method, system, terminal and storage medium for processing tobacco batch data to solve the problem that the manual recording of batch data will cause human errors, resulting in omission of production information of tobacco products, making it difficult to ensure the real-time and accuracy of data, and reducing the effectiveness of tobacco batch data processing.
[0005] According to a first aspect of the present invention, a method for processing tobacco batch data is provided, comprising:
[0006] Step 101, collecting batch codes of tobacco products by an image scanning device configured on a tobacco production line, and determining tobacco batch data from the batch codes, wherein the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information;
[0007] Step 102, retrieving batch task information corresponding to the tobacco batch data, and determining a processing strategy corresponding to the tobacco batch data based on the batch task information, wherein the processing strategy includes at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule;
[0008] Step 103: retrieve tobacco-related data corresponding to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data.
[0009] Optionally, in step 101, determining tobacco batch data from the batch code includes:
[0010] Comparing the coding features between the plurality of batch codes, and classifying the batch codes with different features to determine the batch identification;
[0011] Identify the batch code based on an image recognition model to determine batch production information;
[0012] Batch quality inspection information and batch classification information are retrieved based on the batch number and the batch production information, and the tobacco batch data is generated based on the batch identification, the batch production information, the batch quality inspection information and the batch classification information.
[0013] Optionally, in step 102, retrieving batch task information corresponding to the tobacco batch data, and determining a processing strategy corresponding to the tobacco batch data based on the batch task information includes:
[0014] When it is detected that the task start identifier corresponding to the batch quality inspection information has been updated in the batch task pool, the batch task information matching the batch identifier is retrieved from the batch task pool;
[0015] Analyzing the task features of the batch task information, and classifying the task features based on the task classification model for which model training has been completed, to obtain a task classification result;
[0016] A processing strategy matching the task classification result is retrieved from a preset processing strategy pool, wherein the preset processing strategy pool stores mapping relationships between different task classification results and different processing strategies.
[0017] Optionally, in step 103, tobacco-related data related to the tobacco batch data is retrieved according to the processing strategy, and the tobacco batch data and the tobacco-related data are processed by the processing strategy to obtain the processing result of the tobacco batch data, including:
[0018] If the processing strategy is the batch classification model, the tobacco production time, tobacco production quantity, and tobacco production type are retrieved according to the batch type, and the tobacco production time, tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are classified and processed based on the batch classification model to obtain a batch classification result; and / or,
[0019] If the processing strategy is the batch verification rule, the tobacco production quantity and tobacco production type are retrieved according to the verification object in the batch verification rule, and the tobacco production quantity, the tobacco production type, the batch identification, the batch quality inspection information, the batch production information, and the batch classification information are subjected to rule judgment based on the batch verification rule to obtain a verification result; and / or,
[0020] If the processing strategy is the batch path allocation rule, the tobacco production quantity and tobacco transportation condition information are retrieved according to the path transportation conditions, and the batch identification, the batch quality inspection information, the batch production information, the batch classification information, the tobacco production quantity, and the tobacco transportation condition information are allocated and processed based on the batch path allocation rule to obtain a path allocation result; and / or,
[0021] If the processing strategy is the equipment operation monitoring rule, the equipment operation parameters and tobacco production quantity are retrieved based on the equipment type, and the batch identification, the batch quality inspection information, the batch production information, the batch classification information, the equipment operation parameters, and the tobacco production quantity are monitored and processed based on the equipment operation monitoring rule to obtain the monitoring results.
[0022] Optionally, in step 101, collecting the batch code of the tobacco product by an image scanning device configured on the tobacco production line includes:
[0023] Collecting at least five pieces of first coded image information in the first group of tobacco products by the image scanning device;
[0024] When the coding features in the five pieces of the first coded image information are the same, instructing the image scanning device to collect second coded image information of the second group of tobacco products;
[0025] The second coded image information is recognized and processed based on an image recognition model to obtain the batch code.
[0026] Optionally, in step 103, after the tobacco batch data and the tobacco-related data are processed by the processing strategy to obtain the processing result of the tobacco batch data, the method further includes:
[0027] If the batch classification result matches the abnormal batch classification, and / or the verification result matches the abnormal verification feature, and / or the path allocation result matches the abnormal allocation type, and / or the monitoring result matches the abnormal monitoring status, then tobacco batch abnormal alarm information is generated and output.
[0028] According to a second aspect of the present invention, there is provided a tobacco batch data processing system, comprising:
[0029] A determination module, used to collect batch codes of tobacco products through an image scanning device configured on a tobacco production line, and determine tobacco batch data from the batch codes, wherein the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information;
[0030] A retrieval module, used to retrieve batch task information corresponding to the tobacco batch data, and determine a processing strategy for the tobacco batch data based on the batch task information, wherein the processing strategy includes at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule;
[0031] The processing module is used to retrieve tobacco-related data related to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data.
[0032] Optionally, the tobacco batch data processing system further includes:
[0033] The output module is used to generate and output tobacco batch abnormality alarm information if the batch classification result matches the abnormal batch classification, and / or the verification result matches the abnormal verification feature, and / or the path allocation result matches the abnormal allocation type, and / or the monitoring result matches the abnormal monitoring state.
[0034] According to a third aspect of the present invention, there is provided a terminal comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction enables the processor to execute operations corresponding to the above-mentioned tobacco batch data processing method.
[0035] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method for processing tobacco batch data according to the first aspect of the present invention are implemented.
[0036] The tobacco batch data processing method, system, terminal and storage medium disclosed in the present invention have the following technical effects:
[0037] The present invention collects batch codes of tobacco products through an image scanning device configured on a tobacco production line, and determines tobacco batch data from the batch codes; retrieves batch task information corresponding to the tobacco batch data, and determines a processing strategy for the tobacco batch data based on the batch task information; retrieves tobacco-related data for the tobacco batch data according to the processing strategy, and processes the tobacco batch data and the tobacco-related data through the processing strategy to obtain a processing result of the tobacco batch data, thereby realizing automatic, flexible and real-time processing of tobacco batch data, being able to perform diversified processing on tobacco batch data, reducing errors in manual processing of tobacco products, and achieving the purpose of monitoring tobacco products, thereby improving the processing effectiveness of tobacco batch data.
[0038] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0040] Figure 1 A schematic diagram of a process flow of a method for processing tobacco batch data provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of the composition of a tobacco batch data processing system provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention.
[0043] The markings in the figure are as follows: 21, determination module; 22, calling module; 23, processing module; 24, output module; 302, processor; 304, communication interface; 306, memory; 308, communication bus; 310, executable instruction program. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] The existing processing of tobacco batch data is usually to manually record each batch of data and perform calculation processing such as inventory sum or sales volume subtraction. However, manual recording of batch data will produce human errors, resulting in the omission of production information of tobacco products, and the manual recording method is difficult to ensure the real-time and accuracy of the data, resulting in a significant reduction in the monitoring effect of tobacco products, greatly reducing the processing effectiveness of tobacco batch data. In the case of large data volume and high update frequency, this method is even more inadequate and cannot meet the needs of enterprises for rapid decision-making and management. The present invention retrieves tobacco-related data with the tobacco batch data according to the processing strategy, and processes the tobacco batch data and the tobacco-related data through the processing strategy to obtain the processing result of the tobacco batch data, so as to realize automatic and flexible processing of tobacco batch data, and can reduce the human processing error of tobacco products.
[0049] The present invention provides an embodiment of a method for processing tobacco batch data. Specifically, Figure 1 As shown, the following steps are included:
[0050] Step 101, collecting batch codes of tobacco products by an image scanning device configured on a tobacco production line, and determining tobacco batch data from the batch codes, wherein the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information;
[0051] It should be noted that high-resolution image scanning equipment is configured at key locations such as product packaging and boxing in the tobacco production line to ensure that the scanning equipment can stably and quickly capture the batch code images on the tobacco products; the image scanning equipment uses image recognition technology (such as OCR optical character recognition) to parse the captured batch code images.
[0052] Step 102, retrieving batch task information corresponding to the tobacco batch data, and determining a corresponding processing strategy for the tobacco batch data based on the batch task information, the processing strategy including at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule;
[0053] It should be noted that the batch classification model is used to classify tobacco products into different categories or grades according to the classification information in the batch data; the batch verification rules are used to verify the accuracy and completeness of the batch data and ensure data quality; the batch path allocation rules are used to determine the transportation path and allocation method of tobacco products; and the equipment operation monitoring rules are used to monitor and manage the operating status and performance of related equipment on the production line.
[0054] Step 103, retrieve tobacco-related data corresponding to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data.
[0055] In the embodiment of the present invention, in step 101, determining tobacco batch data from the batch code includes:
[0056] Compare the coding features between multiple batch codes, divide the batch codes with different features, and determine the batch identification;
[0057] The batch code is identified based on the image recognition model to determine the batch production information; specifically, the image of the tobacco product is obtained through an image acquisition device (such as a camera, scanner, etc.), the image is input into the model, the batch code is identified, and the batch production information in the identification result is extracted, such as the production date, production batch number, etc.
[0058] Based on the batch number and batch production information, batch quality inspection information and batch classification information are retrieved, and tobacco batch data is generated based on the batch identification, batch production information, batch quality inspection information and batch classification information. Specifically, the batch identification, batch production information, batch quality inspection information and batch classification information are integrated into a complete tobacco batch data record, and the integrated tobacco batch data record is stored in the database for subsequent query and analysis. Through batch data, the production source, quality inspection process and classification information of tobacco products can be traced back to realize product traceability management. Using batch data, statistical analysis can be performed on the production, quality inspection and classification of tobacco products to provide support for decision-making.
[0059] In the embodiment of the present invention, in step 102, the batch task information corresponding to the tobacco batch data is retrieved, and the processing strategy corresponding to the tobacco batch data is determined based on the batch task information, including:
[0060] When it is detected that the task start identifier corresponding to the batch quality inspection information has been updated in the batch task pool, the batch task information matching the batch identifier is retrieved from the batch task pool; specifically, once it is detected that the task start identifier has been updated, the batch identifier is used as a keyword to retrieve the batch task information matching the batch identifier from the batch task pool, and the batch task information includes task description, task status, task priority, task characteristics, etc.;
[0061] Analyze the task features of the batch task information, and classify the task features based on the task classification model that has completed model training to obtain the task classification results, where the task features include the type, complexity, resource requirements, urgency, etc. of the task;
[0062] A processing strategy that matches the task classification result is retrieved from a preset processing strategy pool, which stores a mapping relationship between different task classification results and different processing strategies. Specifically, the task classification result is used as an index to retrieve a matching processing strategy from the preset processing strategy pool, and the retrieved processing strategy is applied to the actual batch task.
[0063] In the embodiment of the present invention, in step 103, the tobacco-related data corresponding to the tobacco batch data is retrieved according to the processing strategy, and the tobacco batch data and the tobacco-related data are processed according to the processing strategy, and the processing result of the tobacco batch data includes:
[0064] If the processing strategy is a batch classification model, the tobacco production time, tobacco production quantity, and tobacco production type are retrieved according to the batch type, and the tobacco production time, tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are classified and processed based on the batch classification model to obtain a batch classification result; and / or,
[0065] If the processing strategy is a batch verification rule, the tobacco production quantity and tobacco production type are retrieved according to the verification object in the batch verification rule, and the tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are subjected to rule judgment based on the batch verification rule to obtain a verification result, specifically including comparing the extracted verification object with the batch verification rule, and for a verification object of a numerical type (such as tobacco production quantity), judging whether it is within the numerical range defined by the rule, and for a verification object of a type or classification (such as tobacco production type, batch classification information), judging whether it matches the type or classification defined by the rule, if the verification passes, continuing the subsequent processing flow, and if the verification fails, performing corresponding processing according to the error information or code in the verification result, such as rechecking the data, adjusting the production parameters, notifying relevant personnel, etc.; and / or,
[0066] If the processing strategy is a batch path allocation rule, the tobacco production quantity and tobacco transportation condition information are retrieved according to the path transportation conditions, and the batch identification, batch quality inspection information, batch production information, batch classification information, tobacco production quantity, and tobacco transportation condition information are allocated and processed based on the batch path allocation rule to obtain a path allocation result; specifically, the retrieved tobacco production quantity and tobacco transportation condition information are input into the batch path allocation rule, and each path is scored or sorted according to the algorithm or logic defined in the rule, and one or more transportation paths are allocated to the current batch based on the processing result of the path allocation rule, and the transportation path field in the batch information is updated according to the allocation result; and / or,
[0067] If the processing strategy is the equipment operation monitoring rule, the equipment operation parameters and tobacco production quantity are retrieved based on the equipment type, and the batch identification, batch quality inspection information, batch production information, batch classification information, equipment operation parameters, and tobacco production quantity are monitored and processed based on the equipment operation monitoring rule to obtain the monitoring results.
[0068] In the embodiment of the present invention, in step 101, collecting the batch code of the tobacco product by an image scanning device configured on the tobacco production line includes:
[0069] Collecting at least five pieces of first coded image information of the first group of tobacco products by an image scanning device, wherein the image information includes images of tobacco products at different angles, different packaging levels or different batches;
[0070] When the coding features in the five pieces of first coded image information are the same, instructing the image scanning device to collect second coded image information of the second group of tobacco products;
[0071] The second coded image information is identified and processed based on the image recognition model, such as cropping, scaling, denoising, etc., to obtain a batch code, and the identified batch code is associated with the corresponding tobacco product grouping and recorded.
[0072] In the embodiment of the present invention, in step 103, after the tobacco batch data and the tobacco-related data are processed by the processing strategy to obtain the processing result of the tobacco batch data, the method further includes:
[0073] If the batch classification result matches the abnormal batch classification, and / or the verification result matches the abnormal verification feature, and / or the path allocation result matches the abnormal allocation type, and / or the monitoring result matches the abnormal monitoring status, then tobacco batch abnormal alarm information is generated and output.
[0074] It should be noted that if the classification result does not match the preset normal batch classification, it is "matching abnormal batch classification"; if there are features in the verification result that do not match the preset standard, it is "matching abnormal verification features"; if the allocation result does not match the preset allocation rule, it is "matching abnormal allocation type"; the system monitors the production, transportation or storage process of tobacco batches in real time. If an abnormal state is found, such as equipment failure, environmental parameters exceeding the standard, etc., it is "matching abnormal monitoring state"; if an abnormal match is found in any of the above checks (including "and" or "or" logic), the system automatically generates tobacco batch abnormal alarm information. The alarm information contains key information such as detailed abnormal description, batch information involved, time and place of abnormality. The alarm information can display the alarm notification on the system interface so that the operator can see and handle it immediately, and the alarm information is recorded in the log file or database for subsequent query and analysis.
[0075] The present invention also proposes a tobacco batch data processing system, specifically Figure 2 As shown, the system includes:
[0076] The determination module 21 is used to collect the batch code of the tobacco product through the image scanning device configured on the tobacco production line, and determine the tobacco batch data from the batch code, and the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information;
[0077] Furthermore, the determination module 21 is specifically used to compare the coding features between multiple batch codes, and divide the batch codes with feature differences to determine the batch identification; identify the batch code based on the image recognition model to determine the batch production information; retrieve the batch quality inspection information and batch classification information based on the batch number and batch production information, and generate tobacco batch data based on the batch identification, batch quality inspection information, batch production information, and batch classification information.
[0078] A retrieval module 22, used to retrieve batch task information corresponding to the tobacco batch data, and determine a processing strategy for the tobacco batch data based on the batch task information, the processing strategy including at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule;
[0079] Furthermore, the retrieval module 22 is specifically used to retrieve the batch task information matching the batch identifier from the batch task pool after monitoring that the task start identifier corresponding to the batch quality inspection information has been updated in the batch task pool; parse the task features of the batch task information, and classify the task features based on the task classification model of the completed model training to obtain the task classification result; retrieve the processing strategy matching the task classification result from the preset processing strategy pool, and the preset processing strategy pool stores the mapping relationship between different task classification results and different processing strategies.
[0080] The processing module 23 is used to retrieve tobacco-related data related to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data;
[0081] Furthermore, the processing module 23 is specifically used for: if the processing strategy is a batch classification model, then the tobacco production time, tobacco production quantity, and tobacco production type are retrieved according to the batch type, and the tobacco production time, tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are classified and processed based on the batch classification model to obtain a batch classification result; and / or, if the processing strategy is a batch verification rule, then the tobacco production quantity and tobacco production type are retrieved according to the verification object in the batch verification rule, and the tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are classified and processed based on the batch verification rule. Judge and obtain the verification result; and / or, if the processing strategy is the batch path allocation rule, then the tobacco production quantity and tobacco transportation condition information are retrieved according to the path transportation conditions, and the batch identification, batch quality inspection information, batch production information, batch classification information, tobacco production quantity, and tobacco transportation condition information are allocated and processed based on the batch path allocation rule to obtain the path allocation result; and / or, if the processing strategy is the equipment operation monitoring rule, then the equipment operation parameters and tobacco production quantity are retrieved based on the equipment type, and the batch identification, batch quality inspection information, batch production information, batch classification information, equipment operation parameters, and tobacco production quantity are monitored and processed based on the equipment operation monitoring rule to obtain the monitoring result.
[0082] It should be noted that the determination module 21 is specifically used to collect at least five first coded image information of the first group of tobacco products through an image scanning device; when the coding features in the five first coded image information are the same, instruct the image scanning device to collect the second coded image information of the second group of tobacco products; and identify and process the second coded image information based on the image recognition model to obtain a batch code.
[0083] Specifically, the tobacco batch data processing system also includes an output module 24, which is used to generate and output tobacco batch abnormal alarm information if the batch classification result is a matching abnormal batch classification, and / or the verification result is a matching abnormal verification feature, and / or the path allocation result is a matching abnormal allocation type, and / or the monitoring result is a matching abnormal monitoring state.
[0084] The embodiment of the present invention also provides a terminal, including a processor 302, a memory 306, a communication interface 304 and a communication bus 308, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction program 310, and the executable instruction program 310 enables the processor 302 to execute operations corresponding to the above-mentioned tobacco batch data processing method.
[0085] The embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned tobacco batch data processing method are implemented.
[0086] The present invention collects batch codes of tobacco products through an image scanning device configured on a tobacco production line, and determines tobacco batch data from the batch codes; retrieves batch task information corresponding to the tobacco batch data, and determines a processing strategy for the tobacco batch data based on the batch task information; retrieves tobacco-related data related to the tobacco batch data according to the processing strategy, and processes the tobacco batch data and the tobacco-related data through the processing strategy to obtain a processing result of the tobacco batch data, thereby realizing automatic and flexible processing of the tobacco batch data, being able to perform diversified processing on the tobacco batch data, reducing errors in manual processing of tobacco products, and achieving the purpose of monitoring tobacco products, thereby improving the processing effectiveness of the tobacco batch data.
[0087] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. A method for processing tobacco batch data, characterized in that: include: Step 101, collecting batch codes of tobacco products by an image scanning device configured on a tobacco production line, and determining tobacco batch data from the batch codes, wherein the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information; Step 102, retrieving batch task information corresponding to the tobacco batch data, and determining a processing strategy corresponding to the tobacco batch data based on the batch task information, wherein the processing strategy includes at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule; Step 103: retrieve tobacco-related data corresponding to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data.
2. The method for processing tobacco batch data according to claim 1, characterized in that: In step 101, determining tobacco batch data from the batch code includes: Comparing the coding features between the plurality of batch codes, and classifying the batch codes with different features to determine the batch identification; Identify the batch code based on an image recognition model to determine batch production information; Batch quality inspection information and batch classification information are retrieved based on the batch number and the batch production information, and the tobacco batch data is generated based on the batch identification, the batch production information, the batch quality inspection information and the batch classification information.
3. The method for processing tobacco batch data according to claim 1, characterized in that: In step 102, the batch task information corresponding to the tobacco batch data is retrieved, and the processing strategy corresponding to the tobacco batch data is determined based on the batch task information, including: When it is detected that the task start identifier corresponding to the batch quality inspection information has been updated in the batch task pool, the batch task information matching the batch identifier is retrieved from the batch task pool; Analyzing the task features of the batch task information, and classifying the task features based on the task classification model for which model training has been completed, to obtain a task classification result; A processing strategy matching the task classification result is retrieved from a preset processing strategy pool, wherein the preset processing strategy pool stores mapping relationships between different task classification results and different processing strategies.
4. The method for processing tobacco batch data according to claim 1, characterized in that: In step 103, tobacco-related data related to the tobacco batch data is retrieved according to the processing strategy, and the tobacco batch data and the tobacco-related data are processed according to the processing strategy, and the processing result of the tobacco batch data is obtained, including: If the processing strategy is the batch classification model, the tobacco production time, tobacco production quantity, and tobacco production type are retrieved according to the batch type, and the tobacco production time, tobacco production quantity, tobacco production type, batch identification, batch quality inspection information, batch production information, and batch classification information are classified and processed based on the batch classification model to obtain a batch classification result; and / or, If the processing strategy is the batch verification rule, the tobacco production quantity and tobacco production type are retrieved according to the verification object in the batch verification rule, and the tobacco production quantity, the tobacco production type, the batch identification, the batch quality inspection information, the batch production information, and the batch classification information are subjected to rule judgment based on the batch verification rule to obtain a verification result; and / or, If the processing strategy is the batch path allocation rule, the tobacco production quantity and tobacco transportation condition information are retrieved according to the path transportation conditions, and the batch identification, the batch quality inspection information, the batch production information, the batch classification information, the tobacco production quantity, and the tobacco transportation condition information are allocated and processed based on the batch path allocation rule to obtain a path allocation result; and / or, If the processing strategy is the equipment operation monitoring rule, the equipment operation parameters and tobacco production quantity are retrieved based on the equipment type, and the batch identification, the batch quality inspection information, the batch production information, the batch classification information, the equipment operation parameters, and the tobacco production quantity are monitored and processed based on the equipment operation monitoring rule to obtain the monitoring results.
5. The method for processing tobacco batch data according to claim 1, characterized in that: In step 101, collecting the batch code of tobacco products by an image scanning device configured on a tobacco production line includes: Collecting at least five pieces of first coded image information in the first group of tobacco products by the image scanning device; When the coding features in the five pieces of the first coded image information are the same, instructing the image scanning device to collect second coded image information of the second group of tobacco products; The second coded image information is recognized and processed based on an image recognition model to obtain the batch code.
6. The method for processing tobacco batch data according to claim 1, characterized in that: After the step of processing the tobacco batch data and the tobacco-related data by the processing strategy to obtain the processing result of the tobacco batch data in step 103, the method further includes: If the batch classification result matches the abnormal batch classification, and / or the verification result matches the abnormal verification feature, and / or the path allocation result matches the abnormal allocation type, and / or the monitoring result matches the abnormal monitoring status, then tobacco batch abnormal alarm information is generated and output.
7. A tobacco batch data processing system, characterized in that: include: A determination module, used to collect batch codes of tobacco products through an image scanning device configured on a tobacco production line, and determine tobacco batch data from the batch codes, wherein the tobacco batch data includes batch identification, batch quality inspection information, batch production information, and batch classification information; A retrieval module, used to retrieve batch task information corresponding to the tobacco batch data, and determine a processing strategy for the tobacco batch data based on the batch task information, wherein the processing strategy includes at least one of a batch classification model, a batch verification rule, a batch path allocation rule, and an equipment operation monitoring rule; The processing module is used to retrieve tobacco-related data related to the tobacco batch data according to the processing strategy, and process the tobacco batch data and the tobacco-related data according to the processing strategy to obtain a processing result of the tobacco batch data.
8. The tobacco batch data processing system according to claim 7, characterized in that: Also includes: The output module is used to generate and output tobacco batch abnormality alarm information if the batch classification result matches the abnormal batch classification, and / or the verification result matches the abnormal verification feature, and / or the path allocation result matches the abnormal allocation type, and / or the monitoring result matches the abnormal monitoring state.
9. A terminal, characterized in that: It comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction program, and the executable instruction program enables the processor to execute operations corresponding to the method for processing tobacco batch data as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for processing tobacco batch data according to any one of claims 1 to 6 are implemented.
