A method and device for determining the length of tobacco, an electronic device and a storage medium

By using image processing technology and correction coefficient calculation, the problems of time-consuming, labor-intensive, and inaccurate tobacco length measurement have been solved, enabling online measurement and timely adjustment of equipment parameters, thereby improving the accuracy of tobacco length detection and cigarette quality.

CN115841513BActive Publication Date: 2026-03-20CHINA TOBACCO JIANGSU INDAL
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing technologies for measuring tobacco shred length are time-consuming, labor-intensive, and inaccurate, and cannot be performed online, resulting in inaccurate tobacco shred length detection results, which affects cigarette quality and production efficiency.

Method used

By acquiring an image of the tobacco shreds to be detected, image processing technology is used to determine the length of the tobacco shreds to be corrected, a correction coefficient is applied to correct the error, and the actual length of the tobacco shreds is calculated by combining the preset tobacco shred width and area.

Benefits of technology

It enables online measurement of tobacco shred length, improving measurement accuracy and efficiency, and allowing for timely adjustment of tobacco processing equipment parameters, thereby enhancing cigarette quality and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115841513B_ABST
    Figure CN115841513B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for determining tobacco length, electronic equipment and storage medium, wherein the method comprises: acquiring a to-be-detected image corresponding to to-be-detected tobacco, and determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image; wherein the to-be-detected image comprises at least one to-be-detected tobacco; determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to a tobacco length interval corresponding to the to-be-corrected tobacco length; and determining an actual tobacco length corresponding to the to-be-detected tobacco based on a product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The problems that manual measurement of tobacco length is time-consuming and laborious, inaccurate and unable to measure tobacco length online are solved, and the effect that more accurate tobacco length is obtained based on online measurement in the tobacco processing process is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of tobacco processing, and in particular to a cut tobacco length determination method and device, electronic equipment and a storage medium. BACKGROUND

[0002] In the field of tobacco processing, the cut tobacco length structure is one of the main factors affecting the physical indicators of cigarettes.

[0003] Currently, when determining the cut tobacco length, a cut tobacco sample is usually extracted, and a quality inspection personnel determines the cut tobacco length by manually measuring, and determines whether the cut tobacco length meets the standard according to the measurement result. Such a cut tobacco length determination method not only consumes time and effort, but also has the problem of inaccurate cut tobacco length measurement because the cut tobacco structure and moisture content change during the measurement process.

[0004] In order to solve the above problems, the determination method of the cut tobacco length needs to be improved. SUMMARY

[0005] The present application provides a cut tobacco length determination method, device, electronic equipment and storage medium to solve the problems of time and effort consumption, inaccurate measurement and inability to measure the cut tobacco length online based on manual measurement of the cut tobacco length.

[0006] In a first aspect, the present application provides a cut tobacco length determination method, comprising:

[0007] obtaining a to-be-detected image corresponding to to-be-detected cut tobacco, and determining a to-be-corrected cut tobacco length of the to-be-detected cut tobacco in the to-be-detected image; wherein the to-be-detected image includes at least one to-be-detected cut tobacco;

[0008] determining a to-be-used correction coefficient corresponding to the to-be-corrected cut tobacco length according to a cut tobacco length interval corresponding to the to-be-corrected cut tobacco length;

[0009] determining an actual cut tobacco length corresponding to the to-be-detected cut tobacco based on a product of the to-be-corrected cut tobacco length and the to-be-used correction coefficient.

[0010] In a second aspect, the present application also provides a cut tobacco length determination device, comprising:

[0011] a to-be-detected image determination unit configured to obtain a to-be-processed image corresponding to to-be-detected cut tobacco, and perform binaryzation processing on the to-be-processed image to obtain a to-be-detected image;

[0012] a cut tobacco area determination unit configured to determine a to-be-determined cut tobacco area corresponding to the to-be-detected cut tobacco according to pixel points of the to-be-detected cut tobacco in the to-be-detected image;

[0013] The to-be-corrected tobacco length determination unit is configured to determine a preset tobacco width corresponding to the to-be-detected tobacco, and determine a to-be-corrected tobacco length corresponding to the to-be-detected tobacco according to the to-be-determined tobacco area and the preset tobacco width, wherein the preset tobacco width is an actual tobacco width of the to-be-detected tobacco.

[0014] In a third aspect, an electronic device is provided, comprising:

[0015] at least one processor; and

[0016] a memory connected with the at least one processor; wherein

[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the tobacco length determination method according to any one of the embodiments of the present application.

[0018] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer instructions for enabling a processor to implement the tobacco length determination method according to any one of the embodiments of the present application when the processor executes the computer instructions.

[0019] The technical scheme of the embodiment of the present application comprises the following steps: obtaining a to-be-detected image corresponding to the to-be-detected tobacco, determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image, determining a to-be-determined tobacco area according to the number of pixel points occupied by each to-be-detected tobacco in the to-be-detected image, determining an actual tobacco area corresponding to the to-be-detected tobacco according to a to-be-used scale corresponding to the to-be-detected image and the to-be-determined tobacco area, further determining the to-be-corrected tobacco length of the to-be-detected tobacco according to the to-be-determined tobacco area and a preset tobacco width, determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to a tobacco length interval corresponding to the to-be-corrected tobacco length, and determining an actual tobacco length corresponding to the to-be-detected tobacco based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The to-be-corrected tobacco length of the to-be-detected tobacco and the actual tobacco length have a certain error due to the tobacco state of the to-be-detected tobacco or the inclination angle between the to-be-detected tobacco and the camera during the shooting of the to-be-detected tobacco. The to-be-used correction coefficient corresponding to the to-be-corrected tobacco length can be determined according to the tobacco length interval corresponding to the to-be-corrected tobacco length. Further, the actual tobacco length corresponding to the to-be-detected tobacco is determined based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The problem that the tobacco length is measured by the manual method and is time-consuming, labor-consuming, inaccurate and cannot be measured online is solved. The to-be-corrected tobacco length is obtained by measuring the tobacco length of the tobacco in the image online, and the to-be-corrected tobacco length is corrected, so that a more accurate tobacco length is obtained based on the online measurement during the tobacco processing.

[0020] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0022] Figure 1 is a flow chart of a tobacco length determination method provided by the first embodiment of the present application;

[0023] Figure 2 is a to-be-processed image schematic diagram provided by the first embodiment of the present application;

[0024] Figure 3 is a to-be-detected image schematic diagram provided by the first embodiment of the present application;

[0025] Figure 4is a flow chart of a method for determining tobacco length according to the second embodiment of the present application;

[0026] Figure 5 is a flow chart of a method for determining tobacco length according to the third embodiment of the present application;

[0027] Figure 6 is a schematic diagram of a distribution of tobacco area density according to the third embodiment of the present application;

[0028] Figure 7 is a schematic diagram of a distribution of tobacco length density according to the third embodiment of the present application;

[0029] Figure 8 is a schematic diagram of a structure of a device for determining tobacco length according to the fourth embodiment of the present application;

[0030] Figure 9 is a schematic diagram of a structure of an electronic device implementing a method for determining tobacco length according to the present application. DETAILED DESCRIPTION

[0031] In order to make the personnel in the technical field better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the personnel in the field without creative labor should belong to the scope of protection of the present application.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0033] Before the present technical solution is described in detail, the application scenario of the present technical solution will be briefly introduced, so as to more clearly understand the present technical solution. In the field of tobacco processing technology, tobacco is processed into tobacco strands by cutting tobacco leaves into tobacco strands.

[0034] Tobacco is produced by tobacco leaf processing and rolling and packaging process into tobacco products for sale. The length structure of tobacco is one of the main factors affecting the physical index of cigarettes. The tobacco of different length structure has a certain influence on the quality and stability of cigarettes, and also has a significant influence on the quality index of cigarette filling capacity, cigarette draw resistance, end drop amount and burning smoke composition. In addition, the measurement and comparison of the length structure of tobacco before and after different processes can determine the process with the largest tobacco breakage and optimize it accordingly.

[0035] Generally, the detection of the length structure of tobacco for each tobacco processing process, such as rehydration, drying, winnowing, blending and flavoring, is carried out offline, mainly for the following reasons: first, the tobacco on the production line is wound together and cannot be distinguished and detected in real time; second, the detection of the length structure of tobacco by the tobacco organization requires quality inspection personnel to select and sample tobacco, use tobacco vibration sorting screen, manually weigh and count to obtain the proportion of long, medium, short and broken tobacco lengths, and cannot obtain the full-size tobacco length distribution structure. Therefore, the detection of the length structure of tobacco by the tobacco organization requires certain manpower consumption, needs to screen and classify the tobacco and weigh, the operation process is relatively complicated, and random errors may be introduced during the on-site personnel tobacco sample picking operation. At the same time, the tobacco is screened by vibration, the operation time is relatively long, and the tobacco structure and tobacco moisture content and other tobacco characteristics may change, which may lead to inaccurate detection results of the length of tobacco. Based on this, the technical scheme provides a tobacco length determination method, which can be applied to a tobacco length online measurement device for online measurement of the length of tobacco.

[0036] Embodiment one

[0037] Figure 1 A flowchart of a tobacco length determination method is provided for the first embodiment of the present application. The present embodiment can be applied to the online measurement of the length of tobacco in the tobacco processing process. The method can be executed by a tobacco length determination device, which can be realized in the form of hardware and / or software and can be configured in a computing device capable of executing the tobacco length determination method.

[0038] As shown in Figure 1 , the method comprises:

[0039] S110, acquiring a to-be-detected image corresponding to the to-be-detected tobacco, and determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image.

[0040] In practical applications, when processing the tobacco material, in order to determine the length of the tobacco in the tobacco material, whether the length of the tobacco is qualified is determined according to the length of the tobacco. The tobacco to be detected can be understood as the tobacco in the tobacco material in the tobacco processing process. It can be understood that the number of the tobacco to be detected in the tobacco material is multiple, and only one of the tobaccos to be detected is measured in detail in order to introduce the technical solution more clearly.

[0041] It can be understood that if the length of the tobacco to be detected is measured online, the image obtained by photographing the tobacco material in the tobacco processing process is the detected image. That is, the detected image includes at least one tobacco to be detected, and the actual length of the tobacco corresponding to each tobacco to be detected can be determined based on the detected image.

[0042] The tobacco length to be corrected can be understood as the length of the tobacco to be detected determined according to the detected image. It should be noted that there is a certain error between the tobacco length to be corrected and the actual length of the tobacco to be detected, because when the tobacco to be detected is photographed, the tobacco to be detected is not in a straight line most of the time, but has a certain bending or winding condition, and the tobacco to be detected may have a certain inclination angle with the camera during the photographing process. Therefore, the tobacco length to be corrected obtained based on the detected image cannot be directly used as the actual length of the tobacco to be detected, and further error correction of the tobacco length to be corrected is required to obtain the actual length of the tobacco.

[0043] In practical applications, when the tobacco to be detected is photographed, each tobacco to be detected in the tobacco material needs to be as dispersed as possible, therefore, the tobacco material needs to be processed to disperse the tobacco, so that the tobaccos to be detected in the detected image obtained by photographing are as dispersed and independent as possible.

[0044] Exemplarily, the tobacco material can be dropped from a high place, and the tobacco material becomes more dispersed during the falling process. At this time, the tobacco material during the falling process is photographed to obtain the detected image. Further, high-pressure gas can be used to disperse the tobacco material during the falling process of the tobacco material. The advantage of this operation is that each tobacco to be detected in the tobacco material is more dispersed, and the tobaccos to be detected in the detected image obtained by photographing are also more dispersed, which can be more accurately detected when determining the length of the tobacco to be detected.

[0045] After obtaining the detected image, the length of the tobacco to be detected in the detected image is measured to obtain the corresponding tobacco length to be corrected.

[0046] Optionally, the image to be detected corresponding to the tobacco to be detected is acquired, and the corrected tobacco length of the tobacco to be detected in the image to be detected is determined, including: acquiring the image to be processed corresponding to the tobacco to be detected, and performing binaryzation processing on the image to be processed to obtain the image to be detected; determining the to-be-determined tobacco area corresponding to the tobacco to be detected according to the pixel points of the tobacco to be detected in the image to be detected; determining the preset tobacco width corresponding to the tobacco to be detected, and determining the corrected tobacco length corresponding to the tobacco to be detected according to the to-be-determined tobacco area and the preset tobacco width.

