Long and narrow terrain measurement method and system based on oblique photography and unmanned aerial vehicle

By using a rope reel device and a shooting gimbal on the UAV, and adjusting the flight path and gimbal movement, the problem of missing images of the UAV in narrow terrain is solved and the quality of three-dimensional modeling is improved.

CN118548858APending Publication Date: 2024-08-27XIAN MUNICIPAL CONSTR GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410787310.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When UAVs perform oblique photography 3D modeling, for taller buildings, especially the long and narrow terrain formed between multiple buildings, it is easy for the image of the bottom of the building to be missing or unclear, resulting in poor quality of the 3D model.

Method used

By setting up a rope winding device and a shooting pan/tilt on the UAV, obtain an overhead image of the area to be measured, analyze and determine the narrow terrain area, adjust the initial flight path, and use the rope winding device to drive the pan/tilt to move in the vertical direction to obtain three-dimensional measurements. images to ensure the comprehensiveness of the images.

Benefits of technology

It enables UAVs to collect images required for more comprehensive three-dimensional modeling and improves the quality of generated three-dimensional models, especially in the acquisition of bottom images in narrow terrain areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548858A
    Figure CN118548858A
Patent Text Reader

Abstract

The invention relates to a long and narrow topographic measurement method and system based on oblique photography and an unmanned aerial vehicle, and belongs to the technical field of topographic measurement. Analyzing the high-angle image to obtain a long and narrow terrain area; determining a vertical sampling point from the long and narrow terrain area; according to the vertical sampling points, adjusting the initial flight path of the unmanned aerial vehicle to obtain an optimized flight path; and based on the optimized sampling path, in response to the unmanned aerial vehicle moving to the vertical sampling point, controlling the rope winding device to drive the shooting holder to move in the vertical direction so as to carry out three-dimensional shooting on the long and narrow terrain area to obtain a three-dimensional measurement image. And adjusting the initial flight path of the unmanned aerial vehicle based on the vertical sampling point, and when the unmanned aerial vehicle moves to the vertical sampling point, obtaining a bottom image of the long and narrow terrain area. The method has the effect that the unmanned aerial vehicle can conveniently collect more comprehensive images required by three-dimensional modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of topographic surveying, and in particular to a method, system and unmanned aerial vehicle for surveying narrow and long terrain based on oblique photography. Background Art

[0002] Oblique photography technology is different from previous orthophotos that can only be shot from a vertical angle. Oblique photography technology carries multiple sensors on the same flying platform (such as a drone) to simultaneously collect images from five different angles: one vertical, four oblique, etc., making the collected images more three-dimensional and closer to the real world in human vision.

[0003] At present, when using oblique camera technology for 3D modeling of drones, drones are used to shoot above buildings to obtain oblique photography images, and then software tools are used to synthesize the images and generate 3D models. However, since drones are located above buildings to shoot, for taller buildings, especially the narrow terrain formed between multiple buildings, the bottom images of the buildings are easily missing or unclear due to the obstruction of the buildings, making the images required for 3D modeling taken by drones incomplete, resulting in poor quality of the final generated 3D model. Summary of the invention

[0004] In order to facilitate drones to collect images required for more comprehensive three-dimensional modeling, the present application provides a method, system and drone for measuring narrow and long terrain based on oblique photography.

[0005] In the first aspect, the present application provides a method for measuring narrow and long terrain based on oblique photography, which adopts the following technical solution: A method for measuring a narrow and long terrain based on oblique photography is applied to a drone, wherein the drone is provided with a shooting platform for carrying a camera and a rope winding device, wherein the rope winding device is used to drive the shooting platform to move in a vertical direction, and the method comprises: Acquire an overhead image of the area to be measured; Analyze the overhead images to obtain narrow and long terrain areas; Vertical sampling points were identified from narrow and long terrain areas; According to the vertical sampling points, the initial flight path of the UAV is adjusted to obtain the optimized flight path; Based on the optimized sampling path, in response to the UAV moving to the vertical sampling point, the rope winding device is controlled to drive the shooting gimbal to move in the vertical direction to perform stereoscopic shooting of the narrow and long terrain area and obtain a stereoscopic measurement image.

