WO2019062173A1 - Video processing method and device, unmanned aerial vehicle and system - Google Patents

Video processing method and device, unmanned aerial vehicle and system Download PDF

Info

Publication number
WO2019062173A1
WO2019062173A1 PCT/CN2018/088723 CN2018088723W WO2019062173A1 WO 2019062173 A1 WO2019062173 A1 WO 2019062173A1 CN 2018088723 W CN2018088723 W CN 2018088723W WO 2019062173 A1 WO2019062173 A1 WO 2019062173A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
drone
environment image
image
pan
Prior art date
Application number
PCT/CN2018/088723
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 CN201880010924.6A priority Critical patent/CN110268704B/en
Publication of WO2019062173A1 publication Critical patent/WO2019062173A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a video processing method, device, drone, and system.
  • panoramic video has the advantage of having a large visual effect and providing users with more shooting environment information in the same video picture, which is favored by most users.
  • professional photographers are required to use professional camera equipment to shoot, and the video produced by the camera is tediously post-production to obtain panoramic video. Therefore, how to effectively capture panoramic video has become a research hotspot.
  • the embodiment of the invention discloses a video processing method, device, drone and system, which can automatically and conveniently capture a video comprising at least two panoramic video segments.
  • an embodiment of the present invention provides a video processing method, which is applied to a drone, where the drone is configured with a photographing device for capturing video, and the method includes: controlling shooting of the drone The device captures the environment image at the first shooting point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image, and moves the drone from the first shooting point to the second shooting point according to a flight trajectory.
  • the shooting device controlling the drone captures a second video segment, and the drone reaches the third shooting point, and the control station
  • the camera of the drone captures an environment image to obtain a second panoramic image, and generates a third video segment according to the second video segment, according to the first video segment, the second video segment, and the third video Segment, generate the target video.
  • an embodiment of the present invention provides a video processing device, including a memory and a processor;
  • the memory is configured to store program instructions
  • the processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
  • the photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
  • the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
  • an embodiment of the present invention provides a drone, including:
  • a power system disposed on the fuselage for providing flight power
  • a processor configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, and follow the flight path in the drone Controlling the camera of the drone to capture a second video segment during the movement from the first photographing point to the second photographing point and from the second photographing point to the third photographing point
  • the drone reaches the third shooting point, controls the shooting device of the drone to capture the environment image to obtain a second panoramic image, and generates a third video segment according to the second panoramic image, according to the first video segment. And generating, by the second video segment and the third video segment, a target video.
  • an embodiment of the present invention provides a video processing system, where the system includes: a video processing device and a drone;
  • the video processing device is configured to send a flight control instruction to the aircraft, where the flight control instruction is used to instruct the drone to fly according to the determined flight trajectory;
  • the drone is configured to control the drone to fly according to the flight trajectory and control a photographing device mounted on the drone to perform shooting according to the flight control instruction;
  • the video processing device is further configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, Controlling the camera of the drone to capture a second video segment during movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point
  • the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image, according to the The first video segment, the second video segment, and the third video segment generate a target video.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements the video processing method according to the first aspect.
  • the embodiment of the present invention can perform shooting control around the drone during the movement of the drone according to the flight trajectory, and obtain a first video segment based on the panoramic image, a second video segment, and a third video segment based on the panoramic image, and Automatically and conveniently generate a target video, which can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize multiple panoramic video segments. Smooth transition between users to meet the user's need for automation, intelligent shooting and processing of video.
  • FIG. 1 is a schematic diagram of a flight trajectory provided by an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of another flight trajectory provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of an image mosaic method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a video generation process according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of generating a panoramic image according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a UAV system according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a video processing method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart diagram of another video processing method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a video processing device according to an embodiment of the present invention.
  • the video processing method provided by the embodiment of the present invention may be performed by a video processing device, and the video processing device may be disposed on a drone capable of capturing video, or may be disposed on a remote controller at the ground end.
  • the video processing method can be applied to a video shooting task based on a drone.
  • a video shooting task of a movable device such as a robot capable of autonomous movement can also be applied, and the following video corresponding to the drone is used.
  • the processing method is illustrated by way of example.
  • the video processing method proposed by the scheme adopts a video processing scheme combined with the trajectory, which is applied to the drone, and can be mounted by being in the process of autonomous flight according to the determined flight trajectory by determining the flight trajectory.
  • the camera on the drone captures images at various waypoint locations. Specifically, when the first position of the flight path is reached, the drone can be controlled to rotate at the position or control the pan/tilt of the drone to perform circumferential rotation, and the environment image is captured during the rotation, and each of the captured images will be captured.
  • the environment image is spliced to obtain a first panoramic image, and the first video segment is generated according to the first panoramic image; the second video segment composed of the captured environmental image may be acquired at the second position on the flight trajectory;
  • the drone can be controlled to rotate at the position or control the head of the drone to perform circumferential rotation, and the environment image is captured during the rotation, and the captured environmental images are stitched.
  • the panoramic video segments ie, the first video segment and the third video segment
  • further include a non-panoramic video segment ie, a second video segment
  • the panoramic video segment has a comparison
  • the large viewing angle provides the user with a global visual effect of the shooting area
  • the non-panoramic image can provide the user with a partial visual effect of the shooting area.
  • a video including at least two panoramic video segments can be generated for the user by combining the flight trajectory, and the user can provide the global visual effect and the partial visual effect of the shooting region, and can realize the panoramic video segment and the non-panoramic video segment. Smooth transition between the two, and achieve a smooth transition between multiple panoramic video segments to meet the user's need for automation, intelligent shooting and processing of video.
  • the flight trajectory of the embodiment of the present invention refers to a flight trajectory of the camera of the drone during the process of capturing an image, and the flight trajectory may be a non-closed flight trajectory or a closed flight trajectory.
  • a closed flight path refers to a flight path where the starting point of the flight and the end point of the flight are not at the same point in the process of capturing the image.
  • the closed flight path means that the starting point of the flight is the same as the ending point of the flight in the process of capturing the image.
  • the flight path of the location point refers to a flight trajectory of the camera of the drone during the process of capturing an image, and the flight trajectory may be a non-closed flight trajectory or a closed flight trajectory.
  • a closed flight path refers to a flight path where the starting point of the flight and the end point of the flight are not at the same point in the process of capturing the image.
  • the closed flight path means that the starting point of the flight is the same as the ending point of the flight in the process of capturing the image
  • the flight trajectory may be a non-closed flight trajectory in which the drone flies and takes an image.
  • FIG. 1 is a schematic diagram of a flight trajectory according to an embodiment of the present invention.
  • 11 denotes a drone
  • 12 denotes a position point A
  • 13 denotes a position point B
  • 14 denotes a position point B
  • 15 denotes a user
  • the user 15 can determine the position point A and the position point B, and the position point C by the video processing device
  • the flight path is determined according to the position point A, the position point B and the position point C.
  • the video processing device can control the drone to fly along the flight path composed of the position point A, the position point B and the position point C, and hang the hook.
  • the photographing device mounted on the drone 11 captures an image during flight. Specifically, after determining the flight path composed of the position point A, the position point B, and the position point C, the video processing device can control the drone 11 to fly according to the flight path from any position in the flight path, and control the drone.
  • the panoramic image generates a first video segment; a second video segment on the flight path can acquire a second video segment composed of the captured environmental image; and when the third location point of the flight trajectory is reached, the drone 11 can be controlled
  • the position point rotates or controls the pan/tilt head of the drone 11 to perform circumferential rotation, and captures an environment image during the rotation process, and splices the captured environment images to obtain a second panoramic image, which is generated according to the second panoramic image.
  • a third video segment ; generating a target video according to the first video segment, the second video segment, and the third video segment.
  • the drone 11 flies out from the position point A along the flight path shown in FIG. 1, and flies past the position point B along the position point A and reaches the position point C. If the drone reaches the position point A, the control is performed.
  • the drone 11 rotates at the position point A or controls the pan/tilt head of the drone 11 to perform circumferential rotation, and captures an environment image during the rotation process, and splices the captured environment images to obtain a first panoramic image, according to which The first panoramic image generates a first video segment; when the drone moves from the position point A to the position point B according to the flight trajectory, and from the position point B to the position point C, the camera of the drone 11 can be controlled to perform Shooting to obtain the second video segment; when the drone reaches the position point C, controlling the drone 11 to rotate at the position point C or controlling the pan-tilt of the drone 11 to perform circumferential rotation, and taking an environment image during the rotation, The captured respective environment images are spliced to obtain a second panoramic image,
  • the drone 11 flies out from the position point B along the flight path shown in FIG. 1, and flies along the position point B to the position point A, and controls the drone 11 to rotate at the position point A or control the unmanned person.
  • the pan/tilt of the machine 11 is rotated circumferentially, and an environment image is taken during the rotation process, and the captured environmental images are spliced to obtain a first panoramic image, and the first video segment is generated according to the first panoramic image;
  • the machine moves according to the flight path from the position point A to the position point B, and from the position point B to the position point C, the shooting device of the drone 11 can be controlled to obtain the second video segment; the drone arrives at the position At point C, the drone 11 is controlled to rotate at the position point C or to control the pan/tilt head of the drone 11 to perform circumferential rotation, and to capture an environment image during the rotation process, and to splicing the captured environmental images to obtain a second panorama.
  • the embodiment for acquiring the second video segment further includes: in the process of moving the drone from the position point A to the position point B according to the flight trajectory, the camera unit of the drone 11 can be controlled to capture the sub-video segment 1 in the absence of During the movement of the man-machine from the position point B to the position point C according to the flight path, the sub-video segment 1 and the sub-video segment 2 can be spliced to obtain the second video segment. .
  • the flight trajectory may be a closed flight trajectory in which the drone flies and takes an image.
  • 11 denotes a drone
  • 16 denotes a position point D
  • 17 denotes a position point E
  • 18 denotes a position point F
  • 19 denotes a position point G
  • 15 denotes a user
  • the user 15 can determine by a video processing device
  • the position point D and the position point E, the position point F and the position point G determine the flight trajectory according to the position point D and the position point E, the position point F and the position point G
  • the video processing device can control the drone along the position A flight path composed of a point D, a position point E, a position point F, and a position point G is flew, and an image during flight is captured by a photographing device mounted on the drone 11.
  • the video processing device may control the drone 11 to fly according to the flight path from any position in the flight path. Controlling the first position of the drone 11 to rotate or controlling the pan/tilt head of the drone 11 to perform circumferential rotation, and capturing an environment image during the rotation process, and splicing the captured environment images to obtain a first panoramic image, according to which The first panoramic image generates a first video segment; the second location point on the flight trajectory may acquire a second video segment composed of the captured environmental image; and when the third location point of the flight trajectory is reached, the drone may be controlled 11 rotate at the position or control the pan/tilt head of the drone 11 to perform circumferential rotation, and take an environment image during the rotation process, and splicing the captured environmental images to obtain a second panoramic image according to the second panoramic view.
  • the image generates a third video segment; the fourth position on the flight trajectory may acquire a fourth video segment composed of the
  • the drone 11 flies out from the position point D along the flight trajectory shown in FIG. 2, flies through the position point E along the position point D and reaches the position point F, and then flies past the position point F along the position point F.
  • G and return to the position point D if the drone reaches the position point D, control the drone 11 to rotate at the position point D or control the pan-tilt of the drone 11 to make a circumferential rotation, and take an environmental image during the rotation,
  • the captured respective environmental images are spliced to obtain a first panoramic image, according to which the first panoramic image is generated, and the unmanned aerial vehicle moves from the position point D to the position point E according to the flight trajectory, and arrives from the position point E.
  • the photographing device of the drone 11 can be controlled to obtain a second video segment; when the drone reaches the position point F, the drone 11 is controlled to rotate at the position point F or the drone 11 is controlled.
  • the pan/tilt is rotated circumferentially, and the environment image is taken during the rotation process, and the captured environmental images are spliced to obtain a second panoramic image, and the third video segment is generated according to the second panoramic image;
  • Flight track During the movement of the track from the position point F to the position point G and returning from the position point G to the position point D, the photographing device of the drone 11 can be controlled to take a fourth video segment, and the drone returns to the position point D.
  • the target video is generated according to the first video segment, the second video segment, the third video segment, and the fourth video segment.
  • the video processing device in the embodiment of the present invention may use a trajectory generation control algorithm to determine a flight trajectory of the drone.
  • the trajectory generation control algorithm mainly plans to capture a second video segment from the flight start point to the end point.
  • the flight path, and control the drone to rotate at two locations, and control the camera to capture the environment image during the rotation to obtain a panoramic image.
  • the trajectory generation control algorithm of the embodiment of the present invention may include at least one of a Bezier curve or a 5-order-B-spline, etc., which is not limited by the embodiment of the present invention.
  • the video processing device can determine a flight path of any shape linked by three position points, such as a straight line, a curve, a spiral line, etc., by setting three position points.
  • FIG. 1 can be used as an example. As shown in FIG. 1, the curve trajectory from the position point A through the position point B to the position point C is a determined flight trajectory.
  • the shooting device of the drone is not an ultra wide-angle shooting device but an ordinary shooting device, the viewing angle of the shooting device is limited, and only a small angle of view image can be taken at a time, so it is necessary to plan the shooting angle and cover more.
  • a wide range of perspectives For example, suppose that in the form of a circumferential scan, the pitch angle of the UAV pan/tilt can be fixed first, and then the yaw angle of the yaw angle is controlled to control the environment image of the shooting device for one week, and then the pitch angle is gradually changed. The angle yaw angle controls the camera to capture different environmental images.
  • the video processing device may obtain a panoramic image by splicing the captured environmental images.
  • the video processing device may use a splicing algorithm to implement image splicing. As shown in FIG. 3, the image splicing is performed.
  • the process includes:
  • steps S21-S24 when the splicing starts, first, the head of the drone can be rotated at different pitch angles, and multiple images can be captured by the photographing device, and the images have a certain overlap ratio, such as The overlap ratio is generally between 0.2 and 0.3.
  • the features of each two adjacent images can be searched for and matched, and the matched features are subjected to beam adjustment (Bundle Adjustment, BA).
  • the two adjacent images at the location may refer to the two images with the shortest shooting time interval, and the panoramic image herein may refer to the first panoramic image or the second panoramic image.
  • the imaging device is calibrated, and the calibration value is used as the initial value of the parameters in the imaging device, and the targeted feature points can be matched according to the captured environmental images, thereby reducing The error generated during the matching process.
  • FIG. 4 is a schematic diagram of a video generation process according to an embodiment of the present invention, where 31 represents a first perspective point of a target panoramic image, 32 represents a first imaging point, and 33 represents a first panoramic point, 37 Represents a first projection plane, 34 represents a second perspective point, 35 represents a second panoramic point, 36 represents a second imaging point, and 38 represents a second projection plane.
  • the panoramic projection similar to the asteroid is actually the first viewing point shown in FIG.
  • the projection plane is at the first projection plane 37, that is, a projection mode similar to the center of the asteroid, and normal.
  • the photograph of the viewing angle is a projection of the viewing point at the second viewing point 34, ie at the center of the circle resembling an asteroid, the projection plane at the second projection plane 38, by moving the viewpoint point from the first viewing point 31 to The second viewing point 34, while moving the projection plane from the first projection plane 37 to the second projection plane 38, can gradually expand the target panoramic image to obtain the target video segment.
  • FIG. 5 is a schematic flowchart of generating a panoramic image according to an embodiment of the present invention.
  • the video processing device first determines a flight trajectory of the drone, and then controls the drone to fly along the determined flight trajectory, and controls the camera of the drone at a certain point (eg, When a shooting point or a third shooting point is taken, an image of each orientation is taken, and the images in the respective orientations are stitched to obtain a spherical panoramic image (such as obtaining a first panoramic image or a second panoramic image).
  • first location point, the second location point, the third location point, and the fourth location point are all location points on the flight path of the drone, and the location points may be different, and the video processing device may be based on the user.
  • the selection operation or setting of each shooting point according to the user's needs, the video processing device can also automatically set each location point according to flight parameters (such as flight altitude, flight distance or flight time, etc.).
  • FIG. 6 is a schematic structural diagram of a UAV system according to an embodiment of the present invention.
  • the system includes a video processing device 51 and a drone 52.
  • the video processing device 51 may be a control terminal of the drone, and may specifically be one of a remote controller, a smart phone, a tablet computer, a laptop computer, a ground station, a wearable device (watch, a wristband) or
  • the drone 52 may be a rotary wing type unmanned aerial vehicle, such as a quadrotor drone, a six-rotor drone, an eight-rotor drone, or a fixed-wing drone.
  • the drone includes a power system 521 for providing flight power to the drone, wherein the power system 521 includes one or more of a propeller, a motor, and an electric power, and the drone may further include a pan/tilt 522 and The imaging device 523 and the imaging device 523 are mounted on the main body of the drone through the pan/tilt 522.
  • the camera is used for image or video shooting during the flight of the drone, including but not limited to multi-spectral imager, hyperspectral imager, visible light camera and infrared camera.
  • the pan/tilt is multi-axis transmission and stabilization system.
  • the pan/tilt motor compensates the shooting angle of the imaging device by adjusting the rotation angle of the rotating shaft, and prevents or reduces the jitter of the imaging device by setting an appropriate buffer mechanism.
  • the video processing device 51 can configure an interaction device that interacts with the user, and the interaction device can be one or more of a touch display screen, a keyboard, a button, a joystick, and a pulsator.
  • a user interface may be provided, and the user may perform a click operation on the user interface of the video processing device 51, the click operation may confirm a location point by clicking once, and the video processing device 51 receives the three locations clicked by the click operation.
  • the video processing device 51 connects the three location points to form a flight trajectory connected by the three points, and the flight trajectory may be a linear trajectory or a curved trajectory, thereby controlling the drone 52 to fly according to the flight trajectory.
  • the click operation on the user interface is only one method for confirming the flight trajectory, and the manner for confirming the flight trajectory is not limited in the embodiment of the present invention.
  • the video processing device 51 may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and according to the first The panoramic image generates a first video segment; during the movement of the drone from the first shooting point to the second shooting point and from the second shooting point to the third shooting point according to the flight trajectory, controlling the shooting device of the drone Obtaining a second video segment; when the drone reaches the third shooting point, controlling the camera of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; A target video is generated according to the first video segment, the second video segment, and the third video segment.
  • FIG. 7 is a schematic flowchart diagram of a video processing method according to an embodiment of the present invention.
  • the method may be performed by a video processing device, where a specific explanation of the video processing device is as described above.
  • the method of the embodiment of the present invention includes the following steps.
  • the photographing device that controls the drone captures the environment image at the first photographing point to obtain a first panoramic image, and obtains the first video segment according to the first panoramic image.
  • the video processing device in order to provide the user with the global visual effect of the shooting area and provide the user with more information about the shooting area, can control the shooting device of the drone to capture the environmental image at the first shooting point. a first panoramic image, and obtaining a first video segment based on the first panoramic image.
  • the video processing device may first determine three location points, determine a flight path of the drone according to the three location points, and, after determining the flight path of the drone, cause the drone to perform motion according to the determined flight path.
  • the video processing device can control the camera of the drone to capture the environment image to obtain the first panoramic image when the first shooting point is reached, and obtain the first video segment according to the first panoramic image. Taking FIG.
  • the video processing device first determines three position points A, B, and C, and determines a connection curve between the position point A, the position point B, and the position point C as a flight path of the drone.
  • the video processing device controls the drone to fly according to the flight path composed of the position point A, the position point B and the position point C shown in FIG. 1, and the drone can fly along the position point A through the position point B and reach the position point C.
  • the video processing device can control the drone or control the head of the drone to perform the circle at the position point A.
  • Rotating, the photographing device controlling the drone photographs the environment image during the rotation of the drone to obtain a first panoramic image, thereby generating a first video segment according to the first panoramic image.
  • the video processing device may control the drone to rotate at a first shooting point to capture a first panoramic image, and specifically, control the drone to make a clockwise direction at the first shooting point. Rotating circumferentially, or controlling the drone to make a circumferential rotation in a counterclockwise direction to obtain a first panoramic image.
  • the video processing device can control the drone to perform a circumferential rotation in the clockwise direction at the position point A, or the video processing device can control the drone at The position point A is circumferentially rotated in the counterclockwise direction, and the photographing device is controlled to perform the shooting to obtain the first panoramic image during the circumferential rotation.
  • the video processing device may perform an expansion process on the first panoramic image, and generate a first video segment according to each image obtained in the expansion process.
  • the process of generating the first video segment according to the first panoramic image may be illustrated by using FIG. 4 as an example.
  • the acquired first panoramic image is used as the spherical panoramic image in FIG. 4, first from the first panoramic image.
  • the first view point 31 (the north pole point) starts to be gradually expanded, and the unfolding manner is to gradually move the view point from the first view point 31 to the second view point 34 (the center of the sphere) of the spherical panoramic image, and expand the first panorama.
  • the image moves the projection plane following the point of view point from the spherical center plane 37 (first projection plane) of the spherical panoramic image to the plane 38 (second projection plane) where the south pole of the spherical panoramic image lies, thereby
  • the first panoramic image is progressively expanded to generate a first video segment.
  • the video processing device in the process of moving the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point according to the flight path, in order to provide the user with a part of the photographing area A visual effect to show a local feature of the shooting area (such as an iconic building or a character), the video processing device can control the camera of the drone to capture a second video segment.
  • the flight path of the drone is as shown in FIG. 1 , and the flight path is a curved track between the position point A, the position point B, and the position point C, in the drone.
  • the drone is controlled.
  • the camera captures a second video segment.
  • the first shooting point, the second shooting point, and the third shooting point may be three position points on the flight path.
  • the first shooting point may be It is the position point A on the flight path
  • the second shooting point may be the position point B on the flight path
  • the third shooting point may be the position point C on the flight path.
  • the first shooting point may be a first position point selected according to the received selection operation on the flight path
  • the second shooting point may be based on the received flight path.
  • the second position point selected by the operation is selected
  • the third shooting point is a third position point selected according to the received selection operation on the flight path.
  • the first photographing point is a position point of the drone when the drone tracks the target object reaching the first position point; the second photographing point is that the drone tracks the target object The position point of the drone when the second position point is reached; the third shooting point is the position point of the drone when the drone tracks the target object to reach the third position point, where the target object is located A moving object or a moving person or animal.
  • the video processing device can plan the trajectory of any shape by the setting of the shooting point, such as a straight line, a curve, a spiral, etc., and then discretize the entire curve as a passing point of the drone, guiding the unmanned person. Flight of the aircraft.
  • the video processing device in order to provide the user with the global visual effect of the shooting area and provide the user with more information about the shooting area, the video processing device can control the shooting device of the drone to capture the environmental image at the third shooting point. a second panoramic image, and obtaining a third video segment based on the second panoramic image.
  • the video processing device may control the drone to rotate at a third shooting point to capture a second panoramic image.
  • the drone may be controlled to be clockwise at the third shooting point. Rotating circumferentially, or controlling the drone to make a circumferential rotation in a counterclockwise direction to obtain a second panoramic image.
  • the video processing device can control the drone to perform a circumferential rotation in the clockwise direction at the position point C, or the video processing device can control the drone at The position point C is circumferentially rotated in the counterclockwise direction, and the photographing device is controlled to perform the second panoramic image during the circumferential rotation.
  • the video processing device may perform an expansion process on the second panoramic image, and generate a third video segment according to each image obtained in the expansion process.
  • the process of generating the third video segment according to the second panoramic image may be illustrated by using FIG. 4 as an example.
  • the acquired second panoramic image is used as the spherical panoramic image in FIG. 4, first from the second panoramic image.
  • the first view point 31 (the north pole point) starts to be gradually expanded, and the unfolding manner is to gradually move the view point from the first view point 31 to the second view point 34 (the center of the sphere) of the spherical panoramic image, and expand the second panorama.
  • the image moves the projection plane following the point of view point from the spherical center plane 37 (first projection plane) of the spherical panoramic image to the plane 38 (second projection plane) where the south pole of the spherical panoramic image lies, thereby
  • the second panoramic image is gradually expanded to generate a third video segment.
  • the video processing device may
  • the last image of a panoramic image serves as the first video frame of the second video segment, and the last video frame of the second video segment serves as the first image of the second panoramic image.
  • the video processing device may generate a target video according to the first video segment, the second video segment, and the third video segment.
  • the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image;
  • the camera controlling the drone captures the second video segment;
  • the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third
  • the video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Demand
  • FIG. 8 is a schematic flowchart diagram of another video processing method according to an embodiment of the present invention.
  • the method may be performed by a video processing device, where a specific explanation of the video processing device is as described above.
  • the method of the embodiment of the present invention is different from the embodiment described above in FIG. 7 in that the present embodiment determines the flight path of the drone by acquiring the first location point, the second location point, and the third location point, and controls the cloud.
  • the table or the drone rotates to control the photographing device to take an environment image during the rotation of the drone or the pan/tilt, and splicing the respective environment images to obtain a panoramic image.
  • the first location point, the second location point, and the third location point may be determined by the video processing device according to the three sets of latitude and longitude information input by the user, or may be determined according to the location information input by the user.
  • the location information input by the user here may refer to the name of a certain building (XX building) or a certain place name (XX of the XX city), or may be determined by receiving a click operation of the user, or may be based on a drone flight.
  • the distance set may also be set according to the altitude of the drone flight. For example, if the flying height reaches the first preset height threshold (for example, 50 m) as the first position point, the flying height reaches the second preset.
  • a position point of a height threshold (for example, 30 m) is used as a second position point, and a position point at which the flying height reaches a third preset height threshold (for example, 60 m) is used as a third position point, where the first preset height threshold, the third pre-predetermined The height threshold may be greater than the second preset height threshold.
  • the first preset height threshold and the third height threshold may be equal or not equal to each other, which is not limited by the present invention.
  • FIG. 1 is used as an example.
  • the location point A as shown in FIG. 1 may be obtained as the first location point
  • the location point B is the second location point and the location point.
  • C is the third position point.
  • the first location point, the second location point, and the third location point may be any point of the user clicking operation, for example, as shown in FIG. 1, the first location point, the second location point, and the The three-position point may be the position point A, the position point B, and the position point C, or may be a point at any other position.
  • the determination of the position point on the flight path is not limited in the embodiment of the present invention.
  • the video processing device may generate, according to the determined location information of the first location point and the second location point, the first trajectory and the second photographic point according to the first trajectory generation rule.
  • the first trajectory generation rule may include a trajectory generation control algorithm, and the determination of the flight trajectory of the drone usually has a plurality of commonly used algorithms, such as a Bezier curve, a five-time B-spline curve, and a 5-order-B-spline algorithm. .
  • the second trajectory generation rule may include a trajectory generation control algorithm
  • the determination of the flight trajectory of the drone usually has a plurality of commonly used algorithms, such as a Bezier curve, a 5-time B-spline curve, and a 5-order-B-spline algorithm.
  • FIG. 1 is taken as an example, and a curved trajectory between the position point A and the position point B may be used as the first flight trajectory.
  • the second linear trajectory is determined to be a second flight trajectory.
  • the second trajectory generation rule generating a second curved trajectory from the third shooting point and the fourth shooting point
  • the second curved trajectory is determined as the second flight trajectory.
  • FIG. 1 is taken as an example, and a curved trajectory between the position point B and the position point C may be used as the second flight trajectory.
  • the first shooting point and the second shooting point are two time points in the process of the drone moving in accordance with the first flight path
  • the second shooting point and the third shooting point are drones.
  • the video processing device may determine three time points of the shooting time interval by setting a shooting time interval, and use the determined three time points as the first shooting point, the second shooting point, and the third shooting point.
  • the video processing device may preset the shooting time interval of the camera of the drone to be 5 seconds, and the first shooting point is the time point 10:00:05, so that the time point of the second shooting point can be determined to be 10:00: 10.
  • the time point for determining the third shooting point is 10:00:15.
  • the first position point is used as the first shooting point
  • the second position point is used as the second shooting point
  • the third position point is used as the third shooting point.
  • the video processing device may use the first location point as the first shooting point, the second location point as the second shooting point, and the third location point as the third shooting point.
  • the first shooting point, the second shooting point, and the third shooting point may be three position points on the flight path.
  • the photographing device that controls the drone captures the environment image at the first photographing point to obtain a first panoramic image, and obtains the first video segment according to the first panoramic image.
  • the video processing device may control the pan-tilt rotation, wherein the camera of the drone follows the pan-tilt rotation to obtain the first panoramic image.
  • the video processing device may adjust a pitch angle of the unmanned aerial platform to a first pitch angle; control the pan-tilt to perform circumferential rotation by rotating a yaw angle of the pan-tilt, and acquire the camera And capturing a first environment image during the following rotation of the motion; adjusting a pitch angle of the pan/tilt to a second pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion; splicing the first environment image and the second environment image And obtaining the first panoramic image.
  • the camera of the drone when the first environment image and the second environment image are spliced, the camera of the drone is calibrated, and the calibration value is used as the initial value of the parameter in the camera.
  • the inertial measurement unit imu information as the initial value of the ba algorithm, the number of iterations can be reduced, and the relationship between the two characteristic images of the respective images can be used to perform matching of the targeted feature points, thereby reducing the matching error.
  • the video processing device can control the rotation of the drone; wherein the camera of the drone follows the rotation of the drone to obtain the first panoramic image.
  • the video processing device may control the UAV to perform circumferential rotation in a clockwise direction, or control the UAV to perform circumferential rotation in a counterclockwise direction, The camera of the drone follows the rotation of the drone to obtain a first panoramic image.
  • the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image.
  • the video processing device can control pan/tilt rotation, wherein the camera of the drone is rotated to follow the pan-tilt to obtain a second panoramic image.
  • adjusting the pitch angle of the UAV pan/tilt to the third pitch angle controlling the gimbal to make a circumferential rotation by rotating the yaw angle of the gimbal, and acquiring the photographing device that is photographed during the process of following the motion rotation
  • the third environment image adjusting the pitch angle of the gimbal to the fourth pitch angle after one rotation of the control motion; controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the gimbal, and acquiring the process of the camera rotating in following motion And capturing a fourth environment image; and splicing the third environment image and the fourth environment image to obtain a second panoramic image.
  • acquiring a third feature point set of the third environment image and a fourth feature point set of the fourth environment image performing feature point matching according to the third feature point set and the fourth feature point set to obtain the second target feature a point set, according to the second target feature point set, determining a second splicing line of the first environment image and the second environment image, and splicing the first environment image and the second environment image according to the second splicing line, to obtain the The second panoramic image.
  • the camera of the drone when the third environment image and the fourth environment image are spliced, the camera of the drone is calibrated, and the calibration value is used as the initial value of the parameter in the camera.
  • the inertial measurement unit imu information as the initial value of the ba algorithm, the number of iterations can be reduced, and the relationship between the two characteristic images of the respective images can be used to perform matching of the targeted feature points, thereby reducing the matching error.
  • the video processing device can control the rotation of the drone; wherein the camera of the drone follows the rotation of the drone to obtain the second panoramic image.
  • the video processing device may control the UAV to perform circumferential rotation in a clockwise direction, or control the UAV to perform circumferential rotation in a counterclockwise direction, The camera of the drone follows the rotation of the drone to obtain a second panoramic image.
  • the video processing device may select a plurality of location points on the flight path of the drone as a shooting point for capturing the panoramic image, so as to capture a plurality of video segments including the panoramic image, and the embodiment of the present invention shoots the panoramic image.
  • the number of video segments is not limited.
  • the target video is played from the first video segment.
  • the target video is played from the second video segment; or, play the target video from the third video segment.
  • the video processing device may start playing the target video from the first video segment, and pass the last image of the first video segment (ie, the first video segment during playback). The last video frame) gradually transitions to the second video segment to play, and gradually transitions to the third video segment playback through the last image of the second video segment (ie, the last video frame of the second video segment).
  • the video processing device may start playing the target video from the second video segment, and gradually transition to the third video segment through the last video frame of the second video segment during the playing process. Play and gradually transition to the first video segment by the last image of the third video segment (ie, the last video frame of the third video segment).
  • the video processing device may start playing the target video from the third video segment, and gradually transition to the second video segment through the last video frame of the third video segment during playback. Play, and gradually transition to the first video segment by the last image of the second video segment (ie, the last video frame of the second video segment).
  • the video processing device may share the target video to a specified location of the application software when detecting an operation instruction for sharing the target video to application software (such as chat software such as WeChat, QQ, etc.). (such as WeChat friends, WeChat friends circle, QQ friends, etc.).
  • application software such as chat software such as WeChat, QQ, etc.
  • WeChat friends, WeChat friends circle, QQ friends, etc. such as WeChat friends, WeChat friends circle, QQ friends, etc.
  • the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image;
  • the camera controlling the drone captures the second video segment;
  • the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third
  • the video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Need
  • FIG. 9 is a schematic structural diagram of a video processing device according to an embodiment of the present invention.
  • the video processing device includes: a processor 901, a memory 902, a user interface 903, and a data interface 904, wherein the user interface 903 user outputs a target video.
  • the memory 902 may include a volatile memory; the memory 902 may also include a non-volatile memory; the memory 902 may also include a combination of the above types of memory.
  • the processor 901 can be a central processing unit (CPU).
  • the processor 901 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • the memory 902 is configured to store program instructions.
  • the processor 901 can call the program instructions stored in the memory 902 for performing the following steps:
  • the photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
  • the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
  • the first shooting point, the second shooting point, and the third shooting point are three position points on the flight path.
  • the first photographing point is a first position point selected according to the received selection operation on the flight path; the second photographing point is according to the received on the flight track. Selecting a second position point selected by the operation; the third shooting point is a third position point selected according to the received selection operation on the flight path.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the first position point is used as the first shooting point
  • the second position point is used as the second shooting point
  • the third position point is used as the third shooting point.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the first straight track is determined as the first flight trajectory.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the second linear trajectory is determined as a second flight trajectory.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the first curved trajectory is determined as the first flight trajectory.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the second curved trajectory is determined as a second flight trajectory.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the last image of the first panoramic image is used as the first video frame of the second video segment, and the last video frame of the second video segment is used as the first image of the second panoramic image.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the target video is played starting from the third video segment.
  • processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
  • the target video is shared if a sharing operation instruction for the target video is detected.
  • the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image;
  • the camera controlling the drone captures the second video segment;
  • the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third
  • the video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Demand
  • the embodiment of the invention further provides a drone, comprising: a fuselage; a power system disposed on the fuselage for providing flight power; and a processor for controlling the camera of the drone at the first Shooting an environment image to obtain a first panoramic image, and obtaining a first video segment according to the first panoramic image; moving from the first shooting point to the second shooting point according to a flight path of the drone and from the During the movement of the second shooting point to the third shooting point, the shooting device controlling the drone captures a second video segment, and the drone reaches the third shooting point to control the drone
  • the photographing device captures the environment image to obtain a second panoramic image, and generates a third video segment according to the second panoramic image, and generates a target according to the first video segment, the second video segment, and the third video segment video.
  • the first shooting point, the second shooting point, and the third shooting point are three position points on the flight path.
  • the first photographing point is a first position point selected according to the received selection operation on the flight path; the second photographing point is according to the received on the flight track. Selecting a second position point selected by the operation; the third shooting point is a third position point selected according to the received selection operation on the flight path.
  • processor is further configured to perform the following steps:
  • the first position point is used as the first shooting point
  • the second position point is used as the second shooting point
  • the third position point is used as the third shooting point.
  • processor is further configured to perform the following steps:
  • the first position point is used as the first shooting point
  • the second position point is used as the second shooting point
  • the third position point is used as the third shooting point.
  • processor is further configured to perform the following steps:
  • the second linear trajectory is determined as a second flight trajectory.
  • processor is further configured to perform the following steps:
  • the second curved trajectory is determined as a second flight trajectory.
  • processor is further configured to perform the following steps:
  • the last image of the first panoramic image is used as the first video frame of the second video segment, and the last video frame of the second video segment is used as the first image of the second panoramic image.
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • processor is further configured to perform the following steps:
  • the target video is played starting from the third video segment.
  • processor is further configured to perform the following steps:
  • the target video is shared if a sharing operation instruction for the target video is detected.
  • the drone can be a four-rotor UAV, a six-rotor UAV, a multi-rotor UAV, and the like.
  • the power system may include a motor, an ESC, a propeller, etc., wherein the motor is responsible for driving the aircraft propeller, and the ESC is responsible for controlling the speed of the motor of the aircraft.
  • the embodiment of the invention further provides a video processing system, comprising: a video processing device and a drone;
  • the video processing device is configured to send a flight control instruction to the aircraft, where the flight control instruction is used to instruct the drone to fly according to the determined flight trajectory;
  • the drone is configured to control the drone to fly according to the flight trajectory and control a photographing device mounted on the drone to perform shooting according to the flight control instruction;
  • the video processing device is further configured to control the photographing device of the drone to capture an environment image at a first photographing point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image; Controlling the camera of the drone to capture a second video segment during movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point
  • the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image, according to the The first video segment, the second video segment, and the third video segment generate a target video.
  • the video processing device is configured to acquire a first location point, a second location point, and a third location point; and determining, according to the location information of the first location point and the second location point, the unmanned a first flight trajectory of the machine; determining, according to the second location point and the location information of the third location point, a second flight trajectory of the drone; using the first location point as the first Shooting a point, using the second position point as the second shooting point, and using the third position point as the third shooting point.
  • the video processing device is configured to generate, according to the first trajectory generation rule, the first photographic point and the second photographic point according to the location information of the first location point and the second location point. a first straight trajectory between the first trajectory determined as the first flight trajectory, and according to the position information of the second position point and the third position point, according to the first trajectory generation rule And generating a second straight line trajectory from the second photographing point and the third photographing point, and determining the second straight line locus as a second flight locus.
  • the video processing device is further configured to generate, according to the second track generation rule, the first shooting point and the second shooting according to the location information of the first location point and the second location point.
  • a first curve trajectory between the points determining the first curve trajectory as the first flight trajectory, and generating a rule according to the second trajectory according to the position information of the second position point and the third position point,
  • a second curved trajectory from the third shooting point and the fourth shooting point is generated, and the second curved trajectory is determined as a second flight trajectory.
  • the video processing device is configured to use a last image of the first panoramic image as a first video frame of a second video segment, and a last video frame of the second video segment as the second video frame The first image of the panoramic image.
  • the video processing device is configured to control the rotation of the drone or the pan/tilt rotation of the camera, wherein the camera of the drone follows the rotation of the drone or rotates the image of the environment The first panoramic image is obtained.
  • the video processing device is configured to control the UAV to rotate or carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan/tilt rotates The environmental image results in the second panoramic image.
  • the video processing device is configured to adjust a pitch angle of the unmanned aerial platform to a first pitch angle; and by rotating a yaw angle of the pan/tilt, control the pan-tilt to perform a circumferential rotation, and acquire a first environment image captured by the photographing device during the following rotation of the motion; after controlling the motion to rotate for one week, adjusting a pitch angle of the pan/tilt to a second pitch angle, by rotating the pan/tilt a yaw angle, controlling the pan-tilt to perform a circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion, and the first environment image and the second environment image A splicing process is performed to obtain the first panoramic image.
  • the video processing device is configured to adjust a pitch angle of the unmanned aerial platform to a third pitch angle; by rotating a yaw angle of the pan/tilt, controlling the pan-tilt to perform a circumferential rotation, and acquiring a third environment image captured by the photographing device during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the motion to rotate one revolution; by rotating the pan/tilt a yaw angle, controlling the pan-tilt to perform a circumferential rotation, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion; and the third environment image and the fourth environment image A splicing process is performed to obtain the second panoramic image.
  • the video processing device is configured to acquire a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second Feature point set performing feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image, according to the first a splicing line, splicing the first environment image and the second environment image to obtain the first panoramic image.
  • the video processing device is configured to acquire a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, according to the third feature point set and the fourth Feature point set performing feature point matching to obtain a second target feature point set, and determining, according to the second target feature point set, a second stitching line of the first environment image and the second environment image, according to the second The splicing line is spliced to the first environment image and the second environment image to obtain the second panoramic image.
  • the video processing device is further configured to: start playing the target video from the first video segment if a play instruction for the target video is detected; or start playing the video from the second video segment Target video; or, playing the target video from the third video segment.
  • the video processing device is further configured to share the target video if a sharing operation instruction for the target video is detected.
  • FIG. 9 Also provided in an embodiment of the present invention is a computer readable storage medium storing a computer program, which when executed by a processor, implements the implementation of FIG. 7 or FIG. 8 of the present invention.
  • the video processing device of the embodiment of the present invention shown in FIG. 9 can also be implemented in the video processing method in the example, and details are not described herein again.
  • the computer readable storage medium may be an internal storage unit of the device described in any of the preceding embodiments, such as a hard disk or a memory of the device.
  • the computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Provided in the embodiments of the present invention are a video processing method and device, an unmanned aerial vehicle and a system, wherein the method comprises: controlling a photographing apparatus in an unmanned aerial vehicle to photograph an environment image at a first photographing point so as to obtain a first panoramic image, and obtaining a first video segment according to the first panoramic image; controlling the photographing apparatus in the unmanned aerial vehicle to photograph so as to obtain a second video segment during the movement of the unmanned aerial vehicle from the first photographing point to a second photographing point and from the second photographing point to a third photographing point according to a flight path; when the unmanned aerial vehicle reaches the third photographing point, controlling the photographing apparatus in the unmanned aerial vehicle to photograph an environment image so as to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; and generating a target video according to the first video segment, the second video segment and the third video segment, which may achieve automatic and convenient photographing so as to obtain a video comprising at least two panoramic video segments.