[0047] The image to be processed can be understood as an image obtained by photographing the tobacco material. For example, a high-definition camera is used to photograph the tobacco material after being scattered to obtain the image to be processed, and the image to be processed includes at least one tobacco to be detected, as shown in Figure 2 In order to more conveniently and accurately measure the tobacco length of the tobacco to be detected, the image to be processed needs to be binaryzation processed to obtain the image to be detected, as shown in Figure 3 For example, the gray value of the region where the tobacco to be detected is located in the image to be processed is set to 255, and the gray value of other regions except the region where the tobacco to be detected is located is set to 0, that is, in the image to be detected, the tobacco to be detected is represented by white color, and other regions corresponding to the tobacco to be detected are represented by black color.

[0048] For example, the to-be-determined tobacco area of one of the tobaccos to be detected can be understood as the tobacco area corresponding to the tobacco to be detected in the image to be detected, and the to-be-determined tobacco area is determined based on the number of pixel points occupied by the tobacco to be detected in the image to be detected. For example, if the area corresponding to every 100 pixel points in the image to be detected is 1 mm 2 , if the number of pixel points occupied by the tobacco to be detected in the image to be detected is 1000, the to-be-determined tobacco area is 10 mm 2 The preset tobacco width is the actual tobacco width of the tobacco to be detected. It can be understood that in the process of tobacco processing, the cutting width of the tobacco is predetermined, and the preset tobacco width can be determined according to the predetermined tobacco cutting width.

[0049] Specifically, the image to be detected can be obtained by binaryzation processing the image to be processed containing the tobacco to be detected. For example, the to-be-determined tobacco area of one of the tobaccos to be detected can be determined according to the pixel points occupied by the tobacco to be detected in the image to be detected. Further, the corrected tobacco length corresponding to the tobacco to be detected can be obtained according to the to-be-determined tobacco area and the preset tobacco width.

[0050] Optionally, according to the to-be-determined tobacco area and the preset tobacco width, the to-be-corrected tobacco length corresponding to the to-be-detected tobacco is determined, including: determining a to-be-used scale corresponding to the to-be-detected image; determining an actual tobacco area corresponding to the to-be-detected tobacco according to the to-be-used scale and the to-be-determined tobacco area; and obtaining the to-be-corrected tobacco length corresponding to the to-be-detected tobacco based on a ratio of the actual tobacco area to the preset tobacco width.

[0051] The to-be-used scale can be understood as a ratio of the actual tobacco area of the to-be-detected tobacco to the to-be-determined tobacco area. For example, if the to-be-used scale is 5:1 and the to-be-determined tobacco area is 2, the actual tobacco area is 10 mm 2 .

[0052] Further, it can be understood that, after the actual tobacco area corresponding to the to-be-detected tobacco and the preset tobacco width are known, the to-be-corrected tobacco length corresponding to the to-be-detected tobacco can be obtained based on a ratio of the actual tobacco area to the preset tobacco width.

[0053] S120, according to the tobacco length interval corresponding to the to-be-corrected tobacco length, determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length.

[0054] The tobacco length interval is a length interval set based on the to-be-corrected tobacco length. The to-be-used correction coefficient can be understood as a coefficient for error compensation of the to-be-corrected tobacco length.

[0055] It should be noted that, in the technical solution, different to-be-used correction coefficients need to be set for different tobacco length intervals. The reason is that the error between the to-be-corrected tobacco length and the actual tobacco length corresponding to the to-be-detected tobacco with longer tobacco length is larger. If a uniform to-be-used correction coefficient is used for all to-be-corrected tobacco lengths, the error of the actual tobacco length obtained is larger. In order to make the to-be-corrected tobacco length compensated based on the to-be-used correction coefficient closer to the actual tobacco length, different to-be-used correction coefficients need to be set for different tobacco length intervals.

[0056] Optionally, determining the to-be-used correction coefficient corresponding to the to-be-corrected tobacco length includes: determining the to-be-used correction coefficient corresponding to the tobacco length interval based on a target mapping table.

[0057] The target mapping table can be understood as an information table recording the correspondence between the tobacco length interval and the to-be-used correction coefficient. The target mapping table includes at least one tobacco length interval and a correction coefficient corresponding to each tobacco length interval.

[0058] Exemplarily, the length of the to-be-corrected tobacco is L, different tobacco length intervals are set according to the length of the to-be-corrected tobacco, wherein the tobacco length interval 1 is L≤4mm, the tobacco length interval 2 is 4mm

[0059] It should be noted that the target mapping table mentioned in the technical solution can be displayed in the form of an information table, or the target mapping table can not be displayed. The target mapping table is only used to represent the corresponding relationship between the tobacco length interval and the to-be-used correction coefficient, and the specific form of the target mapping table is not limited.

[0060] S130, based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient, determining the actual tobacco length corresponding to the to-be-detected tobacco.

[0061] The actual tobacco length can be understood as the tobacco length that is closest to the true tobacco length of the to-be-detected tobacco.

[0062] Exemplarily, if the actual tobacco length corresponding to the to-be-detected tobacco is H, the to-be-corrected tobacco length corresponding to the to-be-detected tobacco is L, and the tobacco length interval corresponding to the to-be-detected tobacco is the tobacco length interval 1, then the to-be-used correction coefficient corresponding to the to-be-corrected tobacco length is α, and the actual tobacco length corresponding to the to-be-detected tobacco can be obtained based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient, that is, H=L*α.

[0063] The advantage of such setting is that by error compensation on the to-be-corrected tobacco length, a more accurate actual tobacco length can be obtained.

