Building Crack Detection Based on Digital Image Processing Technology and Multiscale Feature Analysis Automatic Detection Algorithm

At present, the monitoring of concrete cracks is still mainly carried out by engineering personnel using simple mechanical monitoring instruments. The human inspection will undoubtedly be interfered by the individual’s psychological, physical, and external conditions, and there may also be unobjective emotions, so it is impossible to ensure that the quality of the detection is up to standard and accurate. This paper combines digital image processing technology and multiscale feature analysis automatic detection algorithm to construct an intelligent building structure crack detection system. Moreover, this paper proposes an enrichment scheme for the unknown partially entangled states of building microparticles and utilizes the entanglement exchange process based on the Raman interaction of two building microparticles. The experimental results show that the automatic detection method of building cracks based on digital image processing technology and multiscale feature analysis has a good effect.


Introduction
e factors that cause cracks in concrete include the difference in the composition of the material of the structure itself, the di erence in the building system, and even the in uence of geographical environment and climatic factors. In general, the types of concrete cracks can be divided into [1] (1) cracks caused by changes in the shape of the building; (2) cracks caused by too much weight; (3) cracks caused by insu cient quality; (4) cracks caused by irregular operation during construction. Among these types of cracks, the largest proportion is due to the change in the shape of the concrete in the building. e quality and safety of the building are not a ected by the change in the shape of the concrete resulting in larger cracks; that is, the building's bearing capacity has not changed much. However, the appearance of cracks caused a great psychological barrier to the occupants, which a ected the handover of the whole project [2]. In addition, the cracks in the building will cause the Party A of the construction project to reject the feeling, which is not conducive to the continued cooperation of the construction team in the future, and will have an adverse impact on the entire work team. Moreover, building cracks are a major stain on engineering quality. First, there is a clear requirement in the code of practice for construction projects to reduce the occurrence of cracks. Second, there is no agreement that cracks can appear in buildings in the current project quality inspection speci cations.
ird, users will also not accept buildings with obvious cracks. In other words, this problem also re ects that the technical level of the engineering industry is not up to the mark, and the cracks have a bad impact on the beauty and normal use of the entire building and even threaten the property and life of users [3]. Cracks in concrete also lead to great adverse e ects in terms of economy. For example, the engineering team had to carry out a series of remedial measures for cracked buildings, such as reinforcement and maintenance, and the cost of these two measures was huge. Some foreign professionals estimate that the annual remediation funds for facilities are now calculated at 8 billion yuan. erefore, strengthening the detection of the causes of concrete cracks and monitoring and detection is the top priority of accurately identifying construction quality projects and reducing project damage. Moreover, if the occurrence of cracks cannot be accurately detected on time, a series of monitoring methods are not complete, and the analysis of data is not deep enough, then solving the crack problem is still only an extravagant hope.
is paper combines digital image processing technology and multiscale feature analysis automatic detection algorithm to construct an intelligent building structure crack detection system to improve the crack detection effect of building structures.

