WO2022040868A1 - Panoramic photography method, electronic device, and storage medium - Google Patents

Panoramic photography method, electronic device, and storage medium Download PDF

Info

Publication number
WO2022040868A1
WO2022040868A1 PCT/CN2020/110835 CN2020110835W WO2022040868A1 WO 2022040868 A1 WO2022040868 A1 WO 2022040868A1 CN 2020110835 W CN2020110835 W CN 2020110835W WO 2022040868 A1 WO2022040868 A1 WO 2022040868A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
sky
eye
spherical
images
Prior art date
Application number
PCT/CN2020/110835
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 CN202080014965.XA priority Critical patent/CN113454980A/en
Priority to PCT/CN2020/110835 priority patent/WO2022040868A1/en
Publication of WO2022040868A1 publication Critical patent/WO2022040868A1/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
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64DEQUIPMENT FOR FITTING IN OR TO AIRCRAFT; FLIGHT SUITS; PARACHUTES; ARRANGEMENTS OR MOUNTING OF POWER PLANTS OR PROPULSION TRANSMISSIONS IN AIRCRAFT
    • B64D47/00Equipment not otherwise provided for
    • B64D47/08Arrangements of cameras
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft
    • G05D1/106Change initiated in response to external conditions, e.g. avoidance of elevated terrain or of no-fly zones
    • G06T3/047
    • 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
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • 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
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2624Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects for obtaining an image which is composed of whole input images, e.g. splitscreen