Description

视频处理方法、设备、无人机及系统Video processing method, device, drone and system 技术领域Technical field
本发明涉及图像处理技术领域,尤其涉及一种视频处理方法、设备、无人机及系统。The present invention relates to the field of image processing technologies, and in particular, to a video processing method, device, drone, and system.
背景技术Background technique
随着多媒体技术的发展,越来越多的用户采用视频录像的方式来记录生活中或工作中有意义的时刻,并将拍摄的视频分享给亲朋好友。其中,全景视频以其具备较大的视觉效果,且在同一视频画面中能够为用户提供更多拍摄环境信息的优势,受到大多数用户的青睐。但是,在实际应用中,需要专业的拍摄人员使用专业的摄像设备进行拍摄,并对拍摄得到的视频进行繁琐的后期制作才能得到全景视频,因此如何有效拍摄全景视频成为研究的热点。With the development of multimedia technology, more and more users use video recording to record meaningful moments in life or at work, and share the captured videos with friends and family. Among them, the panoramic video has the advantage of having a large visual effect and providing users with more shooting environment information in the same video picture, which is favored by most users. However, in practical applications, professional photographers are required to use professional camera equipment to shoot, and the video produced by the camera is tediously post-production to obtain panoramic video. Therefore, how to effectively capture panoramic video has become a research hotspot.
发明内容Summary of the invention
本发明实施例公开了一种视频处理方法、设备、无人机及系统,可自动且便捷地拍摄得到包括至少两个全景视频段的视频。The embodiment of the invention discloses a video processing method, device, drone and system, which can automatically and conveniently capture a video comprising at least two panoramic video segments.
第一方面,本发明实施例提供了一种视频处理方法,应用于无人机中,所述无人机配置有用于拍摄视频的拍摄装置,所述方法包括:控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段,在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。In a first aspect, an embodiment of the present invention provides a video processing method, which is applied to a drone, where the drone is configured with a photographing device for capturing video, and the method includes: controlling shooting of the drone The device captures the environment image at the first shooting point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image, and moves the drone from the first shooting point to the second shooting point according to a flight trajectory. And during the moving from the second shooting point to the third shooting point, the shooting device controlling the drone captures a second video segment, and the drone reaches the third shooting point, and the control station The camera of the drone captures an environment image to obtain a second panoramic image, and generates a third video segment according to the second video segment, according to the first video segment, the second video segment, and the third video Segment, generate the target video.
第二方面,本发明实施例提供了一种视频处理设备,包括存储器和处理器;In a second aspect, an embodiment of the present invention provides a video processing device, including a memory and a processor;
所述存储器,用于存储程序指令;The memory is configured to store program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所 述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;The photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段;Controlling the shooting of the drone by the drone during the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point Two video segments;
在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;When the drone reaches the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。Generating a target video according to the first video segment, the second video segment, and the third video segment.
第三方面,本发明实施例提供了一种无人机,包括:In a third aspect, an embodiment of the present invention provides a drone, including:
机身;body;
设置在机身上的动力系统,用于提供飞行动力;a power system disposed on the fuselage for providing flight power;
处理器,用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段,在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。a processor, configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, and follow the flight path in the drone Controlling the camera of the drone to capture a second video segment during the movement from the first photographing point to the second photographing point and from the second photographing point to the third photographing point The drone reaches the third shooting point, controls the shooting device of the drone to capture the environment image to obtain a second panoramic image, and generates a third video segment according to the second panoramic image, according to the first video segment. And generating, by the second video segment and the third video segment, a target video.
第四方面,本发明实施例提供了一种视频处理系统,该系统包括:视频处理设备和无人机;In a fourth aspect, an embodiment of the present invention provides a video processing system, where the system includes: a video processing device and a drone;
所述视频处理设备,用于发送飞行控制指令给飞行器,所述飞行控制指令用于指示无人机按照确定的飞行轨迹进行飞行;The video processing device is configured to send a flight control instruction to the aircraft, where the flight control instruction is used to instruct the drone to fly according to the determined flight trajectory;
所述无人机,用于响应所述飞行控制指令,控制无人机按照所述飞行轨迹进行飞行并控制所述无人机上挂载的拍摄装置进行拍摄;The drone is configured to control the drone to fly according to the flight trajectory and control a photographing device mounted on the drone to perform shooting according to the flight control instruction;
所述视频处理设备,还用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段,在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境 图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。The video processing device is further configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, Controlling the camera of the drone to capture a second video segment during movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point When the drone arrives at the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image, according to the The first video segment, the second video segment, and the third video segment generate a target video.
第五方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面所述的视频处理方法。In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements the video processing method according to the first aspect.
本发明实施例能够在无人机按照飞行轨迹运动的过程中,围绕无人机进行拍摄控制,得到基于全景图像的第一视频段、第二视频段和基于全景图像的第三视频段,并自动且便捷地生成目标视频,可实现结合飞行轨迹为用户生成包括至少两个全景视频段的视频,并可实现全景视频段与非全景视频段之间平滑过渡,及实现多个全景视频段之间的平滑过渡,满足用户对视频的自动化、智能化拍摄以及处理需求。The embodiment of the present invention can perform shooting control around the drone during the movement of the drone according to the flight trajectory, and obtain a first video segment based on the panoramic image, a second video segment, and a third video segment based on the panoramic image, and Automatically and conveniently generate a target video, which can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize multiple panoramic video segments. Smooth transition between users to meet the user's need for automation, intelligent shooting and processing of video.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying for creative labor.
图1是本发明实施例提供的一种飞行轨迹的示意图;1 is a schematic diagram of a flight trajectory provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种飞行轨迹的示意图;2 is a schematic diagram of another flight trajectory provided by an embodiment of the present invention;
图3是本发明实施例提供的一种图像拼接方法的流程示意图;3 is a schematic flowchart of an image mosaic method according to an embodiment of the present invention;
图4是本发明实施例提供的一种视频生成过程的示意图;4 is a schematic diagram of a video generation process according to an embodiment of the present invention;
图5是本发明实施例提供的一种生成全景图像的流程示意图;FIG. 5 is a schematic flowchart of generating a panoramic image according to an embodiment of the present invention;
图6是本发明实施例提供的一种无人机系统的结构示意图;6 is a schematic structural diagram of a UAV system according to an embodiment of the present invention;
图7是本发明实施例提供的一种视频处理方法的流程示意图;FIG. 7 is a schematic flowchart diagram of a video processing method according to an embodiment of the present disclosure;
图8是本发明实施例提供的另一种视频处理方法的流程示意图;FIG. 8 is a schematic flowchart diagram of another video processing method according to an embodiment of the present disclosure;
图9是本发明实施例提供的一种视频处理设备的结构示意图。FIG. 9 is a schematic structural diagram of a video processing device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
本发明实施例提供的视频处理方法可以由一种视频处理设备执行,该视频处理设备可以设置在能够拍摄视频的无人机上,也可以设置在地面端的遥控器上。该视频处理方法可以应用于基于无人机的视频拍摄任务,在其他实施例中,也可以应用与能够自主移动的机器人等可运动设备的视频拍摄任务,下面对应用于无人机的视频处理方法进行举例说明。The video processing method provided by the embodiment of the present invention may be performed by a video processing device, and the video processing device may be disposed on a drone capable of capturing video, or may be disposed on a remote controller at the ground end. The video processing method can be applied to a video shooting task based on a drone. In other embodiments, a video shooting task of a movable device such as a robot capable of autonomous movement can also be applied, and the following video corresponding to the drone is used. The processing method is illustrated by way of example.
本方案提出的视频处理方法采取了一种与轨迹相结合的视频处理方案,应用于无人机,通过确定飞行轨迹,在按照所确定的飞行轨迹进行自主飞行的过程中,能够通过挂载在无人机上的拍摄装置拍摄在各个航点位置的图像。具体的,在到达飞行轨迹的第一位置点时,可以控制无人机在该位置点转动或者控制无人机的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将该第一全景图像生成第一视频段;在该飞行轨迹上的第二位置点可以获取拍摄得到的环境图像组成的第二视频段;在到达飞行轨迹的第三位置点时,可以控制无人机在该位置点转动或者控制无人机的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;根据第一视频段、第二视频段及第三视频段生成目标视频,该目标视频不仅包括由全景图像合成的至少两个全景视频段(即第一视频段和第三视频段),还包括非全景视频段(即第二视频段),全景视频段具有较大视角,可以为用户提供拍摄区域的全局视觉效果,非全景图像可以为用户提供拍摄区域的局部视觉效果。因此,本发明实施例,可实现结合飞行轨迹为用户生成包括至少两个全景视频段的视频,给用户提供拍摄区域的全局视觉效果和局部视觉效果,并可实现全景视频段与非全景视频段之间平滑过渡,及实现多个全景视频段之间的平滑过渡,满足用户对视频的自动化、智能化拍摄以及处理需求。The video processing method proposed by the scheme adopts a video processing scheme combined with the trajectory, which is applied to the drone, and can be mounted by being in the process of autonomous flight according to the determined flight trajectory by determining the flight trajectory. The camera on the drone captures images at various waypoint locations. Specifically, when the first position of the flight path is reached, the drone can be controlled to rotate at the position or control the pan/tilt of the drone to perform circumferential rotation, and the environment image is captured during the rotation, and each of the captured images will be captured. The environment image is spliced to obtain a first panoramic image, and the first video segment is generated according to the first panoramic image; the second video segment composed of the captured environmental image may be acquired at the second position on the flight trajectory; When the third position of the flight path is selected, the drone can be controlled to rotate at the position or control the head of the drone to perform circumferential rotation, and the environment image is captured during the rotation, and the captured environmental images are stitched. Obtaining a second panoramic image, generating a third video segment according to the second panoramic image; generating a target video according to the first video segment, the second video segment, and the third video segment, where the target video includes not only at least two synthesized by the panoramic image The panoramic video segments (ie, the first video segment and the third video segment) further include a non-panoramic video segment (ie, a second video segment), and the panoramic video segment has a comparison The large viewing angle provides the user with a global visual effect of the shooting area, and the non-panoramic image can provide the user with a partial visual effect of the shooting area. Therefore, in the embodiment of the present invention, a video including at least two panoramic video segments can be generated for the user by combining the flight trajectory, and the user can provide the global visual effect and the partial visual effect of the shooting region, and can realize the panoramic video segment and the non-panoramic video segment. Smooth transition between the two, and achieve a smooth transition between multiple panoramic video segments to meet the user's need for automation, intelligent shooting and processing of video.
需要说明的是,本发明实施例的飞行轨迹是指无人机的拍摄装置在进行拍摄图像的过程中的飞行轨迹,该飞行轨迹可以是非闭合的飞行轨迹,也可以是 闭合的飞行轨迹,非闭合的飞行轨迹是指在拍摄图像的过程中飞行的起点与飞行的终点不是同一个位置点的飞行轨迹,闭合的飞行轨迹是指在拍摄图像的过程中飞行的起点与飞行的终点是同一个位置点的飞行轨迹。It should be noted that the flight trajectory of the embodiment of the present invention refers to a flight trajectory of the camera of the drone during the process of capturing an image, and the flight trajectory may be a non-closed flight trajectory or a closed flight trajectory. A closed flight path refers to a flight path where the starting point of the flight and the end point of the flight are not at the same point in the process of capturing the image. The closed flight path means that the starting point of the flight is the same as the ending point of the flight in the process of capturing the image. The flight path of the location point.
在一个实施例中,飞行轨迹可以为非闭合的飞行轨迹,无人机按照该飞行轨迹飞行并拍摄图像。如图1所示,图1是本发明实施例提供的一种飞行轨迹的示意图。其中,11表示无人机、12表示位置点A、13表示位置点B、14表示位置点B,15表示用户,用户15可以通过视频处理设备确定位置点A和位置点B、及位置点C,根据位置点A、位置点B及位置点C确定出飞行轨迹,该视频处理设备可以控制无人机沿着由位置点A、位置点B及位置点C组成的飞行轨迹飞行,并通过挂载在无人机11上的拍摄装置拍摄在飞行过程中的图像。具体的,视频处理设备在确定由位置点A、位置点B及位置点C组成的飞行轨迹后,可以控制无人机11从该飞行轨迹中的任意位置开始按照飞行轨迹飞行,控制无人机11在第一位置点转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将该第一全景图像生成第一视频段;在该飞行轨迹上的第二位置点可以获取拍摄得到的环境图像组成的第二视频段;在到达飞行轨迹的第三位置点时,可以控制无人机11在该位置点转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;根据第一视频段、第二视频段及第三视频段生成目标视频。In one embodiment, the flight trajectory may be a non-closed flight trajectory in which the drone flies and takes an image. As shown in FIG. 1, FIG. 1 is a schematic diagram of a flight trajectory according to an embodiment of the present invention. 11 denotes a drone, 12 denotes a position point A, 13 denotes a position point B, 14 denotes a position point B, 15 denotes a user, and the user 15 can determine the position point A and the position point B, and the position point C by the video processing device The flight path is determined according to the position point A, the position point B and the position point C. The video processing device can control the drone to fly along the flight path composed of the position point A, the position point B and the position point C, and hang the hook. The photographing device mounted on the drone 11 captures an image during flight. Specifically, after determining the flight path composed of the position point A, the position point B, and the position point C, the video processing device can control the drone 11 to fly according to the flight path from any position in the flight path, and control the drone. 11 rotating at the first position or controlling the pan/tilt head of the drone 11 to perform circumferential rotation, and taking an environment image during the rotation process, splicing the captured environmental images to obtain a first panoramic image, according to the first The panoramic image generates a first video segment; a second video segment on the flight path can acquire a second video segment composed of the captured environmental image; and when the third location point of the flight trajectory is reached, the drone 11 can be controlled The position point rotates or controls the pan/tilt head of the drone 11 to perform circumferential rotation, and captures an environment image during the rotation process, and splices the captured environment images to obtain a second panoramic image, which is generated according to the second panoramic image. a third video segment; generating a target video according to the first video segment, the second video segment, and the third video segment.
举例来说,无人机11沿着图1所示的飞行轨迹从位置点A飞出,沿着位置点A飞行经过位置点B并达到位置点C,如果无人机到达位置点A,控制无人机11在位置点A转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将该第一全景图像生成第一视频段;在无人机按照飞行轨迹从位置点A向位置点B运动,并从位置点B到达位置点C的过程中,可以控制无人机11的拍摄装置进行拍摄得到第二视频段;在无人机到达位置点C时,控制无人机11在位置点C转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;根据第一视频段、第二视频段及第三视频 段生成目标视频。For example, the drone 11 flies out from the position point A along the flight path shown in FIG. 1, and flies past the position point B along the position point A and reaches the position point C. If the drone reaches the position point A, the control is performed. The drone 11 rotates at the position point A or controls the pan/tilt head of the drone 11 to perform circumferential rotation, and captures an environment image during the rotation process, and splices the captured environment images to obtain a first panoramic image, according to which The first panoramic image generates a first video segment; when the drone moves from the position point A to the position point B according to the flight trajectory, and from the position point B to the position point C, the camera of the drone 11 can be controlled to perform Shooting to obtain the second video segment; when the drone reaches the position point C, controlling the drone 11 to rotate at the position point C or controlling the pan-tilt of the drone 11 to perform circumferential rotation, and taking an environment image during the rotation, The captured respective environment images are spliced to obtain a second panoramic image, and the third video segment is generated according to the second panoramic image; and the target video is generated according to the first video segment, the second video segment, and the third video segment.
再举例来说,无人机11沿着图1所示的飞行轨迹从位置点B飞出,沿着位置点B飞行到达位置点A,控制无人机11在位置点A转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将该第一全景图像生成第一视频段;在无人机按照飞行轨迹从位置点A向位置点B运动,并从位置点B到达位置点C的过程中,可以控制无人机11的拍摄装置进行拍摄得到第二视频段;在无人机到达位置点C时,控制无人机11在位置点C转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;根据第一视频段、第二视频段及第三视频段生成目标视频。For another example, the drone 11 flies out from the position point B along the flight path shown in FIG. 1, and flies along the position point B to the position point A, and controls the drone 11 to rotate at the position point A or control the unmanned person. The pan/tilt of the machine 11 is rotated circumferentially, and an environment image is taken during the rotation process, and the captured environmental images are spliced to obtain a first panoramic image, and the first video segment is generated according to the first panoramic image; The machine moves according to the flight path from the position point A to the position point B, and from the position point B to the position point C, the shooting device of the drone 11 can be controlled to obtain the second video segment; the drone arrives at the position At point C, the drone 11 is controlled to rotate at the position point C or to control the pan/tilt head of the drone 11 to perform circumferential rotation, and to capture an environment image during the rotation process, and to splicing the captured environmental images to obtain a second panorama. And generating, according to the second panoramic image, a third video segment; generating a target video according to the first video segment, the second video segment, and the third video segment.
上述获取第二视频段的实施方式还包括:在无人机按照飞行轨迹从位置点A运动到位置点B的过程中,可以控制无人机11的拍摄装置拍摄得子视频段1,在无人机按照飞行轨迹从位置点B运动到位置点C的过程中,可以控制无人机11的拍摄装置拍摄得子视频段2,将子视频段1和子视频段2进行拼接得到第二视频段。The embodiment for acquiring the second video segment further includes: in the process of moving the drone from the position point A to the position point B according to the flight trajectory, the camera unit of the drone 11 can be controlled to capture the sub-video segment 1 in the absence of During the movement of the man-machine from the position point B to the position point C according to the flight path, the sub-video segment 1 and the sub-video segment 2 can be spliced to obtain the second video segment. .
在另一个实施例中,飞行轨迹可以为闭合的飞行轨迹,无人机按照该飞行轨迹飞行并拍摄图像。如图2所示,其中,11表示无人机、16表示位置点D、17表示位置点E、18表示位置点F,19表示位置点G,15表示用户,用户15可以通过视频处理设备确定位置点D和位置点E、位置点F及位置点G,根据位置点D和位置点E、位置点F及位置点G确定出飞行轨迹,该视频处理设备可以控制无人机沿着由位置点D、位置点E、位置点F及位置点G组成的飞行轨迹飞行,并通过挂载在无人机11上的拍摄装置拍摄在飞行过程中的图像。具体的,视频处理设备在确定由位置点D、位置点E、位置点F及位置点G组成的飞行轨迹后,可以控制无人机11从该飞行轨迹中的任意位置开始按照飞行轨迹飞行,控制无人机11第一位置转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将该第一全景图像生成第一视频段;在该飞行轨迹上的第二位置点可以获取拍摄得到的环境图像组成的第二视频段;在到达飞行轨迹的第三位置点时,可以控制无人机11在该位置点转动或者控制无人机11的 云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;在该飞行轨迹上的第四位置点可以获取拍摄得到的环境图像组成的第四视频段;根据第一视频段、第二视频段、第三视频段及第四视频段生成目标视频。In another embodiment, the flight trajectory may be a closed flight trajectory in which the drone flies and takes an image. As shown in FIG. 2, 11 denotes a drone, 16 denotes a position point D, 17 denotes a position point E, 18 denotes a position point F, 19 denotes a position point G, 15 denotes a user, and the user 15 can determine by a video processing device The position point D and the position point E, the position point F and the position point G determine the flight trajectory according to the position point D and the position point E, the position point F and the position point G, and the video processing device can control the drone along the position A flight path composed of a point D, a position point E, a position point F, and a position point G is flew, and an image during flight is captured by a photographing device mounted on the drone 11. Specifically, after determining the flight path composed of the position point D, the position point E, the position point F, and the position point G, the video processing device may control the drone 11 to fly according to the flight path from any position in the flight path. Controlling the first position of the drone 11 to rotate or controlling the pan/tilt head of the drone 11 to perform circumferential rotation, and capturing an environment image during the rotation process, and splicing the captured environment images to obtain a first panoramic image, according to which The first panoramic image generates a first video segment; the second location point on the flight trajectory may acquire a second video segment composed of the captured environmental image; and when the third location point of the flight trajectory is reached, the drone may be controlled 11 rotate at the position or control the pan/tilt head of the drone 11 to perform circumferential rotation, and take an environment image during the rotation process, and splicing the captured environmental images to obtain a second panoramic image according to the second panoramic view. The image generates a third video segment; the fourth position on the flight trajectory may acquire a fourth video segment composed of the captured environmental image; Frequency band, a second video segment, the third and fourth video segment to generate a target video video segment.
举例来说,无人机11沿着图2所示的飞行轨迹从位置点D飞出,沿着位置点D飞行经过位置点E并达到位置点F,然后沿着位置点F飞行经过位置点G并返回到位置点D,如果无人机到达位置点D,控制无人机11在位置点D转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第一全景图像,根据将第一全景图像生成第一视频段;在无人机按照飞行轨迹从位置点D向位置点E运动,并从位置点E到达位置点F的过程中,可以控制无人机11的拍摄装置进行拍摄得到第二视频段;在无人机到达位置点F时,控制无人机11在位置点F转动或者控制无人机11的云台做圆周转动,并在转动过程中拍摄环境图像,将拍摄到的各个环境图像进行拼接,得到第二全景图像,根据将该第二全景图像生成第三视频段;在无人机按照飞行轨迹从位置点F向位置点G运动,并从位置点G返回位置点D的过程中,可以控制无人机11的拍摄装置进行拍摄得到第四视频段,在无人机返回到位置点D时,根据第一视频段、第二视频段、第三视频段及第四视频段生成目标视频。For example, the drone 11 flies out from the position point D along the flight trajectory shown in FIG. 2, flies through the position point E along the position point D and reaches the position point F, and then flies past the position point F along the position point F. G and return to the position point D, if the drone reaches the position point D, control the drone 11 to rotate at the position point D or control the pan-tilt of the drone 11 to make a circumferential rotation, and take an environmental image during the rotation, The captured respective environmental images are spliced to obtain a first panoramic image, according to which the first panoramic image is generated, and the unmanned aerial vehicle moves from the position point D to the position point E according to the flight trajectory, and arrives from the position point E. During the process of the position point F, the photographing device of the drone 11 can be controlled to obtain a second video segment; when the drone reaches the position point F, the drone 11 is controlled to rotate at the position point F or the drone 11 is controlled. The pan/tilt is rotated circumferentially, and the environment image is taken during the rotation process, and the captured environmental images are spliced to obtain a second panoramic image, and the third video segment is generated according to the second panoramic image; Flight track During the movement of the track from the position point F to the position point G and returning from the position point G to the position point D, the photographing device of the drone 11 can be controlled to take a fourth video segment, and the drone returns to the position point D. The target video is generated according to the first video segment, the second video segment, the third video segment, and the fourth video segment.
需要说明的是,本发明实施例的该视频处理设备可以采用轨迹生成控制算法确定无人机的飞行轨迹,该轨迹生成控制算法主要是规划从飞行起点到终点过程中拍摄装置拍摄第二视频段的飞行轨迹,以及控制无人机在某两个位置点转动,并在转动过程中控制拍摄装置拍摄环境图像以获取全景图像。本发明实施例的轨迹生成控制算法可以包括贝塞尔曲线或5-order-B-spline等中的至少一种算法,本发明实施例不做限定。It should be noted that the video processing device in the embodiment of the present invention may use a trajectory generation control algorithm to determine a flight trajectory of the drone. The trajectory generation control algorithm mainly plans to capture a second video segment from the flight start point to the end point. The flight path, and control the drone to rotate at two locations, and control the camera to capture the environment image during the rotation to obtain a panoramic image. The trajectory generation control algorithm of the embodiment of the present invention may include at least one of a Bezier curve or a 5-order-B-spline, etc., which is not limited by the embodiment of the present invention.
本发明实施例,该视频处理设备可以通过设定三个位置点,确定出三个位置点之间链接的任意形状的飞行轨迹,如直线、曲线、螺旋线等。在确定无人机的飞行轨迹的过程中,可以图1为例进行说明,如图1所示,将从位置点A经过位置点B到位置点C的曲线轨迹为确定的飞行轨迹。In the embodiment of the present invention, the video processing device can determine a flight path of any shape linked by three position points, such as a straight line, a curve, a spiral line, etc., by setting three position points. In the process of determining the flight path of the drone, FIG. 1 can be used as an example. As shown in FIG. 1, the curve trajectory from the position point A through the position point B to the position point C is a determined flight trajectory.
需要说明的是,由于无人机的拍摄装置并不是超广角拍摄装置,而是普通拍摄装置,所以拍摄装置视角有限,每次只能拍摄很小视角的图像,因此需要 规划拍摄角度,覆盖更大范围的视角。例如,假设采用圆周扫描的形式,可以先固定无人机云台的俯仰角pitch角度,然后通过转动偏航角yaw角,控制拍摄装置拍摄一周的环境图像,然后逐渐改变pitch角,通过转动偏航角yaw角,控制拍摄装置拍摄得到不同的环境图像。It should be noted that since the shooting device of the drone is not an ultra wide-angle shooting device but an ordinary shooting device, the viewing angle of the shooting device is limited, and only a small angle of view image can be taken at a time, so it is necessary to plan the shooting angle and cover more. A wide range of perspectives. For example, suppose that in the form of a circumferential scan, the pitch angle of the UAV pan/tilt can be fixed first, and then the yaw angle of the yaw angle is controlled to control the environment image of the shooting device for one week, and then the pitch angle is gradually changed. The angle yaw angle controls the camera to capture different environmental images.
本发明实施例,视频处理设备可以通过对拍摄到的各个环境图像进行拼接得到全景图像,具体的,该视频处理设备可采用的拼接算法来实现图像的拼接,如图3所示,该图像拼接过程包括:In the embodiment of the present invention, the video processing device may obtain a panoramic image by splicing the captured environmental images. Specifically, the video processing device may use a splicing algorithm to implement image splicing. As shown in FIG. 3, the image splicing is performed. The process includes:
S21、寻找特征匹配。S21. Find feature matching.
S22、BA优化。S22, BA optimization.
S23、补偿曝光。S23, compensation exposure.
S24、寻找拼接线。S24. Find the stitching line.
在步骤S21~S24中,当拼接开始时,首先无人机的云台可以在不同的pitch角度进行旋转,并可以通过拍摄装置拍摄得到多张图像,这些图像之间有一定的重叠率,如重叠率一般在0.2~0.3之间,为了避免拼接后的全景图像中存在重叠的部分,可以寻找每两张相邻图像的特征并进行匹配,并将匹配的特征进行光束平差(Bundle Adjustment,BA)优化,使得图像之间的相对位置更为精确,然后对每张图像进行曝光补偿,以及寻找每两张相邻图像的拼接线,最后通过曲线warp变形,将所有的图像投影为一张全景图像,此处的两张相邻图像可以是指两张拍摄时间间隔最短的图像,此处的全景图像可以是指第一全景图像或第二全景图像。In steps S21-S24, when the splicing starts, first, the head of the drone can be rotated at different pitch angles, and multiple images can be captured by the photographing device, and the images have a certain overlap ratio, such as The overlap ratio is generally between 0.2 and 0.3. In order to avoid overlapping parts in the panoramic image after splicing, the features of each two adjacent images can be searched for and matched, and the matched features are subjected to beam adjustment (Bundle Adjustment, BA). Optimization, making the relative position between the images more accurate, then performing exposure compensation for each image, and finding the stitching line of each two adjacent images, and finally transforming all the images into a panoramic image by curve warp deformation, this The two adjacent images at the location may refer to the two images with the shortest shooting time interval, and the panoramic image herein may refer to the first panoramic image or the second panoramic image.
需要说明的是,本发明实施例对拍摄装置进行了标定,使用标定值作为所述拍摄装置内参数的初始值,根据拍摄到的各个环境图像可以进行有目的性的特征点的匹配,从而减少匹配过程中产生的误差。It should be noted that, in the embodiment of the present invention, the imaging device is calibrated, and the calibration value is used as the initial value of the parameters in the imaging device, and the targeted feature points can be matched according to the captured environmental images, thereby reducing The error generated during the matching process.
本发明实施例,在得到目标全景图像(第一全景图像或第二全景图像)后,视频处理设备可以根据目标全景图像生成目标视频段(第一视频段或第三视频段),以图4为例进行说明,图4是本发明实施例提供的一种视频生成过程的示意图,其中,31表示目标全景图像的第一视角点,32表示第一成像点,33表示第一全景点,37表示第一投影平面,34表示第二视角点,35表示第二全景点,36表示第二成像点,38表示第二投影平面。所述类似小行星的全景投影,其实就是视角点在图4中31所示的第一视角点,投影平面在第一投影平 面37,即在类似小行星的中心的一种投影方式,而正常视角的照相是视角点在第二视角点34,即在类似小行星的圆形的中心,投影平面在第二投影平面38的一种投影方式,通过将视角点从第一视角点31移动至第二视角点34,同时将投影平面从第一投影平面37移动到第二投影平面38,可以将目标全景图像逐步展开播放得到目标视频段。In the embodiment of the present invention, after obtaining the target panoramic image (the first panoramic image or the second panoramic image), the video processing device may generate the target video segment (the first video segment or the third video segment) according to the target panoramic image, and FIG. 4 For example, FIG. 4 is a schematic diagram of a video generation process according to an embodiment of the present invention, where 31 represents a first perspective point of a target panoramic image, 32 represents a first imaging point, and 33 represents a first panoramic point, 37 Represents a first projection plane, 34 represents a second perspective point, 35 represents a second panoramic point, 36 represents a second imaging point, and 38 represents a second projection plane. The panoramic projection similar to the asteroid is actually the first viewing point shown in FIG. 4, and the projection plane is at the first projection plane 37, that is, a projection mode similar to the center of the asteroid, and normal. The photograph of the viewing angle is a projection of the viewing point at the second viewing point 34, ie at the center of the circle resembling an asteroid, the projection plane at the second projection plane 38, by moving the viewpoint point from the first viewing point 31 to The second viewing point 34, while moving the projection plane from the first projection plane 37 to the second projection plane 38, can gradually expand the target panoramic image to obtain the target video segment.
请参见图5,图5是本发明实施例提供的一种生成全景图像的流程示意图。如图5所示,视频处理设备首先确定出无人机的飞行轨迹,然后控制所述无人机沿所确定的飞行轨迹进行飞行,控制无人机的拍摄装置在某个位置点(如第一拍摄点或第三拍摄点)时拍摄各个方位的图像,对各个方位上的图像进行拼接,得到球形全景图像(如得到第一全景图像或第二全景图像)。Referring to FIG. 5, FIG. 5 is a schematic flowchart of generating a panoramic image according to an embodiment of the present invention. As shown in FIG. 5, the video processing device first determines a flight trajectory of the drone, and then controls the drone to fly along the determined flight trajectory, and controls the camera of the drone at a certain point (eg, When a shooting point or a third shooting point is taken, an image of each orientation is taken, and the images in the respective orientations are stitched to obtain a spherical panoramic image (such as obtaining a first panoramic image or a second panoramic image).
需要说明的是上述第一位置点、第二位置点、第三位置点及第四位置点均为无人机的飞行轨迹上的位置点,各个位置点可以不相同,视频处理设备可以根据用户的选取操作、或根据用户的需求设置各个拍摄点,视频处理设备还可以根据飞行参数(如飞行高度、飞行距离或飞行时间等)自动设置各个位置点。It should be noted that the first location point, the second location point, the third location point, and the fourth location point are all location points on the flight path of the drone, and the location points may be different, and the video processing device may be based on the user. The selection operation or setting of each shooting point according to the user's needs, the video processing device can also automatically set each location point according to flight parameters (such as flight altitude, flight distance or flight time, etc.).
请参见图6,图6是本发明实施例提供的一种无人机系统的结构示意图。所述系统包括:视频处理设备51和无人机52。所述视频处理设备51可以为无人机的控制终端,具体地可以为遥控器、智能手机、平板电脑、膝上型电脑、地面站、穿戴式设备(手表、手环)中的一种或多种,所述无人机52可以是旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机。无人机包括动力系统521,动力系统用于为无人机提供飞行动力,其中,动力系统521包括螺旋桨、电机、电调中的一种或多种,无人机还可以包括云台522以及拍摄装置523,拍摄装置523通过云台522搭载于无人机的主体上。拍摄装置用于在无人机的飞行过程中进行图像或视频拍摄,包括但不限于多光谱成像仪、高光谱成像仪、可见光相机及红外相机等,云台为多轴传动及增稳系统,云台电机通过调整转动轴的转动角度来对成像设备的拍摄角度进行补偿,并通过设置适当的缓冲机构来防止或减小成像设备的抖动。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a UAV system according to an embodiment of the present invention. The system includes a video processing device 51 and a drone 52. The video processing device 51 may be a control terminal of the drone, and may specifically be one of a remote controller, a smart phone, a tablet computer, a laptop computer, a ground station, a wearable device (watch, a wristband) or In many cases, the drone 52 may be a rotary wing type unmanned aerial vehicle, such as a quadrotor drone, a six-rotor drone, an eight-rotor drone, or a fixed-wing drone. The drone includes a power system 521 for providing flight power to the drone, wherein the power system 521 includes one or more of a propeller, a motor, and an electric power, and the drone may further include a pan/tilt 522 and The imaging device 523 and the imaging device 523 are mounted on the main body of the drone through the pan/tilt 522. The camera is used for image or video shooting during the flight of the drone, including but not limited to multi-spectral imager, hyperspectral imager, visible light camera and infrared camera. The pan/tilt is multi-axis transmission and stabilization system. The pan/tilt motor compensates the shooting angle of the imaging device by adjusting the rotation angle of the rotating shaft, and prevents or reduces the jitter of the imaging device by setting an appropriate buffer mechanism.
在一个实施例中,该视频处理设备51可以配置与用户交互的交互装置,该交互装置可以是触摸显示屏、键盘、按键、摇杆、波轮中的一种或多种,该交互装置上可以提供用户界面,用户可以在该视频处理设备51的用户界面上 执行点击操作,该点击操作点击一次即可确认一个位置点,该视频处理设备51在接收到该点击操作所点击的3个位置点之后,视频处理设备51连接这三个位置点,形成由这三个点连接而成的飞行轨迹,该飞行轨迹可以直线轨迹也可以是曲线轨迹,从而控制无人机52按该飞行轨迹飞行,以使拍摄装置523按该飞行轨迹进行移动。需要说明的是,该用户界面上的点击操作,只是确认飞行轨迹的一种方法,对于飞行轨迹的确认方式,本发明实施例不做限定。In one embodiment, the video processing device 51 can configure an interaction device that interacts with the user, and the interaction device can be one or more of a touch display screen, a keyboard, a button, a joystick, and a pulsator. A user interface may be provided, and the user may perform a click operation on the user interface of the video processing device 51, the click operation may confirm a location point by clicking once, and the video processing device 51 receives the three locations clicked by the click operation. After the point, the video processing device 51 connects the three location points to form a flight trajectory connected by the three points, and the flight trajectory may be a linear trajectory or a curved trajectory, thereby controlling the drone 52 to fly according to the flight trajectory. In order to cause the photographing device 523 to move in accordance with the flight trajectory. It should be noted that the click operation on the user interface is only one method for confirming the flight trajectory, and the manner for confirming the flight trajectory is not limited in the embodiment of the present invention.
在一个实施例中,在无人机按照飞行轨迹运动的过程中,该视频处理设备51可以控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据第一全景图像生成第一视频段;在无人机按照飞行轨迹从第一拍摄点向第二拍摄点运动和从第二拍摄点向第三拍摄点运动的过程中,控制无人机的拍摄装置拍摄得到第二视频段;在无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;根据第一视频段、第二视频段和第三视频段,生成目标视频。In an embodiment, during the movement of the drone according to the flight path, the video processing device 51 may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and according to the first The panoramic image generates a first video segment; during the movement of the drone from the first shooting point to the second shooting point and from the second shooting point to the third shooting point according to the flight trajectory, controlling the shooting device of the drone Obtaining a second video segment; when the drone reaches the third shooting point, controlling the camera of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; A target video is generated according to the first video segment, the second video segment, and the third video segment.
请参见图7,图7是本发明实施例提供的一种视频处理方法的流程示意图,所述方法可以由视频处理设备执行,其中,视频处理设备的具体解释如前所述。具体的,本发明实施例的所述方法包括如下步骤。Referring to FIG. 7, FIG. 7 is a schematic flowchart diagram of a video processing method according to an embodiment of the present invention. The method may be performed by a video processing device, where a specific explanation of the video processing device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
S701、控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据该第一全景图像得到第一视频段。S701. The photographing device that controls the drone captures the environment image at the first photographing point to obtain a first panoramic image, and obtains the first video segment according to the first panoramic image.
本发明实施例中,为了给用户提供拍摄区域的全局视觉效果,并为用户提供更多关于拍摄区域的信息,视频处理设备可以控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据该第一全景图像得到第一视频段。具体地,视频处理设备首先可以确定三个位置点,根据该三个位置点确定无人机的飞行轨迹,在确定无人机的飞行轨迹后,使无人机按照所确定的飞行轨迹进行运动,在运动的过程中,视频处理设备可以控制该无人机的拍摄装置在到达第一拍摄点时拍摄环境图像得到第一全景图像,并根据该第一全景图像得到第一视频段。以图1为例进行说明,例如,视频处理设备首先确定三个位置点A、B及C,将位置点A、位置点B及位置点C之间的连接曲线确定为无人机的飞行轨迹,视频处理设备控制该无人机按照图1所示位置点A、位置点B及位置点C组成的飞行轨迹飞行,无人机可以沿着位置点A飞行经过位 置点B并到达位置点C,在按照该飞行轨迹飞行的过程中,当无人机达到位置点A(第一拍摄点),该视频处理设备可以控制该无人机或控制无人机的云台在位置点A进行圆周转动,控制该无人机的拍摄装置在该无人机的转动过程中拍摄环境图像得到第一全景图像,从而根据该第一全景图像生成第一视频段。In the embodiment of the present invention, in order to provide the user with the global visual effect of the shooting area and provide the user with more information about the shooting area, the video processing device can control the shooting device of the drone to capture the environmental image at the first shooting point. a first panoramic image, and obtaining a first video segment based on the first panoramic image. Specifically, the video processing device may first determine three location points, determine a flight path of the drone according to the three location points, and, after determining the flight path of the drone, cause the drone to perform motion according to the determined flight path. During the motion, the video processing device can control the camera of the drone to capture the environment image to obtain the first panoramic image when the first shooting point is reached, and obtain the first video segment according to the first panoramic image. Taking FIG. 1 as an example, for example, the video processing device first determines three position points A, B, and C, and determines a connection curve between the position point A, the position point B, and the position point C as a flight path of the drone. The video processing device controls the drone to fly according to the flight path composed of the position point A, the position point B and the position point C shown in FIG. 1, and the drone can fly along the position point A through the position point B and reach the position point C. During the flight according to the flight path, when the drone reaches the position point A (the first shooting point), the video processing device can control the drone or control the head of the drone to perform the circle at the position point A. Rotating, the photographing device controlling the drone photographs the environment image during the rotation of the drone to obtain a first panoramic image, thereby generating a first video segment according to the first panoramic image.
在一个实施例中,该视频处理设备可以控制所述无人机在第一拍摄点转动以拍摄得到第一全景图像,具体的,控制所述无人机在第一拍摄点沿顺时针方向做圆周转动,或控制所述无人机沿逆时针方向做圆周转动,以便获取得到第一全景图像。例如,如图1所示,当无人机到达位置点A时,该视频处理设备可以控制无人机在位置点A沿顺时针方向进行圆周转动,或该视频处理设备可以控制无人机在位置点A沿逆时针方向进行圆周转动,并在做圆周转动的过程中控制拍摄装置进行拍摄得到第一全景图像。In an embodiment, the video processing device may control the drone to rotate at a first shooting point to capture a first panoramic image, and specifically, control the drone to make a clockwise direction at the first shooting point. Rotating circumferentially, or controlling the drone to make a circumferential rotation in a counterclockwise direction to obtain a first panoramic image. For example, as shown in FIG. 1, when the drone reaches the position point A, the video processing device can control the drone to perform a circumferential rotation in the clockwise direction at the position point A, or the video processing device can control the drone at The position point A is circumferentially rotated in the counterclockwise direction, and the photographing device is controlled to perform the shooting to obtain the first panoramic image during the circumferential rotation.
在一个实施例中,在获取到第一全景图像后,视频处理设备可以对该第一全景图像进行展开处理,根据该展开处理过程中得到的各个图像,生成第一视频段。其中,根据该第一全景图像生成第一视频段的过程可以图4为例进行说明,具体地,将获取到的第一全景图像作为图4中的球形全景图像,首先从该第一全景图像的第一视角点31(北极点)开始逐步展开,展开方式为将视角点从第一视角点31开始逐步向球形全景图像的第二视角点34(球心)移动,展开所述第一全景图像,与此同时,将投影平面跟随视角点的移动从球形全景图像的球心平面37(第一投影平面)开始向该球形全景图像的南极点所在平面38(第二投影平面)移动,从而将所述第一全景图像逐步展开,生成第一视频段。In an embodiment, after acquiring the first panoramic image, the video processing device may perform an expansion process on the first panoramic image, and generate a first video segment according to each image obtained in the expansion process. The process of generating the first video segment according to the first panoramic image may be illustrated by using FIG. 4 as an example. Specifically, the acquired first panoramic image is used as the spherical panoramic image in FIG. 4, first from the first panoramic image. The first view point 31 (the north pole point) starts to be gradually expanded, and the unfolding manner is to gradually move the view point from the first view point 31 to the second view point 34 (the center of the sphere) of the spherical panoramic image, and expand the first panorama. The image, at the same time, moves the projection plane following the point of view point from the spherical center plane 37 (first projection plane) of the spherical panoramic image to the plane 38 (second projection plane) where the south pole of the spherical panoramic image lies, thereby The first panoramic image is progressively expanded to generate a first video segment.
S702、在无人机按照飞行轨迹从该第一拍摄点向第二拍摄点运动和从该第二拍摄点向第三拍摄点运动的过程中,控制该无人机的拍摄装置拍摄得到第二视频段。S702. During the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point according to the flight path, the photographing device controlling the drone is photographed to obtain the second Video segment.
本发明实施例中,在无人机按照飞行轨迹从该第一拍摄点向第二拍摄点运动和从该第二拍摄点向第三拍摄点运动的过程中,为了给用户提供拍摄区域的局部视觉效果,以展现拍摄区域的局部特色(如某个标志性的建筑或某个人物),视频处理设备可以控制该无人机的拍摄装置拍摄得到第二视频段。具体可举例说明,如图1所示,假设无人机的飞行轨迹如图1中所示,该飞行轨迹为位置点A、位置点B及位置点C之间的曲线轨迹,在无人机按照该飞行轨迹进行 移动的过程中,当无人机从位置点A飞出经过位置点B(第二拍摄点)并达到位置点C(第三拍摄点)的过程中,控制该无人机的拍摄装置拍摄得到第二视频段。In the embodiment of the present invention, in the process of moving the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point according to the flight path, in order to provide the user with a part of the photographing area A visual effect to show a local feature of the shooting area (such as an iconic building or a character), the video processing device can control the camera of the drone to capture a second video segment. Specifically, as shown in FIG. 1 , it is assumed that the flight path of the drone is as shown in FIG. 1 , and the flight path is a curved track between the position point A, the position point B, and the position point C, in the drone. During the movement according to the flight trajectory, when the drone flies from the position point A through the position point B (second shooting point) and reaches the position point C (third shooting point), the drone is controlled. The camera captures a second video segment.
在一个实施例中,所述第一拍摄点、第二拍摄点及第三拍摄点可以是所述飞行轨迹上的三个位置点,例如,如图1所示,所述第一拍摄点可以是飞行轨迹上位置点A,第二拍摄点可以是飞行轨迹上的位置点B,第三拍摄点可以是飞行轨迹上的位置点C。In an embodiment, the first shooting point, the second shooting point, and the third shooting point may be three position points on the flight path. For example, as shown in FIG. 1 , the first shooting point may be It is the position point A on the flight path, the second shooting point may be the position point B on the flight path, and the third shooting point may be the position point C on the flight path.
在一个实施例中,该第一拍摄点可以是根据接收到的在该飞行轨迹上的选择操作所选取的第一位置点,该第二拍摄点可以是根据接收到的在该飞行轨迹上的选择操作所选取的第二位置点,该第三拍摄点是根据接收到的在该飞行轨迹上的选择操作所选取的第三位置点。In one embodiment, the first shooting point may be a first position point selected according to the received selection operation on the flight path, and the second shooting point may be based on the received flight path. The second position point selected by the operation is selected, and the third shooting point is a third position point selected according to the received selection operation on the flight path.
在一个实施例中,该第一拍摄点为该无人机跟踪到目标对象到达第一位置点时该无人机所在的位置点;该第二拍摄点为该无人机跟踪到该目标对象到达第二位置点时该无人机所在的位置点;该第三拍摄点为该无人机跟踪到该目标对象到达第三位置点时该无人机所在的位置点,此处的目标对象为移动的物体或处于移动状态的人或动物等。In one embodiment, the first photographing point is a position point of the drone when the drone tracks the target object reaching the first position point; the second photographing point is that the drone tracks the target object The position point of the drone when the second position point is reached; the third shooting point is the position point of the drone when the drone tracks the target object to reach the third position point, where the target object is located A moving object or a moving person or animal.
需要说明的是,视频处理设备可以通过拍摄点的设定,规划出任意形状的轨迹,如直线、曲线、螺旋线等,然后把整个曲线进行离散化作为无人机的经过点,引导无人机的飞行。It should be noted that the video processing device can plan the trajectory of any shape by the setting of the shooting point, such as a straight line, a curve, a spiral, etc., and then discretize the entire curve as a passing point of the drone, guiding the unmanned person. Flight of the aircraft.
S703、在该无人机到达所述第三拍摄点,控制该无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据该第二全景图像生成第三视频段。S703. After the drone reaches the third shooting point, control the shooting device of the drone to capture an environment image to obtain a second panoramic image, and generate a third video segment according to the second panoramic image.
本发明实施例中,为了给用户提供拍摄区域的全局视觉效果,并为用户提供更多关于拍摄区域的信息,视频处理设备可以控制无人机的拍摄装置在第三拍摄点时拍摄环境图像得到第二全景图像,并根据该第二全景图像得到第三视频段。In the embodiment of the present invention, in order to provide the user with the global visual effect of the shooting area and provide the user with more information about the shooting area, the video processing device can control the shooting device of the drone to capture the environmental image at the third shooting point. a second panoramic image, and obtaining a third video segment based on the second panoramic image.
在一个实施例中,该视频处理设备可以控制所述无人机在第三拍摄点转动以拍摄第二全景图像,具体的,可以控制所述无人机在第三拍摄点沿顺时针方向做圆周转动,或控制所述无人机沿逆时针方向做圆周转动,以便获取得到第二全景图像。例如,如图1所示,当无人机到达位置点C时,该视频处理设备可以控制无人机在位置点C沿顺时针方向进行圆周转动,或该视频处理设 备可以控制无人机在位置点C沿逆时针方向进行圆周转动,并在做圆周转动的过程中控制拍摄装置进行拍摄得到第二全景图像。In an embodiment, the video processing device may control the drone to rotate at a third shooting point to capture a second panoramic image. Specifically, the drone may be controlled to be clockwise at the third shooting point. Rotating circumferentially, or controlling the drone to make a circumferential rotation in a counterclockwise direction to obtain a second panoramic image. For example, as shown in FIG. 1, when the drone reaches the position point C, the video processing device can control the drone to perform a circumferential rotation in the clockwise direction at the position point C, or the video processing device can control the drone at The position point C is circumferentially rotated in the counterclockwise direction, and the photographing device is controlled to perform the second panoramic image during the circumferential rotation.
在一个实施例中,在获取到第二全景图像后,视频处理设备可以对该第二全景图像进行展开处理,根据该展开处理过程中得到的各个图像,生成第三视频段。其中,根据该第二全景图像生成第三视频段的过程可以图4为例进行说明,具体地,将获取到的第二全景图像作为图4中的球形全景图像,首先从该第二全景图像的第一视角点31(北极点)开始逐步展开,展开方式为将视角点从第一视角点31开始逐步向球形全景图像的第二视角点34(球心)移动,展开所述第二全景图像,与此同时,将投影平面跟随视角点的移动从球形全景图像的球心平面37(第一投影平面)开始向该球形全景图像的南极点所在平面38(第二投影平面)移动,从而将所述第二全景图像逐步展开,生成第三视频段。In an embodiment, after acquiring the second panoramic image, the video processing device may perform an expansion process on the second panoramic image, and generate a third video segment according to each image obtained in the expansion process. The process of generating the third video segment according to the second panoramic image may be illustrated by using FIG. 4 as an example. Specifically, the acquired second panoramic image is used as the spherical panoramic image in FIG. 4, first from the second panoramic image. The first view point 31 (the north pole point) starts to be gradually expanded, and the unfolding manner is to gradually move the view point from the first view point 31 to the second view point 34 (the center of the sphere) of the spherical panoramic image, and expand the second panorama. The image, at the same time, moves the projection plane following the point of view point from the spherical center plane 37 (first projection plane) of the spherical panoramic image to the plane 38 (second projection plane) where the south pole of the spherical panoramic image lies, thereby The second panoramic image is gradually expanded to generate a third video segment.
在一个实施例中,为了实现第一视频段与第二视频段的平滑过渡,及第二视频段与第三视频段的平滑过渡,进而,实现全景视频段(第一视频段或第三视频段)与非全景视频段(第二视频段)之间平滑过渡,及实现多个全景视频段(如第一视频段与第二视频段)之间的平滑过渡,视频处理设备可以将该第一全景图像的最后一张图像作为第二视频段的第一个视频帧,该第二视频段的最后一个视频帧作为该第二全景图像的第一张图像。In one embodiment, in order to achieve a smooth transition between the first video segment and the second video segment, and a smooth transition between the second video segment and the third video segment, thereby implementing a panoramic video segment (the first video segment or the third video) a smooth transition between the segment) and the non-panoramic video segment (the second video segment), and a smooth transition between the plurality of panoramic video segments (eg, the first video segment and the second video segment), the video processing device may The last image of a panoramic image serves as the first video frame of the second video segment, and the last video frame of the second video segment serves as the first image of the second panoramic image.
S704、根据该第一视频段、该第二视频段和该第三视频段,生成目标视频。S704. Generate a target video according to the first video segment, the second video segment, and the third video segment.
本发明实施例中,视频处理设备可以根据该第一视频段、该第二视频段和该第三视频段,生成目标视频。In the embodiment of the present invention, the video processing device may generate a target video according to the first video segment, the second video segment, and the third video segment.
本发明实施例中,该视频处理设备可以控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据第一全景图像生成第一视频段;在无人机按照飞行轨迹从第一拍摄点向第二拍摄点运动和从第二拍摄点向第三拍摄点运动的过程中,控制无人机的拍摄装置拍摄得到第二视频段;在无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;根据第一视频段、第二视频段和第三视频段,生成目标视频,可实现结合飞行轨迹为用户生成包括至少两个全景视频段的视频,并可实现全景视频段与非全景视频段之间平滑过渡,及实现多个全景视频段之间的平滑过渡,可以给用户提供某个区域的全局视觉 效果和局部视觉效果,满足用户对视频的自动化、智能化拍摄以及处理需求。In the embodiment of the present invention, the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image; During the movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point, the camera controlling the drone captures the second video segment; the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third The video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Demand.
请参见图8,图8是本发明实施例提供的另一种视频处理方法的流程示意图,所述方法可以由视频处理设备执行,其中,视频处理设备的具体解释如前所述。本发明实施例的所述方法与上述图7所述实施例的区别在于,本实施例通过获取第一位置点、第二位置点及第三位置点确定无人机的飞行轨迹,通过控制云台或无人机转动,以控制拍摄装置在该无人机或云台转动过程中拍摄环境图像,并对各个环境图像进行拼接处理得到全景图像。Referring to FIG. 8, FIG. 8 is a schematic flowchart diagram of another video processing method according to an embodiment of the present invention. The method may be performed by a video processing device, where a specific explanation of the video processing device is as described above. The method of the embodiment of the present invention is different from the embodiment described above in FIG. 7 in that the present embodiment determines the flight path of the drone by acquiring the first location point, the second location point, and the third location point, and controls the cloud. The table or the drone rotates to control the photographing device to take an environment image during the rotation of the drone or the pan/tilt, and splicing the respective environment images to obtain a panoramic image.
S801、获取第一位置点、第二位置点及第三位置点。S801. Acquire a first location point, a second location point, and a third location point.
本发明实施例中,上述第一位置点以、第二位置点及第三位置点可以是视频处理设备根据用户输入的三组经纬度信息确定的,还可以是根据用户输入的位置信息确定的,此处用户输入的位置信息可以是指某个建筑的名称(XX大厦)或某个地名(XX市XX号),还可以是通过接收用户的点击操作确定的,还可以是根据无人机飞行的距离设置的,也可以是根据无人机飞行的高度设置的,如将飞行高度到达第一预设高度阈值(如50m)的位置点作为第一位置点,将飞行高度到达第二预设高度阈值(如30m)的位置点作为第二位置点,飞行高度到达第三预设高度阈值(如60m)的位置点作为第三位置点,此处的第一预设高度阈值、第三预设高度阈值可以大于第二预设高度阈值,第一预设高度阈值与第三高度阈值可以相等也可以不相等,本发明对此不做限定。In the embodiment of the present invention, the first location point, the second location point, and the third location point may be determined by the video processing device according to the three sets of latitude and longitude information input by the user, or may be determined according to the location information input by the user. The location information input by the user here may refer to the name of a certain building (XX building) or a certain place name (XX of the XX city), or may be determined by receiving a click operation of the user, or may be based on a drone flight. The distance set may also be set according to the altitude of the drone flight. For example, if the flying height reaches the first preset height threshold (for example, 50 m) as the first position point, the flying height reaches the second preset. A position point of a height threshold (for example, 30 m) is used as a second position point, and a position point at which the flying height reaches a third preset height threshold (for example, 60 m) is used as a third position point, where the first preset height threshold, the third pre-predetermined The height threshold may be greater than the second preset height threshold. The first preset height threshold and the third height threshold may be equal or not equal to each other, which is not limited by the present invention.
具体可以图1为例进行说明,当视频处理设备接收到用户的点击操作时,可以获取到如图1所示的位置点A为第一位置点,位置点B为第二位置点及位置点C为第三位置点。其中,需要说明的是,第一位置点、第二位置点及第三位置点可以是用户点击操作的任意点,例如,如图1中所示,第一位置点、第二位置点及第三位置点可以是位置点A、位置点B及位置点C,也可以是其他任意位置上的点,本发明实施例对飞行轨迹上位置点的确定不做限定。Specifically, FIG. 1 is used as an example. When the video processing device receives the click operation of the user, the location point A as shown in FIG. 1 may be obtained as the first location point, and the location point B is the second location point and the location point. C is the third position point. It should be noted that the first location point, the second location point, and the third location point may be any point of the user clicking operation, for example, as shown in FIG. 1, the first location point, the second location point, and the The three-position point may be the position point A, the position point B, and the position point C, or may be a point at any other position. The determination of the position point on the flight path is not limited in the embodiment of the present invention.
S802、根据该第一位置点以及第二位置点的位置信息,确定出无人机的第一飞行轨迹。S802. Determine, according to the location information of the first location point and the second location point, a first flight trajectory of the drone.
在一个实施例中,视频处理设备可以根据确定的所述第一位置点及第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹,并将所述第一直线轨迹确定为第一飞行轨迹。此 处第一轨迹生成规则可以包括轨迹生成控制算法,无人机的飞行轨迹的确定通常有多种常用算法,如贝塞尔曲线、五次B样条曲线5-order-B-spline等算法。In an embodiment, the video processing device may generate, according to the determined location information of the first location point and the second location point, the first trajectory and the second photographic point according to the first trajectory generation rule. A first straight track between and determines the first straight track as a first flight path. Here, the first trajectory generation rule may include a trajectory generation control algorithm, and the determination of the flight trajectory of the drone usually has a plurality of commonly used algorithms, such as a Bezier curve, a five-time B-spline curve, and a 5-order-B-spline algorithm. .
在一个实施例中,根据该第一位置点及第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹,并将该第一曲线轨迹确定为第一飞行轨迹。此处第二轨迹生成规则可以包括轨迹生成控制算法,无人机的飞行轨迹的确定通常有多种常用算法,如贝塞尔曲线、五次B样条曲线5-order-B-spline等算法。具体可以图1为例进行说明,可以将位置点A与位置点B之间的曲线轨迹作为第一飞行轨迹。In one embodiment, according to the location information of the first location point and the second location point, generating a first curved trajectory from the first shooting point and the second shooting point according to a second trajectory generation rule And determining the first curve trajectory as the first flight trajectory. Here, the second trajectory generation rule may include a trajectory generation control algorithm, and the determination of the flight trajectory of the drone usually has a plurality of commonly used algorithms, such as a Bezier curve, a 5-time B-spline curve, and a 5-order-B-spline algorithm. . Specifically, FIG. 1 is taken as an example, and a curved trajectory between the position point A and the position point B may be used as the first flight trajectory.
S803、根据该第二位置点以及第三位置点的位置信息,确定出无人机的第二飞行轨迹。S803. Determine, according to the location information of the second location point and the third location point, a second flight trajectory of the drone.
在一个实施例中,根据该第二位置点及第三位置点的位置信息,按照第一轨迹生成规则,生成从该第二拍摄点与该第三拍摄点之间的第二直线轨迹;将该第二直线轨迹确定为第二飞行轨迹。In one embodiment, according to the position information of the second position point and the third position point, generating a second straight line trajectory from the second shooting point and the third shooting point according to the first trajectory generation rule; The second linear trajectory is determined to be a second flight trajectory.
在一个实施例中,根据该第二位置点及该第三位置点的位置信息,按照第二轨迹生成规则,生成从该第三拍摄点与该第四拍摄点之间的第二曲线轨迹,将该第二曲线轨迹确定为第二飞行轨迹。具体可以图1为例进行说明,可以将位置点B与位置点C之间的曲线轨迹作为第二飞行轨迹。In one embodiment, according to the second position point and the position information of the third position point, according to the second trajectory generation rule, generating a second curved trajectory from the third shooting point and the fourth shooting point, The second curved trajectory is determined as the second flight trajectory. Specifically, FIG. 1 is taken as an example, and a curved trajectory between the position point B and the position point C may be used as the second flight trajectory.
在一个实施例中,第一拍摄点、第二拍摄点是无人机在按照所述第一飞行轨迹运动的过程中的两个时间点,第二拍摄点、第三拍摄点是无人机在按照所述第二飞行轨迹运动的过程中的两个时间点。具体地,视频处理设备可以通过设置拍摄时间间隔,来确定所述拍摄时间间隔的三个时间点,并将确定的三个时间点作为第一拍摄点、第二拍摄点及第三拍摄点。例如,视频处理设备可以预先设置无人机的拍摄装置的拍摄时间间隔为5秒,第一拍摄点为时间点10:00:05,从而可以确定第二拍摄点的时间点为10:00:10,确定第三拍摄点的时间点为10:00:15。In one embodiment, the first shooting point and the second shooting point are two time points in the process of the drone moving in accordance with the first flight path, and the second shooting point and the third shooting point are drones. At two points in time during the movement in accordance with the second flight path. Specifically, the video processing device may determine three time points of the shooting time interval by setting a shooting time interval, and use the determined three time points as the first shooting point, the second shooting point, and the third shooting point. For example, the video processing device may preset the shooting time interval of the camera of the drone to be 5 seconds, and the first shooting point is the time point 10:00:05, so that the time point of the second shooting point can be determined to be 10:00: 10. The time point for determining the third shooting point is 10:00:15.
S804、将该第一位置点作为该第一拍摄点,并将该第二位置点作为该第二拍摄点,将该第三位置点作为该第三拍摄点。S804. The first position point is used as the first shooting point, and the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
本发明实施例中,视频处理设备可以将该第一位置点作为第一拍摄点,将该第二位置点作为第二拍摄点,将该第三位置点作为第三拍摄点。其中,该第一拍摄点、第二拍摄点及第三拍摄点可以是所述飞行轨迹上的三个位置点。In the embodiment of the present invention, the video processing device may use the first location point as the first shooting point, the second location point as the second shooting point, and the third location point as the third shooting point. The first shooting point, the second shooting point, and the third shooting point may be three position points on the flight path.
S805、控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据该第一全景图像得到第一视频段。S805. The photographing device that controls the drone captures the environment image at the first photographing point to obtain a first panoramic image, and obtains the first video segment according to the first panoramic image.
在一个实施例中,视频处理设备可以控制所述云台转动,其中,所述无人机的拍摄装置跟随所述云台转动拍摄得到所述第一全景图像。具体地,视频处理设备可以调整所述无人机云台的俯仰角至第一俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。In one embodiment, the video processing device may control the pan-tilt rotation, wherein the camera of the drone follows the pan-tilt rotation to obtain the first panoramic image. Specifically, the video processing device may adjust a pitch angle of the unmanned aerial platform to a first pitch angle; control the pan-tilt to perform circumferential rotation by rotating a yaw angle of the pan-tilt, and acquire the camera And capturing a first environment image during the following rotation of the motion; adjusting a pitch angle of the pan/tilt to a second pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion; splicing the first environment image and the second environment image And obtaining the first panoramic image.
在一个实施例中,获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合,根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合,根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线,根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。In one embodiment, acquiring a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second feature point set Feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image, according to the first stitching line, The first environment image and the second environment image are spliced to obtain the first panoramic image.
需要说明的是,本发明实施例在对第一环境图像和第二环境图像进行拼接处理时,对无人机的拍摄装置进行了标定,使用标定值作为所述拍摄装置内参数的初始值,使用惯性测量单元imu信息作为ba算法的初始值,可以减少迭代次数,以及利用已知的各个图像的两图像之间的关系,进行有目的特征点的匹配,从而可以减少匹配误差。It should be noted that, in the embodiment of the present invention, when the first environment image and the second environment image are spliced, the camera of the drone is calibrated, and the calibration value is used as the initial value of the parameter in the camera. Using the inertial measurement unit imu information as the initial value of the ba algorithm, the number of iterations can be reduced, and the relationship between the two characteristic images of the respective images can be used to perform matching of the targeted feature points, thereby reducing the matching error.
在一个实施例中,该视频处理设备可以控制该无人机转动;其中,该无人机的拍摄装置跟随该无人机转动拍摄得到该第一全景图像。具体地,该视频处理设备在控制所述无人机转动的过程中,可以控制所述无人机沿顺时针方向做圆周转动,或控制所述无人机沿逆时针方向做圆周转动,该无人机的拍摄装置跟随所述无人机转动拍摄得到第一全景图像。In one embodiment, the video processing device can control the rotation of the drone; wherein the camera of the drone follows the rotation of the drone to obtain the first panoramic image. Specifically, in the process of controlling the rotation of the drone, the video processing device may control the UAV to perform circumferential rotation in a clockwise direction, or control the UAV to perform circumferential rotation in a counterclockwise direction, The camera of the drone follows the rotation of the drone to obtain a first panoramic image.
S806、在无人机按照飞行轨迹从该第一拍摄点向第二拍摄点运动和从该第二拍摄点向第三拍摄点运动的过程中,控制该无人机的拍摄装置拍摄得到第二视频段。S806. During the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point according to the flight path, the photographing device controlling the drone is photographed to obtain the second Video segment.
S807、在该无人机到达所述第三拍摄点,控制该无人机的拍摄装置拍摄环 境图像得到第二全景图像,并根据该第二全景图像生成第三视频段。S807. When the drone reaches the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image.
在一个实施例中,视频处理设备可以控制云台转动,其中,无人机的拍摄装置跟随云台转动拍摄得到第二全景图像。具体地,调整无人机云台的俯仰角至第三俯仰角;通过转动云台的偏航角,控制云台做圆周转动,并获取拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;在控制运动转动一周后,调整云台的俯仰角至第四俯仰角;通过转动云台的偏航角,控制云台做圆周转动,并获取拍摄装置在跟随运动转动的过程中拍摄得到的第四环境图像;将第三环境图像和第四环境图像进行拼接处理,得到第二全景图像。In one embodiment, the video processing device can control pan/tilt rotation, wherein the camera of the drone is rotated to follow the pan-tilt to obtain a second panoramic image. Specifically, adjusting the pitch angle of the UAV pan/tilt to the third pitch angle; controlling the gimbal to make a circumferential rotation by rotating the yaw angle of the gimbal, and acquiring the photographing device that is photographed during the process of following the motion rotation The third environment image; adjusting the pitch angle of the gimbal to the fourth pitch angle after one rotation of the control motion; controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the gimbal, and acquiring the process of the camera rotating in following motion And capturing a fourth environment image; and splicing the third environment image and the fourth environment image to obtain a second panoramic image.
在一个实施例中,获取第三环境图像的第三特征点集合以及第四环境图像的第四特征点集合,根据第三特征点集合和第四特征点集合进行特征点匹配得到第二目标特征点集合,根据第二目标特征点集合,确定第一环境图像和第二环境图像的第二拼接线,根据第二拼接线,将第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。In one embodiment, acquiring a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, performing feature point matching according to the third feature point set and the fourth feature point set to obtain the second target feature a point set, according to the second target feature point set, determining a second splicing line of the first environment image and the second environment image, and splicing the first environment image and the second environment image according to the second splicing line, to obtain the The second panoramic image.
需要说明的是,本发明实施例在对第三环境图像和第四环境图像进行拼接处理时,对无人机的拍摄装置进行了标定,使用标定值作为所述拍摄装置内参数的初始值,使用惯性测量单元imu信息作为ba算法的初始值,可以减少迭代次数,以及利用已知的各个图像的两图像之间的关系,进行有目的特征点的匹配,从而可以减少匹配误差。It should be noted that, in the embodiment of the present invention, when the third environment image and the fourth environment image are spliced, the camera of the drone is calibrated, and the calibration value is used as the initial value of the parameter in the camera. Using the inertial measurement unit imu information as the initial value of the ba algorithm, the number of iterations can be reduced, and the relationship between the two characteristic images of the respective images can be used to perform matching of the targeted feature points, thereby reducing the matching error.
在一个实施例中,该视频处理设备可以控制该无人机转动;其中,该无人机的拍摄装置跟随该无人机转动拍摄得到该第二全景图像。具体地,该视频处理设备在控制所述无人机转动的过程中,可以控制所述无人机沿顺时针方向做圆周转动,或控制所述无人机沿逆时针方向做圆周转动,该无人机的拍摄装置跟随所述无人机转动拍摄得到第二全景图像。In one embodiment, the video processing device can control the rotation of the drone; wherein the camera of the drone follows the rotation of the drone to obtain the second panoramic image. Specifically, in the process of controlling the rotation of the drone, the video processing device may control the UAV to perform circumferential rotation in a clockwise direction, or control the UAV to perform circumferential rotation in a counterclockwise direction, The camera of the drone follows the rotation of the drone to obtain a second panoramic image.
需要说明的是,视频处理设备可以在无人机的飞行轨迹上选取多个位置点作为拍摄全景图像的拍摄点,以便拍摄得到多个包括全景图像的视频段,本发明实施例对拍摄全景图像的视频段的数量不限定。It should be noted that the video processing device may select a plurality of location points on the flight path of the drone as a shooting point for capturing the panoramic image, so as to capture a plurality of video segments including the panoramic image, and the embodiment of the present invention shoots the panoramic image. The number of video segments is not limited.
S808、根据该第一视频段、该第二视频段和该第三视频段,生成目标视频。S808. Generate a target video according to the first video segment, the second video segment, and the third video segment.
在一个实施例中,在根据该第一视频段、该第二视频段和该第三视频段,生成目标视频之后,如果检测到针对目标视频的播放指令,从第一视频段开始播放目标视频;或者,从第二视频段开始播放目标视频;或者,从第三视频段 开始播放目标视频。具体地,在播放所述目标视频的过程中,该视频处理设备可以将该目标视频从第一视频段开始播放,在播放过程中通过第一视频段的最后一张图像(即第一视频段的最后一个视频帧)逐步过渡到第二视频段播放,并通过第二视频段的最后一张图像(即第二视频段的最后一个视频帧)逐步过渡到第三视频段播放。或者,在播放所述目标视频的过程中,该视频处理设备可以将该目标视频从第二视频段开始播放,在播放过程中通过第二视频段的最后一个视频帧逐步过渡到第三视频段播放,并通过第三视频段的最后一张图像(即第三视频段的最后一个视频帧)逐步过渡到第一视频段播放。或者,在播放所述目标视频的过程中,该视频处理设备可以将该目标视频从第三视频段开始播放,在播放过程中通过第三视频段的最后一个视频帧逐步过渡到第二视频段播放,并通过第二视频段的最后一张图像(即第二视频段的最后一个视频帧)逐步过渡到第一视频段播放。In an embodiment, after the target video is generated according to the first video segment, the second video segment, and the third video segment, if a play instruction for the target video is detected, the target video is played from the first video segment. Or, play the target video from the second video segment; or, play the target video from the third video segment. Specifically, in the process of playing the target video, the video processing device may start playing the target video from the first video segment, and pass the last image of the first video segment (ie, the first video segment during playback). The last video frame) gradually transitions to the second video segment to play, and gradually transitions to the third video segment playback through the last image of the second video segment (ie, the last video frame of the second video segment). Alternatively, in the process of playing the target video, the video processing device may start playing the target video from the second video segment, and gradually transition to the third video segment through the last video frame of the second video segment during the playing process. Play and gradually transition to the first video segment by the last image of the third video segment (ie, the last video frame of the third video segment). Alternatively, in the process of playing the target video, the video processing device may start playing the target video from the third video segment, and gradually transition to the second video segment through the last video frame of the third video segment during playback. Play, and gradually transition to the first video segment by the last image of the second video segment (ie, the last video frame of the second video segment).
在一个实施例中,在根据该第一视频段、该第二视频段和该第三视频段,生成目标视频之后,如果检测到针对目标视频的分享操作指令,将目标视频进行分享。例如,该视频处理设备可以在检测到针对所述目标视频的分享至应用软件(如微信、QQ等聊天软件)的操作指令时,可以将所述目标视频进行分享至所述应用软件的指定位置(如微信好友、微信朋友圈、QQ好友等)。In an embodiment, after the target video is generated according to the first video segment, the second video segment, and the third video segment, if the sharing operation instruction for the target video is detected, the target video is shared. For example, the video processing device may share the target video to a specified location of the application software when detecting an operation instruction for sharing the target video to application software (such as chat software such as WeChat, QQ, etc.). (such as WeChat friends, WeChat friends circle, QQ friends, etc.).
本发明实施例中,该视频处理设备可以控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据第一全景图像生成第一视频段;在无人机按照飞行轨迹从第一拍摄点向第二拍摄点运动和从第二拍摄点向第三拍摄点运动的过程中,控制无人机的拍摄装置拍摄得到第二视频段;在无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;根据第一视频段、第二视频段和第三视频段,生成目标视频,可实现结合飞行轨迹为用户生成包括至少两个全景视频段的视频,并可实现全景视频段与非全景视频段之间平滑过渡,及实现多个全景视频段之间的平滑过渡,可以给用户提供某个区域的全局视觉效果和局部视觉效果,满足用户对视频的自动化、智能化拍摄以及处理需求。In the embodiment of the present invention, the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image; During the movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point, the camera controlling the drone captures the second video segment; the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third The video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Needs.
请参见图9,图9是本发明实施例提供的一种视频处理设备的结构示意图。具体的,所述视频处理设备包括:处理器901、存储器902、用户接口903以 及数据接口904,其中,所述用户接口903用户输出目标视频。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a video processing device according to an embodiment of the present invention. Specifically, the video processing device includes: a processor 901, a memory 902, a user interface 903, and a data interface 904, wherein the user interface 903 user outputs a target video.
所述存储器902可以包括易失性存储器(volatile memory);存储器902也可以包括非易失性存储器(non-volatile memory);存储器902还可以包括上述种类的存储器的组合。所述处理器901可以是中央处理器(central processing unit,CPU)。所述处理器901还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。The memory 902 may include a volatile memory; the memory 902 may also include a non-volatile memory; the memory 902 may also include a combination of the above types of memory. The processor 901 can be a central processing unit (CPU). The processor 901 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
可选地,所述存储器902用于存储程序指令。所述处理器901可以调用存储器902中存储的程序指令,用于执行如下步骤:Optionally, the memory 902 is configured to store program instructions. The processor 901 can call the program instructions stored in the memory 902 for performing the following steps:
控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;The photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段;Controlling the shooting of the drone by the drone during the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point Two video segments;
在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;When the drone reaches the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。Generating a target video according to the first video segment, the second video segment, and the third video segment.
可选的,所述第一拍摄点、所述第二拍摄点和所述第三拍摄点是所述飞行轨迹上的三个位置点。Optionally, the first shooting point, the second shooting point, and the third shooting point are three position points on the flight path.
可选的,所述第一拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第一位置点;所述第二拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第二位置点;所述第三拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第三位置点。Optionally, the first photographing point is a first position point selected according to the received selection operation on the flight path; the second photographing point is according to the received on the flight track. Selecting a second position point selected by the operation; the third shooting point is a third position point selected according to the received selection operation on the flight path.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
获取第一位置点、第二位置点和第三位置点;Obtaining a first location point, a second location point, and a third location point;
根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;Determining, according to the location information of the first location point and the second location point, a first flight trajectory of the drone;
根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;Determining, according to the location information of the second location point and the third location point, a second flight trajectory of the drone;
将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The first position point is used as the first shooting point, the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
根据所述第一位置点及所述第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹;And generating a first linear trajectory from the first photographing point and the second photographing point according to the first trajectory generation rule according to the position information of the first position point and the second position point;
将所述第一直线轨迹确定为所述第一飞行轨迹。The first straight track is determined as the first flight trajectory.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
根据所述第二位置点及所述第三位置点的位置信息,按照第一轨迹生成规则,生成从所述第二拍摄点与所述第三拍摄点之间的第二直线轨迹;And generating a second linear trajectory from the second photographing point and the third photographing point according to the first trajectory generation rule according to the position information of the second position point and the third position point;
将所述第二直线轨迹确定为第二飞行轨迹。The second linear trajectory is determined as a second flight trajectory.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
根据所述第一位置点及所述第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹;And generating a first curved trajectory from the first photographing point and the second photographing point according to the second trajectory generation rule according to the position information of the first position point and the second position point;
将所述第一曲线轨迹确定为所述第一飞行轨迹。The first curved trajectory is determined as the first flight trajectory.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
根据所述第二位置点及所述第三位置点的位置信息,按照第二轨迹生成规则,生成从所述第三拍摄点与所述第四拍摄点之间的第二曲线轨迹;And generating a second curved track from the third shooting point and the fourth shooting point according to the second track generation rule according to the second position point and the third position point position information;
将所述第二曲线轨迹确定为第二飞行轨迹。The second curved trajectory is determined as a second flight trajectory.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
将所述第一全景图像的最后一张图像作为第二视频段的第一个视频帧,所述第二视频段的最后一个视频帧作为所述第二全景图像的第一张图像。The last image of the first panoramic image is used as the first video frame of the second video segment, and the last video frame of the second video segment is used as the first image of the second panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。Controlling the rotation of the drone or carrying the pan-tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the first panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。Controlling the rotation of the drone or carrying the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the second panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
调整所述无人机云台的俯仰角至第一俯仰角;Adjusting a pitch angle of the drone head to a first pitch angle;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a first environment image captured by the photographing device during the following rotation of the motion;
在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;Adjusting the pitch angle of the pan/tilt to a second pitch angle after controlling the one rotation of the motion;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan/tilt, and acquiring a second environment image captured by the photographing device during the following rotation of the motion;
将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image to obtain the first panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
调整所述无人机云台的俯仰角至第三俯仰角;Adjusting a pitch angle of the drone head to a third pitch angle;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a third environment image captured by the photographing device during the following rotation of the motion;
在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;Adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the one rotation of the motion;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion;
将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。And splicing the third environment image and the fourth environment image to obtain the second panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合;Obtaining a first feature point set of the first environment image and a second feature point set of the second environment image;
根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合;Performing feature point matching according to the first feature point set and the second feature point set to obtain a first target feature point set;
根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线;Determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image;
根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image according to the first splicing line to obtain the first panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合;Obtaining a third feature point set of the third environment image and a fourth feature point set of the fourth environment image;
根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合;Performing feature point matching according to the third feature point set and the fourth feature point set to obtain a second target feature point set;
根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线;Determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image;
根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。And splicing the first environment image and the second environment image according to the second splicing line to obtain the second panoramic image.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,Playing the target video from the first video segment if a play instruction for the target video is detected; or
从所述第二视频段开始播放所述目标视频;或者,Playing the target video from the second video segment; or,
从所述第三视频段开始播放所述目标视频。The target video is played starting from the third video segment.
进一步地,所述处理器901调用存储器902中存储的程序指令还用于执行如下步骤:Further, the processor 901 calls the program instructions stored in the memory 902 and is further configured to perform the following steps:
如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。The target video is shared if a sharing operation instruction for the target video is detected.
本发明实施例中,该视频处理设备可以控制无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据第一全景图像生成第一视频段;在无人机按照飞行轨迹从第一拍摄点向第二拍摄点运动和从第二拍摄点向第 三拍摄点运动的过程中,控制无人机的拍摄装置拍摄得到第二视频段;在无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;根据第一视频段、第二视频段和第三视频段,生成目标视频,可实现结合飞行轨迹为用户生成包括至少两个全景视频段的视频,并可实现全景视频段与非全景视频段之间平滑过渡,及实现多个全景视频段之间的平滑过渡,可以给用户提供某个区域的全局视觉效果和局部视觉效果,满足用户对视频的自动化、智能化拍摄以及处理需求。In the embodiment of the present invention, the video processing device may control the camera of the drone to capture the environment image at the first shooting point to obtain the first panoramic image, and generate the first video segment according to the first panoramic image; During the movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point, the camera controlling the drone captures the second video segment; the drone arrives at the a third shooting point, controlling a shooting device of the drone to capture an environment image to obtain a second panoramic image, and generating a third video segment according to the second panoramic image; according to the first video segment, the second video segment, and the third The video segment generates a target video, and can generate a video including at least two panoramic video segments for the user in combination with the flight trajectory, and can realize a smooth transition between the panoramic video segment and the non-panoramic video segment, and realize a plurality of panoramic video segments. Smooth transition, can provide users with a global visual effect and local visual effects of a certain area, to meet the user's automation, intelligent shooting and video Demand.
本发明实施例还提供了一种无人机,包括:机身;设置在机身上的动力系统,用于提供飞行动力;处理器,用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。The embodiment of the invention further provides a drone, comprising: a fuselage; a power system disposed on the fuselage for providing flight power; and a processor for controlling the camera of the drone at the first Shooting an environment image to obtain a first panoramic image, and obtaining a first video segment according to the first panoramic image; moving from the first shooting point to the second shooting point according to a flight path of the drone and from the During the movement of the second shooting point to the third shooting point, the shooting device controlling the drone captures a second video segment, and the drone reaches the third shooting point to control the drone The photographing device captures the environment image to obtain a second panoramic image, and generates a third video segment according to the second panoramic image, and generates a target according to the first video segment, the second video segment, and the third video segment video.
可选的,所述第一拍摄点、所述第二拍摄点和所述第三拍摄点是所述飞行轨迹上的三个位置点。Optionally, the first shooting point, the second shooting point, and the third shooting point are three position points on the flight path.
可选的,所述第一拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第一位置点;所述第二拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第二位置点;所述第三拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第三位置点。Optionally, the first photographing point is a first position point selected according to the received selection operation on the flight path; the second photographing point is according to the received on the flight track. Selecting a second position point selected by the operation; the third shooting point is a third position point selected according to the received selection operation on the flight path.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
获取第一位置点、第二位置点和第三位置点;Obtaining a first location point, a second location point, and a third location point;
根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;Determining, according to the location information of the first location point and the second location point, a first flight trajectory of the drone;
根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;Determining, according to the location information of the second location point and the third location point, a second flight trajectory of the drone;
将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The first position point is used as the first shooting point, the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
获取第一位置点、第二位置点和第三位置点;Obtaining a first location point, a second location point, and a third location point;
根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;Determining, according to the location information of the first location point and the second location point, a first flight trajectory of the drone;
根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;Determining, according to the location information of the second location point and the third location point, a second flight trajectory of the drone;
将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The first position point is used as the first shooting point, the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
根据所述第一位置点及所述第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹;And generating a first linear trajectory from the first photographing point and the second photographing point according to the first trajectory generation rule according to the position information of the first position point and the second position point;
将所述第一直线轨迹确定为所述第一飞行轨迹;Determining the first straight trajectory as the first flight trajectory;
根据所述第二位置点及所述第三位置点的位置信息,按照第一轨迹生成规则,生成从所述第二拍摄点与所述第三拍摄点之间的第二直线轨迹;And generating a second linear trajectory from the second photographing point and the third photographing point according to the first trajectory generation rule according to the position information of the second position point and the third position point;
将所述第二直线轨迹确定为第二飞行轨迹。The second linear trajectory is determined as a second flight trajectory.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
根据所述第一位置点及所述第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹;And generating a first curved trajectory from the first photographing point and the second photographing point according to the second trajectory generation rule according to the position information of the first position point and the second position point;
将所述第一曲线轨迹确定为所述第一飞行轨迹;Determining the first curved trajectory as the first flight trajectory;
根据所述第二位置点及所述第三位置点的位置信息,按照第二轨迹生成规则,生成从所述第三拍摄点与所述第四拍摄点之间的第二曲线轨迹;And generating a second curved track from the third shooting point and the fourth shooting point according to the second track generation rule according to the second position point and the third position point position information;
将所述第二曲线轨迹确定为第二飞行轨迹。The second curved trajectory is determined as a second flight trajectory.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
将所述第一全景图像的最后一张图像作为第二视频段的第一个视频帧,所述第二视频段的最后一个视频帧作为所述第二全景图像的第一张图像。The last image of the first panoramic image is used as the first video frame of the second video segment, and the last video frame of the second video segment is used as the first image of the second panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。Controlling the rotation of the drone or carrying the pan-tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the first panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。Controlling the rotation of the drone or carrying the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the second panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
调整所述无人机云台的俯仰角至第一俯仰角;Adjusting a pitch angle of the drone head to a first pitch angle;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a first environment image captured by the photographing device during the following rotation of the motion;
在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;Adjusting the pitch angle of the pan/tilt to a second pitch angle after controlling the one rotation of the motion;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan/tilt, and acquiring a second environment image captured by the photographing device during the following rotation of the motion;
将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image to obtain the first panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
调整所述无人机云台的俯仰角至第三俯仰角;Adjusting a pitch angle of the drone head to a third pitch angle;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a third environment image captured by the photographing device during the following rotation of the motion;
在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;Adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the one rotation of the motion;
通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion;
将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。And splicing the third environment image and the fourth environment image to obtain the second panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合;Obtaining a first feature point set of the first environment image and a second feature point set of the second environment image;
根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合;Performing feature point matching according to the first feature point set and the second feature point set to obtain a first target feature point set;
根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线;Determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image;
根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image according to the first splicing line to obtain the first panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合;Obtaining a third feature point set of the third environment image and a fourth feature point set of the fourth environment image;
根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合;Performing feature point matching according to the third feature point set and the fourth feature point set to obtain a second target feature point set;
根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线;Determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image;
根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。And splicing the first environment image and the second environment image according to the second splicing line to obtain the second panoramic image.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,Playing the target video from the first video segment if a play instruction for the target video is detected; or
从所述第二视频段开始播放所述目标视频;或者,Playing the target video from the second video segment; or,
从所述第三视频段开始播放所述目标视频。The target video is played starting from the third video segment.
进一步,所述处理器还用于执行如下步骤:Further, the processor is further configured to perform the following steps:
如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。The target video is shared if a sharing operation instruction for the target video is detected.
所述无人机中处理器的具体实现可参考上述图7或图8所对应实施例的视频处理方法,在此不再赘述。其中,无人机可以是四旋翼无人机、六旋翼无人机、多旋翼无人机等类型的飞行器。所述动力系统可以包括电机、电调、螺旋桨等结构,其中,电机负责带动飞行器螺旋桨,电调负责控制飞行器的电机的转速。For a specific implementation of the processor in the UAV, reference may be made to the video processing method in the embodiment corresponding to FIG. 7 or FIG. 8 , and details are not described herein again. Among them, the drone can be a four-rotor UAV, a six-rotor UAV, a multi-rotor UAV, and the like. The power system may include a motor, an ESC, a propeller, etc., wherein the motor is responsible for driving the aircraft propeller, and the ESC is responsible for controlling the speed of the motor of the aircraft.
本发明实施例还提供了一种视频处理系统,包括:视频处理设备和无人机;The embodiment of the invention further provides a video processing system, comprising: a video processing device and a drone;
所述视频处理设备,用于发送飞行控制指令给飞行器,所述飞行控制指令用于指示无人机按照确定的飞行轨迹进行飞行;The video processing device is configured to send a flight control instruction to the aircraft, where the flight control instruction is used to instruct the drone to fly according to the determined flight trajectory;
所述无人机,用于响应所述飞行控制指令,控制无人机按照所述飞行轨迹进行飞行并控制所述无人机上挂载的拍摄装置进行拍摄;The drone is configured to control the drone to fly according to the flight trajectory and control a photographing device mounted on the drone to perform shooting according to the flight control instruction;
所述视频处理设备,还用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频 段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。The video processing device is further configured to control the photographing device of the drone to capture an environment image at a first photographing point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image; Controlling the camera of the drone to capture a second video segment during movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point When the drone arrives at the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image, according to the The first video segment, the second video segment, and the third video segment generate a target video.
进一步,所述视频处理设备,用于获取第一位置点、第二位置点和第三位置点;根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。Further, the video processing device is configured to acquire a first location point, a second location point, and a third location point; and determining, according to the location information of the first location point and the second location point, the unmanned a first flight trajectory of the machine; determining, according to the second location point and the location information of the third location point, a second flight trajectory of the drone; using the first location point as the first Shooting a point, using the second position point as the second shooting point, and using the third position point as the third shooting point.
进一步,所述视频处理设备,用于根据所述第一位置点及所述第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹,将所述第一直线轨迹确定为所述第一飞行轨迹,根据所述第二位置点及所述第三位置点的位置信息,按照第一轨迹生成规则,生成从所述第二拍摄点与所述第三拍摄点之间的第二直线轨迹,将所述第二直线轨迹确定为第二飞行轨迹。Further, the video processing device is configured to generate, according to the first trajectory generation rule, the first photographic point and the second photographic point according to the location information of the first location point and the second location point. a first straight trajectory between the first trajectory determined as the first flight trajectory, and according to the position information of the second position point and the third position point, according to the first trajectory generation rule And generating a second straight line trajectory from the second photographing point and the third photographing point, and determining the second straight line locus as a second flight locus.
进一步,所述视频处理设备,还用于根据所述第一位置点及所述第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹,将所述第一曲线轨迹确定为所述第一飞行轨迹,根据所述第二位置点及所述第三位置点的位置信息,按照第二轨迹生成规则,生成从所述第三拍摄点与所述第四拍摄点之间的第二曲线轨迹,将所述第二曲线轨迹确定为第二飞行轨迹。Further, the video processing device is further configured to generate, according to the second track generation rule, the first shooting point and the second shooting according to the location information of the first location point and the second location point. a first curve trajectory between the points, determining the first curve trajectory as the first flight trajectory, and generating a rule according to the second trajectory according to the position information of the second position point and the third position point, A second curved trajectory from the third shooting point and the fourth shooting point is generated, and the second curved trajectory is determined as a second flight trajectory.
进一步,所述视频处理设备,用于将所述第一全景图像的最后一张图像作为第二视频段的第一个视频帧,所述第二视频段的最后一个视频帧作为所述第二全景图像的第一张图像。Further, the video processing device is configured to use a last image of the first panoramic image as a first video frame of a second video segment, and a last video frame of the second video segment as the second video frame The first image of the panoramic image.
进一步,所述视频处理设备,用于控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。Further, the video processing device is configured to control the rotation of the drone or the pan/tilt rotation of the camera, wherein the camera of the drone follows the rotation of the drone or rotates the image of the environment The first panoramic image is obtained.
进一步,所述视频处理设备,用于控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。Further, the video processing device is configured to control the UAV to rotate or carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan/tilt rotates The environmental image results in the second panoramic image.
进一步,所述视频处理设备,用于调整所述无人机云台的俯仰角至第一俯 仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角,通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像,将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。Further, the video processing device is configured to adjust a pitch angle of the unmanned aerial platform to a first pitch angle; and by rotating a yaw angle of the pan/tilt, control the pan-tilt to perform a circumferential rotation, and acquire a first environment image captured by the photographing device during the following rotation of the motion; after controlling the motion to rotate for one week, adjusting a pitch angle of the pan/tilt to a second pitch angle, by rotating the pan/tilt a yaw angle, controlling the pan-tilt to perform a circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion, and the first environment image and the second environment image A splicing process is performed to obtain the first panoramic image.
进一步,所述视频处理设备,用于调整所述无人机云台的俯仰角至第三俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。Further, the video processing device is configured to adjust a pitch angle of the unmanned aerial platform to a third pitch angle; by rotating a yaw angle of the pan/tilt, controlling the pan-tilt to perform a circumferential rotation, and acquiring a third environment image captured by the photographing device during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the motion to rotate one revolution; by rotating the pan/tilt a yaw angle, controlling the pan-tilt to perform a circumferential rotation, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion; and the third environment image and the fourth environment image A splicing process is performed to obtain the second panoramic image.
进一步,所述视频处理设备,用于获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合,根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合,根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线,根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。Further, the video processing device is configured to acquire a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second Feature point set performing feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image, according to the first a splicing line, splicing the first environment image and the second environment image to obtain the first panoramic image.
进一步,所述视频处理设备,用于获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合,根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合,根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线,根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。Further, the video processing device is configured to acquire a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, according to the third feature point set and the fourth Feature point set performing feature point matching to obtain a second target feature point set, and determining, according to the second target feature point set, a second stitching line of the first environment image and the second environment image, according to the second The splicing line is spliced to the first environment image and the second environment image to obtain the second panoramic image.
进一步,所述视频处理设备,还用于如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,从所述第二视频段开始播放所述目标视频;或者,从所述第三视频段开始播放所述目标视频。Further, the video processing device is further configured to: start playing the target video from the first video segment if a play instruction for the target video is detected; or start playing the video from the second video segment Target video; or, playing the target video from the third video segment.
进一步,所述视频处理设备,还用于如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。Further, the video processing device is further configured to share the target video if a sharing operation instruction for the target video is detected.
在本发明的实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图7或图8所对应实施例中描述的视频处理方法方式,也可实现图9所述本发明所对应实施例的视频处理设备,在此不再赘述。Also provided in an embodiment of the present invention is a computer readable storage medium storing a computer program, which when executed by a processor, implements the implementation of FIG. 7 or FIG. 8 of the present invention. The video processing device of the embodiment of the present invention shown in FIG. 9 can also be implemented in the video processing method in the example, and details are not described herein again.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the device described in any of the preceding embodiments, such as a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the terminal. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (49)

  1. 一种视频处理方法,应用于无人机中,所述无人机配置有拍摄装置,其特征在于,所述方法包括:A video processing method is applied to a drone, wherein the drone is configured with a photographing device, wherein the method comprises:
    控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;The photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
    在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段;Controlling the shooting of the drone by the drone during the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point Two video segments;
    在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;When the drone reaches the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
    根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。Generating a target video according to the first video segment, the second video segment, and the third video segment.
  2. 根据权利要求1所述的方法,其特征在于,所述第一拍摄点、所述第二拍摄点和所述第三拍摄点是所述飞行轨迹上的三个位置点。The method of claim 1 wherein the first photographing point, the second photographing point, and the third photographing point are three position points on the flight path.
  3. 根据权利要求1或2所述的方法,其特征在于,Method according to claim 1 or 2, characterized in that
    所述第一拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第一位置点;The first photographing point is a first position point selected according to the received selection operation on the flight locus;
    所述第二拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第二位置点;The second photographing point is a second position point selected according to the received selection operation on the flight locus;
    所述第三拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第三位置点。The third photographing point is a third position point selected according to the received selection operation on the flight locus.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述飞行轨迹包括第一飞行轨迹和第二飞行轨迹,其中,所述方法还包括:The method according to any one of claims 1 to 3, wherein the flight path comprises a first flight trajectory and a second flight trajectory, wherein the method further comprises:
    获取第一位置点、第二位置点和第三位置点;Obtaining a first location point, a second location point, and a third location point;
    根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;Determining, according to the location information of the first location point and the second location point, a first flight trajectory of the drone;
    根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;Determining, according to the location information of the second location point and the third location point, a second flight trajectory of the drone;
    将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The first position point is used as the first shooting point, the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹,包括:The method according to claim 4, wherein the determining the first flight trajectory of the drone according to the location information of the first location point and the second location point comprises:
    根据所述第一位置点及所述第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹;And generating a first linear trajectory from the first photographing point and the second photographing point according to the first trajectory generation rule according to the position information of the first position point and the second position point;
    将所述第一直线轨迹确定为所述第一飞行轨迹;Determining the first straight trajectory as the first flight trajectory;
    所述根据所述第二位置点以及第三位置点的位置信息,确定出所述无人机的第二飞行轨迹,包括:Determining, according to the location information of the second location point and the third location point, the second flight trajectory of the drone, including:
    根据所述第二位置点及所述第三位置点的位置信息,按照第一轨迹生成规则,生成从所述第二拍摄点与所述第三拍摄点之间的第二直线轨迹;And generating a second linear trajectory from the second photographing point and the third photographing point according to the first trajectory generation rule according to the position information of the second position point and the third position point;
    将所述第二直线轨迹确定为第二飞行轨迹。The second linear trajectory is determined as a second flight trajectory.
  6. 根据权利要求4所述的方法,其特征在于,所述根据所述第一位置点以及第二位置点的位置信息,确定出所述无人机的第一飞行轨迹,包括:The method according to claim 4, wherein the determining the first flight trajectory of the drone according to the location information of the first location point and the second location point comprises:
    根据所述第一位置点及所述第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹;And generating a first curved trajectory from the first photographing point and the second photographing point according to the second trajectory generation rule according to the position information of the first position point and the second position point;
    将所述第一曲线轨迹确定为所述第一飞行轨迹;Determining the first curved trajectory as the first flight trajectory;
    所述根据所述第二位置点以及第三位置点的位置信息,确定出所述无人机的第二飞行轨迹,包括:Determining, according to the location information of the second location point and the third location point, the second flight trajectory of the drone, including:
    根据所述第二位置点及所述第三位置点的位置信息,按照第二轨迹生成规则,生成从所述第三拍摄点与所述第四拍摄点之间的第二曲线轨迹;And generating a second curved track from the third shooting point and the fourth shooting point according to the second track generation rule according to the second position point and the third position point position information;
    将所述第二曲线轨迹确定为第二飞行轨迹。The second curved trajectory is determined as a second flight trajectory.
  7. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    将所述第一全景图像的最后一张图像作为第二视频段的第一个视频帧,所述第二视频段的最后一个视频帧作为所述第二全景图像的第一张图像。The last image of the first panoramic image is used as the first video frame of the second video segment, and the last video frame of the second video segment is used as the first image of the second panoramic image.
  8. 根据权利要求1所述的方法,其特征在于,所述控制所述无人机的拍 摄装置拍摄环境图像得到第一全景图像,包括:The method according to claim 1, wherein the controlling the shooting device of the drone to capture an environment image to obtain a first panoramic image comprises:
    控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。Controlling the rotation of the drone or carrying the pan-tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the first panoramic image.
  9. 根据权利要求1所述的方法,其特征在于,所述控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,包括:The method according to claim 1, wherein the controlling the camera of the drone to capture an environment image to obtain a second panoramic image comprises:
    控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。Controlling the rotation of the drone or carrying the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone or the pan-tilt rotates the photographing environment image to obtain the second panoramic image.
  10. 根据权利要求8所述的方法,其特征在于,所述控制所述无人机的拍摄装置拍摄环境图像得到第一全景图像,包括:The method according to claim 8, wherein the controlling the camera of the drone to capture an environment image to obtain a first panoramic image comprises:
    调整所述无人机云台的俯仰角至第一俯仰角;Adjusting a pitch angle of the drone head to a first pitch angle;
    通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a first environment image captured by the photographing device during the following rotation of the motion;
    在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;Adjusting the pitch angle of the pan/tilt to a second pitch angle after controlling the one rotation of the motion;
    通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan/tilt, and acquiring a second environment image captured by the photographing device during the following rotation of the motion;
    将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image to obtain the first panoramic image.
  11. 根据权利要求9所述的方法,其特征在于,所述控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,包括:The method according to claim 9, wherein the controlling the camera of the drone to capture an environment image to obtain a second panoramic image comprises:
    调整所述无人机云台的俯仰角至第三俯仰角;Adjusting a pitch angle of the drone head to a third pitch angle;
    通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a third environment image captured by the photographing device during the following rotation of the motion;
    在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;Adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the one rotation of the motion;
    通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;Controlling the pan-tilt to perform circumferential rotation by rotating the yaw angle of the pan-tilt, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion;
    将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。And splicing the third environment image and the fourth environment image to obtain the second panoramic image.
  12. 根据权利要求10所述的方法,其特征在于,所述将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像,包括:The method according to claim 10, wherein the splicing the first environment image and the second environment image to obtain the first panoramic image comprises:
    获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合;Obtaining a first feature point set of the first environment image and a second feature point set of the second environment image;
    根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合;Performing feature point matching according to the first feature point set and the second feature point set to obtain a first target feature point set;
    根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线;Determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image;
    根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。And splicing the first environment image and the second environment image according to the first splicing line to obtain the first panoramic image.
  13. 根据权利要求11所述的方法,其特征在于,所述将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像,包括:The method according to claim 11, wherein the splicing process of the third environment image and the fourth environment image to obtain the second panoramic image comprises:
    获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合;Obtaining a third feature point set of the third environment image and a fourth feature point set of the fourth environment image;
    根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合;Performing feature point matching according to the third feature point set and the fourth feature point set to obtain a second target feature point set;
    根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线;Determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image;
    根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。And splicing the first environment image and the second environment image according to the second splicing line to obtain the second panoramic image.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频之后,还包括:The method according to any one of claims 1 to 13, wherein after the generating the target video according to the first video segment, the second video segment and the third video segment, the method further comprises:
    如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,Playing the target video from the first video segment if a play instruction for the target video is detected; or
    从所述第二视频段开始播放所述目标视频;或者,Playing the target video from the second video segment; or,
    从所述第三视频段开始播放所述目标视频。The target video is played starting from the third video segment.
  15. 根据权利要求1-13任一项所述的方法,其特征在于,所述根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频之后,还包括:The method according to any one of claims 1 to 13, wherein after the generating the target video according to the first video segment, the second video segment and the third video segment, the method further comprises:
    如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。The target video is shared if a sharing operation instruction for the target video is detected.
  16. 一种视频处理设备,其特征在于,包括存储器和处理器;A video processing device, comprising: a memory and a processor;
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
    控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段;The photographing device that controls the drone captures an environment image at a first photographing point to obtain a first panoramic image, and obtains a first video segment according to the first panoramic image;
    在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段;Controlling the shooting of the drone by the drone during the movement of the drone from the first photographing point to the second photographing point and from the second photographing point to the third photographing point Two video segments;
    在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段;When the drone reaches the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image;
    根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。Generating a target video according to the first video segment, the second video segment, and the third video segment.
  17. 根据权利要求16所述的设备,其特征在于,所述第一拍摄点、所述第二拍摄点和所述第三拍摄点是所述飞行轨迹上的三个位置点。The apparatus according to claim 16, wherein said first photographing point, said second photographing point, and said third photographing point are three position points on said flight locus.
  18. 根据权利要求16或17所述的设备,其特征在于,Device according to claim 16 or 17, characterized in that
    所述第一拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第一位置点;The first photographing point is a first position point selected according to the received selection operation on the flight locus;
    所述第二拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第二位置点;The second photographing point is a second position point selected according to the received selection operation on the flight locus;
    所述第三拍摄点是根据接收到的在所述飞行轨迹上的选择操作所选取的第三位置点。The third photographing point is a third position point selected according to the received selection operation on the flight locus.
  19. 根据权利要求16-18任一所述的设备,其特征在于,Apparatus according to any of claims 16-18, wherein
    所述飞行轨迹包括第一飞行轨迹和第二飞行轨迹,所述处理器,用于获取第一位置点、第二位置点和第三位置点;根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹;根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹;将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The flight trajectory includes a first flight trajectory and a second flight trajectory, and the processor is configured to acquire a first location point, a second location point, and a third location point; according to the first location point and the second location Positioning information of the location point, determining a first flight trajectory of the drone; determining a second flight trajectory of the drone according to location information of the second location point and the third location point; The first position point is used as the first shooting point, the second position point is used as the second shooting point, and the third position point is used as the third shooting point.
  20. 根据权利要求19所述的设备,其特征在于,The device according to claim 19, characterized in that
    所述处理器,用于根据所述第一位置点及所述第二位置点的位置信息,按照第一轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一直线轨迹;将所述第一直线轨迹确定为所述第一飞行轨迹,根据所述第二位置点及所述第三位置点的位置信息,按照第一轨迹生成规则,生成从所述第二拍摄点与所述第三拍摄点之间的第二直线轨迹;将所述第二直线轨迹确定为第二飞行轨迹。The processor is configured to generate, according to the first location point and the second location point, a first trajectory generation rule, between the first shooting point and the second shooting point Determining the first straight trajectory as the first flight trajectory, and generating a slave according to the first trajectory generation rule according to the position information of the second position point and the third position point a second linear trajectory between the second photographing point and the third photographing point; the second straight trajectory is determined as a second flight trajectory.
  21. 根据权利要求19所述的设备,其特征在于,The device according to claim 19, characterized in that
    所述处理器,用于根据所述第一位置点及所述第二位置点的位置信息,按照第二轨迹生成规则,生成从所述第一拍摄点与所述第二拍摄点之间的第一曲线轨迹;将所述第一曲线轨迹确定为所述第一飞行轨迹;根据所述第二位置点及所述第三位置点的位置信息,按照第二轨迹生成规则,生成从所述第三拍摄点与所述第四拍摄点之间的第二曲线轨迹,将所述第二曲线轨迹确定为第二飞行轨迹。The processor is configured to generate, according to the second location generation rule, the second trajectory generation rule according to the location information of the first location point and the second location point, between the first shooting point and the second shooting point a first curve trajectory; determining the first curve trajectory as the first flight trajectory; generating a rule from the second trajectory according to position information of the second position point and the third position point A second curved trajectory between the third shooting point and the fourth shooting point determines the second curved trajectory as a second flight trajectory.
  22. 根据权利要求16所述的设备,其特征在于,The device of claim 16 wherein:
    所述处理器,用于将所述第一全景图像的最后一张图像作为第二视频段的第一个视频帧,所述第二视频段的最后一个视频帧作为所述第二全景图像的第一张图像。The processor is configured to use a last image of the first panoramic image as a first video frame of a second video segment, and a last video frame of the second video segment as the second panoramic image The first image.
  23. 根据权利要求16所述的设备,其特征在于,The device of claim 16 wherein:
    所述处理器,用于控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。The processor is configured to control the rotation of the drone or to carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone rotation or the pan/tilt rotates the photographing environment image to obtain the The first panoramic image.
  24. 根据权利要求16所述的设备,其特征在于,The device of claim 16 wherein:
    所述处理器,用于控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。The processor is configured to control the UAV to rotate or carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the rotation of the drone or the pan/tilt rotates to capture an image of the environment The second panoramic image.
  25. 根据权利要求23所述的设备,其特征在于,The device according to claim 23, wherein
    所述处理器,用于调整所述无人机云台的俯仰角至第一俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。The processor is configured to adjust a pitch angle of the unmanned aerial platform to a first pitch angle; control a rotation of the pan/tilt by rotating a yaw angle of the pan/tilt, and acquire the camera And capturing a first environment image during the following rotation of the motion; adjusting a pitch angle of the pan/tilt to a second pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion; splicing the first environment image and the second environment image And obtaining the first panoramic image.
  26. 根据权利要求24所述的设备,其特征在于,The device according to claim 24, wherein
    所述处理器,用于调整所述无人机云台的俯仰角至第三俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。The processor is configured to adjust a pitch angle of the UAV pan/tilt to a third pitch angle; control the pan-tilt to perform circumferential rotation by rotating a yaw angle of the pan-tilt, and acquire the photographing device a third environment image captured during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion; splicing the third environment image and the fourth environment image And obtaining the second panoramic image.
  27. 根据权利要求25所述的设备,其特征在于,The device according to claim 25, wherein
    所述处理器,用于获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合,根据所述第一特征点集合和所述第二特征点集合 进行特征点匹配得到第一目标特征点集合,根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线,根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。The processor is configured to acquire a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second feature point set Performing feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image, according to the first stitching line, The first environment image and the second environment image are spliced to obtain the first panoramic image.
  28. 根据权利要求26所述的设备,其特征在于,The device according to claim 26, wherein
    所述处理器,用于获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合,根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合,根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线,根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。The processor is configured to acquire a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, according to the third feature point set and the fourth feature point set Performing feature point matching to obtain a second target feature point set, and determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image, according to the second splicing line, The first environment image and the second environment image are spliced to obtain the second panoramic image.
  29. 根据权利要求16-28任一项所述的设备,其特征在于,Apparatus according to any one of claims 16-28, wherein
    所述处理器,还用于如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,从所述第二视频段开始播放所述目标视频;或者,从所述第三视频段开始播放所述目标视频。The processor is further configured to: start playing the target video from the first video segment if a play instruction for the target video is detected; or start playing the target video from the second video segment; Or, playing the target video from the third video segment.
  30. 根据权利要求16-28任一项所述的设备,其特征在于,Apparatus according to any one of claims 16-28, wherein
    所述处理器,还用于如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。The processor is further configured to share the target video if a sharing operation instruction for the target video is detected.
  31. 一种无人机,其特征在于,包括:A drone, characterized in that it comprises:
    机身;body;
    设置在机身上的动力系统,用于提供飞行动力;a power system disposed on the fuselage for providing flight power;
    处理器,用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段,在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。a processor, configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, and follow the flight path in the drone Controlling the camera of the drone to capture a second video segment during the movement from the first photographing point to the second photographing point and from the second photographing point to the third photographing point The drone reaches the third shooting point, controls the shooting device of the drone to capture the environment image to obtain a second panoramic image, and generates a third video segment according to the second panoramic image, according to the first video segment. And generating, by the second video segment and the third video segment, a target video.
  32. 根据权利要求31所述的无人机,其特征在于,The drone according to claim 31, wherein
    所述处理器,用于获取第一位置点、第二位置点和第三位置点,根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹,根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹,将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The processor is configured to acquire a first location point, a second location point, and a third location point, and determine, according to the location information of the first location point and the second location point, the first a flight trajectory, determining a second flight trajectory of the drone according to the second location point and the location information of the third location point, and using the first location point as the first shooting point, The second position point is used as the second shooting point, and the third position point is used as the third shooting point.
  33. 根据权利要求31所述的无人机,其特征在于,The drone according to claim 31, wherein
    所述处理器,用于控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。The processor is configured to control the rotation of the drone or to carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone rotation or the pan/tilt rotates the photographing environment image to obtain the The first panoramic image.
  34. 根据权利要求31所述的无人机,其特征在于,The drone according to claim 31, wherein
    所述处理器,用于控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。The processor is configured to control the UAV to rotate or carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the rotation of the drone or the pan/tilt rotates to capture an image of the environment The second panoramic image.
  35. 根据权利要求33所述的无人机,其特征在于,The drone according to claim 33, wherein
    所述处理器,用于调整所述无人机云台的俯仰角至第一俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。The processor is configured to adjust a pitch angle of the unmanned aerial platform to a first pitch angle; control a rotation of the pan/tilt by rotating a yaw angle of the pan/tilt, and acquire the camera And capturing a first environment image during the following rotation of the motion; adjusting a pitch angle of the pan/tilt to a second pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion; splicing the first environment image and the second environment image And obtaining the first panoramic image.
  36. 根据权利要求34所述的无人机,其特征在于,The drone according to claim 34, characterized in that
    所述处理器,用于调整所述无人机云台的俯仰角至第三俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所 述运动转动的过程中拍摄得到的第三环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。The processor is configured to adjust a pitch angle of the UAV pan/tilt to a third pitch angle; control the pan-tilt to perform circumferential rotation by rotating a yaw angle of the pan-tilt, and acquire the photographing device a third environment image captured during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the rotation of the motion; and rotating the yaw angle of the pan/tilt Controlling the pan-tilt to perform circumferential rotation, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion; splicing the third environment image and the fourth environment image And obtaining the second panoramic image.
  37. 根据权利要求35所述的无人机,其特征在于,The drone according to claim 35, characterized in that
    所述处理器,用于获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合,根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合,根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线,根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。The processor is configured to acquire a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second feature point set Performing feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first stitching line of the first environment image and the second environment image, according to the first stitching line, The first environment image and the second environment image are spliced to obtain the first panoramic image.
  38. 根据权利要求36所述的无人机,其特征在于,The drone according to claim 36, characterized in that
    所述处理器,用于获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合,根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合,根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线,根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。The processor is configured to acquire a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, according to the third feature point set and the fourth feature point set Performing feature point matching to obtain a second target feature point set, and determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image, according to the second splicing line, The first environment image and the second environment image are spliced to obtain the second panoramic image.
  39. 一种视频处理系统,其特征在于,包括:视频处理设备和无人机;A video processing system, comprising: a video processing device and a drone;
    所述视频处理设备,用于发送飞行控制指令给飞行器,所述飞行控制指令用于指示无人机按照确定的飞行轨迹进行飞行;The video processing device is configured to send a flight control instruction to the aircraft, where the flight control instruction is used to instruct the drone to fly according to the determined flight trajectory;
    所述无人机,用于响应所述飞行控制指令,控制无人机按照所述飞行轨迹进行飞行并控制所述无人机上挂载的拍摄装置进行拍摄;The drone is configured to control the drone to fly according to the flight trajectory and control a photographing device mounted on the drone to perform shooting according to the flight control instruction;
    所述视频处理设备,还用于控制所述无人机的拍摄装置在第一拍摄点时拍摄环境图像得到第一全景图像,并根据所述第一全景图像得到第一视频段,在无人机按照飞行轨迹从所述第一拍摄点向第二拍摄点运动和从所述第二拍摄点向第三拍摄点运动的过程中,控制所述无人机的拍摄装置拍摄得到第二视频段,在所述无人机到达所述第三拍摄点,控制所述无人机的拍摄装置拍摄环境 图像得到第二全景图像,并根据所述第二全景图像生成第三视频段,根据所述第一视频段、所述第二视频段和所述第三视频段,生成目标视频。The video processing device is further configured to control the camera of the drone to capture an environment image at a first shooting point to obtain a first panoramic image, and obtain a first video segment according to the first panoramic image, Controlling the camera of the drone to capture a second video segment during movement of the flight path from the first shooting point to the second shooting point and from the second shooting point to the third shooting point When the drone arrives at the third shooting point, the camera of the drone is controlled to capture an environment image to obtain a second panoramic image, and a third video segment is generated according to the second panoramic image, according to the The first video segment, the second video segment, and the third video segment generate a target video.
  40. 根据权利要求39所述的系统,其特征在于,The system of claim 39, wherein
    所述视频处理设备,用于获取第一位置点、第二位置点和第三位置点,根据所述第一位置点以及所述第二位置点的位置信息,确定出所述无人机的第一飞行轨迹,根据所述第二位置点以及所述第三位置点的位置信息,确定出所述无人机的第二飞行轨迹,将所述第一位置点作为所述第一拍摄点,将所述第二位置点作为所述第二拍摄点,将所述第三位置点作为所述第三拍摄点。The video processing device is configured to acquire a first location point, a second location point, and a third location point, and determine, according to the location information of the first location point and the second location point, the unmanned aerial vehicle Determining, according to the second position point and the position information of the third position point, a second flight trajectory of the drone, using the first position point as the first shooting point The second position point is used as the second shooting point, and the third position point is used as the third shooting point.
  41. 根据权利要求39所述的系统,其特征在于,The system of claim 39, wherein
    所述视频处理设备,用于控制无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第一全景图像。The video processing device is configured to control the rotation of the drone or to carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the rotation of the drone or rotates the image of the environment to obtain an image of the environment The first panoramic image is described.
  42. 根据权利要求39所述的系统,其特征在于,The system of claim 39, wherein
    所述视频处理设备,用于控制所述无人机转动或者承载所述拍摄装置的云台转动,其中,所述无人机的拍摄装置跟随所述无人机转动或者云台转动拍摄环境图像得到所述第二全景图像。The video processing device is configured to control the UAV to rotate or carry the pan/tilt rotation of the photographing device, wherein the photographing device of the drone follows the drone rotation or the pan/tilt rotates to capture an environment image The second panoramic image is obtained.
  43. 根据权利要求41所述的系统,其特征在于,The system of claim 41, wherein
    所述视频处理设备,用于调整所述无人机云台的俯仰角至第一俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第一环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第二俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第二环境图像;将所述第一环境图像和所述第二环境图像进行拼接处理,得到所述第一全景图像。The video processing device is configured to adjust a pitch angle of the unmanned aerial platform to a first pitch angle; control a rotation of the pan/tilt by rotating a yaw angle of the pan/tilt, and acquire the shooting a first environment image captured by the device during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a second pitch angle after controlling the rotation of the motion; and rotating the yaw of the pan/tilt An angle, controlling the pan-tilt to perform circumferential rotation, and acquiring a second environment image captured by the photographing device during the following rotation of the motion; splicing the first environment image and the second environment image Processing to obtain the first panoramic image.
  44. 根据权利要求42所述的系统,其特征在于,The system of claim 42 wherein:
    所述视频处理设备,用于调整所述无人机云台的俯仰角至第三俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第三环境图像;在控制所述运动转动一周后,调整所述云台的俯仰角至第四俯仰角;通过转动所述云台的偏航角,控制所述云台做圆周转动,并获取所述拍摄装置在跟随所述运动转动的过程中拍摄得到的第四环境图像;将所述第三环境图像和所述第四环境图像进行拼接处理,得到所述第二全景图像。The video processing device is configured to adjust a pitch angle of the drone head to a third pitch angle; control the pan head to perform a circumferential rotation by rotating a yaw angle of the pan/tilt, and acquire the photographing a third environment image captured by the device during the following rotation of the motion; adjusting the pitch angle of the pan/tilt to a fourth pitch angle after controlling the rotation of the motion; and rotating the yaw of the pan/tilt a corner, controlling the pan-tilt to perform a circumferential rotation, and acquiring a fourth environment image captured by the photographing device during the following rotation of the motion; splicing the third environment image and the fourth environment image Processing to obtain the second panoramic image.
  45. 根据权利要求43所述的系统,其特征在于,The system of claim 43 wherein:
    所述视频处理设备,用于获取所述第一环境图像的第一特征点集合以及所述第二环境图像的第二特征点集合,根据所述第一特征点集合和所述第二特征点集合进行特征点匹配得到第一目标特征点集合,根据所述第一目标特征点集合,确定所述第一环境图像和所述第二环境图像的第一拼接线,根据所述第一拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第一全景图像。The video processing device is configured to acquire a first feature point set of the first environment image and a second feature point set of the second environment image, according to the first feature point set and the second feature point And performing a feature point matching to obtain a first target feature point set, and determining, according to the first target feature point set, a first splicing line of the first environment image and the second environment image, according to the first splicing line And splicing the first environment image and the second environment image to obtain the first panoramic image.
  46. 根据权利要求44所述的系统,其特征在于,The system of claim 44, wherein
    所述视频处理设备,用于获取所述第三环境图像的第三特征点集合以及所述第四环境图像的第四特征点集合,根据所述第三特征点集合和所述第四特征点集合进行特征点匹配得到第二目标特征点集合,根据所述第二目标特征点集合,确定所述第一环境图像和所述第二环境图像的第二拼接线,根据所述第二拼接线,将所述第一环境图像和第二环境图像进行拼接处理,得到所述第二全景图像。The video processing device is configured to acquire a third feature point set of the third environment image and a fourth feature point set of the fourth environment image, according to the third feature point set and the fourth feature point And performing a feature point matching to obtain a second target feature point set, and determining, according to the second target feature point set, a second splicing line of the first environment image and the second environment image, according to the second splicing line And splicing the first environment image and the second environment image to obtain the second panoramic image.
  47. 根据权利要求39-46任一项所述的系统,其特征在于,A system according to any of claims 39-46, wherein
    所述视频处理设备,还用于如果检测到针对所述目标视频的播放指令,从所述第一视频段开始播放所述目标视频;或者,从所述第二视频段开始播放所述目标视频;或者,从所述第三视频段开始播放所述目标视频。The video processing device is further configured to: start playing the target video from the first video segment if a play instruction for the target video is detected; or start playing the target video from the second video segment Or, the target video is played starting from the third video segment.
  48. 根据权利要求39-46任一项所述的系统,其特征在于,A system according to any of claims 39-46, wherein
    所述视频处理设备,还用于如果检测到针对所述目标视频的分享操作指令,将所述目标视频进行分享。The video processing device is further configured to share the target video if a sharing operation instruction for the target video is detected.
  49. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至15任一项所述方法。A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method of any one of claims 1 to 15.
PCT/CN2018/088723 2017-09-29 2018-05-28 Video processing method and device, unmanned aerial vehicle and system WO2019062173A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201880010924.6A CN110268704B (en) 2017-09-29 2018-05-28 Video processing method, device, unmanned aerial vehicle and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2017010438 2017-09-29
CNPCT/CN2017/10438.9 2017-09-29

Publications (1)

Publication Number Publication Date
WO2019062173A1 true WO2019062173A1 (en) 2019-04-04

Family

ID=65900521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/088723 WO2019062173A1 (en) 2017-09-29 2018-05-28 Video processing method and device, unmanned aerial vehicle and system

Country Status (1)

Country Link
WO (1) WO2019062173A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113093814A (en) * 2021-04-07 2021-07-09 浙江大华技术股份有限公司 Method and device for controlling movement of holder

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110164108A1 (en) * 2009-12-30 2011-07-07 Fivefocal Llc System With Selective Narrow FOV and 360 Degree FOV, And Associated Methods
CN106464811A (en) * 2015-03-10 2017-02-22 深圳市大疆创新科技有限公司 System and method for adaptive panoramic image generation
CN106998451A (en) * 2017-04-21 2017-08-01 湖北天专科技有限公司 The area condition panorama guide system and its method monitored based on unmanned vehicle
CN107085436A (en) * 2017-06-14 2017-08-22 亨利智创(北京)科技有限公司 A kind of honeycomb rescue type unmanned plane cloud computing platform
CN107123090A (en) * 2017-04-25 2017-09-01 无锡中科智能农业发展有限责任公司 It is a kind of that farmland panorama system and method are automatically synthesized based on image mosaic technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110164108A1 (en) * 2009-12-30 2011-07-07 Fivefocal Llc System With Selective Narrow FOV and 360 Degree FOV, And Associated Methods
CN106464811A (en) * 2015-03-10 2017-02-22 深圳市大疆创新科技有限公司 System and method for adaptive panoramic image generation
CN106998451A (en) * 2017-04-21 2017-08-01 湖北天专科技有限公司 The area condition panorama guide system and its method monitored based on unmanned vehicle
CN107123090A (en) * 2017-04-25 2017-09-01 无锡中科智能农业发展有限责任公司 It is a kind of that farmland panorama system and method are automatically synthesized based on image mosaic technology
CN107085436A (en) * 2017-06-14 2017-08-22 亨利智创(北京)科技有限公司 A kind of honeycomb rescue type unmanned plane cloud computing platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113093814A (en) * 2021-04-07 2021-07-09 浙江大华技术股份有限公司 Method and device for controlling movement of holder

