Method and device for detecting purity of flue-cured tobacco, electronic equipment and storage medium

文档序号:8947 发布日期:2021-09-17 浏览:32次 中文

1. A method for detecting the purity of flue-cured tobacco is characterized by comprising the following steps:

determining a target flue-cured tobacco type with purity to be detected in a flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set;

querying a first flue-cured tobacco type having a group adjacency relation with the target flue-cured tobacco type and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set;

querying a second flue-cured tobacco type adjacent to the appearance quality of the target flue-cured tobacco type and third proportion data of flue-cured tobacco of the second flue-cured tobacco type in the flue-cured tobacco sample set;

and determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

2. The method of claim 1, wherein the determining a target flue-cured tobacco type of purity to be detected in the flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set comprises:

extracting first characteristic information corresponding to the target flue-cured tobacco type;

detecting a first quantity of flue-cured tobacco satisfying the first characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the first flue-cured tobacco quantity to the total quantity of flue-cured tobaccos in the flue-cured tobacco sample set as the first proportion data.

3. The method of claim 1, wherein prior to querying for a first flue-cured tobacco type having a group proximity relationship to the target flue-cured tobacco type, and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the set of flue-cured tobacco samples, the method further comprises:

acquiring a plurality of flue-cured tobacco group information, wherein each flue-cured tobacco group information at least comprises two flue-cured tobacco types;

establishing an adjacent relation between at least two flue-cured tobacco types in the same flue-cured tobacco group;

and generating a preset flue-cured tobacco information table based on the flue-cured tobacco type and the adjacent relation.

4. The method of claim 3, wherein said querying first flue-cured tobacco type having a group adjacency relationship with said target flue-cured tobacco type, and second proportion data of flue-cured tobacco of said first flue-cured tobacco type in said set of flue-cured tobacco samples, comprises:

inquiring a target group corresponding to the target flue-cured tobacco type from the preset flue-cured tobacco information table;

determining a first flue-cured tobacco type having a group adjacent relation with the target flue-cured tobacco type based on the adjacent relation in the target group;

extracting second characteristic information of the first flue-cured tobacco type;

detecting a second quantity of flue-cured tobacco satisfying the second characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the second flue-cured tobacco quantity to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as the second proportion data.

5. The method of claim 1, wherein prior to querying a second flue-cured tobacco type that is adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of the second flue-cured tobacco type that is standing by in the set of flue-cured tobacco samples, the method further comprises:

acquiring a flue-cured tobacco information base, wherein the flue-cured tobacco information base comprises at least one flue-cured tobacco type and appearance quality characteristics corresponding to the flue-cured tobacco type;

calculating the similarity between appearance quality characteristics of every two flue-cured tobacco types;

and determining the appearance quality adjacent information corresponding to the flue-cured tobacco type according to the similarity.

6. The method of claim 5, wherein said querying second flue-cured tobacco type adjacent to said target flue-cured tobacco type appearance quality, and third proportion data of said second flue-cured tobacco type that is standing by in said set of flue-cured tobacco samples, comprises:

inquiring a second flue-cured tobacco type having an adjacent relation with the target flue-cured tobacco type based on the appearance quality adjacent information;

extracting third characteristic information of the second flue-cured tobacco type;

detecting a third quantity of flue-cured tobacco satisfying the third characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the third quantity of flue-cured tobaccos to the total quantity of flue-cured tobaccos in the flue-cured tobacco sample set as the third proportion data.

7. The method of claim 1, wherein said determining purity information for the target flue-cured tobacco type based on the first, second, and third proportion data comprises:

and calculating the sum of the first proportion data, the second proportion data and the third proportion data, and determining the sum as the purity information of the target flue-cured tobacco type.

8. The utility model provides a detection apparatus for flue-cured tobacco purity which characterized in that includes:

the determining module is used for determining a target flue-cured tobacco type to be detected for purity in a flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set;

a first query module, configured to query a first flue-cured tobacco type having a group adjacency relation with the target flue-cured tobacco type, and second proportion data of flue-cured tobaccos of the first flue-cured tobacco type in the flue-cured tobacco sample set;