[0006] By adopting the above technical solution, a narrow and long terrain area is obtained from the overhead image of the area to be measured, and the vertical sampling points in the narrow and long terrain area are determined. The initial flight path of the UAV is adjusted based on the vertical sampling points to obtain an optimized flight path passing through the vertical sampling points. When the UAV moves to the vertical sampling points, the rope winding device drives the shooting gimbal to move in the vertical direction to obtain the bottom image of the narrow and long terrain area close to the ground, thereby achieving the effect of facilitating the UAV to collect more comprehensive images required for three-dimensional modeling.

[0007] Optionally, the analyzing the overhead image to obtain the narrow and long terrain area specifically includes: Input the overhead image into the image segmentation network to generate several building areas; Get the flight altitude of the drone; Get the overlapping length of adjacent building areas whose spacing is less than a preset value; According to the flight altitude and the overlapping length, a long and narrow terrain area is obtained.

[0008] By adopting the above technical solution, the overhead image is input into the image segmentation network to generate several building areas. The flight altitude of the drone is configured according to the height of the buildings in the building area. When the flight altitude of the drone is too high and the overlapping length of adjacent building areas is less than the preset value, the corresponding area is a narrow and long terrain area.

[0009] Optionally, the method further comprises a training step of training a preset neural network model to obtain an image segmentation network, wherein the training step comprises: Obtain a training data set, annotate building areas in a plurality of overhead building images included in the training data set, and calibrate building area labels; The overhead building image is input into a preset neural network model, the regional prediction result is output, and the model parameters of the neural network model are iteratively updated according to the building area label and the regional prediction result to obtain the image segmentation network.

[0010] By adopting the above technical solution, the building areas in multiple overhead building images in the training data set are annotated, and the overhead building images are input into a preset neural network model, and the area prediction results are output to iteratively update the model parameters of the preset neural network model, so that the obtained image segmentation network has the ability to recognize building areas in overhead images.

[0011] Optionally, determining vertical sampling points from the narrow and long terrain area specifically includes: Obtaining a median line of the narrow and long terrain area; the distances between each point on the median line and both sides of the narrow and long terrain area are equal; According to the preset sampling interval, the vertical sampling points are determined on the median line.

[0012] By adopting the above technical solution, vertical sampling points are determined on the median line according to the preset sampling interval, so that the distances between the vertical sampling points and the two sides of the narrow terrain area are equal, that is, the distances between the vertical sampling points and the building areas on both sides are equal, thereby reserving the space required for the rope winding device to drive the shooting gimbal to move in the vertical direction at the vertical sampling points.

[0013] Optionally, the initial flight path of the UAV is adjusted according to the vertical sampling points to obtain an optimized flight path, specifically including: Get the coordinates of each heading track in the initial flight path; Get the coordinates of the vertical sampling points; Based on the preset overlap rate threshold and the coordinates of the vertical sampling points, the coordinates of the heading track are adjusted to obtain the optimized interval coordinates; Generate an optimized flight path based on the optimized interval coordinates.

[0014] By adopting the above technical solution, since the preset overlap rate threshold is too small, the images collected by the drone may be insufficient. Therefore, based on the preset overlap rate threshold and the coordinates of the vertical sampling points, the coordinates of the heading trajectory are adjusted. On the one hand, it can meet the number requirements of the images collected by the drone, and on the other hand, it can make the generated optimized flight path pass through the vertical sampling points.

[0015] Optionally, adjusting the coordinates of the heading track based on a preset overlap rate threshold and the coordinates of the vertical sampling points to obtain the optimized interval coordinates specifically includes: According to the coordinates of the vertical sampling points, an optimized trajectory parallel to the heading trajectory and passing through the vertical sampling points is generated; According to the coordinates of the optimized track and the coordinates of the heading track, the lateral overlap rates of the optimized track and two sub-adjacent heading tracks are calculated respectively; the sub-adjacent heading track and the optimized heading are separated by one heading track; The lateral overlap rate is compared with a preset overlap rate threshold, and a retention result of the heading track adjacent to the optimized track is obtained according to the comparison result; The optimized interval coordinates are generated according to the optimized trajectory and the retained results of the heading trajectory adjacent to it.

[0016] By adopting the above technical solution, an optimized trajectory that is parallel to the heading trajectory and passes through the vertical sampling point is used, and whether to retain the heading trajectory adjacent to the optimized trajectory is determined according to the lateral overlap rate. That is, if the optimized heading and the second adjacent heading trajectory can already meet the preset overlap rate threshold, then the heading trajectory adjacent to the optimized heading may not be retained, which reduces the amount of data to be processed to a certain extent, and the heading trajectory is only adjusted locally where the vertical sampling point exists, without the need to recalculate all the heading trajectories.

