Method and device for automatically extracting steep banks of dangerous sections, medium and equipment

CN119904501BActive Publication Date: 2026-09-25WUHAN MUNICIPAL CONSTR SCI & RES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411849201.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2026-09-25
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

[0003]然而,现有的作业方法需要专业人员针对每个险工险段的河道纵断面手动计算岸坡坡比和统计陡岸长度

Benefits of technology

[0016]本申请提供的用于险工险段的陡岸自动提取方法、装置、存储介质及电子设备,本申请基于河道中心线和桩号桩线信息进行采样得到河道纵断面,计算河道纵断面的坡比毛病对陡坡进行合并,最后再对相邻的单个纵断面之间的陡坡进行合并,得到陡岸位置和陡岸长度。本申请能够根据现有数据直接进行计算,方便直接,能够大大提升陡岸提取的效率,且无需人工测量计算,通过已知的河道中心线信息与桩号桩号信息就能自动计算,节约了人工成本,提升了陡岸提取的自动化程度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904501B_ABST
    Figure CN119904501B_ABST
Patent Text Reader

Abstract

The application discloses a steep bank automatic extraction method and device for a dangerous section, a storage medium and an electronic device. The method comprises the following steps: acquiring river center line information and pile number pile line information of a river channel at a dangerous section area; sampling equidistantly along the river center line to obtain a river longitudinal section set; wherein the river longitudinal section set comprises a first longitudinal section and a second longitudinal section; calculating the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section respectively, determining the steep slope to be reserved in the single longitudinal section, and merging the steep slope to be reserved; and merging the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and the steep bank length. The application can directly calculate according to existing data, is convenient and direct, can greatly improve the efficiency of steep bank extraction, and does not need manual measurement and calculation, can automatically calculate through the known river center line information and pile number pile line information, saves the labor cost, and improves the automation degree of steep bank extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of water conservancy and waterway engineering technology, and in particular to a method, device, storage medium and electronic equipment for automatic extraction of steep banks in dangerous sections of engineering projects. Background Technology

[0002] Dangerous sections of river embankments refer to areas with potential safety hazards. In my country, numerous such sections are located along the banks of the Yangtze and Han Rivers. To understand the impact of underwater erosion on embankment safety before and after the flood season, annual underwater topographic surveys of these sections are necessary to monitor changes in terrain and analyze the embankment slopes. This allows for the prevention of potential dangers and the implementation of maintenance measures, ultimately ensuring embankment safety.

[0003] However, existing methods require professionals to manually calculate the bank slope ratio and tally the steep bank length for each dangerous section of the river. This traditional method of analyzing dangerous sections involves a lot of repetitive work, resulting in low efficiency, a large workload, and low automation. It consumes a lot of manpower and time, and can no longer meet the needs of daily management. Summary of the Invention

[0004] This application provides a method, apparatus, storage medium, and electronic device for automatically extracting steep banks in dangerous sections of engineering works, which can greatly improve the efficiency of steep bank extraction.

[0005] This application provides an embodiment of a method for automatically extracting steep banks in dangerous sections of engineering works, including: Obtain the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area; By sampling at equal intervals along the centerline of the river channel, a set of longitudinal profiles of the river channel is obtained; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; Calculate the slope ratio of each individual longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in each individual longitudinal section, and merge the retained steep slopes. By merging the steep slopes between adjacent individual longitudinal sections, the location and length of the steep bank can be obtained.

[0006] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections of rivers includes, in which the step of sampling at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel includes: The first sampling interval is determined based on the length of the river centerline. Starting from the starting point of the river, several sampling points are collected according to the first sampling interval. Obtain the slope of the line segment where the sampling point is located, and construct the linear expression corresponding to the sampling point based on the slope; Determine the two intersection points between the boundary of the dangerous section and the straight line expression, and use the straight line where the two intersection points are located as the longitudinal section of the river channel.