[0064] The technical scheme of the embodiment of the present application obtains the to-be-detected image corresponding to the to-be-detected tobacco, determines the to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image, determines the to-be-determined tobacco area according to the number of pixel points occupied by each to-be-detected tobacco in the to-be-detected image, determines the actual tobacco area corresponding to the to-be-detected tobacco according to the to-be-used scale corresponding to the to-be-detected image and the to-be-determined tobacco area, further, the to-be-corrected tobacco length of the to-be-detected tobacco can be obtained according to the to-be-determined tobacco area and the preset tobacco width. According to the tobacco length interval corresponding to the to-be-corrected tobacco length, the to-be-used correction coefficient corresponding to the to-be-corrected tobacco length is determined. Since there are problems such as the tobacco state of the to-be-detected tobacco or the inclination angle between the to-be-detected tobacco and the camera during the shooting of the to-be-detected tobacco, there is a certain error between the to-be-corrected tobacco length of the to-be-detected tobacco and the actual tobacco length. Through the tobacco length interval corresponding to the to-be-corrected tobacco length, the to-be-used correction coefficient corresponding to the to-be-corrected tobacco length can be determined, further, the actual tobacco length corresponding to the to-be-detected tobacco is determined based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The problem that the manual measurement of the tobacco length is time-consuming and laborious, inaccurate, and cannot measure the tobacco length online is solved. The to-be-corrected tobacco length is obtained by measuring the tobacco length of the tobacco in the image online, and the to-be-corrected tobacco length is corrected, so that a more accurate tobacco length is obtained based on the online measurement during the tobacco processing.

[0065] Embodiment two

[0066] Figure 4 A flowchart of a tobacco length determination method provided by the second embodiment of the present application. After determining the actual tobacco length corresponding to the to-be-detected tobacco, it can be determined whether the device parameter adjustment of the tobacco processing equipment corresponding to the to-be-detected tobacco is needed according to the tobacco distribution density corresponding to the actual tobacco length.

[0067] As Figure 4 shown, the method comprises:

[0068] S210, obtaining a to-be-detected image corresponding to to-be-detected tobacco, and determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image.

[0069] S220, determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to the tobacco length interval corresponding to the to-be-corrected tobacco length.

[0070] S230, determining the actual tobacco length corresponding to the to-be-detected tobacco based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient.

[0071] S240, determine actual cut tobacco length intervals corresponding to actual cut tobacco lengths of each cut tobacco to be detected.

[0072] The actual cut tobacco length interval is a length interval divided according to the actual cut tobacco length.

[0073] Generally, in order to ensure that the quality of the cigarette product based on the cut tobacco material is good, the length of the cut tobacco in the cut tobacco material needs to be controlled. It can be understood that during the processing, it is impossible to ensure that the length of all cut tobaccos in the cut tobacco material is the ideal cut tobacco length. When the length of most of the cut tobaccos in the cut tobacco material meets the cut tobacco length requirement, it can be considered that the cut tobacco in the cut tobacco material is qualified. That is, if the actual cut tobacco length corresponding to most of the cut tobaccos in the cut tobacco material is in the expected actual cut tobacco length interval, it can be determined that the processing state of the cut tobacco material is a qualified state.

[0074] S250, determine a device control mode corresponding to the cut tobacco processing device corresponding to the cut tobacco to be detected according to the number of cut tobaccos to be detected in each actual cut tobacco length interval.

[0075] The cut tobacco processing device includes at least one of a cut tobacco drying device, a cut tobacco feeding device, and a cut tobacco re-humidifying device. The device control mode includes a device parameter adjustment mode or a device continuous running mode.

[0076] Specifically, after determining the actual cut tobacco length corresponding to each cut tobacco to be detected, the actual cut tobacco length interval corresponding to each cut tobacco length to be detected is determined. By counting the number of cut tobaccos to be detected in each actual cut tobacco length interval, the device control mode corresponding to the cut tobacco processing device can be further determined.

[0077] Optionally, determining a device control mode corresponding to the cut tobacco processing device corresponding to the cut tobacco to be detected according to the number of cut tobaccos to be detected in each actual cut tobacco length interval includes: determining the number of cut tobaccos to be detected in each actual cut tobacco length interval, determining the corresponding cut tobacco length distribution density; determining the target cut tobacco length distribution density from each cut tobacco length distribution density, and determining whether the target cut tobacco length distribution density meets the cut tobacco density detection condition; if yes, adjusting the device parameters of the cut tobacco processing device; if no, controlling the cut tobacco processing device to continue running.

[0078] For example, taking the actual tobacco length interval A as an example, based on the proportion of the number of the to-be-detected tobacco in the actual tobacco length interval A in the total number of the to-be-detected tobacco, the tobacco length distribution density corresponding to the actual tobacco length interval A can be determined. It can be understood that the greater the tobacco length distribution density is, the more the number of the to-be-detected tobacco in the corresponding actual tobacco length interval is. The tobacco length distribution density corresponding to the actual tobacco length interval with the largest number of the to-be-detected tobacco is taken as the target tobacco length distribution density. The tobacco density detection condition can be a pre-set tobacco distribution density threshold. For example, the tobacco density detection condition can be set to 80% of the proportion of the number of the to-be-detected tobacco in the actual tobacco length interval in the total number of the to-be-detected tobacco. Further, if the target tobacco length distribution density is greater than 80%, it indicates that the tobacco processing equipment processing the to-be-detected tobacco meets the tobacco processing requirements, and the tobacco processing equipment can be controlled to continue running; otherwise, if the target tobacco length distribution density is less than 80%, it indicates that the tobacco processing equipment does not meet the tobacco processing requirements. It should be noted that when the target tobacco length distribution density does not meet the tobacco density detection condition, the reason is that there are too many to-be-detected tobaccos of short or long lengths in the tobacco material, that is, the equipment parameters of the tobacco processing equipment need to be adjusted.

[0079] For example, taking the process of drying the tobacco material as an example, if the proportion of the to-be-detected tobacco of short length is large, it indicates that the drying degree is too high when the tobacco material is dried, causing the to-be-detected tobacco to be prone to breakage. At this time, the equipment parameters of the tobacco processing equipment need to be adjusted, such as shortening the drying time or reducing the drying level. Conversely, if the proportion of the to-be-detected tobacco of long length is large, it indicates that the tobacco is too moist when the tobacco material is dried, causing the to-be-detected tobacco to be too long. At this time, the equipment parameters of the tobacco processing equipment need to be adjusted, such as increasing the drying time or increasing the drying level.

[0080] The advantage of such setting is that after the to-be-detected tobacco is measured online for the tobacco length, whether the processing result of the tobacco processing equipment of the corresponding tobacco processing process is qualified can be determined according to the proportion of different tobacco lengths, and when the to-be-detected tobacco is not processed by the tobacco processing equipment, the equipment parameters are adjusted in time to meet the tobacco processing requirements. That is, by measuring the tobacco length of the to-be-detected tobacco online, not only the measurement efficiency and accuracy can be improved, but also the tobacco processing equipment can be adjusted in time according to the processing state of the tobacco length to improve the tobacco processing qualification rate.