Definitions

  • the present disclosure relates to the field of unmanned aerial vehicles, and more particularly, to a panoramic shooting method, electronic device and storage medium.
  • panoramic images With the development of society, in order to meet people's needs for the diversity of image expressions, panoramic images emerge as the times require. At present, panoramic images are widely used in people's lives.
  • image processing software such as PS (Photoshop, image processing software) in the computer.
  • PS Photoshop, image processing software
  • the post-processing of the images is difficult, the processing speed is slow, and the panoramic Image generation is inefficient.
  • the purpose of the present disclosure is to provide a panorama shooting method, which can automatically and quickly generate an eye-of-the-sky image, saves the process of other software processing in the later stage, is simple in operation, can reduce the difficulty of operation, and improve the user's interest in use.
  • a panorama shooting method comprising: acquiring a shooting instruction; adjusting the posture of a movable platform based on the shooting instruction, and shooting multiple images; performing coordinate transformation according to the multiple images to generate a sky image
  • the eye image, the eye image of the sky is an image obtained by coordinate transformation with the sky area in the image as the rotation center.
  • an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to Execute a panoramic shooting method, the panoramic shooting method includes: acquiring a shooting instruction; adjusting the posture of the movable platform based on the shooting instruction, and shooting multiple images; performing coordinate transformation according to the multiple images to generate an eye of the sky image, the The eye of the sky image is an image obtained by coordinate transformation with the sky area in the image as the center of rotation.
  • a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the panorama described in the first aspect of the embodiment of the present disclosure is realized Shooting method.
  • FIG. 1 is a schematic diagram of a system architecture provided according to an exemplary embodiment of the present disclosure
  • FIG. 2 is a flowchart of a panorama shooting method according to an exemplary embodiment of the present disclosure
  • FIG. 3 is a panoramic image of a banner according to an exemplary embodiment of the present disclosure
  • FIG. 4 is a spherical panoramic image according to an exemplary embodiment of the present disclosure.
  • Fig. 5 is a kind of eye-of-the-sky image shown according to an exemplary embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a spherical coordinate system according to an exemplary embodiment of the present disclosure
  • FIG. 7A is a schematic diagram of a coordinate transformation according to an exemplary embodiment of the present disclosure.
  • FIG. 7B is a schematic diagram of another coordinate transformation shown according to an exemplary embodiment of the present disclosure.
  • FIG. 7C is a schematic diagram of another coordinate transformation shown according to an exemplary embodiment of the present disclosure.
  • FIG. 8 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • FIG. 9 is another eye image of the sky shown according to an exemplary embodiment of the present disclosure.
  • FIG. 10 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • FIG. 11 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • FIG. 12 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • FIG. 13 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • FIG. 14 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • FIG. 15 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • FIG. 1 is a schematic diagram of a system architecture provided according to an exemplary embodiment of the present disclosure.
  • the system architecture 100 may include a user terminal 101 , a network 102 and a mobile platform 103 .
  • the network 102 may provide the medium of the communication link between the user terminal 101 and the removable platform 103.
  • the network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
  • a user may use the user terminal 101 to interact with the mobile platform 103 through the network 102 to receive or send messages and the like.
  • the user terminal 101 may be various electronic devices having a display screen and supporting the ability to connect to the network 102, including but not limited to remote controls, smart phones, tablet computers, laptop computers, desktop computers, wearable devices, virtual Reality devices, augmented reality devices, gamepads, smart homes, and more.
  • the movable platform 101 can be, for example, a drone, the user can send a shooting instruction to the drone through the user terminal 101, the drone can receive the shooting instruction sent by the user terminal 101, and the drone can adjust the drone based on the shooting instruction.
  • posture, and shoot multiple images the drone can store the multiple captured images in the memory of the drone, or send the multiple captured images to the user terminal 101, and the drone can record the multiple captured images.
  • the image is processed to generate the eye of the sky image, the drone can send the generated eye of the sky image to the user terminal 101, and the user terminal 101 can also process multiple images captured by the drone to generate the eye of the sky image.
  • FIG. 1 the numbers of user terminals, networks and movable platforms in FIG. 1 are only illustrative, and there may be any number of user terminals, networks and movable platforms according to actual needs.
  • FIG. 2 is a flowchart of a panorama shooting method according to an exemplary embodiment of the present disclosure.
  • the panorama shooting method provided by the embodiment of the present disclosure may be executed by any electronic device with computing processing capability, for example, may be executed by the movable platform shown in FIG. 1 .
  • the panorama shooting method provided by the embodiment of the present disclosure may include steps S21-S24.
  • step S21 a shooting instruction is acquired.
  • the movable platform can receive the shooting instruction sent by the user through the terminal device.
  • the photographing instruction may be, for example, an instruction to photograph for generating an image of the eye of the sky.
  • the user can select the eye-to-sky mode on the terminal device, and the terminal device can send a shooting instruction to the movable platform according to the eye-to-sky mode selected by the user.
  • the shooting instruction may include one or more of shooting position information, shooting object information, shooting parameter information and the number of shooting images.
  • the shooting location information can be, for example, coordinates, altitude, longitude and latitude, etc.
  • the shooting object information can include, for example, objects the user wants to shoot, such as buildings, rivers, mountains, bridges, etc.
  • the shooting parameter information can include, for example, sensitivity, aperture, focal length, etc.
  • the movable platform may be, for example, an unmanned aerial vehicle, a crossing aircraft, an unmanned vehicle, an unmanned boat, etc.
  • an unmanned aerial vehicle as an example, but the movable platform of the present disclosure is not limited thereto.
  • step S22 the posture of the movable platform is adjusted based on the photographing instruction, and a plurality of images are photographed.
  • the device parameters of the movable platform can also be adjusted based on the shooting instruction, and the device parameters include one of the height of the movable platform of the device, the orientation of the camera, or the shooting parameters (such as aperture, shutter, ISO, etc.) of the camera on the movable platform or more.
  • the drone can adjust the device attitude, height, camera orientation, yaw angle of the drone, roll angle of the drone,
  • the shooting parameters of the camera can be adjusted according to the shooting parameter information in the shooting instruction, and multiple images can be shot according to the number of shooting images in the shooting instruction.
  • the drone adjusts any one or more of the attitude, orientation, roll angle, yaw angle, and pitch angle of the gimbal according to the shooting instructions to shoot perspective images of different azimuths or heights.
  • a camera can be mounted on the gimbal.
  • the method of the present application can use the panorama in the horizontal direction and 180/360 in the vertical direction to generate a wide-angle image of the eye of the sky .
  • the maximum rotation angle of the drone/gimbal can be adaptively planned to realize the shooting of panoramic images.
  • the camera lens can achieve pitch: -90° to +30° rotation, yaw: -75° to +75° rotation, then the camera can shoot a horizontal range of 120° and a vertical range of 120°. 150° panoramic image.
  • the UAV and the gimbal use a unified yaw-pitch-roll coordinate system.
  • the drone can also automatically adjust the shooting parameters according to the weather, light intensity, etc. when shooting.
  • the drone can adjust the shooting mode according to the light intensity. For example, when the light intensity is high during the day, the drone can use the day mode to shoot, and when the light intensity is low at night, the drone can use the night scene mode to shoot.
  • the drone can rotate and shoot the subject in a clockwise or counterclockwise direction according to the adjusted device attitude, height, and camera orientation, and obtain multiple images.
  • the angle of rotation shooting may be, for example, 360°, or may be greater than 360°.
  • some or all of the images may have overlapping areas or adjacent image content.
  • the multiple captured images can be used to generate a sky eye image
  • the sky eye image is an image obtained by performing coordinate transformation on the sky area in the image as the rotation center.
  • Fig. 3 is a panorama image of a banner according to an exemplary embodiment of the present disclosure.
  • FIG. 4 is a spherical panoramic image according to an exemplary embodiment of the present disclosure.
  • FIG. 5 is an image of an eye in the sky according to an exemplary embodiment of the present disclosure.
  • the upper part of the banner panorama image may be the sky area 301
  • the middle may be the photographed scene 302
  • the photographed scene 302 may include buildings, plants, etc.
  • the lower part may be the ground area 303 .
  • the ground area 303 is located in the center of the screen
  • the photographed scene 302 is located near the center of the screen
  • the sky area 301 is located around the screen.
  • the shooting scene occupies a small area, and the sky area 301 needs to undergo complex sky-filling processing.
  • the sky area 301 is located in the center of the picture, and the shooting scene 302 outside the sky is located around the picture.
  • the center of the picture includes but is not limited to the exact center of the picture. Relative to the shooting scene, the sky area may be in the center of the picture.
  • the shooting scene occupies a larger area, and the display is clearer, which is beneficial to the user's viewing and can improve the user experience;
  • the middle area of the eye of the sky image is the sky area 301, which does not need to undergo complex sky patching processing. easy to use.
  • the image of the eye of the sky may be directly generated by a drone, or may be generated by a terminal device using multiple images captured by the drone.
  • the panorama shooting method further includes: sending multiple images to the terminal device, where the multiple images are used for the terminal device to generate an image of the eye of the sky.
  • the drone can send multiple images taken to the terminal device, and the terminal device can automatically process the multiple images.
  • the processing process can be the same as that of the drone, and the terminal device can also process multiple images according to the user's operation. Processed to generate the eye of the sky image.
  • step S23 coordinate transformation is performed according to a plurality of images to generate an image of the eye of the sky.
  • a drone can process multiple images to generate an eye-to-sky image.
  • the plurality of images may be mapped to the spherical coordinate system based on the spherical coordinate system corresponding to the movable platform to generate a spherical panorama; according to the conversion relationship between the spherical coordinate system and the polar coordinate system, Map the spherical panorama to the polar coordinate system to generate the eye of the sky image.
  • an image captured by a drone can be mapped into a spherical coordinate system to generate a spherical panoramic image, and according to the coordinate transformation, the spherical panoramic image can be mapped into a polar coordinate system to generate an image of the eye of the sky.
  • the multiple captured images may be processed through coordinate transformation to generate the eye image of the sky.
  • coordinate transformation can be performed on the multiple images, and the images are mapped to the spherical coordinate system.
  • One vertex of the spherical coordinate system is the sky area.
  • the center of , the area within a certain radius is the sky area, and the rotation change is performed with the vertex as the center, and the image of the eye of the sky can be obtained.
  • the radius of the sky area can be set as required. For example, if the user wants the sky area in the middle of the eye of the sky image to be larger, the radius of the sky area can be set larger.
  • FIG. 6 is a schematic diagram of a spherical coordinate system according to an exemplary embodiment of the present disclosure.
  • Fig. 7A is a schematic diagram showing a coordinate transformation according to an exemplary embodiment of the present disclosure.
  • multiple images captured by the drone can be pasted into the spherical coordinate system as shown in Figure 6.
  • the coordinates of A in the spherical coordinate system can be determined according to the longitude and latitude of the image A when the drone captured the image, and the coordinates of A in the spherical coordinate system can be determined according to the Coordinate range or area in spherical coordinate system, put A in the corresponding position.
  • the coordinates of the projection center point can be set in a spherical coordinate system, and a straight line can be obtained by connecting the projection center point and a point A on the spherical surface.
  • Establish a projection plane which can be tangent to the spherical coordinate system at the south pole or at other points.
  • the projected coordinates can be obtained.
  • the eye-of-the-sky image of the multiple images captured can be obtained.
  • the coordinate transformation may be polar coordinate transformation.
  • the projection center point may be set at the south pole, for example, or may be set at other points.
  • the spherical coordinate system may be a spherical coordinate system centered on the drone itself.
  • the camera on the drone takes each picture, it has the corresponding attitude of the drone (such as GPS position and orientation, etc.) and the attitude of the gimbal. , and map each image to a spherical coordinate system for fusion.
  • the drone hovers at the initial position 1 to take a picture 1 straight ahead, rotates to the left by angle 1 to take a photo 2, rotates to the right based on position 1 and takes a photo 3, and moves vertically upward based on position 1
  • Rotate angle 1 to take a picture 4 rotate angle 1 vertically downward based on position 1 to take a picture 5, and rotate 180 degrees horizontally to take a picture 6 based on position 1, where angle 1 includes but is not limited to 90 degrees, can be Shoot 360-degree panoramic images in a similar way to horizontal rotation and vertical rotation.
  • map photo 1 to the front direction of the spherical surface
  • map photo 2 to the left side of the spherical surface
  • map photo 3 to the right side of the spherical surface
  • map photo 4 to the spherical surface.
  • map photo 5 to the bottom side of the spherical surface
  • map photo 6 to the back of the spherical surface.
  • the picture on the left is a photo taken by the drone at an over-looking angle
  • the picture on the right is a photo that is about to be taken at a downward viewing angle to the bottom side of the spherical coordinate system.
  • the spherical coordinate system corresponding to the movable platform can be used as a reference to map multiple images to the spherical coordinate system to generate a spherical panorama; the spherical panorama can be expanded with a preset position on the spherical coordinate system as the center , to get the banner image; according to the conversion relationship between the plane coordinate system where the banner image is located and the polar coordinate system, map the spherical panorama to the polar coordinate system to generate the eye image of the sky.
  • the spherical panoramic image can be expanded to generate a banner panoramic image, and then the banner panoramic image can be mapped into polar coordinates according to the coordinate transformation to generate the eye of the sky image.
  • FIG. 7C is a schematic diagram showing another coordinate transformation according to an exemplary embodiment of the present disclosure.
  • a spherical panorama can be expanded into a banner image centered on the direction the drone initially shot straight ahead.
  • the picture on the left in FIG. 7C is a schematic diagram of the expanded spherical panorama image.
  • the banner panorama image shown in FIG. 3 can be simplified as shown on the left side of FIG. 7C .
  • the banner panorama image has a length of b and a width of 2a.
  • the image content is not shown in Figure 7C, only the image shape is shown.
  • the upper part of the image is the sky area 301 shown in FIG. 3
  • the lower part of the picture is the ground area 303 shown in FIG. 3
  • the center area is the shooting scene 302 shown in FIG. 3 .
  • image processing can also be performed on the edges of adjacent photos to eliminate the problem of screen jumping.
  • the points of the sky area of the banner panoramic image in the left rectangular coordinate system in FIG. 7C can be mapped to the center area of the new right coordinate system, and the points of the ground area of the banner panoramic image in the left rectangular coordinate system can be mapped to the right.
  • map the point whose ordinate is 2a and whose abscissa is between 0 and b in the left rectangular coordinate system in FIG. 7C (that is, y 2a, and 0 ⁇ x ⁇ b) to the origin of the new right coordinate system
  • Map the point where the ordinate is 0 and the abscissa is between 0 and b in the left rectangular coordinate system in Figure 7C (that is, y 0, and 0 ⁇ x ⁇ b) to the new right coordinate system with R as the radius
  • map the point where the ordinate is a and the abscissa is between 0 and b in the left rectangular coordinate system in Figure 7C (that is, y a, and 0 ⁇ x ⁇ b) to the new right coordinate system
  • point M in the left Cartesian coordinate system can be mapped to M' in the new coordinate system on the right.
  • mapping from the spherical coordinate system to the polar coordinate system that is, directly map the generated spherical panorama to the polar coordinate system to generate the eye image of the sky.
  • the panorama shooting method further includes: storing or sending the image of the eye of the sky to the terminal device.
  • the drone can store the generated image of the eye of the sky in the memory of the drone, or send the image of the eye of the sky to the user terminal, and the user terminal can show the generated image of the eye of the sky to the user, and the user can The Eye of the Sky image is edited and processed.
  • the panorama shooting method further includes: after receiving a playback instruction of the target object, playing a plurality of images to generate an image of the eye of the sky.
  • the target object can be a user, and the user can send a playback instruction to the drone through the terminal device.
  • the drone can include a display device. After receiving the user's playback instruction, the display device of the drone can play multiple images to generate the sky. The process of creating an eye image, you can also play multiple images on the terminal device to generate the eye of the sky.
  • the generation process of the eye of the sky image can be dynamically displayed, which can enhance user interest and improve user experience.
  • the panorama shooting method of the embodiment of the present disclosure adjusts the device parameters of the movable platform based on the shooting instructions, shoots multiple images, can automatically and quickly generate the image of the eye of the sky, does not require other software processing in the later stage, is simple in operation, can reduce the difficulty of operation, and improve the User interest.
  • FIG. 8 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • the panoramic photographing method shown in FIG. 8 may further include steps S81 - S83 .
  • step S81 the sky area in the eye of the sky image is identified.
  • regions of the sky in the Eye of the Sky image are identified based on grayscale values and/or gradient values of the Eye of the Sky image.
  • the sky region in the eye of the sky image can be identified based on the gray value of the eye of the sky image; the sky region in the eye of the sky image can be identified based on the gradient value of the eye of the sky image; it can also be based on the eye of the sky image
  • the grayscale and gradient values of identify the sky regions in the Eye of the Sky image.
  • an area in the eye of the sky image with a grayscale value at a preset threshold may be identified as a sky area, and the preset threshold may be, for example, a grayscale value of 204.
  • an area with a small gradient in the image of the eye of the sky can be identified as a sky area, or, a flat area in the image of the eye of the sky can be identified as a sky area, and the gray value in the image of the sky can be identified as a preset threshold, Regions with small and flat gradients are identified as sky regions.
  • step S82 the sky area is replaced with a preset image, wherein the preset image includes one or more of two-dimensional code, target object information, and spherical panoramic image.
  • the spherical panorama image is an image obtained by performing coordinate transformation on a photographed scene other than the sky in the image as a rotation center.
  • the entire sky area can be replaced with a preset image, or a part of the sky area can be replaced with a preset image according to a preset ratio, and the preset ratio can be set according to user needs.
  • the preset image can be, for example, a two-dimensional code or a user-defined logo (logo), and the sky area is replaced with the user's two-dimensional code, which is convenient for social sharing. Other users can scan the two-dimensional code to obtain user information or other information.
  • the preset image may be, for example, target object information
  • the target object information may be, for example, user photos, landscape photos, airplane photos, sunset photos, and the like.
  • FIG. 9 is another image of the eye of the sky according to an exemplary embodiment of the present disclosure.
  • the preset image may be, for example, a spherical panoramic image.
  • a preset proportion of the sky area can be replaced with a spherical panoramic image, and the unreplaced sky area can be image-fused with an adjacent edge area of the spherical panoramic image.
  • the sky area 301 in the eye of the sky image shown in FIG. 5 can be replaced with the spherical panoramic image shown in FIG. Image fusion.
  • the sky area in the eye of the sky image and the sky area in the spherical panorama image can be connected to achieve a better effect of displaying the color of the real sky, without the need for complex sky patching operations, which reduces the difficulty of operation.
  • step S83 the coordinates corresponding to the sky area are processed through coordinate transformation to enlarge or reduce the sky area.
  • the coordinates corresponding to the sky area in the eye of the sky image can be obtained, and the coordinates corresponding to the sky area can be processed.
  • the coordinates corresponding to the sky area can be multiplied by a coefficient matrix, and the sky area in the eye of the sky image can be enlarged or reduced.
  • the ratio of enlarging or reducing the sky area can be set according to the user's needs.
  • the coordinates of the projection center point can be changed, or the coordinate points can be offset to realize the zoom-in or zoom-out function of the sky area in the Eye of the Sky image.
  • the embodiments of the present disclosure include, but are not limited to, enlarging or reducing the sky area in the Eye of the Sky image, and may also enlarge or reduce the shooting scene or other areas in the Eye of the Sky image.
  • the panorama shooting method provided by the embodiments of the present disclosure can replace the sky area in the eye of the sky image with a preset image, customize the image according to the user's personalized needs, facilitate social media sharing, increase user interest, and improve user experience.
  • FIG. 10 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • the panoramic photographing method shown in FIG. 10 may further include S101 - S104 .
  • step S101 a splicing process is performed on a plurality of images to obtain a spherical panoramic image.
  • a spherical panorama image can be obtained by splicing multiple images captured by a drone according to an image splicing algorithm, and the image splicing algorithm can be, for example, an alpha fusion algorithm.
  • step S102 when the edges of adjacent pictures in the spherical panoramic image are not aligned, the shooting position corresponding to the unaligned image area is acquired.
  • the coordinates of the unaligned image area in the spherical coordinate system can be directly determined, and the geographic location and direction of the drone can be directly determined according to the coordinates. , attitude, etc.
  • the coordinates corresponding to the unaligned areas in the banner panoramic image can be mapped into the spherical coordinate system to obtain the coordinates in the spherical coordinate system corresponding to the unaligned areas.
  • the coordinates can directly determine the geographic location, direction, attitude, etc. of the drone when shooting.
  • the edges of adjacent stitched images can be detected to determine whether the edges are aligned, and when the edges of the adjacent stitched images are not aligned, the coordinates corresponding to the unaligned image areas are obtained.
  • the aircraft may shake, drift, etc.
  • the edges of the image taken at this time may be misaligned, and there may be gaps left blank. position to perform a supplementary shooting operation.
  • step S103 a supplementary shooting position of the movable platform is determined based on the coordinates corresponding to the unaligned image areas.
  • coordinate mapping can be performed on the coordinates corresponding to the unaligned image area to obtain the geographic location of the drone when shooting the area, and the geographic location can be used as a supplementary shooting location of the drone.
  • step S104 based on the supplementary shooting position, a supplementary shot operation is performed to obtain a supplementary shot image.
  • the drone can perform a supplementary shooting operation according to the movement to the supplementary shooting position, and use the image captured at the supplementary shooting position as the supplementary shooting image.
  • the original image corresponding to the supplementary shot image in the original multiple images can be replaced with the supplementary shot image, and the replaced image set is stitched to obtain a stitched image with a smooth transition.
  • FIG. 11 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • the panoramic photographing method shown in FIG. 11 may further include S111 - S114 .
  • step S111 a splicing process is performed on a plurality of images to obtain a spherical panoramic image.
  • multiple images captured by the drone can be stitched according to an image stitching algorithm to obtain a banner panoramic image.
  • the image stitching algorithm can be, for example, an alpha fusion algorithm.
  • step S112 when the target object in the spherical panoramic image has a distorted area, the coordinates corresponding to the distorted area are obtained.
  • whether the target object has a distorted area can be determined according to the spherical panoramic image, or whether the target object has a distorted area can be determined according to a banner panoramic image generated by expanding the spherical panoramic image.
  • the coordinates of the distorted area in the spherical coordinate system can be directly determined, and according to the coordinates, the geographic location, direction, attitude, etc.
  • the coordinates corresponding to the distorted area in the banner panoramic image can be mapped to the spherical coordinate system, and the coordinates in the spherical coordinate system corresponding to the distorted area can be obtained, which can be directly determined according to the coordinates
  • the geographic location, direction, and attitude of the drone when shooting may be, for example, a building, a mountain, a river, a bridge, or the like.
  • a building in a panoramic image of a banner can be detected to determine whether the building has a distorted area.
  • the coordinates corresponding to the distorted area can be obtained, and the coordinates corresponding to the building containing the distorted area can also be obtained. .
  • the aircraft may shake, drift, etc.
  • the target object in the image may be distorted.
  • the entire target object is subjected to a supplementary shooting operation.
  • step S113 based on the coordinates corresponding to the distorted area, a supplementary shooting position of the movable platform is determined.
  • the coordinates corresponding to the distorted area can be mapped to obtain the geographic location of the drone when shooting the area, and the geographic location can be used as the supplementary shooting location of the drone.
  • step S114 the number of supplementary images is determined based on the FOV of the target object and the movable platform.
  • the number of supplementary images can be determined according to the size of the FOV (field of view) of the movable platform by the target object with distortion. Multiple catch-up images.
  • step S115 based on the supplementary shooting position, a supplementary shot operation is performed to obtain a supplementary shot image.
  • the drone can perform a supplementary shooting operation according to the movement to the supplementary shooting position, and use the image captured at the supplementary shooting position as the supplementary shooting image.
  • the original shot image containing the distorted area or the image containing the target object can be replaced with the supplementary shot image, and the replaced image set can be stitched to obtain a stitched image with a smooth transition.
  • FIG. 12 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • the panorama photographing method shown in FIG. 12 may be performed, for example, before step S101 shown in FIG. 10 or step S111 shown in FIG. 11 .
  • the panorama shooting method shown in FIG. 12 may include S121-S123.
  • step S121 when the photographing mode of the movable platform is the night scene mode, the brightness of a plurality of images is acquired.
  • the drone can use the night scene mode to shoot.
  • the drone uses the night scene mode to shoot, before stitching the multiple images, you can verify whether the brightness of the multiple images is roughly equal.
  • step S122 it is determined whether the brightness of the plurality of images is within a preset range.
  • the multiple images captured by the drone can determine whether the brightness of the multiple images captured by the drone is within the preset range.
  • the multiple images can be stitched to generate a banner panorama image or a sky image. eye image; when the brightness of the multiple images is not within the preset range, step S123 may be performed.
  • the preset range can be set as required.
  • step S123 when the brightness of the multiple images is not within the preset range, the brightness of the multiple images is adjusted.
  • the drone can automatically adjust the brightness of the multiple images, so that the brightness of the adjusted multiple images is within the preset range, which is convenient for subsequent stitching processing, and can achieve better visual effects.
  • Nice panoramic image
  • FIG. 13 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
  • the panorama shooting method shown in FIG. 13 may include S131-S136.
  • step S131 a photographing instruction is received.
  • drones can receive shooting instructions sent by users.
  • step S132 a plurality of images are captured.
  • the drone can take multiple images according to the shooting instructions.
  • step S133 a panoramic image of the banner is generated based on the alpha fusion algorithm.
  • multiple images can be stitched to generate a panoramic image of the banner.
  • step S134 polar coordinate transformation is performed on the panoramic image of the banner to generate an image of the eye of the sky.
  • the polar coordinates of the banner panorama image can be changed to generate the eye of the sky image; the banner panorama image or the eye of the sky image can also be processed according to the preset mode selected by the user to generate the image of the preset mode.
  • the image in the preset mode may be, for example, an image in an asteroid mode, or may be a panoramic image in other modes.
  • the user's QR code, custom logo or other images can also be embedded into the eye of the sky image according to the user's needs.
  • step S135 the animation of the generation process of the eye of the sky image is played.
  • the animation of the generation process of the eye of the sky image can be shown to the user, so that the user can watch the generation process of the eye of the sky image more intuitively.
  • step S136 the sky eye image is edited, and the edited sky eye image is released.
  • the image of the eye of the sky can be edited, and the edited image of the eye of the sky can be sent to the terminal device for publication.
  • aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "Module” or "System”.
  • FIG. 14 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • the electronic device 1400 may include: a processor 1410 and a memory 1420, and the memory 1420 may be used to store executable instructions of the processor 1410; wherein the processor 1410 may be configured to execute the executable instructions by executing the instructions
  • the following process obtaining a shooting instruction; adjusting the posture of the movable platform based on the shooting instruction, shooting multiple images, and performing coordinate transformation according to the multiple images to generate an eye-to-sky image, and the image of the eye to the sky is based on the image in the image.
  • the sky area is an image obtained by coordinate transformation of the center of rotation.
  • the performing coordinate transformation according to the multiple images to generate the eye image of the sky includes: using the spherical coordinate system corresponding to the movable platform as a reference, converting the multiple images Mapping to the spherical coordinate system to generate a spherical panorama; according to the conversion relationship between the spherical coordinate system and the polar coordinate system, mapping the spherical panorama to the polar coordinate system to generate the eye image of the sky.
  • the performing coordinate transformation according to the multiple images to generate the eye image of the sky includes: using the spherical coordinate system corresponding to the movable platform as a reference, converting the multiple images Map to the spherical coordinate system to generate a spherical panorama; take the preset position on the spherical coordinate system as the center, expand the spherical panorama to obtain a banner image; according to the plane coordinate system and polar coordinates where the banner image is located The transformation relationship of the system is used to map the spherical panorama to the polar coordinate system to generate the eye image of the sky.
  • the device is further configured to: after receiving a play instruction of the target object, play the plurality of images to generate the image in the eye of the sky mode.
  • the device is further configured to: identify a sky area in the eye of the sky image; replace the sky area with a preset image, wherein the preset image includes two One or more of the dimensional code, target object information, and spherical panoramic image, wherein the spherical panoramic image is an image obtained by coordinate transformation with the shooting scene other than the sky in the image as the rotation center.
  • identifying the sky region in the eye-to-sky image includes: identifying, based on grayscale values and/or gradient values of the eye-to-sky image, identifying the sky region in the eye-to-sky image sky area.
  • the preset image is a spherical panorama image
  • the replacing the sky area with a preset image includes: replacing a preset scale area in the sky area with the A spherical panorama image, and image fusion is performed on the unreplaced sky region and the edge region adjacent to the spherical panorama image.
  • the device after generating the spherical panoramic image, is further configured to: when the edges of the spherical panoramic image are not aligned, obtain coordinates corresponding to the unaligned image areas; The coordinates corresponding to the unaligned image areas are used to determine a supplementary shooting position of the movable platform; based on the supplementary shooting position, a supplementary shooting operation is performed to obtain a supplementary shooting image.
  • the device after generating the spherical panoramic image, is further configured to: when the target object in the spherical panoramic image has a distorted area, obtain the coordinates corresponding to the distorted area; The coordinates corresponding to the distorted area are used to determine a supplementary shooting position of the movable platform; based on the supplementary shooting position, a supplementary shooting operation is performed to obtain a supplementary shooting image.
  • the device before performing the supplementary shot operation, is further configured to: determine the number of supplementary shots based on the target object and the field of view FOV of the movable platform.
  • the device before performing the stitching process on the multiple images, is further configured to: when the photographing mode of the movable platform is a night scene mode, acquire the multiple images judging whether the brightness of the multiple images is within the preset range; when the brightness of the multiple images is not within the preset range, adjust the brightness of the multiple images.
  • a program product 1500 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read only memory (CD-ROM) and include program codes, and can be stored in a terminal device, For example running on a personal computer.
  • a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
  • LAN local area network
  • WAN wide area network
  • an external computing device eg, using an Internet service provider business via an Internet connection
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present disclosure.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

