Method and device for generating bullet time video special effects and panoramic camera

Acquiring images through a panoramic camera and performing panoramic stitching and rotation center coordinate confirmation solves the problems of slow progress and high cost of bullet time shooting in the existing technology, and achieves high-precision, low-cost bullet time video special effects generation.

CN118524178BActive Publication Date: 2024-10-01LABPANO TECHNOLOGY (CHANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410985830.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing system that achieves bullet time shooting effects has a large number of cameras and inaccurate control, which results in slow shooting progress and cannot adapt to shooting needs. It is also expensive and has high shooting costs.

Method used

A panoramic camera is used to acquire images while rotating around the target object, panoramic stitching is performed and projected into the panoramic sphere model. The coordinates of the rotation center are confirmed through inertial sensor data and the Kalman filter algorithm, and the plane image is expanded for target object tracking to achieve bullet time video special effects.

Benefits of technology

It reduces production costs and is simple to operate. By combining camera posture judgment and target detection AI algorithms, it improves the accuracy and recognition rate of bullet time video special effects and has strong adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118524178B_ABST
    Figure CN118524178B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and panoramic camera for generating bullet time video special effects, the method comprising: obtaining images captured by each lens when the panoramic camera rotates around a target object, performing panoramic stitching on the images captured by each lens, and projecting them into a panoramic spherical model, confirming the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model, unfolding the panoramic spherical model into a plane image, tracking the target object within a set coordinate range of the rotation center, obtaining a video about the target object, and realizing the bullet time video special effects. The generation and production cost of the bullet time video special effects of the present application is low, and because the bullet time video special effects are obtained by automatically editing the panoramic video captured when the panoramic camera rotates around the target object, the operation is simple and the special effects are highly accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of video processing technology, and specifically to a method and device for generating bullet time video special effects and a panoramic camera. Background Art

[0002] Bullet time is a photography technique used in movies, television commercials or computer games to simulate speed-changing effects, such as enhanced slow motion and time freeze.

[0003] There are five ways to shoot bullet time: camera array, single camera shooting, still scene, CG animation, and multi-camera repeated shooting. Bullet time was originally implemented using a series of still cameras (not video cameras) surrounding an object. These camera arrays are usually triggered simultaneously or sequentially. Combining each frame of photos taken by each camera can form a perspective rotation effect on a still object, or a super slow motion effect. In theory, a virtual camera can achieve an infinite perspective and frame refresh rate, but it is usually limited by the shooting path when implemented with a still camera.

[0004] The characteristics of bullet time are not only extreme changes in time, but also extreme changes in space: the shooting angle (audience perspective) also rotates around the scene while the slow motion is in progress. Bullet time is widely used in film and television, advertising, MV, creative activities and other fields. However, although the visual effect of bullet time seems gorgeous, it is relatively cumbersome to produce. Traditional cameras cannot always keep the shooting angle to frame the target object while moving at high speed. Therefore, to achieve the bullet time shooting effect, it is necessary to place multiple cameras in the shooting path in advance, and shoot the frame sequence by controlling the exposure sequence of the camera, and then achieve the bullet time shooting effect through post-synthesis. The existing system for achieving the bullet time shooting effect has a large number of cameras and imprecise control, which leads to slow shooting progress and cannot meet the shooting needs. It is also expensive and has high shooting costs. Summary of the invention

[0005] The embodiments of the present application provide a method, device and panoramic camera for generating bullet time video special effects. The technical problem to be solved is that, in view of the defects of the prior art, the existing system for achieving bullet time shooting effect has a large number of cameras and inaccurate control, resulting in slow shooting progress and being unable to meet shooting needs. In addition, the system is expensive and has a high shooting cost.

[0006] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide a method, device and panoramic camera for generating bullet time video special effects, wherein the method for generating bullet time video special effects comprises:

[0007] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0008] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0009] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0010] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

[0011] In a specific implementation, the determining the coordinates of the rotation center of the panoramic camera rotating around the target object in the panoramic spherical model includes:

[0012] Acquire the inertial sensor data of the panoramic camera, and calculate the non-gravitational acceleration a of the panoramic camera when it rotates around the target object in the inertial coordinate system according to the inertial sensor data through the error state Kalman filter algorithm. t , the non-gravitational acceleration a t is the acceleration of the panoramic camera caused by other forces except gravity;

[0013] The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c , according to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model are calculated.

[0014] In a specific implementation, the inertial sensor data of the panoramic camera is obtained, and the non-gravitational acceleration a of the panoramic camera rotating around the target object in the inertial coordinate system is calculated based on the inertial sensor data by using an error state Kalman filter algorithm. t , the non-gravitational acceleration a t The acceleration of the panoramic camera caused by other forces other than gravity, including:

[0015] The inertial sensor data includes accelerometer values ​​a m , the rotation matrix R of the panoramic camera in the inertial coordinate system is calculated by the error state Kalman filter algorithm. t , the non-gravitational acceleration a t and gravitational acceleration g t ;

[0016] The rotation matrix R of the panoramic camera t , the non-gravitational acceleration a t and gravitational acceleration g tSatisfy the acceleration measurement model: a m =R t (a t -g t )+a bt +a n , wherein the a n is the accelerometer noise, the bt is the true bias error of the acceleration measurement model.

[0017] In a specific embodiment, the non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c ,include:

[0018] The unit vector a t_c satisfy: ;

[0019] The unit vector a t_c The unit direction vector representing the centripetal acceleration of the panoramic camera in the camera coordinate system.

[0020] In a specific implementation, the calculating of the longitude and latitude coordinates of the rotation center in the panoramic spherical model according to the geometric position relationship of the spherical perspective model includes:

[0021] The unit vector a t_c With weight [a t_cx , a t_cy , a t_cz ] T ;

[0022] According to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model can be calculated as follows:

[0023] λ = arctan(-a t_cz / a t_cx )

[0024] φ = arctan(sqrt(a t_cx ²+a t_cz ²) / a t_cy )

[0025] Among them, λ is longitude and φ is latitude.

[0026] In a specific implementation, unfolding the panoramic spherical model into a plane image and tracking the target object within a set coordinate range of the rotation center includes:

[0027] The panoramic spherical model is unfolded by equidistant cylindrical projection to a rectangular plane image. The coordinate range of the rotation center is:

[0028] [λ-T 1 ,λ+T 1 ],[φ-T 2 , φ+T 2 ], where T 1 , T 2 To set the experience value.

[0029] In a specific implementation, the method for generating the bullet time video special effects further includes:

[0030] The frame rate of the video of the target object is adjusted to generate a slow-motion video with a target frame rate, thereby realizing a bullet-time video effect.

[0031] In a specific implementation, a device for generating a bullet time video special effect is also included, and the device for generating a bullet time video special effect includes:

[0032] A panoramic video acquisition module, which is used to acquire images captured by each lens when the panoramic camera rotates around the target object;

[0033] A panoramic stitching module, which is used to perform panoramic stitching on the images collected by each lens and project them into a panoramic spherical model;

[0034] A rotation center confirmation module, the rotation center confirmation module is used to confirm the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0035] A target tracking module, which is used to expand the panoramic ball model into a plane image, track the target object within the set coordinate range of the rotation center, obtain a video about the target object, and realize a bullet time video effect;

[0036] A frame rate adjustment module is used to adjust the frame rate of the video of the target object, generate a slow-motion video with a target frame rate, and realize a bullet-time video effect.

[0037] In a specific embodiment, a panoramic camera is also included, including one or more processors, a memory and one or more computer programs, 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 the bullet time video special effects described in any of the above specific embodiments are implemented.

[0038] In a specific embodiment, it also includes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for generating the bullet-time video special effects described in any of the above specific embodiments are implemented.

[0039] The beneficial effect of the present application is that, different from the prior art, the present application provides a method, device and panoramic camera for generating bullet time video special effects, wherein the method for generating bullet time video special effects includes:

[0040] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0041] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0042] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0043] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

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

