WO2022027596A1 - Control method and device for mobile platform, and computer readable storage medium - Google Patents

Control method and device for mobile platform, and computer readable storage medium Download PDF

Info

Publication number
WO2022027596A1
WO2022027596A1 PCT/CN2020/107825 CN2020107825W WO2022027596A1 WO 2022027596 A1 WO2022027596 A1 WO 2022027596A1 CN 2020107825 W CN2020107825 W CN 2020107825W WO 2022027596 A1 WO2022027596 A1 WO 2022027596A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel area
movable platform
obstacle
posture
loss function
Prior art date
Application number
PCT/CN2020/107825
Other languages
French (fr)
Chinese (zh)
Inventor
许中研
钱杰
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/107825 priority Critical patent/WO2022027596A1/en
Priority to CN202080035658.XA priority patent/CN113906360A/en
Publication of WO2022027596A1 publication Critical patent/WO2022027596A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw
    • G05D1/0808Control of attitude, i.e. control of roll, pitch, or yaw specially adapted for aircraft
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/10Simultaneous control of position or course in three dimensions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft

Definitions

  • the present disclosure relates to the field, and in particular, to a control method, an apparatus, a computer-readable storage medium and a movable platform for a movable platform.
  • the target tracking function usually involves the path planning of the movable platform and the attitude adjustment of the camera.
  • the movable platform can plan a moving path in real time, and move along the moving path to follow the target.
  • the photographing device carried by the movable platform photographs the target according to preset rules, so that the tracked target is presented in the image of the photographing device.
  • the present disclosure provides a control method for a movable platform, the movable platform includes a photographing device, and the control method includes:
  • a path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
  • the present disclosure also provides a control method for a movable platform, the movable platform includes a photographing device, and the control method includes:
  • the posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  • the present disclosure also provides a control method for a movable platform, the control method comprising:
  • a moving path of the movable platform around the obstacle and the no-fly zone is determined.
  • the present disclosure also provides a control device for a movable platform, the movable platform includes a photographing device, and the control device includes:
  • a path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
  • the present disclosure also provides a control device for a movable platform, the movable platform includes a photographing device, and the control device includes:
  • the posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  • the present disclosure also provides a control device for a movable platform, the control device comprising:
  • a moving path of the movable platform around the obstacle and the no-fly zone is determined.
  • the present disclosure also provides a computer-readable storage medium storing executable instructions, which, when executed by one or more processors, can cause the one or more processors to execute the above control method .
  • the present disclosure also provides a movable platform, comprising: a photographing device, and a movable carrier; the movable carrier includes: the above-mentioned control device.
  • FIG. 1 is a flowchart of a control method for a movable platform provided by an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of an application scenario of an unmanned aerial vehicle provided by an embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of determining a movement path according to position information of a shooting target and position information of an obstacle according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of determining a movement path according to a distance between a waypoint and an obstacle according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of determining a movement path according to path smoothness according to an embodiment of the present disclosure.
  • FIG. 6 shows a first posture adjustment strategy provided by an embodiment of the present disclosure when the first pixel area and the second pixel area do not overlap.
  • FIG. 7 shows an example of a second posture adjustment strategy in which the first pixel area is located in the second pixel area provided by an embodiment of the present disclosure.
  • FIG. 8 shows another example of a second posture adjustment strategy in which the first pixel area is located in the second pixel area provided by an embodiment of the present disclosure.
  • FIG. 9 shows a third attitude adjustment strategy for a linear second pixel region provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of determining a movement path according to location information of a shooting target and location information of a no-fly zone provided by an embodiment of the present disclosure.
  • FIG. 11 is a flowchart of a control method of a movable platform according to another embodiment of the present disclosure.
  • FIG. 12 is a flowchart of a control method of a movable platform according to still another embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram of determining a movement path according to the position information of an obstacle and the position information of a no-fly zone according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a control device of a movable platform provided by an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a movable platform provided by an embodiment of the present disclosure.
  • the movable platform can move along the moving path and use the photographing device to track the target during the motion
  • only the environment in which the movable platform is located is usually considered.
  • the location of the obstacle basically does not consider other factors that may affect the shooting effect and safety, which will affect the shooting effect of target tracking and the safety of the movable platform.
  • the photographing device usually only pays attention to the tracked target, and the entire composition process lacks attention to the environment where the target is located and the target objects in the environment, which will also affect the shooting effect of target tracking.
  • the present disclosure provides a control method, device, computer-readable storage medium and movable platform for a movable platform, by acquiring the position information of the photographing target of the photographing device and the position information of obstacles in the environment where the movable platform is located , and determine the moving path of the movable platform around the obstacle according to the position information of the shooting target and the position information of the obstacle at least in part, so as to improve the shooting effect of target tracking.
  • An embodiment of the present disclosure provides a control method for a movable platform.
  • the movable platform includes a photographing device.
  • the control method includes:
  • S101 Acquire position information of a photographing target of the photographing device
  • S103 Determine a movement path of the movable platform around the obstacle based at least in part on the location information of the photographed target and the location information of the obstacle.
  • the control method of this embodiment can be applied to various movable platforms.
  • the movable platform may be, for example, an aerial movable platform.
  • Aerial movable platforms may include, but are not limited to, unmanned aerial vehicles, fixed-wing aircraft, rotary-wing aircraft, and the like.
  • the movable platform can also be, for example, a ground movable platform.
  • Ground movable platforms may include, but are not limited to, unmanned vehicles, robots, manned vehicles, and the like.
  • the movable platform can also be, for example, a handheld device or a mobile device.
  • Handheld setups may include, but are not limited to, handheld gimbals, PTZ cameras; mobile devices may include, but are not limited to: remote controls, smart phones/mobile phones, tablets, laptops, desktops, media content players, video game stations/ systems, virtual reality systems, augmented reality systems, wearable devices, etc.
  • the control method of this embodiment is described below by taking a movable platform such as an unmanned aerial vehicle as an example.
  • the drone 100 includes: a drone body 110 , a gimbal 140 and a photographing device 130 .
  • the drone body 110 may include the drone body 105 , and one or more propulsion units 150 .
  • Propulsion unit 150 may be configured to generate lift for drone 100 .
  • Propulsion unit 150 may include rotors.
  • the drone 100 can fly in three-dimensional space, and can rotate along at least one of a pitch axis, a yaw axis, and a roll axis.
  • Unmanned aerial vehicle 110 may include one or more sensors. These sensors include, for example, image sensors, distance sensors, height sensors, position sensors, and the like. As an example of an image sensor, the drone 100 may include one or more cameras 130 . In this embodiment, the photographing device 130 can be a visible light camera, an infrared camera, an ultraviolet camera, etc., and the photographing device 130 can photograph the target 160 within its field of view 170 .
  • the photographing device 130 is supported by the unmanned aerial vehicle 110 .
  • the camera 130 may be directly supported by the UAV 110 , or may be supported by the UAV 110 via the vehicle 140 .
  • the photographing device 130 may be installed on the carrier 140 .
  • the vehicle 140 may allow the camera 130 to rotate about at least one of a pitch axis, a yaw axis, and a roll axis to adjust the orientation of the camera 130 .
  • Vehicle 140 may include a single-axis gimbal, a dual-axis gimbal, or a three-axis gimbal.
  • the drone 100 can be controlled by the remote controller 120 .
  • the remote controller 120 may communicate with at least one of the drone body 110 , the gimbal 140 , and the photographing device 130 .
  • the remote control 120 includes a display.
  • the display is used to display images captured by the capturing device 130 .
  • the remote control 120 also includes an input device. An input device may be used to receive input from a user.
  • the position information of the photographing target of the photographing device is acquired through S101 .
  • the shooting device can shoot various shooting targets in the surrounding environment.
  • the shooting target not only includes the object that the drone wants to track.
  • the shooting target may include any object in the surrounding environment.
  • the object that the drone wants to track may be referred to as a following target in this embodiment, and the following target usually refers to a movable object.
  • following targets may include: people, animals, vehicles (air, ground, surface, underwater), and the like.
  • the person may be the user operating the drone itself, or someone other than the user; the vehicle may include: a motor vehicle, a non-motor vehicle, an unmanned aerial vehicle, a manned aerial vehicle, a watercraft, and the like.
  • the shooting target may also include a background target
  • the background target may include any object other than the following target.
  • Background objects often reflect the scene in which the following objects are located.
  • the background objects may include mountains, rivers, lakes, forests, seas, beaches, grasslands, various buildings, horizons, etc., and may also include sky, sun, moon, clouds, morning glow, sunset glow, and the like.
  • the captured image can be sent to the remote control through the communication link between the remote control and the drone body, the gimbal or the shooting device, and the remote control on the monitor to display the captured image.
  • the photographing apparatus may send the photographed image to the remote controller in real time for the user to view, or may also store the photographed image locally in the photographing apparatus, and then send the image to the remote control for display.
  • the user may manually select a follow target in the image.
  • the user may select one or more objects displayed in the image as the following target through the input device.
  • the input device may be a button, a joystick, or a knob of the remote control; when the display of the remote control is a touch screen, the user can also select a follow target through the display.
  • the UAV will track the following target during the next flight.
  • the user may not need to manually select the follow target, but the follow target may be automatically selected by one of the drone, gimbal, camera, and remote control.
  • the remote controller may select one or more objects in the image as the following target according to a preset rule.
  • the preset rules can be: color, size, shape, etc. That is, when an object in the image conforms to a preset color, size, or shape, the object is identified as a following target.
  • a user confirmation step may also be added.
  • the following target automatically selected by the remote control is used as an alternative target and displayed on the display, and the user performs a confirmation operation through the input device. Only after the user confirms a certain/some candidate target, the candidate target will be used as a follow target.
  • the position information of the shooting target can be obtained by various means, and the position information can be the position coordinates relative to a certain coordinate system.
  • the location information of the shooting target can be obtained through the three-dimensional reconstruction model.
  • the three-dimensional reconstruction model can reflect the correspondence between the pixels in the image of the photographing device and the spatial points corresponding to the pixels.
  • the 3D reconstructed model can look like this:
  • (u, v) represents the coordinates of the pixels in the image in the pixel coordinate system
  • (X W , Y W , Z W ) represents the spatial point corresponding to the pixel (u, v) in the UAV coordinate system.
  • Coordinates; Z C represents the distance between the spatial point corresponding to the pixel (u, v) and the optical center of the camera;
  • A represents the internal parameter matrix of the camera;
  • [RT] represents the external parameter matrix of the camera.
  • the pixels corresponding to the following target in the image captured by the photographing device can be substituted into the above-mentioned three-dimensional reconstruction model, so as to obtain the coordinates of the following target in the UAV coordinate system.
  • Z C can be obtained in various ways.
  • a drone or a photographing device can be installed with a distance sensor, and the distance between the following target and the optical center of the photographing device can be measured by the distance sensor; A and [RT] can be obtained by calibrated.
  • the position information obtained above is the coordinates relative to the coordinate system of the UAV, of course, this embodiment is not limited to this.
  • the UAV is usually equipped with a position sensor and an attitude sensor. Through the position sensor and the attitude sensor, the transformation relationship between the UAV coordinate system and the geodetic coordinate system can be obtained, so that the coordinates of the shooting target in the geodetic coordinate system can be obtained.
  • the position information of the background target can be obtained by means similar to the following target.
  • the drone, the camera or the remote control may store map data, and use the map data to determine the location information of the shooting target.
  • the map data records geographic information of various areas, and these areas include at least the activity area of the drone.
  • the geographic information may include: the type, name, location coordinates, etc. of each object in the activity area.
  • the position information of obstacles in the environment where the movable platform is located is obtained through S102.
  • the UAV can detect obstacles through image sensors, radar, etc., or directly obtain obstacles and their location information through remote devices (such as cloud servers).
  • remote devices such as cloud servers.
  • Various objects in the surrounding environment can be detected, and one of the drone, gimbal, camera and remote control will recognize the object.
  • the recognition result shows that the object is an obstacle, the object is marked as an obstacle.
  • This embodiment does not limit the method for identifying obstacles, and various image recognition methods can be used to identify obstacles, such as but not limited to methods based on feature detection, feature matching, and methods based on artificial neural networks.
  • the process of acquiring the location information of the obstacle may be basically similar to the process of acquiring the location information of the photographing target in S101. That is, the position information of the obstacle can be obtained through the three-dimensional reconstruction model, and the position information of the obstacle can also be obtained through the query of the map data.
  • the obstacle may be, for example, an object with obvious features, such as a utility pole, street light, outdoor sign, outdoor billboard, and the like.
  • the obstacle may not be significantly different from the background target, or some objects may be the background target in some cases and the obstacle in others, which may depend more on follow the position of one of the target, the background target, and the obstacle in the image, or at least the relative positions of both in the image.
  • trees for example, if there are a lot of trees in the surrounding environment, it may indicate that the drone is located in a forest environment, and the trees can be considered as background objects at this time. Trees can be considered obstacles if only one or a few trees appear in the image and are in close proximity to the drone.
  • buildings if some buildings are farther away from the drone or farther away from the drone than the following target, these buildings can be considered as background targets.
  • the moving path of the UAV around the obstacle can be determined through S103.
  • Determining the movement path of the UAV may include: establishing a loss function based at least in part on the position information of the photographed target and the position information of the obstacle, and minimizing the loss function to determine the movement path of the UAV around the obstacle.
  • the moving path of the UAV can be generated in real time during the target tracking process, and the moving path is usually composed of a series of waypoints, and the UAV flies along the series of waypoints.
  • the loss function is used to determine the cost of some factors in the moving path, and the quantified cost value can be obtained.
  • the loss function may include a first loss function as shown below:
  • Cost cost_1(target, obstacle)
  • Cost represents the loss function
  • cost_1 represents the first loss function
  • target represents the location information of the shooting target
  • obstacle represents the location information of the obstacle.
  • the connection line between the waypoint and the shooting target does not pass through the area where the obstacle is located, it means that the obstacle does not appear between the shooting target and the shooting device, so that the shooting target will not be blocked by the obstacle in the captured image; otherwise, If the connection line between the waypoint and the photographing target passes through the area where the obstacle is located, it means that the obstacle appears between the photographing target and the photographing device, so that the photographing target will be blocked by the obstacle in the photographed image. That is, the principle of the first loss function is to determine whether there are obstacles between the waypoint and the shooting target.
  • the cost value of the first loss function is smaller, so try to choose this path. That is to say, when the UAV flies along the moving path determined according to the first loss function, the photographed target in the photographed image will not be blocked by obstacles as much as possible or even completely. As shown in Figure 3, in the dotted line path on the left, a considerable part of the connection between the waypoints and the background target passes through obstacles, while in the solid line path on the right, there is almost no connection with the background target. The path point where the line passes through the obstacle, so the first loss function value of the solid line path is smaller.
  • the first loss function is a loss function that reflects the shooting effect.
  • Figure 3 illustrates the background target as an example, and the above process is similar for the following target. That is, the present application can also follow the target in the photographed image without being blocked by obstacles when the drone is flying, thereby ensuring the photographing effect.
  • both the following target and the background target appear in the image, in some examples, only the cost value of the following target or the background target may be considered to determine the movement path. In other examples, both the cost of following the target and the background target need to be considered.
  • the following target and the background target can be regarded as the same type of target. If the connection between the target and the target passes through the obstacles, the more path points, the greater the cost value of the first loss function, so try not to choose this path. If the connection between the target and the target passes through the obstacles, the fewer path points, the smaller the cost value of the first loss function, and the path is selected as much as possible.
  • the loss function may further include a second loss function as follows:
  • cost_2 represents the second loss function
  • distance represents the distance between the path point and the obstacle in the moving path. The larger the distance between the waypoint and the obstacle, the smaller the value of the second loss function.
  • the second loss function is a loss function reflecting the safety of the path, and the safety of the path is used to characterize whether the distance between the path point and the obstacle satisfies the safety index.
  • the distance between the drone and the obstacle cannot be too close, so as to ensure that the drone does not collide with the obstacle and improve the flight safety of the drone.
  • the second loss function if the distance between the path point in a path and the obstacle is greater, the path is more likely to be selected as the moving path of the UAV, and vice versa, the less likely it is to be selected as the UAV's moving path. movement path.
  • the distance between the path point of the solid line path and the obstacle is closer. If the UAV flies according to the solid line path, the UAV may collide with the obstacle. Compared with the solid line path, the distance between the path point of the dotted line path and the obstacle is farther. If the UAV flies according to the dotted line path, it is basically impossible for the UAV to collide with the obstacle. Without considering other factors, or the influence of other factors is basically the same, the dashed line path can be used as the movement path of the UAV.
  • the loss function further includes a third loss function as follows:
  • cost_3 represents the third loss function
  • curv represents the curvature of the moving path and/or the rate of change of the curvature, and the smaller the rate of change of the curvature and/or the curvature, the smaller the value of the third loss function.
  • the third loss function is a loss function reflecting the smoothness of the path, and the smoothness of the path is used to characterize the degree of bending of the path, and the degree of bending can usually be represented by the curvature and/or the rate of change of the curvature of the path. If the path is less curved, the path smoothness is better, and if the path is more curved, the path smoothness is poorer. As shown in Fig. 5, the dashed path has more bends than the solid line path, so the smoothness of the solid line path is better than that of the dashed line path. Without considering other factors, or the influence of other factors is basically the same, the solid line path is more likely to be used as the movement path of the UAV. Through the third loss function, the planned movement path can be made smoother, and the bending in the path can be minimized. The flight mileage of the small UAV and the drastic degree of the UAV attitude change save the UAV's flight time and energy consumption.
  • the loss function further includes a fourth loss function as follows:
  • cost_4 represents the fourth loss function
  • range represents the distance between the path point on the moving path and the following target, and the closer the distance is to the preset tracking distance, the smaller the value of the fourth loss function.
  • the fourth loss function is a loss function that reflects the distance between the photographing device and the following target.
  • the distance between the photographing device and the following target is usually determined. With certain constraints, this distance generally cannot be too close or too far, and it should be within a preset tracking distance range, otherwise the size and/or position of the pixel area corresponding to the tracking target will be affected.
  • the preset tracking distance may be set by the user through the remote controller, or automatically set by at least one of the drone, the photographing device and the remote controller. Through the fourth loss function, the distance between the planned path point and the following target is as close as possible to the preset tracking distance, so as to ensure the shooting effect of target tracking.
  • the first, second, third and fourth loss functions are described above, but it does not mean that the loss function can only include one of these loss functions.
  • the loss function may comprise at least one of the first, second, third and fourth loss functions.
  • the loss function can look like this:
  • Cost a*cost_1(target, obstacle)+b*cost_2(distance)+c*cost_3(curv)+d*cost_4(range)
  • a, b, c, d represent the weighting coefficients of the first, second, third and fourth loss functions, respectively.
  • the four weighting coefficients a, b, c, and d can be set separately. The higher the weighting coefficient of the loss function, the greater the proportion of the factor corresponding to the loss function when determining the moving path.
  • the proportion of factors corresponding to the loss function is lighter.
  • the user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient.
  • the weighting coefficient a of the first loss function can be set larger, and the other weighting coefficients can be set smaller. In this way, when planning the moving path, we will first try to ensure that the shooting target is not blocked by obstacles, and then consider several other factors on this basis.
  • the loss function may also be a weighted sum of the first loss function and one or both of the second, third and fourth loss functions.
  • the loss function can be a weighted sum of the first and second four loss functions.
  • the control method of this embodiment takes the relationship between the shooting target and the obstacle into consideration when determining the moving path, establishes a loss function based on the factor of whether the shooting target will be blocked by the obstacle, and plans the corresponding Therefore, when the UAV tracks the target along the moving path, the shooting target can be prevented from being blocked by obstacles as much as possible or even completely, thereby improving the shooting effect.
  • other factors such as the safety and smoothness of the path, and the distance between the path point and the following target can also be considered when determining the moving path, so that the planned path can guarantee a certain good effect in all aspects.
  • the control method of this embodiment further includes: determining the environment type of the environment where the drone is located, and determining the movement parameters of the drone according to the environment type.
  • the following target Since the following target is usually in a moving state, it may appear in various scenes, or switch between various scenes.
  • the environment in which the drone is located will also change accordingly. Background objects in the scene can reflect the type of environment the drone is in.
  • the environment types may include obstacle-dense types and obstacle-sparse types.
  • the "dense” and “sparse” are used to characterize the density of obstacles in the environment, and the degree of density will affect the flight state of the UAV to a certain extent. That is to say, in an environment with sparse obstacles and in an environment with dense obstacles, the UAV should adopt different flight states to ensure the shooting effect and the safety of the UAV.
  • the environment type of the environment in which the drone is located is determined according to the background target in the image captured by the photographing device.
  • background objects may include mountains, rivers, lakes, forests, seas, beaches, grasslands, various buildings, horizons, etc., and may also include sky, sun, moon, clouds, morning glow, sunset glow, and the like.
  • At least one of the type, position, number, size, and relative positional relationship of the background target can determine the type of environment in which the drone is located. For example, if the background targets are lakes, seas, beaches, grasslands, and the sky, it can be considered that the environment in which the drone is located is sparse with obstacles. If the background target is a forest, it is necessary to further judge factors such as the number and size of trees.
  • the UAV When the number of trees in the image is limited and the size is large, it can be considered that the UAV is in the forest and the environment is dense with obstacles; when the number of trees in the image is large and the size is small, it can be considered that the UAV is located Outside the forest, the environment is of sparse obstacle type. For buildings, the way of judging the type of environment is similar to the case of forests.
  • the environment type of the environment where the drone is located is determined according to the detection data of the detection device carried by the drone.
  • the detection device can be a variety of sensors carried by the UAV, and these sensors can perceive the external environment and obtain detection data. Sensors such as, but not limited to, image sensors, distance sensors, elevation sensors, and the like. By analyzing the detection data of the sensor, it can be determined whether the type of the environment is a dense type of obstacles or a type of sparse obstacles.
  • the flight state of the UAV is usually characterized by movement parameters.
  • the movement parameter of the UAV includes the speed of the UAV. If the environment type is a dense obstacle type, the speed of the UAV is determined to be the first speed; if the environment type is a sparse obstacle type, it is determined The speed of the drone is the second speed, and the second speed is greater than the first speed. That is to say, when the drone is in an environment with dense obstacles, such as forests and buildings, the flying speed of the drone should be small, so as to avoid collision with obstacles and ensure that no one The safety of the camera is ensured, and the stability of the shooting device is ensured, and the shooting effect is improved.
  • the flying speed of the UAV can be larger, which provides greater flexibility for the UAV to fly.
  • the movement parameters of the UAV also include the angular velocity of the photographing device. If the environment type is a dense obstacle type, the angular velocity of the photographing device is determined to be the first angular velocity; if the environment type is a sparse obstacle type, it is determined The angular velocity of the photographing device is the second angular velocity, and the second angular velocity is greater than the first angular velocity.
  • the angular velocity of the photographing device may include an angular velocity around at least one of a pan axis, a roll axis, and a pitch axis, and may reflect the attitude change rate of the photographing device.
  • the angular velocity of the shooting device can be small, which can ensure the stability of the shooting device and improve the shooting effect.
  • the angular velocity of the photographing device can be larger to provide greater flexibility for the flight of the UAV.
  • the control method of this embodiment further includes: adjusting the posture of the photographing device according to the first pixel area and/or the second pixel area.
  • the first pixel area is the pixel area corresponding to the following target in the image captured by the photographing device; the second pixel area is the pixel area corresponding to the background target in the image captured by the photographing device.
  • the photographing apparatus of this embodiment not only considers the position of the following target, but also takes the position of the background target into consideration.
  • the posture of the photographing device may be determined according to the position of the pixel area corresponding to the following target, the position of the pixel area corresponding to the background target, or the relative positions of the pixel areas corresponding to the following target and the background target. In some cases, the above process may be commonly referred to as composition.
  • the posture of the photographing device may be adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  • the relative positional relationship may refer to the distance between the first pixel area and the second pixel area, the pixel coordinate range of the two, the size of the two, and the like. If the relative positional relationship is the first positional relationship, the posture of the photographing device is adjusted based on the first posture adjustment strategy; if the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on the second posture adjustment strategy; the second posture adjustment The strategy is different from the first posture adjustment strategy.
  • the relative positional relationship may include: whether the first pixel area and the second pixel area overlap.
  • the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area.
  • the attitude adjustment amount of the camera can be calculated by the following formula:
  • pitch represents the pitch angle
  • yaw represents the heading angle
  • Error() represents the attitude adjustment amount of the shooting device
  • x(target), y(target) respectively represent the position coordinates of the following target in the predetermined coordinate system
  • x(background), y(background) respectively represents the position coordinates of the background target in the same predetermined coordinate system
  • a and b are the weighting coefficients, which indicate the weight of keeping the following target and the background target at the center of the screen, and the center of the calculated image is located between the background target and the following target.
  • the weighting coefficient represents the proportion of the position of the following target and the background target.
  • the predetermined coordinate system may be a pixel coordinate system or an image coordinate system.
  • the user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient.
  • the weighting coefficient a may be set larger than the weighting coefficient b.
  • the weighting coefficient b may be set larger than the weighting coefficient a.
  • the image center is located between the first pixel area and the second pixel area, but the embodiment is not limited thereto.
  • Other designated positions of the image may also be located between the first pixel area and the second pixel area.
  • the other designated positions may be positions manually set by the user through the remote controller, or automatically set by at least one of the drone, the camera, and the remote controller.
  • the second posture adjustment strategy may include: positioning the first pixel area at a designated position in the image.
  • the second posture adjustment strategy may include: making the distance between the edge pixels of the second pixel area and the edge of the image smaller than a preset distance threshold.
  • the attitude adjustment amount of the photographing device can be calculated by the following formula:
  • the camera rotates the attitude adjustment amount obtained by the above formula in the heading and pitch directions respectively, and the first pixel area corresponding to the following target can be located at the center of the image.
  • the photographing device may have photographed part of the edge of the background object, and at this time, the second pixel area does not occupy the entire image.
  • the distance between the edge pixels of the second pixel area and the edge of the image can be smaller than the preset distance threshold, that is, try to make more background targets appear. in the image.
  • the attitude adjustment amount of the camera can be calculated by the following formula:
  • h and w represent the height and width of the image, respectively, and the meanings of the remaining symbols are shown in formulas (1) and (2).
  • the background object does not occupy the entire image.
  • the attitude adjustment amount is calculated by the above formula, so that while the first pixel area corresponding to the following target is located in the image, the distance between the edge pixels of the second pixel area corresponding to the background target and the edge of the image is smaller than the preset distance threshold .
  • the preset distance threshold may be manually set and adjusted by a user through a remote control, or automatically set or adjusted by at least one of the drone, the photographing device and the remote control.
  • first positional relationship and the second positional relationship as well as the corresponding first attitude adjustment strategy and the second attitude adjustment strategy are described above, this is only an exemplary illustration, and the embodiment is not limited thereto.
  • the relative positional relationship between the first pixel area and the second pixel area can be various, and corresponding to different attitude adjustment strategies.
  • the posture of the photographing device may be adjusted according to the shape of the second pixel area. If the shape of the second pixel area is of the first type, the posture of the photographing device is adjusted based on the third posture adjustment strategy; if the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted based on the fourth posture adjustment strategy, The fourth attitude adjustment strategy is different from the third attitude adjustment strategy.
  • the first type is a line type
  • the third posture adjustment strategy includes: passing the second pixel area through a designated position in the image, and the first pixel area coincides with the designated position in at least one direction of the image.
  • the corresponding second pixel area is a straight line or a curve.
  • horizon can usually be the boundary between the sea, grassland, and desert and the sky.
  • making the second pixel area pass through the designated position in the image means the camera rotates the pitch angle adjustment amount in the direction of the pitch axis, so that the horizon passes through the center of the image; the first pixel The area coincides with the designated position in at least one direction of the image means: the camera rotates the heading angle adjustment amount in the direction of the heading axis, so that the center of the following target coincides with the center of the image in the heading direction.
  • the second pixel area is a curve
  • the midpoint of the curve along the horizontal direction of the image passes through the center of the image.
  • the horizon is located at the center of the vertical direction of the image
  • the following target is located at the center of the horizontal direction of the image
  • the following target is presented in front of the horizon and the backgrounds on both sides, which conforms to aesthetic habits and improves the shooting effect of the shooting device.
  • the second type is a face shape
  • the fourth posture adjustment strategy includes: if the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located at the first pixel between the area and the second pixel area; if the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the second pixel area The distance between the edge pixel and the edge of the image is less than the preset distance threshold.
  • the attitude adjustment method can be determined according to whether the first pixel area and the second pixel area overlap. In some examples, when the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located between the first pixel area and the second pixel area is the same as the aforementioned method according to the first pixel area.
  • the relative positional relationship with the second pixel area is similar in that there is no overlap.
  • the first pixel area when the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the edge pixels of the second pixel area and the edge of the image The distance between them is smaller than the preset distance threshold, which is similar to the aforementioned manner in which the first pixel area is located in the second pixel area according to the relative positional relationship between the first pixel area and the second pixel area.
  • the pose of the camera may also be adjusted according to the type of background object. If the type of the background target is the first background type, the posture of the photographing device is adjusted based on the fifth posture adjustment strategy; if the type of the background target is the second background type, the posture of the photographing device is adjusted based on the sixth posture adjustment strategy.
  • the attitude adjustment strategy is different from the fifth attitude adjustment strategy.
  • the first background type may be a surface type
  • the fifth posture adjustment strategy may include: the first pixel area is located in the upper half area of the image width direction, and the second pixel area is located in the lower half area in the image width direction; the second background type may be
  • the sixth attitude adjustment strategy includes: making the first pixel area located in the lower half area in the width direction of the image, and the second pixel area in the upper half area in the width direction of the image.
  • the surface types may include: mountains, rivers, lakes, forests, seas, beaches, grasslands, buildings and other background objects rooted in the ground, and the non-surface types may include: sky, sun, moon, clouds and other background targets.
  • the first background type is a surface type
  • the following target may be located above the background target in some cases.
  • the background targets are grasslands, seas or lakes, and birds or drones are used as the following targets, these following targets usually move over these background targets, at this time, the first pixel area can be located in the width direction of the image.
  • Half area, the second pixel area is located in the lower half area in the width direction of the image, which is more in line with the user's observation habits and is conducive to the improvement of the shooting effect.
  • the present application can flexibly determine the positions of the following target and the background target in the image by adjusting the weighting coefficient, which brings more flexibility and convenience to the composition of the photographing device.
  • the above describes the process of determining the moving path of the movable platform around the obstacle according to the position information of the shooting target and the position information of the obstacle.
  • the obstacles mentioned therein may be utility poles, street lights, outdoor signs, outdoor billboards, and background targets in some cases. Such obstacles can be considered as obstacles in the usual sense, or a solid obstacle. However, in some cases, it may not be enough to only consider such obstacles in the process of determining the moving path, which may affect the target tracking effect of the UAV to a certain extent, especially the flight safety and shooting of the UAV. device stability.
  • the no-fly zone in the environment where the UAV is located can also be used as an obstacle, and according to the position information of the shooting target and the position information of the no-fly zone, it is determined that the UAV bypasses the obstacle and the The movement path of the no-fly zone.
  • the no-fly zone can be regarded as a kind of virtual obstacle, which can be implemented in multiple ways.
  • the no-fly zone is determined by an electronic fence device.
  • Electronic fence devices also known as geo-fencing devices, are provided at a location and claim one or more electronic fence boundaries that enclose the no-fly zone and control the movement of drones within the electronic fence boundaries .
  • the electronic fence device can be fixed at a certain location, or it can be easily movable and/or portable.
  • the electronic fence device can be any type of device, eg visual identification device, audio identification device, radio identification device.
  • the visual identification device can be a device that can be sensed by the optical sensor of the drone;
  • the audio identification device can be a device that can be sensed by the audio collection device of the drone;
  • the radio identification device can include: mobile terminals, desktop computers, portable A computer, etc., it can also be another drone or a docking station for a drone.
  • An electronic fence device is usually associated with one or more sets of flight controls, which are used to indicate the control content of a no-fly zone, such as prohibiting drones from flying, restricting drones from flying under certain conditions, and so on.
  • flight controls There may be different flight controls for different drones, different users operating drones, and different electronic fence equipment.
  • the location information of the no-fly zone around the drone can be obtained by searching the location information of the drone itself.
  • the location of the no-fly zone is available to the drone itself.
  • the UAV can store map data locally, and the map data includes the location information of the no-fly zones within various geographical ranges. After the UAV obtains its own position information through the position sensor, it can obtain the position information of the no-fly zone within the preset range around the UAV by querying the locally stored map data. Alternatively, the UAV may not store the map data locally, but obtain the map data through a remote device (for example, a cloud server), and query the obtained map data to obtain the information of the no-fly zone within the preset range around the UAV. location information.
  • a remote device for example, a cloud server
  • the manner of determining the movement path according to the position information of the photographed target and the position information of the no-fly zone is similar to the foregoing manner of determining the movement path according to the position information of the photographed target and the position information of obstacles.
  • the solid line with arrows indicates the movement path. If there is a no-fly zone around the UAV, when determining the movement path, the position information of the shooting target, and the position information of the no-fly zone, or the position information of both the no-fly zone and the obstacle are used to determine the movement path. waypoint. Due to the consideration of the no-fly zone, the area between the no-fly zone and the obstacle can be regarded as a passable area, and the planned movement path passes through the communicable area without entering the no-fly zone.
  • the traditional method When determining the moving path of target tracking, the traditional method usually only considers the influence of obstacles and does not consider the influence of the no-fly zone, so that the UAV often accidentally breaks into the no-fly zone when flying along the moving path, which will lead to no flight. Humans and aircraft violate relevant flight controls, which brings a series of safety problems. In some cases, corresponding actions will be taken when the drone enters the no-fly zone or is very close to the no-fly zone. These actions generally include: immediate landing, sudden changes in the flight direction of the drone, speed and attitude of the drone Such flight parameters will change drastically, which is very detrimental to the smoothness of the drone's flight and the stability of the shooting device.
  • the moving path can be determined by the location information of the photographed target and the location information of the no-fly zone, so that when the drone flies along the moving path, if there is a no-fly zone around it, the drone can operate in the same way as an obstacle.
  • decelerate in advance or change the flight direction in advance to bypass the no-fly zone, so as to avoid entering the no-fly zone and improve flight safety.
  • the change of flight parameters is smoother, which improves the smoothness of the drone flight and the stability of the shooting device.
  • Another embodiment of the present disclosure provides a control method for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 11 , the control method includes:
  • S1101 Acquire a first pixel area corresponding to a following target and a second pixel area corresponding to a background target in the image captured by the photographing device;
  • S1102 Adjust the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area.
  • the movable platform of this embodiment is similar to the movable platform of the previous embodiment.
  • the control method of this embodiment will be described below by taking a movable platform such as an unmanned aerial vehicle as an example.
  • the posture of the photographing device may be determined according to the relative positions of the first pixel area corresponding to the following target and the second pixel area corresponding to the background target. Part of the steps, operations, and flow of the control method in this embodiment may be similar to the corresponding parts in the previous embodiment.
  • the relative positional relationship may refer to the distance between the first pixel area and the second pixel area, the pixel coordinate range of the two, the size of the two, and the like.
  • the step of adjusting the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area is performed.
  • the relative positional relationship is the first positional relationship
  • adjust based on the second posture adjustment strategy The posture of the photographing device; the second posture adjustment strategy is different from the first posture adjustment strategy.
  • the relative positional relationship may include: whether the first pixel area and the second pixel area overlap.
  • the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area.
  • the attitude adjustment amount of the camera can be calculated by the following formula:
  • pitch represents the pitch angle
  • yaw represents the heading angle
  • Error() represents the attitude adjustment amount of the shooting device
  • x(target), y(target) respectively represent the position coordinates of the following target in the predetermined coordinate system
  • x(background), y(background) respectively represents the position coordinates of the background target in the same predetermined coordinate system
  • a and b are the weighting coefficients, indicating the weight of keeping the following target and the background target at the center of the screen, and the center of the calculated image is located between the background target and the following target.
  • the weighting coefficient represents the proportion of the position of the following target and the background target.
  • the predetermined coordinate system may be a pixel coordinate system or an image coordinate system.
  • the user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient.
  • the weighting coefficient a may be set larger than the weighting coefficient b.
  • the weighting coefficient b may be set larger than the weighting coefficient a.
  • the image center is located between the first pixel area and the second pixel area, but the embodiment is not limited thereto.
  • Other designated positions of the image may also be located between the first pixel area and the second pixel area.
  • the other designated positions may be positions manually set by the user through the remote controller, or automatically set by at least one of the drone, the camera, and the remote controller.
  • the second posture adjustment strategy may include: positioning the first pixel area at a designated position in the image.
  • the second posture adjustment strategy may include: making the distance between the edge pixels of the second pixel area and the edge of the image smaller than a preset distance threshold.
  • the attitude adjustment amount of the photographing device can be calculated by the following formula:
  • the camera rotates the attitude adjustment amount obtained by the above formula in the heading and pitch directions respectively, and the first pixel area corresponding to the following target can be located at the center of the image.
  • the photographing device may have photographed part of the edge of the background object, and at this time, the second pixel area does not occupy the entire image.
  • the distance between the edge pixels of the second pixel area and the edge of the image can be smaller than the preset distance threshold, that is, try to make more background targets appear. in the image.
  • the attitude adjustment amount of the camera can be calculated by the following formula:
  • h and w represent the height and width of the image, respectively, and the meanings of the remaining symbols are shown in formulas (1) and (2).
  • the second pixel area corresponding to the background object is roughly triangular in shape, and is located in the lower left area of the image, and does not occupy the entire image.
  • the follower target is above and to the right of the background target in the image.
  • the attitude adjustment amount is calculated by the above formula, so that the photographing device is rotated as far as possible to the left in the heading direction and to the right in the pitch direction, so that the first pixel area corresponding to the following target is located in the upper right corner of the image, and the first pixel area corresponding to the background target is located at the same time.
  • the distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold.
  • the edge pixels of the second pixel area may be pixels on the hypotenuse of the second image area of the triangle.
  • the edges of the image can be the top and right edges of the image. This allows the background objects to appear in the image as much as possible.
  • the preset distance threshold may be manually set and adjusted by a user through a remote control, or automatically set or adjusted by at least one of the drone, the photographing device and the remote control.
  • first positional relationship and the second positional relationship as well as the corresponding first attitude adjustment strategy and the second attitude adjustment strategy are described above, this is only an exemplary illustration, and the embodiment is not limited thereto.
  • the relative positional relationship between the first pixel area and the second pixel area can be various, and corresponding to different attitude adjustment strategies.
  • the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area.
  • the second type may be a line type.
  • the step of adjusting the posture of the photographing device according to the positions of the first pixel area and the second pixel area includes: causing the second pixel area to pass through a designated position in the image, and the first pixel area coincides with the designated position in at least one direction of the image .
  • the corresponding second pixel area is a straight line or a curve.
  • horizon can usually be the boundary between the sea, grassland, and desert and the sky.
  • making the second pixel area pass through the designated position in the image means the camera rotates the pitch angle adjustment amount in the direction of the pitch axis, so that the horizon passes through the center of the image; the first pixel The area coincides with the designated position in at least one direction of the image means: the camera rotates the heading angle adjustment amount in the direction of the heading axis, so that the center of the following target coincides with the center of the image in the heading direction.
  • the second pixel area is a curve
  • the midpoint of the curve along the horizontal direction of the image passes through the center of the image.
  • the horizon is located at the center of the vertical direction of the image
  • the following target is located at the center of the horizontal direction of the image
  • the following target is presented in front of the horizon and the backgrounds on both sides, which conforms to aesthetic habits and improves the shooting effect of the shooting device.
  • Yet another embodiment of the present disclosure provides a control method for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 12 , the control method includes:
  • S1201 Acquire position information of obstacles in the environment where the movable platform is located
  • S1202 Obtain location information of a no-fly zone in the environment where the movable platform is located;
  • S1203 Determine, according to the position information of the obstacle and the position information of the no-fly zone, the moving path of the movable platform to circumvent the obstacle and the no-fly zone.
  • the movable platform of this embodiment is similar to the movable platform of the above-mentioned embodiment.
  • the control method of this embodiment will be described below by taking a movable platform such as an unmanned aerial vehicle as an example.
  • the process of determining the moving path of the movable platform around the obstacle can be determined according to the position information of the obstacle.
  • the obstacles can be utility poles, street lights, outdoor signs, outdoor billboards, and background targets in some cases. However, in some cases, it may not be enough to only consider obstacles in the process of determining the movement path, which may affect the flight safety of the UAV to a certain extent.
  • the no-fly zone in the environment where the UAV is located can also be used as a factor for determining the moving path, and the UAV is determined to bypass the obstacle according to the position information of the obstacle and the position information of the no-fly zone. and the movement path of the no-fly zone.
  • the no-fly zone may be implemented in various manners.
  • the no-fly zone is determined by an electronic fence device.
  • Electronic fence devices also known as geo-fencing devices, are provided at a location and claim one or more electronic fence boundaries that enclose the no-fly zone and control the movement of drones within the electronic fence boundaries .
  • the electronic fence device can be fixed at a certain location, or it can be easily movable and/or portable.
  • the electronic fence device can be any type of device, eg visual identification device, audio identification device, radio identification device.
  • the visual identification device can be a device that can be sensed by the optical sensor of the drone;
  • the audio identification device can be a device that can be sensed by the audio collection device of the drone;
  • the radio identification device can include: mobile terminals, desktop computers, portable A computer, etc., it can also be another drone or a docking station for a drone.
  • An electronic fence device is usually associated with one or more sets of flight controls, which are used to indicate the control content of a no-fly zone, such as prohibiting drones from flying, restricting drones from flying under certain conditions, and so on.
  • flight controls There may be different flight controls for different drones, different users operating drones, and different electronic fence equipment.
  • the location information of the no-fly zone around the drone can be obtained by searching the location information of the drone itself.
  • the location of the no-fly zone is available to the drone itself.
  • the UAV can store map data locally, and the map data includes the location information of the no-fly zones within various geographical ranges. After the UAV obtains its own position information through the position sensor, it can obtain the position information of the no-fly zone within the preset range around the UAV by querying the locally stored map data. Alternatively, the UAV may not store the map data locally, but obtain the map data through a remote device (for example, a cloud server), and query the obtained map data to obtain the information of the no-fly zone within the preset range around the UAV. location information.
  • a remote device for example, a cloud server
  • Determining the movement path of the UAV may include: establishing a loss function based at least in part on the location information of the obstacle and the location information of the obstacle, and minimizing the loss function to determine the movement path of the UAV around the obstacle and the no-fly zone.
  • the moving path of the UAV can be generated in real time during the target tracking process, and the moving path is usually composed of a series of waypoints, and the UAV flies along the series of waypoints.
  • the loss function is used to determine the cost of some factors in the moving path, and the quantified cost value can be obtained.
  • the loss function may include a fifth loss function as shown below:
  • Cost cost_5(obstacle,no_fly_zone) (7)
  • Cost represents the loss function
  • cost_5 represents the fifth loss function
  • obstacle represents the distance between the waypoint in the moving path and the obstacle
  • no_fly_zone represents the distance between the waypoint in the moving path and the no-fly zone
  • the fifth loss function is a loss function reflecting the safety of the path, and the safety of the path is used to characterize whether the distance between the path point and the obstacle or the no-fly zone satisfies the safety index.
  • the safety of the path is used to characterize whether the distance between the path point and the obstacle or the no-fly zone satisfies the safety index.
  • the path is more likely to be selected as the moving path of the UAV, otherwise, the less likely it is to be selected as the UAV's moving path
  • the movement path of the drone As shown in FIG. 13 , the solid line with arrows indicates the movement path. If there are no-fly zones and obstacles around the UAV, when determining the movement path, the waypoints of the movement path are determined based on the position information of both the obstacles and the no-fly zone. Due to the consideration of the no-fly zone, the area between the no-fly zone and the obstacle can be regarded as a passable area, and the planned movement path passes through the communicable area without entering the no-fly zone.
  • the traditional method When determining the moving path of target tracking, the traditional method usually only considers the influence of obstacles and does not consider the influence of the no-fly zone, so that the UAV often accidentally breaks into the no-fly zone when flying along the moving path, which will lead to no flight. Humans and aircraft violate relevant flight controls, which brings a series of safety problems. In some cases, corresponding actions will be taken when the drone enters the no-fly zone or is very close to the no-fly zone. These actions generally include: immediate landing, sudden changes in the flight direction of the drone, speed and attitude of the drone Such flight parameters will change drastically, which is very detrimental to the smoothness of the drone's flight and the stability of the shooting device.
  • the moving path can be determined according to the position information of the obstacle and the position information of the no-fly zone, so that when the drone flies along the moving path, if there is a no-fly zone around it, the drone can fly in the same way as an obstacle.
  • decelerate in advance or change the flight direction in advance to bypass the no-fly zone, so as to avoid entering the no-fly zone and improve flight safety.
  • the change of flight parameters is smoother, which improves the smoothness of the drone flight and the stability of the shooting device.
  • Yet another embodiment of the present disclosure further provides a control device for a movable platform.
  • the movable platform includes a photographing device.
  • the control device includes:
  • a path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
  • the control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
  • the processor is further configured to perform the following operations: establish a loss function based at least in part on the location information of the photographed target and the location information of the obstacle; minimize the loss function to determine the possible The mobile platform circumvents the movement path of the obstacle.
  • the loss function includes a first loss function, and the connection between the fewer waypoints on the moving path and the shooting target passes through the area where the obstacle is located, the first loss function the smaller the value.
  • the loss function includes a second loss function, and the greater the distance between the path point on the moving path and the obstacle, the smaller the value of the second loss function.
  • the loss function includes a third loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the smaller the value of the third loss function.
  • the shooting target includes a following target
  • the loss function includes a fourth loss function
  • the processor is further configured to perform the following operations: determine an environment type of the environment in which the movable platform is located; and determine movement parameters of the movable platform according to the environment type.
  • the environment types include obstacle-dense types and obstacle-sparse types.
  • the processor is further configured to perform the following operation: determine an environment type of the environment in which the movable platform is located according to a background object in the image captured by the photographing device.
  • the processor is further configured to perform the following operation: according to the detection data of the detection device carried on the movable platform, determine the environment type of the environment where the movable platform is located.
  • the processor is further configured to perform the following operations: if the environment type is a dense obstacle type, determining the speed of the movable platform to be the first speed; if the environment type is a sparse obstacle type type, the speed of the movable platform is determined to be a second speed, and the second speed is greater than the first speed.
  • the processor is further configured to perform the following operations: if the environment type is a type with dense obstacles, determine the angular velocity of the photographing device to be the first angular velocity; if the environment type is a type with sparse obstacles , then it is determined that the angular velocity of the photographing device is a second angular velocity, and the second angular velocity is greater than the first angular velocity.
  • the shooting target includes a following target and a background target.
  • the processor is further configured to perform the following operations: adjust the posture of the photographing device according to the first pixel area and/or the second pixel area; wherein the first pixel area is where the following target is located The pixel area corresponding to the image captured by the photographing device; the second pixel area is the pixel area corresponding to the background object in the image captured by the photographing device.
  • the processor is further configured to perform the following operation: adjust the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area.
  • the processor is further configured to perform the following operations: if the relative positional relationship is a first positional relationship, adjust the posture of the photographing device based on a first posture adjustment strategy; if the relative positional relationship is For the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  • the first positional relationship is no coincidence
  • the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area; the first The two positional relationship is that the first pixel area is located in the second pixel area
  • the second posture adjustment strategy includes: making the first pixel area located at a specified position in the image; and/or making the first pixel area The distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold.
  • the processor is further configured to perform the following operation: adjust the posture of the photographing device according to the shape of the second pixel area.
  • the processor is further configured to perform the following operations: if the shape of the second pixel region is of the first type, adjust the posture of the photographing device based on a third posture adjustment strategy;
  • the posture of the photographing device is adjusted based on a fourth posture adjustment strategy, and the fourth posture adjustment strategy is different from the third posture adjustment strategy.
  • the first type is a line type
  • the third posture adjustment strategy includes: causing the second pixel area to pass through a designated position in the image, the first pixel area in the image Coincidence with the designated position in at least one direction.
  • the second type is a face type
  • the fourth posture adjustment strategy includes: if the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device to make The center of the image is located between the first pixel area and the second pixel area; if the first pixel area is located within the second pixel area, adjust the posture of the photographing device so that the The first pixel area is located at a specified position in the image; and/or the distance between the edge pixel point of the second pixel area and the edge of the image is smaller than a preset distance threshold.
  • a no-fly zone in the environment in which the movable platform is located is used as the obstacle.
  • the processor is further configured to perform the following operation: determine, according to the location information of the photographing target and the location information of the no-fly zone, that the movable platform can circumvent the obstacle and the prohibited area. The movement path of the fly zone.
  • Another embodiment of the present disclosure further provides a control device for a movable platform, where the movable platform includes a photographing device.
  • the control device includes:
  • the posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  • the control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
  • the processor is further configured to perform the following operation: if the shape of the second pixel area is of a first type, perform the relative operation according to the first pixel area and the second pixel area Position relationship, the steps of adjusting the posture of the photographing device.
  • the first type includes: face type.
  • the processor is further configured to perform the following operations: if the relative positional relationship is a first positional relationship, adjust the posture of the photographing device based on a first posture adjustment strategy; if the relative positional relationship is For the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  • the first positional relationship is no coincidence
  • the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area; the first The two positional relationship is that the first pixel area is located in the second pixel area
  • the second posture adjustment strategy includes: making the first pixel area located at a specified position in the image; and/or making the first pixel area The distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold.
  • the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area.
  • the second type includes: line type.
  • the processor is further configured to: cause the second pixel area to pass through a designated location in the image, the first pixel area and the image in at least one direction The specified positions coincide.
  • Another embodiment of the present disclosure further provides a control device for a movable platform, where the movable platform includes a photographing device.
  • the control device includes:
  • a processor for executing the executable instructions stored in the memory to perform the following operations:
  • a moving path of the movable platform around the obstacle and the no-fly zone is determined.
  • the control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
  • the processor is further configured to: establish a loss function based at least in part on the no-fly zone location information and the obstacle location information; minimize the loss function to determine the A movable platform circumvents the obstacle and the no-fly zone's movement path.
  • the loss function includes a fifth loss function, and the greater the distance between the path point on the moving path and the obstacle and the no-fly zone, the smaller the value of the fifth loss function is .
  • the loss function includes a second loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the smaller the value of the second loss function.
  • the no-fly zone is determined by electronic fence, flight control information.
  • the processor is further configured to obtain location information for the no-fly zone from at least one of a remote device local to the movable platform and a remote device that can communicate with the movable platform.
  • the processor is further configured to measure the location information of the obstacle via sensors of the movable platform; and/or obtain from a remote device communicable with the movable platform location information of the obstacle.
  • Still another embodiment of the present disclosure also provides a computer-readable storage medium storing executable instructions that, when executed by one or more processors, can cause the one or more processors to The control methods described in the above embodiments are executed.
  • a computer-readable storage medium can be any medium that can contain, store, communicate, propagate, or transmit instructions.
  • a readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus, device, or propagation medium.
  • Specific examples of readable storage media include: magnetic storage devices, such as magnetic tapes or hard disks (HDDs); optical storage devices, such as compact disks (CD-ROMs); memories, such as random access memory (RAM) or flash memory; and/or wired /Wireless communication link.
  • Still another embodiment of the present disclosure further provides a movable platform, as shown in FIG. 15 , including: a photographing device, and a movable carrier; the movable carrier includes: the control device of the above-mentioned embodiment.
  • the movable carrier includes a drone, an unmanned vehicle, an unmanned boat, or a robot.

