CN115018771A - Building decoration wall tile abnormity evaluation method based on image processing - Google Patents
Building decoration wall tile abnormity evaluation method based on image processing Download PDFInfo
- Publication number
- CN115018771A CN115018771A CN202210553173.0A CN202210553173A CN115018771A CN 115018771 A CN115018771 A CN 115018771A CN 202210553173 A CN202210553173 A CN 202210553173A CN 115018771 A CN115018771 A CN 115018771A
- Authority
- CN
- China
- Prior art keywords
- sub
- abnormal
- regions
- wall tile
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/187—Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/761—Proximity, similarity or dissimilarity measures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
Abstract
The invention relates to the field of abnormity evaluation of architectural decoration wall tiles, in particular to an abnormity evaluation method of architectural decoration wall tiles based on image processing, which comprises the following steps: acquiring a processed wall tile surface image; performing Gaussian fitting on the surface image to obtain each subarea; obtaining a boundary value between every two sub-regions according to the similarity between every two sub-regions and the space information, and further obtaining a loss index; obtaining each preliminarily combined subarea by using the loss index; carrying out iterative combination on each preliminarily combined sub-region to obtain each finally combined sub-region; counting the number of pixel points in each sub-region after final combination to obtain a normal sub-region and an abnormal sub-region; and carrying out abnormity evaluation on the wall tiles to be detected according to the normal subarea and the abnormal subarea. The method is used for evaluating the abnormal degree of the wall tiles, and the accuracy and efficiency of the abnormal evaluation of the wall tiles can be effectively improved through the method.
Description
Technical Field
The invention relates to the field of abnormity evaluation of building decoration wall tiles, in particular to an abnormity evaluation method of building decoration wall tiles based on image processing.
Background
In the production process of the wall tile, surface defects such as cracks, abnormal color points, scratches and the like can be caused on the surface of the wall tile due to the influence of objective factors of the process technology. When a large amount of defects appear in the wall tiles, the attractiveness of the wall tiles can be affected, the service life of the wall tiles can be reduced when the defects are serious, the use effect of subsequent architectural decoration is even affected, and the potential safety hazard problem is brought. Therefore, the wall tiles need to be evaluated for anomalies.
At present, the means for abnormity detection and evaluation of the produced wall tiles mainly comprises the steps of detecting the produced wall tiles one by one according to the experience of operators, and carrying out abnormity evaluation and judgment on the wall tiles by the operators through observation.
However, the above method depends on manual experience, which results in large workload, slow detection speed, low evaluation accuracy and low detection efficiency, and thus a method for improving the accuracy and efficiency of the evaluation of the wall tile abnormity is urgently needed.
Disclosure of Invention
The invention provides an image processing-based abnormity evaluation method for a building decoration wall tile, which comprises the following steps: acquiring a processed wall tile surface image; performing Gaussian fitting on the surface image to obtain each subarea; obtaining a boundary value between every two sub-regions according to the similarity between every two sub-regions and the space information, and further obtaining a loss index; obtaining each preliminarily combined sub-area by using the loss index; carrying out iterative combination on each preliminarily combined sub-region to obtain each finally combined sub-region; counting the number of pixel points in each sub-region after final combination to obtain a normal sub-region and an abnormal sub-region; compared with the prior art, the wall tile abnormity detection method has the advantages that the collected wall tile surface image is analyzed, the wall tile abnormity detection model is established, the abnormity region is identified by the wall tile abnormity detection model, the abnormity region existing on the surface of the wall tile can be effectively extracted, fine-grained extraction is carried out on abnormal pixel points through multiple iteration and verification processes, and the wall tile abnormity detection method has the advantages of high accuracy, high detection speed and the like.
Furthermore, the method constructs a wall tile abnormal degree evaluation model based on the extracted characteristic parameters of the abnormal region, carries out quantitative analysis on the abnormal degree of the wall tile, and can improve the accuracy of the wall tile abnormal evaluation.
In order to achieve the purpose, the invention adopts the following technical scheme that the method for evaluating the abnormity of the architectural decoration wall tile based on image processing comprises the following steps:
s1: and collecting the surface image of the wall tile to be detected.
S2: and preprocessing the image of the surface of the wall tile to be detected to obtain a processed image of the surface of the wall tile.
S3: and performing Gaussian mixture model fitting on the surface image of the wall tile according to the brightness value of each pixel point, and determining each sub-region in the surface image through each Gaussian sub-model in the Gaussian mixture model.
S4: and calculating to obtain a boundary value between every two sub-regions according to the similarity between every two sub-regions and the space information.
S5: and calculating the loss index between every two sub-regions according to the boundary value between every two sub-regions.
S6: combining the two regions of which the loss indexes between every two subregions are lower than a set loss index threshold value into the same region, and sequentially carrying out category combination on all subregions in the surface image to obtain each subregion after primary category combination.
S7: and repeating the steps S4-S6 to carry out iterative type combination on each sub-region after the preliminary type combination until the loss index between any two sub-regions after combination is higher than the loss index threshold, and terminating the iteration to obtain each sub-region after the final type combination.
S8: and counting the number of pixel points in each sub-region after the final classification combination to obtain a normal sub-region and an abnormal sub-region.
S9: and performing abnormity evaluation on the wall tiles to be detected according to the obtained normal subarea and abnormal subarea.
Further, in the method for evaluating the abnormality of the building decoration wall tile based on the image processing, the boundary value between every two subregions is obtained as follows:
and acquiring the mean value and the variance of each Gaussian submodel.
And constructing a model vector according to the mean value and the variance of each Gaussian sub-model to obtain the model vector of each sub-region.
And constructing a similarity analysis model according to the model vector of each sub-region to obtain the similarity between every two sub-regions.
And calculating the space distance between every two sub-regions to obtain the space information between every two sub-regions.
And constructing a boundary value calculation model based on the similarity between every two sub-regions and the spatial information to obtain the boundary value between every two sub-regions.
Further, in the method for evaluating the abnormality of the architectural decoration wall tile based on the image processing, the expression of the similarity analysis model is as follows:
in the formula, r ij Is the similarity between sub-regions i, j, μ i 、μ j Mean, σ, of the Gaussian submodel i and the Gaussian submodel j, respectively i 、σ j The variance of the Gaussian submodel i and the variance of the Gaussian submodel j are respectively, and k is a model parameter.
Further, in the method for evaluating the abnormality of the architectural decorative wall tile based on the image processing, the expression of the boundary value calculation model is as follows:
in the formula, r ij Is the similarity between the sub-regions i, j,the value of the c-th boundary is the boundary composed of sub-regions i, j, d ij Is the spatial distance between the sub-regions i, j.
Further, in the method for evaluating the abnormality of the architectural decoration wall tile based on the image processing, the expression of the loss index is as follows:
in the formula, L c Is an indicator of loss between sub-regions i, j,the value of the c-th boundary is the boundary composed of sub-regions i and j, and t is the model parameter.
Further, in the method for evaluating the abnormality of the building decoration wall tile based on the image processing, the abnormality of the wall tile to be detected is evaluated as follows:
and acquiring an abnormal subregion according to the obtained normal subregion and the abnormal subregion to extract a binary image.
And multiplying the binary image extracted from the abnormal subarea by the RGB image of the wall tile to be detected and cutting to obtain different abnormal connected domains.
And obtaining the abnormal degree of the wall tile to be detected according to the quantity and the distribution index of the abnormal connected domains and the quantity of the pixel points in the abnormal connected domains.
Setting a threshold value, and judging the abnormal degree of the wall tile to be detected: when the abnormal degree of the wall tile to be detected is higher than the threshold value, the wall tile to be detected is unqualified.
Further, according to the method for evaluating the abnormality of the building decoration wall tile based on the image processing, the abnormality degree of the wall tile to be detected is obtained as follows:
and acquiring the number of the abnormal connected domains and the number of pixel points in the abnormal connected domains.
And obtaining a two-dimensional distribution map of each abnormal connected domain according to the gray values of all the pixel points in each abnormal connected domain.
And constructing a distribution index calculation model according to the two-dimensional distribution map to obtain the distribution indexes of the different connected domains.
And constructing a wall tile abnormal degree evaluation model according to the quantity and the distribution index of the abnormal connected domains and the quantity of the pixel points in the abnormal connected domains to obtain the abnormal degree of the wall tile to be detected.
Further, in the method for evaluating the abnormality of the architectural decoration wall tile based on the image processing, the expression of the distribution index calculation model is as follows:
in the formula, gamma a Is the distribution index of the a-th abnormal connected domain, g is the g-th gray scale contained in the abnormal connected domain, N' is the gray scale number, and M (g) is the number of pixel points corresponding to the gray scale g.
Further, in the method for evaluating the abnormality of the architectural decoration wall tile based on the image processing, the expression of the wall tile abnormality degree evaluation model is as follows:
wherein F is the abnormal degree of the wall tile to be detected, A is the number of abnormal communication domains, and gamma is a Distribution index of the a-th abnormal connected component, Z a The number of pixels included in the a-th abnormal connected domain.
The invention has the beneficial effects that:
according to the method, the collected wall tile surface image is analyzed, the wall tile abnormity detection model is established, the wall tile abnormity detection model is used for identifying the abnormal area, the abnormal area existing on the surface of the wall tile can be effectively extracted, fine-grained extraction is carried out on abnormal pixel points through multiple iterations and verification processes, and the method has the advantages of being high in accuracy, high in detection speed and the like.
Furthermore, the method constructs a wall tile abnormal degree evaluation model based on the extracted characteristic parameters of the abnormal area, carries out quantitative analysis on the abnormal degree of the wall tile, and can improve the accuracy of the abnormal evaluation of the wall tile.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for evaluating an abnormality of a building decoration wall tile according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for evaluating an abnormality of a building decoration wall tile according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The embodiment of the invention provides an image processing-based abnormity evaluation method for a building decoration wall tile, which comprises the following steps of:
and S1, acquiring the surface image of the wall tile to be detected.
The image of the surface of the wall tile refers to an acquired front-view image of the surface of the wall tile to be detected.
And S2, preprocessing the surface image of the wall tile to be detected to obtain a processed surface image of the wall tile.
The preprocessing refers to equalization processing and denoising processing.
And S3, performing Gaussian mixture model fitting on the surface image of the wall tile according to the brightness value of each pixel point, and determining each sub-region in the surface image through each Gaussian sub-model in the Gaussian mixture model.
The gaussian mixture model is a probability model that can be used to represent K sub-distributions in the population distribution, in other words, the mixture model represents the probability distribution of the observed data in the population, and is a mixture distribution composed of K sub-distributions.
And S4, calculating a boundary value between every two sub-regions according to the similarity between every two sub-regions and the space information.
The greater the similarity of the sub-regions, the smaller the spatial distance, and the higher the corresponding boundary value.
And S5, calculating according to the boundary value between every two subregions to obtain the loss index between every two subregions.
The loss index can be understood as the loss and cost of dividing two sub-regions into the same category (merging).
And S6, combining the two regions of which the loss indexes between every two subregions are lower than the set loss index threshold value into the same region, and sequentially carrying out category combination on all subregions in the surface image to obtain the subregions after the preliminary category combination.
Wherein the greater the attraction force between the two sub-regions, the less loss is to merge the two sub-regions.
And S7, repeating the steps S4-S6 to carry out iterative type combination on each sub-region after the primary type combination until the loss index between any two sub-regions after combination is higher than the loss index threshold, and terminating the iteration to obtain each sub-region after the final type combination.
The iterative category combination is used for improving the classification precision of the sub-regions.
And S8, counting the number of pixel points in each subarea after final category combination to obtain a normal subarea and an abnormal subarea.
The normal sub-area is a sub-area containing the largest number of pixels.
And S9, carrying out abnormity evaluation on the wall tiles to be detected according to the obtained normal subarea and the obtained abnormal subarea.
The abnormity evaluation of the wall tiles to be detected is mainly carried out by judging the size relation between the abnormity degree of the wall tiles to be detected and a set threshold value.
The beneficial effect of this embodiment lies in:
the embodiment analyzes the collected surface image of the wall tile, establishes the wall tile abnormity detection model, identifies abnormal regions by using the wall tile abnormity detection model, can effectively extract the abnormal regions existing on the surface of the wall tile, extracts abnormal pixel points with fine granularity by multiple iterations and verification processes, and has the advantages of high accuracy, high detection speed and the like.
Furthermore, the embodiment constructs a wall tile abnormal degree evaluation model based on the extracted characteristic parameters of the abnormal area, performs quantitative analysis on the abnormal degree of the wall tile, and can improve the accuracy of the abnormal evaluation of the wall tile.
Example 2
The embodiment of the invention provides an image processing-based abnormity evaluation method for a building decoration wall tile, which comprises the following steps of:
s201, collecting a surface image of the wall tile to be detected.
The abnormal surface condition of the wall tile is detected and evaluated after the wall tile is produced, and the abnormal degree of the white wall tile is evaluated mainly based on image data and an image processing technology.
Arrange image acquisition equipment directly over waiting to detect the wall tile, treat through the camera and detect the wall tile surface and carry out image acquisition, to the setting of camera position and camera shooting range, the implementer sets for by oneself according to actual conditions. In this embodiment, the camera is located and is waited the waited directly over and wait to detect the wall tile surface and look at the image to reduce the influence of factors such as illumination inhomogeneous to image acquisition, be convenient for accurately draw the unusual region on wall tile surface.
And S202, acquiring the processed surface image of the wall tile.
Because the material scheduling problem, wait to detect the wall tile surface and can appear the phenomenon of reflection of light, so, need carry out preliminary treatment to the image before carrying out surface anomaly detection: equalization processing is performed firstly, and the existing illumination equalization methods are many: histogram equalization, gamma transformation, etc., and the gamma transformation is used to perform illumination equalization processing, and the gamma transformation is a well-known technology and is not specifically described in the protection scope of the present embodiment. Then, the influence of noise is eliminated, in this embodiment, a mean filtering denoising method is used to eliminate noise points in the image, and influence of noise on image quality in the image acquisition process is avoided.
Therefore, the processed image data of the surface of the wall tile to be detected can be obtained according to the method, and the image data can be used for detecting and evaluating the abnormal condition of the surface of the wall tile in the follow-up process.
And analyzing the acquired image data, establishing a wall tile abnormity detection model for extracting and identifying abnormal areas on the surface of the wall tile, and conveniently evaluating the abnormal degree.
The main purpose of this embodiment is to realize the wall tile anomaly detection and identification through image data, further assess the wall tile abnormal conditions, consequently, to the image data who obtains, the wall tile anomaly detection model will be established to this embodiment for the extraction detects the wall tile abnormal region, based on this analysis wall tile's abnormal degree. The wall tile abnormity detection model specifically comprises the following steps:
and S203, acquiring each subarea.
For the acquired image data, a gaussian mixture model is fitted based on the brightness value of each pixel point in the image data of the wall tiles, the number of gaussian sub-models included in the gaussian mixture model is recorded as N, the number N of the gaussian sub-models can be set by an implementer, and the number N of the gaussian sub-models is set to 10. It needs to be described here that the brightness values of the pixel points are brightness values V of the pixel points of the acquired image after HSV conversion is performed on the image, and compared with an RGB space, the HSV space can express the brightness, the hue and the brightness of colors very visually, and highlight the difference contrast between colors to increase the identification precision of the abnormal area of the wall tile;
in order to obtain each region of the image corresponding to each gaussian sub-model and accurately detect the abnormal region on the surface of the wall tile, the embodiment further analyzes each region to improve the detection precision of the abnormal region. In this embodiment, each region is used as a sub-region, and a connection line between center points of the two sub-regions is used as a boundary, so that N sub-regions and NA bar boundary.
And S204, acquiring a boundary value between every two sub-regions.
In this embodiment, the boundary value of the boundary is set to be used for performing category merging on each sub-region, and the boundary value calculation model specifically includes:
firstly, setting a subregion similarity analysis model, detecting the degree of correlation between subregions, calculating a subsequent boundary value, and further identifying abnormal pixel points in the wall tile image data, wherein the subregion similarity analysis model is as follows: first, each gaussian sub-model can obtain two corresponding parameters: and constructing a model vector based on the mean value mu and the variance sigma for representing each Gaussian sub-model, wherein the model vector is v i =[μ i ,σ i ]And representing the model vector of the ith sub-region, then acquiring the model vector of each sub-region, and constructing a similarity analysis model:
in the formula, r ij Is the similarity between sub-regions i, j, μ i 、μ j Mean, σ, of the Gaussian submodel i and the Gaussian submodel j, respectively i 、σ j The variances of the Gaussian submodel i and the Gaussian submodel j are respectively, and the larger the function value of the model is, the higher the similarity between corresponding sub-regions is. k is a model parameter, which can be implemented byThe line is set, and k is 2 in this embodiment. Based on the model, the correlation between two sub-regions can be analyzed, and for N sub-regions, the correlation can be obtainedThe similarity value is used for analyzing the boundaries among the sub-regions to obtain the boundary values of all the boundaries;
then, in this embodiment, a boundary value calculation model is constructed based on the similarity between the sub-regions and the spatial information, and is used to obtain an index of a boundary between any two sub-regions, where the boundary value calculation model specifically includes:
in the formula, r ij The similarity between sub-regions i, j,the value representing the c-th boundary, i.e. the boundary formed by sub-regions i, j, d ij The space distance between the sub-regions i and j is calculated by using the euclidean distance, and according to the boundary value calculation model established in the embodiment, the greater the similarity of the sub-regions, the smaller the space distance, the higher the corresponding boundary value.
Thus, the boundary value of each boundary can be obtained for calculating the loss value of each sub-region for classification.
And S205, acquiring each sub-region after final class combination.
Further, the present embodiment will calculate the loss index L of the two sub-regions by the boundary value between the two sub-regions c :t is a model parameter, which can be selected by an implementer, and is set to be 2 in this embodiment, so that for subsequent analysis, the loss index model is normalized to ensure that the function value is [0,1 [ ]]The normalization process is known in the artThe technology is not described in the protection scope of the present embodiment. The loss index may be understood as a loss and a cost of dividing two sub-regions into the same category (merging), and the higher the boundary value is, the greater the attraction force between the two sub-regions is, the smaller the loss of merging the two sub-regions is, therefore, the loss index threshold L is set in this embodiment T In order to ensure the classification accuracy of the subareas, the loss index threshold value L T The setting is as small as possible, and the embodiment sets the setting to L T 0.25. When the loss index is lower than a preset threshold value L T In the embodiment, the two sub-regions are considered as the same category, the two corresponding sub-regions are classified into one category, and preliminary category merging is performed on each sub-region in the image;
in order to further improve the sub-region merging precision, in this embodiment, each sub-region obtained after the class merging is analyzed again, a boundary value between each merged sub-region is obtained, and a corresponding loss index is obtained, when the loss index value is lower than a preset threshold, each sub-region classified again is merged and classified again, and similarly, each new sub-region iteration after the class merging again can be subjected to sub-region class analysis merging, and an iteration condition is set: and ending the iteration until the loss index between any two sub-areas after combination is higher than the loss index threshold.
Therefore, the sub-regions after the final classification combination can be obtained more accurately, after the sub-regions of the image data to be analyzed are combined, the number of the pixel points in each sub-region is counted, the sub-region containing the largest number of the pixel points is used as a normal sub-region, the corresponding pixel points are used as normal pixel points, and other pixel points are abnormal pixel points and used for evaluating the abnormal degree.
The wall tile abnormity detection model constructed by the embodiment can effectively extract an abnormal region existing on the surface of the wall tile, and fine-grained extraction is performed on abnormal pixel points through multiple iterations and verification processes, so that the wall tile abnormity detection model has the advantages of high accuracy, high detection speed and the like.
Therefore, the method and the model designed by the embodiment realize the abnormal detection of the wall tiles, and accurately acquire abnormal pixel points in the image data of the surface of the wall tiles for evaluating the abnormal conditions of the wall tiles.
And analyzing the abnormal degree based on the detected abnormal area to obtain the abnormal degree of each wall tile to be detected, and providing reference opinions for manufacturers.
According to the steps, the image data of the surface of the agricultural wall tile to be detected can be analyzed, the abnormal area can be accurately extracted, further, a wall tile abnormal degree evaluation model is constructed, and the abnormal condition of the wall tile is detected and evaluated. The evaluation model for the abnormal degree of the wall tiles specifically comprises the following steps:
s206, acquiring each abnormal connected domain.
For the extracted abnormal subarea, the embodiment performs characteristic parameter extraction thereon for evaluation and determination of the abnormal degree. Firstly, setting the pixel value corresponding to the pixel point of the abnormal subregion as 1, and setting the pixel value of the pixel point corresponding to the normal subregion as 0, so as to obtain a binary image, and counting the number of abnormal connected domains in the binary image, and marking the abnormal connected domains as A. Counting abnormal pixel points in each abnormal connected domain, and recording the abnormal pixel points as Z a ,a=1,2,…,A,Z a The number of abnormal pixel points contained in the a-th abnormal connected domain;
and then multiplying the binary image by the original RGB image of the wall tile to be detected, and cutting to obtain the RGB image data of different connected domains.
And S207, acquiring distribution indexes of the different connected domains.
For each abnormal connected domain RGB image, the present embodiment analyzes the pixel distribution of each abnormal connected domain to obtain the distribution index of each abnormal region, which is used to evaluate the abnormal degree. The pixel distribution index is specifically as follows: for the RGB image in the abnormal connected domain, in order to reduce the calculation amount, firstly, dividing the gray levels of the pixel points 0 to 255 into N 'levels of 0- (N' -1), where N 'is less than 255 and as small as possible, in this embodiment, the gray levels are set to N' equal to 10, then counting the number of the pixel points corresponding to each gray level in the abnormal connected domain to obtain a corresponding two-dimensional distribution map, and further building a distribution index calculation model based on the two-dimensional distribution map:
in the formula, gamma a Is the distribution index of the a-th abnormal connected domain, g is the g-th gray scale contained in the abnormal connected domain, N' is the gray scale number, and M (g) is the number of pixel points corresponding to the gray scale g. The larger the model function value is, the more scattered the texture distribution corresponding to the abnormal connected domain is, and the higher the abnormal degree is.
And S208, acquiring the abnormal degree of the wall tiles to be detected.
And finally, constructing a wall tile abnormal degree evaluation model based on the extracted characteristic parameters of the abnormal regions, and carrying out quantitative analysis on the abnormal degree of the wall tile, wherein the evaluation model is as follows:
wherein F is the abnormal degree of the wall tile to be detected, A is the number of abnormal communication domains, and gamma a Is a distribution index of the a-th abnormal connected domain, Z a The number of the abnormal pixel points contained in the a-th abnormal connected domain.
And carrying out normalization processing on the model to ensure that the function value of the abnormal evaluation model is in [0,1], so that the subsequent abnormal condition can be visually known conveniently.
And S209, carrying out abnormity evaluation on the wall tiles to be detected.
In order to be convenient for relevant producers etc. directly perceivedly to know the abnormal conditions of the architectural decoration wall tile of producing, this embodiment will set for degree threshold value T to the abnormal conditions of wall tile, and when the abnormal degree of wall tile was higher than preset degree threshold value T, this embodiment will think that the abnormal degree of wall tile is too big, produces unqualifiedly, outward appearance and safety requirement when unsatisfying follow-up use. The wall tiles with the abnormal degree higher than the threshold value are placed in the fixed storage position and need to be processed again, so that the problems that the defective rate is increased, the production efficiency is reduced and the like due to the fact that the wall tiles are abnormal and serious are avoided. The threshold setting operator can set the threshold according to the actual situation, and the present embodiment sets T to 0.35.
The beneficial effect of this embodiment lies in:
the embodiment analyzes the collected surface image of the wall tile, establishes the wall tile abnormity detection model, identifies abnormal regions by using the wall tile abnormity detection model, can effectively extract the abnormal regions existing on the surface of the wall tile, extracts abnormal pixel points with fine granularity by multiple iterations and verification processes, and has the advantages of high accuracy, high detection speed and the like.
Furthermore, the embodiment constructs a wall tile abnormal degree evaluation model based on the extracted characteristic parameters of the abnormal area, performs quantitative analysis on the abnormal degree of the wall tile, and can improve the accuracy of the abnormal evaluation of the wall tile.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (9)
1. An image processing-based method for evaluating the abnormity of a building decoration wall tile is characterized by comprising the following steps:
s1: collecting a surface image of the wall tile to be detected;
s2: preprocessing a surface image of the wall tile to be detected to obtain a processed surface image of the wall tile;
s3: performing Gaussian mixture model fitting on the surface image of the wall tile according to the brightness value of each pixel point, and determining each sub-region in the surface image through each Gaussian sub-model in the Gaussian mixture model;
s4: calculating a boundary value between every two sub-regions according to the similarity between every two sub-regions and the space information;
s5: calculating to obtain loss indexes between every two sub-regions according to boundary values between every two sub-regions;
s6: combining two regions, of which the loss indexes between every two subregions are lower than a set loss index threshold value, into the same region, and sequentially carrying out category combination on all subregions in the surface image to obtain each subregion after primary category combination;
s7: repeating the steps S4-S6 to carry out iteration type combination on each sub-region after the preliminary type combination until the loss index between any two sub-regions after combination is higher than the loss index threshold value, and terminating the iteration to obtain each sub-region after the final type combination;
s8: counting the number of pixel points in each sub-region after the final classification is combined to obtain a normal sub-region and an abnormal sub-region;
s9: and carrying out abnormity evaluation on the wall tiles to be detected according to the obtained normal subarea and the abnormal subarea.
2. The method for evaluating the abnormality of the architectural decorative wall tile based on the image processing as set forth in claim 1, wherein the boundary value between every two subregions is obtained as follows:
acquiring the mean value and the variance of each Gaussian sub model;
constructing a model vector according to the mean value and the variance of each Gaussian sub-model to obtain a model vector of each sub-region;
constructing a similarity analysis model according to the model vector of each sub-region to obtain the similarity between every two sub-regions;
calculating the space distance between every two subregions to obtain the space information between every two subregions;
and constructing a boundary value calculation model based on the similarity between every two sub-regions and the spatial information to obtain the boundary value between every two sub-regions.
3. The method for evaluating the abnormality of the architectural decorative wall tile based on the image processing as claimed in claim 2, wherein the expression of the similarity analysis model is as follows:
in the formula, r ij Is the similarity between sub-regions i, j, μ i 、μ j Mean, σ, of the Gaussian submodel i and the Gaussian submodel j, respectively i 、σ j The variance of the Gaussian submodel i and the variance of the Gaussian submodel j are respectively, and k is a model parameter.
4. The image-processing-based abnormality assessment method for construction decorative wall tiles according to claim 2, wherein said boundary value calculation model is expressed as follows:
5. The image-processing-based abnormality assessment method for building decorative wall tiles according to claim 4, wherein the expression of said loss index is as follows:
6. The image processing-based abnormality assessment method for building decoration wall tiles according to claim 1, wherein the abnormality assessment for the wall tiles to be detected is performed as follows:
acquiring an abnormal subregion according to the obtained normal subregion and the abnormal subregion, and extracting a binary image;
multiplying and cutting the binary image extracted from the abnormal subarea by the RGB image of the wall tile to be detected to obtain different abnormal connected domains;
obtaining the abnormal degree of the wall tile to be detected according to the quantity and the distribution index of each abnormal connected domain and the quantity of the pixel points in each abnormal connected domain;
setting a threshold value, and judging the abnormal degree of the wall tile to be detected: when the abnormal degree of the wall tile to be detected is higher than the threshold value, the wall tile to be detected is unqualified.
7. The image processing-based abnormality assessment method for building decoration wall tiles according to claim 6, wherein the abnormality degree of the wall tiles to be detected is obtained as follows:
acquiring the number of different abnormal connected domains and the number of pixel points in the different abnormal connected domains;
obtaining a two-dimensional distribution map of each abnormal connected domain according to the gray values of all the pixel points in each abnormal connected domain;
constructing a distribution index calculation model according to the two-dimensional distribution map to obtain distribution indexes of different connected domains;
and constructing a wall tile abnormal degree evaluation model according to the quantity and the distribution index of the abnormal connected domains and the quantity of the pixel points in the abnormal connected domains to obtain the abnormal degree of the wall tile to be detected.
8. The image-processing-based abnormality assessment method for building decorative wall tiles according to claim 7, wherein the distribution index calculation model is expressed as follows:
in the formula, gamma a Is the distribution index of the a-th abnormal connected domain, g is the g-th gray scale contained in the abnormal connected domain, N' is the gray scale number, and M (g) is the number of pixel points corresponding to the gray scale g.
9. The image-processing-based abnormality assessment method for building decoration wall tiles according to claim 7, wherein the expression of said abnormality degree assessment model for wall tiles is as follows:
wherein F is the abnormal degree of the wall tile to be detected, A is the number of abnormal communication domains, and gamma a Is a distribution index of the a-th abnormal connected domain, Z a The number of pixels included in the a-th abnormal connected domain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210553173.0A CN115018771A (en) | 2022-05-20 | 2022-05-20 | Building decoration wall tile abnormity evaluation method based on image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210553173.0A CN115018771A (en) | 2022-05-20 | 2022-05-20 | Building decoration wall tile abnormity evaluation method based on image processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115018771A true CN115018771A (en) | 2022-09-06 |
Family
ID=83069759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210553173.0A Withdrawn CN115018771A (en) | 2022-05-20 | 2022-05-20 | Building decoration wall tile abnormity evaluation method based on image processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115018771A (en) |
-
2022
- 2022-05-20 CN CN202210553173.0A patent/CN115018771A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113989279B (en) | Plastic film quality detection method based on artificial intelligence and image processing | |
CN113935666B (en) | Building decoration wall tile abnormity evaluation method based on image processing | |
CN109934802B (en) | Cloth defect detection method based on Fourier transform and image morphology | |
CN114549522B (en) | Textile quality detection method based on target detection | |
CN115294113B (en) | Quality detection method for wood veneer | |
CN114419025A (en) | Fiberboard quality evaluation method based on image processing | |
CN114757900B (en) | Artificial intelligence-based textile defect type identification method | |
CN110210448B (en) | Intelligent face skin aging degree identification and evaluation method | |
CN115564771B (en) | Concrete crack identification method based on building foundation column | |
CN108181316B (en) | Bamboo strip defect detection method based on machine vision | |
CN107490582B (en) | Assembly line workpiece detection system | |
CN106557740B (en) | The recognition methods of oil depot target in a kind of remote sensing images | |
CN111160451A (en) | Flexible material detection method and storage medium thereof | |
CN114627125A (en) | Stainless steel tablet press surface quality evaluation method based on optical means | |
Wah et al. | Analysis on feature extraction and classification of rice kernels for Myanmar rice using image processing techniques | |
CN114926410A (en) | Method for detecting appearance defects of brake disc | |
CN109239073A (en) | A kind of detection method of surface flaw for body of a motor car | |
CN115294109A (en) | Real wood board production defect identification system based on artificial intelligence, and electronic equipment | |
CN112837308A (en) | Building crack detection method, device, equipment and storage medium | |
CN114049316A (en) | Steel wire rope defect detection method based on metallic luster area | |
CN118014933A (en) | Defect detection and identification method and device based on image detection | |
CN115731493A (en) | Rainfall micro physical characteristic parameter extraction and analysis method based on video image recognition | |
CN116524205A (en) | Sewage aeration automatic detection and identification method | |
CN116883408A (en) | Integrating instrument shell defect detection method based on artificial intelligence | |
CN114332081A (en) | Textile surface abnormity determination method based on image processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220906 |
|
WW01 | Invention patent application withdrawn after publication |