[0045] By acquiring the images captured by each lens of the panoramic camera when it rotates around the target object and performing panoramic stitching, the images are projected into a panoramic spherical model, and the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model are confirmed by setting an algorithm, and then the target object is tracked within the set coordinate range of the rotation center, a video about the target object is obtained, and a bullet time video effect is achieved.

[0046] The bullet time video effects of the present application have low production costs, and because the bullet time video effects are obtained by automatically editing a panoramic video captured by a panoramic camera rotating around a target object, the operation is simple. In addition, the sampling algorithm combines the camera posture judgment and target detection AI algorithm, and has the advantages of high recognition rate and precise target positioning, which greatly improves the accuracy of the bullet time video effects.

[0047] This application adds a new way to play panoramic videos for users, improving user playability. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 This is a schematic diagram of the implementation process of a method for generating a bullet time video special effect provided in Example 1 of the present application;

[0050] Figure 2 This is a schematic diagram of the module composition of a device for generating a bullet time video special effect provided in the second embodiment of the present application;

[0051] Figure 3 This is a block diagram of the internal module structure of a panoramic camera provided in Example 3 of the present application. DETAILED DESCRIPTION

[0052] 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.

[0053] 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.

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

[0055] 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.

[0056] The specific implementation of this application is described in detail below in conjunction with specific embodiments:

[0057] Embodiment 1.

[0058] Figure 1 The implementation process of a method for generating a bullet time video special effect provided in Example 1 of the present application is shown. For the sake of convenience of explanation, only the part related to the embodiment of the present application is shown, which is described in detail as follows.

[0059] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0060] It should be noted that the embodiments of the present application are applicable to video image processing devices such as video display and acquisition. One specific implementation method is that when the target object is the photographer himself, the image captured by each lens when the panoramic camera rotates around the target object can be obtained by the following method:

[0061] The target object uses a selfie stick to swing the panoramic camera in a circular motion above the head. One end of the selfie stick is held by the target object, and the other end is fixedly connected to the panoramic camera. The panoramic camera rotates around the target object with the target object as the center. At the same time, each lens of the panoramic camera captures the motion status of objects and / or people located on the side of the target object.

[0062] Furthermore, in order to better realize the bullet time video effect, it is best to make the panoramic camera rotate in a horizontal plane perpendicular to the body of the target object when the selfie stick is swung. The panoramic camera does not necessarily need to be directly above the target object, as long as it moves in a circular motion in a horizontal plane perpendicular to the body of the target object above the head of the target object.

[0063] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0064] It should be noted that the panoramic camera usually has two or more fisheye lenses to capture a 360° field of view. The images captured by each fisheye lens of the panoramic camera are panoramically stitched and projected into a panoramic spherical model. Each pixel point is stored in the form of longitude and latitude coordinates in the panoramic spherical model to facilitate subsequent data processing.

[0065] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0066] It should be noted that, in order to obtain image data about the target object in the panoramic spherical model, it is first necessary to confirm the coordinates of the rotation center of the panoramic camera rotating around the target object in the panoramic spherical model.

[0067] In one specific implementation manner, determining the coordinates of the rotation center of the panoramic camera rotating around the target object in the panoramic spherical model includes:

[0068] Acquire the inertial sensor data of the panoramic camera, and calculate the non-gravitational acceleration a of the panoramic camera when it rotates around the target object in the inertial coordinate system according to the inertial sensor data through the error state Kalman filter algorithm. t , the non-gravitational acceleration a t is the acceleration of the panoramic camera caused by other forces except gravity;

[0069] The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c , according to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model are calculated.

[0070] It should be noted that when the panoramic camera is performing circular motion, the inertial sensor unit of the panoramic camera is constantly recording the acceleration data and angular velocity data of the panoramic camera. According to the acceleration data and angular velocity data, the attitude parameters of each frame image of the panoramic camera in the inertial coordinate system can be solved through the error state Kalman filter algorithm, and the non-gravitational acceleration a of the panoramic camera when rotating around the target object can be calculated according to the attitude parameters. t , the non-gravitational acceleration a t is the acceleration of the panoramic camera caused by other forces except gravity, and then according to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model can be calculated.