Abstract

A control method and device for a mobile platform, and a computer readable storage medium and the mobile platform. The mobile platform comprises a photographing device. The control method comprises: obtaining position information of a photographing target of a photographing device; obtaining position information of an obstacle in an environment where a mobile platform is located; and determining, at least partially according to the position information of the photographing target and the position information of the obstacle, a movement path along which the mobile platform bypasses the obstacle.

Description

可移动平台的控制方法、装置、计算机可读存储介质Control method, device, and computer-readable storage medium for removable platform 技术领域technical field
本公开涉及领域,尤其涉及一种可移动平台的控制方法、装置、计算机可读存储介质和可移动平台。The present disclosure relates to the field, and in particular, to a control method, an apparatus, a computer-readable storage medium and a movable platform for a movable platform.
背景技术Background technique
无人机等可移动平台具备目标跟踪功能。目标跟踪功能通常涉及可移动平台的路径规划、以及拍摄装置的姿态调整。在进行目标跟踪时,可移动平台可实时规划出移动路径,并沿移动路径移动以对目标进行跟随。在目标跟随的过程中,可移动平台携带的拍摄装置按照预设的规则对目标进行拍摄,使跟踪的目标呈现在拍摄装置的图像中。Mobile platforms such as drones have target tracking capabilities. The target tracking function usually involves the path planning of the movable platform and the attitude adjustment of the camera. During target tracking, the movable platform can plan a moving path in real time, and move along the moving path to follow the target. In the process of following the target, the photographing device carried by the movable platform photographs the target according to preset rules, so that the tracked target is presented in the image of the photographing device.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种可移动平台的控制方法,所述可移动平台包括拍摄装置,所述控制方法包括:The present disclosure provides a control method for a movable platform, the movable platform includes a photographing device, and the control method includes:
获取所述拍摄装置的拍摄目标的位置信息;acquiring position information of the shooting target of the shooting device;
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。A path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
本公开还提供了一种可移动平台的控制方法,所述可移动平台包括拍摄装置,所述控制方法包括:The present disclosure also provides a control method for a movable platform, the movable platform includes a photographing device, and the control method includes:
获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;acquiring the first pixel area corresponding to the following target and the second pixel area corresponding to the background target in the image captured by the photographing device;
根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
本公开还提供了一种可移动平台的控制方法,所述控制方法包括:The present disclosure also provides a control method for a movable platform, the control method comprising:
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
获取所述可移动平台所处环境中的禁飞区的位置信息;Obtain the location information of the no-fly zone in the environment where the movable platform is located;
根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the obstacle and the position information of the no-fly zone, a moving path of the movable platform around the obstacle and the no-fly zone is determined.
本公开还提供了一种可移动平台的控制装置,所述可移动平台包括拍 摄装置,所述控制装置包括:The present disclosure also provides a control device for a movable platform, the movable platform includes a photographing device, and the control device includes:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述拍摄装置的拍摄目标的位置信息;acquiring position information of the shooting target of the shooting device;
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。A path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
本公开还提供了一种可移动平台的控制装置,所述可移动平台包括拍摄装置,所述控制装置包括:The present disclosure also provides a control device for a movable platform, the movable platform includes a photographing device, and the control device includes:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;acquiring the first pixel area corresponding to the following target and the second pixel area corresponding to the background target in the image captured by the photographing device;
根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
本公开还提供了一种可移动平台的控制装置,所述控制装置包括:The present disclosure also provides a control device for a movable platform, the control device comprising:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
获取所述可移动平台所处环境中的禁飞区的位置信息;Obtain the location information of the no-fly zone in the environment where the movable platform is located;
根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the obstacle and the position information of the no-fly zone, a moving path of the movable platform around the obstacle and the no-fly zone is determined.
本公开还提供了一种计算机可读存储介质,其存储有可执行指令,所述可执行指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行上述控制方法。The present disclosure also provides a computer-readable storage medium storing executable instructions, which, when executed by one or more processors, can cause the one or more processors to execute the above control method .
本公开还提供了一种可移动平台,包括:拍摄装置、以及可移动载体;所述可移动载体包括:上述的控制装置。The present disclosure also provides a movable platform, comprising: a photographing device, and a movable carrier; the movable carrier includes: the above-mentioned control device.
附图说明Description of drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present disclosure more clearly, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本公开实施例提供的一种可移动平台的控制方法的流程图。FIG. 1 is a flowchart of a control method for a movable platform provided by an embodiment of the present disclosure.
图2是本公开实施例提供的一种无人机的应用场景示意图。FIG. 2 is a schematic diagram of an application scenario of an unmanned aerial vehicle provided by an embodiment of the present disclosure.
图3是本公开实施例提供的一种根据拍摄目标的位置信息和障碍物的位置信息确定移动路径的示意图。FIG. 3 is a schematic diagram of determining a movement path according to position information of a shooting target and position information of an obstacle according to an embodiment of the present disclosure.
图4是本公开实施例提供的一种根据路径点与障碍物之间的距离确定移动路径的示意图。FIG. 4 is a schematic diagram of determining a movement path according to a distance between a waypoint and an obstacle according to an embodiment of the present disclosure.
图5是本公开实施例提供的一种根据路径平滑性确定移动路径的示意图。FIG. 5 is a schematic diagram of determining a movement path according to path smoothness according to an embodiment of the present disclosure.
图6显示了本公开实施例提供的一种第一像素区域与第二像素区域没有重合时的第一姿态调整策略。FIG. 6 shows a first posture adjustment strategy provided by an embodiment of the present disclosure when the first pixel area and the second pixel area do not overlap.
图7显示了本公开实施例提供的一种第一像素区域位于第二像素区域内的第二姿态调整策略的一个示例。FIG. 7 shows an example of a second posture adjustment strategy in which the first pixel area is located in the second pixel area provided by an embodiment of the present disclosure.
图8显示了本公开实施例提供的一种第一像素区域位于第二像素区域内的第二姿态调整策略的另一个示例。FIG. 8 shows another example of a second posture adjustment strategy in which the first pixel area is located in the second pixel area provided by an embodiment of the present disclosure.
图9显示了本公开实施例提供的一种线型第二像素区域的第三姿态调整策略。FIG. 9 shows a third attitude adjustment strategy for a linear second pixel region provided by an embodiment of the present disclosure.
图10是本公开实施例提供的一种根据拍摄目标的位置信息和禁飞区的位置信息确定移动路径的示意图。FIG. 10 is a schematic diagram of determining a movement path according to location information of a shooting target and location information of a no-fly zone provided by an embodiment of the present disclosure.
图11是本公开另一实施例可移动平台的控制方法的流程图。FIG. 11 is a flowchart of a control method of a movable platform according to another embodiment of the present disclosure.
图12是本公开再一实施例可移动平台的控制方法的流程图。FIG. 12 is a flowchart of a control method of a movable platform according to still another embodiment of the present disclosure.
图13是本公开实施例提供的一种根据障碍物的位置信息和禁飞区的位置信息确定移动路径的示意图。FIG. 13 is a schematic diagram of determining a movement path according to the position information of an obstacle and the position information of a no-fly zone according to an embodiment of the present disclosure.
图14是本公开实施例提供的一种可移动平台的控制装置的结构示意图。FIG. 14 is a schematic structural diagram of a control device of a movable platform provided by an embodiment of the present disclosure.
图15是本公开实施例提供的一种的可移动平台的结构示意图。FIG. 15 is a schematic structural diagram of a movable platform provided by an embodiment of the present disclosure.
具体实施方式detailed description
虽然在现有技术中,可移动平台可沿移动路径运动,并在运动过程中利用拍摄装置对目标进行跟踪,但是现有技术在规划移动路径时,通常只考虑可移动平台所处环境中的障碍物的位置,对可能影响拍摄效果以及安全性的其他因素基本没有考虑,这会影响目标跟踪的拍摄效果、以及可移动平台的安全性。同时,在拍摄装置对目标成像的过程中,通常只关注被跟踪的目标,整个构图过程缺乏对目标所处的环境、以及环境中的目标物的关注,这也会影响目标跟踪的拍摄效果。Although in the prior art, the movable platform can move along the moving path and use the photographing device to track the target during the motion, when planning the moving path in the prior art, only the environment in which the movable platform is located is usually considered. The location of the obstacle basically does not consider other factors that may affect the shooting effect and safety, which will affect the shooting effect of target tracking and the safety of the movable platform. At the same time, in the process of imaging the target, the photographing device usually only pays attention to the tracked target, and the entire composition process lacks attention to the environment where the target is located and the target objects in the environment, which will also affect the shooting effect of target tracking.
本公开提供了一种可移动平台的控制方法、装置、计算机可读存储介质和可移动平台,通过获取拍摄装置的拍摄目标的位置信息、以及可移动平台所处环境中的障碍物的位置信息,并至少部分地根据拍摄目标的位置信息和障碍物的位置信息,确定可移动平台绕行障碍物的移动路径,从而提高目标跟踪的拍摄效果。The present disclosure provides a control method, device, computer-readable storage medium and movable platform for a movable platform, by acquiring the position information of the photographing target of the photographing device and the position information of obstacles in the environment where the movable platform is located , and determine the moving path of the movable platform around the obstacle according to the position information of the shooting target and the position information of the obstacle at least in part, so as to improve the shooting effect of target tracking.
下面将结合实施例和实施例中的附图,对本公开技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions of the present disclosure will be clearly and completely described below with reference to the embodiments and the accompanying drawings in the embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
本公开一实施例提供了一种可移动平台的控制方法,所述可移动平台包括拍摄装置,如图1所示,该控制方法包括:An embodiment of the present disclosure provides a control method for a movable platform. The movable platform includes a photographing device. As shown in FIG. 1 , the control method includes:
S101:获取所述拍摄装置的拍摄目标的位置信息;S101: Acquire position information of a photographing target of the photographing device;
S102:获取所述可移动平台所处环境中的障碍物的位置信息;S102: Acquire position information of obstacles in the environment where the movable platform is located;
S103:至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。S103: Determine a movement path of the movable platform around the obstacle based at least in part on the location information of the photographed target and the location information of the obstacle.
本实施例的控制方法可应用于各种可移动平台。可移动平台例如可以是空中可移动平台。空中可移动平台可以包括但不限于:无人机、固定翼飞行器、旋翼飞行器等。可移动平台例如还可以是地面可移动平台。地面可移动平台可以包括但不限于:无人驾驶车辆、机器人、有人驾驶车辆等。可移动平台例如还可以是手持式设置或移动设备。手持式设置可以包括但不限于手持云台、云台式相机;移动设备可以包括但不限于:遥控器、智能电话/手机、平板电脑、笔记本计算机、台式计算机、媒体内容播放器、 视频游戏站/系统、虚拟现实系统、增强现实系统、可穿戴式装置等。The control method of this embodiment can be applied to various movable platforms. The movable platform may be, for example, an aerial movable platform. Aerial movable platforms may include, but are not limited to, unmanned aerial vehicles, fixed-wing aircraft, rotary-wing aircraft, and the like. The movable platform can also be, for example, a ground movable platform. Ground movable platforms may include, but are not limited to, unmanned vehicles, robots, manned vehicles, and the like. The movable platform can also be, for example, a handheld device or a mobile device. Handheld setups may include, but are not limited to, handheld gimbals, PTZ cameras; mobile devices may include, but are not limited to: remote controls, smart phones/mobile phones, tablets, laptops, desktops, media content players, video game stations/ systems, virtual reality systems, augmented reality systems, wearable devices, etc.
为了方便描述,以下以无人机这种可移动平台为例,对本实施例的控制方法进行说明。参见图2所示,无人机100包括:无人机本体110、云台140和拍摄装置130。For the convenience of description, the control method of this embodiment is described below by taking a movable platform such as an unmanned aerial vehicle as an example. Referring to FIG. 2 , the drone 100 includes: a drone body 110 , a gimbal 140 and a photographing device 130 .
无人机本体110可以包括无人机机身105、以及一个或多个推进单元150。推进单元150可以被配置为无人机100产生升力。推进单元150可以包括旋翼。无人机100能够在三维空间内飞行,并可沿俯仰轴、偏航轴、横滚轴中的至少一个旋转。The drone body 110 may include the drone body 105 , and one or more propulsion units 150 . Propulsion unit 150 may be configured to generate lift for drone 100 . Propulsion unit 150 may include rotors. The drone 100 can fly in three-dimensional space, and can rotate along at least one of a pitch axis, a yaw axis, and a roll axis.
无人飞行器110可包括一个或多个传感器。这些传感器例如包括:图像传感器、距离传感器、高度传感器、位置传感器等。作为图像传感器的示例,无人机100可包括一个或多个拍摄装置130。在本实施例中,拍摄装置130可以为可见光相机、红外相机、紫外相机等,拍摄装置130可对其视野范围170内的目标160进行拍摄。Unmanned aerial vehicle 110 may include one or more sensors. These sensors include, for example, image sensors, distance sensors, height sensors, position sensors, and the like. As an example of an image sensor, the drone 100 may include one or more cameras 130 . In this embodiment, the photographing device 130 can be a visible light camera, an infrared camera, an ultraviolet camera, etc., and the photographing device 130 can photograph the target 160 within its field of view 170 .
拍摄装置130由无人飞行器110支撑。拍摄装置130可以由无人飞行器110直接支撑,或者可以经由载具140而被无人飞行器110支撑。当拍摄装置130经由载具140而被无人飞行器110支撑时,拍摄装置130可安装于载具140。载具140可以允许拍摄装置130围绕俯仰轴、偏航轴、横滚轴中的至少一个旋转,以调节拍摄装置130的方向。载具140可以包括单轴云台、双轴云台或三轴云台。The photographing device 130 is supported by the unmanned aerial vehicle 110 . The camera 130 may be directly supported by the UAV 110 , or may be supported by the UAV 110 via the vehicle 140 . When the photographing device 130 is supported by the UAV 110 via the carrier 140 , the photographing device 130 may be installed on the carrier 140 . The vehicle 140 may allow the camera 130 to rotate about at least one of a pitch axis, a yaw axis, and a roll axis to adjust the orientation of the camera 130 . Vehicle 140 may include a single-axis gimbal, a dual-axis gimbal, or a three-axis gimbal.
无人机100可通过遥控器120控制。遥控器120可与无人机本体110、云台140、拍摄装置130中的至少之一通信。遥控器120包括显示器。显示器用于显示拍摄装置130拍摄的图像。遥控器120还包括输入装置。输入装置可用于接收用户的输入信息。The drone 100 can be controlled by the remote controller 120 . The remote controller 120 may communicate with at least one of the drone body 110 , the gimbal 140 , and the photographing device 130 . The remote control 120 includes a display. The display is used to display images captured by the capturing device 130 . The remote control 120 also includes an input device. An input device may be used to receive input from a user.
通过S101获取拍摄装置的拍摄目标的位置信息。The position information of the photographing target of the photographing device is acquired through S101 .
无人机在飞行过程中,拍摄装置可对其周围环境中的各种拍摄目标进行拍摄。本实施例中,所述拍摄目标不仅包括无人机想要跟踪的物体。实际上,所述拍摄目标可以包括上述周围环境中的任何物体。During the flight of the drone, the shooting device can shoot various shooting targets in the surrounding environment. In this embodiment, the shooting target not only includes the object that the drone wants to track. In fact, the shooting target may include any object in the surrounding environment.
无人机想要跟踪的物体在本实施例中可称为跟随目标,跟随目标通常指的是可移动的物体。在一些示例中,跟随目标可以包括:人、动物、(空中、地面、水面、水下)车辆等。在一些示例中,人可以是操作无人机的 用户本身、或者是该用户之外的其他人;车辆可以包括:机动车、非机动车、无人飞行器、有人飞行器、船舶等。The object that the drone wants to track may be referred to as a following target in this embodiment, and the following target usually refers to a movable object. In some examples, following targets may include: people, animals, vehicles (air, ground, surface, underwater), and the like. In some examples, the person may be the user operating the drone itself, or someone other than the user; the vehicle may include: a motor vehicle, a non-motor vehicle, an unmanned aerial vehicle, a manned aerial vehicle, a watercraft, and the like.
本实施例中,拍摄目标还可以包括背景目标,所述背景目标可以包括跟随目标之外的任何物体。背景目标通常可以反映出跟随目标所处的场景。在一些示例中,背景目标可包括:山川、河流、湖泊、森林、海面、沙滩、草原、各种建筑、地平线等,还可包括:天空、太阳、月亮、云朵、朝霞、晚霞等。In this embodiment, the shooting target may also include a background target, and the background target may include any object other than the following target. Background objects often reflect the scene in which the following objects are located. In some examples, the background objects may include mountains, rivers, lakes, forests, seas, beaches, grasslands, various buildings, horizons, etc., and may also include sky, sun, moon, clouds, morning glow, sunset glow, and the like.
在拍摄装置对其周围环境中的拍摄目标进行拍摄时,拍摄得到的图像可经遥控器与无人机本体、云台或拍摄装置之间的通信链路,发送给遥控器,并由遥控器的显示器对拍摄的图像进行显示。在一些示例中,拍摄装置可将拍摄得到的图像实时发送给遥控器以供用户观看,或者,也可以将拍摄得到的图像存储在拍摄装置本地,再将图像发送给遥控器显示。When the shooting device shoots the shooting target in its surrounding environment, the captured image can be sent to the remote control through the communication link between the remote control and the drone body, the gimbal or the shooting device, and the remote control on the monitor to display the captured image. In some examples, the photographing apparatus may send the photographed image to the remote controller in real time for the user to view, or may also store the photographed image locally in the photographing apparatus, and then send the image to the remote control for display.
在一些示例中,用户可手动选择图像中的跟随目标。对于跟随目标,用户可通过输入装置将图像显示的一个或多个物体选定为跟随目标。所述输入装置可以是遥控器的按键、摇杆、旋钮;当遥控器的显示器为触摸屏时,用户也可通过显示器选定跟随目标。当跟随目标选定后,无人机在接下来的飞行过程中将会对跟随目标进行跟踪。In some examples, the user may manually select a follow target in the image. For the following target, the user may select one or more objects displayed in the image as the following target through the input device. The input device may be a button, a joystick, or a knob of the remote control; when the display of the remote control is a touch screen, the user can also select a follow target through the display. When the following target is selected, the UAV will track the following target during the next flight.
在另一些示例中,可能无需用户手动选择跟随目标,而是由无人机、云台、拍摄装置和遥控器的其中一者自动选定跟随目标。例如,当跟随目标由遥控器自动选定时,遥控器可根据预设规则将图像中的一个或多个物体选定为跟随目标。该预设规则可以是:颜色、尺寸、形状等。即当图像中的物体符合预设的颜色、尺寸、或形状时,就将该物体识别为跟随目标。当然,在一些示例中,还可以增加用户确认的步骤。遥控器自动选定的跟随目标作为备选目标并在显示器显示,用户通过输入装置执行一个确认操作。只有用户对某个/某些备选目标确认之后,该备选目标才作为跟随目标。In other examples, the user may not need to manually select the follow target, but the follow target may be automatically selected by one of the drone, gimbal, camera, and remote control. For example, when the following target is automatically selected by the remote controller, the remote controller may select one or more objects in the image as the following target according to a preset rule. The preset rules can be: color, size, shape, etc. That is, when an object in the image conforms to a preset color, size, or shape, the object is identified as a following target. Of course, in some examples, a user confirmation step may also be added. The following target automatically selected by the remote control is used as an alternative target and displayed on the display, and the user performs a confirmation operation through the input device. Only after the user confirms a certain/some candidate target, the candidate target will be used as a follow target.
以上介绍了跟随目标的选定过程,对于背景目标来说,其选定过程与跟随目标是类似的,在此不再赘述。The selection process of the following target has been introduced above. For the background target, the selection process is similar to that of the following target, and will not be repeated here.
选定拍摄目标后,可通过多种手段获取拍摄目标的位置信息,该位置信息可以是相对于某个坐标系的位置坐标。After the shooting target is selected, the position information of the shooting target can be obtained by various means, and the position information can be the position coordinates relative to a certain coordinate system.
在一些示例中,可通过三维重建模型得到拍摄目标的位置信息。三维 重建模型能够反映拍摄装置的图像中的像素与该像素对应的空间点的对应关系。三维重建模型可以如下所示:In some examples, the location information of the shooting target can be obtained through the three-dimensional reconstruction model. The three-dimensional reconstruction model can reflect the correspondence between the pixels in the image of the photographing device and the spatial points corresponding to the pixels. The 3D reconstructed model can look like this:
Figure PCTCN2020107825-appb-000001
Figure PCTCN2020107825-appb-000001
其中,(u,v)表示图像中的像素在像素坐标系下的坐标;(X W,Y W,Z W)表示与像素(u,v)对应的空间点在无人机坐标系下的坐标;Z C表示与像素(u,v)对应的空间点与拍摄装置光心的距离;A表示拍摄装置的内部参数矩阵;[R T]表示拍摄装置的外部参数矩阵。 Among them, (u, v) represents the coordinates of the pixels in the image in the pixel coordinate system; (X W , Y W , Z W ) represents the spatial point corresponding to the pixel (u, v) in the UAV coordinate system. Coordinates; Z C represents the distance between the spatial point corresponding to the pixel (u, v) and the optical center of the camera; A represents the internal parameter matrix of the camera; [RT] represents the external parameter matrix of the camera.
例如,对于跟随目标,可将该跟随目标在拍摄装置所拍摄的图像中对应的像素代入上述三维重建模型,从而得到跟随目标在无人机坐标系下的坐标。其中,Z C可通过多种方式得到,例如,无人机或拍摄装置可安装有距离传感器,通过距离传感器可测量出跟随目标与拍摄装置光心之间的距离;A和[R T]可通过标定得到。上述获取的位置信息是相对于无人机坐标系的坐标,当然本实施例不限于此。无人机通常安装有位置传感器和姿态传感器,通过位置传感器和姿态传感器可以得到无人机坐标系与大地坐标系的转换关系,从而可以得到拍摄目标在大地坐标系下的坐标。 For example, for the following target, the pixels corresponding to the following target in the image captured by the photographing device can be substituted into the above-mentioned three-dimensional reconstruction model, so as to obtain the coordinates of the following target in the UAV coordinate system. Among them, Z C can be obtained in various ways. For example, a drone or a photographing device can be installed with a distance sensor, and the distance between the following target and the optical center of the photographing device can be measured by the distance sensor; A and [RT] can be obtained by calibrated. The position information obtained above is the coordinates relative to the coordinate system of the UAV, of course, this embodiment is not limited to this. The UAV is usually equipped with a position sensor and an attitude sensor. Through the position sensor and the attitude sensor, the transformation relationship between the UAV coordinate system and the geodetic coordinate system can be obtained, so that the coordinates of the shooting target in the geodetic coordinate system can be obtained.
对于背景目标,在一些示例中,可通过与跟随目标类似的手段获取到背景目标的位置信息。在另一些示例中,无人机、拍摄装置或遥控器可存储有地图数据,并利用地图数据确定拍摄目标的位置信息。所述地图数据记录有各种区域的地理信息,这些区域至少包括无人机的活动区域。地理信息可包括:活动区域内各个物体的类型、名称、位置坐标等。当用户手动选定或者无人机、云台、拍摄装置和遥控器的其中一者自动选定背景目标后,可在地图数据中查询得到该背景目标的位置坐标。For the background target, in some examples, the position information of the background target can be obtained by means similar to the following target. In other examples, the drone, the camera or the remote control may store map data, and use the map data to determine the location information of the shooting target. The map data records geographic information of various areas, and these areas include at least the activity area of the drone. The geographic information may include: the type, name, location coordinates, etc. of each object in the activity area. When the user manually selects the background target or one of the drone, the gimbal, the photographing device and the remote controller automatically selects the background target, the position coordinates of the background target can be obtained by querying the map data.
得到拍摄目标的位置信息后,通过S102获取可移动平台所处环境中 的障碍物的位置信息。After obtaining the position information of the shooting target, the position information of obstacles in the environment where the movable platform is located is obtained through S102.
无人机在飞行过程中,可通过图像传感器、雷达等探测障碍物,或者,也可通过远程设备(例如云端服务器)直接获得障碍物及其位置信息。可对其周围环境中的各种物体进行探测,无人机、云台、拍摄装置和遥控器的其中一者会对该物体进行识别。当识别结果显示该物体为障碍物时,将该物体标记为障碍物。本实施例不对障碍物的识别方法进行限定,可采用多种图像识别方法对障碍物进行识别,例如但不限于基于特征检测、特征匹配的方法,以及基于人工神经网络的方法。During the flight, the UAV can detect obstacles through image sensors, radar, etc., or directly obtain obstacles and their location information through remote devices (such as cloud servers). Various objects in the surrounding environment can be detected, and one of the drone, gimbal, camera and remote control will recognize the object. When the recognition result shows that the object is an obstacle, the object is marked as an obstacle. This embodiment does not limit the method for identifying obstacles, and various image recognition methods can be used to identify obstacles, such as but not limited to methods based on feature detection, feature matching, and methods based on artificial neural networks.
识别出障碍物后,获取障碍物的位置信息的过程可基本上与S101中获取拍摄目标的位置信息的过程相似。即,可通过三维重建模型得到障碍物的位置信息,也可通过地图数据查询得到障碍物的位置信息。After the obstacle is identified, the process of acquiring the location information of the obstacle may be basically similar to the process of acquiring the location information of the photographing target in S101. That is, the position information of the obstacle can be obtained through the three-dimensional reconstruction model, and the position information of the obstacle can also be obtained through the query of the map data.
在一些示例中,障碍物可以例如是电线杆、路灯、户外标志牌、户外广告牌等特征较为明显的物体。在另一些示例中,障碍物与背景目标可能并没有明显的区别,或者说,一些物体可以在一些情况下作为背景目标,而在另一些情况下可作为障碍物,这可能更多地取决于跟随目标、背景目标和障碍物中的一者在图像中的位置,或者至少两者在图像中的相对位置。例如,对于树木来说,如果周围环境中出现大量的树木,可能说明无人机位于森林环境中,此时树木可被认为是背景目标。如果图像中仅出现一根或几根树木且与无人机的距离较近,此时树木可被认为是障碍物。对于建筑来说,如果一些建筑与无人机的距离较远或者比跟随目标更远离无人机,此时这些建筑可被认为是背景目标,如果一些建筑与无人机的距离较近或者比跟随目标更接近无人机,此时这些建筑可被认为是障碍物。In some examples, the obstacle may be, for example, an object with obvious features, such as a utility pole, street light, outdoor sign, outdoor billboard, and the like. In other examples, the obstacle may not be significantly different from the background target, or some objects may be the background target in some cases and the obstacle in others, which may depend more on Follow the position of one of the target, the background target, and the obstacle in the image, or at least the relative positions of both in the image. For trees, for example, if there are a lot of trees in the surrounding environment, it may indicate that the drone is located in a forest environment, and the trees can be considered as background objects at this time. Trees can be considered obstacles if only one or a few trees appear in the image and are in close proximity to the drone. For buildings, if some buildings are farther away from the drone or farther away from the drone than the following target, these buildings can be considered as background targets. Follow the target closer to the drone, at which point these structures can be considered obstacles.
得到拍摄目标的位置信息和障碍物的位置信息后,即可通过S103确定无人机绕行障碍物的移动路径。本实施例在确定无人机的移动路径时,不仅考虑障碍物的位置信息,同时还考虑拍摄目标的位置信息。确定无人机的移动路径可以包括:至少部分地根据拍摄目标的位置信息和障碍物的位置信息建立损失函数,最小化损失函数以确定无人机绕行障碍物的移动路径。After obtaining the position information of the shooting target and the position information of the obstacle, the moving path of the UAV around the obstacle can be determined through S103. In this embodiment, when determining the movement path of the UAV, not only the position information of the obstacle, but also the position information of the shooting target is considered. Determining the movement path of the UAV may include: establishing a loss function based at least in part on the position information of the photographed target and the position information of the obstacle, and minimizing the loss function to determine the movement path of the UAV around the obstacle.
可在目标跟踪的过程中实时生成无人机的移动路径,所述移动路径通常由一系列的路径点组成,无人机沿一系列的路径点飞行。损失函数用于 确定一些因素在移动路径中的代价,能够得到量化的代价值。当根据拍摄目标的位置信息和障碍物的位置信息确定移动路径时,所述损失函数可包括如下所示的第一损失函数:The moving path of the UAV can be generated in real time during the target tracking process, and the moving path is usually composed of a series of waypoints, and the UAV flies along the series of waypoints. The loss function is used to determine the cost of some factors in the moving path, and the quantified cost value can be obtained. When the moving path is determined according to the position information of the shooting target and the position information of the obstacle, the loss function may include a first loss function as shown below:
Cost=cost_1(target,obstacle)Cost=cost_1(target, obstacle)
其中,Cost表示损失函数,cost_1表示第一损失函数,target表示拍摄目标的位置信息,obstacle表示障碍物的位置信息。Among them, Cost represents the loss function, cost_1 represents the first loss function, target represents the location information of the shooting target, and obstacle represents the location information of the obstacle.
在第一损失函数中,移动路径上越少的路径点与拍摄目标之间的连线经过障碍物所在的区域,则第一损失函数的取值越小。如果路径点与拍摄目标之间的连线没有经过障碍物所在的区域,说明障碍物没有出现在拍摄目标与拍摄装置之间,这样在拍摄的图像中拍摄目标不会被障碍物遮挡;反之,如果路径点与拍摄目标之间的连线经过了障碍物所在的区域,说明障碍物出现在了拍摄目标与拍摄装置之间,这样在拍摄的图像中拍摄目标会被障碍物遮挡。即第一损失函数的原则是,判断路径点与拍摄目标之间是否有障碍物遮挡,如果有遮挡的路径点越多,第一损失函数的代价值就越大,则尽量不选该路径,如果无遮挡的路径点越多,第一损失函数的代价值就越小,则尽量选择该路径。也就是说,当无人机沿根据第一损失函数确定的移动路径飞行时,会使拍摄的图像中拍摄目标尽量甚至完全不被障碍物遮挡。如图3所示,在左侧的虚线路径中,有相当一部分的路径点与背景目标之间的连线经过障碍物,而在右侧的实线路径中,几乎没有与背景目标之间的连线经过障碍物的路径点,所以实线路径的第一损失函数值更小。在不考虑其他因素、或者其他因素的影响基本相同的情况下,将会选择第一损失函数值更小的实线路径。第一损失函数是一种反映拍摄效果的损失函数,当无人机沿实线路径飞行时,在拍摄的图像中,背景目标不会被障碍物遮挡,保证了拍摄效果。In the first loss function, the less the connecting line between the waypoint and the shooting target on the moving path passes through the area where the obstacle is, the smaller the value of the first loss function is. If the connection line between the waypoint and the shooting target does not pass through the area where the obstacle is located, it means that the obstacle does not appear between the shooting target and the shooting device, so that the shooting target will not be blocked by the obstacle in the captured image; otherwise, If the connection line between the waypoint and the photographing target passes through the area where the obstacle is located, it means that the obstacle appears between the photographing target and the photographing device, so that the photographing target will be blocked by the obstacle in the photographed image. That is, the principle of the first loss function is to determine whether there are obstacles between the waypoint and the shooting target. If there are more path points without occlusion, the cost value of the first loss function is smaller, so try to choose this path. That is to say, when the UAV flies along the moving path determined according to the first loss function, the photographed target in the photographed image will not be blocked by obstacles as much as possible or even completely. As shown in Figure 3, in the dotted line path on the left, a considerable part of the connection between the waypoints and the background target passes through obstacles, while in the solid line path on the right, there is almost no connection with the background target. The path point where the line passes through the obstacle, so the first loss function value of the solid line path is smaller. Under the condition that other factors are not considered, or the influence of other factors is basically the same, a solid line path with a smaller first loss function value will be selected. The first loss function is a loss function that reflects the shooting effect. When the drone flies along the solid line path, in the captured image, the background target will not be blocked by obstacles, which ensures the shooting effect.
图3以背景目标为例进行了说明,上述过程对于跟随目标也是类似的。即本申请同样能在无人机飞行时,在拍摄的图像中跟随目标不会被障碍物遮挡,从而保证拍摄效果。当图像中同时出现跟随目标和背景目标时,在一些示例中,可以只考虑跟随目标或背景目标的代价值来确定移动路径。在另一些示例中,需要对跟随目标和背景目标的代价同时进行考虑。此时可将跟随目标和背景目标看作同一类目标,如果与目标之间的连线经过障 碍物的路径点越多,第一损失函数的代价值就越大,则尽量不选该路径,如果与目标之间的连线经过障碍物的路径点越少,第一损失函数的代价值就越小,则尽量选择该路径。Figure 3 illustrates the background target as an example, and the above process is similar for the following target. That is, the present application can also follow the target in the photographed image without being blocked by obstacles when the drone is flying, thereby ensuring the photographing effect. When both the following target and the background target appear in the image, in some examples, only the cost value of the following target or the background target may be considered to determine the movement path. In other examples, both the cost of following the target and the background target need to be considered. At this time, the following target and the background target can be regarded as the same type of target. If the connection between the target and the target passes through the obstacles, the more path points, the greater the cost value of the first loss function, so try not to choose this path. If the connection between the target and the target passes through the obstacles, the fewer path points, the smaller the cost value of the first loss function, and the path is selected as much as possible.
在一些示例中,所述损失函数还可包括如下所示的第二损失函数:In some examples, the loss function may further include a second loss function as follows:
Cost=cost_2(distance)Cost=cost_2(distance)
其中,cost_2表示第二损失函数,distance表示移动路径中的路径点与障碍物之间的距离。路径点与障碍物的距离越大,则第二损失函数的取值越小。Among them, cost_2 represents the second loss function, and distance represents the distance between the path point and the obstacle in the moving path. The larger the distance between the waypoint and the obstacle, the smaller the value of the second loss function.
第二损失函数是一种反映路径安全性的损失函数,所述路径安全性用于表征路径点与障碍物的距离是否满足安全指标。无人机沿移动路径飞行时,其与障碍物的距离不能靠的太近,这样才能保证无人机不与障碍物发生碰撞,提升无人机的飞行安全性。通过第二损失函数,如果一条路径中的路径点与障碍物的距离越大,该条路径就越可能被选为无人机的移动路径,反之,则越不可能被选为无人机的移动路径。如图4所示,对于实线和虚线这两天路径,实线路径的路径点与障碍物的距离更近,如果按照实线路径飞行,无人机可能与障碍物发生碰撞。相对于实线路径,虚线路径的路径点与障碍物的距离更远,如果按照虚线路径飞行,无人机基本不可能与障碍物碰撞。在不考虑其他因素、或者其他因素的影响基本相同的情况下,可将虚线路径作为无人机的移动路径。The second loss function is a loss function reflecting the safety of the path, and the safety of the path is used to characterize whether the distance between the path point and the obstacle satisfies the safety index. When the drone flies along the moving path, the distance between the drone and the obstacle cannot be too close, so as to ensure that the drone does not collide with the obstacle and improve the flight safety of the drone. Through the second loss function, if the distance between the path point in a path and the obstacle is greater, the path is more likely to be selected as the moving path of the UAV, and vice versa, the less likely it is to be selected as the UAV's moving path. movement path. As shown in Figure 4, for the two-day paths of the solid line and the dashed line, the distance between the path point of the solid line path and the obstacle is closer. If the UAV flies according to the solid line path, the UAV may collide with the obstacle. Compared with the solid line path, the distance between the path point of the dotted line path and the obstacle is farther. If the UAV flies according to the dotted line path, it is basically impossible for the UAV to collide with the obstacle. Without considering other factors, or the influence of other factors is basically the same, the dashed line path can be used as the movement path of the UAV.
在一些示例中,所述损失函数还包括如下所示的第三损失函数:In some examples, the loss function further includes a third loss function as follows:
Cost=cost_3(curv)Cost=cost_3(curv)
其中,cost_3表示第三损失函数,curv表示移动路径的曲率和/或曲率的变化率,且曲率和/曲率的变化率越小,则第三损失函数的取值越小。Among them, cost_3 represents the third loss function, and curv represents the curvature of the moving path and/or the rate of change of the curvature, and the smaller the rate of change of the curvature and/or the curvature, the smaller the value of the third loss function.
第三损失函数是一种反映路径平滑性的损失函数,所述路径平滑性用于表征路径的弯折程度,而弯折程度通常可通过路径的曲率和/或曲率的变化率来表示。如果路径的弯折程度越小,则路径平滑性越好,如果路径的弯折程度越大,则路径平滑性越差。如图5所示,相对于实线路径,虚线路径具有更多的弯折,所以实线路径的平滑性好于虚线路径的平滑性。在不考虑其他因素、或者其他因素的影响基本相同的情况下,实线路径更容易被作为无人机的移动路径。通过第三损失函数,可使规划出的移动路径 更加平滑,尽量减少路径中的弯折,如果路径不可避免地出现折弯,也能尽量减小弯折的程度,从而可在一定程度上减小无人机的飞行里程、以及无人机姿态变化的剧烈程度,节省无人机的飞行时间和耗费的能量。The third loss function is a loss function reflecting the smoothness of the path, and the smoothness of the path is used to characterize the degree of bending of the path, and the degree of bending can usually be represented by the curvature and/or the rate of change of the curvature of the path. If the path is less curved, the path smoothness is better, and if the path is more curved, the path smoothness is poorer. As shown in Fig. 5, the dashed path has more bends than the solid line path, so the smoothness of the solid line path is better than that of the dashed line path. Without considering other factors, or the influence of other factors is basically the same, the solid line path is more likely to be used as the movement path of the UAV. Through the third loss function, the planned movement path can be made smoother, and the bending in the path can be minimized. The flight mileage of the small UAV and the drastic degree of the UAV attitude change save the UAV's flight time and energy consumption.
在一些示例中,所述损失函数还包括如下所示的第四损失函数:In some examples, the loss function further includes a fourth loss function as follows:
Cost=cost_4(range)Cost=cost_4(range)
其中,cost_4表示第四损失函数,range表示移动路径上的路径点与跟随目标之间的距离,且该距离越接近于预设跟踪距离,则第四损失函数的取值越小。Among them, cost_4 represents the fourth loss function, and range represents the distance between the path point on the moving path and the following target, and the closer the distance is to the preset tracking distance, the smaller the value of the fourth loss function.
第四损失函数是一种反映拍摄装置与跟随目标的距离大小的损失函数。在无人机对跟随目标进行跟踪的过程中,为了使跟随目标在拍摄装置所拍摄的图像中对应的像素区域位于预设位置或者具有预设尺寸,对拍摄装置与跟随目标之间的距离通常具有一定的约束,这个距离一般不能太近也不能太远,其应当位于一个预设跟踪距离范围内,否则将会影响跟随目标对应的像素区域的尺寸和/或位置。该预设跟踪距离可由用户通过遥控器设置,或者由无人机、拍摄装置和遥控器的至少一者自动设置。通过第四损失函数,使规划出的路径点与跟随目标的距离尽量接近于预设跟踪距离,这样以保证目标跟踪的拍摄效果。The fourth loss function is a loss function that reflects the distance between the photographing device and the following target. In the process of tracking the following target by the drone, in order to make the pixel area corresponding to the following target in the image captured by the photographing device at a preset position or having a preset size, the distance between the photographing device and the following target is usually determined. With certain constraints, this distance generally cannot be too close or too far, and it should be within a preset tracking distance range, otherwise the size and/or position of the pixel area corresponding to the tracking target will be affected. The preset tracking distance may be set by the user through the remote controller, or automatically set by at least one of the drone, the photographing device and the remote controller. Through the fourth loss function, the distance between the planned path point and the following target is as close as possible to the preset tracking distance, so as to ensure the shooting effect of target tracking.
以上对第一、第二、第三和第四损失函数进行了描述,但并不是说损失函数仅能包括这些损失函数中的其中一个。实际上,损失函数可包括第一、第二、第三和第四损失函数的至少一个。在一个示例中,损失函数可如下所示:The first, second, third and fourth loss functions are described above, but it does not mean that the loss function can only include one of these loss functions. In practice, the loss function may comprise at least one of the first, second, third and fourth loss functions. In one example, the loss function can look like this:
Cost=a*cost_1(target,obstacle)+b*cost_2(distance)+c*cost_3(curv)+d*cost_4(range)Cost=a*cost_1(target, obstacle)+b*cost_2(distance)+c*cost_3(curv)+d*cost_4(range)
其中,a、b、c、d分别表示第一、第二、第三和第四损失函数的加权系数。通过上述损失函数,可在确定无人机的移动路径时,同时考虑移动路径与拍摄目标之间的连线是否经过障碍物所在的区域、移动路径中的路径点与障碍物之间的距离、路径平滑性、以及移动路径上的路径点与跟随目标之间的距离,从而得到一条使损失函数Cost的代价值最小的移动路径。可分别设定a、b、c、d这四个加权系数,损失函数的加权系数越高,则在确定移动路径时,该损失函数对应的因素占比越重。反之,该损失函数 对应的因素占比越轻。用户可通过遥控器手动设置、或者无人机、拍摄装置和遥控器的至少之一可自动设置上述加权系数。通过给加权系数赋予不同的数值,可反映出不同因素在确定移动路径中的重要性。例如,如果用户更关心拍摄目标是否会被障碍物遮挡,可将第一损失函数的加权系数a设置的较大,将其他加权系数设置的较小。这样在规划移动路径时,将首先尽可能保证拍摄目标不被障碍物遮挡,在此基础上再考虑其他几个因素。Among them, a, b, c, d represent the weighting coefficients of the first, second, third and fourth loss functions, respectively. Through the above loss function, when determining the moving path of the UAV, it can also consider whether the connection between the moving path and the shooting target passes through the area where the obstacle is located, the distance between the path point in the moving path and the obstacle, The smoothness of the path and the distance between the path points on the moving path and the following target, so as to obtain a moving path that minimizes the cost of the loss function Cost. The four weighting coefficients a, b, c, and d can be set separately. The higher the weighting coefficient of the loss function, the greater the proportion of the factor corresponding to the loss function when determining the moving path. On the contrary, the proportion of factors corresponding to the loss function is lighter. The user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient. By assigning different values to the weighting coefficients, the importance of different factors in determining the moving path can be reflected. For example, if the user is more concerned about whether the shooting target will be blocked by obstacles, the weighting coefficient a of the first loss function can be set larger, and the other weighting coefficients can be set smaller. In this way, when planning the moving path, we will first try to ensure that the shooting target is not blocked by obstacles, and then consider several other factors on this basis.
以上只是损失函数的一个示例,在其他示例中,损失函数还可以是第一损失函数与第二、第三和第四损失函数中的其中一个或两个的加权和。例如,当用户仅关心拍摄目标是否会被障碍物遮挡、路径点与障碍物之间的距离是否合适时,可将损失函数可以是第一和第二四损失函数的加权和。The above is just one example of the loss function, and in other examples, the loss function may also be a weighted sum of the first loss function and one or both of the second, third and fourth loss functions. For example, when the user only cares about whether the shooting target will be blocked by obstacles and whether the distance between the waypoint and the obstacle is appropriate, the loss function can be a weighted sum of the first and second four loss functions.
由此可见,本实施例的控制方法,在确定移动路径时,将拍摄目标与障碍物之间的关系纳入考量,基于拍摄目标是否会被障碍物遮挡这一因素建立损失函数,并规划出对应的移动路径,从而使无人机沿移动路径对目标进行跟踪时,能使拍摄目标尽量甚至完全不被障碍物遮挡,从而提高了拍摄效果。同时,在确定移动路径时还可以同时考虑路径的安全性、平滑性,以及路径点与跟随目标之间的距离等其他因素,使规划出的路径在各个方面均能保证一定的良好效果。It can be seen that the control method of this embodiment takes the relationship between the shooting target and the obstacle into consideration when determining the moving path, establishes a loss function based on the factor of whether the shooting target will be blocked by the obstacle, and plans the corresponding Therefore, when the UAV tracks the target along the moving path, the shooting target can be prevented from being blocked by obstacles as much as possible or even completely, thereby improving the shooting effect. At the same time, other factors such as the safety and smoothness of the path, and the distance between the path point and the following target can also be considered when determining the moving path, so that the planned path can guarantee a certain good effect in all aspects.
本实施例的控制方法,还包括:确定无人机所处环境的环境类型,根据环境类型确定无人机的移动参数。The control method of this embodiment further includes: determining the environment type of the environment where the drone is located, and determining the movement parameters of the drone according to the environment type.
由于跟随目标通常处于移动状态,其可能出现在各种场景中,或者,在各种场景之间切换。当对跟随目标进行跟踪时,无人机所处的环境也会随之变化。场景中的背景目标能够反映出无人机所处环境的类型。Since the following target is usually in a moving state, it may appear in various scenes, or switch between various scenes. When the following target is tracked, the environment in which the drone is located will also change accordingly. Background objects in the scene can reflect the type of environment the drone is in.
在一些示例中,环境类型可包括障碍物密集类型和障碍物稀疏类型。所述“密集”和“稀疏”用于表征环境中障碍物的疏密程度,疏密程度会在一定程度上影响无人机的飞行状态。也就是说,在障碍物稀疏的环境和在障碍物密集的环境中,无人机应采取不同的飞行状态以保证拍摄效果和无人机的安全。In some examples, the environment types may include obstacle-dense types and obstacle-sparse types. The "dense" and "sparse" are used to characterize the density of obstacles in the environment, and the degree of density will affect the flight state of the UAV to a certain extent. That is to say, in an environment with sparse obstacles and in an environment with dense obstacles, the UAV should adopt different flight states to ensure the shooting effect and the safety of the UAV.
在一些示例中,根据拍摄装置所拍摄的图像中的背景目标,确定无人机所处环境的环境类型。如前所述,背景目标可包括:山川、河流、湖泊、森林、海面、沙滩、草原、各种建筑、地平线等,还可包括:天空、太阳、 月亮、云朵、朝霞、晚霞等。背景目标的类型、位置、数量、尺寸、相对位置关系中的至少之一可决定无人机所处的环境类型。例如,如果背景目标为湖泊、海面、沙滩、草原、天空,则可认为无人机所处环境为障碍物稀疏类型。如果背景目标为森林,则需要进一步判断树木的数量、尺寸等因素。当图像中的树木数量有限且尺寸较大,则可认为无人机处于森林之中,所处环境为障碍物密集类型;当图像中的树木数量很多且尺寸较小,则可认为无人机处于森林之外,所处环境为障碍物稀疏类型。对于建筑物,判断环境类型的方式与森林的情况类似。In some examples, the environment type of the environment in which the drone is located is determined according to the background target in the image captured by the photographing device. As mentioned above, background objects may include mountains, rivers, lakes, forests, seas, beaches, grasslands, various buildings, horizons, etc., and may also include sky, sun, moon, clouds, morning glow, sunset glow, and the like. At least one of the type, position, number, size, and relative positional relationship of the background target can determine the type of environment in which the drone is located. For example, if the background targets are lakes, seas, beaches, grasslands, and the sky, it can be considered that the environment in which the drone is located is sparse with obstacles. If the background target is a forest, it is necessary to further judge factors such as the number and size of trees. When the number of trees in the image is limited and the size is large, it can be considered that the UAV is in the forest and the environment is dense with obstacles; when the number of trees in the image is large and the size is small, it can be considered that the UAV is located Outside the forest, the environment is of sparse obstacle type. For buildings, the way of judging the type of environment is similar to the case of forests.
在另一些示例中,根据无人机搭载的探测装置的探测数据,确定无人机所处环境的环境类型。探测装置可以是无人机搭载的多种传感器,这些传感器可对外部环境进行感知,得到探测数据。传感器例如但不限于图像传感器、距离传感器、高程传感器等。通过分析传感器的探测数据即可确定环境类型是障碍物密集类型还是障碍物稀疏类型。In other examples, the environment type of the environment where the drone is located is determined according to the detection data of the detection device carried by the drone. The detection device can be a variety of sensors carried by the UAV, and these sensors can perceive the external environment and obtain detection data. Sensors such as, but not limited to, image sensors, distance sensors, elevation sensors, and the like. By analyzing the detection data of the sensor, it can be determined whether the type of the environment is a dense type of obstacles or a type of sparse obstacles.
无人机的飞行状态通常由移动参数表征。在一些示例中,无人机的移动参数包括无人机的速度,若环境类型为障碍物密集类型,则确定无人机的速度为第一速度;若环境类型为障碍物稀疏类型,则确定无人机的速度为第二速度,且第二速度大于第一速度。也就是说,当无人机在障碍物密集的环境中时,例如森林之中、建筑物群之中,无人机的飞行速度应当较小,这样可避免与障碍物发生碰撞,保证无人机的安全,并有利于保证拍摄装置的稳定性,提高拍摄效果。并且当跟随目标为人或动物时,可避免因无人机以较快的速度突然出现而对跟随目标造成惊吓,保证良好的跟踪效果。当无人机在障碍物稀疏的环境中时,例如沙滩、草原、湖泊等,无人机的飞行速度可较大,以为无人机的飞行提供较大的灵活性。The flight state of the UAV is usually characterized by movement parameters. In some examples, the movement parameter of the UAV includes the speed of the UAV. If the environment type is a dense obstacle type, the speed of the UAV is determined to be the first speed; if the environment type is a sparse obstacle type, it is determined The speed of the drone is the second speed, and the second speed is greater than the first speed. That is to say, when the drone is in an environment with dense obstacles, such as forests and buildings, the flying speed of the drone should be small, so as to avoid collision with obstacles and ensure that no one The safety of the camera is ensured, and the stability of the shooting device is ensured, and the shooting effect is improved. And when the following target is a person or an animal, it can avoid the frightening of the following target due to the sudden appearance of the drone at a relatively fast speed, and ensure a good tracking effect. When the UAV is in an environment with sparse obstacles, such as beaches, grasslands, lakes, etc., the flying speed of the UAV can be larger, which provides greater flexibility for the UAV to fly.
在另一些示例中,无人机的移动参数还包括拍摄装置的角速度,若环境类型为障碍物密集类型,则确定拍摄装置的角速度为第一角速度;若环境类型为障碍物稀疏类型,则确定拍摄装置的角速度为第二角速度,且第二角速度大于第一角速度。拍摄装置的角速度可包括绕航向轴、横滚轴、俯仰轴的至少之一的角速度,可反映拍摄装置的姿态变化率。角速度越大,则拍摄装置的姿态变化越剧烈,反之,则姿态变化越平缓。当无人机在障碍物密集的环境中时,拍摄装置的角速度可以较小,这样可以保证拍摄装 置的稳定性,提高拍摄效果。当无人机在障碍物稀疏的环境中时,拍摄装置的角速度可以较大,以为无人机的飞行提供较大的灵活性。In some other examples, the movement parameters of the UAV also include the angular velocity of the photographing device. If the environment type is a dense obstacle type, the angular velocity of the photographing device is determined to be the first angular velocity; if the environment type is a sparse obstacle type, it is determined The angular velocity of the photographing device is the second angular velocity, and the second angular velocity is greater than the first angular velocity. The angular velocity of the photographing device may include an angular velocity around at least one of a pan axis, a roll axis, and a pitch axis, and may reflect the attitude change rate of the photographing device. The greater the angular velocity, the more severe the change in the posture of the photographing device, and vice versa, the more gentle the change in the posture. When the drone is in an environment with dense obstacles, the angular velocity of the shooting device can be small, which can ensure the stability of the shooting device and improve the shooting effect. When the UAV is in an environment with sparse obstacles, the angular velocity of the photographing device can be larger to provide greater flexibility for the flight of the UAV.
在无人机沿移动路径绕行障碍物的过程中,本实施例的控制方法还包括:根据第一像素区域和/或第二像素区域调整所述拍摄装置的姿态。第一像素区域为跟随目标在拍摄装置所拍摄的图像中对应的像素区域;第二像素区域为背景目标在拍摄装置所拍摄的图像中对应的像素区域。During the process of the UAV circumnavigating the obstacle along the moving path, the control method of this embodiment further includes: adjusting the posture of the photographing device according to the first pixel area and/or the second pixel area. The first pixel area is the pixel area corresponding to the following target in the image captured by the photographing device; the second pixel area is the pixel area corresponding to the background target in the image captured by the photographing device.
本实施例的拍摄装置在拍摄时,不仅考虑跟随目标的位置,同时还将背景目标的位置纳入考量。可根据跟随目标对应的像素区域的位置、背景目标对应的像素区域的位置、或者,跟随目标和背景目标对应的像素区域的相对位置确定拍摄装置的姿态。在有些情况下,上述过程通常可称为构图。When photographing, the photographing apparatus of this embodiment not only considers the position of the following target, but also takes the position of the background target into consideration. The posture of the photographing device may be determined according to the position of the pixel area corresponding to the following target, the position of the pixel area corresponding to the background target, or the relative positions of the pixel areas corresponding to the following target and the background target. In some cases, the above process may be commonly referred to as composition.
在一些示例中,可根据第一像素区域和第二像素区域的相对位置关系,调整拍摄装置的姿态。所述相对位置关系可以是指第一像素区域和第二像素区域二者之间的距离、二者的像素坐标范围、二者的尺寸等。若相对位置关系为第一位置关系,则基于第一姿态调整策略调整拍摄装置的姿态;若相对位置关系为第二位置关系,则基于第二姿态调整策略调整拍摄装置的姿态;第二姿态调整策略不同于第一姿态调整策略。In some examples, the posture of the photographing device may be adjusted according to the relative positional relationship between the first pixel area and the second pixel area. The relative positional relationship may refer to the distance between the first pixel area and the second pixel area, the pixel coordinate range of the two, the size of the two, and the like. If the relative positional relationship is the first positional relationship, the posture of the photographing device is adjusted based on the first posture adjustment strategy; if the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on the second posture adjustment strategy; the second posture adjustment The strategy is different from the first posture adjustment strategy.
在一些示例中,所述相对位置关系可包括:第一像素区域与第二像素区域是否有重合。当第一位置关系为第一像素区域与第二像素区域没有重合时,第一姿态调整策略包括:使图像中心位于第一像素区域与第二像素区域之间。In some examples, the relative positional relationship may include: whether the first pixel area and the second pixel area overlap. When the first positional relationship is that the first pixel area and the second pixel area do not overlap, the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area.
如图6所示,图像中同时出现了跟随目标与背景目标,跟随目标整体完全出现在图像中。背景目标的尺寸较小、或者距离拍摄装置较远,其整体也完全出现图像中。跟随目标与背景目标之间没有重叠。在这种情况下,通过调节拍摄装置的姿态,使图像中心位于背景目标与跟随目标之间。在一些示例中,可通过以下公式计算拍摄装置的姿态调节量:As shown in Fig. 6, the following target and the background target appear in the image at the same time, and the entire following target completely appears in the image. The size of the background object is small, or the distance from the photographing device is far away, and the whole of it also fully appears in the image. There is no overlap between the following target and the background target. In this case, by adjusting the posture of the photographing device, the center of the image is located between the background target and the following target. In some examples, the attitude adjustment amount of the camera can be calculated by the following formula:
Error(pitch)=0–(a*y(target)+b*y(background))/2  (1)Error(pitch)=0–(a*y(target)+b*y(background))/2 (1)
Error(yaw)=0–(a*x(target)+b*x(background))/2   (2)Error(yaw)=0–(a*x(target)+b*x(background))/2 (2)
其中,pitch表示俯仰角,yaw表示航向角;Error()表示拍摄装置的姿态调节量;x(target)、y(target)分别表示跟随目标在预定坐标系下的位置坐 标;x(background)、y(background)分别表示背景目标在同一预定坐标系的位置坐标;a、b为加权系数,表示将跟随目标和背景目标留在画面中心位置的权重,在计算图像中心位于背景目标与跟随目标之间的具体位置时,加权系数表示跟随目标与背景目标二者位置的占比。预定坐标系可以是像素坐标系,也可以是图像坐标系。Among them, pitch represents the pitch angle, yaw represents the heading angle; Error() represents the attitude adjustment amount of the shooting device; x(target), y(target) respectively represent the position coordinates of the following target in the predetermined coordinate system; x(background), y(background) respectively represents the position coordinates of the background target in the same predetermined coordinate system; a and b are the weighting coefficients, which indicate the weight of keeping the following target and the background target at the center of the screen, and the center of the calculated image is located between the background target and the following target. When the specific position is between, the weighting coefficient represents the proportion of the position of the following target and the background target. The predetermined coordinate system may be a pixel coordinate system or an image coordinate system.
对于图6所示的示例,用户可通过遥控器手动设置、或者无人机、拍摄装置和遥控器的至少之一可自动设置上述加权系数。通过给加权系数赋予不同的数值,可反映出不同目标在构图中的重要性。例如,如果用户更倾向于使跟随目标靠近图像中心,那么可将加权系数a设置为大于加权系数b。反之,如果用户更倾向于使背景目标靠近图像中心,那么可将加权系数b设置为大于加权系数a。For the example shown in FIG. 6 , the user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient. By assigning different values to the weighting coefficients, the importance of different objects in the composition can be reflected. For example, if the user prefers to make the following target closer to the center of the image, the weighting coefficient a may be set larger than the weighting coefficient b. Conversely, if the user prefers to make the background object closer to the center of the image, the weighting coefficient b may be set larger than the weighting coefficient a.
以上描述中,图像中心位于第一像素区域与第二像素区域之间,但是本实施例不限于此。还可以使图像的其他指定位置位于第一像素区域与第二像素区域之间。其他指定位置可以是用户通过遥控器手动设置、或者无人机、拍摄装置和遥控器的至少之一自动设置的位置。In the above description, the image center is located between the first pixel area and the second pixel area, but the embodiment is not limited thereto. Other designated positions of the image may also be located between the first pixel area and the second pixel area. The other designated positions may be positions manually set by the user through the remote controller, or automatically set by at least one of the drone, the camera, and the remote controller.
当第二位置关系为第一像素区域位于第二像素区域内,此时通常可分两种情况考虑。当所述第二像素区域占满整个图像时,第二姿态调整策略可包括:使第一像素区域位于所述图像中的指定位置。当所述第二像素区域未占满整个图像时,第二姿态调整策略可包括:使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值。When the second positional relationship is that the first pixel area is located in the second pixel area, two situations can be considered at this time. When the second pixel area occupies the entire image, the second posture adjustment strategy may include: positioning the first pixel area at a designated position in the image. When the second pixel area does not occupy the entire image, the second posture adjustment strategy may include: making the distance between the edge pixels of the second pixel area and the edge of the image smaller than a preset distance threshold.
当背景目标距离拍摄装置距离较近、或尺寸较大时,背景目标对应的第二像素区域很可能会占满整个图像。在这种情况下,可只考虑跟随目标对应的像素区域在图像中的位置。如图7所示,背景目标对应的像素区域占满了整个图像,在这种情况下,可通过以下公式计算拍摄装置的姿态调节量:When the background object is relatively close to the photographing device or has a larger size, the second pixel area corresponding to the background object is likely to occupy the entire image. In this case, only the position of the pixel area corresponding to the following target in the image can be considered. As shown in Figure 7, the pixel area corresponding to the background target occupies the entire image. In this case, the attitude adjustment amount of the photographing device can be calculated by the following formula:
Error(pitch)=0–y(target)   (3)Error(pitch)=0–y(target) (3)
Error(yaw)=0–x(target)    (4)Error(yaw)=0–x(target) (4)
其中,各个符号的含义请参见公式(1)和(2)。Among them, please refer to formula (1) and (2) for the meaning of each symbol.
当指定位置为图像中心时,拍摄装置分别在航向和俯仰方向旋转上述公式得到的姿态调节量,跟随目标对应的第一像素区域即可位于图像中心。When the designated position is the center of the image, the camera rotates the attitude adjustment amount obtained by the above formula in the heading and pitch directions respectively, and the first pixel area corresponding to the following target can be located at the center of the image.
在另一些情况下,拍摄装置可能拍摄到了背景目标的部分边缘,这时第二像素区域未占满整个图像。在这种情况下,可在跟随目标出现在图像中的前提下,使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值,即尽量使更多的背景目标出现的图像中。可通过以下公式计算拍摄装置的姿态调节量:In other cases, the photographing device may have photographed part of the edge of the background object, and at this time, the second pixel area does not occupy the entire image. In this case, on the premise that the following target appears in the image, the distance between the edge pixels of the second pixel area and the edge of the image can be smaller than the preset distance threshold, that is, try to make more background targets appear. in the image. The attitude adjustment amount of the camera can be calculated by the following formula:
Error(pitch)=a*(0–y(target))+b*(h–y(boundary))  (5)Error(pitch)=a*(0-y(target))+b*(h-y(boundary)) (5)
Error(yaw)=a*(0–x(target))+b*(w–x(boundary))  (6)Error(yaw)=a*(0–x(target))+b*(w–x(boundary)) (6)
其中,h和w分别表示图像的高度和宽度,其余符号的含义请参见公式(1)和(2)。Among them, h and w represent the height and width of the image, respectively, and the meanings of the remaining symbols are shown in formulas (1) and (2).
如图8所示,背景目标并未占满整个图像。通过上述公式计算姿态调节量,这样可使跟随目标对应的第一像素区域位于图像中的同时,背景目标对应的第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值。这样可使背景目标尽可能多地出现在图像中。用户可通过遥控器手动设置和调整、或者无人机、拍摄装置和遥控器的至少之一可自动设置或调整所述预设距离阈值。As shown in Figure 8, the background object does not occupy the entire image. The attitude adjustment amount is calculated by the above formula, so that while the first pixel area corresponding to the following target is located in the image, the distance between the edge pixels of the second pixel area corresponding to the background target and the edge of the image is smaller than the preset distance threshold . This allows the background objects to appear in the image as much as possible. The preset distance threshold may be manually set and adjusted by a user through a remote control, or automatically set or adjusted by at least one of the drone, the photographing device and the remote control.
本领域技术人员应当理解,虽然以上描述了第一位置关系和第二位置关系,以及对应的第一姿态调整策略和第二姿态调整策略,但这只是示例性说明,本实施例并不限于此。第一像素区域和第二像素区域的相对位置关系可以是多种多样的,其对应有不同的姿态调整策略。It should be understood by those skilled in the art that although the first positional relationship and the second positional relationship, as well as the corresponding first attitude adjustment strategy and the second attitude adjustment strategy are described above, this is only an exemplary illustration, and the embodiment is not limited thereto. . The relative positional relationship between the first pixel area and the second pixel area can be various, and corresponding to different attitude adjustment strategies.
在另一些示例中,可根据第二像素区域的形状调整拍摄装置的姿态。若第二像素区域的形状为第一类型,则基于第三姿态调整策略调整拍摄装置的姿态;若第二像素区域的形状为第二类型,则基于第四姿态调整策略调整拍摄装置的姿态,第四姿态调整策略不同于第三姿态调整策略。In other examples, the posture of the photographing device may be adjusted according to the shape of the second pixel area. If the shape of the second pixel area is of the first type, the posture of the photographing device is adjusted based on the third posture adjustment strategy; if the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted based on the fourth posture adjustment strategy, The fourth attitude adjustment strategy is different from the third attitude adjustment strategy.
在一些示例中,所述第一类型为线型,第三姿态调整策略包括:使第二像素区域经过图像中的指定位置,第一像素区域在图像的至少一个方向上与指定位置重合。In some examples, the first type is a line type, and the third posture adjustment strategy includes: passing the second pixel area through a designated position in the image, and the first pixel area coincides with the designated position in at least one direction of the image.
对于一些背景目标,其对应的第二像素区域呈一条直线或曲线。例如,地平线。地平线通常可以是海面、草原、沙漠分别与天空的交界线。如图9所示,对于类似地平线的线型背景目标,使第二像素区域经过图像中的指定位置是指:拍摄装置在俯仰轴方向旋转俯仰角调节量,使地平线经过 图像中心;第一像素区域在图像的至少一个方向上与指定位置重合是指:拍摄装置在航向轴方向旋转航向角调节量,使跟随目标的中心在航向方向上与图像中心重合。如果第二像素区域为曲线,则使曲线的沿图像水平方向的中点经过图像中心。这样使地平线位于图像垂直方向的中心位置,且跟随目标在图像水平方向的中心位置,跟随目标呈现在地平线以及两侧的背景前,符合审美习惯,提高了拍摄装置的拍摄效果。For some background objects, the corresponding second pixel area is a straight line or a curve. For example, horizon. The horizon can usually be the boundary between the sea, grassland, and desert and the sky. As shown in Figure 9, for a linear background target similar to the horizon, making the second pixel area pass through the designated position in the image means: the camera rotates the pitch angle adjustment amount in the direction of the pitch axis, so that the horizon passes through the center of the image; the first pixel The area coincides with the designated position in at least one direction of the image means: the camera rotates the heading angle adjustment amount in the direction of the heading axis, so that the center of the following target coincides with the center of the image in the heading direction. If the second pixel area is a curve, the midpoint of the curve along the horizontal direction of the image passes through the center of the image. In this way, the horizon is located at the center of the vertical direction of the image, and the following target is located at the center of the horizontal direction of the image, and the following target is presented in front of the horizon and the backgrounds on both sides, which conforms to aesthetic habits and improves the shooting effect of the shooting device.
在另一些示例中,所述第二类型为面型,第四姿态调整策略包括:若第一像素区域与第二像素区域没有重合,则调整拍摄装置的姿态以使图像的中心位于第一像素区域与第二像素区域之间;若第一像素区域位于第二像素区域内,则调整拍摄装置的姿态以使第一像素区域位于图像中的指定位置;和/或,使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值。In other examples, the second type is a face shape, and the fourth posture adjustment strategy includes: if the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located at the first pixel between the area and the second pixel area; if the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the second pixel area The distance between the edge pixel and the edge of the image is less than the preset distance threshold.
第二像素区域为面型的背景目标有多种,例如,前述提到的山川、湖泊、海面、沙滩、草原、天空等。对于此类目标,可根据第一像素区域与第二像素区域是否有重合来确定姿态调整方式。在一些示例中,当第一像素区域与第二像素区域没有重合,调整拍摄装置的姿态以使图像的中心位于第一像素区域与第二像素区域之间的方式,与前述根据第一像素区域与第二像素区域的相对位置关系为没有重合的方式是类似的。同样,当第一像素区域位于第二像素区域内,调整拍摄装置的姿态以使第一像素区域位于图像中的指定位置;和/或,使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值,与前述根据第一像素区域与第二像素区域的相对位置关系为第一像素区域位于第二像素区域内的方式是也类似的。There are many kinds of background objects in which the second pixel area is a surface, for example, the aforementioned mountains, lakes, seas, beaches, grasslands, and the sky. For such a target, the attitude adjustment method can be determined according to whether the first pixel area and the second pixel area overlap. In some examples, when the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located between the first pixel area and the second pixel area is the same as the aforementioned method according to the first pixel area. The relative positional relationship with the second pixel area is similar in that there is no overlap. Similarly, when the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the edge pixels of the second pixel area and the edge of the image The distance between them is smaller than the preset distance threshold, which is similar to the aforementioned manner in which the first pixel area is located in the second pixel area according to the relative positional relationship between the first pixel area and the second pixel area.
在另一些示例中,还可根据背景目标的类型调整拍摄装置的姿态。若背景目标的类型为第一背景类型,则基于第五姿态调整策略调整拍摄装置的姿态;若背景目标的类型为第二背景类型,则基于第六姿态调整策略调整拍摄装置的姿态,第六姿态调整策略不同于第五姿态调整策略。In other examples, the pose of the camera may also be adjusted according to the type of background object. If the type of the background target is the first background type, the posture of the photographing device is adjusted based on the fifth posture adjustment strategy; if the type of the background target is the second background type, the posture of the photographing device is adjusted based on the sixth posture adjustment strategy. The attitude adjustment strategy is different from the fifth attitude adjustment strategy.
第一背景类型可以为地表类型,第五姿态调整策略可包括:使第一像素区域位于图像宽度方向的上半区域,第二像素区域位于图像宽度方向的下半区域;第二背景类型可以为非地表类型,第六姿态调整策略包括:使第一像素区域位于图像宽度方向的下半区域,第二像素区域位于图像宽度 方向的上半区域。The first background type may be a surface type, and the fifth posture adjustment strategy may include: the first pixel area is located in the upper half area of the image width direction, and the second pixel area is located in the lower half area in the image width direction; the second background type may be For non-surface types, the sixth attitude adjustment strategy includes: making the first pixel area located in the lower half area in the width direction of the image, and the second pixel area in the upper half area in the width direction of the image.
在一些示例中,所述地表类型可包括:山川、河流、湖泊、森林、海面、沙滩、草原、建筑等根植于地面的背景目标,所述非地表类型可包括:天空、太阳、月亮、云朵等背景目标。In some examples, the surface types may include: mountains, rivers, lakes, forests, seas, beaches, grasslands, buildings and other background objects rooted in the ground, and the non-surface types may include: sky, sun, moon, clouds and other background targets.
当第一背景类型为地表类型时,在一些情况下,跟随目标可能位于背景目标的上方。例如,当背景目标为草原、海面或湖泊,且将鸟类或无人机作为跟随目标时,这些跟随目标通常在这些背景目标上空移动,这时可使第一像素区域位于图像宽度方向的上半区域,第二像素区域位于图像宽度方向的下半区域,这样更加符合用户的观察习惯,有利于拍摄效果的改善。When the first background type is a surface type, the following target may be located above the background target in some cases. For example, when the background targets are grasslands, seas or lakes, and birds or drones are used as the following targets, these following targets usually move over these background targets, at this time, the first pixel area can be located in the width direction of the image. Half area, the second pixel area is located in the lower half area in the width direction of the image, which is more in line with the user's observation habits and is conducive to the improvement of the shooting effect.
由此可见,本实施例在确定跟随目标在图像中的位置时,不仅考虑跟随目标本身,同时还考虑背景目标,以及背景目标与跟随目标的相对位置关系、背景目标对应的像素区域的形状等因素,相对于现有技术的在构图中只考虑跟随目标的方式,本申请拍摄的图像的内容更加丰富、层次感更强,提升了拍摄效果,对各种场景都有很强的适应性和通用性。同时本申请可通过调节加权系数灵活地确定跟随目标和背景目标在图像中的位置,为拍摄装置的构图带来了更多的灵活性和便利性。It can be seen that in this embodiment, when determining the position of the following target in the image, not only the following target itself, but also the background target, the relative positional relationship between the background target and the following target, the shape of the pixel area corresponding to the background target, etc. are considered. Compared with the prior art, which only considers following the target in the composition, the content of the images shot in the present application is richer, the sense of hierarchy is stronger, the shooting effect is improved, and it has strong adaptability and adaptability to various scenes. Universality. At the same time, the present application can flexibly determine the positions of the following target and the background target in the image by adjusting the weighting coefficient, which brings more flexibility and convenience to the composition of the photographing device.
以上介绍了根据拍摄目标的位置信息和障碍物的位置信息,确定可移动平台绕行障碍物的移动路径的过程。如前所述,其中提到的障碍物可以是电线杆、路灯、户外标志牌、户外广告牌、以及一些情况下的背景目标等。此类障碍物可认为是通常意义上的障碍物,或者说是一种实体障碍物。但是在一些情况下,仅仅在确定移动路径的过程考虑这类障碍物可能是不够的,这可能会在一定程度上影响无人机的目标跟踪效果,尤其是无人机的飞行安全性和拍摄装置的稳定性。因此,在本实施例中,还可将无人机所处环境中的禁飞区作为障碍物,并根据拍摄目标的位置信息和禁飞区的位置信息,确定无人机绕行障碍物和禁飞区的移动路径。The above describes the process of determining the moving path of the movable platform around the obstacle according to the position information of the shooting target and the position information of the obstacle. As mentioned above, the obstacles mentioned therein may be utility poles, street lights, outdoor signs, outdoor billboards, and background targets in some cases. Such obstacles can be considered as obstacles in the usual sense, or a solid obstacle. However, in some cases, it may not be enough to only consider such obstacles in the process of determining the moving path, which may affect the target tracking effect of the UAV to a certain extent, especially the flight safety and shooting of the UAV. device stability. Therefore, in this embodiment, the no-fly zone in the environment where the UAV is located can also be used as an obstacle, and according to the position information of the shooting target and the position information of the no-fly zone, it is determined that the UAV bypasses the obstacle and the The movement path of the no-fly zone.
本实施例中,所述禁飞区可看作一种虚拟障碍物,其可以有多种实现方式。在一些示例中,所述禁飞区由电子围栏设备确定。电子围栏设备,又称地理围栏设备,提供在某一位置处并且声称一个或多个电子围栏边界,电子围栏边界围成所述禁飞区,并在电子围栏边界之内管制无人机的活动。In this embodiment, the no-fly zone can be regarded as a kind of virtual obstacle, which can be implemented in multiple ways. In some examples, the no-fly zone is determined by an electronic fence device. Electronic fence devices, also known as geo-fencing devices, are provided at a location and claim one or more electronic fence boundaries that enclose the no-fly zone and control the movement of drones within the electronic fence boundaries .
电子围栏设备可固定设立在某一位置处,也可以是可易于移动的和/或可携带的。电子围栏设备可以是任何类型的设备,例如,视觉标识设备、音频标识设备、无线电标识设备。视觉标识设备可以是可被无人机的光学传感器感测的设备;音频标识设备可以是可被无人机的音频采集装置感测的设备;无线电标识设备可以包括:移动终端、台式计算机、便携式计算机等,也可以是另一架无人机或者无人机的停靠站。The electronic fence device can be fixed at a certain location, or it can be easily movable and/or portable. The electronic fence device can be any type of device, eg visual identification device, audio identification device, radio identification device. The visual identification device can be a device that can be sensed by the optical sensor of the drone; the audio identification device can be a device that can be sensed by the audio collection device of the drone; the radio identification device can include: mobile terminals, desktop computers, portable A computer, etc., it can also be another drone or a docking station for a drone.
电子围栏设备通常与一组或多组飞行管制关联,所述飞行管制用于指示禁飞区的管制内容,例如禁止无人机飞行、限制无人机在一定条件下飞行等。针对不同的无人机、操作无人机的不同用户、不同的电子围栏设备可能会有不同的飞行管制。An electronic fence device is usually associated with one or more sets of flight controls, which are used to indicate the control content of a no-fly zone, such as prohibiting drones from flying, restricting drones from flying under certain conditions, and so on. There may be different flight controls for different drones, different users operating drones, and different electronic fence equipment.
无人机周围的禁飞区的位置信息可通过无人机自身的位置信息搜索得到。在一些示例中,无人机自身即可得到禁飞区的位置信息。无人机本地可存储有地图数据,地图数据包括各种地域范围内的禁飞区的位置信息。无人机通过位置传感器得到自身的位置信息后,通过查询本地存储的地图数据,从而得到无人机周围预设范围内的禁飞区的位置信息。或者,无人机本地可能并没有存储地图数据,而是通过远程设备(例如,云端服务器)获取地图数据,通过查询获取的地图数据,从而得到无人机周围预设范围内的禁飞区的位置信息。The location information of the no-fly zone around the drone can be obtained by searching the location information of the drone itself. In some examples, the location of the no-fly zone is available to the drone itself. The UAV can store map data locally, and the map data includes the location information of the no-fly zones within various geographical ranges. After the UAV obtains its own position information through the position sensor, it can obtain the position information of the no-fly zone within the preset range around the UAV by querying the locally stored map data. Alternatively, the UAV may not store the map data locally, but obtain the map data through a remote device (for example, a cloud server), and query the obtained map data to obtain the information of the no-fly zone within the preset range around the UAV. location information.
根据拍摄目标的位置信息和禁飞区的位置信息确定移动路径的方式,与前述根据拍摄目标的位置信息和障碍物的位置信息确定移动路径的方式是类似的。在确定移动路径时,将禁飞区与障碍物同等看待,或者将禁飞区当做障碍物的一种即可,前述所有适用于障碍物的步骤和操作均适应于禁飞区。例如,移动路径上的路径点与禁飞区的距离越大,则第二损失函数的取值越小。The manner of determining the movement path according to the position information of the photographed target and the position information of the no-fly zone is similar to the foregoing manner of determining the movement path according to the position information of the photographed target and the position information of obstacles. When determining the moving path, treat the no-fly zone as an obstacle, or treat the no-fly zone as a type of obstacle. All the aforementioned steps and operations applicable to obstacles are applicable to the no-fly zone. For example, the larger the distance between the waypoint on the moving path and the no-fly zone, the smaller the value of the second loss function.
如图10所示,带箭头的实线表示移动路径。如果无人机周围存在禁飞区,在确定移动路径时,基于拍摄目标的位置信息,并根据禁飞区的位置信息、或禁飞区和障碍物二者的位置信息,来确定移动路径的路径点。由于考虑了禁飞区的因素,禁飞区与障碍物之间的区域可认为是可通行区域,规划出的移动路径从可通信区域穿过,而不会进入禁飞区。As shown in FIG. 10 , the solid line with arrows indicates the movement path. If there is a no-fly zone around the UAV, when determining the movement path, the position information of the shooting target, and the position information of the no-fly zone, or the position information of both the no-fly zone and the obstacle are used to determine the movement path. waypoint. Due to the consideration of the no-fly zone, the area between the no-fly zone and the obstacle can be regarded as a passable area, and the planned movement path passes through the communicable area without entering the no-fly zone.
传统方式在确定目标跟踪的移动路径时,通常只考虑障碍物的影响, 没有考虑过禁飞区的影响,使得无人机沿移动路径飞行时常常意外地闯入禁飞区,这会导致无人机违反相关的飞行管制,带来一系列的安全问题。有些情况下,当无人机进入禁飞区或者非常接近禁飞区时才会采取相应的行动,这些行动一般包括:立即降落、无人机飞行方向的骤然变化,无人机的速度、姿态等飞行参数会发生剧烈变化,这非常不利于无人机飞行的平滑性和拍摄装置的稳定性。本实施例可通过拍摄目标的位置信息和禁飞区的位置信息确定移动路径,这样当无人机沿移动路径飞行时,如果其周围存在禁飞区,无人机可以像对待障碍物那样在到达禁飞区之间就提前减速,或者提前改变飞行方向绕开禁飞区,从而避免闯入禁飞区,提升飞行安全性,同时提前减速和变向操作使无人机的速度、姿态等飞行参数的变化更加平滑,提升了无人机飞行的平滑性和拍摄装置的稳定性。When determining the moving path of target tracking, the traditional method usually only considers the influence of obstacles and does not consider the influence of the no-fly zone, so that the UAV often accidentally breaks into the no-fly zone when flying along the moving path, which will lead to no flight. Humans and aircraft violate relevant flight controls, which brings a series of safety problems. In some cases, corresponding actions will be taken when the drone enters the no-fly zone or is very close to the no-fly zone. These actions generally include: immediate landing, sudden changes in the flight direction of the drone, speed and attitude of the drone Such flight parameters will change drastically, which is very detrimental to the smoothness of the drone's flight and the stability of the shooting device. In this embodiment, the moving path can be determined by the location information of the photographed target and the location information of the no-fly zone, so that when the drone flies along the moving path, if there is a no-fly zone around it, the drone can operate in the same way as an obstacle. Before reaching the no-fly zone, decelerate in advance, or change the flight direction in advance to bypass the no-fly zone, so as to avoid entering the no-fly zone and improve flight safety. The change of flight parameters is smoother, which improves the smoothness of the drone flight and the stability of the shooting device.
本公开另一实施例提供了一种可移动平台的控制方法,所述可移动平台包括拍摄装置,如图11所示,该控制方法包括:Another embodiment of the present disclosure provides a control method for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 11 , the control method includes:
S1101:获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;S1101: Acquire a first pixel area corresponding to a following target and a second pixel area corresponding to a background target in the image captured by the photographing device;
S1102:根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。S1102: Adjust the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area.
本实施例的可移动平台与上一实施例的可移动平台是类似的。以下以无人机这种可移动平台为例,对本实施例的控制方法进行说明。The movable platform of this embodiment is similar to the movable platform of the previous embodiment. The control method of this embodiment will be described below by taking a movable platform such as an unmanned aerial vehicle as an example.
在无人机沿移动路径飞行、拍摄装置对拍摄目标进行拍摄时,不仅考虑跟随目标的位置,同时还将背景目标的位置纳入考量。可根据跟随目标对应的第一像素区域与背景目标对应的第二像素区域的相对位置确定拍摄装置的姿态。本实施例控制方法的部分步骤、操作、流程可与上一实施例的对应部分相似。所述相对位置关系可以是指第一像素区域和第二像素区域二者之间的距离、二者的像素坐标范围、二者的尺寸等。When the drone flies along the moving path and the shooting device shoots the shooting target, not only the position of the following target, but also the position of the background target is considered. The posture of the photographing device may be determined according to the relative positions of the first pixel area corresponding to the following target and the second pixel area corresponding to the background target. Part of the steps, operations, and flow of the control method in this embodiment may be similar to the corresponding parts in the previous embodiment. The relative positional relationship may refer to the distance between the first pixel area and the second pixel area, the pixel coordinate range of the two, the size of the two, and the like.
在一些示例中,若第二像素区域的形状为第一类型,则执行根据第一像素区域和第二像素区域的相对位置关系,调整拍摄装置的姿态的步骤。In some examples, if the shape of the second pixel area is of the first type, the step of adjusting the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area is performed.
当第一类型为面型时,若相对位置关系为第一位置关系,则基于第一姿态调整策略调整拍摄装置的姿态;若相对位置关系为第二位置关系,则基于第二姿态调整策略调整拍摄装置的姿态;第二姿态调整策略不同于第 一姿态调整策略。When the first type is a face type, if the relative positional relationship is the first positional relationship, then adjust the posture of the photographing device based on the first posture adjustment strategy; if the relative positional relationship is the second positional relationship, adjust based on the second posture adjustment strategy The posture of the photographing device; the second posture adjustment strategy is different from the first posture adjustment strategy.
在一些示例中,所述相对位置关系可包括:第一像素区域与第二像素区域是否有重合。当第一位置关系为第一像素区域与第二像素区域没有重合时,第一姿态调整策略包括:使图像中心位于第一像素区域与第二像素区域之间。In some examples, the relative positional relationship may include: whether the first pixel area and the second pixel area overlap. When the first positional relationship is that the first pixel area and the second pixel area do not overlap, the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area.
如图6所示,图像中同时出现了跟随目标与背景目标,跟随目标整体完全出现在图像中。背景目标的尺寸较小、或者距离拍摄装置较远,其整体也完全出现图像中。跟随目标与背景目标之间没有重叠。在这种情况下,通过调节拍摄装置的姿态,使图像中心位于背景目标与跟随目标之间。在一些示例中,可通过以下公式计算拍摄装置的姿态调节量:As shown in Fig. 6, the following target and the background target appear in the image at the same time, and the entire following target completely appears in the image. The size of the background object is small, or the distance from the photographing device is far away, and the whole of it also fully appears in the image. There is no overlap between the following target and the background target. In this case, by adjusting the posture of the photographing device, the center of the image is located between the background target and the following target. In some examples, the attitude adjustment amount of the camera can be calculated by the following formula:
Error(pitch)=0–(a*y(target)+b*y(background))/2  (1)Error(pitch)=0–(a*y(target)+b*y(background))/2 (1)
Error(yaw)=0–(a*x(target)+b*x(background))/2   (2)Error(yaw)=0–(a*x(target)+b*x(background))/2 (2)
其中,pitch表示俯仰角,yaw表示航向角;Error()表示拍摄装置的姿态调节量;x(target)、y(target)分别表示跟随目标在预定坐标系下的位置坐标;x(background)、y(background)分别表示背景目标在同一预定坐标系的位置坐标;a、b为加权系数,表示将跟随目标和背景目标留在画面中心位置的权重,在计算图像中心位于背景目标与跟随目标之间的具体位置时,加权系数表示跟随目标与背景目标二者位置的占比。预定坐标系可以是像素坐标系,也可以是图像坐标系。Among them, pitch represents the pitch angle, yaw represents the heading angle; Error() represents the attitude adjustment amount of the shooting device; x(target), y(target) respectively represent the position coordinates of the following target in the predetermined coordinate system; x(background), y(background) respectively represents the position coordinates of the background target in the same predetermined coordinate system; a and b are the weighting coefficients, indicating the weight of keeping the following target and the background target at the center of the screen, and the center of the calculated image is located between the background target and the following target. When the specific position between the two, the weighting coefficient represents the proportion of the position of the following target and the background target. The predetermined coordinate system may be a pixel coordinate system or an image coordinate system.
对于图6所示的示例,用户可通过遥控器手动设置、或者无人机、拍摄装置和遥控器的至少之一可自动设置上述加权系数。通过给加权系数赋予不同的数值,可反映出不同目标在构图中的重要性。例如,如果用户更倾向于使跟随目标靠近图像中心,那么可将加权系数a设置为大于加权系数b。反之,如果用户更倾向于使背景目标靠近图像中心,那么可将加权系数b设置为大于加权系数a。For the example shown in FIG. 6 , the user may manually set the weighting coefficient through the remote controller, or at least one of the drone, the photographing device and the remote controller may automatically set the above-mentioned weighting coefficient. By assigning different values to the weighting coefficients, the importance of different objects in the composition can be reflected. For example, if the user prefers to make the following target closer to the center of the image, the weighting coefficient a may be set larger than the weighting coefficient b. Conversely, if the user prefers to make the background object closer to the center of the image, the weighting coefficient b may be set larger than the weighting coefficient a.
以上描述中,图像中心位于第一像素区域与第二像素区域之间,但是本实施例不限于此。还可以使图像的其他指定位置位于第一像素区域与第二像素区域之间。其他指定位置可以是用户通过遥控器手动设置、或者无人机、拍摄装置和遥控器的至少之一自动设置的位置。In the above description, the image center is located between the first pixel area and the second pixel area, but the embodiment is not limited thereto. Other designated positions of the image may also be located between the first pixel area and the second pixel area. The other designated positions may be positions manually set by the user through the remote controller, or automatically set by at least one of the drone, the camera, and the remote controller.
当第二位置关系为第一像素区域位于第二像素区域内,此时通常可分 两种情况考虑。当所述第二像素区域占满整个图像时,第二姿态调整策略可包括:使第一像素区域位于所述图像中的指定位置。当所述第二像素区域未占满整个图像时,第二姿态调整策略可包括:使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值。When the second positional relationship is that the first pixel area is located in the second pixel area, two situations can be considered at this time. When the second pixel area occupies the entire image, the second posture adjustment strategy may include: positioning the first pixel area at a designated position in the image. When the second pixel area does not occupy the entire image, the second posture adjustment strategy may include: making the distance between the edge pixels of the second pixel area and the edge of the image smaller than a preset distance threshold.
当背景目标距离拍摄装置距离较近、或尺寸较大时,背景目标对应的第二像素区域很可能会占满整个图像。在这种情况下,可只考虑跟随目标对应的像素区域在图像中的位置。如图7所示,背景目标对应的像素区域占满了整个图像,在这种情况下,可通过以下公式计算拍摄装置的姿态调节量:When the background object is relatively close to the photographing device or has a larger size, the second pixel area corresponding to the background object is likely to occupy the entire image. In this case, only the position of the pixel area corresponding to the following target in the image can be considered. As shown in Figure 7, the pixel area corresponding to the background target occupies the entire image. In this case, the attitude adjustment amount of the photographing device can be calculated by the following formula:
Error(pitch)=0–y(target)  (3)Error(pitch)=0–y(target) (3)
Error(yaw)=0–x(target)  (4)Error(yaw)=0–x(target) (4)
其中,各个符号的含义请参见公式(1)和(2)。Among them, please refer to formula (1) and (2) for the meaning of each symbol.
当指定位置为图像中心时,拍摄装置分别在航向和俯仰方向旋转上述公式得到的姿态调节量,跟随目标对应的第一像素区域即可位于图像中心。When the designated position is the center of the image, the camera rotates the attitude adjustment amount obtained by the above formula in the heading and pitch directions respectively, and the first pixel area corresponding to the following target can be located at the center of the image.
在另一些情况下,拍摄装置可能拍摄到了背景目标的部分边缘,这时第二像素区域未占满整个图像。在这种情况下,可在跟随目标出现在图像中的前提下,使第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值,即尽量使更多的背景目标出现的图像中。可通过以下公式计算拍摄装置的姿态调节量:In other cases, the photographing device may have photographed part of the edge of the background object, and at this time, the second pixel area does not occupy the entire image. In this case, on the premise that the following target appears in the image, the distance between the edge pixels of the second pixel area and the edge of the image can be smaller than the preset distance threshold, that is, try to make more background targets appear. in the image. The attitude adjustment amount of the camera can be calculated by the following formula:
Error(pitch)=a*(0–y(target))+b*(h–y(boundary))  (5)Error(pitch)=a*(0-y(target))+b*(h-y(boundary)) (5)
Error(yaw)=a*(0–x(target))+b*(w–x(boundary))   (6)Error(yaw)=a*(0–x(target))+b*(w–x(boundary)) (6)
其中,h和w分别表示图像的高度和宽度,其余符号的含义请参见公式(1)和(2)。Among them, h and w represent the height and width of the image, respectively, and the meanings of the remaining symbols are shown in formulas (1) and (2).
如图8所示,背景目标对应的第二像素区域大致呈三角形,且位于图像的左下方区域,并未占满整个图像。跟随目标在图像中位于背景目标的右上方。通过上述公式计算姿态调节量,使拍摄装置在航向上尽量向左、在俯仰方向上尽量向右旋转,这样可使跟随目标对应的第一像素区域位于图像右上角的同时,背景目标对应的第二像素区域的边缘像素点与图像的边缘之间的距离小于预设距离阈值。在图8中,第二像素区域的边缘像素点可以是三角形的第二图像区域的斜边上的像素点。图像的边缘可以是图 像的上边缘和右边缘。这样可使背景目标尽可能多地出现在图像中。用户可通过遥控器手动设置和调整、或者无人机、拍摄装置和遥控器的至少之一可自动设置或调整所述预设距离阈值。As shown in FIG. 8 , the second pixel area corresponding to the background object is roughly triangular in shape, and is located in the lower left area of the image, and does not occupy the entire image. The follower target is above and to the right of the background target in the image. The attitude adjustment amount is calculated by the above formula, so that the photographing device is rotated as far as possible to the left in the heading direction and to the right in the pitch direction, so that the first pixel area corresponding to the following target is located in the upper right corner of the image, and the first pixel area corresponding to the background target is located at the same time. The distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold. In FIG. 8 , the edge pixels of the second pixel area may be pixels on the hypotenuse of the second image area of the triangle. The edges of the image can be the top and right edges of the image. This allows the background objects to appear in the image as much as possible. The preset distance threshold may be manually set and adjusted by a user through a remote control, or automatically set or adjusted by at least one of the drone, the photographing device and the remote control.
本领域技术人员应当理解,虽然以上描述了第一位置关系和第二位置关系,以及对应的第一姿态调整策略和第二姿态调整策略,但这只是示例性说明,本实施例并不限于此。第一像素区域和第二像素区域的相对位置关系可以是多种多样的,其对应有不同的姿态调整策略。It should be understood by those skilled in the art that although the first positional relationship and the second positional relationship, as well as the corresponding first attitude adjustment strategy and the second attitude adjustment strategy are described above, this is only an exemplary illustration, and the embodiment is not limited thereto. . The relative positional relationship between the first pixel area and the second pixel area can be various, and corresponding to different attitude adjustment strategies.
在另一些示例中,若第二像素区域的形状为第二类型,则根据第一像素区域和第二像素区域的位置,调整拍摄装置的姿态。第二类型可以是线型。根据第一像素区域和第二像素区域的位置,调整拍摄装置的姿态的步骤,包括:使第二像素区域经过图像中的指定位置,第一像素区域在图像的至少一个方向上与指定位置重合。In other examples, if the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area. The second type may be a line type. The step of adjusting the posture of the photographing device according to the positions of the first pixel area and the second pixel area includes: causing the second pixel area to pass through a designated position in the image, and the first pixel area coincides with the designated position in at least one direction of the image .
对于一些背景目标,其对应的第二像素区域呈一条直线或曲线。例如,地平线。地平线通常可以是海面、草原、沙漠分别与天空的交界线。如图9所示,对于类似地平线的线型背景目标,使第二像素区域经过图像中的指定位置是指:拍摄装置在俯仰轴方向旋转俯仰角调节量,使地平线经过图像中心;第一像素区域在图像的至少一个方向上与指定位置重合是指:拍摄装置在航向轴方向旋转航向角调节量,使跟随目标的中心在航向方向上与图像中心重合。如果第二像素区域为曲线,则使曲线的沿图像水平方向的中点经过图像中心。这样使地平线位于图像垂直方向的中心位置,且跟随目标在图像水平方向的中心位置,跟随目标呈现在地平线以及两侧的背景前,符合审美习惯,提高了拍摄装置的拍摄效果。For some background objects, the corresponding second pixel area is a straight line or a curve. For example, horizon. The horizon can usually be the boundary between the sea, grassland, and desert and the sky. As shown in Figure 9, for a linear background target similar to the horizon, making the second pixel area pass through the designated position in the image means: the camera rotates the pitch angle adjustment amount in the direction of the pitch axis, so that the horizon passes through the center of the image; the first pixel The area coincides with the designated position in at least one direction of the image means: the camera rotates the heading angle adjustment amount in the direction of the heading axis, so that the center of the following target coincides with the center of the image in the heading direction. If the second pixel area is a curve, the midpoint of the curve along the horizontal direction of the image passes through the center of the image. In this way, the horizon is located at the center of the vertical direction of the image, and the following target is located at the center of the horizontal direction of the image, and the following target is presented in front of the horizon and the backgrounds on both sides, which conforms to aesthetic habits and improves the shooting effect of the shooting device.
本公开又一实施例提供了一种可移动平台的控制方法,所述可移动平台包括拍摄装置,如图12所示,该控制方法包括:Yet another embodiment of the present disclosure provides a control method for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 12 , the control method includes:
S1201:获取所述可移动平台所处环境中的障碍物的位置信息;S1201: Acquire position information of obstacles in the environment where the movable platform is located;
S1202:获取所述可移动平台所处环境中的禁飞区的位置信息;S1202: Obtain location information of a no-fly zone in the environment where the movable platform is located;
S1203:根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。S1203: Determine, according to the position information of the obstacle and the position information of the no-fly zone, the moving path of the movable platform to circumvent the obstacle and the no-fly zone.
本实施例的可移动平台与上述实施例的可移动平台是类似的。以下以无人机这种可移动平台为例,对本实施例的控制方法进行说明。The movable platform of this embodiment is similar to the movable platform of the above-mentioned embodiment. The control method of this embodiment will be described below by taking a movable platform such as an unmanned aerial vehicle as an example.
通常可根据障碍物的位置信息,确定可移动平台绕行障碍物的移动路径的过程。这其中的障碍物可以是电线杆、路灯、户外标志牌、户外广告牌、以及一些情况下的背景目标等。但是在一些情况下,仅仅在确定移动路径的过程考虑障碍物可能是不够的,这可能会在一定程度上影响无人机的飞行安全性。在本实施例中,还可将无人机所处环境中的禁飞区作为确定移动路径的因素,并根据障碍物的位置信息和禁飞区的位置信息,确定无人机绕行障碍物和禁飞区的移动路径。Usually, the process of determining the moving path of the movable platform around the obstacle can be determined according to the position information of the obstacle. The obstacles can be utility poles, street lights, outdoor signs, outdoor billboards, and background targets in some cases. However, in some cases, it may not be enough to only consider obstacles in the process of determining the movement path, which may affect the flight safety of the UAV to a certain extent. In this embodiment, the no-fly zone in the environment where the UAV is located can also be used as a factor for determining the moving path, and the UAV is determined to bypass the obstacle according to the position information of the obstacle and the position information of the no-fly zone. and the movement path of the no-fly zone.
本实施例中,所述禁飞区可以有多种实现方式。在一些示例中,所述禁飞区由电子围栏设备确定。电子围栏设备,又称地理围栏设备,提供在某一位置处并且声称一个或多个电子围栏边界,电子围栏边界围成所述禁飞区,并在电子围栏边界之内管制无人机的活动。In this embodiment, the no-fly zone may be implemented in various manners. In some examples, the no-fly zone is determined by an electronic fence device. Electronic fence devices, also known as geo-fencing devices, are provided at a location and claim one or more electronic fence boundaries that enclose the no-fly zone and control the movement of drones within the electronic fence boundaries .
电子围栏设备可固定设立在某一位置处,也可以是可易于移动的和/或可携带的。电子围栏设备可以是任何类型的设备,例如,视觉标识设备、音频标识设备、无线电标识设备。视觉标识设备可以是可被无人机的光学传感器感测的设备;音频标识设备可以是可被无人机的音频采集装置感测的设备;无线电标识设备可以包括:移动终端、台式计算机、便携式计算机等,也可以是另一架无人机或者无人机的停靠站。The electronic fence device can be fixed at a certain location, or it can be easily movable and/or portable. The electronic fence device can be any type of device, eg visual identification device, audio identification device, radio identification device. The visual identification device can be a device that can be sensed by the optical sensor of the drone; the audio identification device can be a device that can be sensed by the audio collection device of the drone; the radio identification device can include: mobile terminals, desktop computers, portable A computer, etc., it can also be another drone or a docking station for a drone.
电子围栏设备通常与一组或多组飞行管制关联,所述飞行管制用于指示禁飞区的管制内容,例如禁止无人机飞行、限制无人机在一定条件下飞行等。针对不同的无人机、操作无人机的不同用户、不同的电子围栏设备可能会有不同的飞行管制。An electronic fence device is usually associated with one or more sets of flight controls, which are used to indicate the control content of a no-fly zone, such as prohibiting drones from flying, restricting drones from flying under certain conditions, and so on. There may be different flight controls for different drones, different users operating drones, and different electronic fence equipment.
无人机周围的禁飞区的位置信息可通过无人机自身的位置信息搜索得到。在一些示例中,无人机自身即可得到禁飞区的位置信息。无人机本地可存储有地图数据,地图数据包括各种地域范围内的禁飞区的位置信息。无人机通过位置传感器得到自身的位置信息后,通过查询本地存储的地图数据,从而得到无人机周围预设范围内的禁飞区的位置信息。或者,无人机本地可能并没有存储地图数据,而是通过远程设备(例如,云端服务器)获取地图数据,通过查询获取的地图数据,从而得到无人机周围预设范围内的禁飞区的位置信息。The location information of the no-fly zone around the drone can be obtained by searching the location information of the drone itself. In some examples, the location of the no-fly zone is available to the drone itself. The UAV can store map data locally, and the map data includes the location information of the no-fly zones within various geographical ranges. After the UAV obtains its own position information through the position sensor, it can obtain the position information of the no-fly zone within the preset range around the UAV by querying the locally stored map data. Alternatively, the UAV may not store the map data locally, but obtain the map data through a remote device (for example, a cloud server), and query the obtained map data to obtain the information of the no-fly zone within the preset range around the UAV. location information.
本实施例的禁飞区角色类似于障碍物。确定无人机的移动路径可以包 括:至少部分地根据障碍物的位置信息和障碍物的位置信息建立损失函数,最小化损失函数以确定无人机绕行障碍物和禁飞区的移动路径。The role of the no-fly zone in this embodiment is similar to that of an obstacle. Determining the movement path of the UAV may include: establishing a loss function based at least in part on the location information of the obstacle and the location information of the obstacle, and minimizing the loss function to determine the movement path of the UAV around the obstacle and the no-fly zone.
可在目标跟踪的过程中实时生成无人机的移动路径,所述移动路径通常由一系列的路径点组成,无人机沿一系列的路径点飞行。损失函数用于确定一些因素在移动路径中的代价,能够得到量化的代价值。当根据禁飞区的位置信息和障碍物的位置信息确定移动路径时,所述损失函数可包括如下所示的第五损失函数:The moving path of the UAV can be generated in real time during the target tracking process, and the moving path is usually composed of a series of waypoints, and the UAV flies along the series of waypoints. The loss function is used to determine the cost of some factors in the moving path, and the quantified cost value can be obtained. When the movement path is determined according to the position information of the no-fly zone and the position information of the obstacle, the loss function may include a fifth loss function as shown below:
Cost=cost_5(obstacle,no_fly_zone)   (7)Cost=cost_5(obstacle,no_fly_zone) (7)
其中,Cost表示损失函数,cost_5表示第五损失函数,obstacle表示移动路径中的路径点与障碍物之间的距离,no_fly_zone表示移动路径中的路径点与禁飞区之间的距离,路径点与禁飞区或障碍物的距离越大,则第五损失函数的取值越小。Among them, Cost represents the loss function, cost_5 represents the fifth loss function, obstacle represents the distance between the waypoint in the moving path and the obstacle, no_fly_zone represents the distance between the waypoint in the moving path and the no-fly zone, and the waypoint and The larger the distance of the no-fly zone or the obstacle, the smaller the value of the fifth loss function.
第五损失函数是一种反映路径安全性的损失函数,所述路径安全性用于表征路径点与障碍物或禁飞区的距离是否满足安全指标。无人机沿移动路径飞行时,其与障碍物的距离不能靠的太近,这样才能保证无人机不与障碍物发生碰撞,提升无人机的飞行安全性。同时,无人机也不能进入禁飞区,这样才能避免违反相关的飞行管制。通过第五损失函数,如果一条路径中的路径点与障碍物和禁飞区的距离越大,该条路径就越可能被选为无人机的移动路径,反之,则越不可能被选为无人机的移动路径。如图13所示,带箭头的实线表示移动路径。如果无人机周围存在禁飞区和障碍物,在确定移动路径时,基于障碍物和禁飞区二者的位置信息来确定移动路径的路径点。由于考虑了禁飞区的因素,禁飞区与障碍物之间的区域可认为是可通行区域,规划出的移动路径从可通信区域穿过,而不会进入禁飞区。The fifth loss function is a loss function reflecting the safety of the path, and the safety of the path is used to characterize whether the distance between the path point and the obstacle or the no-fly zone satisfies the safety index. When the drone flies along the moving path, the distance between the drone and the obstacle cannot be too close, so as to ensure that the drone does not collide with the obstacle and improve the flight safety of the drone. At the same time, drones cannot enter the no-fly zone, so as to avoid violating relevant flight controls. Through the fifth loss function, if the distance between the path point in a path and the obstacle and the no-fly zone is greater, the path is more likely to be selected as the moving path of the UAV, otherwise, the less likely it is to be selected as the UAV's moving path The movement path of the drone. As shown in FIG. 13 , the solid line with arrows indicates the movement path. If there are no-fly zones and obstacles around the UAV, when determining the movement path, the waypoints of the movement path are determined based on the position information of both the obstacles and the no-fly zone. Due to the consideration of the no-fly zone, the area between the no-fly zone and the obstacle can be regarded as a passable area, and the planned movement path passes through the communicable area without entering the no-fly zone.
传统方式在确定目标跟踪的移动路径时,通常只考虑障碍物的影响,没有考虑过禁飞区的影响,使得无人机沿移动路径飞行时常常意外地闯入禁飞区,这会导致无人机违反相关的飞行管制,带来一系列的安全问题。有些情况下,当无人机进入禁飞区或者非常接近禁飞区时才会采取相应的行动,这些行动一般包括:立即降落、无人机飞行方向的骤然变化,无人机的速度、姿态等飞行参数会发生剧烈变化,这非常不利于无人机飞行的平滑性和拍摄装置的稳定性。本实施例可通过障碍物的位置信息和禁飞区 的位置信息确定移动路径,这样当无人机沿移动路径飞行时,如果其周围存在禁飞区,无人机可以像对待障碍物那样在到达禁飞区之间就提前减速,或者提前改变飞行方向绕开禁飞区,从而避免闯入禁飞区,提升飞行安全性,同时提前减速和变向操作使无人机的速度、姿态等飞行参数的变化更加平滑,提升了无人机飞行的平滑性和拍摄装置的稳定性。When determining the moving path of target tracking, the traditional method usually only considers the influence of obstacles and does not consider the influence of the no-fly zone, so that the UAV often accidentally breaks into the no-fly zone when flying along the moving path, which will lead to no flight. Humans and aircraft violate relevant flight controls, which brings a series of safety problems. In some cases, corresponding actions will be taken when the drone enters the no-fly zone or is very close to the no-fly zone. These actions generally include: immediate landing, sudden changes in the flight direction of the drone, speed and attitude of the drone Such flight parameters will change drastically, which is very detrimental to the smoothness of the drone's flight and the stability of the shooting device. In this embodiment, the moving path can be determined according to the position information of the obstacle and the position information of the no-fly zone, so that when the drone flies along the moving path, if there is a no-fly zone around it, the drone can fly in the same way as an obstacle. Before reaching the no-fly zone, decelerate in advance, or change the flight direction in advance to bypass the no-fly zone, so as to avoid entering the no-fly zone and improve flight safety. The change of flight parameters is smoother, which improves the smoothness of the drone flight and the stability of the shooting device.
本公开又一实施例还提供了一种可移动平台的控制装置,所述可移动平台包括拍摄装置,如图14所示,所述控制装置包括:Yet another embodiment of the present disclosure further provides a control device for a movable platform. The movable platform includes a photographing device. As shown in FIG. 14 , the control device includes:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述拍摄装置的拍摄目标的位置信息;acquiring position information of the shooting target of the shooting device;
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。A path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
本实施例的控制装置,其基本上可以执行上述实施例控制方法的步骤所对应的各种操作。The control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
在一些示例中,所述处理器还用于执行以下操作:至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息建立损失函数;最小化所述损失函数以确定所述可移动平台绕行所述障碍物的移动路径。In some examples, the processor is further configured to perform the following operations: establish a loss function based at least in part on the location information of the photographed target and the location information of the obstacle; minimize the loss function to determine the possible The mobile platform circumvents the movement path of the obstacle.
在一些示例中,所述损失函数包括第一损失函数,所述移动路径上越少的路径点与所述拍摄目标之间的连线经过所述障碍物所在的区域,所述第一损失函数的取值越小。In some examples, the loss function includes a first loss function, and the connection between the fewer waypoints on the moving path and the shooting target passes through the area where the obstacle is located, the first loss function the smaller the value.
在一些示例中,所述损失函数包括第二损失函数,所述移动路径上的路径点与所述障碍物的距离越大,所述第二损失函数的取值越小。In some examples, the loss function includes a second loss function, and the greater the distance between the path point on the moving path and the obstacle, the smaller the value of the second loss function.
在一些示例中,所述损失函数包括第三损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第三损失函数的取值越小。In some examples, the loss function includes a third loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the smaller the value of the third loss function.
在一些示例中,所述拍摄目标包括跟随目标,所述损失函数包括第四损失函数,所述移动路径上的路径点与所述跟随目标的距离越接近于预设跟踪距离,所述第四损失函数的取值越小。In some examples, the shooting target includes a following target, the loss function includes a fourth loss function, and the closer the distance between the path point on the moving path and the following target is to a preset tracking distance, the fourth loss function The value of the loss function is smaller.
在一些示例中,所述处理器还用于执行以下操作:确定所述可移动平 台所处环境的环境类型;根据所述环境类型确定所述可移动平台的移动参数。In some examples, the processor is further configured to perform the following operations: determine an environment type of the environment in which the movable platform is located; and determine movement parameters of the movable platform according to the environment type.
在一些示例中,所述环境类型包括障碍物密集类型和障碍物稀疏类型。In some examples, the environment types include obstacle-dense types and obstacle-sparse types.
在一些示例中,所述处理器还用于执行以下操作:根据所述拍摄装置所拍摄的图像中的背景目标,确定所述可移动平台所处环境的环境类型。In some examples, the processor is further configured to perform the following operation: determine an environment type of the environment in which the movable platform is located according to a background object in the image captured by the photographing device.
在一些示例中,所述处理器还用于执行以下操作:根据所述可移动平台搭载的探测装置的探测数据,确定所述可移动平台所处环境的环境类型。In some examples, the processor is further configured to perform the following operation: according to the detection data of the detection device carried on the movable platform, determine the environment type of the environment where the movable platform is located.
在一些示例中,所述处理器还用于执行以下操作:若所述环境类型为障碍物密集类型,则确定所述可移动平台的速度为第一速度;若所述环境类型为障碍物稀疏类型,则确定所述可移动平台的速度为第二速度,所述第二速度大于所述第一速度。In some examples, the processor is further configured to perform the following operations: if the environment type is a dense obstacle type, determining the speed of the movable platform to be the first speed; if the environment type is a sparse obstacle type type, the speed of the movable platform is determined to be a second speed, and the second speed is greater than the first speed.
在一些示例中,所述处理器还用于执行以下操作:若所述环境类型为障碍物密集类型,则确定所述拍摄装置的角速度为第一角速度;若所述环境类型为障碍物稀疏类型,则确定所述拍摄装置的角速度为第二角速度,所述第二角速度大于所述第一角速度。In some examples, the processor is further configured to perform the following operations: if the environment type is a type with dense obstacles, determine the angular velocity of the photographing device to be the first angular velocity; if the environment type is a type with sparse obstacles , then it is determined that the angular velocity of the photographing device is a second angular velocity, and the second angular velocity is greater than the first angular velocity.
在一些示例中,所述拍摄目标包括跟随目标和背景目标。In some examples, the shooting target includes a following target and a background target.
在一些示例中,所述处理器还用于执行以下操作:根据第一像素区域和/或第二像素区域调整所述拍摄装置的姿态;其中,所述第一像素区域为所述跟随目标在所述拍摄装置所拍摄的图像中对应的像素区域;所述第二像素区域为所述背景目标在所述拍摄装置所拍摄的图像中对应的像素区域。In some examples, the processor is further configured to perform the following operations: adjust the posture of the photographing device according to the first pixel area and/or the second pixel area; wherein the first pixel area is where the following target is located The pixel area corresponding to the image captured by the photographing device; the second pixel area is the pixel area corresponding to the background object in the image captured by the photographing device.
在一些示例中,所述处理器还用于执行以下操作:根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。In some examples, the processor is further configured to perform the following operation: adjust the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area.
在一些示例中,所述处理器还用于执行以下操作:若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。In some examples, the processor is further configured to perform the following operations: if the relative positional relationship is a first positional relationship, adjust the posture of the photographing device based on a first posture adjustment strategy; if the relative positional relationship is For the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
在一些示例中,所述第一位置关系为没有重合,所述第一姿态调整策略包括:使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第 二姿态调整策略包括:使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。In some examples, the first positional relationship is no coincidence, and the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area; the first The two positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes: making the first pixel area located at a specified position in the image; and/or making the first pixel area The distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold.
在一些示例中,所述处理器还用于执行以下操作:根据所述第二像素区域的形状调整所述拍摄装置的姿态。In some examples, the processor is further configured to perform the following operation: adjust the posture of the photographing device according to the shape of the second pixel area.
在一些示例中,所述处理器还用于执行以下操作:若所述第二像素区域的形状为第一类型,则基于第三姿态调整策略调整所述拍摄装置的姿态;In some examples, the processor is further configured to perform the following operations: if the shape of the second pixel region is of the first type, adjust the posture of the photographing device based on a third posture adjustment strategy;
若所述第二像素区域的形状为第二类型,则基于第四姿态调整策略调整所述拍摄装置的姿态,所述第四姿态调整策略不同于所述第三姿态调整策略。If the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted based on a fourth posture adjustment strategy, and the fourth posture adjustment strategy is different from the third posture adjustment strategy.
在一些示例中,所述第一类型为线型,所述第三姿态调整策略包括:使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。In some examples, the first type is a line type, and the third posture adjustment strategy includes: causing the second pixel area to pass through a designated position in the image, the first pixel area in the image Coincidence with the designated position in at least one direction.
在一些示例中,所述第二类型为面型,所述第四姿态调整策略包括:若所述第一像素区域与所述第二像素区域没有重合,则调整所述拍摄装置的姿态以使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;若所述第一像素区域位于所述第二像素区域内,则调整所述拍摄装置的姿态以使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。In some examples, the second type is a face type, and the fourth posture adjustment strategy includes: if the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device to make The center of the image is located between the first pixel area and the second pixel area; if the first pixel area is located within the second pixel area, adjust the posture of the photographing device so that the The first pixel area is located at a specified position in the image; and/or the distance between the edge pixel point of the second pixel area and the edge of the image is smaller than a preset distance threshold.
在一些示例中,将所述可移动平台所处环境中的禁飞区作为所述障碍物。In some examples, a no-fly zone in the environment in which the movable platform is located is used as the obstacle.
在一些示例中,所述处理器还用于执行以下操作:根据所述拍摄目标的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。In some examples, the processor is further configured to perform the following operation: determine, according to the location information of the photographing target and the location information of the no-fly zone, that the movable platform can circumvent the obstacle and the prohibited area. The movement path of the fly zone.
本公开又一实施例还提供了一种可移动平台的控制装置,所述可移动平台包括拍摄装置,如图14所示,所述控制装置包括:Another embodiment of the present disclosure further provides a control device for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 14 , the control device includes:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;acquiring the first pixel area corresponding to the following target and the second pixel area corresponding to the background target in the image captured by the photographing device;
根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
本实施例的控制装置,其基本上可以执行上述实施例控制方法的步骤所对应的各种操作。The control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
在一些示例中,所述处理器还用于执行以下操作:若所述第二像素区域的形状为第一类型,则执行所述根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态的步骤。In some examples, the processor is further configured to perform the following operation: if the shape of the second pixel area is of a first type, perform the relative operation according to the first pixel area and the second pixel area Position relationship, the steps of adjusting the posture of the photographing device.
在一些示例中,所述第一类型包括:面型。In some examples, the first type includes: face type.
在一些示例中,所述处理器还用于执行以下操作:若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。In some examples, the processor is further configured to perform the following operations: if the relative positional relationship is a first positional relationship, adjust the posture of the photographing device based on a first posture adjustment strategy; if the relative positional relationship is For the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
在一些示例中,所述第一位置关系为没有重合,所述第一姿态调整策略包括:使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第二姿态调整策略包括:使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。In some examples, the first positional relationship is no coincidence, and the first posture adjustment strategy includes: positioning the center of the image between the first pixel area and the second pixel area; the first The two positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes: making the first pixel area located at a specified position in the image; and/or making the first pixel area The distance between the edge pixels of the two-pixel area and the edge of the image is less than a preset distance threshold.
在一些示例中,若所述第二像素区域的形状为第二类型,则根据所述第一像素区域和所述第二像素区域的位置,调整所述拍摄装置的姿态。In some examples, if the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area.
在一些示例中,所述第二类型包括:线型。In some examples, the second type includes: line type.
在一些示例中,所述处理器还用于执行以下操作:使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。In some examples, the processor is further configured to: cause the second pixel area to pass through a designated location in the image, the first pixel area and the image in at least one direction The specified positions coincide.
本公开又一实施例还提供了一种可移动平台的控制装置,所述可移动平台包括拍摄装置,如图14所示,所述控制装置包括:Another embodiment of the present disclosure further provides a control device for a movable platform, where the movable platform includes a photographing device. As shown in FIG. 14 , the control device includes:
存储器,用于存储可执行指令;memory for storing executable instructions;
处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下 操作:a processor for executing the executable instructions stored in the memory to perform the following operations:
获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the position information of obstacles in the environment where the movable platform is located;
获取所述可移动平台所处环境中的禁飞区的位置信息;Obtain the location information of the no-fly zone in the environment where the movable platform is located;
根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the obstacle and the position information of the no-fly zone, a moving path of the movable platform around the obstacle and the no-fly zone is determined.
本实施例的控制装置,其基本上可以执行上述实施例控制方法的步骤所对应的各种操作。The control device of this embodiment can basically perform various operations corresponding to the steps of the control method of the above-mentioned embodiment.
在一些示例中,所述处理器还用于执行以下操作:至少部分地根据所述禁飞区的位置信息和所述障碍物的位置信息建立损失函数;最小化所述损失函数以确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。In some examples, the processor is further configured to: establish a loss function based at least in part on the no-fly zone location information and the obstacle location information; minimize the loss function to determine the A movable platform circumvents the obstacle and the no-fly zone's movement path.
在一些示例中,所述损失函数包括第五损失函数,所述移动路径上的路径点与所述障碍物和所述禁飞区的距离越大,所述第五损失函数的取值越小。In some examples, the loss function includes a fifth loss function, and the greater the distance between the path point on the moving path and the obstacle and the no-fly zone, the smaller the value of the fifth loss function is .
在一些示例中,所述损失函数包括第二损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第二损失函数的取值越小。In some examples, the loss function includes a second loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the smaller the value of the second loss function.
在一些示例中,所述禁飞区由电子围栏、飞行管制信息确定。In some examples, the no-fly zone is determined by electronic fence, flight control information.
在一些示例中,所述处理器还用于执行以下操作:从所述可移动平台本地、可与所述可移动平台通信的远程装置的至少之一获取所述禁飞区的位置信息。In some examples, the processor is further configured to obtain location information for the no-fly zone from at least one of a remote device local to the movable platform and a remote device that can communicate with the movable platform.
在一些示例中,所述处理器还用于执行以下操作:通过所述可移动平台的传感器测量所述障碍物的位置信息;和/或,从可与所述可移动平台通信的远程装置获取所述障碍物的位置信息。In some examples, the processor is further configured to measure the location information of the obstacle via sensors of the movable platform; and/or obtain from a remote device communicable with the movable platform location information of the obstacle.
本公开再一实施例还提供了一种计算机可读存储介质,其存储有可执行指令,所述可执行指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行上述实施例所述的控制方法。Still another embodiment of the present disclosure also provides a computer-readable storage medium storing executable instructions that, when executed by one or more processors, can cause the one or more processors to The control methods described in the above embodiments are executed.
计算机可读存储介质,例如可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,可读存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘 (CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。A computer-readable storage medium, for example, can be any medium that can contain, store, communicate, propagate, or transmit instructions. For example, a readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus, device, or propagation medium. Specific examples of readable storage media include: magnetic storage devices, such as magnetic tapes or hard disks (HDDs); optical storage devices, such as compact disks (CD-ROMs); memories, such as random access memory (RAM) or flash memory; and/or wired /Wireless communication link.
本公开再一实施例还提供了一种可移动平台,如图15所示,包括:拍摄装置、以及可移动载体;所述可移动载体包括:上述实施例的控制装置。在一些示例中,所述可移动载体包括:无人机、无人车、无人船或机器人。Still another embodiment of the present disclosure further provides a movable platform, as shown in FIG. 15 , including: a photographing device, and a movable carrier; the movable carrier includes: the control device of the above-mentioned embodiment. In some examples, the movable carrier includes a drone, an unmanned vehicle, an unmanned boat, or a robot.
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the apparatus described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;在不冲突的情况下,本公开实施例中的特征可以任意组合;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, but not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; in the case of no conflict, the features in the embodiments of the present disclosure can be combined arbitrarily; and these modifications or replacements , does not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (79)

  1. 一种可移动平台的控制方法,所述可移动平台包括拍摄装置,其特征在于,所述控制方法包括:A control method of a movable platform, wherein the movable platform includes a photographing device, wherein the control method comprises:
    获取所述拍摄装置的拍摄目标的位置信息;acquiring position information of the shooting target of the shooting device;
    获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
    至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。A path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
  2. 如权利要求1所述的控制方法,其特征在于,所述至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径,包括:The control method of claim 1, wherein the movement of the movable platform around the obstacle is determined at least in part based on the position information of the photographed target and the position information of the obstacle path, including:
    至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息建立损失函数;establishing a loss function based at least in part on the location information of the photographed target and the location information of the obstacle;
    最小化所述损失函数以确定所述可移动平台绕行所述障碍物的移动路径。The loss function is minimized to determine a path of movement of the movable platform around the obstacle.
  3. 如权利要求2所述的控制方法,其特征在于,所述损失函数包括第一损失函数,所述移动路径上越少的路径点与所述拍摄目标之间的连线经过所述障碍物所在的区域,所述第一损失函数的取值越小。The control method according to claim 2, wherein the loss function comprises a first loss function, and the connection line between the fewer path points on the moving path and the shooting target passes through the location of the obstacle. area, the smaller the value of the first loss function is.
  4. 如权利要求2所述的控制方法,其特征在于,所述损失函数包括第二损失函数,所述移动路径上的路径点与所述障碍物的距离越大,所述第二损失函数的取值越小。The control method according to claim 2, wherein the loss function includes a second loss function, and the greater the distance between the path point on the moving path and the obstacle, the greater the distance of the second loss function. the smaller the value.
  5. 如权利要求2所述的控制方法,其特征在于,所述损失函数包括第三损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第三损失函数的取值越小。The control method according to claim 2, wherein the loss function includes a third loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the higher the value of the third loss function. small.
  6. 如权利要求2-5任一项所述的控制方法,其特征在于,所述 拍摄目标包括跟随目标,所述损失函数包括第四损失函数,所述移动路径上的路径点与所述跟随目标的距离越接近于预设跟踪距离,所述第四损失函数的取值越小。The control method according to any one of claims 2-5, wherein the shooting target includes a following target, the loss function includes a fourth loss function, and the path point on the moving path is the same as the following target The closer the distance is to the preset tracking distance, the smaller the value of the fourth loss function.
  7. 如权利要求1所述的控制方法,其特征在于,还包括:The control method of claim 1, further comprising:
    确定所述可移动平台所处环境的环境类型;determining the environment type of the environment in which the mobile platform is located;
    根据所述环境类型确定所述可移动平台的移动参数。Movement parameters of the movable platform are determined according to the type of environment.
  8. 如权利要求7所述的控制方法,其特征在于,所述环境类型包括障碍物密集类型和障碍物稀疏类型。The control method according to claim 7, wherein the environment types include a dense obstacle type and a sparse obstacle type.
  9. 如权利要求8所述的控制方法,其特征在于,所述确定所述可移动平台所处环境的环境类型,包括:The control method according to claim 8, wherein the determining the environment type of the environment where the movable platform is located comprises:
    根据所述拍摄装置所拍摄的图像中的背景目标,确定所述可移动平台所处环境的环境类型。The environment type of the environment in which the movable platform is located is determined according to the background target in the image captured by the photographing device.
  10. 如权利要求8所述的控制方法,其特征在于,所述确定所述可移动平台所处环境的环境类型,包括:The control method according to claim 8, wherein the determining the environment type of the environment where the movable platform is located comprises:
    根据所述可移动平台搭载的探测装置的探测数据,确定所述可移动平台所处环境的环境类型。According to the detection data of the detection device mounted on the movable platform, the environment type of the environment where the movable platform is located is determined.
  11. 如权利要求8所述的控制方法,其特征在于,所述可移动平台的移动参数包括所述可移动平台的速度,所述根据所述环境类型确定所述可移动平台的移动参数,包括:The control method according to claim 8, wherein the movement parameter of the movable platform includes the speed of the movable platform, and the determining the movement parameter of the movable platform according to the environment type includes:
    若所述环境类型为障碍物密集类型,则确定所述可移动平台的速度为第一速度;If the environment type is a type of dense obstacles, determining the speed of the movable platform as the first speed;
    若所述环境类型为障碍物稀疏类型,则确定所述可移动平台的速度为第二速度,所述第二速度大于所述第一速度。If the type of the environment is a type with sparse obstacles, the speed of the movable platform is determined to be a second speed, and the second speed is greater than the first speed.
  12. 如权利要求8所述的控制方法,其特征在于,所述可移动平 台的移动参数包括所述拍摄装置的角速度,所述根据所述环境类型确定所述可移动平台的移动参数,包括:The control method according to claim 8, wherein the movement parameter of the movable platform comprises the angular velocity of the photographing device, and the determining the movement parameter of the movable platform according to the environment type comprises:
    若所述环境类型为障碍物密集类型,则确定所述拍摄装置的角速度为第一角速度;If the environment type is a type of dense obstacles, determining the angular velocity of the photographing device as the first angular velocity;
    若所述环境类型为障碍物稀疏类型,则确定所述拍摄装置的角速度为第二角速度,所述第二角速度大于所述第一角速度。If the environment type is a type of sparse obstacles, it is determined that the angular velocity of the photographing device is a second angular velocity, and the second angular velocity is greater than the first angular velocity.
  13. 如权利要求1所述的控制方法,其特征在于,所述拍摄目标包括跟随目标和背景目标。The control method according to claim 1, wherein the shooting target includes a following target and a background target.
  14. 如权利要求13所述的控制方法,其特征在于,所述可移动平台沿所述移动路径绕行所述障碍物的过程中,还包括:The control method according to claim 13, wherein, in the process of the movable platform detouring the obstacle along the moving path, further comprising:
    根据第一像素区域和/或第二像素区域调整所述拍摄装置的姿态;Adjust the posture of the photographing device according to the first pixel area and/or the second pixel area;
    其中,in,
    所述第一像素区域为所述跟随目标在所述拍摄装置所拍摄的图像中对应的像素区域;The first pixel area is a pixel area corresponding to the following target in the image captured by the photographing device;
    所述第二像素区域为所述背景目标在所述拍摄装置所拍摄的图像中对应的像素区域。The second pixel area is a pixel area corresponding to the background object in the image captured by the capturing device.
  15. 如权利要求14所述的控制方法,其特征在于,所述根据第一像素区域和第二像素区域调整所述拍摄装置的姿态,包括:The control method according to claim 14, wherein the adjusting the posture of the photographing device according to the first pixel area and the second pixel area comprises:
    根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  16. 如权利要求15所述的控制方法,其特征在于,The control method according to claim 15, wherein,
    若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;If the relative positional relationship is the first positional relationship, adjusting the posture of the photographing device based on the first posture adjustment strategy;
    若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。If the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  17. 如权利要求15所述的控制方法,其特征在于,The control method according to claim 15, wherein,
    所述第一位置关系为没有重合,所述第一姿态调整策略包括:The first positional relationship is not overlapping, and the first attitude adjustment strategy includes:
    使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;centering the image between the first pixel area and the second pixel area;
    所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第二姿态调整策略包括:The second positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes:
    使所述第一像素区域位于所述图像中的指定位置;positioning the first pixel area at a specified position in the image;
    和/或,and / or,
    使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。The distance between the edge pixels of the second pixel area and the edge of the image is less than a preset distance threshold.
  18. 如权利要求14所述的控制方法,其特征在于,所述根据第一像素区域和/或第二像素区域调整所述拍摄装置的姿态,包括:The control method according to claim 14, wherein the adjusting the posture of the photographing device according to the first pixel area and/or the second pixel area comprises:
    根据所述第二像素区域的形状调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the shape of the second pixel area.
  19. 如权利要求18所述的控制方法,其特征在于,The control method of claim 18, wherein:
    若所述第二像素区域的形状为第一类型,则基于第三姿态调整策略调整所述拍摄装置的姿态;If the shape of the second pixel area is of the first type, adjusting the posture of the photographing device based on a third posture adjustment strategy;
    若所述第二像素区域的形状为第二类型,则基于第四姿态调整策略调整所述拍摄装置的姿态,所述第四姿态调整策略不同于所述第三姿态调整策略。If the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted based on a fourth posture adjustment strategy, and the fourth posture adjustment strategy is different from the third posture adjustment strategy.
  20. 如权利要求19所述的控制方法,其特征在于,所述第一类型为线型,所述第三姿态调整策略包括:The control method according to claim 19, wherein the first type is linear, and the third attitude adjustment strategy comprises:
    使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。The second pixel area is caused to pass through a designated position in the image, and the first pixel area is coincident with the designated position in at least one direction of the image.
  21. 如权利要求19所述的控制方法,其特征在于,所述第二类型为面型,所述第四姿态调整策略包括:The control method according to claim 19, wherein the second type is a face shape, and the fourth attitude adjustment strategy comprises:
    若所述第一像素区域与所述第二像素区域没有重合,则调整所述 拍摄装置的姿态以使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;If the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located between the first pixel area and the second pixel area;
    若所述第一像素区域位于所述第二像素区域内,则调整所述拍摄装置的姿态以使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。If the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the second pixel area The distance between the edge pixel point of the pixel area and the edge of the image is less than a preset distance threshold.
  22. 如权利要求2所述的控制方法,其特征在于,将所述可移动平台所处环境中的禁飞区作为所述障碍物。The control method according to claim 2, wherein a no-fly zone in the environment where the movable platform is located is used as the obstacle.
  23. 如权利要求22所述的控制方法,其特征在于,所述至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径,包括:23. The control method according to claim 22, wherein the movement of the movable platform around the obstacle is determined at least in part based on the position information of the photographed target and the position information of the obstacle path, including:
    根据所述拍摄目标的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the location information of the photographed target and the location information of the no-fly zone, a moving path of the movable platform to circumvent the obstacle and the no-fly zone is determined.
  24. 一种可移动平台的控制方法,所述可移动平台包括拍摄装置,其特征在于,所述控制方法包括:A control method of a movable platform, wherein the movable platform includes a photographing device, wherein the control method comprises:
    获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;acquiring the first pixel area corresponding to the following target and the second pixel area corresponding to the background target in the image captured by the photographing device;
    根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  25. 如权利要求24所述的控制方法,其特征在于,The control method according to claim 24, wherein,
    若所述第二像素区域的形状为第一类型,则执行所述根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态的步骤。If the shape of the second pixel area is of the first type, the step of adjusting the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area is performed.
  26. 如权利要求25所述的控制方法,其特征在于,所述第一类型包括:面型。The control method of claim 25, wherein the first type comprises: a face type.
  27. 如权利要求25或26所述的控制方法,其特征在于,The control method according to claim 25 or 26, wherein,
    若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;If the relative positional relationship is the first positional relationship, adjusting the posture of the photographing device based on the first posture adjustment strategy;
    若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。If the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  28. 如权利要求27所述的控制方法,其特征在于,The control method according to claim 27, wherein,
    所述第一位置关系为没有重合,所述第一姿态调整策略包括:The first positional relationship is not overlapping, and the first attitude adjustment strategy includes:
    使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;centering the image between the first pixel area and the second pixel area;
    所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第二姿态调整策略包括:The second positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes:
    使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。The first pixel area is located at a specified position in the image; and/or the distance between the edge pixel point of the second pixel area and the edge of the image is smaller than a preset distance threshold.
  29. 如权利要求24所述的控制方法,其特征在于,The control method according to claim 24, wherein,
    若所述第二像素区域的形状为第二类型,则根据所述第一像素区域和所述第二像素区域的位置,调整所述拍摄装置的姿态。If the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area.
  30. 如权利要求29所述的控制方法,其特征在于,所述第二类型包括:线型。The control method of claim 29, wherein the second type comprises: a line type.
  31. 如权利要求30所述的控制方法,其特征在于,所述根据所述第一像素区域和所述第二像素区域的位置,调整所述拍摄装置的姿态的步骤,包括:The control method according to claim 30, wherein the step of adjusting the posture of the photographing device according to the positions of the first pixel area and the second pixel area comprises:
    使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。The second pixel area is caused to pass through a designated position in the image, and the first pixel area is coincident with the designated position in at least one direction of the image.
  32. 一种可移动平台的控制方法,其特征在于,所述控制方法包括:A control method for a movable platform, characterized in that the control method comprises:
    获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
    获取所述可移动平台所处环境中的禁飞区的位置信息;Obtain the location information of the no-fly zone in the environment where the movable platform is located;
    根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the obstacle and the position information of the no-fly zone, a moving path of the movable platform around the obstacle and the no-fly zone is determined.
  33. 如权利要求32所述的控制方法,其特征在于,所述根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径,包括:The control method according to claim 32, characterized in that, according to the position information of the obstacle and the position information of the no-fly zone, it is determined that the movable platform detours the obstacle and the no-fly zone. The movement path of the fly zone, including:
    至少部分地根据所述禁飞区的位置信息和所述障碍物的位置信息建立损失函数;establishing a loss function based at least in part on the no-fly zone location information and the obstacle location information;
    最小化所述损失函数以确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。The loss function is minimized to determine a path of movement of the movable platform around the obstacle and the no-fly zone.
  34. 如权利要求33所述的控制方法,其特征在于,所述损失函数包括第五损失函数,所述移动路径上的路径点与所述障碍物和所述禁飞区的距离越大,所述第五损失函数的取值越小。The control method according to claim 33, wherein the loss function includes a fifth loss function, and the greater the distance between the path point on the moving path and the obstacle and the no-fly zone, the greater the distance between the path point and the no-fly zone. The value of the fifth loss function is smaller.
  35. 如权利要求33所述的控制方法,其特征在于,所述损失函数包括第二损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第二损失函数的取值越小。The control method according to claim 33, wherein the loss function comprises a second loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the higher the value of the second loss function. small.
  36. 如权利要求32至35任一项所述的控制方法,其特征在于,所述禁飞区由电子围栏、飞行管制信息确定。The control method according to any one of claims 32 to 35, wherein the no-fly zone is determined by electronic fence and flight control information.
  37. 如权利要求32至35任一项所述的控制方法,其特征在于,所述获取所述可移动平台所处环境中的禁飞区的位置信息,包括:The control method according to any one of claims 32 to 35, wherein the acquiring the position information of the no-fly zone in the environment where the movable platform is located comprises:
    从所述可移动平台本地、可与所述可移动平台通信的远程装置的至少之一获取所述禁飞区的位置信息。The location information of the no-fly zone is obtained from at least one of the remote devices local to the movable platform and communicable with the movable platform.
  38. 如权利要求32至35任一项所述的控制方法,其特征在于,所述获取所述可移动平台所处环境中的障碍物的位置信息,包括:The control method according to any one of claims 32 to 35, wherein the acquiring position information of obstacles in the environment where the movable platform is located comprises:
    通过所述可移动平台的传感器测量所述障碍物的位置信息;和/或,从可与所述可移动平台通信的远程装置获取所述障碍物的位置信息。The location information of the obstacle is measured by sensors of the movable platform; and/or the location information of the obstacle is obtained from a remote device that can communicate with the movable platform.
  39. 一种可移动平台的控制装置,所述可移动平台包括拍摄装置,其特征在于,所述控制装置包括:A control device for a movable platform, the movable platform includes a photographing device, wherein the control device includes:
    存储器,用于存储可执行指令;memory for storing executable instructions;
    处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
    获取所述拍摄装置的拍摄目标的位置信息;acquiring the location information of the photographing target of the photographing device;
    获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the position information of obstacles in the environment where the movable platform is located;
    至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息,确定所述可移动平台绕行所述障碍物的移动路径。A path of movement of the movable platform around the obstacle is determined based at least in part on the location information of the photographed target and the location information of the obstacle.
  40. 如权利要求39所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 39, wherein the processor is further configured to perform the following operations:
    至少部分地根据所述拍摄目标的位置信息和所述障碍物的位置信息建立损失函数;establishing a loss function based at least in part on the location information of the photographed target and the location information of the obstacle;
    最小化所述损失函数以确定所述可移动平台绕行所述障碍物的移动路径。The loss function is minimized to determine a path of movement of the movable platform around the obstacle.
  41. 如权利要求40所述的控制装置,其特征在于,所述损失函数包括第一损失函数,所述移动路径上越少的路径点与所述拍摄目标之间的连线经过所述障碍物所在的区域,所述第一损失函数的取值越小。The control device according to claim 40, wherein the loss function includes a first loss function, and the connecting line between the fewer waypoints on the moving path and the shooting target passes through the location of the obstacle. area, the smaller the value of the first loss function is.
  42. 如权利要求40所述的控制装置,其特征在于,所述损失函数包括第二损失函数,所述移动路径上的路径点与所述障碍物的距离越大,所述第二损失函数的取值越小。The control device according to claim 40, wherein the loss function includes a second loss function, and the greater the distance between the path point on the moving path and the obstacle, the greater the distance of the second loss function. the smaller the value.
  43. 如权利要求40所述的控制装置,其特征在于,所述损失函数包括第三损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第三损失函数的取值越小。The control device according to claim 40, wherein the loss function includes a third loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the higher the value of the third loss function. small.
  44. 如权利要求40-43任一项所述的控制装置,其特征在于,所述拍摄目标包括跟随目标,所述损失函数包括第四损失函数,所述移动路径上的路径点与所述跟随目标的距离越接近于预设跟踪距离,所述第四损失函数的取值越小。The control device according to any one of claims 40-43, wherein the shooting target includes a following target, the loss function includes a fourth loss function, and the path point on the moving path is the same as the following target The closer the distance is to the preset tracking distance, the smaller the value of the fourth loss function.
  45. 如权利要求39所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 39, wherein the processor is further configured to perform the following operations:
    确定所述可移动平台所处环境的环境类型;determining the environment type of the environment in which the movable platform is located;
    根据所述环境类型确定所述可移动平台的移动参数。Movement parameters of the movable platform are determined according to the type of environment.
  46. 如权利要求45所述的控制装置,其特征在于,所述环境类型包括障碍物密集类型和障碍物稀疏类型。46. The control device of claim 45, wherein the environment types include a dense obstacle type and a sparse obstacle type.
  47. 如权利要求46所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 46, wherein the processor is further configured to perform the following operations:
    根据所述拍摄装置所拍摄的图像中的背景目标,确定所述可移动平台所处环境的环境类型。The environment type of the environment in which the movable platform is located is determined according to the background target in the image captured by the photographing device.
  48. 如权利要求46所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 46, wherein the processor is further configured to perform the following operations:
    根据所述可移动平台搭载的探测装置的探测数据,确定所述可移动平台所处环境的环境类型。According to the detection data of the detection device mounted on the movable platform, the environment type of the environment where the movable platform is located is determined.
  49. 如权利要求46所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 46, wherein the processor is further configured to perform the following operations:
    若所述环境类型为障碍物密集类型,则确定所述可移动平台的速 度为第一速度;If the environment type is a dense type of obstacles, determining that the speed of the movable platform is the first speed;
    若所述环境类型为障碍物稀疏类型,则确定所述可移动平台的速度为第二速度,所述第二速度大于所述第一速度。If the type of the environment is a type with sparse obstacles, the speed of the movable platform is determined to be a second speed, and the second speed is greater than the first speed.
  50. 如权利要求46所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 46, wherein the processor is further configured to perform the following operations:
    若所述环境类型为障碍物密集类型,则确定所述拍摄装置的角速度为第一角速度;If the environment type is a type of dense obstacles, determining the angular velocity of the photographing device as the first angular velocity;
    若所述环境类型为障碍物稀疏类型,则确定所述拍摄装置的角速度为第二角速度,所述第二角速度大于所述第一角速度。If the type of the environment is a type with sparse obstacles, it is determined that the angular velocity of the photographing device is a second angular velocity, and the second angular velocity is greater than the first angular velocity.
  51. 如权利要求39所述的控制装置,其特征在于,所述拍摄目标包括跟随目标和背景目标。The control device of claim 39, wherein the shooting target includes a following target and a background target.
  52. 如权利要求51所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 51, wherein the processor is further configured to perform the following operations:
    根据第一像素区域和/或第二像素区域调整所述拍摄装置的姿态;Adjust the posture of the photographing device according to the first pixel area and/or the second pixel area;
    其中,in,
    所述第一像素区域为所述跟随目标在所述拍摄装置所拍摄的图像中对应的像素区域;The first pixel area is a pixel area corresponding to the following target in the image captured by the photographing device;
    所述第二像素区域为所述背景目标在所述拍摄装置所拍摄的图像中对应的像素区域。The second pixel area is a pixel area corresponding to the background object in the image captured by the capturing device.
  53. 如权利要求52所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 52, wherein the processor is further configured to perform the following operations:
    根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  54. 如权利要求53所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 53, wherein the processor is further configured to perform the following operations:
    若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;If the relative positional relationship is the first positional relationship, adjusting the posture of the photographing device based on the first posture adjustment strategy;
    若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。If the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  55. 如权利要求53所述的控制装置,其特征在于,The control device of claim 53, wherein:
    所述第一位置关系为没有重合,所述第一姿态调整策略包括:The first positional relationship is not overlapping, and the first attitude adjustment strategy includes:
    使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;centering the image between the first pixel area and the second pixel area;
    所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第二姿态调整策略包括:The second positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes:
    使所述第一像素区域位于所述图像中的指定位置;positioning the first pixel area at a specified position in the image;
    和/或,and / or,
    使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。The distance between the edge pixels of the second pixel area and the edge of the image is less than a preset distance threshold.
  56. 如权利要求52所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 52, wherein the processor is further configured to perform the following operations:
    根据所述第二像素区域的形状调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the shape of the second pixel area.
  57. 如权利要求56所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 56, wherein the processor is further configured to perform the following operations:
    若所述第二像素区域的形状为第一类型,则基于第三姿态调整策略调整所述拍摄装置的姿态;If the shape of the second pixel area is of the first type, adjusting the posture of the photographing device based on a third posture adjustment strategy;
    若所述第二像素区域的形状为第二类型,则基于第四姿态调整策略调整所述拍摄装置的姿态,所述第四姿态调整策略不同于所述第三姿态调整策略。If the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted based on a fourth posture adjustment strategy, and the fourth posture adjustment strategy is different from the third posture adjustment strategy.
  58. 如权利要求57所述的控制装置,其特征在于,所述第一类型为线型,所述第三姿态调整策略包括:The control device of claim 57, wherein the first type is linear, and the third attitude adjustment strategy comprises:
    使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。The second pixel area is caused to pass through a designated position in the image, and the first pixel area is coincident with the designated position in at least one direction of the image.
  59. 如权利要求57所述的控制装置,其特征在于,所述第二类型为面型,所述第四姿态调整策略包括:The control device of claim 57, wherein the second type is a face type, and the fourth posture adjustment strategy comprises:
    若所述第一像素区域与所述第二像素区域没有重合,则调整所述拍摄装置的姿态以使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;If the first pixel area and the second pixel area do not overlap, adjusting the posture of the photographing device so that the center of the image is located between the first pixel area and the second pixel area;
    若所述第一像素区域位于所述第二像素区域内,则调整所述拍摄装置的姿态以使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。If the first pixel area is located in the second pixel area, adjust the posture of the photographing device so that the first pixel area is located at a designated position in the image; and/or, make the second pixel area The distance between the edge pixel point of the pixel area and the edge of the image is less than a preset distance threshold.
  60. 如权利要求40所述的控制装置,其特征在于,将所述可移动平台所处环境中的禁飞区作为所述障碍物。The control device of claim 40, wherein a no-fly zone in the environment where the movable platform is located is used as the obstacle.
  61. 如权利要求60所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 60, wherein the processor is further configured to perform the following operations:
    根据所述拍摄目标的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the photographed target and the position information of the no-fly zone, a moving path of the movable platform to circumvent the obstacle and the no-fly zone is determined.
  62. 一种可移动平台的控制装置,所述可移动平台包括拍摄装置,其特征在于,所述控制装置包括:A control device for a movable platform, the movable platform includes a photographing device, wherein the control device includes:
    存储器,用于存储可执行指令;memory for storing executable instructions;
    处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
    获取所述拍摄装置所拍摄的图像中跟随目标对应的第一像素区域以及背景目标对应的第二像素区域;acquiring the first pixel area corresponding to the following target and the second pixel area corresponding to the background target in the image captured by the photographing device;
    根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态。The posture of the photographing device is adjusted according to the relative positional relationship between the first pixel area and the second pixel area.
  63. 如权利要求62所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 62, wherein the processor is further configured to perform the following operations:
    若所述第二像素区域的形状为第一类型,则执行所述根据所述第一像素区域和所述第二像素区域的相对位置关系,调整所述拍摄装置的姿态的步骤。If the shape of the second pixel area is of the first type, the step of adjusting the posture of the photographing device according to the relative positional relationship between the first pixel area and the second pixel area is performed.
  64. 如权利要求63所述的控制装置,其特征在于,所述第一类型包括:面型。64. The control device of claim 63, wherein the first type comprises: a face type.
  65. 如权利要求63或64所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device according to claim 63 or 64, wherein the processor is further configured to perform the following operations:
    若所述相对位置关系为第一位置关系,则基于第一姿态调整策略调整所述拍摄装置的姿态;If the relative positional relationship is the first positional relationship, adjusting the posture of the photographing device based on the first posture adjustment strategy;
    若所述相对位置关系为第二位置关系,则基于第二姿态调整策略调整所述拍摄装置的姿态;所述第二姿态调整策略不同于所述第一姿态调整策略。If the relative positional relationship is the second positional relationship, the posture of the photographing device is adjusted based on a second posture adjustment strategy; the second posture adjustment strategy is different from the first posture adjustment strategy.
  66. 如权利要求65所述的控制装置,其特征在于,The control device of claim 65, wherein:
    所述第一位置关系为没有重合,所述第一姿态调整策略包括:The first positional relationship is not overlapping, and the first attitude adjustment strategy includes:
    使所述图像的中心位于所述第一像素区域与所述第二像素区域之间;centering the image between the first pixel area and the second pixel area;
    所述第二位置关系为所述第一像素区域位于所述第二像素区域内,第二姿态调整策略包括:The second positional relationship is that the first pixel area is located in the second pixel area, and the second posture adjustment strategy includes:
    使所述第一像素区域位于所述图像中的指定位置;和/或,使所述第二像素区域的边缘像素点与所述图像的边缘之间的距离小于预设距离阈值。The first pixel area is located at a specified position in the image; and/or the distance between the edge pixel point of the second pixel area and the edge of the image is smaller than a preset distance threshold.
  67. 如权利要求62所述的控制装置,其特征在于,The control device of claim 62, wherein:
    若所述第二像素区域的形状为第二类型,则根据所述第一像素区域和所述第二像素区域的位置,调整所述拍摄装置的姿态。If the shape of the second pixel area is of the second type, the posture of the photographing device is adjusted according to the positions of the first pixel area and the second pixel area.
  68. 如权利要求67所述的控制装置,其特征在于,所述第二类型包括:线型。68. The control device of claim 67, wherein the second type comprises: a linear type.
  69. 如权利要求68所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 68, wherein the processor is further configured to perform the following operations:
    使所述第二像素区域经过所述图像中的指定位置,所述第一像素区域在所述图像的至少一个方向上与所述指定位置重合。The second pixel area is caused to pass through a designated position in the image, and the first pixel area is coincident with the designated position in at least one direction of the image.
  70. 一种可移动平台的控制装置,其特征在于,所述控制装置包括:A control device for a movable platform, characterized in that the control device comprises:
    存储器,用于存储可执行指令;memory for storing executable instructions;
    处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor for executing the executable instructions stored in the memory to perform the following operations:
    获取所述可移动平台所处环境中的障碍物的位置信息;obtaining the location information of obstacles in the environment where the movable platform is located;
    获取所述可移动平台所处环境中的禁飞区的位置信息;Obtain the location information of the no-fly zone in the environment where the movable platform is located;
    根据所述障碍物的位置信息和所述禁飞区的位置信息,确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。According to the position information of the obstacle and the position information of the no-fly zone, a moving path of the movable platform around the obstacle and the no-fly zone is determined.
  71. 如权利要求70所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device of claim 70, wherein the processor is further configured to perform the following operations:
    至少部分地根据所述禁飞区的位置信息和所述障碍物的位置信息建立损失函数;establishing a loss function based at least in part on the no-fly zone location information and the obstacle location information;
    最小化所述损失函数以确定所述可移动平台绕行所述障碍物和所述禁飞区的移动路径。The loss function is minimized to determine a path of movement of the movable platform around the obstacle and the no-fly zone.
  72. 如权利要求71所述的控制装置,其特征在于,所述损失函数包括第五损失函数,所述移动路径上的路径点与所述障碍物和所述禁飞区的距离越大,所述第五损失函数的取值越小。The control device of claim 71, wherein the loss function includes a fifth loss function, and the greater the distance between the waypoint on the moving path and the obstacle and the no-fly zone, the greater the The value of the fifth loss function is smaller.
  73. 如权利要求71所述的控制装置,其特征在于,所述损失函 数包括第二损失函数,所述移动路径的曲率和/或曲率的变化率越小,所述第二损失函数的取值越小。The control device according to claim 71, wherein the loss function includes a second loss function, and the smaller the curvature and/or the rate of change of the curvature of the moving path, the higher the value of the second loss function. small.
  74. 如权利要求70至73任一项所述的控制装置,其特征在于,所述禁飞区由电子围栏、飞行管制信息确定。The control device according to any one of claims 70 to 73, wherein the no-fly zone is determined by electronic fence and flight control information.
  75. 如权利要求70至74任一项所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device according to any one of claims 70 to 74, wherein the processor is further configured to perform the following operations:
    从所述可移动平台本地、可与所述可移动平台通信的远程装置的至少之一获取所述禁飞区的位置信息。The location information of the no-fly zone is obtained from at least one of the remote devices local to the movable platform and communicable with the movable platform.
  76. 如权利要求70至74任一项所述的控制装置,其特征在于,所述处理器还用于执行以下操作:The control device according to any one of claims 70 to 74, wherein the processor is further configured to perform the following operations:
    通过所述可移动平台的传感器测量所述障碍物的位置信息;和/或,从可与所述可移动平台通信的远程装置获取所述障碍物的位置信息。The location information of the obstacle is measured by sensors of the movable platform; and/or the location information of the obstacle is obtained from a remote device that can communicate with the movable platform.
  77. 一种计算机可读存储介质,其特征在于,其存储有可执行指令,所述可执行指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行如权利要求1至38中任一项权利要求所述的控制方法。A computer-readable storage medium, characterized in that it stores executable instructions, and when executed by one or more processors, the executable instructions can cause the one or more processors to execute as claimed in claim 1 The control method of any one of claims 38 to 38.
  78. 一种可移动平台,其特征在于,包括:拍摄装置、以及可移动载体;所述可移动载体包括:如权利要求39-76任一项所述的控制装置。A movable platform, characterized in that it comprises: a photographing device and a movable carrier; the movable carrier comprises: the control device according to any one of claims 39-76.
  79. 如权利要求78所述的可移动平台,其特征在于,所述可移动载体包括:无人机、无人车、无人船或机器人。The movable platform of claim 78, wherein the movable carrier comprises: an unmanned aerial vehicle, an unmanned vehicle, an unmanned ship or a robot.
PCT/CN2020/107825 2020-08-07 2020-08-07 Control method and device for mobile platform, and computer readable storage medium WO2022027596A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/107825 WO2022027596A1 (en) 2020-08-07 2020-08-07 Control method and device for mobile platform, and computer readable storage medium
CN202080035658.XA CN113906360A (en) 2020-08-07 2020-08-07 Control method and device for movable platform and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/107825 WO2022027596A1 (en) 2020-08-07 2020-08-07 Control method and device for mobile platform, and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2022027596A1 true WO2022027596A1 (en) 2022-02-10

Family

ID=79186965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/107825 WO2022027596A1 (en) 2020-08-07 2020-08-07 Control method and device for mobile platform, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN113906360A (en)
WO (1) WO2022027596A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924585A (en) * 2022-05-19 2022-08-19 广东工业大学 Safe landing method and system of rotor unmanned aerial vehicle on rugged ground surface based on vision
CN116468351A (en) * 2023-06-16 2023-07-21 深圳市磅旗科技智能发展有限公司 Intelligent logistics management method based on big data
US20230259145A1 (en) * 2022-02-15 2023-08-17 Skydio, Inc. Enhanced Unmanned Aerial Vehicle Flight With Situational Awareness For Moving Vessels

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291607B (en) * 2022-08-02 2023-03-14 柳州城市职业学院 Autonomous planning generation method and system for unmanned ship path in complex unknown water area
CN115755981A (en) * 2022-12-12 2023-03-07 浙江大学 Interactive unmanned aerial vehicle autonomous aerial photography method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016041110A1 (en) * 2014-09-15 2016-03-24 深圳市大疆创新科技有限公司 Flight control method of aircrafts and device related thereto
CN106325290A (en) * 2016-09-30 2017-01-11 北京奇虎科技有限公司 Monitoring system and device based on unmanned aerial vehicle
CN106981073A (en) * 2017-03-31 2017-07-25 中南大学 A kind of ground moving object method for real time tracking and system based on unmanned plane
WO2018072063A1 (en) * 2016-10-17 2018-04-26 深圳市大疆创新科技有限公司 Method and apparatus for controlling flight of aircraft, and aircraft
CN109493371A (en) * 2018-11-29 2019-03-19 中国计量大学 A kind of quadrotor drone pedestrian tracting method of view-based access control model

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106741028B (en) * 2016-12-05 2018-11-02 四川西部动力机器人科技有限公司 A kind of airport Intelligent baggage car
WO2018218516A1 (en) * 2017-05-31 2018-12-06 深圳市大疆创新科技有限公司 Unmanned aerial vehicle return route planning method and apparatus
WO2019061063A1 (en) * 2017-09-27 2019-04-04 深圳市大疆创新科技有限公司 Image collection method for unmanned aerial vehicle, and unmanned aerial vehicle
CN107992052B (en) * 2017-12-27 2020-10-16 纳恩博(北京)科技有限公司 Target tracking method and device, mobile device and storage medium
CN108519773B (en) * 2018-03-07 2020-01-14 西安交通大学 Path planning method for unmanned vehicle in structured environment
CN108931991A (en) * 2018-08-30 2018-12-04 王瑾琨 The automatic follower method of mobile vehicle and has and follow barrier avoiding function mobile vehicle automatically
CN109343528A (en) * 2018-10-30 2019-02-15 杭州电子科技大学 A kind of energy-efficient unmanned plane path planning barrier-avoiding method
CN109739267A (en) * 2018-12-21 2019-05-10 北京智行者科技有限公司 Follow the determination method in path

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016041110A1 (en) * 2014-09-15 2016-03-24 深圳市大疆创新科技有限公司 Flight control method of aircrafts and device related thereto
CN106325290A (en) * 2016-09-30 2017-01-11 北京奇虎科技有限公司 Monitoring system and device based on unmanned aerial vehicle
WO2018072063A1 (en) * 2016-10-17 2018-04-26 深圳市大疆创新科技有限公司 Method and apparatus for controlling flight of aircraft, and aircraft
CN106981073A (en) * 2017-03-31 2017-07-25 中南大学 A kind of ground moving object method for real time tracking and system based on unmanned plane
CN109493371A (en) * 2018-11-29 2019-03-19 中国计量大学 A kind of quadrotor drone pedestrian tracting method of view-based access control model

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230259145A1 (en) * 2022-02-15 2023-08-17 Skydio, Inc. Enhanced Unmanned Aerial Vehicle Flight With Situational Awareness For Moving Vessels
CN114924585A (en) * 2022-05-19 2022-08-19 广东工业大学 Safe landing method and system of rotor unmanned aerial vehicle on rugged ground surface based on vision
CN116468351A (en) * 2023-06-16 2023-07-21 深圳市磅旗科技智能发展有限公司 Intelligent logistics management method based on big data
CN116468351B (en) * 2023-06-16 2023-11-07 深圳市磅旗科技智能发展有限公司 Intelligent logistics management method, system and storage medium based on big data

Also Published As

Publication number Publication date
CN113906360A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
WO2022027596A1 (en) Control method and device for mobile platform, and computer readable storage medium
US11797009B2 (en) Unmanned aerial image capture platform
US11242144B2 (en) Aerial vehicle smart landing
US20240062663A1 (en) User Interaction With An Autonomous Unmanned Aerial Vehicle
EP3459238B1 (en) Need-sensitive image and location capture system and method
CN113038016B (en) Unmanned aerial vehicle image acquisition method and unmanned aerial vehicle
CN108476288A (en) Filming control method and device
CN109923589A (en) Building and update hypsographic map
US20210112194A1 (en) Method and device for taking group photo
CN205453893U (en) Unmanned aerial vehicle
US11912407B1 (en) Unmanned vehicle morphing
US20220027038A1 (en) Interactive virtual interface
WO2021047502A1 (en) Target state estimation method and apparatus, and unmanned aerial vehicle
CN108981706B (en) Unmanned aerial vehicle aerial photography path generation method and device, computer equipment and storage medium
US20200064133A1 (en) Information processing device, aerial photography route generation method, aerial photography route generation system, program, and storage medium
CN106973221A (en) Unmanned plane image capture method and system based on aesthetic evaluation
CN108235815A (en) Video camera controller, photographic device, camera system, moving body, camera shooting control method and program
CN111444786A (en) Crowd evacuation method, device and system based on unmanned aerial vehicle group and storage medium
WO2021056139A1 (en) Method and device for acquiring landing position, unmanned aerial vehicle, system, and storage medium
CA3069813C (en) Capturing, connecting and using building interior data from mobile devices
WO2020225979A1 (en) Information processing device, information processing method, program, and information processing system
CN110262567A (en) A kind of path relaying space of points generation method, device and unmanned plane
CN112154389A (en) Terminal device and data processing method thereof, unmanned aerial vehicle and control method thereof
WO2022205210A1 (en) Photographing method and apparatus, computer-readable storage medium, and terminal device
WO2023189455A1 (en) Data processing method, data processing device, program, and mobile body control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20948162

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20948162

Country of ref document: EP

Kind code of ref document: A1