[0017] Optionally, in response to the drone moving to the vertical sampling point, controlling the rope winding device to drive the shooting gimbal to move in the vertical direction specifically includes: In response to the UAV moving to the vertical sampling point, a stop signal is output to control the UAV to stop flying; According to the preset shooting speed, the rope winding device is controlled to drive the shooting platform to move vertically downward until the shooting platform reaches the preset shooting height; In response to the shooting platform reaching a preset shooting height, the rope winding device is controlled to drive the shooting platform to move vertically upward according to a preset rope retracting speed.

[0018] By adopting the above technical solution, the stagnation signal is used to facilitate maintaining the stability of the shooting gimbal when it moves in the vertical direction and according to the preset shooting speed and the preset rope retracting speed, the shooting gimbal drives the camera to obtain a stereo measurement image.

[0019] In a second aspect, the present application provides a narrow and long terrain measurement system based on oblique photography, which adopts the following technical solutions: A narrow and long terrain measurement system based on oblique photography is applied to a drone, wherein the drone is provided with a shooting platform for carrying a camera and a rope winding device, wherein the rope winding device is used to drive the shooting platform to move in a vertical direction, and the system comprises: An image acquisition module, used to acquire an overhead image of the area to be measured; The area division module is used to analyze the overhead image to obtain the narrow and long terrain area; A sampling point generation module is used to determine vertical sampling points from a narrow and long terrain area; The path optimization module is used to adjust the initial flight path of the UAV according to the vertical sampling points to obtain the optimized flight path; The stereo measurement module is used to control the rope winding device to drive the shooting gimbal to move in the vertical direction in response to the UAV moving to the vertical sampling point based on the optimized sampling path, so as to perform stereo shooting measurement of the narrow and long terrain area.

[0020] Optionally, the path optimization module further includes: A first coordinate acquisition unit, used to acquire the coordinates of each heading track in the initial flight path; A second coordinate acquisition unit, used to acquire the coordinates of the vertical sampling point; An optimized coordinate generation unit, used to adjust the coordinates of the heading track based on a preset overlap rate threshold and the coordinates of the vertical sampling points to obtain optimized interval coordinates; The optimized path generation unit is used to generate an optimized flight path according to the optimized interval coordinates.

[0021] In a third aspect, the present application provides a drone, which adopts the following technical solution: An unmanned aerial vehicle comprises a narrow and long terrain measurement system based on oblique photography as described in any one of the above items.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium includes a computer program that can be loaded by a processor and executed in any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flow chart of a method for measuring narrow and long terrain according to one embodiment of the present application.

[0024] Figure 2 It is a structural diagram of a drone according to one embodiment of the present application.

[0025] Figure 3 This is a flow chart of a method for generating an optimized path according to one embodiment of the present application.

[0026] Figure 4 It is a flow chart of a method for generating optimized interval coordinates according to one embodiment of the present application.

[0027] Figure 5 It is a schematic diagram of generating an optimized path according to one embodiment of the present application.

[0028] Figure 6 It is a block diagram of a narrow and long terrain measurement system according to one embodiment of the present application.

[0029] Explanation of the accompanying reference numerals: 1. Rope winding device; 2. Shooting head; 3. Hanging ring. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] The present application embodiment discloses a method for measuring a narrow and long terrain based on oblique photography. Figure 1 A method for measuring a narrow and long terrain based on oblique photography is applied to a drone, wherein the drone is provided with a shooting platform for carrying a camera and a rope winding device, wherein the rope winding device is used to drive the shooting platform to move in a vertical direction, and the method comprises: Step S1: Acquire an overhead image of the area to be measured; It should be understood that in a three-dimensional modeling task, there may be multiple areas to be measured, and the areas to be measured are divided before the drone collects images for modeling.

[0032] Step S2: Analyze the overhead image to obtain a narrow and long terrain area; Among them, the narrow and long terrain area refers to a narrow and long terrain area with a terrain difference and low terrain in the area to be measured. For example, the area between two taller buildings has a terrain difference between the top of the building and the ground. The area between the buildings is low and is usually a rectangular area, so the area between the two taller buildings can be determined as a narrow and long terrain area.

[0033] Step S3: determining vertical sampling points from the narrow and long terrain area; It should be understood that when a drone takes images required for three-dimensional modeling, it usually only takes images above the area to be measured. For example, when three-dimensionally modeling a building, the drone is always above the building. This is because if the drone flies between buildings, it will be blocked by the buildings and the controlled distance of the drone will be greatly reduced. There may also be obstructions such as trees between the buildings, making it difficult for the drone to fly between the buildings to collect images.

[0034] Step S4: adjusting the initial flight path of the UAV according to the vertical sampling points to obtain an optimized flight path; The optimized flight path is the path passing through each vertical sampling point.

[0035] Step S5: Based on the optimized sampling path, in response to the drone moving to the vertical sampling point, the rope winding device is controlled to drive the shooting gimbal to move in the vertical direction to perform stereoscopic shooting of the narrow and long terrain area to obtain a stereoscopic measurement image.

[0036] It should be understood that since the optimized sampling path must pass through the vertical sampling point, it can be achieved by obtaining the position coordinates of the UAV. Specifically, the position coordinates of the UAV are obtained in real time, and the coordinates of the vertical sampling point are obtained to determine whether the position coordinates of the UAV coincide with the coordinates of the vertical sampling point. If so, it means that the UAV has moved to the vertical sampling point. At this time, a first drive control signal is generated to control the rope winding device to release the rope, so that the rope winding device starts to release the rope, driving the shooting gimbal to move vertically downward. When the shooting is completed and the shooting gimbal needs to be driven vertically upward, a second drive control signal is generated to control the rope winding device to retract the rope, so that the rope winding device starts to retract the rope, driving the shooting gimbal to move vertically upward, thereby realizing the control of the rope winding device to drive the shooting gimbal to move in the vertical direction.

[0037] Reference Figure 2 , Figure 2 A possible method for realizing the movement of a filming platform 2 is provided. A rope winding device 1 and a filming platform 2 equipped with a camera are provided on a drone. The rope winding device 1 may include a driving motor, a reel and a wire rope. A lifting ring 3 is fixedly provided on the filming platform 2. The driving motor is provided on the drone and the output shaft of the driving motor is coaxially connected with the reel. The wire rope is wound around the reel, and one end of the wire rope is fixedly connected with the reel and the other end is fixedly connected with the lifting ring 3. The driving motor rotates forward or reversely in response to a first driving control signal and a second driving control signal to drive the reel to rotate forward or reversely, thereby driving the wire rope to release or retract the rope, thereby realizing the movement of the filming platform 2 in the vertical direction.

[0038] In the above embodiment, a long and narrow terrain area is obtained from the overhead image of the area to be measured, and the vertical sampling points in the long and narrow terrain area are determined. The initial flight path of the UAV is adjusted based on the vertical sampling points to obtain an optimized flight path passing through the vertical sampling points. When the UAV moves to the vertical sampling points, the rope winding device drives the shooting gimbal to move in the vertical direction to obtain the bottom image of the long and narrow terrain area close to the ground, thereby achieving a more comprehensive effect of the UAV shooting images.

[0039] As an implementation manner of step S2, step S2 specifically includes: Step S21: inputting the overhead image into the image segmentation network to generate a number of building areas; Step S22: Obtain the flight altitude of the UAV; Step S23: obtaining the overlapping length of adjacent building areas whose spacing is less than a preset value; Step S24: Obtain a long and narrow terrain area according to the flight altitude and the overlapping length.

[0040] It should be understood that the higher the flight altitude set for the drone, the less clear the images close to the ground will be. When the distance between adjacent building areas is less than the preset value and the overlapping length is too long, it means that the area between adjacent building areas is more seriously blocked, that is, the closer the distance between adjacent building areas, the longer the overlapping length less than the preset value, and the higher the flight altitude of the drone, the more difficult it is to obtain images close to the ground, and this area is a narrow and long terrain area.

[0041] In the above implementation, the overhead image is input into the image segmentation network to generate several building areas, and the flight altitude of the drone is configured according to the height of the buildings in the building areas. When the flight altitude of the drone is too high and there is a distance between adjacent building areas that is less than a preset value and the overlapping length is too long, the corresponding area is a narrow and long terrain area.