[0007] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections of engineering works, wherein calculating the slope ratio of individual longitudinal sections in the first longitudinal section and the second longitudinal section respectively includes: The intersection of a single longitudinal section and the boundary of the dangerous section area is used as the starting point for elevation sampling. Multiple starting points within the slope ratio calculation range are sampled according to the second sampling interval. The endpoint within the slope ratio calculation range is calculated for each starting point with a height difference of 3m. The horizontal distance between the endpoint and the starting point is then obtained, and the slope ratio is calculated based on the horizontal distance.

[0008] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep slopes in dangerous sections of engineering works, wherein determining the steep slopes retained in a single longitudinal section includes: Steep slopes with a slope ratio of not less than 1:2 should be retained.

[0009] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections of engineering works, wherein merging the retained steep slopes includes: Project each of the retained steep slopes horizontally; For steep slopes where the projections do not coincide, the result is a steep slope that is completely separated within a single longitudinal section. For steep slopes with overlapping projections, the multiple overlapping steep slopes will be merged.

[0010] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep slopes in dangerous sections of engineering works, wherein merging steep slopes between adjacent individual longitudinal sections includes: Step A: Obtain all steep slopes in each individual longitudinal section, and randomly select one of the unvisited steep slopes as the seed growth point. Step B: Compare the seed point with the steep slopes in the adjacent longitudinal section to determine whether the steep slopes meet the criteria for steep slope merging. If the criteria are not met, terminate the region growth. If the criteria are met, merge the steep slope and the seed point into the growing region and use it as a new seed point. Then repeat the above steps until no new steep slopes are added and mark the steep slope as visited. Step C: Select an unvisited steep slope as the seed growth point, and perform Step B until there are no more unvisited steep slopes.

[0011] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections of engineering projects further includes: Determine the steep slope D within adjacent longitudinal sections i and Dj Do they intersect? Given D i The starting point S i (x Si ,y Si End point E i (x Ei , y Ei ) and D j The starting point S j (x Sj ,y Sj End point E j (x Ej ,y Ej ), calculate the line S i E i slope k i =(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i Among them, the perpendicular line S i E i The slope of the straight line is k ij =-1.0 / k i ; Passing point S j And with line S i E i Vertical line intercept b Sj =y Sj -x Sj ×k ij Passing point E j And with line S i E i Vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculate point S j and E j On line S i E i Vertical projection point S on ij (-(b Sj -b i ) / (k ij -k i ), -(b Sj -b i )×k i / (k ij -k i )+bi E ij (-(b Ej -b i ) / (k ij -k i ), -(b Ej -b i )×k i / (k ij -k i )+b i ).

[0012] If Max(x) Si ,x Ei ) <Min(x Sij ,x Eij ) or Min(x Si ,x Ei Max(x) Sij ,x Eij ), indicating the potential hazard zone D on the bank slope. i and D j The two areas do not overlap; otherwise, the potential danger zone D on the bank slope is... i and D j They overlap; the Max() function retrieves the maximum value among the parameters, and the Min() function retrieves the minimum value among the parameters, x Si and x Ei Point S i and E i x-coordinate Sij and x Eij Point S ij and E ij The x-coordinate.

[0013] This application also provides an automatic steep bank extraction device for dangerous sections of engineering works, comprising: The acquisition module is used to acquire the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area. The first processing module is used to sample at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; The second processing module is used to calculate the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in a single longitudinal section, and merge the retained steep slopes. The third processing module is used to merge the steep slopes between adjacent individual longitudinal sections to obtain the location and length of the steep bank.

[0014] This application also provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to execute any of the above-described methods for automatic extraction of steep banks in dangerous sections of engineering works.

[0015] This application also provides an electronic device, including a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used in the steps of the method for automatic extraction of steep banks in dangerous sections as described above.

[0016] This application provides a method, apparatus, storage medium, and electronic equipment for automatically extracting steep banks in dangerous sections of river works. Based on the river centerline and station information, this application samples the river longitudinal profile, calculates the slope ratio of the longitudinal profile to merge steep slopes, and finally merges the steep slopes between adjacent individual longitudinal profiles to obtain the location and length of the steep bank. This application can directly calculate based on existing data, which is convenient and direct, greatly improving the efficiency of steep bank extraction. Furthermore, it eliminates the need for manual measurement and calculation; it can automatically calculate using known river centerline and station information, saving labor costs and increasing the automation level of steep bank extraction. Attached Figure Description

[0017] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.

[0018] Figure 1 A flowchart of an automatic method for extracting steep banks in dangerous sections of a river, provided in an embodiment of this application.

[0019] Figure 2 This is a schematic diagram of slope ratio calculation provided for an embodiment of this application.

[0020] Figure 3 A schematic diagram of steep slope merging provided for an embodiment of this application.

[0021] Figure 4 This is a schematic diagram of the structure of an automatic steep bank extraction device for dangerous sections of the river, provided in an embodiment of this application.

[0022] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] This application provides a method, apparatus, storage medium, and electronic device for automatically extracting steep banks in dangerous sections of engineering works. The automatic steep bank extraction apparatus provided in this application can be integrated into an electronic device, which can be a terminal, server, or other device. The terminal can include a tablet computer, laptop computer, personal computer (PC), microprocessor box, or other devices.

[0025] Please see Figure 1 , Figure 1 The flowchart illustrates an automatic method for extracting steep banks in dangerous sections of engineering works, provided in this application embodiment. This method, applied in an electronic device, includes the following steps: S1, obtain the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area.

[0026] Specifically, the river centerline can represent a broken line in the direction of the river. The station lines along the river direction can be divided into left bank station lines and right bank station lines.

[0027] Furthermore, it is also necessary to obtain the thorium line of the underwater topography in the dangerous sections of the project.

[0028] S2, sampling at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel; wherein, the set of longitudinal profiles of the river channel includes the first longitudinal profile and the second longitudinal profile.

[0029] Specifically, the first longitudinal section is the left bank longitudinal section, and the second longitudinal section is the right bank longitudinal section. For each longitudinal section, the intersection of the longitudinal section and the thalweg line is used as the boundary, and the longitudinal section is divided into a left bank longitudinal section and a right bank longitudinal section along the direction of water flow. For the task of extracting dangerous sections and steep banks, only the side with the existing chainage is retained, and the chainage corresponding to the longitudinal section is calculated using the intersection of the longitudinal section and the chainage line.

[0030] In step S2, samples are taken at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel, including: S21. Determine the first sampling interval based on the length of the river centerline, and collect several sampling points starting from the river starting point according to the first sampling interval.

[0031] As an example, the first sampling interval can be 5m.

[0032] Specifically, the length of the river centerline is calculated, and samples are taken at 5-meter intervals starting from the point where the river merges. .

[0033] S22, obtain the slope of the line segment where the sampling point is located, and construct the line expression corresponding to the sampling point based on the slope.

[0034] The expression for the straight line is:

[0035] in, The slope is denoted as .

[0036] S23, determine the two intersection points between the boundary of the dangerous section and the straight line expression, and use the straight line where the two intersection points are located as the longitudinal section of the river channel.

[0037] S3, calculate the slope ratio of each individual longitudinal section in the first and second longitudinal sections respectively, determine the steep slopes to be retained in each individual longitudinal section, and merge the retained steep slopes.

[0038] In one embodiment, step S3 includes: S31. The intersection of a single longitudinal section and the boundary of the dangerous section area is taken as the starting point for elevation sampling. Multiple starting points within the slope ratio calculation range are sampled according to the second sampling interval. The endpoint within the slope ratio calculation range is calculated for each starting point with a height difference of 3m. The horizontal distance between the endpoint and the starting point is then obtained, and the slope ratio is calculated based on the horizontal distance.

[0039] As an example, the second sampling interval can be 1m.

[0040] Figure 2 A schematic diagram of slope ratio calculation provided for an embodiment of this application, as shown below. Figure 2 As shown, within a single longitudinal section, the red, green, and yellow broken lines represent the schematic diagrams of three adjacent slope ratio calculations. The slope ratio calculation starts with the intersection of the longitudinal section and the boundary of the dangerous section as the starting point for elevation sampling. The starting point of the slope ratio calculation range is sampled at 1m elevation differences, and the ending point of the slope ratio calculation range is calculated at each starting point with an elevation difference of 3m, thus obtaining the horizontal distance of the slope ratio calculation range. l At this point, the slope ratio i for:

[0041] S32 retains steep slopes with a slope ratio of not less than 1:2.

[0042] S33, project each preserved steep slope in the horizontal direction.

[0043] S34, for steep slopes where the projections do not coincide, results in steep slopes that are completely separated within a single longitudinal section.

[0044] S35, for steep slopes with overlapping projections, merges multiple overlapping steep slopes.

[0045] like Figure 2 As shown, within a single longitudinal section, because the slope ratio sampling interval is smaller than the elevation difference range calculated by the slope ratio, different steep slopes within the longitudinal section may have overlapping areas. In this case, intersecting steep slopes within the longitudinal section are merged based on whether the projected line segments of the steep slopes in the horizontal direction intersect, thereby obtaining one or more completely separated steep slopes within a single longitudinal section.

[0046] S4 merges the steep slopes between adjacent individual longitudinal sections to obtain the location and length of the steep bank.

[0047] In one embodiment, Figure 3 A schematic diagram of steep slope merging provided for an embodiment of this application, as shown below. Figure 3 As shown, the red solid line represents a steep slope, the orange area represents the steep bank after the steep slopes are merged, and L0 is the length of the steep bank. Step S4 may include the following steps: Step A: Obtain all steep slopes in each individual longitudinal section, and randomly select one of the unvisited steep slopes as the seed growth point. Step B: Compare the seed point with the steep slopes in the adjacent longitudinal section to determine whether the steep slopes meet the criteria for steep slope merging. If the criteria are not met, terminate the region growth. If the criteria are met, merge the steep slope and the seed point into the growing region and use it as a new seed point. Then repeat the above steps until no new steep slopes are added and mark the steep slope as visited. Step C: Select an unvisited steep slope as the seed growth point, and perform Step B until there are no more unvisited steep slopes.

[0048] In one embodiment, the steep slope D within adjacent longitudinal sections is determined. i and D j The criteria for determining whether they intersect are as follows: Given D i The starting point S i (x Si ,y Si End point E i (x Ei , y Ei ) and D j The starting point S j (x Sj ,y Sj End point E j (x Ej ,y Ej ), calculate the line S i E i slope k i=(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i Among them, the perpendicular line S i E i The slope of the straight line is k ij =-1.0 / k i ; Passing point S j And with line S i E i Vertical line intercept b Sj =y Sj -x Sj ×k ij Passing point E j And with line S i E i Vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculate point S j and E j On line S i E i Vertical projection point S on ij (-(b Sj -b i ) / (k ij -k i ), -(b Sj -b i )×k i / (k ij -k i )+b i E ij (-(b Ej -b i ) / (k ij -k i ), -(b Ej -b i )×k i / (k ij -k i )+b i ).

[0049] If Max(x) Si ,x Ei ) <Min(x Sij ,x Eij ) or Min(x Si,x Ei Max(x) Sij ,x Eij ), indicating the potential hazard zone D on the bank slope. i and D j The two areas do not overlap; otherwise, the potential danger zone D on the bank slope is... i and D j They overlap; the Max() function retrieves the maximum value among the parameters, and the Min() function retrieves the minimum value among the parameters, x Si and x Ei Point S i and E i x-coordinate Sij and x Eij Point S ij and E ij The x-coordinate.

[0050] This application obtains the river longitudinal profile by sampling based on the river centerline and station information, calculates the slope ratio of the longitudinal profile to merge steep slopes, and finally merges the steep slopes between adjacent individual longitudinal profiles to obtain the location and length of steep banks. This application can directly calculate based on existing data, which is convenient and straightforward, greatly improving the efficiency of steep bank extraction. Furthermore, it eliminates the need for manual measurement and calculation; it can automatically calculate using known river centerline and station information, saving labor costs and increasing the automation level of steep bank extraction.

[0051] Based on the method described in the above embodiments, this embodiment will further describe it from the perspective of an automatic steep bank extraction device for dangerous sections of the river. The automatic steep bank extraction device for dangerous sections of the river can be implemented as an independent entity or integrated into an electronic device. The electronic device can be a terminal, server, or other devices. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a microprocessor box, or other devices.

[0052] Please see Figure 4 , Figure 4 This application provides a detailed description of an automatic steep bank extraction device for dangerous sections of engineering works, which is applied in electronic devices. This device may include: The acquisition module is used to acquire the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area. The first processing module is used to sample at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; The second processing module is used to calculate the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in a single longitudinal section, and merge the retained steep slopes. The third processing module is used to merge the steep slopes between adjacent individual longitudinal sections to obtain the location and length of the steep bank.

[0053] In specific implementation, the above modules and / or units can be implemented as independent entities, or they can be arbitrarily combined and implemented as the same or several entities. For the specific implementation of the above modules and / or units, please refer to the previous method embodiments. For the specific beneficial effects that can be achieved, please also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0054] In addition, this application also provides an electronic device, which may be a computer, tablet computer, or other similar device. This electronic device can implement the steps in any embodiment of the automatic extraction method for steep banks in dangerous sections provided in this application. Therefore, it can achieve the beneficial effects that any of the automatic extraction methods for steep banks in dangerous sections provided in this invention can achieve, as detailed in the preceding embodiments, and will not be repeated here.

[0055] Figure 5 The diagram illustrates a specific structural block diagram of an electronic device provided in an embodiment of the present invention. This electronic device can be used to implement the automatic extraction method for steep banks in dangerous sections of engineering works provided in the above embodiments. The electronic device 500 can be a terminal, server, or other device. The terminal can include a tablet computer, laptop computer, personal computer (PC), microprocessor box, or other devices.

[0056] RF circuit 510 is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals and vice versa, thereby enabling communication with communication networks or other devices. RF circuit 510 may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, subscriber identity modules (SIM cards), memory, etc. RF circuit 510 can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks (WLANs), or metropolitan area networks (MANs). The aforementioned wireless networks may use various communication standards, protocols, and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging, and short messages, and any other suitable communication protocols, including those that have not yet been developed.

[0057] The memory 520 can be used to store software programs and modules, such as the program instructions / modules corresponding to those in the above embodiments. The processor 580 executes various functional applications and data processing by running the software programs and modules stored in the memory 520, such as taking pictures with the front-facing camera, processing the captured images, and switching the display colors of the content displayed on the screen. The memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 520 may further include memory remotely located relative to the processor 580, and these remote memories can be connected to the electronic device 500 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0058] The input unit 530 can be used to receive input numeric or character information, and to generate a keyboard and mouse related to user settings and function control. Display unit 540 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof. Display unit 540 may include display panel 541, which may optionally be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other similar forms.

[0059] Audio circuitry 560, speaker 561, and microphone 562 provide an audio interface between the user and electronic device 500. Audio circuitry 560 converts received audio data into electrical signals and transmits them to speaker 561, where speaker 561 converts them into sound signals for output. Conversely, microphone 562 converts collected sound signals into electrical signals, which are then received by audio circuitry 560, converted back into audio data, and processed by processor 580. The audio data is then transmitted via RF circuitry 510 to, for example, another terminal, or output to memory 520 for further processing. Audio circuitry 560 may also include an earphone jack to facilitate communication between external headphones and electronic device 500.

[0060] Electronic device 500, through transmission module 570 (e.g., Wi-Fi module), can help users receive requests, send information, etc., providing users with wireless broadband internet access. Although transmission module 570 is shown in the figure, it is understood that it is not an essential component of electronic device 500 and can be omitted as needed without changing the essence of the invention.

[0061] The processor 580 is the control center of the electronic device 500. It connects to various parts of the phone via various interfaces and lines, and performs various functions and processes data of the electronic device 500 by running or executing software programs and / or modules stored in the memory 520, and by calling data stored in the memory 520, thereby providing overall monitoring of the electronic device. Optionally, the processor 580 may include one or more processing cores; in some embodiments, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 580.

[0062] Electronic device 500 also includes a power supply 590 (such as a battery) that supplies power to various components. In some embodiments, the power supply may be logically connected to processor 580 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 590 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0063] Although not shown, the electronic device 500 also includes cameras (such as front-facing cameras and rear-facing cameras), Bluetooth modules, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. One or more programs contain instructions for performing the following operations: Obtain the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area; By sampling at equal intervals along the centerline of the river channel, a set of longitudinal profiles of the river channel is obtained; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; Calculate the slope ratio of each individual longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in each individual longitudinal section, and merge the retained steep slopes. By merging the steep slopes between adjacent individual longitudinal sections, the location and length of the steep bank can be obtained.

[0064] In practice, the above modules can be implemented as independent entities or combined in any way to be implemented as the same or several entities. For the specific implementation of the above modules, please refer to the previous method implementation examples, which will not be repeated here.

[0065] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. Therefore, embodiments of the present invention provide a storage medium storing multiple instructions that can be loaded by a processor to execute the steps of any embodiment of the automatic extraction method for steep banks in dangerous sections provided by the present invention.

[0066] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0067] Since the instructions stored in the storage medium can execute the steps in any embodiment of the automatic extraction method for steep banks in dangerous sections provided in the embodiments of the present invention, the beneficial effects that the automatic extraction method for steep banks in dangerous sections provided in the embodiments of the present invention can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0068] The foregoing has provided a detailed description of a method, apparatus, storage medium, and electronic device for automatically extracting steep banks in dangerous sections of engineering works. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for automatically extracting steep banks in dangerous sections of engineering projects, characterized in that, The method includes: Obtain the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area; By sampling at equal intervals along the centerline of the river channel, a set of longitudinal profiles of the river channel is obtained; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; Calculate the slope ratio of each individual longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in each individual longitudinal section, and merge the retained steep slopes. By merging the steep slopes between adjacent individual longitudinal sections, the location and length of the steep bank can be obtained.