[0081] The technical solution of this embodiment determines the actual tobacco length range corresponding to the actual tobacco length of each tobacco shred to be tested. Based on a comparison of the actual tobacco lengths of each tobacco shred to be tested, the actual tobacco length range corresponding to each tobacco shred to be tested is determined, and the number of tobacco shreds to be tested within each actual tobacco length range is counted. Based on the number of tobacco shreds to be tested within each actual tobacco length range, the equipment control mode corresponding to the tobacco processing equipment corresponding to the tobacco shreds to be tested is determined. Based on the ratio of the number of tobacco shreds to be tested within each actual tobacco length range to the total number of tobacco shreds to be tested, the corresponding tobacco length distribution density is determined. A target tobacco length distribution density is determined from each tobacco length distribution density. If the target tobacco length distribution density meets the tobacco density detection conditions, the tobacco processing equipment corresponding to the tobacco shreds to be tested continues to operate; otherwise, the equipment parameters of the tobacco processing equipment are adjusted so that the target tobacco length distribution density obtained based on the tobacco processing equipment meets the corresponding tobacco density detection conditions. This invention addresses the problem that when the length of tobacco shreds is measured manually, the equipment parameters of the tobacco processing equipment are not adjusted in a timely manner if the length is not up to standard, resulting in unqualified tobacco shred length after processing and thus affecting the quality of tobacco products. The invention provides a solution that allows for timely adjustment of the equipment parameters when the length of tobacco shreds is unqualified, thereby improving the quality of tobacco processing.

[0082] Example 3

[0083] In a specific example, such as Figure 5 As shown, when measuring the length of each tobacco shred to be detected in the tobacco material online, the tobacco material can be photographed in real time by a high-speed camera installed in the tobacco processing equipment to obtain an image to be processed. It is understood that the tobacco material includes at least one tobacco shred to be detected; that is, the image to be processed includes at least one tobacco shred to be detected. Furthermore, to more accurately measure the length of the tobacco shred to be detected, the image to be processed needs to be binarized. Specifically, the grayscale value of each pixel corresponding to the tobacco shred to be detected in the image to be processed can be set to 255, and the pixels in other areas of the image to be processed can be set to 0. The resulting binarized image is then used as the image to be detected. The advantage of this setting is that when determining the length of the tobacco shred to be detected based on the image to be detected, the amount of data that needs to be processed is smaller, and the length of each tobacco shred to be detected can be obtained more quickly.

[0084] Based on this, a scale (i.e., the scale to be used) is determined between the number of image pixels in the image to be detected and their representation of the actual size. For example, the scale between pixels and actual size is determined by a calibration plate. Specifically, the ratio between the number of image pixels and the actual length is obtained by identifying the number of pixels representing a quantitative length of tobacco shreds on the calibration plate. For example, 1 mm in the actual size corresponds to 4.876 pixels in the image to be detected.

[0085] Simultaneously, in the image to be detected, the tobacco shreds to be detected can be displayed as connected components. Taking one tobacco shred as an example, the area of ​​the tobacco shred to be detected can be determined by the number of pixels it occupies in the connected components of the image. Furthermore, based on the area of ​​each tobacco shred to be detected in the image and the scale bar to be used in the image, the actual area of ​​the corresponding tobacco shred can be determined.

[0086] For example, in practical applications, the image to be detected includes 112 connected components, equivalent to 112 tobacco shreds to be detected. The area of ​​the tobacco shreds to be detected can be determined based on the number of pixels in each connected component in the image. The actual area of ​​the tobacco shreds can then be obtained based on the area of ​​the tobacco shreds to be detected and the scale to be used. As shown in Table 1:

[0087] Table 1. Actual tobacco shred area (mm²) for each type of tobacco shred to be tested 2 )

[0088] 5.74 16.82 5.95 23.17 29.12 8.82 21.53 9.23 12.92 1.85 20.92 24.00 6.77 14.36 12.31 29.74 11.48 1.64 13.95 48.40 30.15 8.41 1.44 2.05 42.66 1.23 2.26 17.84 61.53 10.46 35.27 2.87 10.66 10.87 12.51 4.72 3.08 18.87 9.64 2.87 6.77 1.85 68.70 21.94 11.48 29.33 5.74 29.12 43.68 19.07 5.33 42.04 5.13 30.35 13.95 18.46 1.23 8.20 12.72 10.66 10.66 5.13 8.41 1.23 21.12 15.79 36.71 1.85 44.71 19.48 37.53 8.82 4.51 13.33 19.48 9.23 22.76 13.33 8.82 1.44 26.46 49.43 9.23 32.61 14.15 27.28 17.23 13.95 28.30 3.49 1.85 17.64 22.76 48.20 42.04 8.82 2.46 21.53 29.53 14.77 30.15 10.05 30.35 18.87 10.05 28.71 19.07 40.81 3.08 1.64 4.10 6.56

[0089] like Figure 6 As shown in the figure, the horizontal axis represents the actual area of ​​the tobacco shreds to be tested, in mm. 2 The vertical axis represents the frequency of occurrence of each actual tobacco shred area. The histogram in the figure represents the frequency corresponding to each actual tobacco shred area, and the curve in the figure represents the probability distribution density curve based on each actual tobacco shred area.

[0090] In practical applications, the cutting width of the tobacco shreds to be detected is preset, for example, it can be preset to 1.0 mm. That is, the preset tobacco shred width is the actual width of the tobacco shreds to be detected. Knowing the actual tobacco shred area and actual tobacco shred width, the corresponding corrected tobacco shred length can be obtained based on the actual tobacco shred area and actual tobacco shred width. As shown in Table 2, Table 2 records the apparent length of each tobacco shred to be detected in the image, i.e., the corrected tobacco shred length:

[0091] Table 2. Length of tobacco shreds to be corrected (mm) for each type of tobacco shred to be tested.