Similar Documents

Publication Publication Date Title
CN110268704B (en) Video processing method, device, unmanned aerial vehicle and system
US11649052B2 (en) System and method for providing autonomous photography and videography
WO2019127137A1 (en) Method for switching operating mode of gimbal, and controller and image stability augmentation device
WO2020014909A1 (en) Photographing method and device and unmanned aerial vehicle
WO2018072657A1 (en) Image processing method, image processing device, multi-camera photographing device, and aerial vehicle
WO2019227441A1 (en) Video control method and device of movable platform
US11722647B2 (en) Unmanned aerial vehicle imaging control method, unmanned aerial vehicle imaging method, control terminal, unmanned aerial vehicle control device, and unmanned aerial vehicle
WO2017075964A1 (en) Unmanned aerial vehicle photographing control method, unmanned aerial vehicle photographing method, mobile terminal and unmanned aerial vehicle
WO2015180133A1 (en) Method and system for generating heading of unmanned aerial vehicle
WO2019104641A1 (en) Unmanned aerial vehicle, control method therefor and recording medium
WO2019227289A1 (en) Time-lapse photography control method and device
WO2020019106A1 (en) Gimbal and unmanned aerial vehicle control method, gimbal, and unmanned aerial vehicle
WO2019227333A1 (en) Group photograph photographing method and apparatus
WO2020172800A1 (en) Patrol control method for movable platform, and movable platform
WO2022141956A1 (en) Flight control method, video editing method, device, unmanned aerial vehicle, and storage medium
WO2021031159A1 (en) Match photographing method, electronic device, unmanned aerial vehicle and storage medium
WO2020014953A1 (en) Image processing method and device
WO2021217371A1 (en) Control method and apparatus for movable platform
WO2017181930A1 (en) Method and device for displaying flight direction, and unmanned aerial vehicle
US20230359204A1 (en) Flight control method, video editing method, device, uav and storage medium
WO2019062173A1 (en) Video processing method and device, unmanned aerial vehicle and system
WO2018227345A1 (en) Control method and unmanned aerial vehicle
CN108419052A (en) A kind of more unmanned plane method for panoramic imaging
WO2021000225A1 (en) Method and apparatus for controlling movable platform, and device and storage medium
WO2021212501A1 (en) Trajectory generation method, remote control terminal, mobile platform, system, and computer-readable storage medium

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: 18860388

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: 18860388

Country of ref document: EP

Kind code of ref document: A1