Method and device for generating plane video and portable terminal

By changing the perspective of panoramic images and recording them into videos, the problem of monotonous browsing of panoramic images is solved, and a richer user experience and highly watchable panoramic image sharing are achieved.

CN118612359APending Publication Date: 2024-09-06SHENZHEN LABPANO ARTIFICIAL INTELLIGENCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410628058.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing panoramic image browsing requires users to manually adjust the viewing angle of the image, resulting in a tedious browsing method and affecting user experience and viewing ability.

Method used

By changing the perspective of the spliced ​​panoramic images and recording the perspective transformation process into a video, a flat video is generated. Users can completely browse the panoramic image without manually adjusting the perspective.

Benefits of technology

It enriches the gameplay of panoramic images, improves user experience and viewing ability, provides a more interesting way to share, and enhances the fun of panoramic images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612359A
    Figure CN118612359A
Patent Text Reader

Abstract

The invention provides a plane video generation method and device and a portable terminal. The plane video generation method comprises the steps of obtaining a spliced panoramic image, performing view angle conversion on the panoramic image, performing video recording on the view angle conversion process of the panoramic image, and generating a plane video. According to the method, the plane video can be directly generated through the panoramic image, the ornamental value and interestingness of the panoramic image are improved, and more panoramic playing methods are provided for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of image and video processing, and in particular to a method, device and portable terminal for generating a planar video. Background Art

[0002] The existing panoramic images contain a 360° panoramic field of view, showing as much of the surrounding environment as possible, bringing an all-round experience. The image content is more colorful and avoids the single perspective of general flat renderings.

[0003] However, due to the wide field of view of panoramic images, users need to manually adjust the viewing angle of the picture to see more picture content when browsing. This browsing method is relatively monotonous and boring, and the viewing experience is not strong. It not only affects the user's actual usage experience, but also limits the popularization and application of panoramic cameras.

[0004] In order to improve the user experience of panoramic images, the present application provides a method and device for automatically generating a two-dimensional video through a panoramic image. The user does not need to manually adjust the viewing angle of the panoramic image, and can browse all the contents of the panoramic image in a complete and interesting way through the video. Summary of the invention

[0005] The embodiments of the present invention provide a method, device and portable terminal for generating a planar video. The technical problem to be solved is that, in view of the defects of the prior art, the existing panoramic images require users to manually and continuously adjust the picture viewing angle when browsing. This browsing method is relatively monotonous and boring, and the viewing experience is not strong, which affects the user's actual usage experience.

[0006] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide a method for generating a planar video, the method for generating a planar video comprising:

[0007] Obtain the stitched panoramic image;

[0008] Transforming the perspective of the panoramic image;

[0009] The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

[0010] In a specific implementation, the step of transforming the perspective of the panoramic image includes:

[0011] The panoramic image is projected into a first viewing angle mode, and the viewing angle of the panoramic image in the first viewing angle mode is transformed according to a first set trajectory until it is transformed into a second viewing angle mode.

[0012] In a specific implementation, the performing perspective transformation on the panoramic image further includes:

[0013] The panoramic image in the second viewing angle mode is transformed according to a second set trajectory.

[0014] In a specific implementation, the performing perspective transformation on the panoramic image further includes:

[0015] The panoramic image in the second viewing angle mode after the viewing angle is transformed according to the second set trajectory is then transformed according to a third set trajectory until it is transformed into a third viewing angle mode.

[0016] In a specific implementation, the first viewing mode is an asteroid viewing mode, and the second viewing mode is an immersive viewing mode;

[0017] The step of transforming the perspective of the panoramic image in the first perspective mode according to a first set trajectory until the panoramic image is in the second perspective mode specifically includes:

[0018] The panoramic image in the asteroid perspective mode starts to rotate with the panoramic camera position as the center, and gradually narrows the perspective until it is changed to the immersive perspective mode;

[0019] Alternatively, the panoramic image in the asteroid perspective mode is zoomed out in a set direction until it is transformed into an immersive perspective mode.

[0020] In a specific embodiment, the perspective transformation of the panoramic image in the second perspective mode according to a second set trajectory specifically includes: rotating and transforming the shooting perspective of the panoramic image in the immersive perspective mode with the panoramic camera position as the origin, and rotating and transforming the set angle.

[0021] In a specific embodiment, the third viewing mode is an asteroid viewing mode;

[0022] The panoramic image after the perspective transformation according to the second set track is then transformed according to a third set track until it is transformed to a third perspective mode, specifically including:

[0023] The panoramic image in the second perspective mode after the perspective transformation according to the second set trajectory is rotated with the panoramic camera position as the center, and the perspective is gradually enlarged until it is transformed into the asteroid perspective mode;

[0024] Alternatively, the panoramic image in the second perspective mode after the perspective transformation according to the second set trajectory is expanded in a direction opposite to the set direction until it is transformed into the asteroid perspective mode.

[0025] In a specific implementation, a planar video generation device is also included, and the planar video generation device includes:

[0026] An acquisition module, wherein the acquisition module is used to acquire the stitched panoramic image;

[0027] A viewing angle transformation module, the viewing angle transformation module is used to transform the viewing angle of the panoramic image;

[0028] A recording module is used to record the process of the panoramic image transformation to generate a two-dimensional video.

[0029] In a specific embodiment, a portable terminal is also included, including:

[0030] one or more processors;

[0031] Memory;

[0032] And, one or more computer programs, the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, characterized in that the processor implements the steps of the method for generating a planar video as described in any one of the above-mentioned specific embodiments when executing the computer program.

[0033] In a specific embodiment, a storage medium is further included, wherein the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the method for generating a planar video as described in any one of the above specific embodiments.

[0034] The beneficial effect of the present invention is that, different from the prior art, the embodiment of the present invention provides a method, device and portable terminal for generating a planar video, wherein the method for generating a planar video includes:

[0035] Obtain the stitched panoramic image;

[0036] Transforming the perspective of the panoramic image;

[0037] The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

[0038] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:

[0039] By transforming the perspective of the stitched panoramic image and recording the process of the perspective transformation, a two-dimensional video of different perspectives in the panoramic image is generated, thereby transforming the panoramic image into a two-dimensional video, which changes the way the panoramic image is played.

[0040] The method for generating planar videos provided in this application enriches the gameplay of panoramic images, improves the user's panoramic experience, facilitates users to share panoramic images more interestingly, greatly improves the watchability and fun of panoramic images, and provides users with more gameplay. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 It is a schematic diagram of the implementation flow of a method for generating a planar video provided in the first embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of the module composition of a device for generating a planar video provided in the second embodiment of the present invention;

[0044] Figure 3 It is a functional structure diagram of a portable terminal provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0045] The present application is further described in detail below in conjunction with the accompanying drawings and implementation methods. It is particularly noted that the following implementation methods are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following implementation methods are only some implementation methods of the present application rather than all implementation methods. All other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0046] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other steps or modules inherent to these processes, methods, products or devices.

[0047] The terms "first", "second", and "third" in this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first", "second", and "third" may explicitly or implicitly include at least one of the features.

[0048] The above terms are only for the convenience of description and should not be construed as limitations on the present technical solution.

[0049] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0050] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:

[0051] Embodiment 1:

[0052] Figure 1 The implementation process of a method for generating a planar video provided in the first embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows, wherein step one, step two, etc. are only used to introduce the corresponding method flow, and do not limit the specific flow sequence.

[0053] Step 1, obtaining the stitched panoramic image;

[0054] The stitched panoramic image is a panoramic image formed by stitching pictures taken by multiple cameras. One specific implementation is to stitch multiple fisheye images taken by a panoramic camera to obtain a stitched panoramic image.

[0055] A stitched panoramic image is obtained, wherein a specific implementation manner is that the panoramic camera directly obtains the stitched panoramic image by stitching a plurality of captured fisheye images; another specific implementation manner is that a portable terminal is connected to the panoramic camera via an app application, and the panoramic camera sends the stitched panoramic image to the app application of the portable terminal; another specific implementation manner is that a web server is built on the panoramic camera, and the portable terminal accesses the web server via a browser, and the web server sends the stitched panoramic image to the portable terminal in the form of an HTML5 page, and the portable terminal receives the stitched panoramic image with a browser that supports HTML5, and performs analysis and rendering; another specific implementation manner is that the panoramic camera sends an original fisheye image that has not been stitched, and the portable terminal obtains the original fisheye image and stitches it internally into a panoramic image.

[0056] Step 2: transforming the perspective of the panoramic image;

[0057] The perspective change includes the change of the viewing angle and the change of the shooting perspective, the change of the viewing angle includes the increase and decrease of the viewing angle, and the change of the shooting perspective is the change of the shooting perspective. The change of the perspective brings about the change of the current visible image frame of the panoramic image.

[0058] The step of transforming the perspective of the panoramic image comprises:

[0059] The panoramic image is projected into a first viewing angle mode, and the viewing angle of the panoramic image in the first viewing angle mode is transformed according to a first set trajectory until it is transformed into a second viewing angle mode.

[0060] The step of transforming the perspective of the panoramic image further includes:

[0061] The panoramic image in the second viewing angle mode is transformed according to a second set trajectory.

[0062] The step of transforming the perspective of the panoramic image further includes:

[0063] The panoramic image in the second viewing angle mode after the viewing angle is transformed according to the second set trajectory is then transformed according to a third set trajectory until it is transformed into a third viewing angle mode.

[0064] One specific implementation manner is that the first viewing mode is an asteroid viewing mode, and the asteroid viewing mode is a panoramic viewing mode with a field of view of 360°, a visual effect of projecting a panoramic image into the shape of an asteroid, specifically, by expanding the panoramic image according to longitude and latitude, that is, the width of the panoramic image corresponds to latitude 0-2π, and the height corresponds to longitude 0-π, and the expanded panoramic image is projected into a sphere.

[0065] The second viewing angle mode is the immersive viewing angle mode, which is an all-round and fully surrounded visual experience effect. Through the immersive viewing angle mode, the user can feel as if they are in a real environment, observing and exploring in all directions. The field of view of the panoramic image in the immersive viewing angle mode is a local field of view angle.

[0066] The step of transforming the perspective of the panoramic image in the first perspective mode according to a first set trajectory until the panoramic image is in the second perspective mode specifically includes:

[0067] The panoramic image in the asteroid perspective mode starts to rotate with the panoramic camera position as the center, and gradually narrows the perspective until it is changed to the immersive perspective mode;

[0068] The panoramic image in the asteroid perspective mode is circular in shape, and it starts to rotate with the panoramic camera position as the center, that is, the center of the circular shape as the center, and rotates clockwise or counterclockwise, and gradually narrows the picture angle of view while rotating, that is, the image is enlarged, until it is transformed into the immersive perspective mode, and the rotation angle is preferably one circle. After one circle of rotation, the panoramic image just enters the immersive perspective mode, and the perspective becomes smaller. Among them, the rotation speed can be uniform rotation, accelerated rotation, or decelerated rotation, preferably uniform rotation. The first set trajectory is a transformation trajectory that starts to rotate with the panoramic camera position as the center, and gradually narrows the perspective until it is transformed into the immersive perspective mode.

[0069] Another specific implementation is to reduce the viewing angle of the panoramic image in the asteroid viewing mode in a set direction until it is transformed into an immersive viewing mode.

[0070] The panoramic image in the asteroid perspective mode is zoomed out in a specific direction, from a panoramic perspective to a local perspective, and the panoramic image is enlarged at the same time until it is transformed into an immersive perspective mode. The first set trajectory is a transformation trajectory for zooming out in a set direction until it is transformed into an immersive perspective mode.

[0071] One specific implementation method is that the perspective of the panoramic image in the second perspective mode is transformed according to a second set trajectory, specifically including: rotating and transforming the shooting perspective of the panoramic image in the immersive perspective mode with the panoramic camera position as the origin, and rotating and transforming to a set angle.

[0072] The second viewing angle mode is an immersive viewing angle mode. When the panoramic image is transformed from the asteroid viewing angle mode to the immersive viewing angle mode according to the first set trajectory, the shooting angle is the shooting angle with the panoramic camera position as the origin. For the panoramic image in the immersive viewing angle mode, the shooting angle is rotated and the set angle is rotated. Preferably, the rotation is transformed by 360°, that is, the camera position is rotated as the origin to view all the image contents of the panoramic image. The speed of the rotation transformation can be uniform rotation, accelerated rotation, or decelerated rotation, preferably uniform rotation transformation.

[0073] One specific implementation is that the third viewing angle mode is an asteroid viewing angle mode;

[0074] The panoramic image in the second viewing angle mode after the viewing angle is transformed according to the second set trajectory is then transformed according to a third set trajectory until it is transformed to a third viewing angle mode, specifically comprising:

[0075] The panoramic image in the second perspective mode after the perspective transformation according to the second set trajectory is rotated with the panoramic camera position as the center, and the perspective is gradually expanded until it is transformed into the asteroid perspective mode.

[0076] The third perspective mode is the same as the first perspective mode, both of which are the asteroid perspective modes. The panoramic image is transformed from the asteroid perspective mode to the immersive perspective mode according to the first set trajectory, and then the shooting perspective is rotated and transformed according to the second set trajectory. Finally, the perspective is transformed again according to the third set trajectory and transformed back to the asteroid perspective mode.

[0077] In one specific implementation manner, the third setting trajectory is a transformation trajectory opposite to the first setting trajectory.

[0078] One specific implementation is that when the first setting trajectory is a transformation trajectory that starts rotating with the panoramic camera position as the center and gradually narrows the viewing angle until it changes to the immersive viewing mode, the third setting trajectory is a transformation trajectory that starts rotating in the opposite direction with the panoramic camera position as the center and gradually increases the viewing angle until it changes to the asteroid viewing mode. That is, the panoramic image in the second viewing mode after the viewing angle is transformed according to the second setting trajectory is rotated in the opposite direction with the panoramic camera position as the center. For example, if the first setting trajectory rotates clockwise, then in the third setting trajectory it rotates counterclockwise and gradually expands the viewing angle until it changes to the asteroid viewing mode.

[0079] Another specific implementation is that when the first setting trajectory is a trajectory for reducing the viewing angle in a set direction until the immersive viewing mode is changed, the third setting trajectory is a trajectory for increasing the viewing angle in a direction opposite to the setting direction until the immersive viewing mode is changed. That is, the panoramic image in the immersive viewing mode is enlarged in a direction opposite to the setting direction until the immersive viewing mode is changed.

[0080] Step 3, recording the process of the panoramic image perspective transformation to generate a two-dimensional video;

[0081] In step 2, the panoramic image is transformed from the asteroid perspective mode to the immersive perspective mode through the first trajectory transformation. After the immersive perspective mode is transformed according to the second trajectory, all environmental details of the panoramic image are viewed. Finally, the shooting perspective is transformed back to the asteroid perspective mode according to the third trajectory transformation. The entire transformation process of the panoramic image is recorded in video.

[0082] One specific implementation method is to record the perspective change process of the panoramic image to generate a two-dimensional video, and the duration of the two-dimensional video is controlled between 10 seconds and 20 seconds, so that the video does not appear to be too dragged out, which is conducive to improving the efficiency of users watching the two-dimensional video. The duration of the two-dimensional video is preferably 10 seconds, and a 10-second two-dimensional video gives users a better user experience when sharing and watching.

[0083] The method for generating planar videos provided in the embodiment of the present application enriches the gameplay of panoramic images, improves the user's panoramic experience, facilitates users to share panoramic images more interestingly, greatly improves the watchability and fun of panoramic images, and provides users with more gameplay.

[0084] Embodiment 2:

[0085] Figure 2 A schematic diagram of the module composition of a planar video generating device provided in the second embodiment of the present invention is shown. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown.

[0086] An embodiment of the present invention provides a planar video generation device, the planar video generation device comprising:

[0087] An acquisition module, wherein the acquisition module is used to acquire the stitched panoramic image;

[0088] A viewing angle transformation module, the viewing angle transformation module is used to transform the viewing angle of the panoramic image;

[0089] A recording module is used to record the process of the panoramic image transformation to generate a two-dimensional video.

[0090] The adjustment module includes a first adjustment module and a second adjustment module.

[0091] The perspective transformation module includes a first perspective transformation module, a second perspective transformation module and a third perspective transformation module.

[0092] The first viewing angle transformation module is used to project the panoramic image into a first viewing angle mode, and perform viewing angle transformation on the panoramic image in the first viewing angle mode according to a first set trajectory until the panoramic image is transformed into a second viewing angle mode.

[0093] In one specific implementation, the first viewing mode is an asteroid viewing mode, and the second viewing mode is an immersive viewing mode;

[0094] The step of transforming the perspective of the panoramic image in the first perspective mode according to a first set trajectory until the panoramic image is in the second perspective mode specifically includes:

[0095] The panoramic image in the asteroid perspective mode is rotated around the panoramic camera position, and the perspective is gradually reduced until it is transformed into the immersive perspective mode.

[0096] Another specific implementation is to reduce the viewing angle of the panoramic image in the asteroid viewing mode in a set direction until it is transformed into an immersive viewing mode.

[0097] The second viewing angle transformation module is used to transform the viewing angle of the panoramic image in the second viewing angle mode according to a second set trajectory.

[0098] One specific implementation method is that the perspective of the panoramic image in the second perspective mode is transformed according to a second set trajectory, specifically including: rotating and transforming the shooting perspective of the panoramic image in the immersive perspective mode with the panoramic camera position as the origin, and rotating and transforming to a set angle.

[0099] The third viewing angle transformation module is used to transform the panoramic image after the viewing angle transformation according to the second setting trajectory according to a third setting trajectory until it is transformed into a third viewing angle mode.

[0100] One specific implementation is that the third viewing angle mode is an asteroid viewing angle mode;

[0101] The panoramic image after the perspective transformation according to the second set track is then transformed according to a third set track until it is transformed to a third perspective mode, specifically including:

[0102] The panoramic image after the perspective transformation according to the second set trajectory is rotated with the panoramic camera position as the center, and the perspective is gradually expanded until it is transformed into the asteroid perspective mode.

[0103] Another specific implementation is to expand the viewing angle of the panoramic image in the immersive viewing mode in a direction opposite to the set direction until it is transformed into the asteroid viewing mode.

[0104] It should be noted that, for technical details not fully described in this embodiment, reference may be made to the method for quickly browsing the panoramic camera album provided in the first embodiment above, which will not be described in detail here.

[0105] Embodiment three:

[0106] In an embodiment of the present invention, a portable terminal is provided, the portable terminal comprising:

[0107] one or more processors;

[0108] Memory;

[0109] And, one or more computer programs, the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, characterized in that when the processor executes the computer program, the steps of the method for generating a planar video described in any specific implementation method described in Example 1 of the present invention are implemented.

[0110] For example, the computer program may perform the following steps:

[0111] Obtain the stitched panoramic image;

[0112] Transforming the perspective of the panoramic image;

[0113] The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

[0114] The specific implementation of each of the above operations can be found in the above embodiment 1, which will not be described in detail here.

[0115] Embodiment 4:

[0116] In an embodiment of the present invention, a storage medium is provided, which stores a computer program, and the computer program is suitable for loading by a processor to execute the steps of the method for generating a planar video described in any specific implementation method described in Embodiment 1 of the present invention.

[0117] For example, the computer program may perform the following steps:

[0118] Obtain the stitched panoramic image;

[0119] Transforming the perspective of the panoramic image;

[0120] The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