a second query module, configured to query a second flue-cured tobacco type that is adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of flue-cured tobaccos of the second flue-cured tobacco type in the flue-cured tobacco sample set;

and the processing module is used for determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.

10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:

a memory for storing a computer program;

a processor for performing the method steps of any of claims 1-7 by executing a program stored on a memory.

Background

And judging the appearance quality condition of certain grade of tobacco leaves according to the common grade qualification rate in the flue-cured tobacco quality inspection. In the actual inspection process, the tobacco leaves in different batches at the same grade have close grade qualification rate, but the appearance quality and the internal quality are obviously different due to different mixed non-qualification grades. The grade qualification rate can not fully reflect the quality condition of the tobacco leaves.

In recent years, cigarette industry enterprises pay more and more attention to the grade purity of tobacco leaves, and even put forward the requirements of low grade and high purity. However, the grade purity of tobacco leaves specifically includes what contents, how to calculate, and so far, there is no definite theory, and the tobacco leaf inspectors have different understandings about the grade purity. The purity grade is difficult to be embodied in the inspection process. Therefore, a flue-cured tobacco grade purity calculation method is needed to be developed, a calculation formula which can be referred to is provided for inspectors, and therefore the appearance quality of tobacco leaves is better evaluated.

Disclosure of Invention

In order to solve the technical problem or at least partially solve the technical problem, the application provides a method and a device for detecting the purity of flue-cured tobacco, an electronic device and a storage medium.

According to an aspect of the embodiments of the present application, a method for detecting purity of flue-cured tobacco is provided, which includes:

determining a target flue-cured tobacco type with purity to be detected in a flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set;

determining a target group to which the target flue-cured tobacco type belongs, and inquiring a first flue-cured tobacco type adjacent to the target flue-cured tobacco type and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set from the target group;

querying a second flue-cured tobacco type adjacent to the appearance quality of the target flue-cured tobacco type and third proportion data of flue-cured tobacco of the second flue-cured tobacco type in the flue-cured tobacco sample set;

and determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

Further, the determining a target flue-cured tobacco type of purity to be detected in the flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set includes:

extracting first characteristic information corresponding to the target flue-cured tobacco type;

detecting a first quantity of flue-cured tobacco satisfying the first characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the first flue-cured tobacco quantity to the total quantity of flue-cured tobaccos in the flue-cured tobacco sample set as the first proportion data.

Further, before determining a target group to which the target flue-cured tobacco type belongs, and querying a first flue-cured tobacco type adjacent to the target flue-cured tobacco type from the target group, and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set, the method further comprises:

acquiring a plurality of flue-cured tobacco group information, wherein each flue-cured tobacco group information at least comprises two flue-cured tobacco types;

establishing an adjacent relation between at least two flue-cured tobacco types in the same flue-cured tobacco group;

and generating a preset flue-cured tobacco information table based on the flue-cured tobacco type and the adjacent relation.

Further, the determining a target group to which the target flue-cured tobacco type belongs, and querying, from the target group, a first flue-cured tobacco type adjacent to the target flue-cured tobacco type, and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set, include:

inquiring a target group corresponding to the target flue-cured tobacco type from the preset flue-cured tobacco information table;

determining a first flue-cured tobacco type having a group adjacent relation with the target flue-cured tobacco type based on the adjacent relation in the target group;

extracting second characteristic information of the first flue-cured tobacco type;

detecting a second quantity of flue-cured tobacco satisfying the second characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the second flue-cured tobacco quantity to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as the second proportion data.

Further, prior to querying a second flue-cured tobacco type that is adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of the second flue-cured tobacco type that is standing by in the set of flue-cured tobacco samples, the method further comprises:

acquiring a flue-cured tobacco information base, wherein the flue-cured tobacco information base comprises at least one flue-cured tobacco type and appearance quality characteristics corresponding to the flue-cured tobacco type;

calculating the similarity between appearance quality characteristics of every two flue-cured tobacco types;

and determining the appearance quality adjacent information corresponding to the flue-cured tobacco type according to the similarity.

Further, the querying second flue-cured tobacco type adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of the second flue-cured tobacco type by standing in the flue-cured tobacco sample set, include:

