Method for achieving bullet time capturing effect and panoramic camera

Provided in the present invention are a method for achieving a bullet time capturing effect and a panoramic camera. The method comprises: acquiring a panoramic video captured when a panoramic camera rotates around a capture target; acquiring from within the panoramic video hemispherical images close to the side of the capture target; splicing the hemispherical images to generate a spliced image; and fixing a viewpoint of the spliced image, thus achieving a bullet time capturing effect. According to the present invention, only one panoramic camera is needed to be able to capture the bullet time capturing effect, so that the capturing cost of the bullet time capturing effect in the present invention is low. Meanwhile, since the bullet time capturing effect is obtained by means of a panoramic video being captured when a panoramic camera rotates around a capture target and processing being carried out on the panoramic video, the precision is high.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a 35 U.S.C. § 371 National Phase conversion of International (PCT) Patent Application No. PCT/CN2018/113720, filed on Nov. 2, 2018, which claims priority of Chinese Patent Application No. 201711123367.2, filed on Nov. 14, 2017, the disclosure of which is incorporated by reference herein. The PCT International Patent Application was filed and published in Chinese.

FIELD OF THE INVENTION

The present invention relates generally to the field of image processing, and more specifically to a method for achieving bullet time effect and a panoramic camera.

BACKGROUND OF THE INVENTION