[0042] As a further implementation of the method for measuring long and narrow terrain based on oblique photography, the method for measuring long and narrow terrain based on oblique photography further includes a training step of training a preset neural network model to obtain an image segmentation network, and the training step includes: Obtain a training data set, annotate building areas in a plurality of overhead building images included in the training data set, and calibrate building area labels; The overhead building image is input into the preset neural network model, the regional prediction result is output, and the model parameters of the neural network model are iteratively updated according to the building area label and the regional prediction result to obtain the image segmentation network.

[0043] Among them, the preset neural network model can use the FCN model.

[0044] In the above implementation, the building areas in multiple overhead building images in the training data set are annotated, and the overhead building images are input into a preset neural network model, and the area prediction results are output to iteratively update the model parameters of the preset neural network model, so that the obtained image segmentation network has the ability to recognize building areas in overhead images.

[0045] As an implementation manner of step S3, step S3 specifically includes: Obtain the median line of the narrow terrain area; determine the vertical sampling points on the median line according to the preset sampling interval.

[0046] Among them, the distances between each point on the median line and the two sides of the narrow terrain area are equal.

[0047] Specifically, since the narrow and long terrain area is not necessarily a regular image, as a possible implementation method for generating the median line, one of the long sides of the narrow and long terrain area can be selected, and the shortest distance line segments from the points on the long side to the other long side can be obtained at equal intervals, and the midpoint of each shortest distance line segment is used as the median point, and all the median points are fitted to generate the median line. At this time, the vertical sampling points can be determined on the median line according to the preset sampling interval.

[0048] In the above implementation, vertical sampling points are determined on the median line according to a preset sampling interval, so that the vertical sampling points are equidistant from both sides of the narrow terrain area, that is, the vertical sampling points are equidistant from the building areas on both sides, thereby reserving space at the vertical sampling points for the winding rope device to drive the shooting gimbal to move in the vertical direction.

[0049] Reference Figure 3 As an implementation of step S4, step S4 specifically includes: Step S41: Obtain the coordinates of each heading track in the initial flight path.

[0050] In an embodiment, the initial flight path is an S-shaped path with equal intervals, and each straight path in the S-shaped path serves as a heading track. The coordinates of the heading track can be expressed in single-dimensional coordinates. The heading track coordinates can be expressed in different ways, that is, different coordinate systems can be established as references. As an example, the first heading track of the initial flight path can be used as the zero coordinate starting position, and the direction perpendicular to the heading track (that is, the forward direction of the S-shaped path) can be used as the positive axis to establish a single-dimensional coordinate system, and the coordinates of each heading track can be obtained in turn.

[0051] Step S42: Obtain the coordinates of the vertical sampling points.

[0052] It should be understood that the coordinates of the vertical sampling points and the coordinates of each heading track should be referenced to the same coordinate system.

[0053] Step S43: Based on the preset overlap rate threshold and the coordinates of the vertical sampling points, the coordinates of the heading track are adjusted to obtain optimized interval coordinates.

[0054] The preset overlap rate threshold is the lateral overlap rate threshold, and the lateral overlap rate refers to the overlap degree of two pictures taken on adjacent heading tracks.

[0055] The optimized interval coordinates and the coordinates of the heading track should also be generated using the same coordinate system. It should be understood that in the initial flight track, the direction of the heading track has been determined, and the generated optimized interval coordinates are used to adjust the distance between adjacent heading tracks, so the optimized interval coordinates can also use single-dimensional coordinates.

[0056] Step S44: Generate an optimized flight path based on the optimized interval coordinates.

[0057] It should be understood that the difference between the optimized flight path and the initial flight path is that the lateral overlap rate between each heading trajectory in the initial flight path is the same, while the lateral overlap rate of each trajectory in the optimized flight path can be adaptively adjusted locally according to the sampling needs of the vertical sampling points, that is, the lateral overlap rate of each trajectory in the optimized flight path is not a fixed value.

[0058] In the above implementation, since the preset overlap rate threshold is too small, the images collected by the drone may be insufficient. Therefore, based on the preset overlap rate threshold and the coordinates of the vertical sampling points, the coordinates of the heading trajectory are adjusted. On the one hand, it can meet the number requirement of images collected by the drone, and on the other hand, it can make the generated optimized flight path pass through the vertical sampling points.

[0059] Reference Figure 4 As an implementation of step S43, step S43 specifically includes: Step S431: Generate an optimized trajectory that is parallel to the heading trajectory and passes through the vertical sampling points according to the coordinates of the vertical sampling points.

