CN104580830A - Quasi static image anti-jitter method oriented to video monitoring - Google Patents

Quasi static image anti-jitter method oriented to video monitoring Download PDF

Info

Publication number
CN104580830A
CN104580830A CN201510012974.6A CN201510012974A CN104580830A CN 104580830 A CN104580830 A CN 104580830A CN 201510012974 A CN201510012974 A CN 201510012974A CN 104580830 A CN104580830 A CN 104580830A
Authority
CN
China
Prior art keywords
present frame
frame
horizontal direction
projection properties
direction 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
CN201510012974.6A
Other languages
Chinese (zh)
Other versions
CN104580830B (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.)
ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd
Original Assignee
ANHUI QINGXIN INTERNET INFORMATION 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 ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd filed Critical ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510012974.6A priority Critical patent/CN104580830B/en
Publication of CN104580830A publication Critical patent/CN104580830A/en
Application granted granted Critical
Publication of CN104580830B publication Critical patent/CN104580830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a quasi static image anti-jitter method oriented to video monitoring. The method comprises the steps of updating a reference frame periodically, calculating the projection feature vectors in the vertical direction and the horizontal direction of each frame of image, solving the best offset of each frame of image relative to the reference frame, and correcting the current image according to the best offset. The quasi static image anti-jitter method has the advantages that the processing speed is high, and the quasi static scene image anti-jitter effect on video monitoring application is good.

Description

A kind of quasistatic Image Anti dither method of facing video monitoring
Technical field
The present invention relates to technical field of image processing, specifically a kind of quasistatic Image Anti dither method of facing video monitoring.
Background technology
In video surveillance applications, have a large portion video camera to be erected at field, installation environment is relatively more severe, and strong wind weather or earth shock can cause video camera randomized jitter up and down.If when the scene of monitoring is furthered by high power camera lens, the shake in whole face clearly, will have a strong impact on monitoring effect.Video camera is fixed on more stable support and can reduces shake, but this measure is infeasible in a lot of occasion, therefore need the method adopting image procossing, eliminate the shake of picture, improve video effect.
The essence visually producing shake is: in two width adjacent images, identical impact point, and screen is successively presented at different positions.In image processing field, can think there is an affine transformation relationship between this two width image.In theory, as long as obtain this affine transformation relationship, all pixels of a rear width figure are corrected, just can eliminate jitter phenomenon.The method of conventional feature based Point matching asks for affine transformation relationship at present.First the key point (such as angle point etc.) of two width images is extracted respectively, then by calculating the similarity determination mapping relations between key point, thus calculate geometric transform relation (being generally affine transformation relationship), then according to this relation, again by all pixel transform of the second width image to reposition, thus eliminate shake.
Said method has versatility in theory, therefore can process the problem of the various images match in practical application, but amount of calculation is larger, realizes cost higher.In video surveillance applications, because camera views can only produce translational motion up and down, this is a kind of affine transformation of simplification in fact, and therefore we can solve this kind of specific question by new algorithm, thus reduces amount of calculation, reduces and realizes cost.Such trial has the anti-jitter method of video image " in a kind of video monitoring " (Chinese invention patent application CN104079800A), the method carries out piecemeal to image, calculate the textural characteristics of each image block, matching area is searched in image, then obtain translation parameters according to the matching result of multiple image block, jitter correction is carried out to image.The method, relative to the method for Feature Points Matching, decreases amount of calculation.
In video surveillance applications, the monitoring scene most areas being erected at the video camera in field all can not change usually, can think a kind of quasistatic image, and therefore, vertically relative with the projection properties vector of horizontal direction is also stable.
Summary of the invention
The object of the present invention is to provide a kind of quasistatic Image Anti dither method of facing video monitoring, the method asks for translation parameters according to the vertical of image and horizontal direction projection properties vector, and relative to the method for image block coupling, amount of calculation is less.
Technical scheme of the present invention is:
A quasistatic Image Anti dither method for facing video monitoring, comprises the following steps:
(1) input a two field picture, judge whether to there is reference frame, if so, then perform step (5), if not, then perform step (2);
(2) using present frame as reference frame;
(3) calculate the vertical of present frame and horizontal direction projection properties vector, and result of calculation buffering is got up;
(4) present frame is exported;
(5) judge whether to need to upgrade reference frame, if so, then jump to step (2), if not, then perform step (6);
(6) the vertical of present frame and horizontal direction projection properties vector is calculated;
(7) according to present frame and the vertical of reference frame and horizontal direction projection properties vector, the optimized migration amount of present frame is calculated;
(8) present frame is corrected according to optimized migration amount;
(9) result that current frame offset corrects is exported.
The quasistatic Image Anti dither method of described facing video monitoring, in described step (3) and step (6), calculate the vertical of present frame and horizontal direction projection properties vectorial, specifically comprise:
(21) value of pixel each in current frame image is designated as I (i, j), 0≤i < M, 0≤j < N, wherein, represent the abscissa of pixel, j represents the ordinate of pixel, M represents the width of current frame image, and N represents the height of current frame image;
(22) following formulae discovery is adopted to go out the vertical direction projection properties vector of present frame:
V = v ( 0 ) v ( 1 ) . . . v ( i ) . . . v ( M - 2 ) v ( M - 1 )
v ( i ) = &Sigma; 0 &le; j < N I ( i , j ) 0 &le; i < M
Wherein, V represents the vertical direction projection properties vector of present frame, and be a M dimensional vector, v (i) represents that i-th of the vertical direction projection properties vector of present frame maintains number;
(23) following formulae discovery is adopted to go out the horizontal direction projection properties vector of present frame:
H = h ( 0 ) h ( 1 ) . . . h ( j ) . . . h ( N - 2 ) h ( N - 1 )
h ( i ) = &Sigma; 0 &le; i < M I ( i , j ) 0 &le; j < N
Wherein, H represents the horizontal direction projection properties vector of present frame, and be a N dimensional vector, h (j) represents that the jth of the horizontal direction projection properties vector of present frame maintains number.
The quasistatic Image Anti dither method of described facing video monitoring, in described step (7), according to present frame and the vertical of reference frame and horizontal direction projection properties vector, calculates the optimized migration amount of present frame, specifically comprises:
(31) following formulae discovery is adopted to go out present frame relative to reference frame offset index in the horizontal direction:
V diff ( m ) = 1 M - m &Sigma; m &le; i < M | | ( v ( i ) - v b ( i - m ) ) | |
Wherein, V diffoffset index when () represents that present frame offsets m pixel in the horizontal direction relative to reference frame m, v b(i-m) represent that the i-th-m of the vertical direction projection properties vector of reference frame maintains number;
(32) following formulae discovery is adopted to go out present frame relative to reference frame offset index in vertical direction:
H diff ( n ) = 1 N - n &Sigma; n &le; j < N | | ( h ( j ) - h b ( j - n ) ) | |
Wherein, H diffoffset index when () represents that present frame offsets n pixel in vertical direction relative to reference frame n, h b(j-n) represent that the jth-n of the horizontal direction projection properties vector of reference frame maintains number;
(33) obtain and make V diffm m that () is minimum, namely obtains present frame relative datum frame optimized migration amount m in the horizontal direction opt;
(34) obtain and make H diffn n that () is minimum, namely obtains present frame relative to reference frame optimized migration amount n in vertical direction opt.
The present invention when shake occurs image for the firm not video camera of support, effectively can suppress the jitter amplitude of image, improve subjective effect, and calculates very fast, and practicality is good.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Embodiment
Below, the present invention is further illustrated with specific embodiment by reference to the accompanying drawings.
As shown in Figure 1, a kind of quasistatic Image Anti dither method of facing video monitoring, comprises the following steps:
Step S01, input a two field picture, judge whether to have cushioned reference frame, if so, then perform step S05, if not, then perform step S02;
Step S02, using present frame as reference frame;
Vertical and the horizontal direction projection properties vector of step S03, calculating present frame, and result of calculation buffering is got up;
The acquiring method of projection properties vector is:
The value of pixel each in image is designated as I (i, j), 0≤i < M, 0≤j < N, i is the abscissa of this pixel, and j is the ordinate of this pixel, and M is the width of image, and N is the height of image; Vertical direction projection properties vector is a M dimensional vector, is designated as V, and as shown in formula [1], v (i) represents that i-th of the vertical direction projection properties vector of present frame maintains number, as shown in formula [2]; Horizontal direction projection properties vector is a N dimensional vector, is designated as H, and as shown in formula [3], h (j) represents that of the horizontal direction projection properties vector of present frame maintains number, as shown in formula [4]; After calculating, result of calculation buffering is got up;
Formula [1]:
V = v ( 0 ) v ( 1 ) . . . v ( i ) . . . v ( M - 2 ) v ( M - 1 )
Formula [2]:
v ( i ) = &Sigma; 0 &le; j < N I ( i , j ) 0 &le; i < M
Formula [3]:
H = h ( 0 ) h ( 1 ) . . . h ( j ) . . . h ( N - 2 ) h ( N - 1 )
Formula [4]:
h ( i ) = &Sigma; 0 &le; i < M I ( i , j ) 0 &le; j < N
Step S04, present frame to be exported;
Step S05, judge whether to need to upgrade reference frame, renewal according to being: compile a sequence number increased progressively to each frame, when sequence number divides exactly certain normal integer T, be just judged as YES, otherwise be judged as NO, T is larger, and renewal is slower, and the less renewal of T is faster; In general, will be adjusted to proper between 1 ~ 100 second the update cycle; If the judgment is Yes, then perform step S02, if the judgment is No, then perform step S06;
Vertical and the horizontal direction projection properties vector of step S06, calculating present frame, computational methods are see step S03;
Step S07, according to present frame and the vertical of reference frame and horizontal direction projection properties vector, calculate the optimized migration amount of present frame, computational methods are:
When present frame offsets m pixel in the horizontal direction relative to reference frame, offset index V diff(m) computational methods as shown in formula [5], wherein v b(i-m) represent that the i-th-m of the vertical direction projection properties vector of reference frame maintains number;
When present frame offsets n pixel in vertical direction relative to reference frame, offset index H diff(n) computational methods as shown in formula [6], wherein h b(j-n) represent that the jth-n of the horizontal direction projection properties vector of reference frame maintains number;
Formula [5]:
V diff ( m ) = 1 M - m &Sigma; m &le; i < M | | ( v ( i ) - v b ( i - m ) ) | |
Formula [6]:
H diff ( n ) = 1 N - n &Sigma; n &le; j < N | | ( h ( j ) - h b ( j - n ) ) | |
The maximum offset that note horizontal direction is possible is MaxM, then m interval is [-MaxM, MaxM], obtains and makes V diffm m that () is minimum is exactly the optimized migration amount of horizontal direction;
The maximum offset that note vertical direction is possible is MaxN, then n interval is [-MaxN, MaxN], obtains and makes H diffn n that () is minimum is exactly the optimized migration amount of vertical direction;
Step S08, according to optimized migration amount correct present frame;
If step S07 calculates horizontal direction optimized migration, amount is m opt, then by present frame integral level direction translation m optindividual pixel, if step S07 calculates vertical direction optimized migration, amount is n opt, then by present frame overall vertical direction translation n optindividual pixel;
Step S09, the result corrected by current frame offset export.
The above execution mode is only be described the preferred embodiment of the present invention; not scope of the present invention is limited; under not departing from the present invention and designing the prerequisite of spirit; the various distortion that those of ordinary skill in the art make technical scheme of the present invention and improvement, all should fall in protection range that claims of the present invention determine.

Claims (3)

1. a quasistatic Image Anti dither method for facing video monitoring, is characterized in that, comprise the following steps:
(1) input a two field picture, judge whether to there is reference frame, if so, then perform step (5), if not, then perform step (2);
(2) using present frame as reference frame;
(3) calculate the vertical of present frame and horizontal direction projection properties vector, and result of calculation buffering is got up;
(4) present frame is exported;
(5) judge whether to need to upgrade reference frame, if so, then jump to step (2), if not, then perform step (6);
(6) the vertical of present frame and horizontal direction projection properties vector is calculated;
(7) according to present frame and the vertical of reference frame and horizontal direction projection properties vector, the optimized migration amount of present frame is calculated;
(8) present frame is corrected according to optimized migration amount;
(9) result that current frame offset corrects is exported.
2. the quasistatic Image Anti dither method of facing video monitoring according to claim 1, is characterized in that, in described step (3) and step (6), calculate the vertical of present frame and horizontal direction projection properties vectorial, specifically comprise:
(21) value of pixel each in current frame image is designated as I (i, j), 0≤i < M, 0≤j < N, wherein, i represents the abscissa of pixel, and j represents the ordinate of pixel, M represents the width of current frame image, and N represents the height of current frame image;
(22) following formulae discovery is adopted to go out the vertical direction projection properties vector of present frame:
V = v ( 0 ) v ( 1 ) . . . v ( i ) . . . v ( M - 2 ) v ( M - 1 )
v ( i ) = &Sigma; 0 &le; j < N I ( i , j ) , 0 &le; i < N
Wherein, V represents the vertical direction projection properties vector of present frame, and be a M dimensional vector, v (i) represents that i-th of the vertical direction projection properties vector of present frame maintains number;
(23) following formulae discovery is adopted to go out the horizontal direction projection properties vector of present frame:
H = h ( 0 ) h ( 1 ) . . . h ( j ) . . . h ( N - 2 ) h ( N - 1 )
h ( j ) = &Sigma; 0 &le; i < N I ( i , j ) , 0 &le; j < N
Wherein, H represents the horizontal direction projection properties vector of present frame, is a N dimensional vector, and h (j) represents that the of the horizontal direction projection properties vector of present frame maintains number.
3. the quasistatic Image Anti dither method of facing video monitoring according to claim 2, it is characterized in that, in described step (7), according to present frame and the vertical of reference frame and horizontal direction projection properties vector, calculate the optimized migration amount of present frame, specifically comprise:
(31) following formulae discovery is adopted to go out present frame relative to reference frame offset index in the horizontal direction:
V diff ( m ) = 1 M - m &Sigma; m &le; i < M | | ( v ( i ) - v b ( i - m ) ) | |
Wherein, V diffoffset index when () represents that present frame offsets m pixel in the horizontal direction relative to reference frame m, v b(i-m) represent that the i-th-m of the vertical direction projection properties vector of reference frame maintains number;
(32) following formulae discovery is adopted to go out present frame relative to reference frame offset index in vertical direction:
V diff ( n ) = 1 N - n &Sigma; n &le; j < N | | ( h ( j ) - h b ( j - n ) ) | |
Wherein, H diffoffset index when () represents that present frame offsets n pixel in vertical direction relative to reference frame n, h b(j-n) represent that the jth-n of the horizontal direction projection properties vector of reference frame maintains number;
(33) obtain and make V diffm m that () is minimum, namely obtains present frame relative to reference frame optimized migration amount m in the horizontal direction opt:
(34) obtain and make H diffn n that () is minimum, namely obtains present frame relative to reference frame optimized migration amount n in vertical direction opt.
CN201510012974.6A 2015-01-09 2015-01-09 A kind of quasistatic image anti-jitter method of facing video monitoring Active CN104580830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510012974.6A CN104580830B (en) 2015-01-09 2015-01-09 A kind of quasistatic image anti-jitter method of facing video monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012974.6A CN104580830B (en) 2015-01-09 2015-01-09 A kind of quasistatic image anti-jitter method of facing video monitoring

Publications (2)

Publication Number Publication Date
CN104580830A true CN104580830A (en) 2015-04-29
CN104580830B CN104580830B (en) 2017-12-19

Family

ID=53095939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012974.6A Active CN104580830B (en) 2015-01-09 2015-01-09 A kind of quasistatic image anti-jitter method of facing video monitoring

Country Status (1)

Country Link
CN (1) CN104580830B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110120096A (en) * 2019-05-14 2019-08-13 东北大学秦皇岛分校 A kind of unicellular three-dimensional rebuilding method based on micro- monocular vision
CN113163120A (en) * 2021-04-21 2021-07-23 安徽清新互联信息科技有限公司 Transformer-based video anti-shake method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316368A (en) * 2008-07-18 2008-12-03 西安电子科技大学 Full view stabilizing method based on global characteristic point iteration
CN102685371A (en) * 2012-05-22 2012-09-19 大连理工大学 Digital video image stabilization method based on multi-resolution block matching and PI (Portion Integration) control
CN103475802A (en) * 2013-09-26 2013-12-25 中国矿业大学 Electronic image stabilization method
US20140132784A1 (en) * 2011-05-03 2014-05-15 St-Ericsson Sa Estimation of Picture Motion Blurriness
CN104079800A (en) * 2014-06-24 2014-10-01 上海波汇通信科技有限公司 Shaking preventing method for video image in video surveillance
CN104144283A (en) * 2014-08-10 2014-11-12 大连理工大学 Real-time digital video image stabilization method based on improved Kalman filter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316368A (en) * 2008-07-18 2008-12-03 西安电子科技大学 Full view stabilizing method based on global characteristic point iteration
US20140132784A1 (en) * 2011-05-03 2014-05-15 St-Ericsson Sa Estimation of Picture Motion Blurriness
CN102685371A (en) * 2012-05-22 2012-09-19 大连理工大学 Digital video image stabilization method based on multi-resolution block matching and PI (Portion Integration) control
CN103475802A (en) * 2013-09-26 2013-12-25 中国矿业大学 Electronic image stabilization method
CN104079800A (en) * 2014-06-24 2014-10-01 上海波汇通信科技有限公司 Shaking preventing method for video image in video surveillance
CN104144283A (en) * 2014-08-10 2014-11-12 大连理工大学 Real-time digital video image stabilization method based on improved Kalman filter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110120096A (en) * 2019-05-14 2019-08-13 东北大学秦皇岛分校 A kind of unicellular three-dimensional rebuilding method based on micro- monocular vision
CN113163120A (en) * 2021-04-21 2021-07-23 安徽清新互联信息科技有限公司 Transformer-based video anti-shake method