[0092] 5.74 16.82 5.95 23.17 29.12 8.82 21.53 9.23 12.92 1.85 20.92 24.00 6.77 14.36 12.31 29.74 11.48 1.64 13.95 48.40 30.15 8.41 1.44 2.05 42.66 1.23 2.26 17.84 61.53 10.46 35.27 2.87 10.66 10.87 12.51 4.72 3.08 18.87 9.64 2.87 6.77 1.85 68.70 21.94 11.48 29.33 5.74 29.12 43.68 19.07 5.33 42.04 5.13 30.35 13.95 18.46 1.23 8.20 12.72 10.66 10.66 5.13 8.41 1.23 21.12 15.79 36.71 1.85 44.71 19.48 37.53 8.82 4.51 13.33 19.48 9.23 22.76 13.33 8.82 1.44 26.46 49.43 9.23 32.61 14.15 27.28 17.23 13.95 28.30 3.49 1.85 17.64 22.76 48.20 42.04 8.82 2.46 21.53 29.53 14.77 30.15 10.05 30.35 18.87 10.05 28.71 19.07 40.81 3.08 1.64 4.10 6.56

[0093] It should be noted that there is a certain error between the to-be-corrected tobacco length and the actual tobacco length of the to-be-detected tobacco, because in the shooting process of the to-be-detected tobacco, it is a process of three-dimensional space to two-dimensional plane bottom projection collapse, and the apparent length of the tobacco refers to the actual two-dimensional projection length of the tobacco (i.e. the to-be-corrected tobacco length). For example, there is an overlapping phenomenon between the to-be-detected tobaccos, or there is an inclination angle between the to-be-detected tobacco and the camera when shooting the to-be-detected tobacco, etc., which causes a certain error between the tobacco length determined based on the to-be-detected image and the actual tobacco length.

[0094] Therefore, in order to obtain a more accurate actual tobacco length of the to-be-detected tobacco, after obtaining the to-be-corrected tobacco length, it is also necessary to adjust the to-be-corrected tobacco length based on the to-be-used correction coefficient to obtain the actual tobacco length.

[0095] Exemplarily, in the technical solution, a tobacco length correction formula can be set in advance, and the to-be-used correction coefficient corresponding to different to-be-corrected tobacco length intervals is included in the tobacco length correction formula. For example, the tobacco length correction formula can be a piecewise function, and the tobacco length correction formula is as follows:

[0096]

[0097] Wherein, a is 1.32, β is 1.21, and γ is 1.05.

[0098] It should be noted that the above tobacco length correction formula is only an example and does not represent the to-be-used correction coefficient in actual application. In actual use, the to-be-used correction coefficient needs to be set according to the actual situation.

[0099] That is, after obtaining the to-be-corrected tobacco length corresponding to each to-be-detected tobacco based on the to-be-detected image, the to-be-used correction coefficient corresponding to each to-be-corrected tobacco length is determined, and the corresponding actual tobacco length is obtained based on the to-be-corrected tobacco length corresponding to each to-be-detected tobacco and the corresponding to-be-used correction coefficient.

[0100] On the basis of the above scheme, after determining the actual tobacco length corresponding to each to-be-detected tobacco, the actual tobacco length interval to which each actual tobacco length belongs is determined, and the tobacco length distribution density in the tobacco material is determined according to the number of to-be-detected tobaccos in each actual tobacco length interval, as shown in Figure 7 . Wherein, the horizontal coordinate in the figure represents the actual tobacco length of the to-be-detected tobacco, the unit is m, the vertical coordinate is the frequency of each actual tobacco length, the histogram in the figure represents the frequency corresponding to each actual tobacco length, and the curve in the figure represents the probability distribution density curve formed based on each actual tobacco length.

[0101] Further, the maximum tobacco length distribution density is determined as the target tobacco length distribution density, so as to determine whether the processing of the tobacco material by the tobacco processing device is qualified according to the target tobacco length distribution density, and whether the device parameters of the tobacco processing device need to be adjusted.

[0102] Specifically, according to the number of the to-be-detected tobacco in each actual tobacco length interval, the corresponding tobacco length distribution density can be determined. The greater the tobacco length distribution density is, the more the number of the to-be-detected tobacco in the actual tobacco length interval is. Therefore, the maximum tobacco length distribution density can be taken as the target tobacco length distribution density. It can be understood that the advantage of determining the target tobacco length distribution density is that the tobacco length distribution of the to-be-detected tobacco in the tobacco material being processed can be determined according to the target tobacco length distribution density. For example, if the actual tobacco length interval corresponding to the target tobacco length distribution density is 4-10 mm, it indicates that most of the to-be-detected tobacco in the tobacco material being processed has a length between 4 mm and 10 mm.

[0103] Further, the target tobacco length is detected based on the tobacco density detection condition, so as to determine whether the processing result of the tobacco material is qualified. For example, if the tobacco density detection condition is that the tobacco length between 4 mm and 10 mm has the maximum proportion in the tobacco material, it indicates that the processing result of the tobacco material meets the density detection condition, and accordingly, the processing result of the tobacco material is qualified. Based on this, the tobacco processing device can continue to process the tobacco material according to the current device parameters.

[0104] On the contrary, if the target tobacco length distribution density does not meet the tobacco density detection condition, it indicates that the device parameters of the tobacco processing device are not reasonable enough, resulting in that the proportion of the tobacco length being too long or too short, such as the processing time parameter of the tobacco processing device. Based on this, the device parameters can be adjusted in time when the tobacco length processing is unqualified, so as to meet the tobacco processing requirements.

[0105] The technical scheme of the embodiment of the present application comprises the following steps: obtaining a to-be-detected image corresponding to to-be-detected tobacco, determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image, determining a to-be-determined tobacco area according to the number of pixel points occupied by each to-be-detected tobacco in the to-be-detected image, determining an actual tobacco area corresponding to the to-be-detected tobacco according to a to-be-used scale corresponding to the to-be-detected image and the to-be-determined tobacco area, further determining the to-be-corrected tobacco length of the to-be-detected tobacco according to the to-be-determined tobacco area and a preset tobacco width, determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to a tobacco length interval corresponding to the to-be-corrected tobacco length, and determining an actual tobacco length corresponding to the to-be-detected tobacco based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The present application solves the problems of time-consuming and labor-consuming, inaccurate measurement and online measurement of tobacco length by manual measurement, and achieves the effect of obtaining more accurate tobacco length in the tobacco processing process by online measurement.