inquiring a second flue-cured tobacco type having an adjacent relation with the target flue-cured tobacco type based on the appearance quality adjacent information;

extracting third characteristic information of the second flue-cured tobacco type;

detecting a third quantity of flue-cured tobacco satisfying the third characteristic information from the set of flue-cured tobacco samples;

and determining the ratio of the third quantity of flue-cured tobaccos to the total quantity of flue-cured tobaccos in the flue-cured tobacco sample set as the third proportion data.

Further, the determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data includes:

and calculating the sum of the first proportion data, the second proportion data and the third proportion data, and determining the sum as the purity information of the target flue-cured tobacco type.

According to another aspect of the embodiment of this application, still provide a detection device of flue-cured tobacco purity, include:

the determining module is used for determining a target flue-cured tobacco type to be detected for purity in a flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set;

a first query module, configured to determine a target group to which the target flue-cured tobacco type belongs, and query, from the target group, a first flue-cured tobacco type adjacent to the target flue-cured tobacco type and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set;

a second query module, configured to query a second flue-cured tobacco type that is adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of flue-cured tobaccos of the second flue-cured tobacco type in the flue-cured tobacco sample set;

and the processing module is used for determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.

According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.

Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the process of detecting the flue-cured tobacco purity, the flue-cured tobacco purity can be effectively ensured by combining the proportion data of the first flue-cured tobacco type with the target flue-cured tobacco type in the group adjacent relation and the proportion data of the second flue-cured tobacco type adjacent to the appearance quality of the target flue-cured tobacco type to detect the flue-cured tobacco purity.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.

Fig. 1 is a flowchart of a method for detecting purity of flue-cured tobacco provided in an embodiment of the present application;

fig. 2 is a block diagram of a device for detecting purity of flue-cured tobacco provided in the embodiment of the present application;

fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The embodiment of the application provides a flue-cured tobacco purity detection method and device, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a terminal, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.

According to an aspect of the embodiments of the present application, a method embodiment of a method for detecting purity of flue-cured tobacco is provided, fig. 1 is a flowchart of the method for detecting purity of flue-cured tobacco provided by the embodiments of the present application, and as shown in fig. 1, the method includes:

and S11, determining the target flue-cured tobacco type to be detected for purity in the flue-cured tobacco sample set and first proportion data of the flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set.

In the embodiment of the application, determining a target flue-cured tobacco type to be detected for purity in a flue-cured tobacco sample set and first proportion data of flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set includes the following steps a 1-A3:

and A1, extracting first characteristic information corresponding to the target flue-cured tobacco type.

In the embodiment of the application, after the target flue-cured tobacco type is determined, the flue-cured tobacco characteristic information base is obtained, and first characteristic information corresponding to the target flue-cured tobacco type is extracted from the flue-cured tobacco characteristic information base.

Step A2, detecting the number of first flue-cured tobaccos meeting the first characteristic information from the flue-cured tobacco sample set.

In the embodiment of the application, the characteristic information of each flue-cured tobacco in the flue-cured tobacco sample set is extracted, the flue-cured tobacco of which the characteristic information belongs to the first characteristic information is determined as the target flue-cured tobacco type, and the number of the first flue-cured tobaccos of the target flue-cured tobacco type is counted.

Step A3, determining the ratio of the first flue-cured tobacco quantity to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as first proportion data.

In the embodiment of the application, the total number of flue-cured tobaccos in the flue-cured tobacco sample set is obtained, the ratio between the first number of flue-cured tobaccos and the total number of flue-cured tobaccos is calculated, and the ratio is determined as first proportion data.

And S12, inquiring a first flue-cured tobacco type having a group adjacent relation with the target flue-cured tobacco type and second proportion data of the flue-cured tobacco of the first flue-cured tobacco type in the flue-cured tobacco sample set.

In an embodiment of the application, before determining a target group to which a target flue-cured tobacco type belongs, and querying a first flue-cured tobacco type adjacent to the target flue-cured tobacco type from the target group, and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in a flue-cured tobacco sample set, the method further includes the following steps B1-B3:

and step B1, acquiring a plurality of flue-cured tobacco group information, wherein each flue-cured tobacco group information at least comprises two flue-cured tobacco types.

In the embodiment of the present application, the flue-cured tobacco group information is lower orange, middle orange, upper orange, lower lemon, middle lemon, upper red, complete, lower micro, middle micro, upper micro, smooth, middle and lower miscellaneous, upper miscellaneous, and green yellow.

Wherein, the flue-cured tobacco types that first-class cigarette includes have: the orange peel is characterized by comprising a medium orange C1F, a medium orange II C2F, a medium orange III C3F, a medium lemon I C1L, a medium lemon II C2L, an upper orange I B1F, an upper orange II B2F, an upper lemon I B1L, an upper red I B1R, a completely cooked I H1F and a lower orange I X1F.

Medium tobacco includes flue-cured tobacco types of: medium lemon three C3L, medium lemon four C4F, medium lemon four C4L, lower orange two X2F, lower orange three X3F, lower lemon one X1L, lower lemon two X2L, upper orange three B3F, upper orange four B4F, upper lemon two B2L, upper lemon three B3L, upper red two B2R, upper red three B3R, fully cooked two H2F, lower micro two X2V, medium micro three C3V, upper micro two B2V, upper micro three B3V and smooth one S1.

The flue-cured tobacco types of the first-class tobacco include: the main components of the composition are four upper lemon B4L, three lower lemon X3L, four lower lemon X4L, four lower orange X4F, smooth two S2, medium and lower hetero first CX1K, medium and lower hetero second CX2K, medium and hetero first B1K, medium and hetero second B2K, medium and hetero third B3K, cyan-yellow-GY 1 and cyan-yellow-second GY 2.

And B2, establishing the adjacent relation between at least two flue-cured tobacco types in the same flue-cured tobacco group.

In the embodiment of the application, the type number of each flue-cured tobacco type is obtained, and the adjacent relation between at least two flue-cured tobacco types in the same flue-cured tobacco group is established based on the sequence between the type numbers.

And B3, generating a preset flue-cured tobacco information table based on the flue-cured tobacco types and the adjacent relation.

In the embodiment of the application, the preset flue-cured tobacco information table generated based on the flue-cured tobacco type and the adjacent relation is as follows:

TABLE 1 Preset information table for flue-cured tobacco

In the embodiment of the application, determining a target group to which a target flue-cured tobacco type belongs, and querying a first flue-cured tobacco type adjacent to the target flue-cured tobacco type from the target group, and second proportion data of flue-cured tobacco of the first flue-cured tobacco type in a flue-cured tobacco sample set, includes the following steps C1-C5:

and C1, inquiring a target group corresponding to the target flue-cured tobacco type from the preset flue-cured tobacco information table.

And step C2, determining a first flue-cured tobacco type having a group adjacent relation with the target flue-cured tobacco type based on the adjacent relation in the target group.

As an example, when the target flue-cured tobacco type is "xiaoju two X2F," the target group may be determined to be xiaoju, "and then: a first lower orange, a second lower orange and a third lower orange. It can therefore be determined that a first flue-cured tobacco type having a group adjacency with the next second orange comprises: the first lower orange and the second lower orange.

And C3, extracting second characteristic information of the first flue-cured tobacco type.

In the embodiment of the application, after the first flue-cured tobacco type is determined, the flue-cured tobacco characteristic information base is obtained, and second characteristic information corresponding to the first flue-cured tobacco type is extracted from the flue-cured tobacco characteristic information base.

And step C4, detecting the quantity of second flue-cured tobaccos meeting the second characteristic information from the flue-cured tobacco sample set.

In the embodiment of the application, the characteristic information of each flue-cured tobacco in the flue-cured tobacco sample set is extracted, the flue-cured tobacco of which the characteristic information belongs to the second characteristic information is determined as the target flue-cured tobacco type, and the number of the second flue-cured tobaccos of the first flue-cured tobacco type is counted.

And step C5, determining the ratio of the second flue-cured tobacco quantity to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as second proportion data.