Also Published As

Publication number Publication date
CN104580830B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN103108108B (en) Image stabilizing method and image stabilizing device
US8803984B2 (en) Image processing device and method for producing a restored image using a candidate point spread function
US8947529B2 (en) Methods and systems for stabilizing live video in the presence of long-term image drift
CN101959008B (en) Method and apparatus for image and video processing
KR20050065298A (en) Motion compensated frame rate conversion
CN102202164A (en) Motion-estimation-based road video stabilization method
CN104794727B (en) One is calculated as PSF quick calibrating method based on symmetric simple lens
CN105574891A (en) Method and system for detecting moving object in image
US20100149421A1 (en) Image processing method for determining motion vectors of interpolated picture and related apparatus
CN104079800A (en) Shaking preventing method for video image in video surveillance
CN103325109B (en) Be applicable to the distortion correction method of the fish eye images of wall-mounted type panoramic camera
JP5669599B2 (en) Image processing apparatus and control method thereof
CN108665425A (en) Infrared Image Non-uniformity Correction method based on interframe registration and adaptive step
CN105160657A (en) Infrared imaging non-uniformity correction system based on FPGA
CN102637295B (en) Rapid electronic image-stabilizing method and device
US20120134535A1 (en) Method for adjusting parameters of video object detection algorithm of camera and the apparatus using the same
CN102055884B (en) Image stabilizing control method and system for video image and video analytical system
CN104580830A (en) Quasi static image anti-jitter method oriented to video monitoring
CN106651903B (en) A kind of Mobile object detection method
WO2016136151A1 (en) Image processing device, image processing method and program for executing same
CN105100588A (en) Image processing device, imaging device, and image processing method
US20100214488A1 (en) Image signal processing device
CN105915835B (en) One kind can hard-wired frame frequency lifting method
KR102192889B1 (en) Method of detecting moving object and apparatus performing the same
US20140354835A1 (en) System and method for stabilizing digital image sequences

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Quasi static image anti-jitter method oriented to video monitoring

Effective date of registration: 20190705

Granted publication date: 20171219

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: 2019340000361

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200713

Granted publication date: 20171219

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: 2019340000361

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A quasi static image anti dithering method for video surveillance

Effective date of registration: 20210611

Granted publication date: 20171219

Pledgee: Anhui Science and technology Financing Guarantee Co.,Ltd.

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980004615

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220718

Granted publication date: 20171219

Pledgee: Anhui Science and technology Financing Guarantee Co.,Ltd.

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980004615

PC01 Cancellation of the registration of the contract for pledge of patent right