2. The method for automatically extracting steep banks in dangerous sections of engineering works according to claim 1, characterized in that, The sampling at equal intervals along the centerline of the river channel yields a set of longitudinal profiles of the river channel, including: The first sampling interval is determined based on the length of the river centerline. Starting from the starting point of the river, several sampling points are collected according to the first sampling interval. Obtain the slope of the line segment where the sampling point is located, and construct the linear expression corresponding to the sampling point based on the slope; Determine the two intersection points between the boundary of the dangerous section and the straight line expression, and use the straight line where the two intersection points are located as the longitudinal section of the river channel.

3. The method for automatic extraction of steep banks in dangerous sections of engineering works according to claim 1, characterized in that, The calculation of the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section respectively includes: The intersection of a single longitudinal section and the boundary of the dangerous section area is used as the starting point for elevation sampling. Multiple starting points within the slope ratio calculation range are sampled according to the second sampling interval. The endpoint within the slope ratio calculation range is calculated for each starting point with a height difference of 3m. The horizontal distance between the endpoint and the starting point is then obtained, and the slope ratio is calculated based on the horizontal distance.

4. The method for automatically extracting steep banks in dangerous sections of engineering works according to claim 3, characterized in that, The determination of the steep slopes to be retained in a single longitudinal section includes: Steep slopes with a slope ratio of not less than 1:2 should be retained.

5. The method for automatically extracting steep banks in dangerous sections of engineering works according to claim 3, characterized in that, The merging of the retained steep slopes includes: Project each of the retained steep slopes horizontally; For steep slopes where the projections do not coincide, the result is a steep slope that is completely separated within a single longitudinal section. For steep slopes with overlapping projections, the multiple overlapping steep slopes will be merged.

6. The method for automatically extracting steep banks in dangerous sections of engineering works according to claim 1, characterized in that, The process of merging steep slopes between adjacent individual longitudinal sections includes: Step A: Obtain all steep slopes in each individual longitudinal section, and randomly select one of the unvisited steep slopes as the seed growth point. Step B: Compare the seed growth point with the steep slopes in the adjacent longitudinal section to determine whether the steep slopes meet the criteria for merging steep slopes. If the criteria are not met, terminate the region growth. If the criteria are met, merge the steep slope and the seed growth point into the growing region and use it as a new seed growth point. Then repeat the above steps until no new steep slopes are added and mark the steep slope as visited. Step C: Select an unvisited steep slope as the seed growth point, and perform Step B until there are no more unvisited steep slopes.

7. The method for automatic extraction of steep banks in dangerous sections of engineering works according to claim 6, characterized in that, Determining whether the steep slope meets the criteria for steep slope merging includes: Determine the steep slope D within adjacent longitudinal sections i and D j Do they intersect? Given D i The starting point S i (x Si ,y Si End point E i (x Ei , y Ei ) and D j The starting point S j (x Sj ,y Sj End point E j (x Ej , y Ej ), calculate the line S i E i slope k i =(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i Among them, the perpendicular line S i E i The slope of the straight line is k ij =-1.0 / k i ; Passing point S j And with line S i E i Vertical line intercept b Sj =y Sj -x Sj ×k ij Passing point E j And with line S i E i Vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculate point S j and E j On line S i E i Vertical projection point S on ij (-(b Sj -b i ) / (k ij -k i ), -(b Sj -b i )×k i / (k ij -k i )+b i E ij (-(b Ej -b i ) / (k ij -k i ), -(b Ej -b i )×k i / (k ij -k i )+b i ); If Max(x) Si ,x Ei ) <Min(x Sij ,x Eij ) or Min(x Si ,x Ei Max(x) Sij ,x Eij ), indicating the potential hazard zone D on the bank slope. i and D j They do not overlap; otherwise, the potential danger zone D on the bank slope. i and D j They overlap; the Max() function retrieves the maximum value among the parameters, and the Min() function retrieves the minimum value among the parameters, x Si and x Ei Representing point S i and E i x-coordinate Sij and x Eij Representing point S ij and E ij The x-coordinate.

8. An automatic extraction device for steep banks in dangerous sections of engineering projects, characterized in that, include: The acquisition module is used to acquire the centerline information of the river channel and the station number and line information of the river channel in the dangerous section area. The first processing module is used to sample at equal intervals along the centerline of the river channel to obtain a set of longitudinal profiles of the river channel; wherein, the set of longitudinal profiles of the river channel includes a first longitudinal profile and a second longitudinal profile; The second processing module is used to calculate the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section respectively, determine the steep slopes to be retained in a single longitudinal section, and merge the retained steep slopes. The third processing module is used to merge the steep slopes between adjacent individual longitudinal sections to obtain the location and length of the steep bank.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted to be loaded by a processor to execute the method for automatic extraction of steep banks in dangerous sections of engineering works as described in any one of claims 1 to 7.

10. An electronic device, characterized in that, The method includes a processor and a memory, the processor being electrically connected to the memory, the memory being used to store instructions and data, and the processor being used to execute the steps in the method for automatic extraction of steep banks in dangerous sections of dangerous works as described in any one of claims 1 to 7.