In the embodiment of the application, the total number of the flue-cured tobaccos in the flue-cured tobacco sample set is obtained, the ratio between the second quantity of the flue-cured tobaccos and the total number of the flue-cured tobaccos is calculated, and the ratio is determined as second proportion data.

And S13, inquiring a second flue-cured tobacco type adjacent to the appearance quality of the target flue-cured tobacco type and third proportion data of the flue-cured tobacco of the second flue-cured tobacco type in the flue-cured tobacco sample set.

In an embodiment of the application, prior to querying for a second flue-cured tobacco type adjacent to the target flue-cured tobacco type appearance quality, and third proportion data of the second flue-cured tobacco type standing next to the set of flue-cured tobacco samples, the method further comprises the following steps D1-D3:

and D1, acquiring a flue-cured tobacco information base, wherein the flue-cured tobacco information base comprises at least one flue-cured tobacco type and appearance quality characteristics corresponding to the flue-cured tobacco type.

In this application embodiment, through collecting various flue-cured tobacco types to extract the appearance quality characteristic of each flue-cured tobacco type flue-cured tobacco, appearance quality characteristic includes: color, maturity, oil content, chroma, width, length, etc.

And D2, calculating the similarity between appearance quality characteristics of every two flue-cured tobacco types.

And D3, determining appearance quality adjacent information corresponding to the flue-cured tobacco type according to the similarity.

In this embodiment of the present application, the appearance quality neighboring information is an appearance quality table, and the appearance quality table includes: the method comprises the steps of selecting a target flue-cured tobacco type and flue-cured tobacco types with adjacent appearance qualities of the target flue-cured tobacco type, wherein the flue-cured tobacco types with adjacent appearance qualities are flue-cured tobacco types with similarity larger than a preset threshold value.

TABLE 2 appearance quality table

In an embodiment of the present application, querying a second flue-cured tobacco type adjacent to the appearance quality of the target flue-cured tobacco type, and third proportion data of the second flue-cured tobacco type by standing in the flue-cured tobacco sample set, comprises the following steps E1-E4:

and E1, inquiring a second flue-cured tobacco type having an adjacent relation with the target flue-cured tobacco type based on the appearance quality adjacent information.

And E2, extracting third characteristic information of the second flue-cured tobacco type.

In the embodiment of the application, after the second flue-cured tobacco type is determined, the flue-cured tobacco characteristic information base is obtained, and third characteristic information corresponding to the second flue-cured tobacco type is extracted from the flue-cured tobacco characteristic information base.

And E3, detecting the quantity of the third flue-cured tobaccos meeting the third characteristic information from the flue-cured tobacco sample set.

In the embodiment of the application, the characteristic information of each flue-cured tobacco in the flue-cured tobacco sample set is extracted, the flue-cured tobacco of which the characteristic information belongs to the third characteristic information is determined as the target flue-cured tobacco type, and the number of the third flue-cured tobaccos of the first flue-cured tobacco type is counted.

And E4, determining the ratio of the third flue-cured tobacco quantity to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as third ratio data.

And step S14, determining the purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

In this application embodiment, determine the purity information of target flue-cured tobacco type based on first proportion data, second proportion data and third proportion data, include: and calculating the sum of the first proportion data, the second proportion data and the third proportion data, and determining the sum as the purity information of the target flue-cured tobacco type.

As an example, the zhongju three C3F purchased at a certain tobacco leaf station is randomly selected, and according to the tobacco neighbor rank relation table, the zhongju two C2F and zhongju four C4F are adjacent tobacco types in the same group as the zhongju three C3F, wherein the number of zhongju three C3F is 54, the number of zhongju two C2F is 4, the number of zhongju four C4F is 23, and the total number of cured tobaccos is 132. The first proportion data calculated based on the above parameters is 0.409, and the second proportion data is 0.205.

In addition, the flue-cured tobacco types adjacent to the three appearance qualities of the Chinese oranges are obtained, and the flue-cured tobacco types are respectively as follows: medium lemon two C2L, medium lemon three C3L, and next orange one X1F. Then obtaining the corresponding quantity of the three flue-cured tobacco types as follows: 3. 17 and 2. The third proportion data calculated based on the above parameters was 0.167. And then, counting the sum of the first proportion data, the second proportion data and the third proportion data to be 0.781, and determining the 0.781 as the purity information of the Chinese orange three C3F.

