An accurate fitting method for bridge edge lines in bridge target detection
By preprocessing and feature analysis of satellite remote sensing images, the initial edge points of the bridge are extracted and matched. After eliminating non-bridge endpoints, the least squares method is used to fit, which solves the problem of bridge edge line deviation caused by errors in water body extraction in satellite remote sensing images. Achieved more accurate bridge edge line fitting.
Patent Information
- Application Number
- CN202111130020.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-26
AI Technical Summary
In satellite remote sensing images, water body extraction has some uneven boundaries and misclassification phenomena, which causes the bridge edge line fitted by the least squares method to deviate from the original direction, and the endpoint error of the initial edge point is large, affecting the accurate simulation of the bridge edge line. combine.
By preprocessing remote sensing images, water body information is extracted and initial edge points of suspected bridges are matched, the least squares method is used to fit the removed bridge edge points, and non-bridge endpoints are removed using feature analysis to obtain accurate bridge edge lines.
It improves the accuracy of bridge edge line fitting, overcomes the influence of water body extraction errors in satellite remote sensing images, and ensures the accuracy and direction consistency of the bridge edge line.
Smart Images

Figure CN113822204B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of bridge target detection, and in particular to an accurate fitting method for bridge edge lines in bridge target detection. Background Art
[0002] Bridges are man-made objects, important artificial buildings and transportation hubs. The identification of bridge objects is not only conducive to the update and maintenance of geographic information, but also helps the rapid arrival of rescue teams and materials when natural disasters occur; the precise positioning of bridge objects plays a very important role in the acquisition of Geographic Information System (GIS) data, urban building deployment planning, natural disaster situation assessment, and disaster relief path selection.
[0003] At present, the automatic identification of bridges on water can adopt a top-down knowledge-driven strategy, directly obtained through segmentation or indirectly obtained by extracting rivers; or a bottom-up data-driven strategy can be adopted, regardless of the target type, to directly perform segmentation, feature extraction and other processing on the image data. Regarding the automatic identification of bridges on water, the basic feature of bridges crossing the water surface can be used to extract rivers first and then identify bridges. By extracting rivers to limit the spatial range of bridge extraction, the interference of complex backgrounds can be effectively eliminated, thereby ensuring the efficiency and accuracy of bridge extraction on water. The processing process is targeted, practical and easy to operate. In the process of bridge target extraction, the edge points of the bridge can be extracted first, and then the bridge edge line fitting or bridge edge line feature extraction can be performed. In "Research on Automatic Identification Methods of Bridges in High-Resolution Remote Sensing Images" (Yang Hao et al., "Computer Simulation" (2006.09)), it is mentioned that based on high-resolution remote sensing images, potential bridge points are searched through water body contours, and linear fitting is performed to extract preliminary bridge targets. In “Automatic Bridge Extraction Algorithm from High-Resolution SAR Images” (Zhao Guanxiong et al., Computer Engineering and Design (2014.08)), it is mentioned that based on high-resolution SAR images, the minimum distance method between boundary sets is used to extract the bridge boundary set, and the least squares method is used to fit the bridge boundary line. In “Novel Approach for Recognizing Bridges over Water in Large Remote Sensing Images” (Chen, 2008 International Symposium on Computational Intelligence and Design, Wuhan (2008)), it is mentioned that based on the Ikonos-2 panchromatic image with a spatial resolution of 1m, a method for selecting regions of interest is proposed according to the spatial relationship between rivers and bridges. The acquired sub-images (regions of interest) are segmented, contour traced, and linearly fitted based on the least squares method to extract the features of the candidate bridges. However, as Figure 1 As shown in (Sample 1), due to the influence of image distortion and building shadows, the water body extraction in large-scale satellite remote sensing images has some uneven boundaries and misclassification phenomena, causing some of the initial bridge edge lines after least squares fitting to deviate from the original bridge direction; in addition, Figure 1 As shown in (Sample 2), after being extracted by the algorithm, the endpoints of some initial bridge edge points may have errors, that is, feature points that are not bridge edges; Figure 1 As shown in (Sample 3), if the bridge side is shorter, that is, there are fewer pixels on the actual bridge edge, the error pixels will also cause the fitted edge line to deviate from the original bridge direction.
[0004] Therefore, how to overcome the uneven boundaries and misclassification of water bodies in satellite remote sensing images, which causes part of the initial bridge edge line after least squares fitting to deviate from the original bridge direction, and obtain accurate bridge edge lines, is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of the present invention is to provide an accurate fitting method for bridge edge lines in bridge target detection, which can obtain more accurate target bridge edge lines.
[0006] The present invention provides a precise fitting method for bridge edge lines in bridge target detection, comprising: acquiring a remote sensing image of a target area, preprocessing the remote sensing image to obtain a preprocessed image; extracting water body information in the preprocessed image, wherein the water body information includes a plurality of water blocks; matching the water blocks to obtain suspected initial edge points of a bridge and determine a suspected bridge area; fitting an initial bridge edge line according to the suspected initial edge points of the bridge; analyzing the initial bridge edge line, and fitting to obtain a precise bridge edge line.
[0007] Based on the above technical solution, the present invention can also be improved as follows.
[0008] Furthermore, the remote sensing image is preprocessed to obtain the preprocessed image, including: performing orthorectification, radiation calibration, atmospheric correction and image fusion on the remote sensing image to obtain the preprocessed image.
[0009] Furthermore, extracting water body information from the preprocessed image includes: extracting water body information from the preprocessed image using an object-oriented method, wherein the optimal segmentation scale is set to 150, and the weights of color factor, shape factor, smoothness, and compactness are 0.9, 0.1, 0.5, and 0.5, respectively.
[0010] Furthermore, determining the suspected bridge area includes: resampling the preprocessed image and segmenting it to obtain sub-images; obtaining the minimum distance K between two adjacent water bodies; obtaining all connected water blocks in the sub-images; and matching all connected water blocks to obtain the suspected bridge area.
[0011] Furthermore, resampling the preprocessed image and segmenting it to obtain sub-images includes: segmenting the resampled preprocessed image into sub-images with pixels of 500*500.
[0012] Furthermore, after acquiring all connected water blocks of the sub-image, the method further includes: removing image noise.
[0013] Furthermore, all connected water blocks are matched, and the suspected bridge areas include:
[0014] Step S351, determining the first water block;
[0015] Step S352, searching for a second water block that is closest to the first water block;
[0016] Step S353, determining the minimum distance L between the first water block and the second water block, wherein if L<K, proceed to the next step, and if L≥K, continue to loop this step;
[0017] Step S354, pairing the first water block with the second water block to obtain the initial edge point of the Nth suspected bridge area;
[0018] Step S355, determining the Nth suspected bridge area;
[0019] Step S356, continue to loop step S351 to step S355 to obtain all suspected bridge areas.
[0020] Further, step S354, pairing the first water block with the second water block, and obtaining the initial edge point of the first suspected bridge area includes: determining the distance L1, where L1=L+2; obtaining all pixel points whose distance between the first water block and the second water block is less than L1 as the initial edge point of the first suspected bridge area.
[0021] Further, step S355, determining the first suspected bridge area includes: determining the lower left corner point H, length L′ and width W′ in the initial edge points, wherein the length L′ and width W′ are the distances between the maximum horizontal coordinate and the minimum horizontal coordinate, and the maximum vertical coordinate and the minimum vertical coordinate in the initial edge points; forming a circumscribed rectangle with point H as the lower left corner endpoint of the rectangle, L′ as the length, and W′ as the width; determining 10 pixel points according to the directions of L′ and W′ to obtain the first suspected bridge area.
[0022] Furthermore, the initial bridge edge line is analyzed and fitted to obtain a precise bridge edge line, including: calculating the angle α among the endpoint H1, the midpoint Z1 and the middle pixel point Z2 between the two in the initial edge point; if α>30°, the endpoint H1 is considered not to belong to the bridge edge point and is eliminated; and the bridge edge points after elimination are fitted using the least squares method to obtain a precise bridge edge line.
[0023] The present invention proposes a method for eliminating non-bridge endpoints by performing feature analysis on the extracted bridge edge points, which can accurately extract bridge edge points on satellite remote sensing images and fit accurate bridge edge lines, thereby improving the fitting accuracy of bridge edge lines. The present invention solves the technical problem in the prior art that some of the initial bridge edge lines after least squares fitting deviate from the original bridge direction due to uneven boundaries and misclassification in the extraction of water bodies in satellite remote sensing images. It also provides new technical support for the recognition of bridge targets in satellite images. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A sample schematic diagram of the process of extracting candidate bridge edges in the prior art;
[0026] Figure 2 A schematic flow chart of a method for accurately fitting bridge edge lines in bridge target detection provided by the present invention;
[0027] Figure 3 A schematic flow chart of a method for determining a suspected bridge area provided by the present invention;
[0028] Figure 4 This is a schematic diagram of the marking principle of the eight-connected region marking method;
[0029] Figure 5 A schematic diagram of the flow chart of the connected area water block matching method provided by the present invention;
[0030] Figure 6 A schematic diagram of the process of the connected area water block matching method in an embodiment of the present invention; and
[0031] Figure 7 It is a schematic diagram of the non-bridge endpoint elimination method in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the above and other features and advantages of the present invention more clear, the present invention is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.
[0033] In the following description, many specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that specific details are not required to practice the present invention. In other cases, well-known steps or operations are not described in detail to avoid obscuring the present invention.
[0034] The present invention provides a precise fitting method for bridge edge lines in bridge target detection. Figure 2 As shown, the method includes:
[0035] Step S1, acquiring a remote sensing image of a target area, and preprocessing the remote sensing image to obtain a preprocessed image;
[0036] First, the target area is selected. In this scheme, the image collected by the Gaofen-2 (GF-2) satellite can be selected as the remote sensing image of the target area, and the remote sensing image with a resolution of 1m is preferably used as the remote sensing image of the target area. Among them, the preprocessing of the remote sensing image includes: orthorectification, radiation calibration, atmospheric correction, image fusion and other steps, and finally the preprocessed image required by this scheme is obtained. It should be noted that the preprocessed image is a binary image, so as to extract and analyze the information of the image.
[0037] Step S2, extracting water body information in the preprocessed image, wherein the water body information includes a plurality of water blocks;
[0038] This scheme can use an object-oriented method to extract water body information from preprocessed images, and use the image analysis software eCongition to realize the recognition and extraction of water bodies in high-resolution remote sensing images. The object-oriented classification method is a very intelligent image classification method, which is more applicable in high-resolution images. Unlike the traditional image information extraction method, its basic unit of analysis is not the spectral information in a single pixel, but a homogeneous "object" composed of many pixels containing the same information, while also taking into account the details of the ground objects and a large amount of texture structure information. Object-oriented classification methods are roughly divided into three types: nearest neighbor classification, fuzzy classification, and rule-based classification. This scheme preferably uses a rule-based classification method to extract water body information. First, the single pixel in the remote sensing image is segmented into image objects, and the classification rules of the image object features are established to finally obtain the classification results. This scheme adopts the fractal network algorithm (Fractal Net Evolution Approach, FNEA): an object-oriented image segmentation method that can achieve multi-scale segmentation of remote sensing images. Multi-scale segmentation is to segment the image into different objects, so that the maximum homogeneity is maintained inside the object, the maximum heterogeneity is maintained between objects, and the influence of "same spectrum different objects" and "different spectrum same objects" is reduced. It is the key to object-oriented information extraction technology, and the quality of segmentation will directly determine the extraction accuracy of image information. The spatial, texture, and spectral information of high-resolution panchromatic and multispectral data can be fully utilized for classification. Object-oriented analysis methods have great advantages in high-resolution image information extraction, and do not require morphological processing, because the image object itself considers the shape factor and has good resistance to noise. Through image segmentation, the problem of noise interference can be well solved and the signal-to-noise ratio of image classification can be improved. Since there are different scales of water bodies in the study area, the setting of the optimal segmentation scale should be reasonable, which should not only ensure that small-scale water bodies can be segmented independently, but also make large-scale water objects not too fragmented. The preferred solution of this scheme is to set the optimal segmentation scale to 150. In addition, the weights of color factor, shape factor, smoothness, and compactness are 0.9, 0.1, 0.5, and 0.5, respectively, and the image of the water body is extracted best.
[0039] Step S3, matching the water blocks, obtaining the suspected initial edge points of the bridge and determining the suspected bridge area;
[0040] like Figure 3 As shown, step S3, matching the water blocks, obtaining the suspected initial edge points of the bridge and determining the suspected bridge area may include the following steps:
[0041] Step S31, resampling the preprocessed image and segmenting it to obtain sub-images;
[0042] First, the water body binary image with a resolution of 1m is resampled to a water body binary image with a resolution of 4m, and then the resampled pre-processed image is segmented into sub-images with a pixel size of 500*500. It should be noted that the segmented sub-images include all the information of the target water body and the bridge.
[0043] Step S32, obtaining the minimum distance K between two adjacent water bodies;
[0044] Determine the minimum distance between two adjacent water bodies, i.e. K. The K values of satellite remote sensing images with different resolutions are different. The K value of the GF-2 satellite remote sensing image used in this scheme is 40m.
[0045] Step S33, obtaining all connected water blocks of the sub-image;
[0046] This scheme can use the eight-connected region marking method to mark the sub-images and obtain all connected water blocks. The eight-connected regions refer to the upper, lower, left, right, upper left, upper right, lower left, and lower right of the corresponding position, which are the adjacent positions and the diagonally adjacent positions, a total of 8 directions, such as Figure 4 As shown. For each pixel with a value of 1, traverse its eight connected regions. If one pixel has a value of 1, the two points are classified as one object. Assuming that the pixel value of the target area is 1 and the pixel value of the background area is 0, the specific marking steps are as follows:
[0047] Step S331, mark the starting point, if it is the target point (ie the value is 1), then mark it. Otherwise, proceed to the next step.
[0048] Step S332, marking the pixels in the first row, if the grayscale value of the current pixel is the same as the grayscale value of the previous pixel, then the pixel is given the same marking value as the previous pixel, otherwise it is given a new marking value.
[0049] Step S333, mark the remaining pixels. Each pixel is judged in four directions: left, upper left, upper, and upper right. If the current pixel value is 0, move to the next pixel position. If the current pixel value is 1 and the detected adjacent pixel values are all 0, assign a new label to the current pixel. If only one pixel value is 1, assign the label value of the pixel to the current pixel. If there are two or more pixel values that are 1 and the label is not unique, assign one of the labels to the current pixel and make a mark to indicate that the above labels are equivalent. After the scan is completed, all equivalent labels are classified into equivalent groups, and each equivalent group is unified into one label value.
[0050] Step S334, perform a second scan and mark each tag with a unified tag value.
[0051] After obtaining all water blocks marked in the sub-image, it also includes:
[0052] Step S34, removing image noise.
[0053] Specifically, after obtaining all the water blocks marked by the sub-image, it is necessary to remove the noise in the image. The area of each target area can be obtained according to the marked value, and an area threshold (such as 100) can be set according to experience. Some small water blocks are removed according to the set area threshold. Among them, the noise generated by the segmentation of floating objects such as ships in the target water area can also be removed.
[0054] Step S35, matching all connected water blocks to obtain suspected bridge areas.
[0055] like Figure 5 As shown, all connected water blocks are matched to obtain the suspected bridge area. The methods include:
[0056] Step S351, determining the first water block;
[0057] Step S352, searching for a second water block that is closest to the first water block;
[0058] Step S353, determining the minimum distance L between the first water block and the second water block, wherein, if L<K, proceed to the next step, and if L≥K, continue to loop this step; wherein K is the minimum distance between two adjacent water bodies.
[0059] Step S354, pairing the first water block with the second water block to obtain initial edge points of the first suspected bridge area;
[0060] The first water block and the second water block are paired into a group to determine the distance L1, where L1 = L+2; then all pixel points whose distance between the first water block and the second water block is less than L1 are obtained as the initial edge points of the first suspected bridge area. It should be noted that all pixel points whose distance is less than L1 include some inaccurate initial edge points of the bridge.
[0061] Step S355, determining a first suspected bridge area;
[0062] Specifically, determine the bottom left corner point H, length L' and width W' of the initial edge points, where the length L' and width W' are the distances between the maximum horizontal coordinate and the minimum horizontal coordinate, and the maximum vertical coordinate and the minimum vertical coordinate of the initial edge points; point H is the bottom left point of all the initial edge points of the bridge. A circumscribed rectangle is formed with point H as the bottom left corner of the rectangle, L' as the length, and W' as the width; determine 10 pixel points according to the direction of L' and W' to obtain the first suspected bridge area.
[0063] Step S356, continue to loop step S351 to step S355 to obtain all suspected bridge areas.
[0064] After the first suspected bridge region is obtained, the steps S351 to S355 are continuously looped to obtain a second suspected bridge region, a third suspected bridge region and multiple suspected bridge regions, until all suspected bridge regions are determined.
[0065] In a preferred embodiment, Figure 6 As shown, the river in Figure (a) is divided into five water bodies in Figure (b). First, find the water body a. i (Take water block ① in Figure (b) as an example, that is, a i ①) is the nearest water block a j (a j ②), we find that the water block ② is closest to water block ①, as shown in Figure (c), and the distance between water block ① and water block ② is L. L plus 2 is obtained to obtain the new distance L1. The pixel points whose distance between water blocks ① and ② is less than L1 are obtained as the initial edge points of the suspected bridge area.
[0066] Get the lower left corner point H(v, w) of the initial edge point, where (v, w) is the coordinate of point H, and the length of the circumscribed rectangle is L and the width is W. Construct a circumscribed rectangle based on these parameters, and expand the circumscribed rectangle by 10 pixels in both directions, so as to obtain a rectangular area as the suspected bridge area ROI (region of interest). As shown in Figure (d), the green frame between water blocks ① and ② is the obtained suspected bridge area ROI.
[0067] In order to prevent the incomplete water block pairing caused by complex water block environment, the successfully paired a i with a j Connect to form a new connected area water block a i+j Repeat the above steps and finally find the circumscribed rectangular ROI of all suspected bridge areas in the sub-image (that is, connect water blocks ① and ② to form ①+②, ①+② as a whole water block, and find the water block a closest to it i , the search result is water block ③. Through the above steps, we obtain the suspected bridge area ROI of ①+② and ③, and the result is shown in the green box in Figure (e). Further, we take ①+②+③ as a whole water block and search for the water block a closest to it. j The search result is water block ④, as shown in the red box in Figure (e). Through the above steps, the suspected bridge area ROIs of ①+②+③ and ④ are obtained, as shown in Figure (f). In this process, three suspected bridge area ROIs are obtained, namely the three rectangular box marks in Figure (f).
[0068] Step S4, fitting the initial bridge edge line according to the suspected initial bridge edge points; fitting the acquired suspected initial bridge edge points to obtain the initial bridge edge line. In this step, it includes:
[0069] Bridge edge point extraction: In order to accurately obtain the edge points of the bridge, a high-resolution water body image is required. Therefore, the 4m resolution ROI vector needs to be cropped into a 1m resolution water body binary image to obtain a 1m resolution ROI sub-image. The method of extracting the water body contour is adopted, and then the shortest distance is calculated on the contour points to identify the potential edge points of the bridge.
[0070] Initial fitting of bridge edge line: The least square method is used to fit the suspected bridge edge points to obtain the bridge edge straight line:
[0071] y=kx+b
[0072] Where k is the slope of the fitted line, and b is the intercept of the fitted line.
[0073]
[0074]
[0075] In the formula, m is the number of points involved in the straight line fitting, x i is the horizontal coordinate of the fitting point i, y i is the ordinate of the fitting point i.
[0076] in,
[0077]
[0078]
[0079] In the formula, is the average value of the horizontal coordinates of m fitting points, is the average value of the ordinates of the m fitting points
[0080] Step S5, analyzing the initial bridge edge line and fitting to obtain the precise bridge edge line.
[0081] like Figure 7 As shown in FIG. 1 , the method of analyzing the initial bridge edge line and fitting the accurate bridge edge line includes:
[0082] Calculate the angle α between the endpoint H1, the midpoint Z1 and the middle pixel point Z2 of the initial edge point; if α>30°, the endpoint H1 is considered not to be a bridge edge point and is removed. By removing non-bridge pixels, the bridge edge points can be accurately extracted, and then the least squares method is used to fit the removed bridge edge points to obtain the accurate bridge edge line. It should be noted that the solid line in the figure represents the bridge edge pixel point, and the dotted line represents the error pixel point of the non-bridge edge.
[0083] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A precise fitting method for bridge edge lines in bridge target detection, characterized in that: The method comprises: Acquire a remote sensing image of a target area, and preprocess the remote sensing image to obtain a preprocessed image; Extracting water body information from the preprocessed image, wherein the water body information includes a plurality of water blocks; Matching the water blocks, obtaining the suspected initial edge points of the bridge and determining the suspected bridge area; wherein matching the water blocks, obtaining the suspected initial edge points of the bridge and determining the suspected bridge area includes: The preprocessed image is resampled and segmented to obtain a sub-image; the minimum distance K between two adjacent water bodies is obtained; all connected water blocks of the sub-image are obtained; all the connected water blocks are matched to obtain a suspected bridge area; wherein the matching of all the connected water blocks to obtain a suspected bridge area includes: Step S351, determine the first water block; Step S352, find the second water block closest to the first water block; Step S353, determine the minimum distance L between the first water block and the second water block, wherein if L < K, proceed to the next step, and if L ≥ K, continue to loop this step; Step S354, pair the first water block with the second water block to obtain the initial edge point of the Nth suspected bridge area, Step S355, determine the Nth suspected bridge area; Step S356, continue to loop Steps S351 to S355 to obtain all suspected bridge areas; wherein obtaining the initial edge point of the first suspected bridge area includes: Determine the distance L1, where L1=L+2; Acquire all pixel points whose distance between the first water block and the second water block is less than L1 as initial edge points of the first suspected bridge area; Fitting an initial bridge edge line according to the suspected initial bridge edge points; The initial bridge edge line is analyzed and fitted to obtain a precise bridge edge line.
2. The method according to claim 1, characterized in that The preprocessing of the remote sensing image to obtain the preprocessed image comprises: The remote sensing image is preprocessed by performing orthorectification, radiation calibration, atmospheric correction and image fusion to obtain the preprocessed image.
3. The method according to claim 1, characterized in that The extracting of water body information from the pre-processed image comprises: An object-oriented method is used to extract water body information from the preprocessed image, wherein the optimal segmentation scale is set to 150, and the weights of color factor, shape factor, smoothness, and compactness are 0.9, 0.1, 0.5, and 0.5, respectively.
4. The method according to claim 1, characterized in that The resampling of the preprocessed image to obtain sub-images comprises: The resampled preprocessed image is divided into sub-images of 500*500 pixels.
5. The method according to claim 1, characterized in that After acquiring all connected water blocks of the sub-image, the method further includes: Remove image noise.
6. The method according to claim 1, characterized in that The step S355 of determining the first suspected bridge area includes: Determine the leftmost lower corner point H, length L′ and width W′ of the initial edge points, wherein the length L′ and width W′ are the distances between the maximum horizontal coordinate and the minimum horizontal coordinate, and the maximum vertical coordinate and the minimum vertical coordinate of the initial edge points; The circumscribed rectangle is formed with point H as the lower left corner of the rectangle, L' as the length, and W' as the width; According to the directions of L′ and W′, 10 pixel points are determined to obtain a first suspected bridge area.
7. The method according to claim 1, characterized in that The analyzing the initial bridge edge line and fitting the accurate bridge edge line comprises: Calculate the angle α between the endpoint H1, the midpoint Z1 and the middle pixel point Z2 between the two in the starting edge point; If α>30°, the endpoint H1 is considered not to be a bridge edge point and is removed; The least squares method is used to fit the bridge edge points after elimination to obtain the precise bridge edge line.