[0060] Reference Figure 5 (a), Figure 5 (a) Schematic diagram of the optimized trajectory parallel to the heading trajectory and passing through the vertical sampling points.

[0061] Step S432: Calculate the lateral overlap rate between the optimized trajectory and two next adjacent heading trajectories according to the coordinates of the optimized trajectory and the coordinates of the heading trajectory; There is a heading track between the next adjacent heading track and the optimized heading.

[0062] It should be noted that, in this embodiment, according to the acquisition order of the images required for three-dimensional modeling collected by the drone, steps S431 to S434 are sequentially executed for each vertical sampling point. The optimized interval coordinates generated after executing one round of steps S431 to S434 are used as the basis for the next execution, that is, the adjacent heading trajectory or the next adjacent heading trajectory of the optimized trajectory in the next execution can be the trajectory obtained by the optimized interval coordinates that have been generated.

[0063] Step S433: comparing the lateral overlap rate with a preset overlap rate threshold, and obtaining a retention result of the heading track adjacent to the optimized track according to the comparison result; The preset overlap rate threshold is a lateral overlap rate that is smaller than the initial flight path.

[0064] Among them, the preset overlap rate threshold is the minimum overlap rate allowed. If the lateral overlap rate is lower than the preset overlap rate threshold, the drone cannot obtain enough images required for three-dimensional modeling at this time. Therefore, no matter how the initial flight path is adjusted, the lateral overlap rate must be higher than the preset overlap rate threshold.

[0065] It should be understood that the optimization trajectory and the heading trajectory are parallel, and there are multiple heading trajectories on both sides of the optimization trajectory. The lateral overlap rate between the optimization trajectory and the two next-adjacent heading trajectories is calculated. If the lateral overlap rate is greater than the preset overlap rate threshold, then at this time, since the optimization trajectory and the next-adjacent heading trajectory can meet the image sampling overlap rate requirement, the adjacent heading trajectory between the optimization trajectory and the next-adjacent heading trajectory may not be retained. Otherwise, the adjacent heading trajectory needs to be retained.

[0066] Step S434: Generate optimized interval coordinates according to the optimized trajectory and the retained results of the heading trajectory adjacent to it.

[0067] The optimized detection coordinates include the coordinates of the optimized trajectory and the coordinates of the retained heading trajectory.

[0068] It should be understood that only the heading track adjacent to the optimized track needs to be determined whether to be retained, and all other heading tracks except the heading track adjacent to the optimized track are retained. It can be seen that in this embodiment, only the local heading track with vertical sampling points is adjusted, and all heading tracks are not adjusted, which reduces the amount of calculation.

[0069] For example, refer to Figure 5 (a), refer to Figure 5 The lateral overlap rate between the optimized trajectory generated in (a) and the next adjacent heading trajectory above it does not meet the preset overlap rate threshold requirement, so the corresponding adjacent heading trajectory needs to be retained. Figure 5 (b), Figure 5 (b) provides the generated optimized flight path, in which the adjacent heading track above the optimized track is retained. Similarly, if the lateral overlap rate between the optimized track and the next adjacent heading track above it meets the requirement of the preset overlap rate threshold, the adjacent heading track below the optimized track can be deleted.

[0070] In the above implementation, an optimized trajectory that is parallel to the heading trajectory and passes through the vertical sampling point is used, and whether to retain the heading trajectory adjacent to the optimized trajectory is determined according to the lateral overlap rate. That is, if the optimized heading and the second adjacent heading trajectory are able to meet the preset overlap rate threshold, the heading trajectory adjacent to the optimized heading may not be retained, which reduces the amount of data to be processed to a certain extent, and the heading trajectory is only adjusted locally where the vertical sampling point exists, without the need to recalculate all the heading trajectories.

[0071] It should be noted that, as a usage scenario of this embodiment, this embodiment is preferably applied to the scene of drone 3D modeling of areas containing buildings such as residential areas or real estates, and because the buildings in the residential areas or real estates are not disorderly, the orientations of the buildings are usually relatively fixed. Figure 5 For example.

