Method for achieving bullet time capturing effect and panoramic camera

11233944 · 2022-01-25

Assignee

Inventors

Cpc classification

International classification

Abstract

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.

Claims

1. A method for achieving bullet time effect, comprising 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; and fixing a viewpoint of the stitched image to achieve a bullet time effect, comprising: in a normal anti-shake mode, a change of the viewpoint being that V rotates around the z-axis to an equal-longitude position V.sub.0 of V′, where a rotation matrix is R.sub.0; rotating V.sub.0 to V′ on an equal-longitude line, where a rotation matrix is R.sub.1, and a final anti-shake transformation matrix is R.sub.2=R.sub.0×R.sub.1×R; where V is the vector of a center of the viewpoint and a 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 an original rotation matrix calculated by the anti-shake algorithm, R.sub.0=exp(ϕ[k.sub.0].sub.x), R.sub.1=exp(ϕ[k.sub.1].sub.x), k.sub.0=(0, 0, 1).sup.T for the z-axis direction, k.sub.1=(−sin(ϕ), cos(ϕ), 0).sup.T for 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′.sup.2+y′.sup.2)}) for the latitude direction.

2. The method of claim 1, wherein when the shooting object is a photographer, the panoramic video captured when a panoramic camera rotates around the shooting object, specifically is captured in the following manner that: the photographer swings an auxiliary line or a selfie stick connected to the panoramic camera above the photographer's head to rotate the panoramic camera around the photographer; and the photographer simultaneously captures the motion status of objects and/or people on the photographer's side.

3. The method of claim 2, wherein keeping the panoramic camera rotating on a horizontal plane perpendicular to the photographer's body when swinging the selfie stick or the auxiliary line.

4. The method of claim 1, wherein the step of obtaining hemisphere images close to the shooting object side from the panoramic video, comprises: adjusting the start and end coordinates of a sampled image in a register of a camera sensor so that a sampling range of the sampled image is a hemisphere close to the shooting object side.

5. The method of claim 1, wherein after stitching the hemisphere images to generate a stitched image, the method further comprises: 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.

6. The method of claim 1, wherein the step of fixing a viewpoint of the stitched image, comprises: fixing the viewpoint of the stitched image to the direction of the shooting object; and framing the shooting object area.

7. A non-transitory computer-readable medium that stores a set of computer executive program instructions, wherein the set of computer executive program instructions are executed by one or more processors to perform a method for achieving bullet time effect, comprising 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; and fixing a viewpoint of the stitched image to achieve a bullet time effect, comprising: in a normal anti-shake mode, a change of the viewpoint being that V rotates around the z-axis to an equal-longitude position V.sub.0 of V′, where a rotation matrix is R.sub.0; rotating V.sub.0 to V′ on an equal-longitude line, where a rotation matrix is R.sub.L and a final anti-shake transformation matrix is R.sub.2=R.sub.0×R.sub.1×R; where V is the vector of a center of the viewpoint and a 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 an original rotation matrix calculated by the anti-shake algorithm, R.sub.0=exp(ϕ[k.sub.0].sub.x), R.sub.1=exp(θ[k.sub.1].sub.x), k.sub.0=(0, 0, 1).sup.T for the z-axis direction, k.sub.1=(−sin(ϕ), cos(ϕ), 0).sup.T for 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′.sup.2+y′.sup.2)}) for the latitude direction.

8. The computer-readable medium of claim 7, wherein after the step of stitching the hemisphere images to generate a stitched image, further comprising 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.

9. The computer-readable medium of claim 7, wherein when the shooting object is a photographer, the panoramic video captured when a panoramic camera rotates around the shooting object, specifically is captured in the following manner that: the photographer swings an auxiliary line or a selfie stick connected to the panoramic camera above the photographer's 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.

10. The computer-readable medium of claim 9, wherein keeping the panoramic camera rotating on a horizontal plane perpendicular to the photographer's body when swinging the selfie stick or the auxiliary line.

11. The computer-readable medium of claim 7, wherein the step of obtaining hemisphere images close to the shooting object side from the panoramic video, comprises: adjusting the start and end coordinates of a sampled image in a register of a camera sensor so that a sampling range of the sampled image is a hemisphere close to the shooting object side.

12. The computer-readable medium of claim 7, wherein the step of fixing a viewpoint of the stitched image, comprises: fixing the viewpoint of the stitched image to the direction of the shooting object; and framing the shooting object area.

13. A panoramic camera, comprising: one or more processors, a non-transitory, computer readable memory, and a set of computer-executable program instructions, wherein the set of computer-executable program instructions are stored in the memory and are configured to be executed by the one or more processors to perform 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; and fixing a viewpoint of the stitched image to achieve a bullet time effect, comprising: in a normal anti-shake mode, a change of the viewpoint being that V rotates around the z-axis to an equal-longitude position V.sub.0 of V′, where a rotation matrix is R.sub.0; rotating V.sub.0 to V′ on an equal-longitude line, where a rotation matrix is R.sub.1, and a final anti-shake transformation matrix is R.sub.2=R.sub.0×R.sub.1×R; where V is the vector of a center of the viewpoint and a 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 an original rotation matrix calculated by the anti-shake algorithm, R.sub.0=exp(ϕ[k.sub.0].sub.x), R.sub.1=exp(θ[k.sub.1].sub.x), k.sub.0=(0, 0, 1).sup.T for the z-axis direction, k.sub.1=(−sin(ϕ), cos(ϕ), 0).sup.T for 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′.sup.2+y′.sup.2)}) for the latitude direction.

14. The panoramic camera of claim 13, wherein after the step of stitching the hemisphere images to generate a stitched image, further comprising 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.

15. The panoramic camera of claim 13, wherein when the shooting object is a photographer, the panoramic video captured when a panoramic camera rotates around the shooting object, is captured in the following manner that: the photographer swings an auxiliary line or a selfie stick connected to the panoramic camera above the photographer's head to rotate the panoramic camera around the photographer; and the photographer simultaneously captures the motion status of objects and/or people on the photographer's side; wherein keeping the panoramic camera rotating on a horizontal plane perpendicular to the photographer's body when swinging the selfie stick or the auxiliary line.

16. The panoramic camera of claim 13, wherein the step of obtaining hemisphere images close to the shooting object side from the panoramic video, comprises: adjusting the start and end coordinates of a sampled image in a register of a camera sensor so that a sampling range of the sampled image is a hemisphere close to the shooting object side.

17. The panoramic camera of claim 13, wherein the step of fixing a viewpoint of the stitched image, comprises: fixing the viewpoint of the stitched image to the direction of the shooting object; and framing the shooting object area.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a flow diagram of a method for achieving bullet time effect in accordance with a first embodiment of the present invention; and

(2) FIG. 2 is a schematic diagram of a panoramic camera in accordance with a is third embodiment of the present invention;

DETAILED DESCRIPTION OF THE INVENTION

(3) 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.

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

First Embodiment

(5) Referring to FIG. 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 in FIG. 1.

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

(7) 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:

(8) 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.

(9) 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.

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

(11) In accordance with the first embodiment of the present invention, S102 can be:

(12) 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.

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

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

(15) 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.

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

(17) In accordance with the first embodiment of the present invention, S104 can be:

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

(19) In normal anti-shake mode, the change of viewpoint is that V rotates around the z-axis to the equal-longitude position V.sub.0 of V′, where the rotation matrix is R.sub.0; rotate V.sub.0 to V on the equal-longitude line, where the rotation matrix is R.sub.1; 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 R.sub.2=R.sub.0×R.sub.1×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, R.sub.0=exp(ϕ[k.sub.0].sub.x), R.sub.1=exp(θ[k.sub.1].sub.x), k.sub.0=(0, 0, 1).sup.T for the z-axis direction, k.sub.1=(−sin(ϕ), cos(ϕ), 0).sup.T for 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′.sup.2+y′.sup.2)}) for the latitude direction.

Second Embodiment

(20) 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

(21) FIG. 2 shows a block diagram of a panoramic camera 100 provided in the third embodiment of the present invention. A panoramic camera 100 comprises: one or more processors 101, a memory 102 connected to the one or more processors 101, and one or more computer programs, where the one or more computer programs are stored in the memory 102 and are configured to be executed by the one or more processors 101 to perform steps of the method for achieving bullet time effect provided in the first embodiment of the present invention.

(22) 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.

(23) 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.

(24) 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.