A method, system and medium for online monitoring of tower inclination based on image recognition

Through the method based on image recognition, the relative inclination angle and pixel value difference rate of the real-time image and the reference image are used to realize the online monitoring of the tower inclination angle, which solves the problem of insufficient detection frequency and real-time performance in the existing technology, and improves the accuracy of monitoring. Accuracy and sensitivity.

CN118411676BActive Publication Date: 2024-08-23SOUTHWESTERN INST OF PHYSICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864778.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-08-23
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

The existing tower inclination detection method is difficult to achieve high frequency and poor real-time performance in harsh terrain areas, and the number of sensors is limited, making it difficult to reflect the overall deformation of the tower.

Method used

A method based on image recognition is used to obtain the real-time image and reference image of the tower, perform brightness adjustment, frequency domain conversion, multi-scale peak search and calculate the phase difference, and combine the pixel value difference rate to monitor the tilt of the tower in real time.

Benefits of technology

It realizes online monitoring of the overall deformation of the tower, reduces the influence of external light, improves the sensitivity and accuracy of tilt angle changes, and provides rapid feedback on the overall deformation of the tower.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411676B
    Figure CN118411676B
Patent Text Reader

Abstract

The present invention relates to an online monitoring method, system and medium for the inclination of an iron tower based on image recognition. The method comprises: obtaining a real-time image of an iron tower and its corresponding reference image, and using the real-time image as a first real-time image; adjusting the brightness of the first real-time image to obtain a second real-time image with the same brightness as the reference image; converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, and converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data; performing multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the phase difference of the corresponding peak point to obtain the relative inclination of the second real-time image and the reference image; obtaining the inclination of the iron tower based on the relative inclination and the pixel value difference rate between the second real-time image and the reference image. The sensitivity and accuracy of distinguishing the change of inclination angle are improved, and the overall deformation of the iron tower can be fed back in real time and quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power equipment image processing, and in particular to an online monitoring method, system and medium for an iron tower inclination angle based on image recognition. Background Art

[0002] As one of the key infrastructures supporting the normal operation of the entire society, the flexible steel structure truss towers for power transmission / communication / observation / transmission (hereinafter referred to as "towers") are of great concern for various safety issues during their operation. One of them is the deformation of the tower in the tangential direction (manifested as bending or tilting) due to additional mechanical loads such as gravity, wind, and snow accumulation. When the deformation is too large, it may cause major accidents such as tower collapse and overturning. Therefore, it is extremely important to monitor the inclination of the tower, especially the large towers used in various high-voltage and ultra-high-voltage transmission lines.

[0003] Among the commonly used tilt detection methods, one method is regular manual visual inspection (which can be combined with drones, etc.). However, it is difficult to achieve a high frequency in areas with harsh terrain (such as mountains, canyons, etc.), the real-time performance is poor, and it consumes a lot of manpower and financial resources. Another method is to analyze and judge the data of various online / offline sensors (tilt sensors, preload sensors, etc.) arranged on the tower. In this method, the number of sensors is always limited, and it is difficult to reflect the overall deformation of the tower. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a method, system and medium for online monitoring of the inclination of an iron tower based on image recognition, which has the characteristic of higher online monitoring accuracy.

[0005] In a first aspect, an embodiment provides an online monitoring method for an iron tower inclination based on image recognition, comprising:

[0006] Acquire a real-time image of the tower and a corresponding reference image thereof, and use the real-time image as a first real-time image, wherein the reference image is a preset image;

[0007] Adjusting the brightness of the first real-time image based on the reference image to obtain a second real-time image having the same brightness as the reference image;

[0008] Convert the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, convert the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquire the second frequency domain data;

[0009] Perform multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference, so as to obtain the relative inclination angle of the second real-time image and the reference image;

[0010] Calculating a pixel value difference rate between the second real-time image and the reference image;

[0011] Based on the relative inclination angle and the pixel value difference rate, the inclination of the tower is obtained.

[0012] In one embodiment, the step of acquiring a real-time image of the tower and a corresponding reference image thereof includes: acquiring a real-time image of the tower and a reference image corresponding to the real-time image after equalization processing, wherein the equalization processing method includes: dividing the image into a plurality of blocks, and for any one block, including:

[0013] Performing contrast limiting processing on the statistical histogram, reducing the brightness corresponding to pixels having brightness greater than a preset brightness threshold to a preset brightness, wherein the statistical histogram represents the number of pixel points corresponding to each brightness value;

[0014] Performing balanced mapping processing to obtain a balanced mapping function;

[0015] Based on all statistical histograms, according to the position information of each pixel, bilinear difference is performed based on the equalization mapping function of the statistical histograms of the four adjacent blocks above, below, left and right, so as to obtain the reference image after equalization processing.

[0016] In one embodiment, the step of adjusting the brightness of the first real-time image based on the reference image to obtain a second real-time image having the same brightness as the reference image includes:

[0017] Using the statistical histogram of the first real-time image as a first real-time statistical histogram, using the statistical histogram of the reference image as a first reference statistical histogram, adjusting the shape of the first real-time statistical histogram so that the shape of the adjusted first real-time statistical histogram is the same as the first reference statistical histogram; the statistical histogram represents the number of pixels corresponding to each brightness value;

[0018] The statistical histogram of the adjusted first real-time image is used as a second real-time statistical histogram, and based on the second real-time statistical histogram, a cumulative histogram of the adjusted first real-time image is obtained as a real-time cumulative histogram, and a cumulative histogram of the reference image is obtained as a reference cumulative histogram; the cumulative histogram is an integral of the statistical histogram, indicating the number of pixels whose brightness is less than or equal to each brightness value;

[0019] For any brightness value in the real-time cumulative histogram,

[0020] Obtaining a value of a real-time cumulative histogram corresponding to any one of the brightness values, and finding a value of a reference cumulative histogram that is closest to the value of the real-time cumulative histogram;

[0021] The brightness value corresponding to the value of the reference cumulative histogram is used as the brightness value to be adjusted for the pixel point corresponding to any one of the brightness values ​​to perform brightness adjustment to obtain a second real-time image.

[0022] In one embodiment, converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquiring the second frequency domain data includes:

[0023] Before converting the image data of the second real-time image from time domain data to frequency domain data, the image data of the second real-time image is represented as two-dimensional polar coordinates, and before converting the image data of the reference image from time domain data to frequency domain data, the image data based on the image is represented as two-dimensional polar coordinates.

[0024] In one embodiment, converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquiring the second frequency domain data includes:

[0025] ;

[0026] ;

[0027] in, represents the temporal data of the reference image, and Respectively represent the radial component and angular component in the time domain data of the reference image, represents the second frequency domain data, and denote the radial component and angular component of the second frequency domain data respectively, and i denotes an imaginary unit; representing time domain data of a second real-time image, and represent the radial component and angular component of the time domain data in the second real-time image, respectively. represents the first frequency domain data, and They respectively represent the radial component and angular component of the first frequency domain data.

[0028] In one embodiment, the method of performing multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference to obtain the relative inclination angle of the second real-time image and the reference image includes:

[0029] Performing two-dimensional plane scanning on the first frequency domain data and the second frequency domain data respectively based on the sliding window;

[0030] The peak points obtained by scanning the first frequency domain data and the second frequency domain data are first sorted according to the peak values, and the first several peak points of the set threshold number are selected;

[0031] Performing a second sorting on the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data according to the coordinate order of their positions;

[0032] According to the second sorting, the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data are matched one by one to obtain several peak point pairs;

[0033] For any peak point pair, the Euclidean distance is calculated based on the coordinates of the two peak points, and the peak point pair whose calculated Euclidean distance is less than the preset distance threshold is taken as the corresponding peak point pair;

[0034] If there is one corresponding peak point pair, the phase difference of the one corresponding peak point pair is calculated as the relative tilt angle; if there are multiple corresponding peak point pairs, the phase differences of the multiple corresponding peak point pairs are calculated and the average value of the multiple phase differences is taken as the relative tilt angle.

[0035] In one embodiment, if there is one corresponding peak point pair, calculating the phase difference of the one corresponding peak point pair as the relative tilt angle includes:

[0036] ;

[0037] in, represents a peak point on the second frequency domain data, a and b represent The radial and angular components of Representation and The corresponding peak points on the first frequency domain data, c and d represent The radial and angular components of represents the phase difference, i represents the imaginary unit;

[0038] If there are multiple corresponding peak point pairs, the phase differences of the multiple corresponding peak point pairs are calculated and the average value of the multiple phase differences is taken as the relative inclination, including:

[0039] For multiple Taking the average , the average value As a relative inclination.

[0040] In one embodiment, the step of calculating the pixel value difference rate between the second real-time image and the reference image includes:

[0041] The grayscale value of each corresponding pixel point of the second real-time image and the reference image is subtracted and the absolute value is taken, the number of absolute values ​​greater than a preset absolute value threshold is calculated, and the number is divided by the total number of image pixels to obtain the pixel value difference rate between the second real-time image and the reference image.

