Intelligent measuring device and method for geometric parameters of traveling contact network
Through the intelligent measurement method of geometric parameters of walking catenary, image processing and neural network technology are used to solve the problem of wire identification under complex lighting conditions, achieve accurate segmentation and identification of wires and background, and ensure the accuracy of wire identification.
Patent Information
- Application Number
- CN202410947771.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Under complex and changing lighting conditions, it is difficult to distinguish the light and dark shadows or bright light bands in the image of catenary wires, making it difficult to distinguish the wires from the background and affecting the accuracy of wire identification.
Intelligent measurement methods of walking catenary geometric parameters are adopted, including image preprocessing, threshold segmentation, morphological operations, edge detection and neural network model recognition, through dynamic threshold setting, adaptive threshold algorithm, opening and closing operations and Canny edge detection, etc. technology, extract straight line features and verify geometric features to ensure accurate identification of the center position of the conductor.
It effectively separates wires and background under different lighting conditions, eliminates the influence of lighting, improves the recognition accuracy and reliability of neural network models, and ensures wire recognition accuracy.
Smart Images

Figure CN118485668B
Abstract
Description
Technical Field
[0001] The invention relates to the field of image processing, and in particular to an intelligent measuring device and method for geometric parameters of a traveling contact network. Background Art
[0002] The overhead wire is an important part of the electrified railway system, which is used to provide the required electrical energy for the train. Since the electrified train relies on the overhead wire to transmit electrical energy, any deviation in the positioning of the wire may lead to unstable contact between the pantograph and the wire, which in turn causes power outages or electrical connection failures. Therefore, the accurate positioning of the overhead wire is of great significance to ensure train safety and improve operation efficiency.
[0003] In practical applications, due to the natural changes in ambient light, the influence of weather conditions, and artificial lighting, the image of the overhead wire forms light and dark shadows or bright light bands. The shadows and bright light bands are consistent with the shape of the overhead wire and are difficult to distinguish. The light and dark shadows or bright light bands also reduce the contrast between the wire and the background, making it difficult to distinguish the wire and the background in the image. Therefore, how to ensure the accuracy of wire recognition under complex and changing lighting conditions is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to overcome the problems of the prior art and to provide a device and method for intelligently measuring geometric parameters of a traveling contact network.
[0005] The object of the present invention is to achieve the following technical solution: a method for intelligently measuring geometric parameters of a traveling contact network, the method comprising the following steps:
[0006] Preprocess the image;
[0007] Perform threshold segmentation on the image;
[0008] Perform morphological operations on images;
[0009] Perform edge detection on the image and extract straight line features in the image;
[0010] The neural network model is used to identify the image with extracted straight line features to obtain the center position information of the wire.
[0011] In one example, preprocessing the image includes:
[0012] Convert the image to grayscale;
[0013] Adjust the histogram of the image;
[0014] Filter the image.
[0015] In one example, performing threshold segmentation processing on an image includes:
[0016] Dynamically set the threshold according to the grayscale distribution and local features of the image to achieve effective segmentation of the wire and the background; and / or,
[0017] Based on the adaptive threshold algorithm, effective segmentation of wires and background under different lighting conditions is achieved.
[0018] In one example, a morphological operation is performed on an image, including:
[0019] The image is opened and closed. The opening operation is to erode and dilate the image in sequence, and the closing operation is to dilate and erode the image in sequence.
[0020] In one example, the Canny edge detection algorithm is used to perform edge detection processing on the image, and the Hough transform is applied to extract straight line features in the image.
[0021] In one example, after the step of obtaining the conductor center position information, the method further includes:
[0022] The wire center position information is verified using the wire's geometric features, which include one or more of shape features, symmetry features, distance features, angle features, and perspective transformation information.
[0023] In one example, when verifying the center position information of the conductor using multiple geometric features of the conductor, the multiple geometric features are weighted.
[0024] It should be further explained that the technical features corresponding to the various examples of the above method can be combined or replaced with each other to form a new technical solution.
[0025] The present invention also includes an intelligent measuring device for geometric parameters of a traveling contact network, the device including an image processing unit for executing the measuring method formed by any one of the above examples or a combination of multiple examples.
[0026] In one example, the device further includes an image acquisition unit connected to the image processing unit.
[0027] It should be further explained that the technical features corresponding to the above examples can be combined or replaced with each other to form a new technical solution.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] Through threshold segmentation processing, the target wire and the background can be effectively segmented under different lighting conditions. Through morphological operation processing, the influence of different lighting conditions on the image can be eliminated, and then it can adapt to different lighting conditions. Through edge detection processing and extraction of straight line features in the image, the neural network model is assisted to identify the wires in the image, which improves the recognition accuracy and reliability of the neural network model and ensures that the center of the wire can be accurately identified under various lighting conditions, that is, the wire recognition accuracy can be guaranteed under complex and changeable lighting conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The specific implementation methods of the present invention are further described in detail below in conjunction with the accompanying drawings. The accompanying drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The same reference numerals are used in these drawings to represent the same or similar parts. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0031] Figure 1 A flow chart of a method provided for an example of the present invention. DETAILED DESCRIPTION
[0032] The technical solution of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0035] In one example, if Figure 1 As shown, a method for intelligently measuring geometric parameters of a traveling contact network comprises the following steps:
[0036] S1: preprocess the image;
[0037] S2: Perform threshold segmentation on the image;
[0038] S3: Perform morphological operations on the image;
[0039] S4: performing edge detection processing on the image and extracting straight line features in the image;
[0040] S5: Use the neural network model to identify the image from which the straight line features have been extracted to obtain the center position information of the wire.
[0041] The image of the present invention is an image of the overhead wire. Of course, the method of the present invention can also be applied to other measurement or detection scenarios. In this case, the image containing the detection target in the scenario can be used to replace the image of the overhead wire of the present invention.
[0042] In step S1, the image is preprocessed, including one or more image preprocessing methods such as grayscale processing, denoising processing, contrast enhancement processing, rotation and correction processing, histogram equalization, and cropping.
[0043] In step S2, the image is subjected to threshold segmentation processing, and effective segmentation of the foreground target (wire) and the background of the image is achieved by setting one or more thresholds, including global threshold segmentation, adaptive threshold segmentation, multi-threshold segmentation, iterative threshold segmentation, region-based threshold segmentation and other one or more threshold segmentation methods.
[0044] In step S3, morphological operations are performed on the image, including dilation, erosion, opening, closing, etc., to reduce or eliminate the effects of shadows and reflections.
[0045] In step S4, edge detection processing is used to identify the boundaries of the wires in the image, thereby extracting the straight line features of the wires, providing a reference for the neural network model to identify the wires, and ensuring the accuracy of the neural network in identifying the wires in the image.
[0046] In step S5, the neural network model is used to identify and locate the wire in the image, which may be a convolutional neural network CNN, a YOLO series target detection model, SSD (single-stage multi-frame target detection model), etc. The convolutional neural network CNN used in this example collects and annotates a large number of wire images under different lighting conditions, constructs a training data set, trains the CNN based on the training data set, calculates the loss through forward propagation, and adjusts the network weights by back propagation to minimize the prediction error until the prediction detection performance is achieved, thereby completing the training of the CNN, and finally using the trained CNN to realize automatic recognition and positioning of the wire center.
[0047] In one example, preprocessing an image includes the following sub-steps:
[0048] S11: converting the original image into a grayscale image to simplify subsequent processing and reduce the amount of calculation;
[0049] S12: adjusting the histogram of the image to improve the image contrast, making the boundary between the wire and the background clearer, and ensuring the accuracy of subsequent image segmentation;
[0050] S13: Filter the image to reduce random noise in the image.
[0051] In one example, performing threshold segmentation on an image includes the following sub-steps:
[0052] S21: According to the grayscale distribution and local features of the image, the threshold is dynamically set to achieve effective segmentation of the wire and the background;
[0053] S22: Based on the adaptive threshold algorithm, effective segmentation of wires and background under different lighting conditions is achieved.
[0054] In step S21, the calculation expression for dynamically setting the threshold is:
[0055] S(v)=U(v)+2×σ(v)×V(v)
[0056] Among them, S(v) represents the threshold parameter; U(v) represents the average value or baseline value of the data (image pixel value); σ(v) represents the standard deviation of the data, which reflects the degree of discreteness of the data; V(v) represents the volatility function of the data, which is used to adjust the dynamics of the threshold. Its value is usually between 0 and 1, and increases with the increase of σ(v), but the rate of increase gradually slows down.
[0057] In step S22, an adaptive threshold algorithm is used to segment the wire and the background, including the following sub-steps:
[0058] S221: Define the size of the local region; this example selects a window size of 7x7 and uses this window to slide over the entire image. The window size determines the range of the local region and also affects the local adaptability of the threshold. A larger window may result in a smoother threshold transition, but may lose some details; a smaller window can better preserve details, but may be more susceptible to noise.
[0059] S222: Calculate the statistics of the local area; specifically, for each pixel in the image, place a sliding window with it as the center, and calculate the mean (mean) and standard deviation (standard deviation) of the pixel grayscale value in the window.
[0060] S223: Dynamically set a threshold value according to the mean and standard deviation of the local area; in this example, the threshold value is set to the local mean minus a value proportional to the standard deviation, and the calculation expression is:
[0061] T = mean - k × std_dev
[0062] Wherein, T represents the calculated local threshold; mean represents the average grayscale value of all pixels in the local area, which is used to represent the overall brightness level of the area; std_dev represents the standard deviation of the local area, which is used to measure the discrete degree of the grayscale value of pixels in the local area, reflecting the distribution of the grayscale value in the area; k represents the adjustment coefficient, which is an empirical value used to control the sensitivity of the threshold. A larger k value will result in a higher threshold, thereby classifying more pixels as background; a smaller k value will lower the threshold, so that more pixels are classified as foreground.
[0063] S224: Apply threshold for segmentation; specifically, compare the gray value of the current pixel with the calculated local threshold T. If the gray value of the pixel is greater than or equal to T, the pixel is classified as foreground (or target object); otherwise, it is classified as background.
[0064] S225: Move the sliding window and repeat; specifically, move the sliding window to the next position and repeat steps S221-S224 until the entire image is processed.
[0065] In one example, a morphological operation is performed on an image, including:
[0066] The image is opened and closed. The opening operation is to erode and dilate the image in sequence, and the closing operation is to dilate and erode the image in sequence.
[0067] Specifically, the calculation expressions of the opening operation Open and the closing operation Close are:
[0068] Open(A,B)=Dilate(Erode(A,B),B)
[0069] Close(A,B)=Erode(Dilate(A,B),B)
[0070] Among them, A represents the original image, that is, the image that needs to be morphologically operated; B represents the structural element, which is a small matrix or template used to define the neighborhood relationship in the morphological operation. The size and shape of the structural element can be adjusted according to the specific application scenario; Erode represents the erosion operation, which is an operation that reduces or refines the bright area (foreground) in the image; Dilate represents the dilation operation, which is an operation that expands or coarsens the bright area (foreground) in the image. By reasonably selecting the structural element and adjusting the parameters of the morphological operation (such as the size, shape and number of iterations of the structural element, etc.), the shadow and reflection effects in the image can be effectively weakened or eliminated. The opening operation is used to eliminate small objects, disconnect narrow connections, and smooth the boundaries of larger objects without significantly changing their areas. When processing shadows and reflections, the opening operation helps to eliminate small bright spots (such as reflective spots) or dark spots (such as small shadows). The closing operation can fill small holes inside objects, smooth the contours of objects, and connect narrow discontinuities. When processing shadows and reflections, the closing operation helps to fill broken contours caused by shadows or eliminate small reflective gaps.
[0071] For shadow processing, use the open operation to weaken or eliminate small shadow areas. By selecting the appropriate size of the structure element, small shadow blocks in the image can be effectively removed. For larger shadow areas, it is completed by combining other image processing techniques, such as histogram equalization or contrast enhancement. For reflection processing, reflections usually appear as highlights in the image. This example uses the closed operation to smooth the edges of these highlights so that they blend more naturally with the surrounding pixels. In some cases, you can also use the open operation to remove the small highlights caused by reflections, and then use the closed operation to smooth the edges.
[0072] Optionally, after the image is processed by morphological operation, the shadow and reflection areas are processed using the HSV color space.
[0073] In one example, the Canny edge detection algorithm is used to perform edge detection processing on the image to detect the edge of the wire, and the Hough transform is applied to confirm and extract the straight line features in the image to assist CNN in identifying the center of the wire.
[0074] Specifically, the Canny edge detection algorithm of this example includes the following sub-steps:
[0075] S41: Gaussian filtering processing; specifically, a Gaussian filter is used to smooth the image to reduce noise, and the kernel function of the Gaussian filter is:
[0076]
[0077] G(x,y) represents the Gaussian kernel function, which is the weight function used for Gaussian filtering. Its value depends on the distance between the coordinate (x,y) and the center of the kernel. x represents the horizontal coordinate of the pixel; y represents the vertical coordinate of the pixel; σ represents the standard deviation of the Gaussian function, which determines the width of the filter.
[0078] S42: Calculate the gradient strength and direction; specifically, use operators such as Sobel and Prewitt to calculate the gradient strength and direction of each pixel in the image. The calculation expressions of the gradient strength G and the gradient direction θ are:
[0079]
[0080] Among them, Gx represents the gradient in the x direction; Gy represents the gradient in the y direction.
[0081] S43: non-maximum suppression processing; specifically, in the gradient direction, only the pixels of the local maximum value are retained to eliminate redundant responses in edge detection.
[0082] S44: edge detection is implemented by using dual threshold processing and hysteresis threshold; specifically, two thresholds are set, a high threshold and a low threshold; a strong edge (gradient value is greater than the high threshold) is definitely an edge, and a weak edge (gradient value is less than the high threshold but greater than the low threshold) may be an edge. If the weak edge is connected to the strong edge, the weak edge is regarded as an edge, thereby implementing wire edge detection.
[0083] Furthermore, Hough transform is used to detect straight lines, circles or other shapes in an image. In wire detection, the main focus is on straight line detection. Using Hough transform to confirm and extract straight line features in an image includes the following sub-steps:
[0084] S45: Initialize the Hough space; for line detection, the Hough space is usually a two-dimensional polar coordinate space, which is composed of ρ (the distance from the origin to the line) and θ' (the inclination angle of the line).
[0085] S46: Perform Hough transform on each edge point; for each edge point obtained after Canny edge detection, traverse all possible θ' values and calculate the corresponding ρ value according to the straight line equation xcosθ'+ysinθ'=ρ. Then increase the cumulative value at the (ρ,θ') position in the Hough space.
[0086] S47: Extract straight lines; in the Hough space, find points with high cumulative values. These points correspond to the straight lines in the image. The significant straight line features can be screened out by setting a threshold.
[0087] S48: Determine the parameters of the line; directly convert the high cumulative value points (ρ, θ') extracted from the Hough space into the straight line equation in the image space, so as to extract the straight line features in the image.
[0088] In this example, by combining Canny edge detection and Hough transform, the wire edges in the image can be accurately detected and the straight line features of the wire can be extracted, thereby assisting in the identification of the wire center.
[0089] In one example, after the step of obtaining the conductor center position information, the method further includes:
[0090] The wire center position information is verified using the wire's geometric features, which include one or more of shape features, symmetry features, distance features, angle features, and perspective transformation information.
[0091] The shape features of the wire can be extracted by edge detection algorithms (such as Canny edge detection). After the edge is extracted, the shape of the line segment is identified using Hough transform or contour detection methods.
[0092] Symmetry can be measured by comparing the distribution of pixels on both sides of the wire. For example, the image is divided into two parts along the center line of the wire, and the pixel values or feature point distributions at corresponding positions on both sides are compared. The calculation formula for symmetry is:
[0093]
[0094] Among them, I L (i) and (I) R (i) represents the pixel value or feature value of the corresponding position on the left and right sides of the wire respectively; N represents the total number of compared points, i is the serial number label of the point; S represents the difference value of the images on both sides, the smaller S is, the better the symmetry is.
[0095] For the distance feature, it can be obtained by calculating the perpendicular distance from the edge of the wire to the center line. If the wire is a straight line, its center line can be determined by Hough transform or other straight line detection algorithms, and then the perpendicular distance from each edge point to the center line is calculated, and the average value or standard deviation is taken as the distance feature. Among them, the average distance D avg The calculation formula is:
[0096]
[0097] Among them, d j represents the distance from the jth edge point to the center line; M represents the number of edge points, and j is the serial number label of the edge point.
[0098] The angle feature can be obtained by calculating the inclination angle of the wire. For a straight wire, the inclination angle of the straight line detected by Hough transform can be used as the angle feature of the wire.
[0099] For perspective transformation, it can be calculated by identifying four points in the image (corresponding points between the source image and the target image), and then using functions in libraries such as OpenCV to calculate the perspective transformation matrix, which is used to correct the perspective distortion of the image so that the wire appears as a straight line in the image.
[0100] In one example, the conductor angle, symmetry, and average distance of the conductor are preferably used to verify the conductor center position information to improve the accuracy and robustness of the conductor center position identification. Specifically, a variety of geometric features are weighted to form a comprehensive scoring function F:
[0101] F=w1·S+w2·D avg +w3·(θ'-θ expected ) 2
[0102] Among them, w1, w1, w3 are weight coefficients, which can be determined by experiments; θ' is the detected wire angle; θ expected Indicates the expected wire angle. The smaller the value of the scoring function F, the higher the accuracy of the wire center position identification.
[0103] Optionally, before verifying the wire center position information using the wire's geometric features, the identified wire center is post-processed, and the identification result is smoothed by a filtering algorithm to reduce misidentification.
[0104] Optionally, after the final identified conductor center position information is output, the offset angle is calculated according to the identification result, and the stepper motor is driven to drive the rotating measuring optical machine to align with the correct conductor center. The geometric parameters of the contact network, such as conductor height, pull-out value, etc., can also be calculated based on the conductor center data. The measurement results can be displayed in real time on the display screen of the measuring instrument and stored in the memory for subsequent analysis.
[0105] The above examples are combined to obtain a preferred example of the present invention, in which the method comprises the following steps:
[0106] S1': Preprocess the image, including grayscale, contrast enhancement and median filtering noise reduction to improve image quality;
[0107] S2': According to the grayscale distribution and local characteristics of the image, the threshold is dynamically set to achieve effective segmentation of the wire and the background; and an adaptive threshold algorithm is used to ensure accurate segmentation under different lighting conditions;
[0108] S3': Use morphological operations (opening and closing operations) to reduce or eliminate the effects of shadows and reflections. When the illumination is good, the HSV color space can be used to process shadows and reflections in the color image output by the camera.
[0109] S4': Use the Canny edge detection algorithm to accurately detect the edges in the image, especially the edges of the wires, and apply the Hough transform to confirm and extract the straight line features in the image to assist in the identification of the wire center;
[0110] S5': Input the image into the trained neural network model for reasoning to achieve automatic recognition and positioning of the wire center;
[0111] S6': performing post-processing on the identified wire center, such as filtering and smoothing operations, and then verifying the identified wire center using geometric verification and other prior knowledge to ensure its accuracy;
[0112] S7': Output the final identified wire center position information.
[0113] The present invention ensures accurate identification of the wire center under various lighting conditions through a sophisticated image processing process; adopts a method that combines multiple image processing technologies and machine learning algorithms, so that the system has strong stability against interference factors such as lighting changes, shadows, reflections, etc.; dynamic threshold segmentation and adaptive processing technology enable the system to adaptively adjust according to different lighting and image characteristics, and can ensure the accuracy of wire identification under complex and changeable lighting conditions.
[0114] The present invention also includes a traveling contact network geometric parameter intelligent measurement device, which has the same inventive concept as the measurement method formed by any one of the above examples or a combination of multiple examples, and the device includes an image processing unit for executing the measurement method formed by any one of the above examples or a combination of multiple examples. The image processing unit can be a processor or an image processing device, such as a terminal device or a computer.
[0115] In one example, the device also includes an image acquisition unit, such as a camera, for acquiring images of the contact network wires. The camera is connected to the image processing unit, and the acquired images are then transmitted to the image processing unit for processing. A high-definition camera is installed in the rotating measuring optical machine of the traveling contact network geometric parameter intelligent measuring instrument to ensure that the camera can clearly capture real-time continuous images of the contact network wires. Optionally, the device also includes a main control unit. Of course, the image processing unit can also be used as the main control unit. The main control unit is connected to a driving mechanism for driving the rotating measuring optical machine to align with the correct center of the wire. The main control unit is also connected to a display for displaying real-time measurement results, i.e., wire center information.
[0116] An example of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the intelligent measurement method for geometric parameters of a traveling contact network formed by any one of the above examples or a combination of multiple examples. The processor may be a single-core or multi-core central processing unit or a specific integrated circuit, or one or more integrated circuits configured to implement the present invention.
[0117] An example of the present invention also provides a storage medium, which has the same inventive concept as the method for intelligent measurement of geometric parameters of a traveling contact network formed by any one of the above examples or a combination of multiple examples, and stores computer instructions thereon, which, when executed, execute the steps of the method for intelligent measurement of geometric parameters of a traveling contact network formed by any one of the above examples or a combination of multiple examples.
[0118] Based on this understanding, the technical solution of this embodiment, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0119] An example of the present invention further provides a terminal, which has the same inventive concept as any example or a combination of multiple examples corresponding to the above-mentioned intelligent measurement method for geometric parameters of a traveling contact network, and includes a memory and a processor, wherein the memory stores computer instructions that can be run on the processor, and the processor executes the steps of the above-mentioned intelligent measurement method for geometric parameters of a traveling contact network when running the computer instructions. The processor can be a single-core or multi-core central processing unit or a specific integrated circuit, or one or more integrated circuits configured to implement the present invention.
[0120] In one example, the terminal, i.e., the electronic device, is presented in the form of a general-purpose computing device, and the components of the electronic device may include but are not limited to: at least one processing unit (processor) mentioned above, at least one storage unit mentioned above, and a bus connecting different system components (including storage units and processing units).
[0121] The storage unit stores a program code, and the program code can be executed by the processing unit, so that the processing unit executes the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification. For example, the processing unit can execute the above-mentioned intelligent measurement method for geometric parameters of a traveling contact network.
[0122] The storage unit may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit, and may further include a read-only memory unit (ROM).
[0123] The storage unit may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0124] The bus may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0125] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through a bus. It should be understood that other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0126] Through the above description, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to this exemplary embodiment can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method of the exemplary embodiment of the present application.
[0127] The above specific implementation methods are detailed descriptions of the present invention. It cannot be determined that the specific implementation methods of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions and substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A traveling contact network geometric parameter intelligent measurement method, characterized in that: The following steps are involved: Preprocess the image; Perform threshold segmentation on the image; Perform morphological operations on images; Perform edge detection on the image and extract straight line features in the image; The neural network model is used to identify the image from which the straight line features have been extracted to obtain the center position information of the wire; Perform threshold segmentation on the image, including: According to the grayscale distribution and local features of the image, the threshold is dynamically set to achieve effective segmentation of the wire and the background; Based on the adaptive threshold algorithm, effective segmentation of wires and background under different lighting conditions is achieved; the adaptive threshold algorithm dynamically sets the threshold according to the mean and standard deviation of the local area; After the step of obtaining the wire center position information, the following steps are also included: Verifying the center position information of the conductor using the geometric features of the conductor, where the geometric features include one or more of shape features, symmetry features, distance features, angle features, and perspective transformation information; When using multiple geometric features of the conductor to verify the conductor center position information, the multiple geometric features are weighted to form a comprehensive scoring function F: F=w1·S+w2·D avg +w3·(θ'-θ expected ) 2 Among them, w1, w1, w3 are weight coefficients determined by experiments; S represents the difference value of the images on both sides. The smaller S is, the better the symmetry is; D avg represents the average distance; θ' is the detected wire angle; θ expected Indicates the desired wire angle; I L (i) and (I) R (i) represents the pixel value or feature value of the corresponding position on the left and right sides of the wire respectively; N represents the total number of points to be compared, and i is the serial number label of the point; d j represents the distance from the jth edge point to the center line; M represents the number of edge points, and j is the serial number label of the edge point.
2. The intelligent measurement method for geometric parameters of a traveling contact network according to claim 1 is characterized in that: Image preprocessing includes: Convert the image to grayscale; Adjust the histogram of the image; Filter the image.
3. The intelligent measurement method for geometric parameters of a traveling contact network according to claim 1 is characterized in that: Perform morphological operations on images, including: The image is opened and closed. The opening operation is to erode and dilate the image in sequence, and the closing operation is to dilate and erode the image in sequence.
4. The intelligent measurement method for geometric parameters of a traveling contact network according to claim 1 is characterized in that: The Canny edge detection algorithm is used to perform edge detection on the image, and the Hough transform is applied to extract the straight line features in the image.
5. A traveling contact network geometric parameter intelligent measurement device, characterized in that: The device comprises an image processing unit, configured to execute the method according to any one of claims 1 to 4.
6. The intelligent measuring device for geometric parameters of traveling contact network according to claim 5 is characterized in that: The device also includes an image acquisition unit connected to the image processing unit.
Citation Information
Patent Citations
Intelligent power grid high voltage insulation damage monitoring system and method based on ultraviolet imagery
CN103954897A
Object detection device and program
CN104205170A
Electrified railway clearance detection method and system based on laser scanning
CN112977535A
Robot obstacle avoidance path planning method
CN115268443A