[0106] Embodiment four

[0107] Figure 8 A structure schematic diagram of a tobacco length determination device provided by the fourth embodiment of the present application is shown in FIG. 4. As shown in the figure, the device comprises a to-be-corrected tobacco length determination module 310, a correction coefficient determination module 320 and an actual tobacco length determination module 330. Figure 8

[0108] The to-be-corrected tobacco length determination module 310 is configured to obtain a to-be-detected image corresponding to to-be-detected tobacco, and determine a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image; the to-be-detected image comprises at least one to-be-detected tobacco.

[0109] The correction coefficient determination module 320 is configured to determine a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to a tobacco length interval corresponding to the to-be-corrected tobacco length.

[0110] The actual tobacco length determination module 330 is configured to determine an actual tobacco length corresponding to the to-be-detected tobacco based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient.

[0111] ​The technical scheme of the embodiment of the present application comprises the following steps: obtaining a to-be-detected image corresponding to the to-be-detected tobacco, and determining a to-be-corrected tobacco length of the to-be-detected tobacco in the to-be-detected image; the to-be-detected image comprises at least one to-be-detected tobacco; determining a to-be-used correction coefficient corresponding to the to-be-corrected tobacco length according to a tobacco length interval corresponding to the to-be-corrected tobacco length; and determining an actual tobacco length corresponding to the to-be-detected tobacco based on the product of the to-be-corrected tobacco length and the to-be-used correction coefficient. The problem that the tobacco length is measured by using a manual method, which is time-consuming and laborious, inaccurate, and cannot be measured on line, is solved. The to-be-corrected tobacco length is obtained by measuring the tobacco length of the tobacco in the image on line, and the to-be-corrected tobacco length is corrected, so that a more accurate tobacco length is obtained based on the on-line measurement in the tobacco processing process.

[0112] Optionally, the to-be-corrected tobacco length determining module comprises a to-be-detected image determining unit configured to obtain a to-be-processed image corresponding to the to-be-detected tobacco, and perform binaryzation processing on the to-be-processed image to obtain the to-be-detected image.

[0113] The to-be-determined tobacco area determining unit is configured to determine a to-be-determined tobacco area corresponding to the to-be-detected tobacco according to the pixel points of the to-be-detected tobacco in the to-be-detected image.

[0114] The to-be-corrected tobacco length determining unit is configured to determine a preset tobacco width corresponding to the to-be-detected tobacco, and determine the to-be-corrected tobacco length corresponding to the to-be-detected tobacco according to the to-be-determined tobacco area and the preset tobacco width; wherein the preset tobacco width is an actual tobacco width of the to-be-detected tobacco.

[0115] Optionally, the to-be-corrected tobacco length determining unit comprises a scale determining subunit configured to determine a to-be-used scale corresponding to the to-be-detected image.

[0116] The actual tobacco area determining subunit is configured to determine an actual tobacco area corresponding to the to-be-detected tobacco according to the to-be-used scale and the to-be-determined tobacco area.

[0117] The to-be-corrected tobacco length determining subunit is configured to obtain the to-be-corrected tobacco length corresponding to the to-be-detected tobacco based on the ratio of the actual tobacco area and the preset tobacco width.

[0118] Optionally, the correction coefficient determining module comprises a correction coefficient determining unit configured to determine the to-be-used correction coefficient corresponding to the tobacco length interval based on a target mapping table; wherein the target mapping table comprises at least one tobacco length interval and a correction coefficient corresponding to each tobacco length interval.

[0119] Optionally, the tobacco length determination apparatus further comprises: an actual tobacco length interval module, configured to determine an actual tobacco length interval corresponding to the actual tobacco length of each to-be-detected tobacco;

[0120] The control mode determination module is configured to determine a device control mode corresponding to the tobacco processing device corresponding to the to-be-detected tobacco according to the number of to-be-detected tobaccos in each actual tobacco length interval, wherein the tobacco processing device comprises at least one of a tobacco drying device, a tobacco feeding device and a tobacco humidifying device, and the device control mode comprises a device parameter adjustment mode or a device continuous operation mode.

[0121] Optionally, the control mode determination module comprises: a tobacco length distribution density determination unit, configured to determine the number of to-be-detected tobaccos in each actual tobacco length interval, and determine a corresponding tobacco length distribution density.

[0122] The judgment unit is configured to determine a target tobacco length distribution density from the tobacco length distribution densities, and determine whether the target tobacco length distribution density meets a tobacco density detection condition.

[0123] The first unit is configured to, if yes, adjust a device parameter of the tobacco processing device.

[0124] The second unit is configured to, if no, control the tobacco processing device to continue operation.

[0125] The tobacco length determination apparatus provided by the embodiment of the present application can execute the tobacco length determination method provided by any embodiment of the present application, and has the corresponding function modules and beneficial effects of the execution method.

[0126] Embodiment five

[0127] Figure 9 A structural schematic diagram of an electronic device 10 of an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the applications described and / or claimed in this document.

[0128] As Figure 9As shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11, where the memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0129] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, a speaker, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0130] The processor 11 can be various general and / or special-purpose processing components with processing and computing capabilities. Some examples of the 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 appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the tobacco length determination method.

[0131] In some embodiments, the tobacco length determination method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the tobacco length determination method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the tobacco length determination method by any other appropriate means, such as by means of firmware.

[0132] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on a chip systems (SOCs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0133] Computer programs used to implement the tobacco length determination method of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program running on the processor implements the functions / operations specified in the flow charts and / or block diagrams. The computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package, partly on a machine and partly on a remote machine or entirely on a remote machine or server.

[0134] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are 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 can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0135] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device 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 a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; 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 acoustic, speech, or tactile input.

[0136] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0137] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.

[0138] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in a different order, as long as the desired results of the present disclosure are achieved, and the present disclosure is not limited herein.

[0139] The specific embodiments described above are not intended to be limiting, and persons skilled in the art will appreciate that various modifications, combinations, sub-combinations and alternatives can be made to the specific embodiments without departing from the spirit and principles of the disclosure. Accordingly, the disclosure is not limited to the specific embodiments described above, but only by the scope of the appended claims.

Claims

1. A method for determining the length of tobacco shreds, characterized in that, include: Acquire a detection image corresponding to the tobacco shreds to be detected, and determine the length of the tobacco shreds to be detected in the detection image to be corrected; wherein the detection image includes at least one tobacco shred to be detected; Based on the tobacco length range corresponding to the tobacco length to be corrected, determine the correction coefficient to be used corresponding to the tobacco length to be corrected; Based on the product of the length of the tobacco shreds to be corrected and the correction coefficient to be used, the actual length of the tobacco shreds corresponding to the tobacco shreds to be detected is determined; The method for determining the length of tobacco shreds further includes: determining the actual tobacco shred length range corresponding to the actual tobacco shred length of each tobacco shred to be tested; determining the equipment control mode corresponding to the tobacco shred processing equipment corresponding to the tobacco shred to be tested based on the number of tobacco shreds to be tested within each actual tobacco shred length range; wherein the tobacco shred processing equipment includes at least one of tobacco drying equipment, tobacco feeding equipment, and tobacco rehumidification equipment, and the equipment control mode includes equipment parameter adjustment mode or equipment continued operation mode; The step of determining the equipment control method corresponding to the tobacco processing equipment based on the number of tobacco shreds to be tested within each actual tobacco shred length range includes: determining the number of tobacco shreds to be tested within each actual tobacco shred length range, and determining the corresponding tobacco shred length distribution density; determining the target tobacco shred length distribution density from each tobacco shred length distribution density, and determining whether the target tobacco shred length distribution density meets the tobacco density detection conditions; if yes, adjusting the equipment parameters of the tobacco processing equipment; if no, controlling the tobacco processing equipment to continue operating.

2. The method according to claim 1, characterized in that, The step of acquiring a detection image corresponding to the tobacco shreds to be detected, and determining the length of the tobacco shreds to be detected in the detection image, includes: Obtain the image to be processed corresponding to the tobacco shreds to be detected, and perform binarization processing on the image to be processed to obtain the image to be detected; Based on the pixels of the tobacco shreds to be detected in the image to be detected, determine the area of ​​the tobacco shreds to be determined corresponding to the tobacco shreds to be detected; A preset tobacco width corresponding to the tobacco shreds to be detected is determined, and the length of the tobacco shreds to be corrected corresponding to the tobacco shreds to be detected is determined based on the area of ​​the tobacco shreds to be determined and the preset tobacco width; wherein, the preset tobacco width is the actual tobacco width of the tobacco shreds to be detected.

3. The method according to claim 2, characterized in that, The step of determining the length of the tobacco shred to be corrected corresponding to the tobacco shred to be detected based on the area of ​​the tobacco shred to be determined and the preset width of the tobacco shred includes: Determine the scale bar to be used corresponding to the image to be detected; Based on the scale to be used and the area of ​​the tobacco to be determined, determine the actual tobacco area corresponding to the tobacco to be detected; Based on the ratio of the actual tobacco area to the preset tobacco width, the length of the tobacco to be corrected corresponding to the tobacco to be detected is obtained.

4. The method according to claim 1, characterized in that, The determination of the correction coefficient to be used corresponding to the length of the tobacco shreds to be corrected includes: Based on the target mapping table, the correction coefficients to be used corresponding to the tobacco length intervals are determined; wherein the target mapping table includes at least one tobacco length interval and correction coefficients corresponding to each tobacco length interval.

5. A device for determining the length of tobacco shreds, characterized in that, include: The module for determining the length of tobacco shreds to be corrected is used to acquire an image to be detected corresponding to the tobacco shreds to be detected, and to determine the length of the tobacco shreds to be corrected in the image to be detected; wherein the image to be detected includes at least one tobacco shred to be detected; The correction coefficient determination module is used to determine the correction coefficient to be used corresponding to the length of the tobacco shreds to be corrected, based on the tobacco shred length range corresponding to the length of the tobacco shreds to be corrected. The actual tobacco length determination module is used to determine the actual tobacco length corresponding to the tobacco to be detected based on the product of the tobacco length to be corrected and the correction coefficient to be used. The tobacco shred length determination device further includes: an actual tobacco shred length range module, used to determine the actual tobacco shred length range corresponding to the actual tobacco shred length of each tobacco shred to be tested; and a control mode determination module, used to determine the equipment control mode corresponding to the tobacco shred processing equipment corresponding to the tobacco shred to be tested based on the number of tobacco shreds to be tested within each actual tobacco shred length range; wherein the tobacco shred processing equipment includes at least one of a tobacco shred drying equipment, a tobacco shred feeding equipment, and a tobacco shred rehumidification equipment, and the equipment control mode includes an equipment parameter adjustment mode or an equipment continued operation mode; The control method determination module includes: a tobacco length distribution density determination unit, used to determine the number of tobacco shreds to be detected within each actual tobacco length interval and determine the corresponding tobacco length distribution density; a judgment unit, used to determine the target tobacco length distribution density from each tobacco length distribution density and determine whether the target tobacco length distribution density meets the tobacco density detection conditions; a first unit, used to adjust the equipment parameters of the tobacco processing equipment if yes; and a second unit, used to control the tobacco processing equipment to continue operating if no.

6. The apparatus according to claim 5, characterized in that, The module for determining the length of the tobacco shreds to be corrected includes: The image to be detected determination unit is used to acquire an image to be processed corresponding to the tobacco to be detected, and to perform binarization processing on the image to be processed to obtain the image to be detected; The unit for determining the area of ​​tobacco shreds to be determined is used to determine the area of ​​tobacco shreds to be determined corresponding to the tobacco shreds to be detected based on the pixels of the tobacco shreds to be detected in the image to be detected; The unit for determining the length of tobacco shreds to be corrected is used to determine a preset tobacco shred width corresponding to the tobacco shreds to be detected, and to determine the length of tobacco shreds to be corrected corresponding to the tobacco shreds to be detected based on the area of ​​the tobacco shreds to be determined and the preset tobacco shred width; wherein, the preset tobacco shred width is the actual tobacco shred width of the tobacco shreds to be detected.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the tobacco length determination method according to any one of claims 1-4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for determining the length of tobacco shreds as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Length standardization e.g. for examination and or for measurement by articles such as printed elements and notes, involves having opening for articles with picture recording procedure provided which can be measured and examined

    DE102006051710A1