Bullet time is used in films, TV advertisements, or computer games to simulate variable-speed special effects with computer-aided photography, such as enhanced slow-motion, time-frozen effects and other effects. The bullet time effect was originally achieved photographically by a set of still cameras (not a video camera) surrounding the subject. The cameras are fired sequentially, or all at the same time. Single frames from each camera are combined consecutively to produce a visual rotation effect on a stationary object, or as hyper-slow-motion. In theory, this technique suggests the limitless perspectives and variable frame rates possible with a virtual camera. However, if the still array process is done with real cameras, it is often limited to assigned paths. The bullet time is characterized both by its extreme transformation of time and space: by way of the ability of the camera angle (the audience's point-of-view) to move around the scene at a normal speed while events are slowed. Bullet time is widely used in film and television, advertising, MV, creative activities and other fields. However, the visual effect of bullet time seems gorgeous, but it is more cumbersome to produce. Traditional cameras can't keep the shooting angle to view the target object while moving at a high speed. Therefore, to achieve the bullet time shooting effect, multiple cameras must be placed in the shooting path in advance. By controlling the camera's exposure sequence, the shooting frame sequence, after post combination, to achieve the shooting effect of bullet time. The existing system for realizing the bullet-time effect, due to the large number of cameras and the inaccurate control, causes the shooting progress to be slow, cannot meet the shooting needs, and is expensive and the shooting cost is high.

SUMMARY OF THE INVENTION

Technical Problem

The object of the present invention is to provide a method for achieving bullet time effect, computer-readable storage medium and a panoramic camera, aiming to solve the problem that the existing system, due to the large number of cameras and the inaccurate control, causes the shooting progress to be slow, cannot meet the shooting needs, and is expensive and the shooting cost is high.

Technical Solution

According to a first aspect, the present invention provides a method for achieving bullet time effect, comprises steps of:acquiring a panoramic video captured when a panoramic camera rotates around a shooting object;obtaining hemisphere images close to the shooting object side from the panoramic video;stitching the hemisphere images to generate a stitched image; andfixing a viewpoint of the stitched image to achieve a bullet time effect.

According to a second aspect, the present invention provides a computer-readable medium that stores a computer program, the computer program is to be executed by a processor to perform steps of the method for achieving bullet time effect described above.

According to a third aspect, the present invention provides a panoramic camera, comprising: one or more processors, a memory connected to the one or more processors, and one or more computer programs, where the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors to perform steps of the method for achieving bullet time effect described above.

Advantages

In the present invention, by means of acquiring a panoramic video captured when a panoramic camera rotates around a shooting object, obtaining hemisphere images close to the shooting object side from the panoramic video, stitching the hemisphere images to generate a stitched image, and fixing a viewpoint of the stitched image, thus achieving a bullet time effect; that is, only one panoramic camera is needed to be able to capture the bullet time effect, therefore, the capturing cost of a bullet time effect in the present invention is low. Meanwhile, since a bullet time effect is obtained by means of a panoramic video being captured when a panoramic camera rotates around a shooting object and being processed, the precision is high.

DETAILED DESCRIPTION OF THE INVENTION

The foregoing objects, technical solution and advantages of the invention will be much clearer from the following detail description taken with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

In order to explain the technical solution of the present invention, the following will be described by specific embodiments.

First Embodiment

Referring toFIG. 1, a method for achieving bullet time effect in accordance with the first embodiment of the present invention comprises the following steps. It should be noted that if there are substantially the same results, the method for achieving bullet time effect of the present invention is not limited to the sequence of the flow shown inFIG. 1.

S101, acquiring a panoramic video captured when a panoramic camera rotates around a shooting object.

In the first embodiment of the present invention, when the shooting object is a photographer, the panoramic video captured when a panoramic camera rotates around the shooting object, may specifically be captured in the following manner that:

the photographer swings an auxiliary line or a selfie stick connected to the panoramic camera above the head to rotate the panoramic camera around the photographer, and simultaneously captures the motion status of objects and/or people on the photographer's side.

In order to achieve the best bullet time shooting effect, it is best to keep the panoramic camera rotating on a horizontal plane perpendicular to the photographer's body when swinging the selfie stick or auxiliary line.

S102, obtaining hemisphere images close to the shooting object side from the panoramic video.

In accordance with the first embodiment of the present invention, S102can be:

adjusting the start and end coordinates of the sampled image in a register of the camera sensor so that a sampling range of the sampled image is a hemisphere close to of the shooting object side.

S103, stitching the hemisphere images to generate a stitched image.

In accordance with the first embodiment of the present invention, after S103, the method may further include a step of:

performing anti-shake processing on the stitched image, and keeping the coordinate system of the shooting area in the same direction as the earth coordinate system.

S104, fixing a viewpoint of the stitched image to achieve a bullet time effect.

In accordance with the first embodiment of the present invention, S104can be:

fixing the viewpoint of the stitched image to the direction of the shooting object, and shooting the object area.

In normal anti-shake mode, the change of viewpoint is that V rotates around the z-axis to the equal-longitude position V0of V′, where the rotation matrix is R0; rotate V0to V on the equal-longitude line, where the rotation matrix is R1; in order to ensure that the original viewpoint remains unchanged after anti-shake processing, the direction of the viewfinder image is in accordance with human habits, and anti-shake at the same time, it is necessary to reverse the direction of the viewpoint V′, and the final anti-shake transformation matrix is R2=R0×R1×R; where V is the vector of the center of the viewpoint and the center of the stitched image in the earth coordinate system, V=(0, 0, −1), V is the vector after anti-shake processing of the stitched image, V′=(x′,y′,z′), V′=R*V R is the original rotation matrix calculated by the anti-shake algorithm, R0=exp(ϕ[k0]x), R1=exp(θ[k1]x), k0=(0, 0, 1)Tfor the z-axis direction, k1=(−sin(ϕ), cos(ϕ), 0)Tfor the longitude being an equal-longitude rotation axis, ϕ=at an 2(y′, x′) for the longitude direction, θ=at an 2(z′,√{square root over (x′2+y′2)}) for the latitude direction.

Second Embodiment

In accordance with a second embodiment, the present invention provides a computer-readable medium that stores a computer program, the computer program is to be executed by a processor to perform steps of the method for achieving bullet time effect provided in the first embodiment of the present invention.

Third Embodiment

FIG. 2shows a block diagram of a panoramic camera100provided in the third embodiment of the present invention. A panoramic camera100comprises: one or more processors101, a memory102connected to the one or more processors101, and one or more computer programs, where the one or more computer programs are stored in the memory102and are configured to be executed by the one or more processors101to perform steps of the method for achieving bullet time effect provided in the first embodiment of the present invention.

In the present invention, by means of acquiring a panoramic video captured when a panoramic camera rotates around a shooting object, obtaining hemisphere images close to the shooting object side from the panoramic video, stitching the hemisphere images to generate a stitched image, and fixing a viewpoint of the stitched image, thus achieving a bullet time effect; that is, only one panoramic camera is needed to be able to capture the bullet time effect, therefore, the capturing cost of a bullet time effect in the present invention is low. Meanwhile, since a bullet time effect is obtained by means of a panoramic video being captured when a panoramic camera rotates around a shooting object and being processed, the precision is high.

A person of ordinary skill in the art may understand that all or part of the steps in the method of the above embodiments can be completed by instructing relevant hardware through a program or programs. The program or programs can be stored in a computer-readable storage medium, and the storage media can be, ROM (ROM, Read Only Memory), RAM (RAM, Random Access Memory), magnetic disk, optical disk, etc.

The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalents replacements and improvements made within the spirit and principle of the present invention should be included within the scope of the present invention.