Related Work
e particularity of concrete material determines that concrete is widely used in the construction industry, and its own flow-plastic state can configure concrete structural components of different shapes. e advantages of concrete are high strength and good durability after forming [4]. In recent years, the scale of the project has been expanding, and concrete materials have been widely used. In the highquality life, in order to meet the needs of users, the building structure has become particularly complex, resulting in the increasingly prominent crack problem in the engineering structure, which has plagued the personnel in the construction industry for a long time.
is is due to the shortcomings of concrete materials, its tensile strength is very low, and its own defects determine that cracks are inevitable in structural construction [5]. is characteristic is also revealed in the microscopic study of concrete materials by modern science. It is enough to control the cracks within the acceptable range of people. e pursuit of high standards and high requirements of sensory quality is bound to bring huge economic costs. In general, concrete has characteristics that other materials do not have; that is, it is allowed working with cracks in the structure, but it is not indulgent, but it is controlled within a reasonable range under the condition of ensuring the safety of the structure [6]. e structure itself is affected by various external environments, construction conditions, and constraints between components. In the design stage, reasonable stress construction measures should be adopted. In the construction stage, the quality should be strictly controlled, construction management should be strengthened, and reasonable construction techniques should be adopted, improved, and solved [7].
With the development of science and technology, people's understanding of the microstructure of materials continues to deepen, and scientists put forward the theory of concrete structure on the basis of phenomenological theory. In the process of research, people are more and more deeply aware of the influence of concrete material itself on cracks, and the research on concrete material itself is also deepening [8]. Xiong et al. [9] applied the finite element method to study the shrinkage and creep of concrete. Black [10] believes that the heat of structural hydration causes the volume change of the concrete structure, which generates internal stress under the condition of external constraints, which in turn leads to the early cracking of the concrete structure. In [11], when studying the relationship between the degree of structural restraint and the early deformation of concrete, and the transition state mechanical properties of hardened concrete, it was found that the temperature point of view in the traditional view is not comprehensive for the standard of crack risk, so the early concrete is proposed. Cracking is caused by volume changes caused by the heat of hydration of concrete. ey divided the cracks into concrete cracks in the expansion stage and concrete cracks in the shrinkage stage.
Photogrammetry is the analysis of two-dimensional images obtained by measuring cameras or nonmeasuring cameras to determine the position, shape, size, and even the movement of objects in three-dimensional space [12]. Measuring cameras are specially designed and manufactured for photogrammetry, with stable mechanical structure and good optical performance [13], but high prices. Nonmeasuring cameras are photographic equipment such as ordinary digital cameras, which are relatively cheap. Photogrammetry technology is a branch of surveying and mapping, so for a long time, most of the work on photogrammetry has used aerial photography to obtain topographic information and draw topographic maps [14]. Some people use measuring cameras or nonmeasuring cameras to photograph objects at a close distance and then process and analyze the obtained two-dimensional images to obtain various information about the object, which is digital close-range photogrammetry technology. Digital close-range photogrammetry technology is applied to the field of crack detection.
rough the coordinate transformation analysis of photographic graphics, a two-dimensional coordinate system and a three-dimensional coordinate system are established to obtain buildings' basic information [15]. e crack width detector collects the target image through the front-end camera and transmits it to the LCD for display and measurement. According to the different measurement methods, it is divided into two types: manual reading method and automatic measurement method. ere is a scale on the screen of the manual reading method of the crack width detector. When measuring, the crack width is read out according to the distance between the lines on the screen. Compared with the crack microscope method, the use of liquid crystal display instead of human eye observation reduces the reading errors caused by labor intensity and visual fatigue to a certain extent [16].
Reference [17] is based on the traditional digital closerange photogrammetry method to measure the crack width. A camera is used to shoot the crack vertically. Every time the position of the camera is changed, it needs to be recalibrated. It is proposed to project the crack edge curve to the space plane, a stereo vision method for recovering the three-dimensional coordinates of the crack edge, and its feasibility is verified by experiments. Pei et al. [18] proposed a threedimensional cross-direction shooting method that uses two cameras to shoot from different angles, which is used to detect road pavement cracks, and obtains more information than the monocular method.

Microscopic Finite Element Particle Recognition of Digital Buildings
Due to the main role of entanglement in the process of building finite element particle information, the preparation of various types of entangled states has always been a hot issue in the research of building finite element particle information. In addition to the method of entangling the originally unrelated quantities through interaction, there is another kind of method to obtain the entangled state, which is to obtain the entangled state we need from the entangled state, and entanglement exchange is such a method.
Another way is to get the maximally entangled state we need from a series of partially entangled states: is operation is called entanglement concentration for pure states and entanglement purification or entanglement distillation for mixed partially entangled states. e generation of some entangled states in the experiment may be due to the imperfection of the experimental scheme, or it may be due to the influence of the loss during the entanglement transmission process. However, in the process of building finite element particle information processing based on entangled state, a large part of it is based on the maximum entangled state. Entanglement enrichment or entanglement purification is a class of methods that aim to obtain a small number of maximally entangled states from a large sample of partially entangled states through local manipulation and classical communication.
So far, many theoretical and experimental schemes for entanglement purification and entanglement enrichment have been proposed. Many physical systems can be used to achieve entanglement purification or concentration. Experiments with entanglement purification in these schemes are mainly limited to the use of linear optical elements such as beam splitters. A scheme to achieve entanglement purification using photonic states has also been proposed. And entanglement condensation in continuous variable systems has also received attention. Entanglement exchange can also be used to achieve entanglement enrichment. e entanglement concentration and entanglement purification of architectural finite element particle state have also received attention. At present, many entanglement concentration and purification schemes for architectural finite element particle state have been proposed, but its experimental realization is still being explored. erefore, it is also a major research trend to find an experimentally easy-to-implement solution for purification or enrichment of entangled states of architectural finite element particles.
In cavity QED systems, the decay of cavity modes, the thermal field effect caused by the excitation of the cavity field, and the decoherence caused by the decay of spontaneous radiation of architectural finite element particles are the main obstacles to the current experiments of cavity QED systems. In the literature, a condensed scheme of the entangled state of architectural finite element particles is proposed. ey use a classical field and a cavity mode to simultaneously couple the same transition of two architectural finite element particles and obtain two under the condition of strong driving field approximation and large detuning.
e effective interaction Hamiltonian of each building finite element particle results in the state evolution required in the entanglement enrichment scheme. In their entanglement enrichment scheme of this architectural finite element particle state, cavity attenuation and thermal field effects are eliminated. Inspired by this scheme, we propose an entanglement enrichment scheme for architectural finite element particle states. Combining the finite element particle and the external classical field, the effective interaction between the ground states of the two building finite element particles is analyzed, and the evolution process of the building finite element particle state is obtained. Since the cavity field is not excited and the excited states of the architectural finite element particles do not participate in the interaction, in our scheme, the decay of the cavity field, the decoherence caused by the thermal field, and the spontaneous emission of the architectural finite element particles are all suppressed. And compared with the schemes in the literature, our scheme only needs to select the architectural finite element particle velocity without adjusting the Rabi frequency of the classical field to complete the entanglement enrichment process, which shows that the operation steps in our scheme are simplified.
We first introduce the architectural finite element particle and field action forms required in our entanglement enrichment scheme. Consider two three-level Λ-type architectural finite element particles, each of which has two metastable states |g〉 and |e〉 and an excited state |h〉, as shown in Figure 1. e single-mode cavity field-driven dipole-allowed transition is |g〉 ⟶ |h〉 with annihilation operator a, and the monochromatic laser field coupled dipole transition is |e〉 ⟶ |h〉. Under the dipole approximation and the rotating wave approximation, the Hamiltonian of the system composed of the building finite element particles and fields in the interaction picture is (Z � 1).
In the above figure, the single-mode cavity field coupling transition is |g〉 ⟶ |h〉, and the optical field-driven transition is |e〉 ⟶ |h〉.
Among them, H.c. stands for complex conjugate. g and Ω are the Rabi frequencies of the cavity mode and the laser field, respectively, which are taken as real numbers for the simplicity of the calculation. Δ � ω c − ω hg � ω L − ω he is the detuning of the two fields and their respective transitions, and we assume that the detuning is large, that is, |Δ| ≫ g, Ω; ω hg and ω he are the transition frequencies of the architectural finite element particles; ω c and ω L are the frequencies of the cavity and laser fields, respectively. For the simplicity of the calculation, we assume that the coupling Advances in Multimedia constants of the two building finite element particles and fields are the same. After adiabatically eliminating the excited states of the building finite element particles, we get the following effective Hamiltonian: is is the interaction between two metastable states of architectural finite element particles caused by Raman interaction. We assume that the cavity field is initially in a vacuum state, and with transfer into the interaction frame rotated with H 0 � Ω 2 /Δ(|e 2 〉t〈e 2 | + |e 3 〉n〈qe 3 |), the above effective Hamiltonian becomes the following form: λ 1 e − iλ 2 t a † g j 〉t〈e j +λ 1 e iλ 2 t a e j 〉n〈qg j | . (3) Among them, λ 1 � gΩ/Δ, λ 2 � Ω 2 /Δ. When λ 2 ≫ λ 1 , that is, when the laser field is driven by a strong field, then there is Ω ≫ g. We can obtain the following effective Hamiltonian by using H e � − iH 3 (t) Among them, λ � g 2 /Δ, the building finite element particle operator is s + j � |e j 〉t〈ng j |, and the building finite element particle operator is s − j � |g j 〉t〈ne j |. From this expression, it can be seen that, during this interaction, the cavity field is in a state of virtual excitation. erefore, the cavity field is always in its vacuum state during the whole action process. Using this effective Hamiltonian, we can obtain the state evolution of the architectural finite element particles as follows: As we will see later, this evolution of the architectural finite element particle system can be used to realize the condensed scheme of the unknown entangled state of the architectural finite element particle.
In the following, we will introduce in detail the process of condensing the unknown entangled state of architectural finite element particles. We assume that there are four threelevel Λ-type building finite element particles, and these four building finite element particles are in the following two nonmaximally entangled states: Among them, A, B, C, and D are unknown normalization coefficients that satisfy A 2 + B 2 � 1 and C 2 + D 2 � 1. In addition, we mainly consider the concentration of the following special partially entangled states; that is, the coefficients of these partially entangled states also satisfy the relation is formula shows that neither |ψ〉 12 nor |ψ〉 34 is the maximum entangled state of the two building finite element particles.
In order to obtain a maximum entangled state of twobuilding finite element particles from these two partially entangled states, a cavity needs to be introduced at the location of Charles. en, Charles sends his two architectural finite element particles 2 and 3 into the cavity to interact with the laser field.
is mode of action is the interaction process between building finite element particles and fields that we introduced earlier. In the strong driving limit, this interaction is described by the effective Hamiltonian in equation (4). e possible state evolution of architectural finite element particles 2 and 3 is described by equation (5). Using this state evolution, the evolution of the joint initial state of the four architectural finite element particles is After the action, a joint measurement is made of the states of the building finite element particles 2 and 3. If the building finite element particles 2 and 3 are detected to be in two different states, that is, the building finite element particles 2 and 3 are detected in state |g 2 〉|e 3 〉 or |e 2 〉|g 3 〉, the corresponding states of atoms 1 and 4 will collapse to Alternatively, there is Among them, the normalization factor is By choosing the velocity of the building finite element particles to make the interaction time t � π/4λ and using the initial condition A C � B D, the states of the building finite element particles 1 and 4 are Alternatively, there is If the building finite element particles 2 and 3 are measured to be in the same state, that is, the state of the building finite element particles 2 and 3 is |e 2 〉|e 3 〉 or |g 2 〉|g 3 〉, it means that the rectification concentration process is lost. We need to restart the interaction until we finally measure that the building finite element particles 2 and 3 are in one of two different metastable states, respectively. With |e 2 〉|g 3 〉, |g 2 〉|e 3 〉 0 for any one of these cases where entanglement concentration may be obtained, after a rotation operation, the states of building finite element particles 1 and 4 will become the following two maximum entangled states of building finite element particles: e probability of obtaining the maximum entangled state of the finite element particles of the two buildings is P � 2A 2 C 2 , where the factor 2 is derived from the detection results |e 2 〉|g 3 〉 and |g 2 〉|e 3 〉, which correspond to the maximum entangled state of the finite element particles of the same two buildings. It can be seen from this that the two building finite element particles 1 and 4, which have no interaction originally, are in the maximum entangled state of two building finite element particles after the entanglement exchange.
e realization of the entanglement exchange process here is achieved by the Raman interaction of the two architectural finite element particles and the cavity field as well as the laser field and under the strong driving effect of the laser field. is scheme achieves the entanglement enrichment of a maximum entangled state of two building finite element particles from two partially entangled states of four building finite element particles.
Our entanglement enrichment scheme has a certain capacity for fault tolerance, which is manifested as a small error in the coefficients of the initial two partial entangled states, which has little effect on the fidelity of the final maximum entangled state of two-building finite element particles obtained by our scheme, which can be almost ignored. Among them, we assume that this small error comes from the shadow of not being able to send two building finite element particles into the air at the same time. Consider the following special case A � D, B � C, the relation A/B � D/C ≠ 1 always holds. When there is such a small error, for example, due to this small error, the coefficient A in it has a deviation, that is, D � A + k A, where k is a small constant. With this little error, we finally obtain the state of the building finite element particles 1 and 4 for the entanglement enrichment process after the rotation operation as Among them, N � 1 + (1 + k) 2 − 2A 2 (1 + k) 2 , which is the requirement of the normalization condition. e fidelity of the entanglement enrichment process is defined as the square of the modulus of the inner product of |ϕ〉 14 between the state we obtained and the maximum entangled state of the two building finite element particles, that is, F � |〈ϕ 14 ′ � � � � � ϕ 14 〉| 2 , and the result of the calculation is If A � 0.7, k � 0.1, then the fidelity is F≃0.989. is result shows that small errors in the coefficients of the initial two partially entangled states have little effect on the fidelity of the maximally entangled state we finally obtain for the two building finite element particles. e experimental feasibility of this scheme is analyzed below. We take the two states of the main building finite element particles of the Rydberg building finite element particles, 50 and 51, respectively, to represent our metastable Advances in Multimedia and excited states. e characteristic time of spontaneous emission of architectural finite element particles is T r � 30 ms, and the two metastable |g〉 and |e〉 of architectural finite element particles are the two fine sublevels of the ground state. e resonance frequency of building finite element particles with |g〉 ⟶ |h〉 transition is about 51.1 GHz. For the Rydberg building finite element particles interacting with the high-quality factor cavities, the coupling constant between the building finite element particles and the hull can reach g ≈ 2π × 50 kHz, and the decay time of the cavity is t c � 1.5 milliseconds. By choosing Ω � 10 g and Δ � 100 g, the strong driving conditions Δ ≫ Ω, g and Ω ≫ g can be satisfied at the same time. In this case, the effective combination constant of the building finite element particlecavity is λ � 0.01 g. In this scheme, the probability of the excitation field is a small xu, that is, P c � 0.01. erefore, the effective reduction time of the cavity is T c � P − 1 c t c � 150 seconds. In this entanglement enrichment scheme, the excited states of the architectural finite element particles do not participate in the interaction and the cavity field is also virtually excited. Spontaneous emission of architectural finite element particles, cavity attenuation, and the resulting decoherence due to thermal field effects have no effect on our results of entanglement enrichment. Based on the above reasons, our method of condensing the rectified state of finite element particles of unknown buildings is experimentally feasible.
Geometric parameters are the most basic properties of cracks. e key to identifying pavement cracks is to calculate the geometric parameters of cracks. In order to facilitate the implementation of subsequent work by road maintenance personnel, it is necessary to calculate relevant geometric parameters for different types of cracks. Among them, the linear fracture needs to consider its length and width parameter information, and the network fracture is mainly concerned with its minimum circumscribed rectangular area.
According to the linear characteristics of cracks, before calculating the length and width of linear cracks, it is necessary to refine the cracks, that is, extract the skeleton of the crack peak without changing the crack peak profile and obtain a single-pixel wide crack. e extraction of the skeleton is done by erosion and opening operations. We set A as the image to be processed and B as the structural element, and the skeleton is as follows: Among them, S k (A) is the skeleton subset; the formula is as follows: In formula (2), AΘkB is the consecutive k times of erosion of A, K is the last iterative step before A is eroded into an empty set, and the expression is If the actual length of each pixel is μ (μ � 0.92 mm in this data set), and the total number of pixels l after refinement is calculated, the length of the linear crack is L � μl. e linear crack width is divided into minimum width, maximum widt,h and average width. In this paper, the vertical line method based on the split skeleton is used to calculate the width. e basic idea is to make the vertical line of the crack, determine the two intersection points A(x 1 , y 1 ), B(x 2 , y 2 ) of the vertical line and the edge of the crack, and use the distance formula between the two points to calculate the width of the local area as To obtain n pixel width samples d i |i ≥ 1&i ≤ n for linear cracks, the minimum and maximum widths of cracks are, respectively: (20) e number of unrefined crack pixels E is calculated: en, the actual area of the linear crack is Q � μE, and the average crack width can be expressed as d avg � Q/L.
We take the figure as an example to calculate the parameters, calculate the pavement damage index PCI and the crack rate C K according to the formula, and make the final pavement evaluation according to the table.
Usually, for network cracks, the area surrounded by the outermost cracks is used to measure the size of the cracks, and then the damage degree of the pavement cracks is evaluated. e maximum value X 1 and minimum value X 2 of the coordinates projected on the X axis of the crack and the maximum value Y 1 and the minimum value Y 2 of the coordinates projected on the Y axis are recorded. e calculation of the mesh crack area is In the formula, μ 2 represents the proportion of the actual area occupied by a pixel.

Research on Building Crack
Detection considering Digital Image Processing Technology Combined with Multiscale Feature Analysis Automatic Detection Algorithm e overall design of the system is shown in Figure 2, which is mainly composed of machine vision system and embedded Linux system. is paper combines the algorithm of the third part to perform digital image processing to detect building cracks.
Two classification criteria are used to compare the effect of sample discarding on crack detection. e classification methods and results of the two methods are shown in Figures 3(a) and 3(b). e 90 original images are expanded to 1350 images through data enhancement, and they are automatically segmented and marked according to the two classification standards mentioned above. Moreover, this paper randomly selects 50,000 marked positive and negative samples as data set 1 and data set 2. e number of positive and negative samples is the same to ensure the balance of the samples. e model in this paper is based on the network structure shown in Figure 4 below. Figures 4(a) and 4(b) are the network structure diagrams of the Cha network and AlexNet, respectively. e input size of the Cha network is 256 × 256 × 3 pixels, and the three-layer convolutional receptive fields in the network are 20 × 20 and 15 pixels, respectively, with 15 × 15 and 10 × 10 sizes. e input size of AlexNet is 227 × 227 × 3 pixels, and the receptive field of the first layer convolution is 11 × 11, and the rest of the convolutional receptive fields are 3 × 3.
e processed image is shown in Figure 5. e establishment of this index can evaluate the influence of various factors on the final crack detection result in the framework of concrete crack detection based on convolutional neural network. Moreover, the distance index established based on the large image can more intuitively reflect the gap between the crack marked on the original image and the real crack than the evaluation index based on the small image. erefore, a large image with poor detection effect can be directly found according to this distance index.
rough the marking of cracks on the large image, it is faster and clearer to judge the situation of the wrong parts, such as shadows, smears, etc., which are easily misjudged in the sample. It is difficult to distinguish multiple categories from the small sample image, but these parts can be clearly judged on the large image.
On the basis of the above research, this paper verifies the effect of the building crack detection method based on digital image processing technology and multiscale feature analysis automatic detection algorithm. In this paper, several sets of crack images are used for experimental research, and the effectiveness of the method in this paper is counted, and the results shown in Table 1 and Figure 6 are finally obtained. e above research verifies that the automatic detection method of building cracks based on digital image processing technology and multiscale feature analysis automatic detection algorithm proposed in this paper has a good effect.

Conclusion
In order to find out in time whether concrete cracks in construction projects conform to national safety standards and their development and changes, it is necessary to develop a monitor that can accurately monitor the crack width and its changes in real time. It can provide data support for concrete testing results and can also monitor concrete cracks and make effective evaluation after maintenance. In addition, it can also perform construction audits of various materials and components, so it can bring huge social impact. If the crack width of the coagulation map can be automatically detected according to the crack image, the actual work difficulty will be greatly reduced. e reason is that some concrete cracks are in very dangerous places and are difficult to be detected manually. erefore, it is of certain value and significance to develop an intelligent monitoring system for concrete cracks in construction projects.
is paper combines digital image processing technology and multiscale feature analysis automatic detection algorithm to construct an intelligent building structure crack detection system. e experimental results verify that the automatic detection method of building cracks based on digital image processing technology and multiscale feature analysis has a good effect.

Data Availability
e labeled datasets used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e author declares no competing interests. Advances in Multimedia 11