CN106384367A - Method for automatically stabilizing view angle of panoramic camera - Google Patents

Method for automatically stabilizing view angle of panoramic camera Download PDF

Info

Publication number
CN106384367A
CN106384367A CN201610740143.5A CN201610740143A CN106384367A CN 106384367 A CN106384367 A CN 106384367A CN 201610740143 A CN201610740143 A CN 201610740143A CN 106384367 A CN106384367 A CN 106384367A
Authority
CN
China
Prior art keywords
angle
sphere
image
pixel
projection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610740143.5A
Other languages
Chinese (zh)
Other versions
CN106384367B (en
Inventor
罗海风
王瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Music Technology Co Ltd
Original Assignee
Shenzhen Music Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Music Technology Co Ltd filed Critical Shenzhen Music Technology Co Ltd
Priority to CN201610740143.5A priority Critical patent/CN106384367B/en
Publication of CN106384367A publication Critical patent/CN106384367A/en
Application granted granted Critical
Publication of CN106384367B publication Critical patent/CN106384367B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Stereoscopic And Panoramic Photography (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a method for automatically stabilizing a shooting view angle of a panoramic camera. Based on data of an inclination measurement sensor, a global transformation mapping algorithm is performed on a shot panoramic image, and the panoramic image is automatically corrected into an image with a vertical erected view angle in a software mode, so that panoramic video or images with a good viewing effect can still be provided under the condition that the shooting posture is instable.

Description

A kind of method at the automatic stabilisation visual angle of panorama camera
Technical field
The present invention relates to photography and vedio recording field, the method at the automatic stabilisation visual angle of more particularly, to a kind of panorama camera.
Background technology
Panorama camera, due to its good experience and portability when participating in the cintest, has been increasingly being used for net cast and picture Share occasion.In common hand-held or follow shot scene, attitude when camera shoots cannot keep stable.Although due to complete The ultraphotic angle feature of scape camera, can't lead to watch the disappearance of content, but the variation at visual angle still can play end in panorama Lead to the decline of Consumer's Experience.
Content of the invention
In order to solve problem in prior art, the invention provides a kind of method at the automatic stabilisation visual angle of panorama camera, Image unit integral inclined to a certain degree when, its projection sphere is actual to be there is certain rotation with respect to scene in kind or inclines Tiltedly, two deflection angle data (θ, φ) are given, under spheric coordinate systems, wherein φ is the angle of OP and plane XOZ, and θ exists for OP Equatoriat plane projection and the angle of OX;On sphere, the coordinate of point P for (θ, φ) when deflection angle θ ≠ 0 and φ ≠ 0, make by the equatoriat plane Angle is the rotation of φ, and this spin matrix can be written as
Wherein vectorIt is represented byThen cross product
Make quaternary number
Quaternary number form formula can be converted into using triangular equation
Wherein
Therefore have
R ( q ) = 1 - 2 ( y 2 + z 2 ) 2 ( x y - z w ) 2 ( x z + y w ) 2 ( x y + z w ) 1 - 2 ( x 2 + z 2 ) 2 ( y z - x w ) 2 ( x z - y w ) 2 ( y z + x w ) 1 - 2 ( x 2 + y 2 )
CauseHave
Then
R ( q ) = 1 - 2 z 2 - 2 z w 2 x z 2 z w 1 - 2 ( x 2 + z 2 ) - 2 x w 2 x z 2 x w 1 - 2 x 2 .
The invention has the beneficial effects as follows:
Based on the data of inclination measuring sensor, carry out global change's mapping algorithm to shooting the panoramic picture obtaining, By software mode, panoramic picture is corrected as automatically the image at vertically upright visual angle, thus in the situation shooting unsteady attitude Under be still provided that the panoramic video/image of good viewing effect.
The panorama test image shooting for certain Zhang Feizheng standing position state is corrected.Camera shooting effect in an inclined state As Fig. 2:
According to tilt parameters, the such as Fig. 3 of the effect after being modified using the method in the present invention:Calibration result is good.
Brief description
Fig. 1 is that the angle of spheric coordinate systems of the present invention represents schematic diagram;
Fig. 2 is camera of the present invention shooting effect in an inclined state;
Fig. 3 is the effect after Fig. 2 is modified using the method in the present invention.
Specific embodiment
The present invention will be further described below in conjunction with the accompanying drawings.
The present invention proposes a kind of method of panorama camera automatic stabilisation shooting visual angle.Number based on inclination measuring sensor According to the panoramic picture that shooting is obtained carries out global change's mapping algorithm, is automatically corrected as panoramic picture by software mode The vertically image at upright visual angle, thus be still provided that the panoramic video of good viewing effect in the case of shooting unsteady attitude Or image.
Hardware plan:The present invention, on the basis of the hardware plan of common panorama camera, needs extra interpolation gradient measurement Sensor, common are three-axis gyroscope, for measuring the angle of camera axis and gravity vertical, i.e. camera gradient.Remaining is hard Part scheme is identical with common panorama camera.
Method is realized:
In panoramic camera, when shooting unit is placed on clinoplain, the image of multiple camera acquisitions is according to former The panoramic mosaic image that the spherical projection matrix beginning maps gained can not keep " upright " vision well, panoramic mosaic image Certain distortion can be produced, this distortion possesses certain rule.
Image unit integral inclined to a certain degree when, its projection sphere is actual to there is certain rotation with respect to scene in kind Turn or tilt, this deflection can be given by three-axis gyroscope, usual gyroscope provides two deflection angle data (θ, φ), The angle method for expressing of spheric coordinate systems is as shown in Figure 1.Wherein φ is the angle of OP and plane XOZ, and θ is OP face projection under the line Angle with OX.
Fig. 1 spheric coordinate systems angle method for expressing schematic diagram, in figure sphere the coordinate of point P be (θ, φ) when gyroscope inclined When gyration θ ≠ 0 and φ ≠ 0, the equatoriat plane makees the rotation that angle is φ, and rotary shaft is with vectorAnd y-axis Place plane crosses the vertical line of the centre of sphere.This spin matrix can be written as
Wherein vectorIt is represented byThen cross product
Make quaternary number
Quaternary number form formula can be converted into using triangular equation
Wherein
Therefore have
R ( q ) = 1 - 2 ( y 2 + z 2 ) 2 ( x y - z w ) 2 ( x z + y w ) 2 ( x y + z w ) 1 - 2 ( x 2 + z 2 ) 2 ( y z - x w ) 2 ( x z - y w ) 2 ( y z + x w ) 1 - 2 ( x 2 + y 2 )
CauseHave
Then
R ( q ) = 1 - 2 z 2 - 2 z w 2 x z 2 z w 1 - 2 ( x 2 + z 2 ) - 2 x w 2 x z 2 x w 1 - 2 x 2 .
There is this spin matrix it is possible to be calculated for pixel coordinate.Assume that the width of panoramic picture covers θ:0~ The sphere longitude range of 2 π, height covers φ:The sphere latitude scope of 0~π, input picture and the same length and width of output image (w, h), Any pixel in output imageCan be corresponding to point on projection sphere by spherical projection relation
Wherein f1 is to throw Shadow spherical radius.
From shooting unit spin matrix R (q) obtaining above, project point P1 on sphere and inversely deflect gained projection ball Another point P on face0(x0,y0,f0), and
By P0Can obtain in panoramic picture with pixelCorresponding sub-pixel location
( x 0 θ , y 0 φ ) = ( a t a n 2 ( f 0 , x 0 ) , a t a n 2 ( x 0 2 + f 0 2 , y 0 )
Thus, you can according to sub-pixel location in input picturePixel value, can correspond in output image Arbitrary coordinate positionThe value of upper pixel.According to gradient parameter, panoramic video/image that panorama camera is shot is carried out Attitude rectification, is revised the image effect shooting during attitude upright to camera.
Above content is to further describe it is impossible to assert with reference to specific preferred implementation is made for the present invention Being embodied as of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of present inventive concept, some simple deduction or replace can also be made, all should be considered as belonging to the present invention's Protection domain.

Claims (4)

1. a kind of automatic stabilisation visual angle of panorama camera method it is characterised in that:Integral inclined to a certain degree in shooting unit When, projection sphere is actual with respect to scene in kind, certain rotation or inclination occurs for it, be given two deflection angle data (θ, φ), under spheric coordinate systems, wherein φ is the angle of OP and plane XOZ, and θ is that face projects the angle with OX to OP under the line;On sphere The coordinate of point P is (θ, φ), and when deflection angle θ ≠ 0 and φ ≠ 0, the equatoriat plane makees the rotation that angle is φ, this rotation
Torque battle array can be written as
Wherein vectorIt is represented byThen cross product
Make quaternary number
Quaternary number form formula can be converted into using triangular equation
Wherein
Therefore have
R ( q ) = 1 - 2 ( y 2 + z 2 ) 2 ( x y - z w ) 2 ( x z + y w ) 2 ( x y + z w ) 1 - 2 ( x 2 + z 2 ) 2 ( y z - x w ) 2 ( x z - y w ) 2 ( y z + x w ) 1 - 2 ( x 2 + y 2 )
CauseHave
Then
R ( q ) = 1 - 2 z 2 - 2 z w 2 x z 2 z w 1 - 2 ( x 2 + z 2 ) - 2 x w 2 x z 2 x w 1 - 2 x 2 .
2. a kind of automatic stabilisation visual angle of panorama camera according to claim 1 method it is characterised in that:Described deflection Angle-data is given by three-axis gyroscope.
3. a kind of automatic stabilisation visual angle of panorama camera according to claim 1 method it is characterised in that:
The equatoriat plane makees the rotation that angle is φ, and described rotary shaft is with vectorCross the centre of sphere with y-axis place plane Vertical line.
4. a kind of automatic stabilisation visual angle of panorama camera according to claim 1 method it is characterised in that:Assume panorama The width of image covers θ:The sphere longitude range of 0~2 π, height covers φ:Sphere latitude scope, input picture and the output of 0~π The same length and width of image (w, h), any pixel in output imageCan be corresponding to projection sphere by spherical projection relation Upper pointWherein f1 is projection ball Radius surface;From shooting unit spin matrix R (q) obtaining above, project point P1 on sphere and inversely deflect gained projection ball Another point P on face0(x0,y0,f0), and
By P0Can obtain in panoramic picture with pixelCorresponding sub-pixel location
Thus, you can according to sub-pixel location in input picturePixel value, obtain in corresponding output image and arbitrarily sit Cursor positionThe value of upper pixel;According to gradient parameter, the panoramic video that panorama camera is shot or image carry out attitude Revise, revised the image effect shooting during attitude upright to camera.
CN201610740143.5A 2016-08-26 2016-08-26 A kind of method at the automatic stabilisation visual angle of panorama camera Expired - Fee Related CN106384367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610740143.5A CN106384367B (en) 2016-08-26 2016-08-26 A kind of method at the automatic stabilisation visual angle of panorama camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610740143.5A CN106384367B (en) 2016-08-26 2016-08-26 A kind of method at the automatic stabilisation visual angle of panorama camera

Publications (2)

Publication Number Publication Date
CN106384367A true CN106384367A (en) 2017-02-08
CN106384367B CN106384367B (en) 2019-06-14

Family

ID=57917406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610740143.5A Expired - Fee Related CN106384367B (en) 2016-08-26 2016-08-26 A kind of method at the automatic stabilisation visual angle of panorama camera

Country Status (1)

Country Link
CN (1) CN106384367B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071279A (en) * 2017-04-01 2017-08-18 深圳市圆周率软件科技有限责任公司 A kind of method and system of panoramic picture frame stabilization
CN107197154A (en) * 2017-06-22 2017-09-22 北京奇艺世纪科技有限公司 A kind of panoramic video antihunt means and device
CN109059843A (en) * 2018-10-31 2018-12-21 中国矿业大学(北京) A kind of device with camera angle detection function
WO2019192377A1 (en) * 2018-04-01 2019-10-10 浙江大学 Method and device for processing panoramic image
CN111566704A (en) * 2017-09-26 2020-08-21 交互数字Ce专利控股公司 Method and network equipment for tiling a sphere representing spherical multimedia content

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554036A (en) * 2001-07-20 2004-12-08 6115187���ô�˾ Method for capturing a panoramic image using a rectangular image sensor
WO2010052558A2 (en) * 2008-11-05 2010-05-14 Easywalk Capital S.A. System and method for the precise integration of virtual objects to interactive panoramic walk-through applications
CN103700082A (en) * 2013-12-23 2014-04-02 南京航空航天大学 Image splicing method based on dual quaterion relative orientation
CN104333675A (en) * 2014-10-20 2015-02-04 长春理工大学 Panoramic electronic image stabilization method based on spherical projection
CN105208247A (en) * 2015-09-02 2015-12-30 长春理工大学 Quaternion-based panoramic image stabilizing method
CN105825475A (en) * 2016-04-01 2016-08-03 西安电子科技大学 360-degree panorama image generation method based on single pick-up head

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554036A (en) * 2001-07-20 2004-12-08 6115187���ô�˾ Method for capturing a panoramic image using a rectangular image sensor
WO2010052558A2 (en) * 2008-11-05 2010-05-14 Easywalk Capital S.A. System and method for the precise integration of virtual objects to interactive panoramic walk-through applications
CN103700082A (en) * 2013-12-23 2014-04-02 南京航空航天大学 Image splicing method based on dual quaterion relative orientation
CN104333675A (en) * 2014-10-20 2015-02-04 长春理工大学 Panoramic electronic image stabilization method based on spherical projection
CN105208247A (en) * 2015-09-02 2015-12-30 长春理工大学 Quaternion-based panoramic image stabilizing method
CN105825475A (en) * 2016-04-01 2016-08-03 西安电子科技大学 360-degree panorama image generation method based on single pick-up head

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BAOFENG ZHANG 等: "Research on Image Matching Technology for the Spherical Stereo Vision", 《2015 IEEE INTERNATIONAL CONFERENCE ON MECHATRONICS AND AUTOMATION》 *
王珂 等: "基于折光鱼眼全景相机的双目立体视觉标定", 《中国科技论文》 *
祝海江 等: "基于球面透视投影旋转矩阵的鱼眼图像匹配", 《光学学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071279A (en) * 2017-04-01 2017-08-18 深圳市圆周率软件科技有限责任公司 A kind of method and system of panoramic picture frame stabilization
CN107197154A (en) * 2017-06-22 2017-09-22 北京奇艺世纪科技有限公司 A kind of panoramic video antihunt means and device
CN111566704A (en) * 2017-09-26 2020-08-21 交互数字Ce专利控股公司 Method and network equipment for tiling a sphere representing spherical multimedia content
WO2019192377A1 (en) * 2018-04-01 2019-10-10 浙江大学 Method and device for processing panoramic image
US11308575B2 (en) 2018-04-01 2022-04-19 Zhejiang University Omnidirectional image processing method and device
CN109059843A (en) * 2018-10-31 2018-12-21 中国矿业大学(北京) A kind of device with camera angle detection function

Also Published As

Publication number Publication date
CN106384367B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN106384367B (en) A kind of method at the automatic stabilisation visual angle of panorama camera
US11631155B2 (en) Equatorial stitching of hemispherical images in a spherical image capture system
US20240257297A1 (en) Apparatus and methods for the optimal stitch zone calculation of a generated projection of a spherical image
US10848743B2 (en) 3D Camera calibration for adjustable camera settings
US20180343388A1 (en) Image processing device, image processing method, and recording medium storing program
CN103501409B (en) Ultrahigh resolution panorama speed dome AIO (All-In-One) system
US8743219B1 (en) Image rotation correction and restoration using gyroscope and accelerometer
CN102509261B (en) Distortion correction method for fisheye lens
US7747105B2 (en) Method for the rotation compensation of spherical images
US20150103197A1 (en) Technique for view synthesis
CA2995665C (en) Image generating apparatus and image display control apparatus for a panoramic image
CN109615663A (en) Panoramic video bearing calibration and terminal
CN105550984B (en) A kind of method and device of correcting fisheye image and Navigation display
CN108876714A (en) Image capture apparatus, information processing unit and image processing method
CN106846409A (en) The scaling method and device of fisheye camera
US11272153B2 (en) Information processing apparatus, method for controlling the same, and recording medium
WO2018126922A1 (en) Method and apparatus for rendering panoramic video and electronic device
CN107710728A (en) Global plane video imaging system and computer readable recording medium storing program for performing
CN108038820A (en) A kind of method, apparatus and panorama camera for realizing bullet time shooting effect
CN105721703A (en) Method for carrying out panoramic positioning and orientation by utilizing mobile phone device sensor
CN108344401A (en) Localization method, device and computer readable storage medium
CN108153417B (en) Picture compensation method and head-mounted display device adopting same
CN107560637B (en) Method for verifying calibration result of head-mounted display device and head-mounted display device
CN110506292A (en) Image processing apparatus, photographic device, terminal installation, method for correcting image and image processing program
US10935878B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190614

Termination date: 20210826

CF01 Termination of patent right due to non-payment of annual fee