Particle detection method, electronic equipment, storage medium and product
By using mobile modules, heating modules, clamping modules and image acquisition modules in the granular cigarette detection equipment, the subjectivity and inaccuracy of the filling state detection of particulate material in the prior art are solved. Accurate evaluation and adjustment of particulate material distribution is achieved.
Patent Information
- Application Number
- CN202411277894.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, the detection of the filling state of particulate materials in particulate cigarettes is subjective and inaccurate, and the distribution of particulate materials cannot be accurately evaluated.
Using a particle detection device including a moving module, a heating module, a clamping module and an image acquisition module, the image analysis process is performed to determine the area information that is not filled with the particulate material, and then Determine the particle detection results.
It improves the accurate evaluation of the distribution of particulate materials, reduces the subjectivity of manual observation, improves the user experience, and facilitates the subsequent adjustment of particulate materials based on the detection results.
Smart Images

Figure CN119086548A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a particle detection method, electronic equipment, storage medium and product. Background Art
[0002] Granular cigarettes are a type of heated cigarettes, which are filled with granular materials containing smoke-generating agents. At present, the equipment used with granular cigarettes is usually an inner core needle-type heating device. When users use granular cigarettes, the heating needle of the inner core needle-type heating device is inserted into the granular cigarette to heat the granular material in the cigarette to release smoke, thereby achieving the inhalation of the cigarette.
[0003] At present, the filling status of granular materials in cigarettes is usually detected by relevant staff to observe whether the cigarettes filled with granular materials meet the filling standards. However, since the heating needle in the heated tobacco device will squeeze the granular materials during the insertion of the granular cigarettes, the granular materials will move in the cigarettes. Manual observation of heated cigarettes alone is not only subjective, but also lacks a unified judgment standard, and it is impossible to accurately evaluate the overall filling status of the granules in the cigarettes. Summary of the invention
[0004] The present invention provides a particle detection method, electronic equipment, storage medium and product, which realize accurate evaluation of particle materials in a cigarette to be detected.
[0005] According to one aspect of the present invention, a particle detection method is provided, which is applied to a particle detection device. The particle detection device includes: a moving module, a heating module, a clamping module and an image acquisition module. The moving module is connected to the clamping module and is used to control the clamping module to move toward a target direction when the clamping module acts on a cigarette to be detected. The heating module is used to heat the cigarette to be detected when the cigarette to be detected moves to a target position. The image acquisition module is used to collect a to-be-processed image including the cigarette to be detected when the cigarette to be detected moves to the target position. The method includes:
[0006] Obtaining images to be processed of the cigarette to be detected at different moving times; wherein the cigarette to be detected is a cigarette filled with granular material;
[0007] For the images to be processed at different moving durations, image analysis processing is performed on the image to be processed at the current moving duration to determine the region information of the cigarette region not filled with granular material in the image to be processed at the current moving duration;
[0008] Based on the regional information under different moving durations, the target particle detection results corresponding to the cigarette to be detected are determined.
[0009] According to another aspect of the present invention, there is provided a particle detection device, the device comprising:
[0010] An image acquisition module is used to acquire images to be processed of the cigarette to be detected at different moving times; wherein the cigarette to be detected is a cigarette filled with granular material;
[0011] An image analysis module is used to perform image analysis processing on the image to be processed at the current moving time for the images to be processed at different moving time, and determine the area information of the cigarette area not filled with granular material in the image to be processed at the current moving time;
[0012] The detection result determination module is used to determine the target particle detection result corresponding to the cigarette to be detected based on the area information under different movement durations.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the particle detection method of any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the particle detection method of any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the particle detection method according to any embodiment of the present invention.
[0019] The technical solution of the embodiment of the present invention is applied to a particle detection device, and the moving module, heating module, clamping module and image acquisition module in the particle detection device process the cigarette to be detected to obtain the image to be processed of the cigarette to be detected. The images to be processed of the cigarette to be detected under different moving durations are obtained; wherein the cigarette to be detected is a cigarette filled with granular material, which provides support for the analysis of subsequent images. For the images to be processed under different moving durations, the image to be processed under the current moving duration is subjected to image analysis processing to determine the regional information of the cigarette area not filled with granular material in the image to be processed under the current moving duration. Based on the regional information under different moving durations, the target particle detection result corresponding to the cigarette to be detected is determined. By analyzing the regional information under different moving durations, the problem of subjectivity and inaccurate evaluation caused by manual observation in the prior art is solved, the accuracy of image analysis is improved, and the accurate evaluation of the distribution of granular materials in the cigarette to be detected is achieved, which facilitates the subsequent adjustment of the granular material in the cigarette to be detected according to the target particle detection result, thereby improving the user experience.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a particle detection method provided by an embodiment of the present invention;
[0023] Figure 2 is an example diagram of a particle detection device provided by an embodiment of the present invention;
[0024] Figure 3 is a flow chart of a particle detection method provided by an embodiment of the present invention;
[0025] Figure 4 is a schematic structural diagram of a particle detection device provided by an embodiment of the present invention;
[0026] Figure 5 It is a schematic diagram of the structure of an electronic device for implementing the particle detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Before executing the technical solution provided by the present invention, the application scenario may be described first. The image to be processed in the embodiment of the present invention is obtained by a particle detection device. The particle detection device includes a moving module, a heating module, a clamping module and an image acquisition module. Among them, the moving module is connected to the clamping module, and is used to control the clamping module to move in the target direction when the clamping module acts on the cigarette to be detected. The heating module is used to heat the cigarette to be detected. The heating module may include a heating needle and a heater. The heating needle is used to be inserted into the cigarette to be detected. The heater is used to heat the cigarette to be detected after the heating needle is fully inserted into the cigarette to be detected. The image acquisition module is used to capture the image to be processed including the cigarette to be detected when the cigarette to be detected moves to the target position.
[0030] Embodiment 1
[0031] Figure 1 This is a flow chart of a particle detection method provided by the first embodiment of the present invention. This embodiment can be applied to detecting the distribution of the particle material filled in the cigarette to be detected. The method can be executed by a particle detection device. The particle detection device can be implemented in the form of hardware and / or software. The particle detection device can be configured in an electronic device such as a mobile phone, a computer or a server. Figure 1 As shown, the method includes:
[0032] S110, obtaining images to be processed of the to-be-detected cigarettes at different moving durations; wherein the to-be-detected cigarettes are cigarettes filled with granular materials.
[0033] Among them, the cigarette to be tested can be understood as a cigarette filled with granular material. Granular material can be understood as a material that generates smoke when heated. For example, the cigarette to be tested can be a granular heated cigarette, which is filled with granular material that generates smoke. When the heating needle of the heating module is inserted into the cigarette to be tested, the granular material in the cigarette to be tested will move. Therefore, in order to accurately determine the distribution of granular material in the cigarette to be tested, images of the cigarette to be tested at different moving times can be collected to obtain images to be processed. The image to be processed is the image of the cigarette to be tested at different moving times. It can be understood that the image to be processed is the image corresponding to the different depths of the heating needle inserted into the cigarette to be tested. It should be noted that, in order to facilitate subsequent image acquisition, the main body of the cigarette to be tested is a transparent tube with a breathable film sealed at the bottom, and the transparent tube is filled with granular material that can release smoke.
[0034] Specifically, when the clamping module in the particle detection device acts on the cigarette to be detected, the moving module is used to control the clamping module to move in the target direction. The target direction is the direction corresponding to the heating module. When it is detected that the cigarette to be detected moves to the target position, the cigarette to be detected moves downward at a fixed speed. In this process, the image acquisition module captures the image of the cigarette to be detected and obtains the image to be processed. The target position can be understood as the position where the cigarette to be detected contacts the heating module, that is, the position where the cigarette to be detected contacts the heating needle of the heating module.
[0035] The collected images to be processed of the cigarette to be detected are obtained. Since the image acquisition module performs image acquisition when the cigarette to be detected moves to the target position and moves downward at a fixed speed, the image acquisition module can obtain the images to be processed of the cigarette to be detected under different moving time lengths.
[0036] For example, see Figure 2 , Figure 2 This is an example diagram of a particle detection device. Figure 2 A represents the moving module, B represents the mechanical processing module, C represents the clamping module, D represents the cigarette to be tested, F represents the heating needle in the heating module, E represents the heater in the heating module, and G represents the image acquisition module.
[0037] exist Figure 2 In the embodiment, the mobile module A controls the clamping module holding the cigarette to be tested to move downward, so that the heating needle in the heating module can be inserted into the cigarette to be tested. When the heating needle is inserted into the cigarette to be tested, the image acquisition module acquires images of the cigarette to be tested, and obtains images to be processed corresponding to different insertion stages, that is, images to be processed under different moving durations.
[0038] In an embodiment of the present invention, in order to ensure that the cigarette to be detected moves downward at a preset speed, the insertion force can also be adjusted. The mechanical processing module in the particle detection device is used to detect the insertion force change information of the moving module. The method also includes: obtaining the insertion force change information; based on the insertion force change information and the preset corresponding relationship, adjusting the insertion force corresponding to the moving module, so that the cigarette to be detected moves toward the target direction at a preset speed, wherein the preset corresponding relationship is the relationship between the insertion force and the moving speed of the moving module.
[0039] The insertion force variation information can be understood as the variation information of the relevant force corresponding to the process of the heating module inserting the cigarette to be tested. Figure 2 For example, when the heating needle is inserted into the granular material of the cigarette to be tested, there will be information about the change in insertion force due to a certain resistance. In order to ensure the accuracy of subsequent image acquisition, the mobile module can be controlled to move in the target direction at a preset speed. At this time, the insertion force can be adjusted. The insertion force can be understood as the force applied to the cigarette to be tested to be inserted into the heating module during the downward movement of the clamping module holding the cigarette to be tested controlled by the mobile module. The preset speed can be a pre-set fixed moving speed when the mobile module moves in the target direction. The target direction is the direction corresponding to the heating module. The preset corresponding relationship is a pre-set relationship between the insertion force and the moving speed of the mobile module. Optionally, the preset corresponding relationship can be proportional to the insertion force and the moving speed of the mobile module.
[0040] Specifically, when the heating module is inserted into the cigarette to be tested, the insertion force may change. The mechanical processing module in the particle detection device collects the insertion force change information. Based on the insertion force change information and the preset correspondence between the insertion force and the moving speed, the insertion force corresponding to the moving module is adjusted while ensuring that the moving speed is the preset speed, so that the cigarette to be tested continues to move toward the target direction at the preset speed.
[0041] Exemplarily, in combination with the above example, when the mobile module controls the cigarette to be detected to move downward, when the heating needle of the heating module is inserted into the cigarette to be detected, due to the presence of a certain resistance, the corresponding moving speed of the mobile module will be affected. In order to ensure the accuracy of subsequent image acquisition, the cigarette to be detected can be controlled to move downward at a preset speed. In this process, the insertion force of the mobile module can be adjusted according to the insertion force change information and the preset corresponding relationship, so that the cigarette to be detected continues to move downward at a preset speed based on the adjusted insertion force.
[0042] S120. For the images to be processed at different moving durations, perform image analysis processing on the image to be processed at the current moving duration to determine the region information of the cigarette region not filled with granular material in the image to be processed at the current moving duration.
[0043] The regional information of the cigarette region not filled with granular materials can be understood as the information of the gap region not filled with granular materials in the transparent tube of the cigarette to be detected in the image to be processed.
[0044] Specifically, since the processing methods of the images to be processed under different moving durations are the same, the cigarette to be detected under the current moving duration is used for illustration. The image to be processed is analyzed to determine the regional information of the cigarette area that is not filled with granular materials in the cigarette to be detected in the image to be processed, so as to determine the distribution of granular materials in the cigarette to be detected based on the regional information of the cigarette area.
[0045] Furthermore, to ensure the accuracy of subsequent particle evaluation results, the image to be processed may be an image containing the cigarette to be detected at at least one acquisition angle.
[0046] In an embodiment of the present invention, determining the regional information of the cigarette area that is not filled with granular material in the image to be processed at the current moving duration can be: for the image to be processed at at least one acquisition angle at the current moving duration, grayscale processing is performed on the image to be processed at each acquisition angle to determine the grayscale image corresponding to the image to be processed; threshold segmentation is performed on the grayscale image, and binarization is performed on the grayscale image after the threshold segmentation processing to obtain the binary image corresponding to the image to be processed; based on the binary image, the regional information of at least one cigarette area that is not filled with granular material is determined.
[0047] The grayscale image may be an image obtained by grayscale processing the image to be processed. The binary image may be an image obtained by binary processing the grayscale image. The pixel values in the binary image have only two values, usually 0 and 1.
[0048] Specifically, for each moving duration, the image to be processed can be collected at at least one collection angle by the image acquisition module. That is, each moving duration corresponds to an image to be processed at at least one collection angle. Since the image processing method of the image to be processed corresponding to each collection angle at each moving duration is similar, the following description is based on the image to be processed at the current collection angle at the current moving duration. Grayscale processing is performed on the image to be processed at the current collection angle at the current moving duration to obtain a grayscale image corresponding to the image to be processed. A preset pixel threshold is set, and the pixel value corresponding to each pixel point in the grayscale image is threshold segmented by the preset pixel threshold, and the pixels in the grayscale image are divided into different categories. For example, the pixels in the grayscale image are divided into foreground pixels and background pixels. According to the category corresponding to each pixel point, the grayscale image is binarized to obtain a binary image corresponding to the image to be processed. Through the binary image, the regional information of at least one cigarette area filled with granular material can be determined.
[0049] S130: Determine the target particle detection result corresponding to the cigarette to be detected based on the area information under different moving time lengths.
[0050] The target particle detection result may be a detection result of the filling condition of the particle material in the cigarette to be detected. Optionally, the target particle detection result may be that the particle material filling condition in the cigarette to be detected is qualified or that the particle material filling condition in the cigarette to be detected is unqualified.
[0051] Specifically, according to the area information corresponding to different acquisition angles under the current moving duration, the area information corresponding to each acquisition angle under the current moving duration is determined. According to the area information corresponding to at least one acquisition angle under the current moving duration and the cigarette area corresponding to the cigarette to be detected under each acquisition angle, the area ratio of the cigarette area not filled with granular material under the current moving duration is determined. Based on this, the area ratio of the cigarette area not filled with granular material under each moving duration can be obtained. According to the area ratio of the cigarette area not filled with granular material under each moving duration, the filling condition of the granular material in the cigarette to be detected, that is, the target particle detection result, is determined.
[0052] In an embodiment of the present invention, after determining the target particle detection result corresponding to the cigarette to be detected, it also includes: generating feedback information based on the target particle detection result, and sending the feedback information to the target terminal, so as to adjust the physical indicators and loading method of the granular material based on the feedback information, wherein the physical indicators of the granular material include at least one of the size indicator of the granular material and the quantity indicator of the granular material.
[0053] Among them, the feedback information can be information generated according to the target particle detection results. Optionally, the feedback information can be generated based on a preset feedback template. The preset feedback template can include a common language corresponding to the target particle detection results and contact information corresponding to at least one feedback object. The target terminal can be understood as a terminal device used by the feedback object. For example, the target terminal can be an electronic device such as a mobile phone or a computer. The physical indicator can be at least one of a size indicator and a quantity indicator of the granular material. The size indicator can be an indicator of the radius size of the granular material filled in the cigarette to be tested. The quantity indicator can be the number and filling volume of the granular material filled in the cigarette to be tested. The filling method can be understood as the method of filling the granular material.
[0054] Specifically, after determining the target particle detection result corresponding to the cigarette to be tested, feedback information is generated according to the target particle detection result and a preset feedback template, and the feedback information is sent to the target terminal, so as to adjust the physical indicators and filling methods such as the size index and quantity index of the particle material according to the feedback information, so as to improve the smoking experience of subsequent users.
[0055] Optionally, the adjusted cigarette to be tested can be subjected to a heating treatment, and the particle material of the cigarette to be tested can be further adjusted based on the smoking speed, smoke uniformity, and temperature uniformity of the outer wall of the cigarette to be tested.
[0056] The technical solution of this embodiment is applied to a particle detection device, and the moving module, heating module, clamping module and image acquisition module in the particle detection device process the cigarette to be detected to obtain the image to be processed of the cigarette to be detected. The images to be processed of the cigarette to be detected at different moving times are obtained; wherein the cigarette to be detected is a cigarette filled with granular material, which provides support for the analysis of subsequent images. For the images to be processed at different moving times, image analysis and processing are performed on the image to be processed at the current moving time to determine the regional information of the cigarette area not filled with granular material in the image to be processed at the current moving time. Based on the regional information at different moving times, the target particle detection result corresponding to the cigarette to be detected is determined. By analyzing the regional information at different moving times, the problem of subjectivity and inaccurate evaluation caused by manual observation in the prior art is solved, the accuracy of image analysis is improved, and the accurate evaluation of the distribution of granular materials in the cigarette to be detected is achieved, which facilitates the subsequent adjustment of the granular material in the cigarette to be detected according to the target particle detection result, thereby improving the user experience.
[0057] Embodiment 2
[0058] Figure 3 This is a flow chart of a particle detection method provided by the second embodiment of the present invention. This embodiment is based on the above embodiment and refines the step of "determining the target particle detection result corresponding to the cigarette to be detected based on the regional information under different moving durations". The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:
[0059] S210, obtaining images to be processed of the cigarette to be detected at different moving durations; wherein the cigarette to be detected is a cigarette filled with granular material.
[0060] S220. For the images to be processed at different moving durations, perform image analysis processing on the image to be processed at the current moving duration to determine the region information of the cigarette region not filled with granular material in the image to be processed at the current moving duration.
[0061] S230. For the area information under different moving durations, based on at least one cigarette area corresponding to the image to be processed at each acquisition angle under the current moving duration, determine the pixel points to be processed corresponding to each cigarette area.
[0062] The cigarette area can be understood as the gap area of the cigarette to be detected in the image to be processed that is not filled with granular materials. The pixel points to be processed can be understood as the pixel points contained in the cigarette area.
[0063] Specifically, for the regional information under different moving durations, the pixels to be processed contained in each cigarette region are determined through at least one cigarette region not filled with granular materials in the image to be processed corresponding to each acquisition angle under the current moving duration. Based on this, the pixels to be processed corresponding to each cigarette region in the image to be processed under each acquisition angle under different moving durations can be obtained.
[0064] S240: Determine the area information corresponding to each cigarette region based on the to-be-processed pixel points corresponding to each cigarette region and the total pixel points of the to-be-processed image.
[0065] The total pixel points can be understood as all the pixel points contained in the image to be processed. The area information can be understood as the area of the cigarette region.
[0066] Specifically, the ratio of the number of pixels corresponding to the pixels to be processed is determined according to the pixels to be processed corresponding to each cigarette region and the total number of pixels of the image to be processed. The area information corresponding to each cigarette region is determined according to the pixel ratio and the image area of the image to be processed.
[0067] S250. Determine the attributes to be analyzed and evaluated of the cigarette to be detected during the current moving duration based on the area information corresponding to the cigarette area at each acquisition angle during the current moving duration.
[0068] The attribute to be analyzed and evaluated can be understood as the average area ratio of the cigarette area to the cigarette to be detected under the current moving time.
[0069] Specifically, according to the area information of at least one cigarette area at each acquisition angle under the current moving duration, the area information of the upper area of the cigarette that is not filled with granular materials at the current acquisition angle under the current moving duration and the area information of the gap area between the granular materials are determined. According to the area information of these two parts and the area information of the cigarette to be detected at the current acquisition angle, the area ratio of the upper area of the cigarette to be detected at the current acquisition angle and the area ratio of the gap area between the granular materials to the cigarette to be detected are determined. The area ratio corresponding to the upper area of the cigarette at at least one acquisition angle under the current moving duration is processed by the mean value to obtain the average area ratio corresponding to the upper area of the cigarette at the current moving duration. Correspondingly, the area ratio corresponding to the gap area between the granular materials at at least one acquisition angle under the current moving duration is processed by the mean value to obtain the average area ratio corresponding to the gap area between the granular materials at the current moving duration. The average area ratio corresponding to the upper area of the cigarette and the average area ratio corresponding to the gap area between the granular materials are used as the attributes to be analyzed and evaluated of the cigarette to be detected at the current moving duration.
[0070] In an embodiment of the present invention, a method for determining the to-be-analyzed evaluation attribute of a cigarette to be detected at the current moving duration through the area information of the cigarette area at each acquisition angle may be: based on the area information corresponding to the cigarette area at each acquisition angle at the current moving duration, determining the first area area and the second area area corresponding to the cigarette area at each acquisition angle, wherein the first area area is the area of the upper layer gap area not filled with granular material in the cigarette to be detected, and the second area area is the area of the gap area between the granular materials in the cigarette to be detected; based on the first area area and the cigarette area of the cigarette to be detected corresponding to the cigarette area, determining the first to-be-processed evaluation attribute corresponding to each acquisition angle; based on the first to-be-processed evaluation attribute corresponding to each acquisition angle at the current moving duration, determining the first evaluation attribute among the to-be-analyzed evaluation attributes corresponding to the cigarette to be detected at the current moving duration; based on the second area area and the cigarette area, determining the second to-be-processed evaluation attribute corresponding to each acquisition angle; based on the second to-be-processed evaluation attribute corresponding to each acquisition angle at the current moving duration, determining the second evaluation attribute among the to-be-analyzed evaluation attributes corresponding to the cigarette to be detected at the current moving duration.
[0071] Among them, the image to be processed corresponding to the cigarette to be detected contains two parts of gap areas, the first part is the gap area on the upper layer of the granular material in the cigarette to be detected in the image to be processed, and the second part is the gap area between the granular materials in the cigarette to be detected in the image to be processed. The area information of the cigarette area corresponding to the first part is used as the area of the first area. The area information of the cigarette area corresponding to the second part is used as the area of the second area. The first evaluation attribute to be processed can be understood as the area ratio between the area of the first area and the area of the cigarette at the current acquisition angle under the current moving duration. Correspondingly, the second evaluation attribute to be processed can be understood as the area ratio between the area of the second area and the area of the cigarette at the current acquisition angle under the current moving duration. The cigarette area is the area of the cigarette to be detected that belongs to the same image to be processed as the cigarette area. The evaluation attributes to be analyzed may include the first evaluation attribute and the second evaluation attribute. The first evaluation attribute is the average area ratio of the gap area on the upper layer of the granular material corresponding to all acquisition angles under the current moving duration. The second evaluation attribute is the average area ratio of the gap area between the granular materials corresponding to all acquisition angles under the current moving duration.
[0072] Specifically, at the current moving duration, there is at least one image to be processed at a collection angle. Each image to be processed contains at least one cigarette area. According to the area information of each cigarette area in the image to be processed at the current collection angle at the current moving duration, the first area and the second area of the cigarette area in the image to be processed at the current collection angle are determined. According to the area of the first area at the current collection angle and the area of the cigarette to be detected in the image to be processed at the current angle, the area ratio of the upper gap area of the granular material at the current collection angle is determined, that is, the first evaluation attribute to be processed. According to the area of the second area at the current collection angle and the area of the cigarette to be detected in the image to be processed at the current angle, the area ratio of the gap area between the granular materials at the current collection angle is determined, that is, the second evaluation attribute to be processed.
[0073] If there is only one first evaluation attribute to be processed corresponding to an acquisition angle under the current moving duration, the first evaluation attribute to be processed is used as the first evaluation attribute of the evaluation attribute to be analyzed. If there are multiple first evaluation attributes to be processed corresponding to the acquisition angles of the current moving duration, the multiple first evaluation attributes to be processed are averaged to obtain the first evaluation attribute of the evaluation attribute to be analyzed under the current moving duration. Correspondingly, if there is only one second evaluation attribute to be processed corresponding to an acquisition angle under the current moving duration, the second evaluation attribute to be processed is used as the second evaluation attribute of the evaluation attribute to be analyzed. If there are multiple second evaluation attributes to be processed corresponding to the acquisition angles of the current moving duration, the multiple second evaluation attributes to be processed are averaged to obtain the second evaluation attribute of the evaluation attribute to be analyzed under the current moving duration.
[0074] S260: Determine the target particle detection result based on the attributes to be analyzed and evaluated under different moving durations.
[0075] Specifically, according to the attributes to be analyzed and evaluated under different moving times, the particle filling conditions in the cigarette to be tested under different moving times are determined. According to the particle filling conditions, it is determined whether the particle material in the cigarette to be tested is filled properly, that is, the target particle detection result is determined.
[0076] Since the cigarette to be tested moves at a constant speed, the attributes to be analyzed and evaluated under different moving durations can correspond to the attributes to be analyzed and evaluated when the heating needle is inserted into the cigarette to be tested at different lengths. When the heating needle is inserted into the granular material of the cigarette to be tested, it will occupy the space of the granular material in the cigarette to be tested. By determining the target particle detection results under different moving durations, it can be determined whether the heating needle is in full contact with the granular material, that is, whether the heating needle effectively heats the granular material.
[0077] It should be noted that, when the heating needle is fully inserted into the cigarette to be tested, the cigarette to be tested will be heated. Therefore, the attributes to be analyzed and evaluated under different moving times include the attributes to be analyzed and evaluated under the heating state. The volume of the granular material in the cigarette to be tested will change after the heating treatment. Therefore, the attributes to be analyzed and evaluated under different moving times can be used to determine the attributes to be analyzed and evaluated under the heating state, thereby determining the changes in the granular material in the cigarette to be tested in the image to be processed under the heating state.
[0078] It should be noted that the target particle detection result can also be determined based on the processed image of the cigarette to be detected. That is, the accumulation state of the granular material is evaluated based on the processed image of the cigarette to be detected, and an auxiliary judgment basis is provided for the target particle detection result by checking whether the granular material is evenly accumulated and whether it is squeezed. It can be understood that if the granular material is evenly accumulated and the granular material is not squeezed, it can further indicate that the granular material filling of the cigarette to be detected is qualified.
[0079] In an embodiment of the present invention, a method for determining a target particle detection result based on evaluation attributes to be analyzed under different moving durations may be: if the first evaluation attribute under each moving duration belongs to a first preset attribute range, and the second evaluation attribute belongs to a second preset attribute range, then the target particle detection result is determined to be that the particle material filling in the cigarette to be detected is qualified; if there is at least one first evaluation attribute that does not belong to the first preset attribute range, or at least one second evaluation attribute that does not belong to the second preset attribute range, then the target particle detection result is determined to be that the particle material filling in the cigarette to be detected is unqualified.
[0080] The first preset attribute range can be understood as a preset standard value of the area ratio corresponding to the upper layer area not filled with granular material in the cigarette to be tested. The second preset attribute range can be understood as a preset standard value of the area ratio corresponding to the gap area between granular materials in the cigarette to be tested.
[0081] Specifically, if the first evaluation attributes corresponding to all moving durations are within the first preset attribute range, and the second evaluation attributes are within the second preset attribute range, it means that the distribution of the particle material in the cigarette to be tested is relatively uniform, and the target particle detection result is determined to be that the particle material filling in the cigarette to be tested is qualified. If there is at least one first evaluation attribute that does not belong to the first preset attribute range, or at least one second evaluation attribute that does not belong to the second preset attribute range, it means that there may be a large area of the cigarette that is not filled with particle material in the cigarette to be tested, and the target particle detection result is determined to be that the particle material filling in the cigarette to be tested is unqualified.
[0082] The technical solution of this embodiment is to obtain the images to be processed of the cigarette to be detected at different moving durations; wherein, the cigarette to be detected is a cigarette filled with granular materials, which provides support for the analysis of subsequent images. For the images to be processed at different moving durations, image analysis processing is performed on the image to be processed at the current moving duration to determine the regional information of the cigarette area that is not filled with granular materials in the image to be processed at the current moving duration. For the regional information at different moving durations, based on at least one cigarette area corresponding to the image to be processed at each acquisition angle at the current moving duration, the pixels to be processed corresponding to each cigarette area are determined. Based on the pixels to be processed corresponding to each cigarette area and the total pixels of the image to be processed, the area information corresponding to each cigarette area is determined. Based on the area information corresponding to the cigarette area at each acquisition angle at the current moving duration, the attributes to be analyzed and evaluated of the cigarette to be detected at the current moving duration are determined. By analyzing the attributes to be analyzed and evaluated under different moving times, the target particle detection results are determined, which solves the problems of subjectivity and inaccurate evaluation caused by manual observation in the prior art, improves the accuracy of image analysis, and achieves accurate evaluation of the distribution of particulate materials in the cigarette to be tested, which facilitates the subsequent adjustment of the particulate materials in the cigarette to be tested according to the target particle detection results, thereby improving the user experience.
[0083] Embodiment 3
[0084] Figure 4 Schematic diagram of the structure of a particle detection device provided by the third embodiment of the present invention. Figure 4 As shown, the device includes: an image acquisition module 310, an image analysis module 320 and a detection result determination module 330.
[0085] An image acquisition module is used to acquire images to be processed of a cigarette to be detected at different moving times; wherein the cigarette to be detected is a cigarette filled with granular material; an image analysis module is used to perform image analysis processing on the image to be processed at the current moving time for the images to be processed at different moving times, and determine the regional information of the cigarette area not filled with granular material in the image to be processed at the current moving time; a detection result determination module is used to determine the target particle detection result corresponding to the cigarette to be detected based on the regional information at different moving times.
[0086] The technical solution of this embodiment is applied to a particle detection device, and the moving module, heating module, clamping module and image acquisition module in the particle detection device process the cigarette to be detected to obtain the image to be processed of the cigarette to be detected. By obtaining the images to be processed of the cigarette to be detected at different moving times; wherein the cigarette to be detected is a cigarette filled with granular material, support is provided for the analysis of subsequent images. For the images to be processed at different moving times, image analysis and processing is performed on the image to be processed at the current moving time to determine the regional information of the cigarette area not filled with granular material in the image to be processed at the current moving time. Based on the regional information at different moving times, the target particle detection result corresponding to the cigarette to be detected is determined. By analyzing the regional information at different moving times, the problem of subjectivity and inaccurate evaluation caused by manual observation in the prior art is solved, the accuracy of image analysis is improved, and the accurate evaluation of the distribution of granular materials in the cigarette to be detected is achieved, which facilitates the subsequent adjustment of the granular material in the cigarette to be detected according to the target particle detection result, thereby improving the user experience.
[0087] On the basis of the above embodiment, optionally, the image to be processed is an image containing a cigarette to be detected at at least one acquisition angle, and the image analysis module includes: an image grayscale processing unit, which is used to perform grayscale processing on the image to be processed at each acquisition angle for the image to be processed at at least one acquisition angle under the current moving duration, and determine the grayscale image corresponding to the image to be processed; an image binarization processing unit, which is used to perform threshold segmentation on the grayscale image, and binarize the grayscale image after the threshold segmentation processing to obtain the binary image corresponding to the image to be processed; and a region information determination unit, which is used to determine the region information of at least one cigarette region not filled with granular material based on the binary image.
[0088] Optionally, the detection result determination module includes: a pixel point determination unit, which is used to determine the pixel points to be processed corresponding to each cigarette area for area information under different moving durations, based on at least one cigarette area corresponding to the image to be processed at each acquisition angle under the current moving duration; an area information determination unit, which is used to determine the area information corresponding to each cigarette area based on the pixel points to be processed corresponding to each cigarette area and the total pixel points of the image to be processed; an evaluation attribute determination unit, which is used to determine the evaluation attributes to be analyzed of the cigarette to be detected under the current moving duration based on the area information corresponding to the cigarette area at each acquisition angle under the current moving duration; and a detection result determination unit, which is used to determine the target particle detection result based on the evaluation attributes to be analyzed under different moving durations.
[0089] Optionally, an evaluation attribute determination unit is used to determine a first area and a second area corresponding to the cigarette area at each collection angle based on area information corresponding to the cigarette area at each collection angle under the current moving duration, wherein the first area is the area of an upper layer of gaps not filled with granular materials in the cigarette to be detected, and the second area is the area of a gap between granular materials in the cigarette to be detected; based on the first area and the area of the cigarette to be detected corresponding to the cigarette area, determine the first evaluation attribute to be processed corresponding to each collection angle; based on the first evaluation attribute to be processed corresponding to each collection angle under the current moving duration, determine the first evaluation attribute among the evaluation attributes to be analyzed corresponding to the cigarette to be detected under the current moving duration; based on the second area and the cigarette area, determine the second evaluation attribute to be processed corresponding to each collection angle; based on the second evaluation attribute to be processed corresponding to each collection angle under the current moving duration, determine the second evaluation attribute among the evaluation attributes to be analyzed corresponding to the cigarette to be detected under the current moving duration.
[0090] Optionally, the detection result determination unit is used to determine that the target particle detection result is that the particle material filling in the cigarette to be tested is qualified if the first evaluation attribute belongs to the first preset attribute range and the second evaluation attribute belongs to the second preset attribute range under each movement duration; if there is at least one first evaluation attribute that does not belong to the first preset attribute range, or at least one second evaluation attribute that does not belong to the second preset attribute range, then the target particle detection result is determined to be that the particle material filling in the cigarette to be tested is unqualified.
[0091] Optionally, the device also includes: an information feedback module, which is used to generate feedback information based on the target particle detection results, and send the feedback information to the target terminal, so as to adjust the physical indicators and loading method of the granular material based on the feedback information, wherein the physical indicators of the granular material include at least one of the size indicator of the granular material and the quantity indicator of the granular material.
[0092] Optionally, the particle detection device also includes a mechanical processing module for detecting the insertion force change information of the moving module. The device also includes: an insertion force adjustment module for obtaining the insertion force change information; based on the insertion force change information and a preset corresponding relationship, adjusting the insertion force corresponding to the moving module so that the cigarette to be detected moves in the target direction at a preset speed, wherein the preset corresponding relationship is the relationship between the insertion force and the moving speed of the moving module.
[0093] The particle detection device provided in the embodiment of the present invention can execute the particle detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0094] Embodiment 4
[0095] Figure 5 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and do not limit the implementation of the present invention described and / or required herein.
[0096] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. 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.
[0097] A number of 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, speakers, etc.; a storage unit 18, such as a 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.
[0098] The processor 11 may be a variety of general and / or special 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 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 the various methods and processes described above, such as a particle detection method.
[0099] In some embodiments, the particle detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on 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 particle detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the particle detection method in any other suitable manner (e.g., by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] The computer programs for implementing the particle detection method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0102] Embodiment 5
[0103] Embodiment 5 of the present invention further provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, the computer instructions are used to enable a processor to execute a particle detection method, applied to a particle detection device, the particle detection device includes: a moving module, a heating module, a clamping module and an image acquisition module, the moving module is connected to the clamping module, and is used to control the clamping module to move toward a target direction when the clamping module acts on the cigarette to be detected, the heating module is used to heat the cigarette to be detected, and the image acquisition module is used to collect a to-be-processed image including the cigarette to be detected when the cigarette to be detected moves to a target position, the method includes:
[0104] Obtain images to be processed of a cigarette to be detected at different moving times; wherein the cigarette to be detected is a cigarette filled with granular material; for the images to be processed at different moving times, perform image analysis processing on the image to be processed at the current moving time to determine the regional information of the cigarette area not filled with granular material in the image to be processed at the current moving time; based on the regional information at different moving times, determine the target particle detection result corresponding to the cigarette to be detected.
[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0106] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may 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.
[0108] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may 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, solving the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A particle detection method, characterized in that: Applied to a particle detection device, the particle detection device comprises: a moving module, a heating module, a clamping module and an image acquisition module, the moving module is connected to the clamping module, and is used to control the clamping module to move toward a target direction when the clamping module acts on a cigarette to be detected, the heating module is used to heat the cigarette to be detected, and the image acquisition module is used to acquire a to-be-processed image including the cigarette to be detected when the cigarette to be detected moves to a target position, and the method comprises: Acquire the images to be processed of the cigarette to be detected at different moving durations; wherein the cigarette to be detected is a cigarette filled with granular material; For the images to be processed at different moving durations, image analysis processing is performed on the image to be processed at the current moving duration to determine the region information of the cigarette region not filled with granular material in the image to be processed at the current moving duration; Based on the area information under different moving durations, the target particle detection result corresponding to the cigarette to be detected is determined.
2. The method according to claim 1, characterized in that The image to be processed is an image containing a cigarette to be detected at at least one acquisition angle, and the image analysis processing is performed on the image to be processed at the current moving time to determine the area information of the cigarette area not filled with granular material in the image to be processed at the current moving time, including: For an image to be processed at least one acquisition angle under the current moving time, grayscale processing is performed on the image to be processed at each acquisition angle to determine a grayscale image corresponding to the image to be processed; Performing threshold segmentation on the grayscale image, and performing binarization processing on the grayscale image after the threshold segmentation processing to obtain a binary image corresponding to the image to be processed; Based on the binary image, area information of at least one cigarette region not filled with granular material is determined.
3. The method according to claim 1, characterized in that The determining of the target particle detection result corresponding to the cigarette to be detected based on the area information under different moving durations includes: For the regional information under different moving durations, based on at least one cigarette region corresponding to the image to be processed at each acquisition angle under the current moving duration, determine the pixel points to be processed corresponding to each cigarette region; Determine the area information corresponding to each of the cigarette regions based on the to-be-processed pixel points corresponding to each of the cigarette regions and the total pixel points of the to-be-processed image; Determine the attributes to be analyzed and evaluated of the cigarette to be detected during the current moving time based on the area information corresponding to the cigarette area at each acquisition angle during the current moving time; The target particle detection results are determined based on the attributes to be analyzed and evaluated at different movement times.
4. The method according to claim 3, characterized in that The determining of the attributes to be analyzed and evaluated of the cigarette to be detected at the current moving duration based on the area information corresponding to the cigarette area at each collection angle at the current moving duration includes: Based on the area information corresponding to the cigarette area at each collection angle under the current moving time, determine the first area and the second area corresponding to the cigarette area at each collection angle, wherein the first area is the area of the upper gap area not filled with granular material in the cigarette to be detected, and the second area is the area of the gap area between the granular materials in the cigarette to be detected; Determine a first to-be-processed evaluation attribute corresponding to each acquisition angle based on the area of the first region and the area of the to-be-detected cigarette corresponding to the cigarette region; Based on the first to-be-processed evaluation attribute corresponding to each acquisition angle under the current moving duration, determining the first evaluation attribute among the to-be-analyzed evaluation attributes corresponding to the to-be-detected cigarette under the current moving duration; Determine a second to-be-processed evaluation attribute corresponding to each acquisition angle based on the area of the second region and the area of the cigarette; Based on the second to-be-processed evaluation attribute corresponding to each acquisition angle under the current moving duration, the second evaluation attribute among the to-be-analyzed evaluation attributes corresponding to the to-be-detected cigarette under the current moving duration is determined.
5. The method according to claim 4, characterized in that The step of determining the target particle detection result based on the attributes to be analyzed and evaluated under different moving durations includes: If the first evaluation attribute belongs to the first preset attribute range and the second evaluation attribute belongs to the second preset attribute range under each moving time length, it is determined that the target particle detection result is that the particle material filling in the cigarette to be detected is qualified; If at least one of the first evaluation attributes does not belong to the first preset attribute range, or at least one of the second evaluation attributes does not belong to the second preset attribute range, the target particle detection result is determined to be that the particle material filling in the cigarette to be tested is unqualified.
6. The method according to claim 1, characterized in that After determining the target particle detection result corresponding to the cigarette to be detected, the method further includes: Feedback information is generated based on the target particle detection result, and the feedback information is sent to the target terminal to adjust the physical indicators and loading method of the granular material based on the feedback information, wherein the physical indicators of the granular material include at least one of a size indicator of the granular material and a quantity indicator of the granular material.
7. The method according to claim 1, characterized in that The particle detection device further includes a mechanical processing module for detecting insertion force change information of the moving module. The method further includes: Acquiring the insertion force change information; Based on the insertion force change information and the preset corresponding relationship, the insertion force corresponding to the moving module is adjusted so that the cigarette to be detected moves in the target direction at a preset speed, wherein the preset corresponding relationship is the relationship between the insertion force and the moving speed of the moving module.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, 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 so that the at least one processor can perform the particle detection method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the particle detection method according to any one of claims 1 to 7 when executed.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the particle detection method according to any one of claims 1 to 7.