[0121] The specific implementation of each of the above operations can be found in the above embodiment 1, which will not be described in detail here.

[0122] Different from the prior art, the embodiments of the present invention provide a method, device and portable terminal for generating a planar video, wherein the method for generating a planar video includes:

[0123] Obtain the stitched panoramic image;

[0124] Transforming the perspective of the panoramic image;

[0125] The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

[0126] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:

[0127] By transforming the perspective of the stitched panoramic image and recording the process of the perspective transformation, a two-dimensional video of different perspectives in the panoramic image is generated, thereby transforming the panoramic image into a two-dimensional video, which changes the way the panoramic image is played.

[0128] The method for generating planar videos provided in this application enriches the gameplay of panoramic images, improves the user's panoramic experience, facilitates users to share panoramic images more interestingly, greatly improves the watchability and fun of panoramic images, and provides users with more gameplay.

[0129] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0131] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a terminal device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0132] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a planar video, characterized in that: The method for generating the planar video includes: Obtain the stitched panoramic image; Transforming the perspective of the panoramic image; The process of changing the viewing angle of the panoramic image is recorded to generate a two-dimensional video.

2. The method for generating a planar video according to claim 1, characterized in that: The step of transforming the perspective of the panoramic image comprises: The panoramic image is projected into a first viewing angle mode, and the viewing angle of the panoramic image in the first viewing angle mode is transformed according to a first set trajectory until it is transformed into a second viewing angle mode.

3. The method for generating a planar video according to claim 2, characterized in that: The step of transforming the perspective of the panoramic image further includes: The panoramic image in the second viewing angle mode is transformed according to a second set trajectory.

4. The method for generating a planar video according to claim 3, characterized in that: The step of transforming the perspective of the panoramic image further includes: The panoramic image in the second viewing angle mode after the viewing angle is transformed according to the second set trajectory is then transformed according to a third set trajectory until it is transformed into a third viewing angle mode.

5. A method for generating a planar video according to any one of claims 2 to 4, characterized in that: The first viewing mode is an asteroid viewing mode, and the second viewing mode is an immersive viewing mode; The step of transforming the perspective of the panoramic image in the first perspective mode according to a first set trajectory until the panoramic image is in the second perspective mode specifically includes: The panoramic image in the asteroid perspective mode starts to rotate with the panoramic camera position as the center, and gradually narrows the perspective until it is changed to the immersive perspective mode; Alternatively, the panoramic image in the asteroid perspective mode is zoomed out in a set direction until it is transformed into an immersive perspective mode.

6. The method for generating a planar video according to claim 5, characterized in that: The perspective transformation of the panoramic image in the second perspective mode according to a second set trajectory specifically includes: rotating and transforming the shooting perspective of the panoramic image in the immersive perspective mode with the panoramic camera position as the origin, and rotating and transforming the panoramic image to a set angle.

7. The method for generating a planar video according to claim 4, characterized in that: The third perspective mode is the asteroid perspective mode; The panoramic image after the perspective transformation according to the second set track is then transformed according to a third set track until it is transformed to a third perspective mode, specifically including: The panoramic image in the second perspective mode after the perspective transformation according to the second set trajectory is rotated with the panoramic camera position as the center, and the perspective is gradually enlarged until it is transformed into the asteroid perspective mode; Alternatively, the panoramic image in the second perspective mode after the perspective transformation according to the second set trajectory is expanded in a direction opposite to the set direction until it is transformed into the asteroid perspective mode.

8. A planar video generation device, characterized in that: The planar video generating device comprises: An acquisition module, wherein the acquisition module is used to acquire the stitched panoramic image; A viewing angle transformation module, wherein the viewing angle transformation module is used to transform the viewing angle of the panoramic image; A recording module is used to record the process of the panoramic image transformation to generate a two-dimensional video.

9. A portable terminal, characterized in that: include: one or more processors; Memory; And, one or more computer programs, the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, characterized in that when the processor executes the computer program, the steps of the method for generating a planar video as described in any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the method for generating a planar video as described in any one of claims 1 to 7.