Abstract

The present disclosure relates to a panoramic photography method, an electronic device, and a computer-readable storage medium. The panoramic photography method comprises: receiving a photographic instruction; and on the basis of the photographic instruction, adjusting device parameters of a movable platform, and photographing multiple images, wherein the device parameters comprise one or more of a device attitude, a height, a camera orientation or a photographic parameter, the multiple images are used for generating an eye-in-the-sky image, and the eye-in-the-sky image is an image obtained by performing coordinate transformation with a sky area in the image as a rotation center.

Description

全景拍摄方法、电子设备及存储介质Panoramic shooting method, electronic device and storage medium 技术领域technical field
本公开涉及无人机领域,并且更为具体地,涉及一种全景拍摄方法、电子设备及存储介质。The present disclosure relates to the field of unmanned aerial vehicles, and more particularly, to a panoramic shooting method, electronic device and storage medium.
背景技术Background technique
随着社会的发展,为满足人们对于图像表现形式的多样性的需求,全景图像应运而生,全景图像目前广泛应用于人们的生活中。With the development of society, in order to meet people's needs for the diversity of image expressions, panoramic images emerge as the times require. At present, panoramic images are widely used in people's lives.
相关技术中,首先采集多张图像素材,然后通过计算机中的PS(Photoshop,图像处理软件)等图像处理软件对采集到的图像素材进行处理,对图像的后期处理难度大,处理速度慢,全景图像生成效率低。In the related art, multiple image materials are first collected, and then the collected image materials are processed by image processing software such as PS (Photoshop, image processing software) in the computer. The post-processing of the images is difficult, the processing speed is slow, and the panoramic Image generation is inefficient.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
本公开的目的在于提供一种全景拍摄方法,该方法可以自动、快速生成天空之眼图像,节省了后期其他软件处理的过程,操作简单,可以降低操作难度,提升用户的使用趣味。The purpose of the present disclosure is to provide a panorama shooting method, which can automatically and quickly generate an eye-of-the-sky image, saves the process of other software processing in the later stage, is simple in operation, can reduce the difficulty of operation, and improve the user's interest in use.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的第一方面,提供一种全景拍摄方法,包括:获取拍摄指令;基于所述拍摄指令调整可移动平台的姿态,拍摄多张图像;根据所述多张图像进行坐标转换生成天空之眼图像,所述天空之眼图像是以图像中的天空区域为旋转中心进行坐标变换得到的图像。According to a first aspect of the present disclosure, there is provided a panorama shooting method, comprising: acquiring a shooting instruction; adjusting the posture of a movable platform based on the shooting instruction, and shooting multiple images; performing coordinate transformation according to the multiple images to generate a sky image The eye image, the eye image of the sky is an image obtained by coordinate transformation with the sky area in the image as the rotation center.
根据本公开的第二方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行全景拍摄方法,所述全景拍摄方法包括:获取拍摄指令;基于所述拍摄指令调整可移动平台的姿态,拍摄多张图像;根据所述多张图像进行坐标转换生成天空之眼图像,所述天空之眼图像是以 图像中的天空区域为旋转中心进行坐标变换得到的图像。According to a second aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to Execute a panoramic shooting method, the panoramic shooting method includes: acquiring a shooting instruction; adjusting the posture of the movable platform based on the shooting instruction, and shooting multiple images; performing coordinate transformation according to the multiple images to generate an eye of the sky image, the The eye of the sky image is an image obtained by coordinate transformation with the sky area in the image as the center of rotation.
根据本公开的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如本公开实施例第一方面所述的全景拍摄方法。According to a third aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the panorama described in the first aspect of the embodiment of the present disclosure is realized Shooting method.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present disclosure. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是根据本公开的一个示例性实施例提供的系统架构的示意图;1 is a schematic diagram of a system architecture provided according to an exemplary embodiment of the present disclosure;
图2是根据本公开的一个示例性实施例示出的一种全景拍摄方法的流程图;FIG. 2 is a flowchart of a panorama shooting method according to an exemplary embodiment of the present disclosure;
图3是根据本公开的一个示例性实施例示出的一种横幅全景图像;FIG. 3 is a panoramic image of a banner according to an exemplary embodiment of the present disclosure;
图4是根据本公开的一个示例性实施例示出的一种球形全景图像;FIG. 4 is a spherical panoramic image according to an exemplary embodiment of the present disclosure;
图5是根据本公开的一个示例性实施例示出的一种天空之眼图像;Fig. 5 is a kind of eye-of-the-sky image shown according to an exemplary embodiment of the present disclosure;
图6是根据本公开的一个示例性实施例示出的球形坐标系的示意图;6 is a schematic diagram of a spherical coordinate system according to an exemplary embodiment of the present disclosure;
图7A是根据本公开的一个示例性实施例示出的一种坐标变换的示意图;7A is a schematic diagram of a coordinate transformation according to an exemplary embodiment of the present disclosure;
图7B是根据本公开的一个示例性实施例示出的另一种坐标变换的示意图;7B is a schematic diagram of another coordinate transformation shown according to an exemplary embodiment of the present disclosure;
图7C是根据本公开的一个示例性实施例示出的另一种坐标变换的示意图;7C is a schematic diagram of another coordinate transformation shown according to an exemplary embodiment of the present disclosure;
图8是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图;FIG. 8 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure;
图9是根据本公开的一个示例性实施例示出的另一种天空之眼图像;FIG. 9 is another eye image of the sky shown according to an exemplary embodiment of the present disclosure;
图10是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图;FIG. 10 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure;
图11是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图;FIG. 11 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure;
图12是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图;FIG. 12 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure;
图13是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图;FIG. 13 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure;
图14是根据本公开的一个示例性实施例的电子设备的框图;14 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure;
图15是根据本公开实施例示出的一种计算机可读存储介质的示意图。FIG. 15 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure.
具体实施方式detailed description
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are merely schematic illustrations of the present disclosure, and the same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
下面结合附图对本公开示例实施方式进行详细说明。The exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
图1是根据本公开的一个示例性实施例提供的系统架构的示意图。FIG. 1 is a schematic diagram of a system architecture provided according to an exemplary embodiment of the present disclosure.
如图1所示,系统架构100可以包括用户终端101、网络102和可移动平台103。网络102可以在用户终端101和可移动平台103之间提供通 信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include a user terminal 101 , a network 102 and a mobile platform 103 . The network 102 may provide the medium of the communication link between the user terminal 101 and the removable platform 103. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
用户可以使用用户终端101通过网络102与可移动平台103交互,以接收或发送消息等。其中,用户终端101可以是具有显示屏并且支持连接到网络102能力的各种电子设备,包括但不限于遥控器、智能手机、平板电脑、膝上型便携计算机、台式计算机、可穿戴设备、虚拟现实设备、增强现实设备,游戏手柄,智能家居等等。A user may use the user terminal 101 to interact with the mobile platform 103 through the network 102 to receive or send messages and the like. Among them, the user terminal 101 may be various electronic devices having a display screen and supporting the ability to connect to the network 102, including but not limited to remote controls, smart phones, tablet computers, laptop computers, desktop computers, wearable devices, virtual Reality devices, augmented reality devices, gamepads, smart homes, and more.
可移动平台101例如可以为无人机,用户可以通过用户终端101向无人机发送拍摄指令,无人机可以接收用户终端101发送的拍摄指令,无人机可以基于该拍摄指令调整无人机的姿态,拍摄多张图像,无人机可以将拍摄的多张图像存储在无人机的存储器中,也可以将拍摄的多张图像发送给用户终端101,无人机可以对拍摄的多张图像进行处理,生成天空之眼图像,无人机可以将生成的天空之眼图像发送给用户终端101,用户终端101也可以对无人机拍摄的多张图像进行处理,生成天空之眼图像。The movable platform 101 can be, for example, a drone, the user can send a shooting instruction to the drone through the user terminal 101, the drone can receive the shooting instruction sent by the user terminal 101, and the drone can adjust the drone based on the shooting instruction. posture, and shoot multiple images, the drone can store the multiple captured images in the memory of the drone, or send the multiple captured images to the user terminal 101, and the drone can record the multiple captured images. The image is processed to generate the eye of the sky image, the drone can send the generated eye of the sky image to the user terminal 101, and the user terminal 101 can also process multiple images captured by the drone to generate the eye of the sky image.
应该理解,图1中的用户终端、网络和可移动平台的数目仅仅是示意性的,根据实际需要,可以具有任意数目的用户终端、网络和可移动平台。It should be understood that the numbers of user terminals, networks and movable platforms in FIG. 1 are only illustrative, and there may be any number of user terminals, networks and movable platforms according to actual needs.
图2是根据本公开的一个示例性实施例示出的一种全景拍摄方法的流程图。本公开实施例提供的全景拍摄方法可以由任意具备计算处理能力的电子设备执行,如可以由图1所示的可移动平台执行。如图2所示,本公开实施例提供的全景拍摄方法可以包括步骤S21-S24。FIG. 2 is a flowchart of a panorama shooting method according to an exemplary embodiment of the present disclosure. The panorama shooting method provided by the embodiment of the present disclosure may be executed by any electronic device with computing processing capability, for example, may be executed by the movable platform shown in FIG. 1 . As shown in FIG. 2 , the panorama shooting method provided by the embodiment of the present disclosure may include steps S21-S24.
在步骤S21中,获取拍摄指令。In step S21, a shooting instruction is acquired.
在一些实施例中,可移动平台可以接收用户通过终端设备发送的拍摄指令。In some embodiments, the movable platform can receive the shooting instruction sent by the user through the terminal device.
拍摄指令例如可以为拍摄用于生成天空之眼图像的指令。The photographing instruction may be, for example, an instruction to photograph for generating an image of the eye of the sky.
例如,用户可以在终端设备选择天空之眼模式,终端设备可以根据用户选择的天空之眼模式向可移动平台发送拍摄指令。For example, the user can select the eye-to-sky mode on the terminal device, and the terminal device can send a shooting instruction to the movable platform according to the eye-to-sky mode selected by the user.
拍摄指令可以包括拍摄位置信息、拍摄对象信息、拍摄参数信息及拍摄图像数量中的一种或多种。The shooting instruction may include one or more of shooting position information, shooting object information, shooting parameter information and the number of shooting images.
拍摄位置信息例如可以为坐标、海拔、经纬度等,拍摄对象信息例如 可以包括用户想要拍摄的物体,例如可以为建筑物、河流、山脉、桥梁等,拍摄参数信息例如可以包括感光度、光圈、焦距等。The shooting location information can be, for example, coordinates, altitude, longitude and latitude, etc. The shooting object information can include, for example, objects the user wants to shoot, such as buildings, rivers, mountains, bridges, etc. The shooting parameter information can include, for example, sensitivity, aperture, focal length, etc.
本公开实施例中,可移动平台例如可以为无人机、穿越机、无人车、无人船等等,下面以无人机为例进行说明,但本公开的可移动平台不限于此。In the embodiment of the present disclosure, the movable platform may be, for example, an unmanned aerial vehicle, a crossing aircraft, an unmanned vehicle, an unmanned boat, etc. The following description will be given by taking an unmanned aerial vehicle as an example, but the movable platform of the present disclosure is not limited thereto.
在步骤S22中,基于拍摄指令调整可移动平台的姿态,拍摄多张图像。In step S22, the posture of the movable platform is adjusted based on the photographing instruction, and a plurality of images are photographed.
其中,还可以基于拍摄指令调整可移动平台的设备参数,设备参数包括设备可移动平台的高度、相机朝向或可移动平台上的相机的拍摄参数(例如光圈、快门、ISO等)中的一种或多种。Wherein, the device parameters of the movable platform can also be adjusted based on the shooting instruction, and the device parameters include one of the height of the movable platform of the device, the orientation of the camera, or the shooting parameters (such as aperture, shutter, ISO, etc.) of the camera on the movable platform or more.
例如无人机可以根据拍摄指令中的拍摄位置信息及拍摄对象信息,调整无人机的设备姿态、高度、相机朝向、无人机的偏航角、无人机的横滚角、无人机的俯仰角中的任意一种或多种,可以根据拍摄指令中的拍摄参数信息,调整相机的拍摄参数,可以根据拍摄指令中的拍摄图像数量,拍摄多张图像。或者,无人机根据拍摄指令调整云台的姿态、朝向、横滚角、偏航角、俯仰角中的任意一种或多种,来拍摄不同方位或高度的视角图像。其中,云台上可以搭载相机。当无人机上的相机可以拍摄水平方向360、垂直方向180/360的全景图时,利用本申请的方法可以利用水平方向360、垂直方向180/360的全景图来生成大广角的天空之眼图像。若由于无人机本身结构的限制或者云台的最大转动角度的限制,相机无法实现水平方向360、垂直方向360的全景图拍摄时,可以利用无人机/云台的最大转动角度来实现广角图像的拍摄,或者可以基于用户输入的角度(180全景或360度全景或270全景)来自适应的规划无人机的姿态或者云台姿态的变化,来实现全景图像的拍摄。例如,借助无人机或者云台,相机镜头可以实现俯仰:-90°至+30°的转动,偏航:-75°至+75°的转动,则相机可以拍摄水平范围120°,垂直范围150°的全景图像。For example, the drone can adjust the device attitude, height, camera orientation, yaw angle of the drone, roll angle of the drone, The shooting parameters of the camera can be adjusted according to the shooting parameter information in the shooting instruction, and multiple images can be shot according to the number of shooting images in the shooting instruction. Or, the drone adjusts any one or more of the attitude, orientation, roll angle, yaw angle, and pitch angle of the gimbal according to the shooting instructions to shoot perspective images of different azimuths or heights. Among them, a camera can be mounted on the gimbal. When the camera on the drone can shoot a panorama of 360 in the horizontal direction and 180/360 in the vertical direction, the method of the present application can use the panorama in the horizontal direction and 180/360 in the vertical direction to generate a wide-angle image of the eye of the sky . If due to the limitation of the structure of the drone itself or the limitation of the maximum rotation angle of the gimbal, when the camera cannot achieve panorama shooting of 360 in the horizontal direction and 360 in the vertical direction, you can use the maximum rotation angle of the drone/gimbal to achieve wide-angle For image shooting, or based on the angle input by the user (180-degree panorama, 360-degree panorama, or 270-degree panorama), the attitude of the drone or the change of the gimbal attitude can be adaptively planned to realize the shooting of panoramic images. For example, with the help of a drone or a gimbal, the camera lens can achieve pitch: -90° to +30° rotation, yaw: -75° to +75° rotation, then the camera can shoot a horizontal range of 120° and a vertical range of 120°. 150° panoramic image.
在上述流程中,无人机和云台使用统一的yaw-pitch-roll坐标系。云台和无人机旋转实现相机可以拍摄全景图像时,还可以以相机拍摄画面不会拍摄到飞机机体为准则(需根据不同的航拍装置进行区别,因旋转飞机和云台的目的实为旋转相机):如果只通过旋转云台就可以到达相机拍摄全景且不会拍摄到飞机机体,则不需要旋转飞机,否则需旋转飞机使得拍摄 画面不会被飞机机体遮挡。In the above process, the UAV and the gimbal use a unified yaw-pitch-roll coordinate system. When the pan/tilt and the drone are rotated to realize the camera can take panoramic images, you can also use the camera to not capture the aircraft body as a criterion (it needs to be differentiated according to different aerial photography devices, because the purpose of rotating the plane and the pan/tilt is actually to rotate Camera): If you can reach the camera to shoot the panorama only by rotating the gimbal and will not shoot the aircraft body, you do not need to rotate the aircraft, otherwise you need to rotate the aircraft so that the shooting picture will not be blocked by the aircraft body.
示例性的,无人机也可以根据拍摄时的天气、光照强度等自动地调整拍摄参数。Exemplarily, the drone can also automatically adjust the shooting parameters according to the weather, light intensity, etc. when shooting.
例如,无人机可以根据光照强度调整拍摄模式,例如,在白天光照强度较大时,无人机可以使用白天模式进行拍摄,在晚上光照强度较小时,无人机可以使用夜景模式进行拍摄。For example, the drone can adjust the shooting mode according to the light intensity. For example, when the light intensity is high during the day, the drone can use the day mode to shoot, and when the light intensity is low at night, the drone can use the night scene mode to shoot.
例如,无人机可以根据调整好的设备姿态、高度、相机朝向,按照顺时针或逆时针的方向对拍摄对象进行旋转拍摄,获得拍摄的多张图像。其中,旋转拍摄的角度例如可以为360°,也可以为大于360°。For example, the drone can rotate and shoot the subject in a clockwise or counterclockwise direction according to the adjusted device attitude, height, and camera orientation, and obtain multiple images. Wherein, the angle of rotation shooting may be, for example, 360°, or may be greater than 360°.
无人机拍摄的多张图像中,部分图像或全部图像可以有重叠区域或图像内容相邻。Among the multiple images captured by the drone, some or all of the images may have overlapping areas or adjacent image content.
拍摄的多张图像可以用于生成天空之眼图像,天空之眼图像是以图像中的天空区域为旋转中心进行坐标变换得到的图像。The multiple captured images can be used to generate a sky eye image, and the sky eye image is an image obtained by performing coordinate transformation on the sky area in the image as the rotation center.
图3是根据本公开的一个示例性实施例示出的一种横幅全景图像。Fig. 3 is a panorama image of a banner according to an exemplary embodiment of the present disclosure.
图4是根据本公开的一个示例性实施例示出的一种球形全景图像。FIG. 4 is a spherical panoramic image according to an exemplary embodiment of the present disclosure.
图5是根据本公开的一个示例性实施例示出的一种天空之眼图像。FIG. 5 is an image of an eye in the sky according to an exemplary embodiment of the present disclosure.
如图3所示,横幅全景图像中的上方可以是天空区域301、中间可以是拍摄景物302,拍摄景物302例如可以包括建筑物、植物等,下方可以是地面区域303。As shown in FIG. 3 , the upper part of the banner panorama image may be the sky area 301 , the middle may be the photographed scene 302 , for example, the photographed scene 302 may include buildings, plants, etc., and the lower part may be the ground area 303 .
如图4所示,球形全景图像中地面区域303位于画面中心,拍摄景物302位于画面中心附近,天空区域301位于画面四周。As shown in FIG. 4 , in the spherical panorama image, the ground area 303 is located in the center of the screen, the photographed scene 302 is located near the center of the screen, and the sky area 301 is located around the screen.
在图4所示的球形全景图像中,拍摄景物所占面积较小,天空区域301需要经过复杂的补天处理。In the spherical panoramic image shown in FIG. 4 , the shooting scene occupies a small area, and the sky area 301 needs to undergo complex sky-filling processing.
在一些实施例中,如图5所示,天空之眼图像中天空区域301位于画面中心,天空以外的拍摄景物302位于画面四周。In some embodiments, as shown in FIG. 5 , in the eye of the sky image, the sky area 301 is located in the center of the picture, and the shooting scene 302 outside the sky is located around the picture.
其中,画面中心包括但不限于画面的正中心,相对于拍摄景物,天空区域在画面的中心即可。Wherein, the center of the picture includes but is not limited to the exact center of the picture. Relative to the shooting scene, the sky area may be in the center of the picture.
在天空之眼图像中,拍摄景物所占面积较大,显示更清晰,有利于用户观看,可以提升用户体验;天空之眼图像的中间区域为天空区域301,不需要经过复杂的补天处理,操作简单。In the eye of the sky image, the shooting scene occupies a larger area, and the display is clearer, which is beneficial to the user's viewing and can improve the user experience; the middle area of the eye of the sky image is the sky area 301, which does not need to undergo complex sky patching processing. easy to use.
本公开实施例中,天空之眼图像可以直接由无人机生成,也可以由终端设备通过无人机拍摄的多张图像生成。In this embodiment of the present disclosure, the image of the eye of the sky may be directly generated by a drone, or may be generated by a terminal device using multiple images captured by the drone.
在一些实施例中,全景拍摄方法还包括:向终端设备发送多张图像,多张图像用于终端设备生成天空之眼图像。In some embodiments, the panorama shooting method further includes: sending multiple images to the terminal device, where the multiple images are used for the terminal device to generate an image of the eye of the sky.
无人机可以将拍摄的多张图像发送给终端设备,终端设备可以自动对多张图像进行处理,处理过程和无人机的处理过程可以相同,终端设备也可以根据用户的操作对多张图像进行处理,生成天空之眼图像。The drone can send multiple images taken to the terminal device, and the terminal device can automatically process the multiple images. The processing process can be the same as that of the drone, and the terminal device can also process multiple images according to the user's operation. Processed to generate the eye of the sky image.
在步骤S23中,根据多张图像进行坐标变换生成天空之眼图像。In step S23, coordinate transformation is performed according to a plurality of images to generate an image of the eye of the sky.
例如,无人机可以对多张图像进行处理,生成天空之眼图像。For example, a drone can process multiple images to generate an eye-to-sky image.
在一些实施例中,可以以可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;根据球形坐标系与极坐标系的转换关系,将球形全景图映射至极坐标系下,生成天空之眼图像。In some embodiments, the plurality of images may be mapped to the spherical coordinate system based on the spherical coordinate system corresponding to the movable platform to generate a spherical panorama; according to the conversion relationship between the spherical coordinate system and the polar coordinate system, Map the spherical panorama to the polar coordinate system to generate the eye of the sky image.
例如,可以将无人机拍摄的图像映射到球形坐标系中,生成球形全景图像,根据坐标变换,将球形全景图像映射到极坐标系中,生成天空之眼图像。For example, an image captured by a drone can be mapped into a spherical coordinate system to generate a spherical panoramic image, and according to the coordinate transformation, the spherical panoramic image can be mapped into a polar coordinate system to generate an image of the eye of the sky.
在一些实施例中,可以基于可移动平台拍摄的多张图像的GPS(Global Positioning System,全球定位系统)坐标,通过坐标变换对拍摄的多张图像进行处理,生成天空之眼图像。In some embodiments, based on the GPS (Global Positioning System, global positioning system) coordinates of the multiple images captured by the movable platform, the multiple captured images may be processed through coordinate transformation to generate the eye image of the sky.
例如,可以基于无人机拍摄的多张图像时无人机的GPS坐标和球形坐标系,对多张图像进行坐标变换,将图像映射到球形坐标系下,球形坐标系的一个顶点为天空区域的中心,一定半径内的区域为天空区域,以顶点为中心进行旋转变化,可以获得天空之眼图像。For example, based on the GPS coordinates and spherical coordinate system of the drone when the multiple images captured by the drone, coordinate transformation can be performed on the multiple images, and the images are mapped to the spherical coordinate system. One vertex of the spherical coordinate system is the sky area. The center of , the area within a certain radius is the sky area, and the rotation change is performed with the vertex as the center, and the image of the eye of the sky can be obtained.
天空区域的半径可以根据需要设置,例如,用户想要天空之眼图像中间的天空区域大一些,可以将天空区域的半径设置地较大。The radius of the sky area can be set as required. For example, if the user wants the sky area in the middle of the eye of the sky image to be larger, the radius of the sky area can be set larger.
图6是根据本公开的一个示例性实施例示出的球形坐标系的示意图。FIG. 6 is a schematic diagram of a spherical coordinate system according to an exemplary embodiment of the present disclosure.
图7A是根据本公开的一个示例性实施例示出的一种坐标变换的示意图。Fig. 7A is a schematic diagram showing a coordinate transformation according to an exemplary embodiment of the present disclosure.
例如可以将无人机拍摄的多张图像贴到如图6所示的球形坐标系中, 例如,可以根据无人机拍摄图像A时的经纬度确定A在球形坐标系中的坐标,根据A在球形坐标系中的坐标范围或区域,将A放到相应位置。For example, multiple images captured by the drone can be pasted into the spherical coordinate system as shown in Figure 6. For example, the coordinates of A in the spherical coordinate system can be determined according to the longitude and latitude of the image A when the drone captured the image, and the coordinates of A in the spherical coordinate system can be determined according to the Coordinate range or area in spherical coordinate system, put A in the corresponding position.
如图7A所示,可以在球形坐标系中设定投影中心点的坐标,连接投影中心点和球面上一点A,可以得到一条直线。建立投影平面,投影平面可以与球形坐标系相切在南极点,也可以相切在其他点。通过计算该直线与该投影平面的交点,可以得到投影后的坐标。通过坐标变换,可以得到拍摄的多张图像的天空之眼图像。As shown in FIG. 7A , the coordinates of the projection center point can be set in a spherical coordinate system, and a straight line can be obtained by connecting the projection center point and a point A on the spherical surface. Establish a projection plane, which can be tangent to the spherical coordinate system at the south pole or at other points. By calculating the intersection of the straight line and the projection plane, the projected coordinates can be obtained. Through coordinate transformation, the eye-of-the-sky image of the multiple images captured can be obtained.
其中,坐标变换可以为极坐标变换。The coordinate transformation may be polar coordinate transformation.
在一些实施例中,投影中心点例如可以设置在南极点,也可以设置在其他点。In some embodiments, the projection center point may be set at the south pole, for example, or may be set at other points.
其中,球形坐标系可以是以无人机本身为中心的球形坐标系。无人机上的相机在拍摄每张图片时,都有对应的无人机的姿态(例如GPS位置及朝向等)以及云台姿态,基于无人机采集图片时的无人机姿态与云台姿态,将各图片映射到球型坐标系上进行融合。例如无人机悬停在初始位置1朝正前方拍摄一张图片1,向左旋转角度1拍摄一张照片2,基于位置1向右旋转角度1拍摄一张照片3,基于位置1向垂直上方旋转角度1拍摄一张照片4,基于位置1向垂直下方旋转角度1拍摄一张照片5,基于位置1在水平方向旋转180度拍摄一张照片6,其中角度1包括但不限于90度,可以采用类似水平旋转、垂直旋转的方式拍摄360度全景图像。在进行图像映射至球形坐标系的过程时,可以选以球形坐标系中心为起点水平的一个方向映射为照片1的正方向,进而利用拍摄时无人机的位置、朝向等依次将各张照片映射到球形坐标系下,例如将照片1映射至球形表面的正前方向,将照片2映射至球形表面的左侧,将照片3映射至球形表面的右侧,将照片4映射至球形表面的顶侧,将照片5映射至球形表面的底侧,将照片6映射至球形表面的正后方向。如图7B所示,其中,左侧图片为无人机超下视角度拍摄的照片,右侧图片中即将下视角度拍摄的照片映射至球形坐标系的底侧。The spherical coordinate system may be a spherical coordinate system centered on the drone itself. When the camera on the drone takes each picture, it has the corresponding attitude of the drone (such as GPS position and orientation, etc.) and the attitude of the gimbal. , and map each image to a spherical coordinate system for fusion. For example, the drone hovers at the initial position 1 to take a picture 1 straight ahead, rotates to the left by angle 1 to take a photo 2, rotates to the right based on position 1 and takes a photo 3, and moves vertically upward based on position 1 Rotate angle 1 to take a picture 4, rotate angle 1 vertically downward based on position 1 to take a picture 5, and rotate 180 degrees horizontally to take a picture 6 based on position 1, where angle 1 includes but is not limited to 90 degrees, can be Shoot 360-degree panoramic images in a similar way to horizontal rotation and vertical rotation. In the process of mapping the image to the spherical coordinate system, you can choose a horizontal direction with the center of the spherical coordinate system as the starting point to map the positive direction of the photo 1, and then use the position and orientation of the drone at the time of shooting to sequentially map each photo. Map to the spherical coordinate system, for example, map photo 1 to the front direction of the spherical surface, map photo 2 to the left side of the spherical surface, map photo 3 to the right side of the spherical surface, and map photo 4 to the spherical surface. For the top side, map photo 5 to the bottom side of the spherical surface, and map photo 6 to the back of the spherical surface. As shown in Figure 7B, the picture on the left is a photo taken by the drone at an over-looking angle, and the picture on the right is a photo that is about to be taken at a downward viewing angle to the bottom side of the spherical coordinate system.
在一些实施例中,可以以可移动平台对应的球形坐标系为基准,将多张图像映射至球形坐标系,生成球形全景图;以球形坐标系上预设位置为中心,将球形全景图展开,得到横幅图像;根据横幅图像所在平面坐标系 与极坐标系的转换关系,将球形全景图映射至极坐标系下,生成天空之眼图像。In some embodiments, the spherical coordinate system corresponding to the movable platform can be used as a reference to map multiple images to the spherical coordinate system to generate a spherical panorama; the spherical panorama can be expanded with a preset position on the spherical coordinate system as the center , to get the banner image; according to the conversion relationship between the plane coordinate system where the banner image is located and the polar coordinate system, map the spherical panorama to the polar coordinate system to generate the eye image of the sky.
例如,在生成球形全景图像之后,可以将球形全景图像展开,生成横幅全景图像,进而根据坐标变换,将横幅全景图像映射到极坐标中,生成天空之眼图像。For example, after the spherical panoramic image is generated, the spherical panoramic image can be expanded to generate a banner panoramic image, and then the banner panoramic image can be mapped into polar coordinates according to the coordinate transformation to generate the eye of the sky image.
图7C是根据本公开的一个示例性实施例示出的另一种坐标变换的示意图。FIG. 7C is a schematic diagram showing another coordinate transformation according to an exemplary embodiment of the present disclosure.
例如,可以以无人机向初始在正前方拍摄的方向为中心,将球形全景图展开为横幅图。例如图7C中左侧的图片即为将球形全景图像展开后的图像示意图,其中,为便于说明坐标变换的原理,可以将图3所示的横幅全景图像简化为如图7C左侧所示的直角坐标系中的横幅全景图像,该横幅全景图像长为b,宽为2a。图7C中并未显示图像内容,仅显示了图像形状。其中,图像的上半部分为图3所示的天空区域301,图片的下部分为图3所示的地面区域303,中心区域为图3所示的拍摄景物302。For example, a spherical panorama can be expanded into a banner image centered on the direction the drone initially shot straight ahead. For example, the picture on the left in FIG. 7C is a schematic diagram of the expanded spherical panorama image. In order to facilitate the explanation of the principle of coordinate transformation, the banner panorama image shown in FIG. 3 can be simplified as shown on the left side of FIG. 7C . The banner panorama image in the Cartesian coordinate system. The banner panorama image has a length of b and a width of 2a. The image content is not shown in Figure 7C, only the image shape is shown. The upper part of the image is the sky area 301 shown in FIG. 3 , the lower part of the picture is the ground area 303 shown in FIG. 3 , and the center area is the shooting scene 302 shown in FIG. 3 .
在将各张照片映射到球形坐标系后,还可以将相邻的照片的边缘进行图像处理,以消除画面跳变的问题。After each photo is mapped to the spherical coordinate system, image processing can also be performed on the edges of adjacent photos to eliminate the problem of screen jumping.
可以将图7C中左侧直角坐标系中的横幅全景图像的天空区域的点映射到右侧新坐标系的中心区域,将左侧直角坐标系中的横幅全景图像的地面区域的点映射到右侧新坐标系的外侧区域。The points of the sky area of the banner panoramic image in the left rectangular coordinate system in FIG. 7C can be mapped to the center area of the new right coordinate system, and the points of the ground area of the banner panoramic image in the left rectangular coordinate system can be mapped to the right. The outer region of the new coordinate system.
例如,将图7C中左侧直角坐标系中纵坐标为2a,横坐标在0到b之间的点(即y=2a,且0≤x≤b)映射到右侧新坐标系的原点,将图7C中左侧直角坐标系中纵坐标为0,横坐标在0到b之间的点(即y=0,且0≤x≤b)映射到右侧新坐标系中以R为半径的圆上,将图7C中左侧直角坐标系中纵坐标为a,横坐标在0到b之间的点(即y=a,且0≤x≤b)映射到右侧新坐标系中以R/2为半径的圆上,例如,左侧直角坐标系中的点M可以映射到右侧新坐标系中的M’处。经过了坐标变换,则可以获得如图5所示的天空之眼图像。For example, map the point whose ordinate is 2a and whose abscissa is between 0 and b in the left rectangular coordinate system in FIG. 7C (that is, y=2a, and 0≤x≤b) to the origin of the new right coordinate system, Map the point where the ordinate is 0 and the abscissa is between 0 and b in the left rectangular coordinate system in Figure 7C (that is, y=0, and 0≤x≤b) to the new right coordinate system with R as the radius On the circle of , map the point where the ordinate is a and the abscissa is between 0 and b in the left rectangular coordinate system in Figure 7C (that is, y=a, and 0≤x≤b) to the new right coordinate system On a circle with a radius of R/2, for example, point M in the left Cartesian coordinate system can be mapped to M' in the new coordinate system on the right. After coordinate transformation, the image of the eye of the sky as shown in Figure 5 can be obtained.
可选的,还可以直接进行球形坐标系到极坐标系的映射,即直接将生成的球形全景图映射至极坐标系中生成天空之眼图像。Optionally, it is also possible to directly perform the mapping from the spherical coordinate system to the polar coordinate system, that is, directly map the generated spherical panorama to the polar coordinate system to generate the eye image of the sky.
在一些实施例中,全景拍摄方法还包括:存储或向终端设备发送天空之眼图像。In some embodiments, the panorama shooting method further includes: storing or sending the image of the eye of the sky to the terminal device.
例如,无人机可以将生成的天空之眼图像存储在无人机的存储器中,也可以将天空之眼图像发送给用户终端,用户终端可以向用户展示生成的天空之眼图像,用户可以对天空之眼图像进行编辑和处理。For example, the drone can store the generated image of the eye of the sky in the memory of the drone, or send the image of the eye of the sky to the user terminal, and the user terminal can show the generated image of the eye of the sky to the user, and the user can The Eye of the Sky image is edited and processed.
在一些实施例中,全景拍摄方法还包括:在接收到目标对象的播放指令后,播放多张图像生成天空之眼图像的过程。In some embodiments, the panorama shooting method further includes: after receiving a playback instruction of the target object, playing a plurality of images to generate an image of the eye of the sky.
目标对象例如可以为用户,用户可以通过终端设备向无人机发送播放指令,无人机可以包括显示装置,在接收到用户的播放指令后,无人机的显示装置可以播放多张图像生成天空之眼图像的过程,也可以在终端设备播放多张图像生成天空之眼的过程。For example, the target object can be a user, and the user can send a playback instruction to the drone through the terminal device. The drone can include a display device. After receiving the user's playback instruction, the display device of the drone can play multiple images to generate the sky. The process of creating an eye image, you can also play multiple images on the terminal device to generate the eye of the sky.
本公开实施例中,可以动态展示天空之眼图像的生成过程,可以提升用户兴趣,提升用户体验。In the embodiment of the present disclosure, the generation process of the eye of the sky image can be dynamically displayed, which can enhance user interest and improve user experience.
需要说明的是,无人机拍摄的多张图像也可以用于生成小行星模式的图像。It should be noted that multiple images captured by drones can also be used to generate images in asteroid mode.
本公开实施例的全景拍摄方法,基于拍摄指令调整可移动平台的设备参数,拍摄多张图像,可以自动、快速生成天空之眼图像,无需后期其他软件处理,操作简单,可以降低操作难度,提升用户的使用趣味。The panorama shooting method of the embodiment of the present disclosure adjusts the device parameters of the movable platform based on the shooting instructions, shoots multiple images, can automatically and quickly generate the image of the eye of the sky, does not require other software processing in the later stage, is simple in operation, can reduce the difficulty of operation, and improve the User interest.
图8是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图。FIG. 8 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
在图2所示的全景拍摄方法的基础上,图8所示的全景拍摄方法还可以包括步骤S81-S83。On the basis of the panoramic photographing method shown in FIG. 2 , the panoramic photographing method shown in FIG. 8 may further include steps S81 - S83 .
在步骤S81中,识别天空之眼图像中的天空区域。In step S81, the sky area in the eye of the sky image is identified.
在一些实施例中,基于天空之眼图像的灰度值和/或梯度值,识别天空之眼图像中的天空区域。In some embodiments, regions of the sky in the Eye of the Sky image are identified based on grayscale values and/or gradient values of the Eye of the Sky image.
例如,可以基于天空之眼图像的灰度值,识别天空之眼图像中的天空区域;可以基于天空之眼图像的梯度值,识别天空之眼图像中的天空区域;也可以基于天空之眼图像的灰度值和梯度值,识别天空之眼图像中的天空区域。For example, the sky region in the eye of the sky image can be identified based on the gray value of the eye of the sky image; the sky region in the eye of the sky image can be identified based on the gradient value of the eye of the sky image; it can also be based on the eye of the sky image The grayscale and gradient values of , identify the sky regions in the Eye of the Sky image.
例如,可以将天空之眼图像中灰度值处于预设阈值的区域识别为天空区域,预设阈值例如可以是灰度值为204。或者,可以将天空之眼图像中梯度较小的区域识别为天空区域,或者,可以将天空之眼图像中平坦区域识别为天空区域,可以将天空之眼图像中灰度值处于预设阈值、梯度较小且平坦的区域识别为天空区域。For example, an area in the eye of the sky image with a grayscale value at a preset threshold may be identified as a sky area, and the preset threshold may be, for example, a grayscale value of 204. Alternatively, an area with a small gradient in the image of the eye of the sky can be identified as a sky area, or, a flat area in the image of the eye of the sky can be identified as a sky area, and the gray value in the image of the sky can be identified as a preset threshold, Regions with small and flat gradients are identified as sky regions.
本领域技术人员也可以根据天空之眼图像的其他值识别天空区域。Those skilled in the art can also identify sky regions based on other values of the eye in the sky image.
在步骤S82中,将天空区域替换为预设图像,其中,预设图像包括二维码、目标对象信息、球形全景图像中的一种或多种。In step S82, the sky area is replaced with a preset image, wherein the preset image includes one or more of two-dimensional code, target object information, and spherical panoramic image.
其中,所述球形全景图像是以图像中的天空以外的拍摄景物为旋转中心进行坐标变换得到的图像。Wherein, the spherical panorama image is an image obtained by performing coordinate transformation on a photographed scene other than the sky in the image as a rotation center.
例如,可以将天空区域全部替换为预设图像,也可以按照预设比例,将天空区域的一部分替换为预设图像,预设比例可以根据用户需要设置。For example, the entire sky area can be replaced with a preset image, or a part of the sky area can be replaced with a preset image according to a preset ratio, and the preset ratio can be set according to user needs.
预设图像例如可以为二维码、用户自定义的logo(标识),将天空区域替换为用户的二维码,便于社交分享,其他用户可以通过扫描二维码,获得用户信息或其他信息。The preset image can be, for example, a two-dimensional code or a user-defined logo (logo), and the sky area is replaced with the user's two-dimensional code, which is convenient for social sharing. Other users can scan the two-dimensional code to obtain user information or other information.
预设图像例如可以为目标对象信息,目标对象信息例如可以为用户照片、风景照片、飞机照片、落日照片等,例如可以将飞机照片或落日照片放入天空之眼图像中。The preset image may be, for example, target object information, and the target object information may be, for example, user photos, landscape photos, airplane photos, sunset photos, and the like.
图9是根据本公开的一个示例性实施例示出的另一种天空之眼图像。FIG. 9 is another image of the eye of the sky according to an exemplary embodiment of the present disclosure.
在一些实施例中,预设图像例如可以为球形全景图像。例如可以将天空区域中预设比例的区域替换为球形全景图像,以及将未替换的天空区域与球形全景图像相邻的边缘区域进行图像融合。In some embodiments, the preset image may be, for example, a spherical panoramic image. For example, a preset proportion of the sky area can be replaced with a spherical panoramic image, and the unreplaced sky area can be image-fused with an adjacent edge area of the spherical panoramic image.
如图9所示,例如可以将图5所示的天空之眼图像中的天空区域301替换为图4所示的球形全景图像,将为替换的天空区域与球形全景图像相邻的边缘区域进行图像融合。天空之眼图像中的天空区域和球形全景图像中的天空区域可以衔接,实现更好的显示真实天空色彩的效果,无需复杂的补天操作,降低了操作难度。As shown in FIG. 9 , for example, the sky area 301 in the eye of the sky image shown in FIG. 5 can be replaced with the spherical panoramic image shown in FIG. Image fusion. The sky area in the eye of the sky image and the sky area in the spherical panorama image can be connected to achieve a better effect of displaying the color of the real sky, without the need for complex sky patching operations, which reduces the difficulty of operation.
例如可以获取天空之眼图像中天空区域对应的坐标,根据天空区域对应的坐标,对预设图像进行坐标变换,将天空区域替换为预设图像,可以在预设图像未发生畸变的情况下嵌入到天空之眼图像内部。For example, you can obtain the coordinates corresponding to the sky area in the eye of the sky image, perform coordinate transformation on the preset image according to the coordinates corresponding to the sky area, and replace the sky area with the preset image, which can be embedded without distortion of the preset image. to the inside of the Eye of the Sky image.
在步骤S83中,通过坐标变换对天空区域对应的坐标进行处理,以放大或缩小天空区域。In step S83, the coordinates corresponding to the sky area are processed through coordinate transformation to enlarge or reduce the sky area.
例如可以获取天空之眼图像中天空区域对应的坐标,对天空区域对应的坐标进行处理,例如可以对天空区域对应的坐标乘个系数矩阵,可以放大或缩小天空之眼图像中的天空区域。For example, the coordinates corresponding to the sky area in the eye of the sky image can be obtained, and the coordinates corresponding to the sky area can be processed. For example, the coordinates corresponding to the sky area can be multiplied by a coefficient matrix, and the sky area in the eye of the sky image can be enlarged or reduced.
放大或缩小天空区域的比例可以根据用户的需求设置。The ratio of enlarging or reducing the sky area can be set according to the user's needs.
例如可以根据用户需求,在进行坐标映射时,改变投影中心点的坐标,或者,偏移坐标点,实现天空之眼图像中天空区域的放大或缩小功能。For example, according to user requirements, when performing coordinate mapping, the coordinates of the projection center point can be changed, or the coordinate points can be offset to realize the zoom-in or zoom-out function of the sky area in the Eye of the Sky image.
需要说明的是,本公开实施例包括但不限于对天空之眼图像中天空区域的放大或缩小,也可以对天空之眼图像中拍摄景物或其他区域进行放大或缩小。It should be noted that the embodiments of the present disclosure include, but are not limited to, enlarging or reducing the sky area in the Eye of the Sky image, and may also enlarge or reduce the shooting scene or other areas in the Eye of the Sky image.
本公开实施例提供的全景拍摄方法,可以将天空之眼图像中的天空区域替换为预设图像,可以根据用户个性化需求定制图像,便于社交媒体分享,可以增加用户趣味,提升用户体验。The panorama shooting method provided by the embodiments of the present disclosure can replace the sky area in the eye of the sky image with a preset image, customize the image according to the user's personalized needs, facilitate social media sharing, increase user interest, and improve user experience.
图10是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图。FIG. 10 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
在图2所示的全景拍摄方法的基础上,图10所示的全景拍摄方法还可以包括S101-S104。On the basis of the panoramic photographing method shown in FIG. 2 , the panoramic photographing method shown in FIG. 10 may further include S101 - S104 .
在步骤S101中,对多张图像进行拼接处理,获得球形全景图像。In step S101, a splicing process is performed on a plurality of images to obtain a spherical panoramic image.
例如可以根据图像拼接算法对无人机拍摄的多张图像进行拼接,获得球形全景图像,图像拼接算法例如可以为α融合算法。For example, a spherical panorama image can be obtained by splicing multiple images captured by a drone according to an image splicing algorithm, and the image splicing algorithm can be, for example, an alpha fusion algorithm.
在步骤S102中,当球形全景图像中相邻画面的边缘没有对齐时,获取未对齐的图像区域对应的拍摄位置。In step S102, when the edges of adjacent pictures in the spherical panoramic image are not aligned, the shooting position corresponding to the unaligned image area is acquired.
在本公开实施例中,可以根据球形全景图像判断相邻画面边缘是否有未对齐的情况,也可以根据球形全景图像展开生成的横幅全景图像判断相邻画面边缘是否有未对齐的情况。In this embodiment of the present disclosure, it can be determined whether the edges of adjacent pictures are misaligned according to the spherical panoramic image, or whether the edges of adjacent pictures are misaligned according to the banner panoramic image generated by expanding the spherical panoramic image.
当球形全景图像中相邻画面的边缘没有对齐时,可以直接确定出未对齐的图像区域在球形坐标系中的坐标,根据该坐标可以直接确定出无人机拍摄时所处的地理位置、方向、姿态等。When the edges of adjacent pictures in the spherical panorama image are not aligned, the coordinates of the unaligned image area in the spherical coordinate system can be directly determined, and the geographic location and direction of the drone can be directly determined according to the coordinates. , attitude, etc.
当横幅全景图像中相邻画面的边缘没有对齐时,可以将横幅全景图像中未对齐的区域对应的坐标映射到球形坐标系中,获得未对齐的区域对应的球形坐标系中的坐标,根据该坐标可以直接确定出无人机拍摄时所处的地理位置、方向、姿态等。When the edges of adjacent pictures in the banner panoramic image are not aligned, the coordinates corresponding to the unaligned areas in the banner panoramic image can be mapped into the spherical coordinate system to obtain the coordinates in the spherical coordinate system corresponding to the unaligned areas. The coordinates can directly determine the geographic location, direction, attitude, etc. of the drone when shooting.
例如可以对相邻的拼接图像的边缘进行检测,判断边缘是否对齐,当相邻的拼接图像的边缘没有对齐时,获取没有对齐的图像区域对应的坐标。For example, the edges of adjacent stitched images can be detected to determine whether the edges are aligned, and when the edges of the adjacent stitched images are not aligned, the coordinates corresponding to the unaligned image areas are obtained.
例如,在无人机拍摄图像的过程中,飞机可能出现抖动、漂移等情况,这时候拍摄的图像在生成横幅全景图像后,可能存在边缘未对齐、有空隙留白的情况,可以对未对齐的位置进行补拍操作。For example, in the process of taking an image by a drone, the aircraft may shake, drift, etc. At this time, after the banner panoramic image is generated, the edges of the image taken at this time may be misaligned, and there may be gaps left blank. position to perform a supplementary shooting operation.
在步骤S103中,基于未对齐的图像区域对应的坐标,确定可移动平台的补拍位置。In step S103, a supplementary shooting position of the movable platform is determined based on the coordinates corresponding to the unaligned image areas.
例如可以对未对齐的图像区域对应的坐标进行坐标映射,获得无人机在拍摄该区域时的地理位置,该地理位置可以作为无人机的补拍位置。For example, coordinate mapping can be performed on the coordinates corresponding to the unaligned image area to obtain the geographic location of the drone when shooting the area, and the geographic location can be used as a supplementary shooting location of the drone.
在步骤S104中,基于补拍位置,执行补拍操作,获得补拍图像。In step S104, based on the supplementary shooting position, a supplementary shot operation is performed to obtain a supplementary shot image.
无人机可以根据移动到补拍位置,执行补拍操作,将在该补拍位置拍摄的图像作为补拍图像。The drone can perform a supplementary shooting operation according to the movement to the supplementary shooting position, and use the image captured at the supplementary shooting position as the supplementary shooting image.
在获得补拍图像之后,可以用补拍图像替换掉原来拍摄的多张图像中补拍图像对应的原始图像,对替换后的图像集进行拼接处理,可以获得过渡平滑的拼接图像。After the supplementary shot image is obtained, the original image corresponding to the supplementary shot image in the original multiple images can be replaced with the supplementary shot image, and the replaced image set is stitched to obtain a stitched image with a smooth transition.
图11是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图。FIG. 11 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
在图2所示的全景拍摄方法的基础上,图11所示的全景拍摄方法还可以包括S111-S114。On the basis of the panoramic photographing method shown in FIG. 2 , the panoramic photographing method shown in FIG. 11 may further include S111 - S114 .
在步骤S111中,对多张图像进行拼接处理,获得球形全景图像。In step S111, a splicing process is performed on a plurality of images to obtain a spherical panoramic image.
例如可以根据图像拼接算法对无人机拍摄的多张图像进行拼接,获得横幅全景图像,图像拼接算法例如可以为α融合算法。For example, multiple images captured by the drone can be stitched according to an image stitching algorithm to obtain a banner panoramic image. The image stitching algorithm can be, for example, an alpha fusion algorithm.
在步骤S112中,当球形全景图像中的目标物体存在扭曲区域时,获取扭曲区域对应的坐标。In step S112, when the target object in the spherical panoramic image has a distorted area, the coordinates corresponding to the distorted area are obtained.
在本公开实施例中,可以根据球形全景图像判断目标物体是否存在扭曲区域,也可以根据球形全景图像展开生成的横幅全景图像判断目标物体是否存在扭曲区域。In the embodiment of the present disclosure, whether the target object has a distorted area can be determined according to the spherical panoramic image, or whether the target object has a distorted area can be determined according to a banner panoramic image generated by expanding the spherical panoramic image.
当球形全景图像中的目标物体存在扭曲区域时,可以直接确定出扭曲区域在球形坐标系中的坐标,根据该坐标可以直接确定出无人机拍摄时所处的地理位置、方向、姿态等。When the target object in the spherical panoramic image has a distorted area, the coordinates of the distorted area in the spherical coordinate system can be directly determined, and according to the coordinates, the geographic location, direction, attitude, etc.
当横幅全景图像中的目标物体存在扭曲区域时,可以将横幅全景图像中的扭曲区域对应的坐标映射到球形坐标系中,获得扭曲区域对应的球形坐标系中的坐标,根据该坐标可以直接确定出无人机拍摄时所处的地理位置、方向、姿态等。目标物体例如可以为建筑物、山脉、河流、桥梁等。When the target object in the banner panoramic image has a distorted area, the coordinates corresponding to the distorted area in the banner panoramic image can be mapped to the spherical coordinate system, and the coordinates in the spherical coordinate system corresponding to the distorted area can be obtained, which can be directly determined according to the coordinates The geographic location, direction, and attitude of the drone when shooting. The target object may be, for example, a building, a mountain, a river, a bridge, or the like.
例如可以对横幅全景图像中的建筑物进行检测,判断建筑物是否存在扭曲区域,当建筑物存在扭曲区域时,可以获取该扭曲区域对应的坐标,也可以获取包含扭曲区域的建筑物对应的坐标。For example, a building in a panoramic image of a banner can be detected to determine whether the building has a distorted area. When there is a distorted area in the building, the coordinates corresponding to the distorted area can be obtained, and the coordinates corresponding to the building containing the distorted area can also be obtained. .
例如,在无人机拍摄图像的过程中,飞机可能出现抖动、漂移等情况,这时候拍摄的图像在生成横幅全景图像后,图中的目标物体可能存在扭曲的情况,可以对扭曲位置或对整个目标物体进行补拍操作。For example, in the process of taking an image by a drone, the aircraft may shake, drift, etc. At this time, after the image taken at this time generates a panoramic image of the banner, the target object in the image may be distorted. The entire target object is subjected to a supplementary shooting operation.
在步骤S113中,基于扭曲区域对应的坐标,确定可移动平台的补拍位置。In step S113, based on the coordinates corresponding to the distorted area, a supplementary shooting position of the movable platform is determined.
例如可以对扭曲区域对应的坐标进行坐标映射,获得无人机在拍摄该区域时的地理位置,该地理位置可以作为无人机的补拍位置。For example, the coordinates corresponding to the distorted area can be mapped to obtain the geographic location of the drone when shooting the area, and the geographic location can be used as the supplementary shooting location of the drone.
在步骤S114中,基于目标物体及可移动平台的FOV,确定补拍图像的数量。In step S114, the number of supplementary images is determined based on the FOV of the target object and the movable platform.
例如可以根据存在扭曲的目标物体占可移动平台的FOV(视角场)的大小,确定补拍图像的数量,例如,当可移动平台的FOV不能包含目标物体的整体时,可以在多个位置拍摄多个补拍图像。For example, the number of supplementary images can be determined according to the size of the FOV (field of view) of the movable platform by the target object with distortion. Multiple catch-up images.
在步骤S115中,基于补拍位置,执行补拍操作,获得补拍图像。In step S115, based on the supplementary shooting position, a supplementary shot operation is performed to obtain a supplementary shot image.
无人机可以根据移动到补拍位置,执行补拍操作,将在该补拍位置拍摄的图像作为补拍图像。The drone can perform a supplementary shooting operation according to the movement to the supplementary shooting position, and use the image captured at the supplementary shooting position as the supplementary shooting image.
在获得补拍图像之后,可以用补拍图像替换掉原来拍摄的包含扭曲区域的图像或包含目标物体的图像,对替换后的图像集进行拼接处理,可以 获得过渡平滑的拼接图像。After the supplementary shot image is obtained, the original shot image containing the distorted area or the image containing the target object can be replaced with the supplementary shot image, and the replaced image set can be stitched to obtain a stitched image with a smooth transition.
图12是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图。FIG. 12 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
图12所示的全景拍摄方法例如可以在图10所示的步骤S101或图11所示的步骤S111之前执行。图12所示的全景拍摄方法可以包括S121-S123。The panorama photographing method shown in FIG. 12 may be performed, for example, before step S101 shown in FIG. 10 or step S111 shown in FIG. 11 . The panorama shooting method shown in FIG. 12 may include S121-S123.
在步骤S121中,当可移动平台的拍照模式为夜景模式时,获取多张图像的亮度。In step S121, when the photographing mode of the movable platform is the night scene mode, the brightness of a plurality of images is acquired.
例如,在光照强度较小时,无人机可以使用夜景模式进行拍摄,在无人机使用夜景模式进行拍摄时,在对拍摄的多张图像进行拼接处理之前,可以先验证多张图像的亮度是否大致相等。For example, when the light intensity is low, the drone can use the night scene mode to shoot. When the drone uses the night scene mode to shoot, before stitching the multiple images, you can verify whether the brightness of the multiple images is roughly equal.
在步骤S122中,判断多张图像的亮度是否在预设范围内。In step S122, it is determined whether the brightness of the plurality of images is within a preset range.
例如可以判断无人机拍摄的多张图像的亮度是否在预设范围内,当多张图像的亮度在预设范围内时,可以对多张图像进行拼接处理,以生成横幅全景图像或天空之眼图像;当多张图像的亮度不在预设范围内时,可以执行步骤S123。For example, it can determine whether the brightness of the multiple images captured by the drone is within the preset range. When the brightness of the multiple images is within the preset range, the multiple images can be stitched to generate a banner panorama image or a sky image. eye image; when the brightness of the multiple images is not within the preset range, step S123 may be performed.
预设范围可以根据需要设置。The preset range can be set as required.
在步骤S123中,当多张图像的亮度不在预设范围内时,调节多张图像的亮度。In step S123, when the brightness of the multiple images is not within the preset range, the brightness of the multiple images is adjusted.
当多张图像的亮度不在预设范围内时,无人机可以自动调节多张图像的亮度,使得调整后的多张图像的亮度在预设范围内,便于后续拼接处理,可以获得视觉效果更好的全景图像。When the brightness of multiple images is not within the preset range, the drone can automatically adjust the brightness of the multiple images, so that the brightness of the adjusted multiple images is within the preset range, which is convenient for subsequent stitching processing, and can achieve better visual effects. Nice panoramic image.
图13是本公开的一个示例性实施例示出的另一种全景拍摄方法的流程图。FIG. 13 is a flowchart of another panorama shooting method shown in an exemplary embodiment of the present disclosure.
图13所示的全景拍摄方法可以包括S131-S136。The panorama shooting method shown in FIG. 13 may include S131-S136.
在步骤S131中,接收拍摄指令。In step S131, a photographing instruction is received.
例如无人机可以接收用户发送的拍摄指令。For example, drones can receive shooting instructions sent by users.
在步骤S132中,拍摄多张图像。In step S132, a plurality of images are captured.
例如无人机可以根据拍摄指令拍摄多张图像。For example, the drone can take multiple images according to the shooting instructions.
在步骤S133中,基于α融合算法,生成横幅全景图像。In step S133, a panoramic image of the banner is generated based on the alpha fusion algorithm.
例如可以基于α融合算法,对多张图像进行拼接,生成横幅全景图像。For example, based on the alpha fusion algorithm, multiple images can be stitched to generate a panoramic image of the banner.
在步骤S134中,对横幅全景图像进行极坐标变换,生成天空之眼图像。In step S134, polar coordinate transformation is performed on the panoramic image of the banner to generate an image of the eye of the sky.
例如可以对横幅全景图像进行极坐标变化,生成天空之眼图像;也可以根据用户选择的预设模式,对横幅全景图像或天空之眼图像进行处理,生成预设模式的图像。For example, the polar coordinates of the banner panorama image can be changed to generate the eye of the sky image; the banner panorama image or the eye of the sky image can also be processed according to the preset mode selected by the user to generate the image of the preset mode.
预设模式的图像例如可以为小行星模式的图像,也可以为其他模式的全景图像。The image in the preset mode may be, for example, an image in an asteroid mode, or may be a panoramic image in other modes.
例如也可以根据用户需求,将用户的二维码、自定义标识或其他图像嵌入到天空之眼图像中。For example, the user's QR code, custom logo or other images can also be embedded into the eye of the sky image according to the user's needs.
在步骤S135中,播放天空之眼图像的生成过程动画。In step S135, the animation of the generation process of the eye of the sky image is played.
例如可以向用户展示天空之眼图像的生成过程的动画,让用户更直观地观看天空之眼图像的生成过程。For example, the animation of the generation process of the eye of the sky image can be shown to the user, so that the user can watch the generation process of the eye of the sky image more intuitively.
在步骤S136中,对天空之眼图像进行编辑,发布编辑后的天空之眼图像。In step S136, the sky eye image is edited, and the edited sky eye image is released.
例如可以根据用户的操作指令,对天空之眼图像进行编辑,并将编辑后的天空之眼图像发送到终端设备进行发布。For example, according to the user's operation instruction, the image of the eye of the sky can be edited, and the edited image of the eye of the sky can be sent to the terminal device for publication.
例如可以对天空之眼图像中的区域进行放大或缩小操作。For example, you can zoom in or zoom out the area in the eye of the sky image.
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "Module" or "System".
图14是根据本公开的一个示例性实施例的电子设备的框图。14 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
如图14所示,电子设备1400可以包括:处理器1410以及存储器1420,存储器1420可以用于存储处理器1410的可执行指令;其中,处理器1410可以配置为经由执行所述可执行指令来执行如下过程:获取拍摄指令;基于所述拍摄指令调整可移动平台的姿态,拍摄多张图像,根据所述多张图 像进行坐标转换生成天空之眼图像,所述天空之眼图像是以图像中的天空区域为旋转中心进行坐标变换得到的图像。As shown in FIG. 14 , the electronic device 1400 may include: a processor 1410 and a memory 1420, and the memory 1420 may be used to store executable instructions of the processor 1410; wherein the processor 1410 may be configured to execute the executable instructions by executing the instructions The following process: obtaining a shooting instruction; adjusting the posture of the movable platform based on the shooting instruction, shooting multiple images, and performing coordinate transformation according to the multiple images to generate an eye-to-sky image, and the image of the eye to the sky is based on the image in the image. The sky area is an image obtained by coordinate transformation of the center of rotation.
在本公开的一个示例性实施例中,所述天空之眼图像中天空区域位于画面中心,天空以外的拍摄景物位于画面四周。在本公开的一个示例性实施例中,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;根据所述球形坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。In an exemplary embodiment of the present disclosure, in the eye-of-the-sky image, the sky area is located in the center of the picture, and the shooting scene outside the sky is located around the picture. In an exemplary embodiment of the present disclosure, the performing coordinate transformation according to the multiple images to generate the eye image of the sky includes: using the spherical coordinate system corresponding to the movable platform as a reference, converting the multiple images Mapping to the spherical coordinate system to generate a spherical panorama; according to the conversion relationship between the spherical coordinate system and the polar coordinate system, mapping the spherical panorama to the polar coordinate system to generate the eye image of the sky.
在本公开的一个示例性实施例中,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;以所述球形坐标系上预设位置为中心,将所述球形全景图展开,得到横幅图像;根据所述横幅图像所在平面坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。In an exemplary embodiment of the present disclosure, the performing coordinate transformation according to the multiple images to generate the eye image of the sky includes: using the spherical coordinate system corresponding to the movable platform as a reference, converting the multiple images Map to the spherical coordinate system to generate a spherical panorama; take the preset position on the spherical coordinate system as the center, expand the spherical panorama to obtain a banner image; according to the plane coordinate system and polar coordinates where the banner image is located The transformation relationship of the system is used to map the spherical panorama to the polar coordinate system to generate the eye image of the sky.
在本公开的一个示例性实施例中,所述设备还配置为:在接收到目标对象的播放指令后,播放所述多张图像生成所述天空之眼模式的图像的过程。In an exemplary embodiment of the present disclosure, the device is further configured to: after receiving a play instruction of the target object, play the plurality of images to generate the image in the eye of the sky mode.
在本公开的一个示例性实施例中,所述设备还配置为:识别所述天空之眼图像中的天空区域;将所述天空区域替换为预设图像,其中,所述预设图像包括二维码、目标对象信息、球形全景图像中的一种或多种,其中,所述球形全景图像是以图像中的天空以外的拍摄景物为旋转中心进行坐标变换得到的图像。In an exemplary embodiment of the present disclosure, the device is further configured to: identify a sky area in the eye of the sky image; replace the sky area with a preset image, wherein the preset image includes two One or more of the dimensional code, target object information, and spherical panoramic image, wherein the spherical panoramic image is an image obtained by coordinate transformation with the shooting scene other than the sky in the image as the rotation center.
在本公开的一个示例性实施例中,识别所述天空之眼图像中的天空区域,包括:基于所述天空之眼图像的灰度值和/或梯度值,识别所述天空之眼图像中的天空区域。In an exemplary embodiment of the present disclosure, identifying the sky region in the eye-to-sky image includes: identifying, based on grayscale values and/or gradient values of the eye-to-sky image, identifying the sky region in the eye-to-sky image sky area.
在本公开的一个示例性实施例中,所述预设图像为球形全景图像,所述将所述天空区域替换为预设图像包括:将所述天空区域中预设比例的区域替换为所述球形全景图像,以及将未替换的天空区域与所述球形全景图像相邻的边缘区域进行图像融合。In an exemplary embodiment of the present disclosure, the preset image is a spherical panorama image, and the replacing the sky area with a preset image includes: replacing a preset scale area in the sky area with the A spherical panorama image, and image fusion is performed on the unreplaced sky region and the edge region adjacent to the spherical panorama image.
在本公开的一个示例性实施例中,在生成球形全景图像之后,所述设 备还配置为:当所述球形全景图像的边缘没有对齐时,获取未对齐的图像区域对应的坐标;基于所述未对齐的图像区域对应的坐标,确定所述可移动平台的补拍位置;基于所述补拍位置,执行补拍操作,获得补拍图像。In an exemplary embodiment of the present disclosure, after generating the spherical panoramic image, the device is further configured to: when the edges of the spherical panoramic image are not aligned, obtain coordinates corresponding to the unaligned image areas; The coordinates corresponding to the unaligned image areas are used to determine a supplementary shooting position of the movable platform; based on the supplementary shooting position, a supplementary shooting operation is performed to obtain a supplementary shooting image.
在本公开的一个示例性实施例中,在生成球形全景图像之后,所述设备还配置为:当所述球形全景图像中的目标物体存在扭曲区域时,获取扭曲区域对应的坐标;基于所述扭曲区域对应的坐标,确定所述可移动平台的补拍位置;基于所述补拍位置,执行补拍操作,获得补拍图像。In an exemplary embodiment of the present disclosure, after generating the spherical panoramic image, the device is further configured to: when the target object in the spherical panoramic image has a distorted area, obtain the coordinates corresponding to the distorted area; The coordinates corresponding to the distorted area are used to determine a supplementary shooting position of the movable platform; based on the supplementary shooting position, a supplementary shooting operation is performed to obtain a supplementary shooting image.
在本公开的一个示例性实施例中,在执行补拍操作之前,所述设备还配置为:基于所述目标物体及所述可移动平台的视场角FOV,确定补拍图像的数量。In an exemplary embodiment of the present disclosure, before performing the supplementary shot operation, the device is further configured to: determine the number of supplementary shots based on the target object and the field of view FOV of the movable platform.
在本公开的一个示例性实施例中,在对所述多张图像进行拼接处理之前,所述设备还配置为:当所述可移动平台的拍照模式为夜景模式时,获取所述多张图像的亮度;判断所述多张图像的亮度是否在预设范围内;当所述多张图像的亮度不在预设范围内时,调节所述多张图像的亮度。In an exemplary embodiment of the present disclosure, before performing the stitching process on the multiple images, the device is further configured to: when the photographing mode of the movable platform is a night scene mode, acquire the multiple images judging whether the brightness of the multiple images is within the preset range; when the brightness of the multiple images is not within the preset range, adjust the brightness of the multiple images.
参考图15所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品1500,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 15, a program product 1500 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read only memory (CD-ROM) and include program codes, and can be stored in a terminal device, For example running on a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的 数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本公开实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present disclosure.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到 本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the appended claims.