[0042] In one embodiment, the step of obtaining the inclination of the tower based on the relative inclination angle and the pixel value difference rate includes:

[0043] If the relative inclination angle is less than the preset inclination angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, it is considered that the tower is not tilted;

[0044] If the relative tilt angle is less than the preset tilt angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a weak warning is issued;

[0045] If the relative tilt angle is greater than or equal to the preset tilt angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a medium warning is issued;

[0046] If the relative tilt angle is greater than or equal to the preset tilt angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, a strong warning is issued.

[0047] In a second aspect, an embodiment provides an online monitoring system for tower inclination based on image recognition, comprising:

[0048] An image acquisition device is arranged at a fixed position to acquire an image of the entire tower at a fixed angle;

[0049] A first storage medium is configured to store the reference image acquired by the image acquisition device;

[0050] A second storage medium is configured to store a computer program, wherein the computer program can be loaded by a processor and execute the method for online monitoring of the inclination of an iron tower described in any one of the above embodiments;

[0051] The processor is configured to execute the online monitoring method of the tower inclination described in any one of the above embodiments.

[0052] In a third aspect, an embodiment provides an online monitoring system for tower inclination based on image recognition, including:

[0053] An image acquisition module is configured to acquire a real-time image of the tower and a corresponding reference image thereof, and use the real-time image as a first real-time image, wherein the reference image is a preset image;

[0054] a brightness adjustment module, configured to adjust the brightness of the first real-time image based on the reference image to obtain a second real-time image with the same brightness as the reference image;

[0055] a frequency domain data acquisition module, configured to convert the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, convert the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquire the second frequency domain data;

[0056] A relative inclination acquisition module is configured to perform multi-scale peak search and calculate a corresponding peak point phase difference based on the first frequency domain data and the second frequency domain data to obtain a relative inclination of the second real-time image and the reference image;

[0057] A difference value calculation module, configured to calculate a pixel value difference rate between the second real-time image and the reference image;

[0058] The tilt condition acquisition module is configured to acquire the tilt condition of the tower based on the relative tilt angle and the pixel value difference rate.

[0059] In a fourth aspect, an embodiment provides a computer-readable storage medium, in which a program is stored, and the program can be loaded by a processor to execute the online monitoring method of tower inclination described in any one of the above embodiments.

[0060] The beneficial effects of the present invention are:

[0061] Based on the relative inclination angle and pixel value difference rate between the real-time image of the tower and the reference image, the inclination of the tower is comprehensively acquired, and the online monitoring of the overall deformation of the tower is realized. On the one hand, the influence of external light is reduced, and on the other hand, the sensitivity and accuracy of distinguishing inclination angle changes are improved, so that the overall deformation of the tower can be quickly fed back. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 This is a schematic diagram of the process of an online monitoring method according to an embodiment of the present application;

[0063] Figure 2 This is a schematic diagram of an image equalization process flow in one embodiment of the present application;

[0064] Figure 3 This application Figure 1 A method flow diagram of an embodiment of step S20;

[0065] Figure 4 This application Figure 1 A method flow diagram of an embodiment of step S40;

[0066] Figure 5 It is a schematic diagram of the structure of an online monitoring system according to an embodiment of the present application.

[0067] In the figure: 01 represents the image acquisition module, 02 represents the brightness adjustment module, 03 represents the frequency domain data acquisition module, 04 represents the relative tilt angle acquisition module, 05 represents the difference value calculation module, and 06 represents the tilt condition acquisition module. DETAILED DESCRIPTION

[0068] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0069] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0070] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.

[0071] To facilitate the description of the inventive concept of the present application, the tower inclination monitoring technology is briefly described below.

[0072] Among the current tower inclination detection methods, one method is regular manual visual inspection (which can be combined with drones, etc.). However, it is difficult to achieve a high frequency in areas with harsh terrain (such as mountainous areas, canyons, etc.), the real-time performance is poor, and it consumes a lot of manpower and financial resources. Another method is to analyze and judge the data of various online / offline sensors (inclination sensors, preload sensors, etc.) arranged on the tower. In this method, the number of sensors is always limited, and it is difficult to reflect the overall deformation of the tower.

[0073] In view of this, the present application provides an online monitoring method, system and medium for the inclination of an iron tower based on image recognition, which obtains a real-time image of the iron tower, and comprehensively obtains the inclination of the iron tower based on the relative inclination angle and pixel value difference rate between the real-time image of the iron tower and the reference image, thereby realizing online monitoring of the overall deformation of the iron tower. The method is simple, low-cost, does not require excessive manual intervention, and has good real-time performance.

[0074] To facilitate the description of the online monitoring method, the online monitoring system is first described below.

[0075] In one embodiment, the present application provides an online monitoring system for tower inclination based on image recognition, comprising an image acquisition device, a first storage medium, a second storage medium and a processor.

[0076] In one embodiment, the image acquisition device may be a high-definition CCD camera, which is set at a fixed position to acquire images of the entire tower at a fixed angle. While ensuring that the tower is in a normal state without tilt, a portion of clear images with good lighting conditions are acquired, and an image with good quality is selected as a reference image.

[0077] In one embodiment, there may be multiple image acquisition devices, which are fixed in different positions to acquire images of the tower at different angles. Each image acquisition device corresponds to a reference image. The following online monitoring method can be carried out based on any image acquisition device and its corresponding reference image.

[0078] The first storage medium is configured to store the reference image acquired by the image acquisition device. There may be multiple first storage media, which may correspond one-to-one to multiple image acquisition devices, or there may be only one first storage medium, and it is only necessary to call the corresponding reference image each time.

[0079] The second storage medium is configured to store a computer program, which can be loaded by the processor and execute the online monitoring method of the tower inclination of any of the following embodiments.

[0080] Those skilled in the art will appreciate that the first storage medium and the second storage medium may be the same storage medium or different storage media.

[0081] The processor is configured to execute the method for online monitoring of tower inclination of any one of the embodiments.

[0082] Those skilled in the art will appreciate that there may be multiple processors configured to execute different processes of the tower inclination online monitoring method.

[0083] For an online monitoring system based on any of the above embodiments, please refer to Figure 1 , an online monitoring method of tower inclination based on image recognition in the present application includes:

[0084] Step S10, obtaining a real-time image of the tower and its corresponding reference image, and using the real-time image as the first real-time image.

[0085] The reference image is a preset image, and the real-time image is used to compare with the reference image to obtain key parameters for determining the inclination of the tower.

[0086] The applicant found in the research that although the reference image has been selected to minimize the over-dark and over-exposed areas, there are still some unavoidable phenomena such as the overall difference of pixels in local areas is not large, which will affect the accuracy of subsequent registration calculations. In view of this, in one embodiment, the reference image is an image that has been processed by equalization. In one embodiment, please refer to Figure 2 , the equalization processing methods include:

[0087] Step S101, dividing the image into multiple blocks.

[0088] Step S201, for any tile, includes:

[0089] Step S2011, performing contrast limiting processing on the statistical histogram to reduce the brightness corresponding to pixels with brightness greater than a preset brightness threshold to a preset brightness. The statistical histogram represents the number of pixels corresponding to each brightness value.

[0090] In an embodiment, the preset brightness may be a preset brightness threshold or another preset brightness value.

[0091] Step S2012: Perform balanced mapping processing to obtain a balanced mapping function.

[0092] In this way, the balanced mapping function of the statistical histogram of any block is obtained.

[0093] Step S301 , based on all statistical histograms, according to the position information of each pixel point, and based on the equalization mapping function of the statistical histograms of four adjacent blocks, so as to obtain a reference image after equalization processing.

[0094] After equalization, large areas of single brightness and darkness in the reference image are reduced, contrast is improved, and more details can be displayed for more accurate comparison.

[0095] Step S20: adjusting the brightness of the first real-time image based on the reference image to obtain a second real-time image having the same brightness as the reference image.

[0096] Although the real-time image and its corresponding reference image are from the same image acquisition device, the changes in the image brightness distribution caused by sunlight and weather factors affect the accuracy of the subsequent registration calculation. In view of this, the brightness of the first real-time image needs to be adjusted to obtain a brightness that is as consistent as possible with the reference image.

[0097] Those skilled in the art can understand that the brightness consistency here is just as close as possible and cannot achieve complete consistency.

[0098] In one embodiment, please refer to Figure 3 , step S20 comprises:

[0099] Step S2001, taking the statistical histogram of the first real-time image as the first real-time statistical histogram, taking the statistical histogram of the reference image as the first reference statistical histogram, and adjusting the shape of the first real-time statistical histogram so that the shape of the adjusted first real-time statistical histogram is the same as the first reference statistical histogram.

[0100] In one embodiment, the adjustment of the statistical histogram in step S2001 is implemented based on a group mapping rule or a single mapping rule. Based on the adjustment of the statistical histogram, the brightness of the first real-time image and the second real-time image are made closer.

[0101] Those skilled in the art can understand that the same shapes here are just as close as possible and cannot be completely the same.