Fig. 2 is a block diagram of a flue-cured tobacco purity detection apparatus provided in an embodiment of the present application, and the apparatus may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 2, the apparatus includes:

the determining module 21 is configured to determine a target flue-cured tobacco type to be detected for purity in the flue-cured tobacco sample set, and first proportion data of a flue-cured tobacco of the target flue-cured tobacco type in the flue-cured tobacco sample set;

the first query module 22 is configured to determine a target group to which the target flue-cured tobacco type belongs, and query, from the target group, a first flue-cured tobacco type adjacent to the target flue-cured tobacco type and second proportion data of flue-cured tobaccos of the first flue-cured tobacco type in the flue-cured tobacco sample set;

the second query module 23 is configured to query a second flue-cured tobacco type adjacent to the target flue-cured tobacco type in appearance quality, and third proportion data of flue-cured tobaccos of the second flue-cured tobacco type in the flue-cured tobacco sample set;

and the processing module 24 is configured to determine purity information of the target flue-cured tobacco type based on the first proportion data, the second proportion data and the third proportion data.

In the embodiment of the application, the determining module 21 is configured to extract first characteristic information corresponding to a target flue-cured tobacco type; detecting a first flue-cured tobacco quantity meeting first characteristic information from a flue-cured tobacco sample set; and determining the ratio of the first quantity of the flue-cured tobaccos to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as first proportion data.

In an embodiment of the present application, the apparatus further includes: the tobacco flue-curing system comprises a generating module, a processing module and a control module, wherein the generating module is used for acquiring a plurality of tobacco flue-curing group information, and each tobacco flue-curing group information at least comprises two tobacco flue-curing types; establishing an adjacent relation between at least two flue-cured tobacco types in the same flue-cured tobacco group; and generating a preset flue-cured tobacco information table based on the flue-cured tobacco type and the adjacent relation.

In the embodiment of the present application, the first query module 22 is configured to query a target group corresponding to a target flue-cured tobacco type from a preset flue-cured tobacco information table; determining a first flue-cured tobacco type having a group adjacent relation with the target flue-cured tobacco type based on the adjacent relation in the target group; extracting second characteristic information of the first flue-cured tobacco type; detecting a second quantity of flue-cured tobaccos meeting second characteristic information from the flue-cured tobacco sample set; and determining the ratio of the second quantity of the flue-cured tobaccos to the total quantity of the flue-cured tobaccos in the flue-cured tobacco sample set as second proportion data.

In an embodiment of the present application, the apparatus further includes: the flue-cured tobacco information base comprises at least one flue-cured tobacco type and appearance quality characteristics corresponding to the flue-cured tobacco type; calculating the similarity between appearance quality characteristics of every two flue-cured tobacco types; and determining the appearance quality adjacent information corresponding to the flue-cured tobacco type according to the similarity.

In the embodiment of the present application, the second query module 23 is configured to query, based on the appearance quality adjacent information, a second flue-cured tobacco type having an adjacent relationship with the target flue-cured tobacco type; extracting third characteristic information of a second flue-cured tobacco type; detecting a third flue-cured tobacco quantity meeting third characteristic information from the flue-cured tobacco sample set; and determining the ratio of the number of the third flue-cured tobaccos to the total number of the flue-cured tobaccos in the flue-cured tobacco sample set as third ratio data.

In this embodiment of the application, the processing module 24 is configured to calculate a sum of the first proportion data, the second proportion data, and the third proportion data, and determine the sum as the purity information of the target flue-cured tobacco type.

An embodiment of the present application further provides an electronic device, as shown in fig. 3, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.

A memory 1503 for storing a computer program;

the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.

The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the terminal and other equipment.

The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.

In another embodiment provided by the present application, there is further provided a computer-readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to perform the method for detecting the purity of flue-cured tobacco described in any of the above embodiments.

In another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, causes the computer to perform the method for detecting the purity of flue-cured tobacco described in any of the above embodiments.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.

The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:面向智能驾驶人工智能的风险治理优先级评估方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!