Claims (25)

  1. 一种全景拍摄方法,其特征在于,包括:A panorama shooting method, comprising:
    获取拍摄指令;Get shooting instructions;
    基于所述拍摄指令调整可移动平台的姿态,拍摄多张图像;Adjust the posture of the movable platform based on the shooting instruction, and shoot multiple images;
    根据所述多张图像进行坐标转换生成天空之眼图像,所述天空之眼图像是以图像中的天空区域为旋转中心进行坐标变换得到的图像。Performing coordinate transformation according to the plurality of images to generate an eye-to-sky image, where the eye-to-sky image is an image obtained by performing coordinate transformation on the sky area in the image as a rotation center.
  2. 根据权利要求1所述的方法,其特征在于,所述天空之眼图像中天空区域位于画面中心,天空以外的拍摄景物位于画面四周。The method according to claim 1, wherein the sky area in the eye of the sky image is located in the center of the picture, and the shooting scene outside the sky is located around the picture.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:The method according to claim 1 or 2, wherein the generating an eye-to-sky image by performing coordinate transformation according to the plurality of images comprises:
    以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;Using the spherical coordinate system corresponding to the movable platform as a benchmark, map the plurality of images to the spherical coordinate system to generate a spherical panorama;
    根据所述球形坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。According to the conversion relationship between the spherical coordinate system and the polar coordinate system, the spherical panorama image is mapped to the polar coordinate system to generate the eye image of the sky.
  4. 根据权利要求1或2所述的方法,其特征在于,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:The method according to claim 1 or 2, wherein the generating an eye-to-sky image by performing coordinate transformation according to the plurality of images comprises:
    以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;Using the spherical coordinate system corresponding to the movable platform as a benchmark, map the plurality of images to the spherical coordinate system to generate a spherical panorama;
    以所述球形坐标系上预设位置为中心,将所述球形全景图展开,得到横幅图像;Taking the preset position on the spherical coordinate system as the center, expanding the spherical panorama to obtain a banner image;
    根据所述横幅图像所在平面坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。According to the transformation relationship between the plane coordinate system where the banner image is located and the polar coordinate system, the spherical panorama is mapped to the polar coordinate system to generate the eye image of the sky.
  5. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    在接收到目标对象的播放指令后,播放所述多张图像生成所述天空之眼图像的过程。After receiving the play instruction of the target object, the process of generating the image of the eye of the sky by playing the plurality of images.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    识别所述天空之眼图像中的天空区域;identifying a sky region in the eye of the sky image;
    将所述天空区域替换为预设图像,其中,所述预设图像包括二维码、目标对象信息、球形全景图像中的一种或多种,其中,所述球形全景图像是以图像中的天空以外的拍摄景物为旋转中心进行坐标变换得到的图像。Replace the sky area with a preset image, wherein the preset image includes one or more of a two-dimensional code, target object information, and a spherical panorama image, wherein the spherical panorama image is in the image The scene other than the sky is the image obtained by the coordinate transformation of the rotation center.
  7. 根据权利要求6所述的方法,其特征在于,所述识别所述天空之眼图像中的天空区域,包括:The method according to claim 6, wherein the identifying the sky area in the eye of the sky image comprises:
    基于所述天空之眼图像的灰度值和/或梯度值,识别所述天空之眼图像中的天空区域。Based on the grayscale values and/or gradient values of the eye-to-sky image, a sky region in the eye-to-sky image is identified.
  8. 根据权利要求6所述的方法,其特征在于,所述预设图像为球形全景图像,所述将所述天空区域替换为预设图像包括:The method according to claim 6, wherein the preset image is a spherical panoramic image, and the replacing the sky area with the preset image comprises:
    将所述天空区域中预设比例的区域替换为所述球形全景图像,以及将未替换的天空区域与所述球形全景图像相邻的边缘区域进行图像融合。Replacing an area with a preset proportion in the sky area with the spherical panoramic image, and performing image fusion on the unreplaced sky area and an edge area adjacent to the spherical panoramic image.
  9. 根据权利要求3或4所述的方法,其特征在于,在生成球形全景图像之后,还包括:The method according to claim 3 or 4, characterized in that, after generating the spherical panoramic image, further comprising:
    当所述球形全景图像中相邻图像的边缘没有对齐时,获取未对齐的图像区域对应的坐标;When the edges of adjacent images in the spherical panoramic image are not aligned, obtain the coordinates corresponding to the unaligned image areas;
    基于所述未对齐的图像区域对应的坐标,确定所述可移动平台的补拍位置;determining a supplementary shooting position of the movable platform based on the coordinates corresponding to the unaligned image areas;
    基于所述补拍位置,执行补拍操作,获得补拍图像。Based on the supplementary shot position, a supplementary shot operation is performed to obtain a supplementary shot image.
  10. 根据权利要求3或4所述的方法,其特征在于,在生成球形全景图像之后,还包括:The method according to claim 3 or 4, characterized in that, after generating the spherical panoramic image, further comprising:
    当所述球形全景图像中的目标物体存在扭曲区域时,获取扭曲区域对应的坐标;When the target object in the spherical panoramic image has a distorted area, obtain the coordinates corresponding to the distorted area;
    基于所述扭曲区域对应的坐标,确定所述可移动平台的补拍位置;determining a supplementary shooting position of the movable platform based on the coordinates corresponding to the twisted area;
    基于所述补拍位置,执行补拍操作,获得补拍图像。Based on the supplementary shot position, a supplementary shot operation is performed to obtain a supplementary shot image.
  11. 根据权利要求10所述的方法,其特征在于,在执行补拍操作之前,还包括:The method according to claim 10, wherein before performing the supplementary shooting operation, further comprising:
    基于所述目标物体及所述可移动平台的视场角FOV,确定补拍图像的数量。Based on the target object and the field of view FOV of the movable platform, the number of supplementary images is determined.
  12. 根据权利要求1所述的方法,其特征在于,在根据所述多张图像进行坐标转换生成天空之眼图像之前,还包括:The method according to claim 1, characterized in that, before performing coordinate transformation according to the plurality of images to generate the eye of the sky image, the method further comprises:
    当所述可移动平台的拍照模式为夜景模式时,获取所述多张图像的亮度;When the photographing mode of the movable platform is a night scene mode, acquiring the brightness of the multiple images;
    判断所述多张图像的亮度是否在预设范围内;judging whether the brightness of the plurality of images is within a preset range;
    当所述多张图像的亮度不在预设范围内时,调节所述多张图像的亮度。When the brightness of the plurality of images is not within the preset range, the brightness of the plurality of images is adjusted.
  13. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;以及processor; and
    存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行如下过程:Wherein, the processor is configured to perform the following processes by executing the executable instructions:
    获取拍摄指令;Get shooting instructions;
    基于所述拍摄指令调整可移动平台的姿态,拍摄多张图像;Adjust the posture of the movable platform based on the shooting instruction, and shoot multiple images;
    根据所述多张图像进行坐标转换生成天空之眼图像,所述天空之眼图像是以图像中的天空区域为旋转中心进行坐标变换得到的图像。Performing coordinate transformation according to the plurality of images to generate an eye-to-sky image, where the eye-to-sky image is an image obtained by performing coordinate transformation on the sky area in the image as a rotation center.
  14. 根据权利要求13所述的设备,其特征在于,所述天空之眼图像中天空区域位于画面中心,天空以外的拍摄景物位于画面四周。The device according to claim 13, wherein in the eye of the sky image, the sky area is located in the center of the picture, and the shooting scene outside the sky is located around the picture.
  15. 根据权利要求13或14所述的设备,其特征在于,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:The device according to claim 13 or 14, wherein the performing coordinate transformation according to the plurality of images to generate the eye of the sky image comprises:
    以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;Using the spherical coordinate system corresponding to the movable platform as a benchmark, map the plurality of images to the spherical coordinate system to generate a spherical panorama;
    根据所述球形坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。According to the conversion relationship between the spherical coordinate system and the polar coordinate system, the spherical panorama image is mapped to the polar coordinate system to generate the eye image of the sky.
  16. 根据权利要求13或14所述的设备,其特征在于,所述根据所述多张图像进行坐标转换生成天空之眼图像,包括:The device according to claim 13 or 14, wherein the performing coordinate transformation according to the plurality of images to generate the eye of the sky image comprises:
    以所述可移动平台对应的球形坐标系为基准,将所述多张图像映射至所述球形坐标系,生成球形全景图;Using the spherical coordinate system corresponding to the movable platform as a benchmark, map the plurality of images to the spherical coordinate system to generate a spherical panorama;
    以所述球形坐标系上预设位置为中心,将所述球形全景图展开,得到横幅图像;Taking the preset position on the spherical coordinate system as the center, expanding the spherical panorama to obtain a banner image;
    根据所述横幅图像所在平面坐标系与极坐标系的转换关系,将所述球形全景图映射至所述极坐标系下,生成所述天空之眼图像。According to the transformation relationship between the plane coordinate system where the banner image is located and the polar coordinate system, the spherical panorama is mapped to the polar coordinate system to generate the eye image of the sky.
  17. 根据权利要求13所述的设备,其特征在于,所述处理器还用于:The device of claim 13, wherein the processor is further configured to:
    在接收到目标对象的播放指令后,播放所述多张图像生成所述天空之眼图像的过程。After receiving the play instruction of the target object, the process of generating the image of the eye of the sky by playing the plurality of images.
  18. 根据权利要求13所述的设备,其特征在于,所述处理器还用于:The device of claim 13, wherein the processor is further configured to:
    识别所述天空之眼图像中的天空区域;identifying a sky region in the eye of the sky image;
    将所述天空区域替换为预设图像,其中,所述预设图像包括二维码、目标对象信息、球形全景图像中的一种或多种,其中,所述球形全景图像是以图像中的天空以外的拍摄景物为旋转中心进行坐标变换得到的图像。Replace the sky area with a preset image, wherein the preset image includes one or more of a two-dimensional code, target object information, and a spherical panoramic image, wherein the spherical panoramic image is the image in the image. The scene other than the sky is the image obtained by the coordinate transformation of the rotation center.
  19. 根据权利要求18所述的设备,其特征在于,所述识别所述天空之眼图像中的天空区域,包括:The device according to claim 18, wherein the identifying the sky area in the eye of the sky image comprises:
    基于所述天空之眼图像的灰度值和/或梯度值,识别所述天空之眼图像中的天空区域。Based on the grayscale values and/or gradient values of the eye-to-sky image, a sky region in the eye-to-sky image is identified.
  20. 根据权利要求18所述的设备,其特征在于,所述预设图像为球形全景图像,所述将所述天空区域替换为预设图像包括:The device according to claim 18, wherein the preset image is a spherical panoramic image, and the replacing the sky area with the preset image comprises:
    将所述天空区域中预设比例的区域替换为所述球形全景图像,以及将未替换的天空区域与所述球形全景图像相邻的边缘区域进行图像融合。Replacing an area with a preset proportion in the sky area with the spherical panoramic image, and performing image fusion on the unreplaced sky area and an edge area adjacent to the spherical panoramic image.
  21. 根据权利要求15或16所述的设备,其特征在于,在生成球形全景图像之后,还包括:The device according to claim 15 or 16, characterized in that after generating the spherical panoramic image, it further comprises:
    当所述球形全景图像中相邻图像的边缘没有对齐时,获取未对齐的图像区域对应的坐标;When the edges of adjacent images in the spherical panoramic image are not aligned, obtain the coordinates corresponding to the unaligned image areas;
    基于所述未对齐的图像区域对应的坐标,确定所述可移动平台的补拍位置;determining a supplementary shooting position of the movable platform based on the coordinates corresponding to the unaligned image areas;
    基于所述补拍位置,执行补拍操作,获得补拍图像。Based on the supplementary shot position, a supplementary shot operation is performed to obtain a supplementary shot image.
  22. 根据权利要求15或16所述的设备,其特征在于,在生成球形全景图像之后,还包括:The device according to claim 15 or 16, characterized in that after generating the spherical panoramic image, it further comprises:
    当所述球形全景图像中的目标物体存在扭曲区域时,获取扭曲区域对应的坐标;When the target object in the spherical panoramic image has a distorted area, obtain the coordinates corresponding to the distorted area;
    基于所述扭曲区域对应的坐标,确定所述可移动平台的补拍位置;determining a supplementary shooting position of the movable platform based on the coordinates corresponding to the twisted area;
    基于所述补拍位置,执行补拍操作,获得补拍图像。Based on the supplementary shot position, a supplementary shot operation is performed to obtain a supplementary shot image.
  23. 根据权利要求22所述的设备,其特征在于,在执行补拍操作之前,还包括:The device according to claim 22, further comprising:
    基于所述目标物体及所述可移动平台的视场角FOV,确定补拍图像的数量。Based on the target object and the field of view FOV of the movable platform, the number of supplementary images is determined.
  24. 根据权利要求13所述的设备,其特征在于,在根据所述多张图 像进行坐标转换生成天空之眼图像之前,还包括:The device according to claim 13, characterized in that, before performing coordinate transformation according to the plurality of images to generate the eye of the sky image, further comprising:
    当所述可移动平台的拍照模式为夜景模式时,获取所述多张图像的亮度;When the photographing mode of the movable platform is a night scene mode, acquiring the brightness of the multiple images;
    判断所述多张图像的亮度是否在预设范围内;judging whether the brightness of the plurality of images is within a preset range;
    当所述多张图像的亮度不在预设范围内时,调节所述多张图像的亮度。When the brightness of the plurality of images is not within the preset range, the brightness of the plurality of images is adjusted.
  25. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-12任一项所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method of any one of claims 1-12 is implemented.