[0102] Step S2002: taking the adjusted statistical histogram of the first real-time image as the second real-time statistical histogram, and obtaining the adjusted cumulative histogram of the first real-time image as the real-time cumulative histogram based on the second real-time statistical histogram, and obtaining the cumulative histogram of the reference image as the reference cumulative histogram.

[0103] The cumulative histogram is the integral of the statistical histogram, which represents the number of pixels whose brightness is less than or equal to each brightness value.

[0104] In one embodiment, based on the second real-time statistical histogram Pr(m), the adjusted cumulative histogram of the first real-time image is obtained as the real-time cumulative histogram P(m), and the cumulative histogram of the reference image is obtained as the reference cumulative histogram Q(n), where m and n are brightness value indexes, 0≤m, n≤255.

[0105] Step S2003, for any brightness value in the real-time cumulative histogram, includes:

[0106] Step S20031, obtaining the value of the real-time cumulative histogram corresponding to the arbitrary brightness value, and finding the value of the reference cumulative histogram closest to the value of the real-time cumulative histogram.

[0107] In one embodiment, for any brightness value m, according to P(m) to Q(n), find the n corresponding to the value of the reference cumulative histogram that is closest to the value of the real-time cumulative histogram corresponding to m.

[0108] Step S20032: adjusting the brightness of a pixel corresponding to any brightness value by taking the brightness value corresponding to the reference cumulative histogram value as the brightness value to be adjusted, so as to obtain a second real-time image.

[0109] In one embodiment, n is used as the brightness value to be adjusted for the pixel point corresponding to m, and brightness adjustment is performed to obtain a second real-time image after brightness adjustment.

[0110] Step S30, converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquiring the second frequency domain data.