[0072] As an implementation of step S5, in response to the drone moving to the vertical sampling point, controlling the rope winding device to drive the shooting gimbal to move in the vertical direction in step S5 specifically includes: Step S51: in response to the drone moving to the vertical sampling point, a stagnation signal is output to control the drone to stop flying; Step S52: According to a preset shooting speed, the rope winding device is controlled to drive the shooting platform to move vertically downward until the shooting platform reaches a preset shooting height; Specifically, the first driving control signal may be a PWM signal, and a duty cycle of the PWM signal is generated according to a preset shooting speed, thereby achieving an effect of controlling the speed at which the shooting gimbal moves downward in the vertical direction.

[0073] The preset shooting height may be based on the height from the ground as a reference. For example, the preset shooting height may be set to 10 m from the ground.

[0074] It should also be understood that while the shooting gimbal moves vertically downward, the camera in the shooting gimbal continues to acquire images of the narrow terrain area close to the ground. When the shooting gimbal reaches the preset shooting height, that is, the sampling at the vertical sampling point is completed, step S53 can be executed immediately.

[0075] Step S53: In response to the shooting platform reaching a preset shooting height, the rope winding device is controlled to drive the shooting platform to move vertically upward according to a preset rope retracting speed.

[0076] In the above implementation manner, the stagnation signal is used to facilitate maintaining the stability of the shooting platform when it moves in the vertical direction and according to the preset shooting speed and the preset rope retracting speed, the shooting platform drives the camera to obtain a stereo measurement image.

[0077] The present application embodiment discloses a narrow and long terrain measurement system based on oblique photography. Figure 1 A narrow and long terrain measurement system based on oblique photography is applied to a drone, wherein the drone is provided with a shooting platform for carrying a camera and a rope winding device, wherein the rope winding device is used to drive the shooting platform to move in a vertical direction, and the system comprises: An image acquisition module, used to acquire an overhead image of the area to be measured; The area division module is used to analyze the overhead image to obtain the narrow and long terrain area; A sampling point generation module is used to determine vertical sampling points from a narrow and long terrain area; The path optimization module is used to adjust the initial flight path of the UAV according to the vertical sampling points to obtain the optimized flight path; The stereo measurement module is used to control the rope winding device to drive the shooting gimbal to move in the vertical direction in response to the UAV moving to the vertical sampling point based on the optimized sampling path, so as to perform stereo shooting measurement of the narrow and long terrain area.

[0078] Optionally, the path optimization module further includes: A first coordinate acquisition unit, used to acquire the coordinates of each heading track in the initial flight path; A second coordinate acquisition unit, used to acquire the coordinates of the vertical sampling point; An optimized coordinate generation unit, used to adjust the coordinates of the heading track based on a preset overlap rate threshold and the coordinates of the vertical sampling points to obtain optimized interval coordinates; The optimized path generation unit is used to generate an optimized flight path according to the optimized interval coordinates.

[0079] The narrow and long terrain measurement system based on oblique photography provided in the present application can realize the above-mentioned narrow and long terrain measurement method based on oblique photography, and the specific working process of the narrow and long terrain measurement system based on oblique photography can refer to the corresponding process in the above-mentioned method embodiment.

[0080] It should be noted that in the above embodiments, the description of each embodiment has different emphases, and for the parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] Based on the same technical concept, the present invention also discloses an unmanned aerial vehicle, which includes a rope winding device, a shooting gimbal equipped with a camera, and a narrow and long terrain measurement system based on oblique photography as any one of the above items.

[0082] The present invention also discloses a computer-readable storage medium, which includes a computer program that can be loaded by a processor and executed as in any of the above methods.

[0083] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0084] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0085] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A method for measuring narrow and long terrain based on oblique photography, characterized in that: Applied to a drone, the drone is provided with a shooting gimbal for carrying a camera and a rope winding device, the rope winding device is used to drive the shooting gimbal to move in a vertical direction, the method comprises: Acquire an overhead image of the area to be measured; Analyze the overhead images to obtain narrow and long terrain areas; Vertical sampling points were identified from narrow and long terrain areas; According to the vertical sampling points, the initial flight path of the UAV is adjusted to obtain the optimized flight path; Based on the optimized sampling path, in response to the UAV moving to the vertical sampling point, the rope winding device is controlled to drive the shooting gimbal to move in the vertical direction to perform stereoscopic shooting of the narrow and long terrain area and obtain a stereoscopic measurement image.

2. The method according to claim 1, characterized in that The analysis of the overhead image to obtain the narrow and long terrain area specifically includes: Input the overhead image into the image segmentation network to generate several building areas; Get the flight altitude of the drone; Get the overlapping length of adjacent building areas whose spacing is less than a preset value; According to the flight altitude and the overlapping length, a long and narrow terrain area is obtained.

3. The method according to claim 2, characterized in that The method further comprises a training step of training a preset neural network model to obtain an image segmentation network, wherein the training step comprises: Obtain a training data set, annotate building areas in a plurality of overhead building images included in the training data set, and calibrate building area labels; The overhead building image is input into a preset neural network model, the regional prediction result is output, and the model parameters of the neural network model are iteratively updated according to the building area label and the regional prediction result to obtain the image segmentation network.

4. The method according to claim 2, characterized in that: Determining vertical sampling points from the narrow and long terrain area specifically includes: Obtaining a median line of the narrow and long terrain area; the distances between each point on the median line and both sides of the narrow and long terrain area are equal; According to the preset sampling interval, the vertical sampling points are determined on the median line.

5. The method according to claim 1, characterized in that: The initial flight path of the UAV is adjusted according to the vertical sampling points to obtain an optimized flight path, specifically including: Get the coordinates of each heading track in the initial flight path; Get the coordinates of the vertical sampling points; Based on the preset overlap rate threshold and the coordinates of the vertical sampling points, the coordinates of the heading track are adjusted to obtain the optimized interval coordinates; Generate an optimized flight path based on the optimized interval coordinates.

6. The method according to claim 5, characterized in that The coordinates of the heading track are adjusted based on the preset overlap rate threshold and the coordinates of the vertical sampling points to obtain the optimized interval coordinates, specifically including: According to the coordinates of the vertical sampling points, an optimized trajectory parallel to the heading trajectory and passing through the vertical sampling points is generated; According to the coordinates of the optimized track and the coordinates of the heading track, the lateral overlap rates of the optimized track and two sub-adjacent heading tracks are calculated respectively; the sub-adjacent heading track and the optimized heading are separated by one heading track; The lateral overlap rate is compared with a preset overlap rate threshold, and a retention result of the heading track adjacent to the optimized track is obtained according to the comparison result; The optimized interval coordinates are generated according to the optimized trajectory and the retained results of the heading trajectory adjacent to it.

7. The method according to claim 1, characterized in that In response to the drone moving to the vertical sampling point, controlling the rope winding device to drive the shooting gimbal to move in the vertical direction specifically includes: In response to the UAV moving to the vertical sampling point, a stop signal is output to control the UAV to stop flying; According to the preset shooting speed, the rope winding device is controlled to drive the shooting platform to move vertically downward until the shooting platform reaches the preset shooting height; In response to the shooting platform reaching a preset shooting height, the rope winding device is controlled to drive the shooting platform to move vertically upward according to a preset rope retracting speed.

8. A narrow and long terrain measurement system based on oblique photography, characterized in that: Applied to a drone, the drone is provided with a shooting gimbal for carrying a camera and a rope winding device, the rope winding device is used to drive the shooting gimbal to move in a vertical direction, the system comprises: An image acquisition module, used to acquire an overhead image of the area to be measured; The area division module is used to analyze the overhead image to obtain narrow and long terrain areas; A sampling point generation module is used to determine vertical sampling points from a narrow and long terrain area; The path optimization module is used to adjust the initial flight path of the UAV according to the vertical sampling points to obtain the optimized flight path; The stereo measurement module is used to control the rope winding device to drive the shooting gimbal to move in the vertical direction in response to the UAV moving to the vertical sampling point based on the optimized sampling path, so as to perform stereo shooting measurement of the narrow and long terrain area.

9. The system according to claim 8, characterized in that The path optimization module also includes: A first coordinate acquisition unit, used to acquire the coordinates of each heading track in the initial flight path; A second coordinate acquisition unit, used to acquire the coordinates of the vertical sampling point; An optimized coordinate generation unit, used to adjust the coordinates of the heading track based on a preset overlap rate threshold and the coordinates of the vertical sampling points to obtain optimized interval coordinates; The optimized path generation unit is used to generate an optimized flight path according to the optimized interval coordinates.

10. A drone, characterized in that: The invention comprises a rope winding device, a shooting gimbal equipped with a camera, and a narrow and long terrain measurement system based on oblique photography as described in any one of claims 8 to 9.