PCT/CN2020/110835 2020-08-24 2020-08-24 Panoramic photography method, electronic device, and storage medium WO2022040868A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080014965.XA CN113454980A (en) 2020-08-24 2020-08-24 Panorama shooting method, electronic device and storage medium
PCT/CN2020/110835 WO2022040868A1 (en) 2020-08-24 2020-08-24 Panoramic photography method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/110835 WO2022040868A1 (en) 2020-08-24 2020-08-24 Panoramic photography method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022040868A1 true WO2022040868A1 (en) 2022-03-03

Family

ID=77808757

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110835 WO2022040868A1 (en) 2020-08-24 2020-08-24 Panoramic photography method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113454980A (en)
WO (1) WO2022040868A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117710709A (en) * 2024-02-01 2024-03-15 利亚德智慧科技集团有限公司 Data acquisition method, device, equipment and storage medium for shadow show

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020029B (en) * 2021-11-09 2022-06-10 深圳大漠大智控技术有限公司 Automatic generation method and device of aerial route for cluster and related components

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685956A (en) * 2013-12-11 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photo shooting method and device
US9779322B1 (en) * 2016-04-08 2017-10-03 Gopro, Inc. Systems and methods for generating stereographic projection content
CN109155820A (en) * 2017-12-29 2019-01-04 深圳市大疆创新科技有限公司 Synthetic method, UAV system, unmanned plane, terminal and its control method of spherical panorama
CN109428987A (en) * 2017-07-04 2019-03-05 北京视境技术有限公司 A kind of 360 degree of stereo photographic devices of wear-type panorama and image pickup processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685956A (en) * 2013-12-11 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photo shooting method and device
US9779322B1 (en) * 2016-04-08 2017-10-03 Gopro, Inc. Systems and methods for generating stereographic projection content
CN109428987A (en) * 2017-07-04 2019-03-05 北京视境技术有限公司 A kind of 360 degree of stereo photographic devices of wear-type panorama and image pickup processing method
CN109155820A (en) * 2017-12-29 2019-01-04 深圳市大疆创新科技有限公司 Synthetic method, UAV system, unmanned plane, terminal and its control method of spherical panorama

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Instantly share code, notes, and snippets. Equirectangular to Stereographic Projections (Little Planets) in MATLAB", 1 January 2014 (2014-01-01), XP055903461, Retrieved from the Internet <URL:https://gist.github.com/OrganicIrradiation/6087cb900352c7a6e2ce> *
CHAMBERLAIN FONG, VOGEL BRIAN K: "Warping Peirce Quincuncial Panoramas", 19 February 2012 (2012-02-19), XP055545670, Retrieved from the Internet <URL:https://arxiv.org/pdf/1011.3189v4> [retrieved on 20190122] *
SWART DAVID, TORRENCE BRUCE: "MATHEMATICS MEETS PHOTOGRAPHY PART II: Conformal Is the New Normal", MATH HORIZONS, MATHEMATICAL ASSOCIATION OF AMERICA, US, vol. 19, no. 2, 1 November 2011 (2011-11-01), US , pages 24 - 27, XP055903456, ISSN: 1072-4117, DOI: 10.4169/mathhorizons.19.2.24 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117710709A (en) * 2024-02-01 2024-03-15 利亚德智慧科技集团有限公司 Data acquisition method, device, equipment and storage medium for shadow show