[0111] In one embodiment, to facilitate subsequent processing, before converting the image data of the second real-time image from time domain data to frequency domain data, the image data of the second real-time image is represented as two-dimensional polar coordinates, and before converting the image data of the reference image from time domain data to frequency domain data, the image data based on the image is represented as two-dimensional polar coordinates. In this way, the position data representation of each pixel in the image is converted from a two-dimensional rectangular coordinate system (expressed as x, y) to a two-dimensional polar coordinate system (expressed as , In this way, in the polar coordinate system, the rotation only corresponds to the coordinate The changes in the peak value improve the accuracy of subsequent peak matching.

[0112] In the solution of the present application, in order to highlight the peak, the image data is converted from the time domain (spatial distribution) to the frequency domain (frequency distribution), so that several peaks can be highlighted. In this way, only the peak data needs to be processed in the subsequent peak matching, which can greatly reduce the amount of calculation.

[0113] In one embodiment, the frequency domain conversion includes:

[0114] ;

[0115] ;

[0116] in, represents the temporal data of the reference image, and Respectively represent the radial component and angular component in the time domain data of the reference image, represents the second frequency domain data, and denote the radial component and angular component of the second frequency domain data respectively, and i denotes an imaginary unit; representing time domain data of a second real-time image, and represent the radial component and angular component of the time domain data in the second real-time image, respectively. represents the first frequency domain data, and They respectively represent the radial component and angular component of the first frequency domain data.

[0117] yes The Fourier transform of yes It is not difficult to find that if the image is rotated, for example, from becomes , then the Fourier transform can be expressed as:

[0118] ;

[0119] That is to say, the difference between the two is only a linear phase function of the angle upward. .

[0120] Step S40, performing multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference, so as to obtain the relative inclination angle between the second real-time image and the reference image.

[0121] Use sliding of different window lengths to find the local maximum of the function. For a specific window length, when the most maximum points can be found, this window length is considered to be the period of the current signal. If a certain point can be determined to be the local maximum when scanning with different window lengths, then this point is considered to be the maximum point, that is, the peak value. At the same time, there may be multiple peak values ​​corresponding to a piece of data.

[0122] Assume that the first peak of the second frequency domain data is located at point (a, b), and its value is , the first peak of the first frequency domain data is located at point (c, d), and its value is , the calculated Euclidean distance s is:

[0123] ;

[0124] If s is small enough (the judgment threshold is set based on experience and test results), the two peaks can be considered to be in the same position.

[0125] Therefore, in one embodiment, please refer to Figure 4 , step S40 may include:

[0126] Step S4001: perform two-dimensional plane scanning on the first frequency domain data and the second frequency domain data based on a sliding window.

[0127] Step S4002 , performing a first sorting on the peak points obtained by scanning the first frequency domain data and the second frequency domain data according to the peak values, and taking the first several peak points of a set threshold number.

[0128] For example, the number of thresholds can be set to 20, and the first 20 peak points obtained by scanning the first frequency domain data and sorted by peak size are taken. Similarly, the first 20 peak points obtained by scanning the second frequency domain data and sorted by peak size are taken.

[0129] Step S4003 , performing a second sorting on the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data according to the coordinate order of their positions.

[0130] In one embodiment, those skilled in the art can understand that after the two-dimensional coordinates are converted into one-dimensional coordinates, a second sorting can be performed based on the order of the one-dimensional coordinates.

[0131] Step S4004: According to the second sorting, the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data are matched one by one to obtain several peak point pairs.

[0132] Step S4005: For any peak point pair, the Euclidean distance is calculated based on the coordinates of the two peak points, and the peak point pair whose calculated Euclidean distance is less than a preset distance threshold is taken as the corresponding peak point pair.

[0133] Step S4006, if there is one corresponding peak point pair, calculate the phase difference of the one corresponding peak point pair as the relative tilt; if there are multiple corresponding peak point pairs, calculate the phase differences of the multiple corresponding peak point pairs and take the average of the multiple phase differences as the relative tilt.

[0134] In one embodiment, if there is one corresponding peak point pair, then calculating the phase difference of the one corresponding peak point pair as the relative tilt angle includes:

[0135] ;

[0136] in, represents a peak point on the second frequency domain data, a and b represent The radial and angular components of Representation and The corresponding peak points on the first frequency domain data, c and d represent The radial and angular components of represents the phase difference, and i represents the imaginary unit.

[0137] In one embodiment, if there are multiple corresponding peak point pairs, the phase differences of the multiple corresponding peak point pairs are calculated and the average value of the multiple phase differences is taken as the relative inclination, including: Taking the average , the average value As a relative inclination.

[0138] Step S50, calculating the pixel value difference rate between the second real-time image and the reference image.

[0139] The applicant found in the study that although the second real-time image and the reference image were processed before the relative inclination angle was calculated to minimize the difference between the two and highlight the details, the influence of external light may still lead to misjudgment of the tower inclination. In view of this, the present application proposes a further improvement scheme to reduce the influence of external light.

[0140] In one embodiment, since the real-time image and the reference image are taken under the same camera setting parameters, the real-time image and its corresponding reference image are two images of equal size. Then step S50 may include:

[0141] The grayscale value of each corresponding pixel point of the second real-time image and the reference image is subtracted and the absolute value is taken, the number of absolute values ​​greater than a preset absolute value threshold is calculated, and the number is divided by the total number of image pixels to obtain the pixel value difference rate between the second real-time image and the reference image.

[0142] Step S60, obtaining the inclination of the tower based on the relative inclination angle and the pixel value difference rate.

[0143] In one embodiment, step S60 may include:

[0144] Compare the relationship between the relative inclination angle and the preset inclination angle threshold and the relationship between the pixel value difference rate and the preset difference rate threshold. If the relative inclination angle is less than the preset inclination angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, it is considered that the tower does not have a tilt situation. If the relative inclination angle is less than the preset inclination angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a weak warning is issued. In this case, there may be a change in the external lighting conditions. Based on the weak warning, the misjudgment caused by the possible situation can be eliminated. If the relative inclination angle is greater than or equal to the preset inclination angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a medium warning is issued. At this time, it is very likely that the external lighting conditions are simply affected, but there may also be tilt. Based on the medium warning, the influence caused by the change of external lighting conditions needs to be eliminated to further confirm whether there is a tilt situation. If the relative inclination angle is greater than or equal to the preset inclination angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, a strong warning is issued. Based on the strong warning situation, it is necessary to confirm and handle it in time.

[0145] By combining the analysis of relative inclination angle and pixel value difference rate, on the one hand, the impact of external light is reduced, and on the other hand, the sensitivity and accuracy of distinguishing inclination angle changes are improved, so that the overall deformation of the tower can be quickly fed back.

[0146] In one embodiment of the present application, a tower inclination online monitoring system based on image recognition is provided. Figure 5 ,include:

[0147] The image acquisition module 01 is configured to acquire a real-time image of the tower and a corresponding reference image thereof, and use the real-time image as a first real-time image.

[0148] The brightness adjustment module 02 is configured to adjust the brightness of the first real-time image based on the reference image to obtain a second real-time image with the same brightness as the reference image;

[0149] The frequency domain data acquisition module 03 is configured to convert the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, convert the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquire the second frequency domain data.

[0150] The relative tilt angle acquisition module 04 is configured to perform multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference, so as to obtain the relative tilt angle of the second real-time image and the reference image.

[0151] The difference value calculation module 05 is configured to calculate the pixel value difference rate between the second real-time image and the reference image.

[0152] The tilt condition acquisition module 06 is configured to acquire the tilt condition of the tower based on the relative tilt angle and the pixel value difference rate.

[0153] Those skilled in the art will understand that Figure 5 The hardware structure of the video image quality detection device shown in the figure does not constitute a limitation on the video image quality detection device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0154] In one embodiment of the present application, a computer-readable storage medium is provided, on which a program is stored. The stored program includes a method for online monitoring of tower inclination in any of the above embodiments that can be loaded by a processor and processed.

[0155] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer program. When all or part of the functions in the above-mentioned embodiments are implemented by computer program, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, CD, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer program, the program can also be stored in a storage medium such as a server, another computer, disk, CD, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0156] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A tower inclination online monitoring method based on image recognition, characterized in that: include: Acquire a real-time image of the tower and a corresponding reference image thereof, and use the real-time image as a first real-time image, wherein the reference image is a preset image; Adjusting the brightness of the first real-time image based on the reference image to obtain a second real-time image having the same brightness as the reference image; Convert the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, convert the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquire the second frequency domain data; Perform multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference, so as to obtain the relative inclination angle of the second real-time image and the reference image; Calculating a pixel value difference rate between the second real-time image and the reference image; Based on the relative inclination angle and the pixel value difference rate, the inclination of the tower is obtained.

2. The method for online monitoring of tower inclination according to claim 1, characterized in that: The method of obtaining a real-time image of the iron tower and a corresponding reference image thereof comprises: obtaining a real-time image of the iron tower and a reference image after equalization processing corresponding to the real-time image; the equalization processing method comprises: dividing the image into a plurality of blocks, and for any one block, comprising: Performing contrast limiting processing on the statistical histogram, reducing the brightness corresponding to pixels having brightness greater than a preset brightness threshold to a preset brightness, wherein the statistical histogram represents the number of pixel points corresponding to each brightness value; Performing balanced mapping processing to obtain a balanced mapping function; Based on all statistical histograms, according to the position information of each pixel, bilinear difference is performed based on the equalization mapping function of the statistical histograms of the four adjacent blocks above, below, left and right, so as to obtain the reference image after equalization processing.

3. The method for online monitoring of tower inclination according to claim 1, characterized in that: The step of adjusting the brightness of the first real-time image based on the reference image to obtain a second real-time image having the same brightness as the reference image includes: Using the statistical histogram of the first real-time image as a first real-time statistical histogram, using the statistical histogram of the reference image as a first reference statistical histogram, adjusting the shape of the first real-time statistical histogram so that the shape of the adjusted first real-time statistical histogram is the same as the first reference statistical histogram; the statistical histogram represents the number of pixels corresponding to each brightness value; The statistical histogram of the adjusted first real-time image is used as a second real-time statistical histogram, and based on the second real-time statistical histogram, a cumulative histogram of the adjusted first real-time image is obtained as a real-time cumulative histogram, and a cumulative histogram of the reference image is obtained as a reference cumulative histogram; the cumulative histogram is an integral of the statistical histogram, indicating the number of pixels whose brightness is less than or equal to each brightness value; For any brightness value in the real-time cumulative histogram, Obtaining a value of a real-time cumulative histogram corresponding to any one of the brightness values, and finding a value of a reference cumulative histogram that is closest to the value of the real-time cumulative histogram; The brightness value corresponding to the value of the reference cumulative histogram is used as the brightness value to be adjusted for the pixel point corresponding to any one of the brightness values ​​to perform brightness adjustment to obtain a second real-time image.

4. The method for online monitoring of tower inclination according to claim 1, characterized in that: The converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquiring the second frequency domain data comprises: Before converting the image data of the second real-time image from time domain data to frequency domain data, the image data of the second real-time image is represented as two-dimensional polar coordinates, and before converting the image data of the reference image from time domain data to frequency domain data, the image data based on the image is represented as two-dimensional polar coordinates.

5. The method for online monitoring of tower inclination according to claim 4, characterized in that: The method of converting the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data and converting the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquiring the second frequency domain data includes: ; ; in, represents the temporal data of the reference image, and Respectively represent the radial component and angular component in the time domain data of the reference image, represents the second frequency domain data, and denote the radial component and angular component of the second frequency domain data respectively, and i denotes an imaginary unit; representing time domain data of a second real-time image, and represent the radial component and angular component of the time domain data in the second real-time image, respectively. represents the first frequency domain data, and They respectively represent the radial component and angular component of the first frequency domain data.

6. The method for online monitoring of tower inclination according to claim 1, characterized in that: The method of performing multi-scale peak search based on the first frequency domain data and the second frequency domain data to calculate the corresponding peak point phase difference to obtain the relative inclination angle of the second real-time image and the reference image includes: Performing two-dimensional plane scanning on the first frequency domain data and the second frequency domain data respectively based on the sliding window; The peak points obtained by scanning the first frequency domain data and the second frequency domain data are first sorted according to the peak values, and the first several peak points of the set threshold number are selected; Performing a second sorting on the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data according to the coordinate order of their positions; According to the second sorting, the first several peak points obtained in the first frequency domain data and the first several peak points obtained in the second frequency domain data are matched one by one to obtain several peak point pairs; For any peak point pair, the Euclidean distance is calculated based on the coordinates of the two peak points, and the peak point pair whose calculated Euclidean distance is less than the preset distance threshold is taken as the corresponding peak point pair; If there is one corresponding peak point pair, the phase difference of the one corresponding peak point pair is calculated as the relative tilt angle; if there are multiple corresponding peak point pairs, the phase differences of the multiple corresponding peak point pairs are calculated and the average value of the multiple phase differences is taken as the relative tilt angle.

7. The method for online monitoring of tower inclination according to claim 6, characterized in that: If there is one corresponding peak point pair, calculating the phase difference of the one corresponding peak point pair as the relative tilt angle comprises: ; in, represents a peak point on the second frequency domain data, a and b represent The radial and angular components of Representation and The corresponding peak points on the first frequency domain data, c and d represent The radial and angular components of represents the phase difference, i represents the imaginary unit; If there are multiple corresponding peak point pairs, the phase differences of the multiple corresponding peak point pairs are calculated and the average value of the multiple phase differences is taken as the relative inclination, including: For multiple Taking the average , the average value as a relative inclination.

8. The method for online monitoring of tower inclination according to claim 1, characterized in that: The calculation of the pixel value difference rate between the second real-time image and the reference image includes: The grayscale value of each corresponding pixel point of the second real-time image and the reference image is subtracted and the absolute value is taken, the number of absolute values ​​greater than a preset absolute value threshold is calculated, and the number is divided by the total number of image pixels to obtain the pixel value difference rate between the second real-time image and the reference image.

9. The method for online monitoring of tower inclination according to claim 1, characterized in that: The step of obtaining the inclination of the tower based on the relative inclination angle and the pixel value difference rate includes: If the relative inclination angle is less than the preset inclination angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, it is considered that the tower is not tilted; If the relative tilt angle is less than the preset tilt angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a weak warning is issued; If the relative tilt angle is greater than or equal to the preset tilt angle threshold, and the pixel value difference rate is greater than or equal to the preset difference rate threshold, a medium warning is issued; If the relative tilt angle is greater than or equal to the preset tilt angle threshold, and the pixel value difference rate is less than the preset difference rate threshold, a strong warning is issued.

10. An online monitoring system for tower inclination based on image recognition, characterized in that: include: An image acquisition device is arranged at a fixed position to acquire an image of the entire tower at a fixed angle; A first storage medium is configured to store the reference image acquired by the image acquisition device; A second storage medium is configured to store a computer program, wherein the computer program can be loaded by a processor and execute the method for online monitoring of the inclination of an iron tower according to any one of claims 1 to 9; A processor is configured to execute the online tower inclination monitoring method as claimed in any one of claims 1 to 9.

11. An online monitoring system for tower inclination based on image recognition, characterized in that: include: An image acquisition module is configured to acquire a real-time image of the tower and a corresponding reference image thereof, and use the real-time image as a first real-time image, wherein the reference image is a preset image; a brightness adjustment module, configured to adjust the brightness of the first real-time image based on the reference image to obtain a second real-time image with the same brightness as the reference image; a frequency domain data acquisition module, configured to convert the image data of the second real-time image from time domain data to frequency domain data as first frequency domain data, convert the image data of the reference image from time domain data to frequency domain data as second frequency domain data, and acquire the second frequency domain data; A relative inclination acquisition module is configured to perform multi-scale peak search and calculate a corresponding peak point phase difference based on the first frequency domain data and the second frequency domain data to obtain a relative inclination of the second real-time image and the reference image; A difference value calculation module, configured to calculate a pixel value difference rate between the second real-time image and the reference image; The tilt condition acquisition module is configured to acquire the tilt condition of the tower based on the relative tilt angle and the pixel value difference rate.

12. A computer-readable storage medium, characterized in that: The medium stores a program, which can be loaded by a processor and execute the method for online monitoring of tower inclination as claimed in any one of claims 1 to 9.