[0071] One specific implementation method is to obtain inertial sensor data of the panoramic camera, and calculate the non-gravitational acceleration a of the panoramic camera rotating around the target object in an inertial coordinate system according to the inertial sensor data through an error state Kalman filter algorithm. t , the non-gravitational acceleration a t The acceleration of the panoramic camera caused by other forces other than gravity, including:

[0072] The inertial sensor data includes accelerometer values ​​a m , the rotation matrix R of the panoramic camera in the inertial coordinate system is calculated by the error state Kalman filter algorithm. t , the non-gravitational acceleration a t and gravitational acceleration g t ;

[0073] The rotation matrix R of the panoramic camera t , the non-gravitational acceleration a t and gravitational acceleration g t Satisfy the acceleration measurement model: a m =R t (a t -g t )+a bt +a n , wherein the a n is the accelerometer noise, the bt is the true bias error of the acceleration measurement model.

[0074] It should be noted that the rotation matrix R of the panoramic camera is t represents the real rotation matrix of the panoramic camera from the camera coordinate system to the inertial coordinate system, the non-gravitational acceleration a t represents the real acceleration of the panoramic camera in the inertial coordinate system caused by the resultant force of other external forces other than gravity. The gravitational acceleration g t Indicates the gravitational acceleration to which the panoramic camera is subjected in the inertial coordinate system.

[0075] In the acceleration measurement model of the panoramic camera, the actual accelerometer value measured by the inertial sensor unit of the panoramic camera is a m , the a m It is the acceleration generated by all external forces including gravity based on the camera coordinate system and includes the accelerometer noise a n , and the actual bias error a of the acceleration measurement model bt .

[0076] Through the acceleration measurement model, combined with the attitude kinematic equation and the constraint relationship between the state parameters, the error state Kalman filter algorithm can be used to solve the rotation matrix R of the next frame including the panoramic camera according to the inertial sensor data of the previous frame image. t , the non-gravitational acceleration a t etc. are all state variables of the panoramic camera. Wherein the non-gravitational acceleration a t The direction is the centripetal force direction of the panoramic camera in the inertial coordinate system.

[0077] One specific implementation method is that the non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c ,include:

[0078] The unit vector a t_c satisfy: ;

[0079] The unit vector a t_c The unit direction vector representing the centripetal acceleration of the panoramic camera in the camera coordinate system.

[0080] One specific implementation method is that the latitude and longitude coordinates of the rotation center in the panoramic spherical model are calculated according to the geometric position relationship of the spherical perspective model, including:

[0081] The unit vector a t_c With weight [a t_cx , a t_cy , a t_cz ] T , wherein the a t_cx 、 t_cy , the a t_cz is the unit vector a t_c Components corresponding to the X, Y, and Z axes of the camera coordinate system in the camera coordinate system.

[0082] According to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model can be calculated as follows:

[0083] λ = arctan(-a t_cz / a t_cx )

[0084] φ = arctan(sqrt(a t_cx ²+ a t_cz ²) / a t_cy )

[0085] Among them, λ is longitude and φ is latitude.

[0086] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

[0087] One specific implementation method is that the panoramic spherical model is unfolded into a plane image, and the target object is tracked within a set coordinate range of the rotation center, including:

[0088] The panoramic spherical model is unfolded by equidistant cylindrical projection to a rectangular plane image. The coordinate range of the rotation center is:

[0089] [λ-T 1 ,λ+T 1 ],[φ-T 2 , φ+T 2 ], where T 1 , T2 To set the experience value.

[0090] It should be noted that the longitude and latitude coordinate system of the panoramic spherical model is expanded to the longitude and latitude coordinate system of the rectangular plane image by equidistant cylindrical projection, and the abscissa u of the longitude and latitude coordinate system of the rectangular plane image linearly maps the longitude λ of the panoramic video frame, and the value range is [−π,π]; the ordinate v of the longitude and latitude coordinate system of the rectangular plane image linearly maps the latitude φ of the panoramic video frame, and the value range is [−π / 2, π / 2].

[0091] By tracking the target object within the set coordinate range of the rotation center, the target object can be accurately and quickly detected, and a video about the target object can be obtained, thereby realizing the video effect of bullet time.

