CN108366201A - A kind of electronic flutter-proof method based on gyroscope - Google Patents
A kind of electronic flutter-proof method based on gyroscope Download PDFInfo
- Publication number
- CN108366201A CN108366201A CN201810146840.7A CN201810146840A CN108366201A CN 108366201 A CN108366201 A CN 108366201A CN 201810146840 A CN201810146840 A CN 201810146840A CN 108366201 A CN108366201 A CN 108366201A
- Authority
- CN
- China
- Prior art keywords
- gyroscope
- pmf
- matrix
- method based
- rotation angle
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
- H04N23/6812—Motion detection based on additional sensors, e.g. acceleration sensors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3179—Video signal processing therefor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Gyroscopes (AREA)
- Studio Devices (AREA)
- Adjustment Of Camera Lenses (AREA)
Abstract
The present invention provides a kind of electronic flutter-proof method based on gyroscope, and this method comprises the following steps:The X, Y, Z axis of gyroscope is overlapped with Sensor respectively;The rotation angle of the X, Y, Z axis of Sensor is detected by gyroscope;Rotation angle and current lens field angle are matched;The estimation between two frames is done using Feature Points Matching method, calculates the projection matrix P Matrix of two frames;By gyroscope rotation angle and P Matrix by together with the weight fusion in method;Using the projection matrix after fusion, present frame is projected, is then cut out the image of target sizes, to realize the effect of stabilization.Using the anti-fluttering method of the present invention, it can effectively solve the problem that background caused by large area object of which movement pulls, while can reduce at night, influence of the picture noise to characteristic point matching method.
Description
Technical field
The invention belongs to security monitoring technologies, more particularly, to a kind of electronic flutter-proof method based on gyroscope.
Background technology
The protection and monitor field of requirement with to(for) the application scenarios of video camera becomes increasingly complex, the vibrations pair of installation environment
The influence of image also can be more and more.In order to guarantee in various complex environments, the vibrations in environment are filtered out, are acquired
It is particularly important to steady and audible image.
During vibrations, the data of Sensor acquisitions can follow the swing of camera lens and change, and so as to cause shake, lead to figure
As obscuring, the purpose of monitoring cannot achieve.
Simple electronic flutter-proof can not solve the problems, such as that big object passes through background dragging caused by camera lens is and the low noise that shines is asked
Topic, so addition gyroscope, can directly judge with the presence or absence of shake, to solve the above problems.
Invention content
In view of this, the present invention is directed to propose a kind of electronic flutter-proof method based on gyroscope, to solve in above-mentioned background
The problem of mentioning.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
A kind of electronic flutter-proof method based on gyroscope, includes the following steps:
(1) X, Y, Z axis of gyroscope is overlapped with Sensor respectively;
(2) the rotation angle A, B, C of the X, Y, Z axis of Sensor are detected by gyroscope;
(3) rotation angle and current lens field angle are matched, matching formula is a quadratic polynomial
F=a*x2+b*X;Respective angles α, beta, gamma are obtained by matching formula operation;
(4) estimation between two frames is done using Feature Points Matching method, calculates the projection matrix PMF of two framessift;
(5) according to α, beta, gamma finds out corresponding spin matrix PMF respectivelyα,PMFβ,PMFγ;
(6) by gyroscope rotation angle and PMFsiftTogether by the weight fusion in method,
Final matrix P-Matrix is found out,
P-Matrix=A*PMFα*B*PMFβ*C*PMFγ*D*PMFsift, ABCD is the weight of corresponding matrix;
(7) using the projection matrix after fusion, present frame is projected, the image of target sizes is then cut out,
Realize stabilization.
Further, the gyroscope is needed with Sensor in the same plane, to reduce the complexity of correction.
Further, the matching for the angle and field angle that the gyroscope measures with each camera lens internal reference dynamic change.
Further, the projection matrix PMFsiftFor the matrix of 3X3, select to use according to the computing capability of hardware platform
Parameter number.
Compared with the existing technology, a kind of electronic flutter-proof method based on gyroscope of the present invention has the advantage that:
The anti-fluttering method of the present invention can effectively solve the problem that background caused by large area object of which movement pulls, while can drop
It is low at night, influence of the picture noise to characteristic point matching method.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of execution flow chart of electronic flutter-proof method based on gyroscope described in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the X, Y, Z axis of the spiral shell instrument and Sensor described in the embodiment of the present invention.
Fig. 3 is the projection matrix format described in the embodiment of the present invention.
Specific implementation mode
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
The present invention use first gyroscope obtain Sensor X, Y, Z axis real-time angular speed, because of gyroscope temperature drift
Then reason is being integrated so needing to carry out Kalman filtering in the data to acquisition, to obtain the angle of its rotation
The position relationship of degree, gyroscope and Sensor are shown in Fig. 2.
According to the relationship of rotation angle and the field angle of current lens, the motion vector of present image is calculated, is preferably made
It is calculated with diagonal field of view angle, is centainly subject to the field angle actually measured, current motion vector is recorded as
Using characteristic point matching method, such as sift methods, the characteristic point in image is found, then to the spy in two width figures
Sign point is matched, and matched principle uses the mode of neighborhood maximums, and match point can be limited by the way that contiguous range is arranged
Sensitivity, by the feature point group screened at matching pair, in order to solve the matrix of a 3X3, it is only necessary to 5 pairs of match points,
But there are many match point screened, so we need fit metric, by way of least square method, obtain optimal
Projection matrix P-Matrix, matrix format are shown in Fig. 3.
This method is needed the projection matrix P-Matrix and gyroscope rotating vector of pure electronic flutter-proof methodIt is fused to
Together, wherein needing a fusion weight GyroWeight, integration percentage is adjusted by changing GyroWeight, is merged
Matrix PMF.
Using fusion matrix PMF, projective transformation is carried out to present frame, can change in projection process the position of image pixel with
And then the size of image is cut out and amplifies to image, reach and set so needing to find picture centre in projection process
The resolution ratio set, to realize the effect of stabilization.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (4)
1. a kind of electronic flutter-proof method based on gyroscope, it is characterised in that:Include the following steps:
(1) X, Y, Z axis of gyroscope is overlapped with Sensor respectively;
(2) the rotation angle A, B, C of the X, Y, Z axis of Sensor are detected by gyroscope;
(3) rotation angle and current lens field angle are matched, matching formula is a quadratic polynomial
F=a*x2+b*X;Respective angles α, beta, gamma are obtained by matching formula operation;
(4) estimation between two frames is done using Feature Points Matching method, calculates the projection matrix PMF of two framessift;
(5) according to α, beta, gamma finds out corresponding spin matrix PMF respectivelyα,PMFβ,PMFγ;
(6) by gyroscope rotation angle and PMFsiftTogether by the weight fusion in method, final matrix P- is found out
Matrix,
P-Matrix=A*PMFα*B*PMFβ*C*PMFγ*D*PMFsift, ABCD is the weight of corresponding matrix;
(7) using the projection matrix after fusion, present frame is projected, the image of target sizes is then cut out, realized
Stabilization.
2. a kind of electronic flutter-proof method based on gyroscope according to claim 1, it is characterised in that:The gyroscope needs
It will be with Sensor in the same plane, to reduce the complexity of correction.
3. a kind of electronic flutter-proof method based on gyroscope according to claim 1, it is characterised in that:The gyroscope is surveyed
The matching of the angle and field angle of amount with each camera lens internal reference dynamic change.
4. a kind of electronic flutter-proof method based on gyroscope according to claim 1, it is characterised in that:The projection matrix
PMFsiftFor the matrix of 3X3, according to the number of the computing capability of hardware platform parameter selected to use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810146840.7A CN108366201B (en) | 2018-02-12 | 2018-02-12 | Electronic anti-shake method based on gyroscope |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810146840.7A CN108366201B (en) | 2018-02-12 | 2018-02-12 | Electronic anti-shake method based on gyroscope |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108366201A true CN108366201A (en) | 2018-08-03 |
CN108366201B CN108366201B (en) | 2020-11-06 |
Family
ID=63006085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810146840.7A Active CN108366201B (en) | 2018-02-12 | 2018-02-12 | Electronic anti-shake method based on gyroscope |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108366201B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110049246A (en) * | 2019-04-22 | 2019-07-23 | 联想(北京)有限公司 | Video anti-fluttering method, device and the electronic equipment of electronic equipment |
CN110248048A (en) * | 2019-06-21 | 2019-09-17 | 苏宁云计算有限公司 | A kind of detection method and device of video jitter |
CN111225155A (en) * | 2020-02-21 | 2020-06-02 | Oppo广东移动通信有限公司 | Video anti-shake method, video anti-shake device, electronic equipment, computer equipment and storage medium |
CN112291476A (en) * | 2020-10-30 | 2021-01-29 | 维沃移动通信(杭州)有限公司 | Shooting anti-shake processing method and device and electronic equipment |
WO2021102893A1 (en) * | 2019-11-29 | 2021-06-03 | Oppo广东移动通信有限公司 | Method and apparatus for video anti-shaking optimization and electronic device |
CN113923340A (en) * | 2020-07-09 | 2022-01-11 | 武汉Tcl集团工业研究院有限公司 | Video processing method, terminal and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348046A (en) * | 2010-07-30 | 2012-02-08 | 富士通株式会社 | Video shake removing method and video shake removing device |
CN104902142A (en) * | 2015-05-29 | 2015-09-09 | 华中科技大学 | Method for electronic image stabilization of video on mobile terminal |
CN105141807A (en) * | 2015-09-23 | 2015-12-09 | 北京二郎神科技有限公司 | Video signal image processing method and device |
CN105651242A (en) * | 2016-04-05 | 2016-06-08 | 清华大学深圳研究生院 | Method for calculating fusion attitude angle based on complementary Kalman filtering algorithm |
CN105681674A (en) * | 2016-03-21 | 2016-06-15 | 南通大学 | Image stabilizing method and compound image stabilizing system based on mechanical image stabilizing and electronic image stabilizing |
CN105872370A (en) * | 2016-03-31 | 2016-08-17 | 深圳中兴力维技术有限公司 | Video jitter removing method and device |
CN106780370A (en) * | 2016-11-25 | 2017-05-31 | 阿依瓦(北京)技术有限公司 | A kind of image de-jittering device and method thereof |
CN107040694A (en) * | 2017-04-07 | 2017-08-11 | 深圳岚锋创视网络科技有限公司 | A kind of method, system and the portable terminal of panoramic video stabilization |
US20170261763A1 (en) * | 2013-03-14 | 2017-09-14 | Microsoft Technology Licensing, Llc | Anti-shake correction system for curved optical sensor |
-
2018
- 2018-02-12 CN CN201810146840.7A patent/CN108366201B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348046A (en) * | 2010-07-30 | 2012-02-08 | 富士通株式会社 | Video shake removing method and video shake removing device |
US20170261763A1 (en) * | 2013-03-14 | 2017-09-14 | Microsoft Technology Licensing, Llc | Anti-shake correction system for curved optical sensor |
CN104902142A (en) * | 2015-05-29 | 2015-09-09 | 华中科技大学 | Method for electronic image stabilization of video on mobile terminal |
CN105141807A (en) * | 2015-09-23 | 2015-12-09 | 北京二郎神科技有限公司 | Video signal image processing method and device |
CN105681674A (en) * | 2016-03-21 | 2016-06-15 | 南通大学 | Image stabilizing method and compound image stabilizing system based on mechanical image stabilizing and electronic image stabilizing |
CN105872370A (en) * | 2016-03-31 | 2016-08-17 | 深圳中兴力维技术有限公司 | Video jitter removing method and device |
CN105651242A (en) * | 2016-04-05 | 2016-06-08 | 清华大学深圳研究生院 | Method for calculating fusion attitude angle based on complementary Kalman filtering algorithm |
CN106780370A (en) * | 2016-11-25 | 2017-05-31 | 阿依瓦(北京)技术有限公司 | A kind of image de-jittering device and method thereof |
CN107040694A (en) * | 2017-04-07 | 2017-08-11 | 深圳岚锋创视网络科技有限公司 | A kind of method, system and the portable terminal of panoramic video stabilization |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110049246A (en) * | 2019-04-22 | 2019-07-23 | 联想(北京)有限公司 | Video anti-fluttering method, device and the electronic equipment of electronic equipment |
CN110248048A (en) * | 2019-06-21 | 2019-09-17 | 苏宁云计算有限公司 | A kind of detection method and device of video jitter |
CN110248048B (en) * | 2019-06-21 | 2021-11-09 | 苏宁云计算有限公司 | Video jitter detection method and device |
WO2021102893A1 (en) * | 2019-11-29 | 2021-06-03 | Oppo广东移动通信有限公司 | Method and apparatus for video anti-shaking optimization and electronic device |
CN111225155A (en) * | 2020-02-21 | 2020-06-02 | Oppo广东移动通信有限公司 | Video anti-shake method, video anti-shake device, electronic equipment, computer equipment and storage medium |
CN113923340A (en) * | 2020-07-09 | 2022-01-11 | 武汉Tcl集团工业研究院有限公司 | Video processing method, terminal and storage medium |
CN113923340B (en) * | 2020-07-09 | 2023-12-29 | 武汉Tcl集团工业研究院有限公司 | Video processing method, terminal and storage medium |
CN112291476A (en) * | 2020-10-30 | 2021-01-29 | 维沃移动通信(杭州)有限公司 | Shooting anti-shake processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108366201B (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108366201A (en) | A kind of electronic flutter-proof method based on gyroscope | |
US11057567B2 (en) | Anti-shake method and apparatus for panoramic video, and portable terminal | |
JP6605640B2 (en) | System and method for stabilizing digital video via constraint-based rotational smoothing | |
Karpenko et al. | Digital video stabilization and rolling shutter correction using gyroscopes | |
US9686479B2 (en) | Method for combining multiple image fields | |
JP6204585B2 (en) | Applying video stabilization to multimedia clips | |
US8767036B2 (en) | Panoramic imaging apparatus, imaging method, and program with warning detection | |
JP5906028B2 (en) | Image processing apparatus and image processing method | |
JP6128389B2 (en) | Imaging device | |
CN102780846B (en) | Electronic image stabilization method based on inertial navigation information | |
US20150123990A1 (en) | Image processing device, image processing method, image processing program, and storage medium | |
CN110022444B (en) | Panoramic photographing method for unmanned aerial vehicle and unmanned aerial vehicle using panoramic photographing method | |
JP2018189730A (en) | Image tremor correction device and control method for the same, program therefor, and storage medium | |
JP6769440B2 (en) | Image processing equipment, image processing methods, programs and imaging systems | |
CN113556464B (en) | Shooting method and device and electronic equipment | |
US10104286B1 (en) | Motion de-blurring for panoramic frames | |
JP6594170B2 (en) | Image processing apparatus, image processing method, image projection system, and program | |
JP6098873B2 (en) | Imaging apparatus and image processing apparatus | |
CN108734738A (en) | Camera calibration method and device | |
JP2023052772A (en) | Imaging support device, imaging apparatus, imaging system, imaging support system, imaging support method, and program | |
US11531211B2 (en) | Method for stabilizing a camera frame of a video sequence | |
JP2016110312A (en) | Image processing method, and image processor and program | |
US20220174217A1 (en) | Image processing method and device, electronic device, and computer-readable storage medium | |
Jiang et al. | Sensor-assisted image deblurring of consumer photos on smartphones | |
Yifan et al. | Panoramic Stitching of 4-Channel Dynamic Video Platform Based on Pinhole Lens |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |