Automatic steep bank extraction method and device for dangerous section of dangerous work, medium and equipment

By sampling the longitudinal section of the river channel, calculating the slope ratio and merging the steep slope, the problem of low shore slope analysis efficiency of existing hazardous work sections is solved, efficient automation of steep shore extraction is achieved, and labor costs are saved.

CN119904501AActive Publication Date: 2025-04-29WUHAN MUNICIPAL CONSTR SCI & RES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411849201.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-29
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

The existing shore slope analysis methods of hazardous work sections are inefficient, have large workloads and low degree of automation, resulting in high labor and time costs and cannot meet daily management needs.

Method used

By obtaining the information of the river center line and pile number pile line, sampling equidistantly along the river center line to obtain the collection of river longitudinal sections, calculate the slope ratio, merge the steep slope, and obtain the location and length of the steep bank.

Benefits of technology

It realizes efficient automation of steep shore extraction, reduces manual measurement and calculation, saves labor costs, and improves the degree of automation of steep shore extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904501A_ABST
    Figure CN119904501A_ABST
Patent Text Reader

Abstract

The invention discloses a steep bank automatic extraction method and device for an insurance section of an insurance worker, a storage medium and electronic equipment. The method comprises the following steps: acquiring river channel center line information and pile number and pile line information of a river channel in a dangerous section area of the dangerous work; equidistantly sampling along the central line of the river channel to obtain a river channel longitudinal section set; wherein the river channel longitudinal section set comprises a first longitudinal section and a second longitudinal section; the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section is calculated, steep slopes reserved in the single longitudinal section are determined, and the reserved steep slopes are combined; and combining the abrupt slopes between the adjacent single longitudinal sections to obtain the steep bank position and the steep bank length. According to the method, calculation can be directly carried out according to existing data, the method is convenient and direct, the steep bank extraction efficiency can be greatly improved, manual measurement and calculation are not needed, automatic calculation can be carried out through known river channel center line information and pile number information, the labor cost is saved, and the automation degree of steep bank extraction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water conservancy and water transport engineering, and in particular to a method, device, storage medium and electronic equipment for automatically extracting steep banks in dangerous sections. Background Art

[0002] Dangerous sections refer to sections on river embankments where there are potential safety hazards. In my country, there are many dangerous sections on both sides of the Yangtze River and the Han River. In order to understand the impact of underwater scouring of dangerous sections before and after the flood season on the safety of embankments, it is necessary to conduct underwater topographic surveys of these dangerous sections every year, timely grasp the changes in topography, and analyze the bank slopes of dangerous sections to prevent dangerous situations and take maintenance measures to ensure the safety of embankments.

[0003] However, the existing operation method requires professionals to manually calculate the bank slope ratio and count the steep bank length for each dangerous section of the river. This traditional bank slope analysis method for dangerous sections has a lot of repetitive work, resulting in low efficiency, large workload, low degree of automation, and will consume a lot of manpower and time costs, and can no longer meet daily management needs. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for automatic extraction of steep banks in dangerous sections, which can greatly improve the efficiency of steep bank extraction.

[0005] The embodiment of the present application provides a method for automatically extracting steep banks in dangerous sections, including: Obtaining the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; Sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; respectively calculating the slope ratios of the single longitudinal sections in the first longitudinal section and the second longitudinal section, determining the steep slopes to be retained in the single longitudinal section, and merging the retained steep slopes; The steep slopes between adjacent single longitudinal sections are merged to obtain the steep bank position and steep bank length.

[0006] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections, wherein the sampling along the center line of the river channel at equal distances to obtain a set of river channel longitudinal sections includes: Determine the first sampling interval according to the length of the center line of the river channel, and collect a number of sampling points starting from the starting point of the river channel according to the first sampling interval; Obtaining the slope of the line segment where the sampling point is located, and constructing a straight line expression corresponding to the sampling point according to the slope; Determine the two intersection points of the boundary of the dangerous section area and the straight line expression, and take 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, in the above-mentioned method for automatically extracting steep banks in dangerous sections, the step of respectively calculating the slope ratio of a single longitudinal section in the first longitudinal section and the second longitudinal section comprises: The intersection of a single longitudinal section and the boundary of the dangerous section area is taken as the starting point of elevation sampling. Multiple starting points within the slope ratio calculation range are sampled according to the second sampling interval, and the end point within the slope ratio calculation range is calculated for each starting point with a height difference of 3m, and then the horizontal distance between the end point and the starting point is 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 banks in dangerous sections, wherein the step of determining the steep slopes to be retained in a single longitudinal section comprises: Keep steep slopes with a slope ratio of no less than 1:2.

[0009] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections, wherein the merging of the reserved steep slopes comprises: Projecting each of the retained steep slopes in a horizontal direction; For steep slopes whose projections do not overlap, completely separated steep slopes are obtained within a single longitudinal section; For steep slopes with overlapping projections, multiple overlapping steep slopes are merged.

[0010] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections, wherein the step of merging steep slopes between adjacent single longitudinal sections comprises: Step A, obtaining all steep slopes in each single longitudinal section, and randomly selecting one of the unvisited steep slopes as a seed growth point; Step B, comparing the seed point with the steep slope in the adjacent longitudinal section to determine whether the steep slope meets the steep slope merging criteria; if the criteria are not met, terminating the region growth; if the criteria are met, merging the steep slope and the seed point into the growing region and serving as a new seed point, and then repeating the above steps until no new steep slope is added, and marking the steep slope as visited; Step C, select an unvisited steep slope as a seed growth point, and execute step B until there is no unvisited steep slope.

[0011] As a further improvement of the present invention, the above-mentioned method for automatically extracting steep banks in dangerous sections, wherein the method further comprises: Determine the steep slope D in adjacent longitudinal sections i and Dj Intersect: Known 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 straight line S i E i The slope k i =(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i ; Among them, the vertical line S i E i The slope of the straight line is k ij =-1.0 / k i ; Pass point S j And the straight line S i E i The vertical line intercept b Sj =y Sj -x Sj ×k ij , past point E j And the straight line S i E i The vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculation point S j and E j On the straight line S i E i The 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 danger area D of the bank slope i and D j Do not overlap; otherwise, the potential dangerous area D i and D j are overlapped; the Max() function represents the maximum value of the parameter, and the Min() function represents the minimum value of the parameter. Si and x Ei Indicates point S i and E i The horizontal coordinate, x Sij and x Eij Indicates point S ij and E ij The horizontal axis of .

[0013] The embodiment of the present application also provides a steep bank automatic extraction device for dangerous sections, comprising: An acquisition module is used to acquire the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; A first processing module is used for sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; A 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, determine the steep slopes retained in the single longitudinal section, and merge the retained steep slopes; The third processing module is used to merge the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and steep bank length.

[0014] An embodiment of the present application also provides a computer-readable storage medium, in which a plurality of instructions are stored. The instructions are suitable for being loaded by a processor to execute any of the above-mentioned methods for automatic extraction of steep banks in dangerous sections.

[0015] An embodiment of the present 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 for the steps in any of the above-mentioned methods for automatic extraction of steep banks in dangerous sections.

[0016] The present application provides a method, device, storage medium and electronic device for automatically extracting steep banks in dangerous sections. The present application obtains a longitudinal section of the river channel by sampling based on the river channel centerline and pile number and pile line information, calculates the slope ratio of the river channel longitudinal section, merges the steep slopes, and finally merges the steep slopes between adjacent single longitudinal sections to obtain the position and length of the steep bank. The present application can directly calculate based on existing data, which is convenient and direct, and can greatly improve the efficiency of steep bank extraction. It does not require manual measurement and calculation. It can be automatically calculated through known river channel centerline information and pile number information, saving labor costs and improving the degree of automation of steep bank extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0018] Figure 1 A flow chart of a method for automatically extracting steep banks in dangerous sections provided in an embodiment of the present application.

[0019] Figure 2 A schematic diagram of slope ratio calculation provided in an embodiment of the present application.

[0020] Figure 3 A schematic diagram of steep slope merging provided in an embodiment of the present application.

[0021] Figure 4 A schematic diagram of the structure of an automatic extraction device for steep banks in dangerous sections provided in an embodiment of the present application.

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0024] The embodiment of the present application provides a method, device, storage medium and electronic device for automatic extraction of steep banks in dangerous sections. The embodiment of the present application provides a device for automatic extraction of steep banks in dangerous sections, which can be integrated in an electronic device, which can be a terminal, a server and other devices, wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC), a micro processing box, or other devices.

[0025] See also Figure 1 , Figure 1 A flowchart of a method for automatically extracting a steep bank at a dangerous section provided in an embodiment of the present application, which is applied to an electronic device, includes the following steps: S1, obtaining the river centerline information and the pile number and line information of the river in the dangerous section area.

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

[0027] Furthermore, it is also necessary to obtain the deep-sea line of the underwater terrain in dangerous sections.

[0028] S2, sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section.

[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 deep abyss line is used as the boundary, and the longitudinal section is divided into the left bank longitudinal section and the right bank longitudinal section along the water flow direction. For the steep bank extraction task of dangerous sections, only the side with the pile number line is retained, and the intersection of the longitudinal section and the pile number line is used to calculate the pile number corresponding to the longitudinal section.

[0030] In step S2, sampling is performed at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections, including: S21, determining a first sampling interval according to the length of the center line of the river channel, and collecting a number of sampling points starting from the starting point of the river channel according to the first sampling interval.

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

[0032] Specifically, the length of the river centerline is calculated, and a sampling point is taken at an interval of 5m starting from the starting point of the river merging line. .

[0033] S22, obtaining the slope of the line segment where the sampling point is located, and constructing a straight line expression corresponding to the sampling point according to the slope.

[0034] The straight line expression is:

[0035] in, is the slope.

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

[0037] S3, respectively calculating the slope ratios of the individual longitudinal sections in the first longitudinal section and the second longitudinal section, determining the steep slopes to be retained in the individual longitudinal sections, and merging the retained steep slopes.

[0038] In one embodiment, step S3 includes: S31, taking the intersection of a single longitudinal section and the boundary of the dangerous section area as the starting point of elevation sampling, sampling multiple starting points within the slope ratio calculation range according to the second sampling interval, and calculating the end point within the slope ratio calculation range for each starting point with a height difference of 3m, and then obtaining the horizontal distance between the end point and the starting point, and calculating the slope ratio based on the horizontal distance.

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

[0040] Figure 2 The slope ratio calculation diagram provided in the embodiment of the present application is as follows: Figure 2 As shown in the figure, in a single longitudinal section, the red, green and yellow polylines represent the schematic diagram of the calculation of three adjacent slope ratios. The slope ratio calculation takes the intersection of the longitudinal section and the boundary of the dangerous section as the starting point of the elevation sampling, and the starting point of the slope ratio calculation range is sampled at an interval of 1m. The end point of the slope ratio calculation range is calculated for each starting point with a height difference of 3m, and the horizontal distance of the slope ratio calculation range is obtained. l , at this time the slope ratio i for:

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

[0042] S33, performing horizontal projection on each retained steep slope.

[0043] S34, for steep slopes whose projections do not overlap, completely separated steep slopes are obtained in a single longitudinal section.

[0044] S35: For steep slopes with overlapping projections, multiple overlapping steep slopes are merged.

[0045] like Figure 2 As shown in the figure, in a single longitudinal section, because the sampling interval of the bank slope ratio is smaller than the height difference range of the slope ratio calculation, different steep slopes in the longitudinal section may have intersecting areas. At this time, the intersecting steep slopes in the longitudinal section are merged according to whether the projected line segments of the steep slopes in the horizontal direction intersect, and then one or more steep slopes that are completely separated in a single longitudinal section are obtained.

[0046] S4, merge the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and steep bank length.

[0047] In one embodiment, Figure 3 A schematic diagram of steep slope merging provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the red solid line is a steep slope, the orange area is a 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, obtaining all steep slopes in each single longitudinal section, and randomly selecting one of the unvisited steep slopes as a seed growth point; Step B, compare the seed point with the steep slope in the adjacent longitudinal section to determine whether the steep slope meets the steep slope merging criteria; 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 them as new seed points, then repeat the above steps until no new steep slope is added, and mark the steep slope as visited; Step C, select an unvisited steep slope as a seed growth point, and execute step B until there is no unvisited steep slope.

[0048] In one embodiment, the steep slope D in the adjacent longitudinal section is determined. i and D j The basis for whether they intersect is as follows: Known 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 straight line S i E i The slope k i=(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i ; Among them, the vertical line S i E i The slope of the straight line is k ij =-1.0 / k i ; Pass point S j And the straight line S i E i The vertical line intercept b Sj =y Sj -x Sj ×k ij , past point E j And the straight line S i E i The vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculation point S j and E j On the straight line S i E i The 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 danger area D of the bank slope i and D j Do not overlap; otherwise, the potential dangerous area D i and D j are overlapped; the Max() function represents the maximum value of the parameter, and the Min() function represents the minimum value of the parameter. Si and x Ei Indicates point S i and E i The horizontal coordinate, x Sij and x Eij Indicates point S ij and E ij The horizontal axis of .

[0050] This application obtains the longitudinal section of the river channel by sampling based on the river channel centerline and pile number and pile line information, calculates the slope ratio of the river channel longitudinal section, merges the steep slopes, and finally merges the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and steep bank length. This application can directly calculate based on existing data, which is convenient and direct, can greatly improve the efficiency of steep bank extraction, and does not require manual measurement and calculation. It can be automatically calculated through the known river channel centerline information and pile number information, saving labor costs and improving the automation of steep bank extraction.

[0051] According to the method described in the above embodiment, this embodiment will be further described from the perspective of an automatic extraction device for steep banks in dangerous sections. The automatic extraction device for steep banks in dangerous sections can be implemented as an independent entity or integrated in an electronic device. The electronic device can be a terminal, a server or other device. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a micro processing box, or other devices.

[0052] See also Figure 4 , Figure 4 The present invention specifically describes an automatic extraction device for steep banks in dangerous sections provided by an embodiment of the present invention, which is applied to electronic equipment. The automatic extraction device for steep banks in dangerous sections may include: An acquisition module is used to acquire the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; A first processing module is used for sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; A 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, determine the steep slopes retained in the single longitudinal section, and merge the retained steep slopes; The third processing module is used to merge the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and steep bank length.

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

[0054] In addition, the embodiment of the present application further provides an electronic device, which may be a computer, a tablet computer, or other device. The electronic device may implement the steps in any of the embodiments of the method for automatically extracting a steep bank for a dangerous section provided in the embodiment of the present application, and thus may achieve the beneficial effects that can be achieved by any of the methods for automatically extracting a steep bank for a dangerous section provided in the embodiment of the present application, as detailed in the previous embodiments, which will not be described in detail here.

[0055] Figure 5 The specific structural block diagram of the electronic device provided in the embodiment of the present invention is shown, and the electronic device can be used to implement the steep bank automatic extraction method for dangerous sections provided in the above embodiment. The electronic device 500 can be a terminal, a server, etc., wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC, Personal Computer), a micro processing box, or other devices.

[0056] The RF circuit 510 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 510 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 510 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned 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 Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.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, even those that have not yet been developed.

[0057] The memory 520 can be used to store software programs and modules, such as the corresponding program instructions / modules 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, that is, realizing the functions of taking pictures with the front camera, processing the captured images, and switching the display color of the display content on the display screen. The memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 520 may further include a memory remotely arranged relative to the processor 580, and these remote memories may be connected to the electronic device 500 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

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

[0059] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the electronic device 500. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the speaker 561, which is converted into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then the audio data is output to the processor 580 for processing, and then sent to another terminal through the RF circuit 510, or the audio data is output to the memory 520 for further processing. The audio circuit 560 may also include an earplug jack to provide communication between an external headset and the electronic device 500.

[0060] The electronic device 500 can help the user receive requests, send information, etc. through the transmission module 570 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 570 is shown in the figure, it can be understood that it is not a necessary component of the 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 uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, it executes various functions of the electronic device 500 and processes data, thereby monitoring the electronic device as a whole. 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 processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 580.

[0062] The electronic device 500 also includes a power supply 590 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 580 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 590 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0063] Although not shown, the electronic device 500 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, 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 are configured to be executed by one or more processors. One or more programs include instructions for performing the following operations: Obtaining the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; Sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; respectively calculating the slope ratios of the single longitudinal sections in the first longitudinal section and the second longitudinal section, determining the steep slopes to be retained in the single longitudinal section, and merging the retained steep slopes; The steep slopes between adjacent single longitudinal sections are merged to obtain the steep bank position and steep bank length.

[0064] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0065] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions, and the instructions can be loaded by a processor to execute the steps of any embodiment of the method for automatic extraction of steep banks in dangerous sections provided in an embodiment of the present invention.

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

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

[0068] The above is a detailed introduction to the method, device, storage medium and electronic device for automatic extraction of steep banks in dangerous sections provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for automatically extracting steep banks in dangerous sections, characterized in that: The method comprises: Obtaining the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; Sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; respectively calculating the slope ratios of the single longitudinal sections in the first longitudinal section and the second longitudinal section, determining the steep slopes to be retained in the single longitudinal section, and merging the retained steep slopes; The steep slopes between adjacent single longitudinal sections are merged to obtain the steep bank position and steep bank length.

2. The method for automatically extracting steep banks in dangerous sections according to claim 1 is characterized in that: The sampling along the center line of the river channel at equal distances obtains a set of river channel longitudinal sections, including: Determine the first sampling interval according to the length of the center line of the river channel, and collect a number of sampling points starting from the starting point of the river channel according to the first sampling interval; Obtaining the slope of the line segment where the sampling point is located, and constructing a straight line expression corresponding to the sampling point according to the slope; Determine the two intersection points of the boundary of the dangerous section area and the straight line expression, and take the straight line where the two intersection points are located as the longitudinal section of the river channel.

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

4. The method for automatically extracting steep banks in dangerous sections according to claim 3 is characterized in that: The step of determining the steep slope to be retained in a single longitudinal section includes: Keep steep slopes with a slope ratio of no less than 1:

2.

5. The method for automatically extracting steep banks in dangerous sections according to claim 3 is characterized in that: The step of merging the reserved steep slopes comprises: Projecting each of the retained steep slopes in a horizontal direction; For steep slopes whose projections do not overlap, completely separated steep slopes are obtained within a single longitudinal section; For steep slopes with overlapping projections, multiple overlapping steep slopes are merged.

6. The method for automatically extracting steep banks in dangerous sections according to claim 1 is characterized in that: The step of merging the steep slopes between adjacent single longitudinal sections includes: Step A, obtaining all steep slopes in each single longitudinal section, and randomly selecting one of the unvisited steep slopes as a seed growth point; Step B, comparing the seed point with the steep slope in the adjacent longitudinal section to determine whether the steep slope meets the steep slope merging criteria; if the criteria are not met, terminating the region growth; if the criteria are met, merging the steep slope and the seed point into the growing region and serving as a new seed point, and then repeating the above steps until no new steep slope is added, and marking the steep slope as visited; Step C, select an unvisited steep slope as a seed growth point, and execute step B until there is no unvisited steep slope.

7. The method for automatically extracting steep banks in dangerous sections according to claim 6 is characterized in that: The method further comprises: Determine the steep slope D in adjacent longitudinal sections i and D j Intersect: Known 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 straight line S i E i The slope k i =(y Ei –y Si ) / (x Ei -x Si ), intercept b i =y Ei -x Ei ×k i ; Among them, the vertical line S i E i The slope of the straight line is k ij =-1.0 / k i ; Pass point S j And the straight line S i E i The vertical line intercept b Sj =y Sj -x Sj ×k ij , past point E j And the straight line S i E i The vertical line intercept b Ej =y Ej -x Ej ×k ij ; Calculation point S j and E j On the straight line S i E i The 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 danger area D of the bank slope i and D j Do not overlap; otherwise, the potential dangerous area D i and D j are overlapped; the Max() function represents the maximum value of the parameter, and the Min() function represents the minimum value of the parameter. Si and x Ei Indicates point S i and E i The horizontal coordinate, x Sij and x Eij Indicates point S ij and E ij The horizontal axis of .

8. An automatic extraction device for steep banks in dangerous sections, characterized in that: include: An acquisition module is used to acquire the river centerline information of the river in the dangerous section area and the pile number and pile line information of the river; A first processing module is used for sampling at equal distances along the center line of the river channel to obtain a set of river channel longitudinal sections; wherein the set of river channel longitudinal sections includes a first longitudinal section and a second longitudinal section; A 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, determine the steep slopes retained in the single longitudinal section, and merge the retained steep slopes; The third processing module is used to merge the steep slopes between adjacent single longitudinal sections to obtain the steep bank position and steep bank length.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the method for automatically extracting steep banks in dangerous sections of a project as described in any one of claims 1 to 7.

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

Citation Information

Patent Citations

  • River bank slope collapse risk assessment method

    CN113837529A

  • Inversion method and device of river and lake waterflow in plain area, and electronic equipment

    CN114707195A

  • Automatic river section generation and feature extraction method

    CN117197220A

  • River section extraction method, device, equipment and medium

    CN118067084A

  • Planimetric feature environment condition provision method and program thereof

    JP2006252529A