[0092] The setting coordinate range is [λ-T 1 ,λ+T 1 ],[φ-T 2 , φ+T 2 ], where T 1 , T 2 The empirical value is set based on a large number of actual shooting experiments, in which bullet time shooting is performed with a selfie stick, and the target object roughly exists in the empirical value of the distance range of the rotation center.

[0093] One specific implementation method is that, in order to reduce the distortion of the target object in the panoramic spherical model, the panoramic spherical model can be rotated first so that the rotation center is located at the position where λ is 0 and φ is 0 in the longitude and latitude coordinate system. In this way, when the target object is expanded to the rectangular plane image through equidistant cylindrical projection, the target object is located exactly in the middle area of ​​the rectangular plane image, which is more conducive to subsequent target detection and tracking operations.

[0094] In one specific implementation, the method for generating the bullet time video special effects further includes:

[0095] The frame rate of the video of the target object is adjusted to generate a slow-motion video with a target frame rate, thereby realizing a bullet-time video effect.

[0096] Embodiment 2.

[0097] Figure 2 A schematic diagram of the module composition of a device for generating a bullet time video special effect provided in the second embodiment of the present application is shown. For the sake of ease of explanation, only the parts related to the embodiment of the present application are shown.

[0098] A device for generating a bullet time video special effect according to an embodiment of the present application includes:

[0099] A panoramic video acquisition module, which is used to acquire images captured by each lens when the panoramic camera rotates around the target object;

[0100] A panoramic stitching module, which is used to perform panoramic stitching on the images collected by each lens and project them into a panoramic spherical model;

[0101] A rotation center confirmation module, the rotation center confirmation module is used to confirm the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0102] A target tracking module, which is used to expand the panoramic ball model into a plane image, track the target object within the set coordinate range of the rotation center, obtain a video about the target object, and realize a bullet time video effect;

[0103] A frame rate adjustment module is used to adjust the frame rate of the video of the target object, generate a slow-motion video with a target frame rate, and realize a bullet-time video effect.

[0104] A device for generating a bullet time video special effect in an embodiment of the present application is used to implement a method for generating a bullet time video special effect provided in any specific implementation manner of the first embodiment of the present application:

[0105] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0106] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0107] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0108] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

[0109] It should be noted that each module in the above-mentioned device for generating bullet time video special effects can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor of the panoramic camera in the form of hardware, or can be stored in the memory of the panoramic camera in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0110] It should be noted that, for technical details not described in detail in this embodiment, reference can be made to the method for generating the bullet time video special effects provided in any specific implementation manner in the above-mentioned embodiment 1, and will not be repeated here.

[0111] Embodiment three.

[0112] In an embodiment of the present application, a panoramic camera is provided. Figure 3 This is a block diagram of the internal module structure of the panoramic camera.

[0113] The panoramic camera includes one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, and when the processor executes the computer program, a method for generating a bullet time video special effect in any specific implementation manner provided in Embodiment 1 of the present application is implemented, specifically including:

[0114] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0115] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0116] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0117] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

[0118] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the panoramic camera to which the scheme of the present application is applied. A specific panoramic camera may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0119] It should be noted that, for technical details that are not described in detail in this embodiment, reference can be made to the method for generating the bullet time video special effects provided in the above-mentioned embodiment 1, which will not be described in detail here.

[0120] Embodiment 4.

[0121] In an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for generating a bullet time video effect in any specific implementation manner provided in the first embodiment of the present application is implemented, specifically including:

[0122] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0123] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0124] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0125] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

[0126] The computer-readable storage medium of the embodiments of the present application may include any entity or device, recording medium that can carry computer program code, for example, ROM / RAM, magnetic disk, optical disk, flash memory and other memories.

[0127] It should be noted that, for technical details that are not described in detail in this embodiment, reference can be made to the method for generating the bullet time video special effects provided in any specific implementation manner in the above-mentioned embodiment 1, and will not be repeated here.

[0128] Different from the prior art, the embodiments of the present application provide a method, device and panoramic camera for generating bullet time video special effects. The method for generating bullet time video special effects includes:

[0129] Obtain the image captured by each lens when the panoramic camera rotates around the target object;

[0130] The images captured by each lens are panoramically stitched and projected into a panoramic spherical model;

[0131] Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model;

[0132] The panoramic spherical model is unfolded into a plane image, and the target object is tracked within the set coordinate range of the rotation center to obtain a video about the target object, thereby realizing a bullet time video effect.

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

[0134] By acquiring the images captured by each lens of the panoramic camera when it rotates around the target object and performing panoramic stitching, the images are projected into a panoramic spherical model, and the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model are confirmed by setting an algorithm, and then the target object is tracked within the set coordinate range of the rotation center, a video about the target object is obtained, and a bullet time video effect is achieved.

[0135] The bullet time video effects of the present application have low production costs, and because the bullet time video effects are obtained by automatically editing a panoramic video captured by a panoramic camera rotating around a target object, the operation is simple. In addition, the sampling algorithm combines the camera posture judgment and target detection AI algorithm, and has the advantages of high recognition rate and precise target positioning, which greatly improves the accuracy of the bullet time video effects.

[0136] This application adds a new way to play panoramic videos for users, improving user playability.

[0137] 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.

[0138] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0139] 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 application 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 to enable a terminal device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. 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 code.

[0140] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 application.

Claims

1. A method for generating bullet time video special effects, It is characterized in that The method for generating the bullet time video special effect comprises: Obtain the images collected by each lens when the panoramic camera rotates around the target object; The images captured by each lens are panoramically stitched and projected into a panoramic spherical model; Determine the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model; Expand the panoramic ball model into a plane image, track the target object within the set coordinate range of the rotation center, obtain a video about the target object, and realize the video special effect of bullet time; The step of confirming the coordinates of the rotation center of the panoramic camera rotating around the target object in the panoramic spherical model includes: Acquire the inertial sensor data of the panoramic camera, and calculate the non-gravitational acceleration a of the panoramic camera when it rotates around the target object in the inertial coordinate system according to the inertial sensor data through the error state Kalman filter algorithm. t , the non-gravitational acceleration a t is the acceleration of the panoramic camera caused by other forces except gravity; The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c , calculating the longitude and latitude coordinates of the rotation center in the panoramic spherical model according to the geometric position relationship of the spherical perspective model; The inertial sensor data of the panoramic camera is obtained, and the non-gravitational acceleration a of the panoramic camera when rotating around the target object in an inertial coordinate system is calculated based on the inertial sensor data by using an error state Kalman filter algorithm. t , the non-gravitational acceleration a t The acceleration of the panoramic camera caused by other forces other than gravity, including: The inertial sensor data includes accelerometer values ​​a m , the rotation matrix R of the panoramic camera in the inertial coordinate system is calculated by the error state Kalman filter algorithm. t , the non-gravitational acceleration a t and gravitational acceleration g t ; The rotation matrix R of the panoramic camera t , the non-gravitational acceleration a t and gravitational acceleration g t Satisfy the acceleration measurement model: a m =R t (a t -g t )+a bt +a n , wherein the a n is the accelerometer noise, the bt is the true bias error of the acceleration measurement model; The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c ,include: The unit vector a t_c satisfy: a t_c =R t a t / ||R t a t ||; The unit vector a t_c A unit direction vector representing the centripetal acceleration of the panoramic camera in the camera coordinate system; The step of calculating the longitude and latitude coordinates of the rotation center in the panoramic spherical model according to the geometric position relationship of the spherical perspective model includes: The unit vector a t_c With weight [a t_cx ,a t_cy ,a t_cz ] T , wherein the a t_cx , the a t_cy , the a t_cz is the unit vector a t_c Components corresponding to the X, Y, and Z axes of the camera coordinate system in the camera coordinate system; According to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model can be calculated as follows: λ=arctan(-a t_cz / a t_cx ) φ=arctan(sqrt(a t_cx 2 +a t_cz 2) / a t_cy ) Among them, λ is the longitude and φ is the latitude.