Also Published As

Publication number Publication date
CN113454980A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
WO2021036353A1 (en) Photographing-based 3d modeling system and method, and automatic 3d modeling apparatus and method
TWI619088B (en) Image data processing system and associated methods for processing panorama images and image blending using the same
US11107195B1 (en) Motion blur and depth of field for immersive content production systems
CN105144687A (en) Image processing device, image processing method and program
WO2023280038A1 (en) Method for constructing three-dimensional real-scene model, and related apparatus
WO2018157464A1 (en) Image display method and electronic device
WO2019223158A1 (en) Vr image production method, apparatus, computer device, and storage medium
WO2018205104A1 (en) Unmanned aerial vehicle capture control method, unmanned aerial vehicle capturing method, control terminal, unmanned aerial vehicle control device, and unmanned aerial vehicle
CN109387186A (en) Mapping information acquisition methods, device, electronic equipment and storage medium
US10140754B1 (en) Graphical user interface system and method for modeling lighting of areas captured by location scouts
WO2022042350A1 (en) Target sky area image acquisition method and astrophotography device
WO2022040868A1 (en) Panoramic photography method, electronic device, and storage medium
CN114125310B (en) Photographing method, terminal device and cloud server
TW202203085A (en) Automatic camera guidance and settings adjustment
CN104580920A (en) Imaging processing method and user terminal
CN110392202A (en) Image processing apparatus, camera chain, image processing method
CN112261294A (en) Shooting method and device and electronic equipment
CN105827978B (en) Shooting method and device of hemispherical panorama and terminal
CN109302561A (en) A kind of image capture method, terminal and storage medium
WO2020103021A1 (en) Planning method and apparatus for surveying and mapping sampling points, control terminal and storage medium
US11100617B2 (en) Deep learning method and apparatus for automatic upright rectification of virtual reality content
JP3660108B2 (en) Image storage method and machine-readable medium
JP7415496B2 (en) Image processing device, program and image processing system
JP6532370B2 (en) Imaging system, composition setting device, and composition setting program
US20210092306A1 (en) Movable body, image generation method, program, and recording 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: 20950543

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

Country of ref document: EP

Kind code of ref document: A1