A data intelligent processing method for spectral analysis platform
Through the intelligent data processing method of the spectral analysis platform, the spectral diagram of plastic products is obtained and its possible degree is calculated, which solves the problem that traditional classification cannot handle multiple plastic types and achieves more accurate identification and classification of plastic products.
Patent Information
- Application Number
- CN202410986967.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Traditional waste plastic classification cannot accurately handle situations where a single plastic product contains multiple plastic types, resulting in inaccurate classification.
Using the intelligent data processing method of the spectral analysis platform, the suspected areas are determined by obtaining the spectral charts of multiple plastic products, and the likelihood of each suspected area is calculated based on the area information and reflectivity, and then it is determined whether the adjacent areas belong to the same plastic product , thereby performing intelligent processing of data.
It improves the identification accuracy and classification results of plastic products, can handle multiple plastic types more accurately, and improves the processing process of waste plastics.
Smart Images

Figure CN118521836B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a data intelligent processing method for a spectrum analysis platform in the technical field of data processing. Background Art
[0002] The reuse of waste plastics can reduce waste pollution, save resources, reduce energy consumption, and generate certain economic benefits. The present invention mainly analyzes the sorting of waste plastics so that different types of waste plastics can be treated accordingly in the later stage.
[0003] Hyperspectral imaging technology is based on a large number of narrow-band image data technology. It combines imaging technology with spectral technology to detect the two-dimensional geometric space and one-dimensional spectral information of the target and obtain continuous, narrow-band image data with high spectral resolution.
[0004] In the related art, different areas obtained from a spectral image corresponding to a certain band are determined as different plastic product areas to determine the location of a single plastic product among a large number of plastic products. However, the range of the determined plastic product area is inaccurate and cannot accurately handle the situation where a single plastic product contains multiple types of plastics. Summary of the invention
[0005] In order to solve the technical problem that traditional waste plastic classification cannot accurately classify a single plastic product containing multiple types of plastics, the purpose of the present invention is to provide a data intelligent processing method for a spectral analysis platform. The technical solution adopted is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a data intelligent processing method for a spectral analysis platform, the method comprising:
[0007] Obtain spectra of multiple plastic products;
[0008] In the spectrograms of the plurality of plastic products, determining a plurality of suspected regions;
[0009] Determine a first possibility degree that each of the plurality of suspected regions is any component region of a single plastic product;
[0010] Based on the first possibility degree and the multiple component regions of the plastic product, determining a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product;
[0011] Based on the second possible degree, intelligent data processing is performed on the plurality of plastic products.
[0012] In combination with the first aspect above, in some possible implementations, obtaining spectra of multiple plastic products includes:
[0013] Obtain multiple bands corresponding to hyperspectral imaging;
[0014] Spectra of the multiple plastic products are collected in the multiple wavebands.
[0015] In the above method, by dividing the hyperspectral imaging into multiple bands, the spectral graph of the plastic product in each band can be collected, thereby improving the richness of the spectral graph of each plastic product.
[0016] In combination with the first aspect above, in some possible implementations, determining a plurality of suspected areas in the spectra of the plurality of plastic products includes:
[0017] Performing edge detection on the spectrograms of the plurality of plastic products to obtain regional edges;
[0018] Based on the area edges, the multiple suspected areas are determined.
[0019] In the above manner, by performing edge detection on the grayscale images of the spectrum images of different bands, a plurality of suspected areas can be quickly and accurately obtained through the obtained edges.
[0020] In combination with the first aspect above, in some possible implementations, determining the first possibility degree that each of the multiple suspected areas is any component area of a single plastic product includes:
[0021] In the spectrum graph corresponding to any two adjacent bands, the area information corresponding to the mth suspected area is determined respectively; wherein m is an integer greater than 0;
[0022] Determine the reflectivity in the spectral curve corresponding to any two adjacent bands;
[0023] Based on the area information and the reflectivity, a first possibility degree that the mth suspected area is any component area of a single plastic product is determined.
[0024] In the above manner, by obtaining the area information of each suspected area and the reflectivity of the spectral curve corresponding to two adjacent bands, it is possible to accurately analyze the first possibility that the mth suspected area is a component area of a single plastic product.
[0025] In combination with the first aspect, in some possible implementations, determining, based on the area information and the reflectivity, a first possibility degree that the mth suspected area is any component area of a single plastic product includes:
[0026] Determine a first difference based on the area information corresponding to the m-th suspected area in the spectrum corresponding to the two adjacent bands;
[0027] Based on the reflectance in the spectral curve corresponding to the any two adjacent wavebands, respectively determining the maximum reflectance in the spectral curve corresponding to the any two adjacent wavebands;
[0028] Determine a second difference based on the maximum reflectivity in the spectral curves corresponding to any two adjacent bands;
[0029] Based on the area information of the mth suspected area, the first difference and the second difference, a first possibility degree that the mth suspected area is any component area of a single plastic product is determined.
[0030] In combination with the first aspect, in some possible implementations, determining a first possibility degree that the mth suspected area is any component area of a single plastic product based on the area information of the mth suspected area, the first difference, and the second difference includes:
[0031] respectively determining a first mean of the first differences and a second mean of the second differences;
[0032] respectively determining a third difference between the first difference and the first mean, and a fourth difference between the second difference and the second mean;
[0033] Determine a first ratio between the area information of the m-th suspected region and the third difference;
[0034] The first ratio and the fourth difference are combined to obtain a first possibility that the m-th suspected area is any component area of a single plastic product.
[0035] In the above method, by calculating the difference between the maximum reflectivity values corresponding to two adjacent bands and the difference between the area information, it is possible to accurately determine the degree to which each suspected area can fully represent the complete part of a single plastic product, thereby improving the accuracy of calculating the first possible degree.
[0036] In combination with the first aspect, in some possible implementations, determining a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product based on the first possibility degree and the multiple component regions of the plastic product includes:
[0037] Determine, among the plurality of component regions of the plastic product, a target component region including any two adjacent component regions;
[0038] Determine the number of edge intersection points of any two adjacent component regions;
[0039] Based on the first possible degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of edge intersection points, a second possible degree that the any two adjacent component regions belong to the component region of the same plastic product is determined.
[0040] In the above method, by counting the number of target component regions that can contain two adjacent component regions and the number of edge intersection points of the two adjacent component regions, the second possible degree that the two adjacent component regions belong to the component region of the same plastic product can be accurately analyzed.
[0041] In combination with the first aspect, in some possible implementations, determining the second possibility degree that the any two adjacent component regions belong to the component region of the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions, and the number of edge intersection points includes:
[0042] Determining the candidate possibility degree that the any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of the edge intersection points;
[0043] In any two adjacent component regions, determining the edge pixel point with the farthest distance;
[0044] Determine the angle between the line segment between the edge pixels and the horizontal direction;
[0045] Based on the angle and the candidate possible degrees, a second possible degree that any two adjacent component regions belong to the component region of the same plastic product is determined.
[0046] In the above method, the angle between the line segment between the edge pixels and the horizontal direction, as well as the candidate possibility degree that two adjacent component areas belong to the same plastic product are combined, so as to accurately analyze the possibility degree that the two adjacent component areas belong to the same component area of the same plastic product, that is, to obtain a more accurate second possibility degree.
[0047] In combination with the first aspect, in some possible implementations, determining the candidate possibility degree that any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions, and the number of edge intersection points includes:
[0048] Determine a fifth difference between the first possible degrees corresponding to any two adjacent component regions;
[0049] Determining a second ratio between the number of edge intersection points and the fifth difference value;
[0050] The number of the target component regions and the second ratio are combined to obtain the candidate possibility degree that any two adjacent component regions belong to the same plastic product.
[0051] In the above method, by counting the number of target component areas that contain two adjacent component areas and combining the number with the second ratio, the possibility that the two adjacent component areas belong to the same plastic product can be accurately analyzed, thereby improving the accuracy of calculating the possibility of candidates.
[0052] In combination with the first aspect above, in some possible implementations, performing intelligent data processing on the plurality of plastic products based on the second possible degree includes:
[0053] determining a plastic type of each plastic product among the plurality of plastic products based on the second possibility level;
[0054] Based on the plastic type, intelligent data processing is performed on each plastic product.
[0055] In the above method, through the second possible degree, the location range of each plastic product can be analyzed, so as to facilitate the classification of each plastic product, and further facilitate the intelligent processing such as collection of the classified plastic products.
[0056] In a second aspect, a data intelligent processing device for a spectral analysis platform is provided, the device comprising:
[0057] An acquisition module, used for acquiring spectra of a plurality of plastic products;
[0058] A first determination module is used to determine a plurality of suspected areas in the spectrum graphs of the plurality of plastic products;
[0059] A second determination module, configured to determine a first possibility that each of the plurality of suspected regions is any component region of a single plastic product;
[0060] A third determination module, configured to determine a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product based on the first possibility degree and the multiple component regions of the plastic product;
[0061] A processing module is used for performing intelligent data processing on the plurality of plastic products based on the second possible degree.
[0062] According to a third aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method according to the first aspect or any possible implementation of the first aspect.
[0063] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0064] The present invention has the following beneficial effects: by acquiring the spectrograms of multiple plastic products, multiple suspected areas are determined in the spectrograms of the multiple plastic products, and the first possible degree that each of the multiple suspected areas is any component area of a single plastic product is determined; in this way, the first possible degree can reflect whether each suspected area is a component area of a single plastic product. Afterwards, the second possible degree that any two adjacent component areas belong to the component area of the same plastic product is determined through the first possible degree and the multiple component areas of the plastic product; and based on the second possible degree, the data of the multiple plastic products are intelligently processed. In this way, the possibility that two adjacent component areas belong to the component area of the same plastic product can be reflected through the second possible degree, so that the plastic types described in the multiple plastic products can be classified through the second possible degree, thereby improving the recognition accuracy of the system and providing better classification results for the subsequent treatment of waste plastics. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 paying creative work.
[0066] Figure 1 It is a schematic diagram of the implementation framework of a data intelligent processing system for a spectrum analysis platform provided by an embodiment of the present invention;
[0067] Figure 2 It is a schematic diagram of the implementation structure of a data intelligent processing system for a spectrum analysis platform provided by an embodiment of the present invention;
[0068] Figure 3 It is another implementation flow diagram of a data intelligent processing method of a spectrum analysis platform provided by an embodiment of the present invention;
[0069] Figure 4 It is another implementation flow diagram of a data intelligent processing method of a spectrum analysis platform provided by an embodiment of the present invention;
[0070] Figure 5It is another implementation flow diagram of a data intelligent processing method of a spectrum analysis platform provided by an embodiment of the present invention;
[0071] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the data intelligent processing method of a spectral analysis platform proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0073] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.
[0074] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0075] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0076] In view of the shortcomings of the waste plastic classification in the related art that cannot accurately handle the situation where a single plastic product contains multiple types of plastics, the embodiment of the present invention provides a data intelligent processing system for a spectral analysis platform. Figure 1As shown, the system includes: a feeding system S1, a sensing system S2, a control system S3 and a classification system S4. Among them, the spectrum of the plastic product is collected through the feeding system S1. The hyperspectral imaging system (GaiaField-F-V10) consists of 4 parts: an imaging unit, an illumination source, an electric translation stage and a computer with corresponding control software. The imaging unit is the core part of constructing the spectrum and spatial information of the target sample, and is composed of a standard zoom lens, a highly sensitive and specific spectrograph, and a charge coupled device (CCD) camera or a complementary metal oxide semiconductor (CMOS) camera. As Figure 2 As shown, the imaging unit includes: a lens 21, an imaging spectrometer 22, and a CCD camera 23. The function of the imaging spectrometer is to disperse the captured light into a certain continuous spectral range. The light source (for example, a bromine tungsten lamp light source 24) is used as an optical probe to effectively detect the physical structure and chemical composition of the target, which is of great significance in the hyperspectral imaging system. The dark box 25 can prevent interference from other light sources.
[0077] The following is a detailed description of the specific scheme of the data intelligent processing method of the spectrum analysis platform provided by the present invention in conjunction with the accompanying drawings. Figure 3 , which shows a flow chart of a data intelligent processing method of a spectral analysis platform provided by an embodiment of the present invention, the method comprising:
[0078] 301, obtaining spectra of multiple plastic products.
[0079] Here, multiple bands corresponding to the hyperspectral imaging are obtained; and the spectra of the multiple plastic products are collected under the multiple bands. The hyperspectral imaging system is used to collect the spectra of multiple plastic products on the conveyor belt. The spectrum range of the multiple plastic products is 2700-5300 nanometers (nm), and the bands are divided into 10nm wavelengths. The spectrum of a plastic product can be divided into 220 band data, and the band data includes the spectral curve data and image data of the corresponding band. In this way, by dividing the hyperspectral imaging into multiple bands, the spectra of plastic products under each band can be collected, thereby enriching the spectra of each plastic product.
[0080] 302. Determine a plurality of suspected regions in the spectrum graphs of the plurality of plastic products.
[0081] Here, the suspected area is the area surrounded by the edges in the spectrum of each plastic product. In some possible implementations, the edge of the area is obtained by performing edge detection on the spectrum of the multiple plastic products; and based on the area edge, the multiple suspected areas are determined. Among them, the spectrum of each plastic product is first converted into a grayscale image, and the edge detection is performed on the grayscale image to obtain the area edge. For example, the grayscale image of the spectrum obtained in different bands is edge detected by the Sobel edge detection algorithm, and the multiple areas surrounded by the multiple edges obtained are defined as suspected areas. In this way, by performing edge detection on the grayscale image of the spectrum of different bands, multiple suspected areas can be quickly and accurately obtained through the obtained edges.
[0082] 303, determining a first possibility degree that each of the multiple suspected areas is any component area of a single plastic product.
[0083] Here, the component region is used to represent a complete part of a single plastic product. The first degree of possibility is used to characterize the possibility that each suspected region is a component region of a single plastic product. In some possible implementations, the above step 303 can be performed by Figure 4 The steps shown achieve:
[0084] 401. In the spectrum graphs corresponding to any two adjacent bands, area information corresponding to the mth suspected region is determined respectively.
[0085] Wherein, m is an integer greater than 0. The mth suspected region is any suspected region. Any two adjacent bands can be the previous band and the next band. In the spectrum graph corresponding to the two adjacent bands, the area information of the mth suspected region is calculated respectively, that is, the area size of the mth suspected region.
[0086] 402: Determine the reflectivity in the spectrum curve corresponding to any two adjacent bands.
[0087] Here, after determining two adjacent bands, the spectral curves corresponding to the two bands are further determined, so as to determine the maximum value of the reflectivity in the spectral curve; so as to analyze the first possible degree that the mth suspected area is a component area of a single plastic product by combining the maximum value of the reflectivity and the area information.
[0088] 403. Based on the area information and the reflectivity, determine a first possibility that the mth suspected area is any component area of a single plastic product.
[0089] Here, the spectral images obtained in different bands of the hyperspectral spectrum reflect the absorption capacity of each substance in the image for different light waves, and together with the spectral curve, reflect the content of a substance in the current detection area and the specific location of a substance. The absorption capacity of substances for different light waves is different, and the size of the absorption peaks displayed in the spectral curves of different bands is different, and the size of the suspected area displayed in the spectral images of different bands is different. In any band, the previous adjacent band (for example, The more the suspected area corresponding to a suspected area in this band gradually increases, the more the current suspected area can express the distribution range of a certain component in the plastic product, and the more likely it is that the current suspected area is a complete part of a single plastic product. ( The more the maximum value of the reflectivity in the spectrum curve obtained by the current band gradually decreases from far away from the current band to close to the current band, the stronger the absorption capacity of a certain component in the plastic product for the light wave in the current band can be proved; the more the current band can represent the content of a certain component in the plastic product, the greater the possibility that the selected suspected area in the spectrum image obtained by the current band in a single plastic product is a complete part of a single plastic product; that is, the greater the first possible degree. In this way, by obtaining the area information of each suspected area and the reflectivity of the spectrum curve corresponding to two adjacent bands, the first possible degree that the mth suspected area is a component area of a single plastic product can be accurately analyzed.
[0090] In some possible implementations, the above step 403 may be implemented by the following process:
[0091] The first step is to determine a first difference based on the area information corresponding to the m-th suspected area in the spectrum corresponding to the two adjacent bands.
[0092] For example, the area sizes of the mth suspected regions in the spectrum graphs corresponding to two adjacent bands are subtracted to obtain the first difference.
[0093] The second step is to respectively determine the maximum reflectivity values in the spectral curves corresponding to the two adjacent wavebands based on the reflectivity values in the spectral curves corresponding to the two adjacent wavebands.
[0094] The third step is to determine the second difference based on the maximum reflectivity in the spectral curve corresponding to any two adjacent bands.
[0095] For example, the maximum reflectance values in the spectrum curves in the spectrum graph corresponding to two adjacent bands are subtracted to obtain the second difference value.
[0096] The fourth step is to determine the first possibility degree that the mth suspected area is any component area of a single plastic product based on the area information of the mth suspected area, the first difference and the second difference.
[0097] Here, by fusing the area information, the first difference, and the second difference of the mth suspected area, the first possible degree that the mth suspected area is any component area of a single plastic product is obtained. In some possible implementations, first, the first mean of the first difference and the second mean of the second difference are determined respectively; second, the third difference between the first difference and the first mean, and the fourth difference between the second difference and the second mean are determined respectively; third, the first ratio between the area information of the mth suspected area and the third difference is determined; finally, the first ratio is fused with the fourth difference to obtain the first possible degree that the mth suspected area is any component area of a single plastic product. In this way, by calculating the difference between the maximum reflectivity values corresponding to two adjacent bands and the difference between the area information, the possible degree that each suspected area can fully represent the complete part of a single plastic product is accurately determined, that is, the accuracy of calculating the first possible degree is improved.
[0098] In some possible implementations, the mth suspected region of the spectral image obtained in the jth band is the first possible degree of a complete part (i.e., component region) of a single plastic product. , as shown in formula (1):
[0099] (1);
[0100] in, are the area sizes of the suspected regions corresponding to the mth suspected region in the jkth and jk-1th bands respectively. Indicates the number of bands; for The first mean of the area differences (i.e., the first differences) between the m-th suspected areas in the previous and next bands in each band. The area information of the mth suspected area of the spectral image obtained in the jth band. The larger the area, the better the reflection of a certain component in the plastic product in this band. The larger the area occupied by this component, the more likely it is a complete part of a single plastic product. are the maximum reflectance values in the spectral curves corresponding to the jk-th and jk-1-th bands respectively. for The second mean of the second differences between the maximum reflectance values in the spectral curves of the two previous and next bands in each band. It is the maximum value of the reflectance in the spectral curve corresponding to the j-th band. The smaller the value, the more the content of the component reflected by the j-th band.
[0101] represents the third difference, since indivual Will not be evenly Equal, so Not 0; for The mth suspected area in the jth band corresponds to the degree of gradual change in the area of the suspected area. The smaller the value, the greater the degree of gradual change, and the greater the possibility that the mth suspected area of the spectral image obtained in the jth band is a complete part of a single plastic product.
[0102] represents the fourth difference, for The smaller the value, the greater the gradient, and the greater the possibility that the mth suspected area of the spectral image obtained by the jth band is a complete part of a single plastic product. indivual Will not be evenly Same, and is not 0, so Not 0. is the first ratio. Normalize it and get , whose value range is [0, 1]. >0.5, the mth suspected area of the spectral image obtained in the jth band is defined as the component area. The implementer can set the threshold value of the first possible degree according to the actual situation, without specific limitation. Because different plastics may contain the same components, some determined component areas will contain some smaller component areas. The multiple component areas finally confirmed are mapped to the same captured image in the form of masks.
[0103] 304 , based on the first possibility degree and the multiple component regions of the plastic product, determine a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product.
[0104] Here, the second possibility degree is used to indicate the possibility that two adjacent component regions belong to the same component region of the same plastic product.
[0105] In some possible implementations, the above step 304 can be performed by Figure 5 The steps shown achieve:
[0106] 501. Determine, among the multiple component regions of the plastic product, a target component region including any two adjacent component regions.
[0107] Here, the target component region is a larger component region that contains two adjacent component regions.
[0108] 502, determine the number of edge intersection points of any two adjacent component regions.
[0109] Here, some areas of plastic products are prone to different types of plastics or different plastic thicknesses (special areas). For example, the label or bottle cap of a plastic bottle. The existence of this feature will affect the distinction between a single plastic product and other plastic products, thereby affecting the sorting and grasping of a single plastic product. When the range of a single plastic product is judged to be larger than the actual range, the sorting gripper is likely to grab multiple plastic products, which will affect the final classification result. When the range of a single plastic product is judged to be smaller than the actual range, it is easy to cause the gripper to fail to grasp, affecting the sorting efficiency. When the position range of a component area includes other component areas, the component area that includes other component areas reflects that the component is more common in various plastics, and its included area range is larger, and may include multiple plastic products. The included component area reflects that the component is more special among various plastics, and may only represent one type of plastic, and only a certain type of plastic may contain this component. Therefore, when the component area does not contain other component areas (the smallest component area), the current component area represents the smallest plastic range and represents a part of a single plastic product. The more target component areas are in common between two adjacent minimum component areas, the more it can be proved that the two adjacent component areas contain more common components, and the closer the plastic materials of the two adjacent component areas are. Because the component area represents the position range of the components in the current image, the relationship between different component areas is separation, tangency or inclusion. The minimum component area is analyzed. When the number of identical points on the edges of two adjacent minimum component areas is large, it means that the two component areas are more likely to belong to the same plastic product. Therefore, the number of target component areas surrounded by larger component areas in common between the two minimum component areas, the number of edge intersection points of the two adjacent component areas, and the difference in the first possible degree Q of the adjacent component areas can be used to judge and screen whether the adjacent component areas currently determined belong to the same plastic product.
[0110] 503. Determine a second possibility degree that any two adjacent component regions belong to the component region of the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of the edge intersection points.
[0111] Here, the candidate possible degree that the two adjacent component regions belong to the same plastic product is first analyzed by the first possible degree corresponding to any two adjacent component regions, the number of the target component regions and the number of edge intersections, and then the possibility that the two adjacent component regions belong to the component regions of the same plastic product is further analyzed by the candidate possible degree. In this way, by counting the number of target component regions that can contain the two adjacent component regions and the number of edge intersections of the two adjacent component regions, the second possible degree that the two adjacent component regions belong to the component regions of the same plastic product can be accurately analyzed.
[0112] In some possible implementations, the above step 503 may be implemented by the following steps 531 to 534 (not shown):
[0113] 531. Determine the candidate possibility degree that the any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of the edge intersection points.
[0114] In some possible implementations, first, the fifth difference between the first possible degrees corresponding to the two adjacent component regions is determined; second, the second ratio between the number of edge intersection points and the fifth difference is determined; finally, the number of target component regions is combined with the second ratio to obtain the candidate possible degree that the two adjacent component regions belong to the same plastic product. In this way, by counting the number of target component regions that contain two adjacent component regions and combining the number with the second ratio, the possible degree that the two adjacent component regions belong to the same plastic product can be accurately analyzed, that is, the accuracy of calculating the candidate possible degree is improved.
[0115] In some possible implementations, taking the i-th component region and its adjacent i+1-th component region as an example, the possibility that the i-th component region and its adjacent i+1-th component region belong to the same plastic product is , as shown in formula (2):
[0116] (2);
[0117] in, is the number of target component regions that are contained in the i-th component region and its adjacent (i+1)-th component region by a larger component region. It is the number of edge intersections between the i-th component region and its adjacent i+1-th component region. The larger the value, the closer the relationship between the two component regions. are the first possible degrees of the i-th component region and its adjacent i+1-th component region respectively; and Different, so Not 0. is the second ratio. It is the absolute value of the Q difference between the two component regions (i.e., the fifth difference). The smaller the value is, the closer the components of the two component regions are, and the greater the possibility that the two component regions belong to the same plastic product.
[0118] 532, in any two adjacent component areas, determine the edge pixel point with the farthest distance.
[0119] Here, the arbitrary two adjacent component regions are regions to be merged, and the two edge pixel points farthest apart in the arbitrary two adjacent component regions are obtained using the Euclidean distance.
[0120] 533, determine the angle between the line segment between the edge pixels and the horizontal direction.
[0121] Here, the angle between the line segment connecting the two edge pixels and the horizontal direction is less than or equal to 90°. , as the direction of the merged region. The region after any two adjacent component regions are merged is the merged region.
[0122] 534. Determine a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product based on the angle and the candidate possibility degree.
[0123] Here, the difference between the angles corresponding to the unmerged component area and the merged component area is calculated first, and then the candidate possibility degree is divided by the difference to obtain the second possibility degree. In this way, the angle between the line segment between the edge pixels and the horizontal direction and the candidate possibility degree that the two adjacent component areas belong to the same plastic product are combined, so that the possibility degree that the two adjacent component areas belong to the component area of the same plastic product can be accurately analyzed, that is, a more accurate second possibility degree can be obtained.
[0124] In some possible implementations, the embodiments of the present invention analyze recycled waste plastic products, and the distribution and placement of the waste plastic products on the conveyor belt is messy. Different plastic products have certain shapes. The greater the candidate possibility of merging two component regions each time, the more likely it is that the two merged regions belong to the same plastic product. By continuously merging regions, the area of the merged region gradually increases, and the shape may also change, but the overall general direction should not change. The smaller the difference in the general direction before and after the merger of a component region, the greater the possibility that the current component region and the merged region belong to the same plastic product.
[0125] Use the Euclidean distance to find the two edge pixels that are farthest apart in the merged area. Set the angle between the line segment connecting these two edge pixels and the horizontal direction to be less than or equal to 90° , as the direction of the merged region.
[0126] It can be obtained that the second possible degree that the i-th component region and the region it merges with belong to the same component region of the plastic product is As shown in formula (3):
[0127] (3);
[0128] in, are the direction angles of the unmerged i-th component region and the merged i-th component region respectively. and Different, so Not 0; It is the difference between the two directions. The smaller the value is, the more consistent the approximate directions of the two regions are, and the greater the possibility that the i-th component region and the region merged with it belong to the component region of the same plastic product. is the degree of possibility that the i-th component region and the adjacent combined component region belong to the same plastic product. The larger the value, the more similar the components of the two regions are, and the more they are consistent with being the same plastic product. Normalize it and get , whose value range is [0, 1]. >0.5, it is determined that the i-th component area and the area it merges with belong to the same plastic product area, and then the other unmerged areas adjacent to the component area in the merged area are analyzed until they can no longer be merged; the threshold value of the second possible degree can be set by the implementer according to the actual situation, and is not specifically limited here. Finally, the location range of multiple complete single plastic products is obtained.
[0129] 305. Based on the second possible degree, perform intelligent data processing on the plurality of plastic products.
[0130] Here, through the second possible degree, the plastic type of each plastic product is determined among the plurality of plastic products; and based on the plastic type, the data of each plastic product is intelligently processed. In some possible implementations, after the position range of each plastic product in the current detection image, the position range of a single complete plastic product is marked by a mask operation, for example, the position of the determined plastic product is marked in red, and other areas are marked in black. And by comparing the spectral curve of the single plastic product in the current range with the standard reference plastic type sample, the plastic type of the single plastic product is obtained. The marked image is transmitted to the control system, and the control system controls the gripper to grab the single complete plastic product currently marked and place it in the collection box corresponding to the analyzed plastic type. Afterwards, the sorted plastic products are sent to the corresponding processing workshop for processing. In this way, through the second possible degree, the position range of each plastic product can be analyzed, so as to facilitate the classification of each plastic product, and then facilitate the intelligent processing such as collection of the classified plastic products.
[0131] In the embodiment of the present invention, the first degree of possibility can be used to reflect whether each suspected area is a component area of a single plastic product. Afterwards, the second degree of possibility that any two adjacent component areas belong to the component area of the same plastic product is determined through the first degree of possibility and the multiple component areas of the plastic product; and based on the second degree of possibility, the multiple plastic products are subjected to intelligent data processing. In this way, the possibility that two adjacent component areas belong to the component area of the same plastic product can be reflected through the second degree of possibility, so that the plastic types described in the multiple plastic products can be classified through the second degree of possibility, thereby improving the recognition accuracy of the system and providing better classification results for the subsequent processing of waste plastics.
[0132] An embodiment of the present invention provides a data intelligent processing device for a spectrum analysis platform, the device comprising:
[0133] An acquisition module, used for acquiring spectra of a plurality of plastic products;
[0134] A first determination module is used to determine a plurality of suspected areas in the spectrum graphs of the plurality of plastic products;
[0135] A second determination module, configured to determine a first possibility that each of the plurality of suspected regions is any component region of a single plastic product;
[0136] A third determination module, configured to determine a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product based on the first possibility degree and the multiple component regions of the plastic product;
[0137] A processing module is used for performing intelligent data processing on the plurality of plastic products based on the second possible degree.
[0138] In some possible implementations, the acquisition module is further used to acquire multiple bands corresponding to the hyperspectral imaging; and to collect spectral graphs of the multiple plastic products in the multiple bands.
[0139] In some possible implementations, the first determination module is further configured to perform edge detection on the spectrograms of the plurality of plastic products to obtain region edges; and determine the plurality of suspected regions based on the region edges.
[0140] In some possible implementations, the second determination module is further used to determine the area information corresponding to the mth suspected area in the spectrum graph corresponding to any two adjacent bands, wherein m is an integer greater than 0; determine the reflectivity in the spectrum curve corresponding to the any two adjacent bands; and based on the area information and the reflectivity, determine the first possibility that the mth suspected area is any component area of a single plastic product.
[0141] In some possible implementations, the second determination module is further used to determine a first difference based on the area information corresponding to the m-th suspected area in the spectral graph corresponding to the two adjacent bands; to determine the maximum reflectivity in the spectral curve corresponding to any two adjacent bands based on the reflectivity in the spectral curve corresponding to any two adjacent bands; to determine a second difference based on the maximum reflectivity in the spectral curve corresponding to any two adjacent bands; and to determine a first possibility that the m-th suspected area is any component area of a single plastic product based on the area information of the m-th suspected area, the first difference and the second difference.
[0142] In some possible implementations, the second determination module is further used to respectively determine a first mean of the first difference and a second mean of the second difference; respectively determine a third difference between the first difference and the first mean, and a fourth difference between the second difference and the second mean; determine a first ratio between the area information of the mth suspected area and the third difference; and merge the first ratio with the fourth difference to obtain a first possible degree that the mth suspected area is any component area of a single plastic product.
[0143] In some possible implementations, the third determination module is further used to determine, among the multiple component regions of the plastic product, a target component region that includes any two adjacent component regions; determine the number of edge intersection points of the any two adjacent component regions; and determine a second possibility degree that the any two adjacent component regions belong to the same component region of the plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of edge intersection points.
[0144] In some possible implementations, the third determination module is further used to determine the candidate possibility degree that any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of edge intersection points; determine the edge pixel points with the farthest distance among the any two adjacent component regions; determine the angle between the line segment between the edge pixel points and the horizontal direction; and determine the second possibility degree that any two adjacent component regions belong to the component region of the same plastic product based on the angle and the candidate possibility degree.
[0145] In some possible implementations, the third determination module is further configured to determine a fifth difference between the first possible degrees corresponding to any two adjacent component regions;
[0146] Determine a second ratio between the number of edge intersection points and the fifth difference; merge the number of target component regions with the second ratio to obtain a candidate possibility that any two adjacent component regions belong to the same plastic product.
[0147] In some possible implementations, the processing module is further used to determine the plastic type of each plastic product among the multiple plastic products based on the second degree of possibility; and perform intelligent data processing on each plastic product based on the plastic type.
[0148] Optionally, the transmission medium may be a wired link (such as but not limited to coaxial cable, optical fiber and digital subscriber line (DSL), etc.) or a wireless link (such as but not limited to wireless Fidelity (WIFI), Bluetooth and mobile device network, etc.). It should be noted that the apparatus provided in the above embodiment is only illustrated by the division of the above functional modules. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above.
[0149] Figure 6is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 6 As shown, the electronic device 600 includes: a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and running on the processor 602, wherein when the processor 602 executes the computer program 603, the device can execute any one of the data intelligent processing methods for the spectral analysis platform described above. In addition, an embodiment of the present invention also protects a device, which may include a memory and a processor, wherein an executable program code is stored in the memory, and the processor is used to call and execute the executable program code to execute a data intelligent processing method for a spectral analysis platform provided by an embodiment of the present invention.
[0150] This embodiment can divide the functional modules of the device according to the above method example. For example, it can correspond to each functional module, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0151] It should be understood that the device provided in this embodiment is used to execute the data intelligent processing method of the above-mentioned spectral analysis platform, so the same effect as the above-mentioned implementation method can be achieved. In the case of an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to the device, the processing module can be used to control and manage the actions of the device. The storage module can be used to support the device to execute mutual program codes, etc. Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical boxes, modules and circuits described in conjunction with the disclosure of the present invention. The processor can also be a combination that realizes a computing function, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the storage module can be a memory.
[0152] In addition, the device provided in the embodiment of the present invention may be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the data intelligent processing method of a spectral analysis platform provided in the above embodiment. This embodiment also provides a computer-readable storage medium, in which a computer program code is stored, and when the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement the data intelligent processing method of a spectral analysis platform provided in the above embodiment.
[0153] The present embodiment also provides a computer program product, when the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a data intelligent processing method for a spectral analysis platform provided in the above embodiment. Among them, the device, computer-readable storage medium, computer program product or chip provided in the present embodiment are all used to execute the corresponding method provided above, so the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here. Through the description of the above implementation mode, the technicians in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiment described above is only schematic, for example, the division of modules or units is only a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
[0154] It should be noted that the sequence of the above-mentioned embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. The various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. The above content is only a specific implementation method of the present invention, but the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention.
Claims
1. A data intelligent processing method for a spectral analysis platform, characterized in that: The method comprises: Obtain spectra of multiple plastic products; In the spectrograms of the plurality of plastic products, determining a plurality of suspected regions; Determine a first possibility degree that each of the plurality of suspected regions is any component region of a single plastic product; Based on the first possibility degree and the multiple component regions of the plastic product, determining a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product; Based on the second possibility, performing intelligent data processing on the plurality of plastic products; The determining of a first possibility degree that each of the plurality of suspected regions is any component region of a single plastic product comprises: In the spectrum graph corresponding to any two adjacent bands, the area information corresponding to the mth suspected area is determined respectively; wherein m is an integer greater than 0; Determine the reflectivity in the spectral curve corresponding to any two adjacent bands; Based on the area information and the reflectivity, determining a first possibility that the mth suspected area is any component area of a single plastic product; The determining, based on the area information and the reflectivity, a first possibility degree that the mth suspected area is any component area of a single plastic product comprises: Determine a first difference based on the area information corresponding to the m-th suspected area in the spectrum corresponding to the two adjacent bands; Based on the reflectance in the spectral curve corresponding to the any two adjacent wavebands, respectively determining the maximum reflectance in the spectral curve corresponding to the any two adjacent wavebands; Determine a second difference based on the maximum reflectivity in the spectral curves corresponding to any two adjacent bands; Determine, based on the area information of the m-th suspected area, the first difference and the second difference, a first possibility degree that the m-th suspected area is any component area of a single plastic product; The determining, based on the area information of the m-th suspected area, the first difference and the second difference, a first possibility degree that the m-th suspected area is any component area of a single plastic product comprises: respectively determining a first mean of the first differences and a second mean of the second differences; respectively determining a third difference between the first difference and the first mean, and a fourth difference between the second difference and the second mean; Determine a first ratio between the area information of the m-th suspected region and the third difference; The first ratio and the fourth difference are combined to obtain a first possibility degree that the m-th suspected area is any component area of a single plastic product; The determining, based on the first possibility degree and the multiple component regions of the plastic product, a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product comprises: Determine, among the plurality of component regions of the plastic product, a target component region including any two adjacent component regions; Determine the number of edge intersection points of any two adjacent component regions; Determining a second degree of possibility that the two arbitrary adjacent component regions belong to the same component region of the plastic product based on the first degree of possibility corresponding to the two arbitrary adjacent component regions, the number of the target component regions and the number of the edge intersection points; The determining, based on the first possible degree corresponding to the two arbitrary adjacent component regions, the number of the target component regions and the number of the edge intersection points, the second possible degree that the two arbitrary adjacent component regions belong to the component region of the same plastic product comprises: Determining the candidate possibility degree that the any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to the any two adjacent component regions, the number of the target component regions and the number of the edge intersection points; In any two adjacent component regions, determining the edge pixel point with the farthest distance; Determine the angle between the line segment between the edge pixels and the horizontal direction; Determining a second possibility degree that any two adjacent component regions belong to the same component region of the plastic product based on the angle and the candidate possibility degree; The determining of the candidate possibility degree that any two adjacent component regions belong to the same plastic product based on the first possibility degree corresponding to any two adjacent component regions, the number of the target component regions and the number of edge intersection points includes: Determine a fifth difference between the first possible degrees corresponding to any two adjacent component regions; Determining a second ratio between the number of edge intersection points and the fifth difference value; The number of the target component regions and the second ratio are combined to obtain the candidate possibility degree that any two adjacent component regions belong to the same plastic product.
2. The data intelligent processing method of a spectrum analysis platform according to claim 1 is characterized in that: The step of obtaining spectra of a plurality of plastic products comprises: Obtain multiple bands corresponding to hyperspectral imaging; Spectra of the multiple plastic products are collected in the multiple wavebands.
3. The data intelligent processing method of a spectrum analysis platform according to claim 1, characterized in that: Determining a plurality of suspected areas in the spectra of the plurality of plastic products comprises: Performing edge detection on the spectrograms of the plurality of plastic products to obtain regional edges; Based on the area edges, the multiple suspected areas are determined.
4. The data intelligent processing method of a spectrum analysis platform according to claim 1 is characterized in that: Based on the second possibility level, performing intelligent data processing on the plurality of plastic products includes: determining a plastic type of each plastic product among the plurality of plastic products based on the second possibility level; Based on the plastic type, intelligent data processing is performed on each plastic product.
Citation Information
Patent Citations
Space-based infrared hyperspectral image intelligent compression method
CN108198228A
Method and device for extracting water body region of hyperspectral image, and electronic equipment
CN114049571A
Method and system for automatically detecting ground feature change of multi-temporal satellite remote sensing image
CN114627087A
Metal surface defect detection method
CN115082482A
Bearing detection method for numerical control machine tool
CN115601365A