2. A method for generating a bullet time video special effect according to claim 1, It is characterized in that Expanding the panoramic spherical model into a plane image and tracking the target object within the set coordinate range of the rotation center includes: The panoramic spherical model is unfolded by equidistant cylindrical projection to a rectangular plane image. The coordinate range of the rotation center is: [λ-T 1 ,λ+T 1 ],[φ-T 2 ,φ+T 2 ], where T 1 、T 2 To set the experience value.

3. A method for generating a bullet time video special effect according to claim 1 or 2, It is characterized in that The method for generating the bullet time video special effects also includes: The frame rate of the video of the target object is adjusted to generate a slow-motion video with a target frame rate, thereby realizing a bullet-time video effect.

4. A device for generating bullet time video special effects, It is characterized in that The device for generating the bullet time video special effects comprises: A panoramic video acquisition module, which is used to acquire images captured by each lens when the panoramic camera rotates around the target object; A panoramic stitching module, which is used to perform panoramic stitching on the images collected by each lens and project them into a panoramic spherical model; A rotation center confirmation module, the rotation center confirmation module is used to confirm the coordinates of the rotation center of the panoramic camera when it rotates around the target object in the panoramic spherical model; The step of confirming the coordinates of the rotation center of the panoramic camera rotating around the target object in the panoramic spherical model includes: Acquire the inertial sensor data of the panoramic camera, and calculate the non-gravitational acceleration a of the panoramic camera when it rotates around the target object in the inertial coordinate system according to the inertial sensor data through the error state Kalman filter algorithm. t , the non-gravitational acceleration a t is the acceleration of the panoramic camera caused by other forces except gravity; The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c , calculating the longitude and latitude coordinates of the rotation center in the panoramic spherical model according to the geometric position relationship of the spherical perspective model; The non-gravitational acceleration a t Transform to the camera coordinate system and normalize to unit vector a t_c ,include: The unit vector a t_c satisfy: a t_c =R t a t / ||R t a t ||; The unit vector a t_c A unit direction vector representing the centripetal acceleration of the panoramic camera in the camera coordinate system; The step of calculating the longitude and latitude coordinates of the rotation center in the panoramic spherical model according to the geometric position relationship of the spherical perspective model includes: The unit vector a t_c With weight [a t_cx ,a t_cy ,a t_cz ] T , wherein the a t_cx , the a t_cy , the a t_cz is the unit vector a t_c Components corresponding to the X, Y, and Z axes of the camera coordinate system in the camera coordinate system; According to the geometric position relationship of the spherical perspective model, the longitude and latitude coordinates of the rotation center in the panoramic spherical model can be calculated as follows: λ=arctan(-a t_cz / a t_cx ) φ=arctan(sqrt(a t_cx 2 +a t_cz 2 ) / the t_cy ) Among them, λ is longitude and φ is latitude; The inertial sensor data of the panoramic camera is obtained, and the non-gravitational acceleration a of the panoramic camera when rotating around the target object in an inertial coordinate system is calculated based on the inertial sensor data by using an error state Kalman filter algorithm. t , the non-gravitational acceleration a t The acceleration of the panoramic camera caused by other forces other than gravity, including: The inertial sensor data includes accelerometer values ​​a m , the rotation matrix R of the panoramic camera in the inertial coordinate system is calculated by the error state Kalman filter algorithm. t , the non-gravitational acceleration a t and gravitational acceleration g t ; The rotation matrix R of the panoramic camera t , the non-gravitational acceleration a t and gravitational acceleration g t Satisfy the acceleration measurement model: a m =R t (a t -g t )+a bt +a n , wherein the a n is the accelerometer noise, the bt is the true bias error of the acceleration measurement model; A target tracking module, which is used to expand the panoramic ball model into a plane image, track the target object within the set coordinate range of the rotation center, obtain a video about the target object, and realize a bullet time video effect; A frame rate adjustment module is used to adjust the frame rate of the video of the target object, generate a slow-motion video with a target frame rate, and realize a bullet-time video effect.

5. A panoramic camera comprising one or more processors, a memory and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, It is characterized in that When the processor executes the computer program, the steps of the method for generating the bullet time video special effects as described in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method for generating the bullet time video special effects according to any one of claims 1 to 3 are implemented.