CN102263956A - Mobile detecting method based on motion vector - Google Patents
Mobile detecting method based on motion vector Download PDFInfo
- Publication number
- CN102263956A CN102263956A CN2011102068363A CN201110206836A CN102263956A CN 102263956 A CN102263956 A CN 102263956A CN 2011102068363 A CN2011102068363 A CN 2011102068363A CN 201110206836 A CN201110206836 A CN 201110206836A CN 102263956 A CN102263956 A CN 102263956A
- Authority
- CN
- China
- Prior art keywords
- macro block
- macro
- motion vector
- frame
- moving object
- 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
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention provides a mobile detecting method based on a motion vector. The method is characterized by: carrying out a motion object detecting on a P frame every fixed frame numbers in a video sequence; extracting all macro-block motion vectors of the P frame, wherein all the macro blocks of the P frame divides a frame image into a motion-vector macro-block table; searching in rows from a macro block which is in a top left corner of the motion-vector macro-block table; calculating the motion vector of each macro block and determining so as to obtain a vertex macro block of a moving object; comparing the vertex macro block with 3x3 macro blocks which regard the vertex macro block as a center, finding the macro block which is closest to the vertex macro block and taking the macro block as a marginal macro block of the moving object; taking the marginal macro block of the moving object as the center to continuously search the next marginal macro block which is similar to the marginal macro block; continuously searching the next marginal macro block as the above steps till finding a setting threshold number of macro blocks. By using the invention, operation is simple; whether the moving object exists can be effectively determined; the threshold can be adjusted so as to adjust sensitivity.
Description
[technical field]
The present invention relates to a kind of intelligent video technology field, relate in particular to a kind of mobile detection method based on motion vector.
[background technology]
Moving object detection is meant by the image change of identification monitored picture, target is extracted from monitoring scene.It is the committed step of video monitoring.Moving object detection is in the bottom of whole video surveillance, is the basis of various follow-up senior application such as target following, target classification, goal behavior analysis etc.Therefore moving object detection is the key link that video image is handled.
The moving target detecting method of main flow has following three kinds now:
1. the frame-to-frame differences point-score is in the continuous images sequence between two or three consecutive frames, adopts based on difference and thresholding between the picture frame of pixel and extracts moving region in the image.
2. the background subtraction method at first makes up the background image of guarded region, utilizes present image and background image to subtract each other then and detects moving target.
3. the optical flow field method is calculated the size and Orientation of each pixel motion according to continuous several two field pictures, utilizes sports ground to distinguish background and motion object.
These three kinds of methods all are based on the pixel value of entire image and need multiple image, cause computation complexity excessive and also very high to the requirement of memory space like this.
Motion vector is the data of a two dimension, generally is expressed as (MV in the rectangular coordinate system the inside
X, MV
Y), what its was represented is the motion amplitude and the direction of motion of macro block.Motion vector (MV) is the value that produces in video coding, and we can judge whether it is that moving object is arranged by the analysis to the MV value.So not only reduce computation complexity, and not high to the requirement of memory space yet.That moving object shows in motion vector macro block figure is a slice motion vector macro block group, and moving object macro block group must have the motion macro block at moving object edge.
Mobile detection method is provided in the prior art, as open day was 2010.11.24 day, publication number is the Chinese patent " a kind of mobile detection method and device " of CN101895675A, its description be: a kind of mobile detection method of block, it is characterized in that, comprise: when current block is carried out encoding operation, sensitivity gear sensitivity (sensitivity) the calculating auxiliary parameter of utilizing coding parameter and presetting; Described coding parameter comprises current block motion vector MV at least; Described auxiliary parameter comprise at least described MV absolute value and with first threshold value; By with described coding parameter and the corresponding judgment models of auxiliary parameter, determine the motion state of current block; Described block comprises one or more macro block.This invention is to determine the motion state of the block (its block is to comprise one or more macro block) of present encoding by calculating auxiliary parameter and coding parameter, thereby judges the situation of movement of block; The calculating more complicated of the mobile detection of this method.
Prior art also provides the sub-pix method for fast searching of a kind of Motion Adaptive, its open day is 2010.04.28, publication number is the patent of CN101699865A, its description be: belong to the motion estimation techniques field in the video coding, this invention step is: 1) beginning; 2) motion-vector prediction; 3) integer pixel search; 4) beginning sub-pix search; 5) 1/2 and 1/4 picture element interpolation; 6) the motion severe degree of judgement current macro; 7) carry out big diamond search; 8) carry out the little diamond search of the first order; 9) judge that optimum point is whether at the center of little rhombus; 10) carry out the little diamond search in the second level; 11) the sub-pix search finishes; 12) return MV, the motion cost that sub-pix is searched for the optimum point position, macro block (piece) estimation finishes.This method is a kind of new for the adaptive sub-pix searching method of macro block (piece) movement degree, and it has reduced the time of video coding and the complexity of calculating effectively.
Because moving object is in MV macro block figure, all MV of moving object integral body are connected together usually, therefore can be by seeking the effective MV value that links to each other in MV macro block figure, i.e. moving object edge, the present invention uses exactly and detects the moving object edge, has judged whether moving object.
[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of mobile detection method based on motion vector, has realized having determined whether moving object by seeking the border movement macro block.
The present invention is achieved in that a kind of mobile detection method based on motion vector, comprises the steps:
Wherein, will in the described step 30
One by one with
3 * 3 macro blocks that are the center do to judge relatively, find with
Similar macro block is specially:
With (X=X
Top) set up rectangular coordinate system, X<X in the macroblock motion vector that will compare for axis
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the lower right corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block;
X>X in the macroblock motion vector that will compare
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the upper left corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block.
Wherein all macroblock size of P frame are 8 * 8 block of pixels, and it is described to be every 4 fixing frame numbers every fixing frame number.
The present invention has following advantage: the present invention carries out detecting moving object every 4 frames one time to the P frame in video sequence, extracts all macroblock motion vectors of this P frame, and all macro blocks of this P frame are divided into a motion vector macro block table with a two field picture; Begin to search by row from the macro block in the upper left corner of motion vector macro block table, the motion vector of each macro block is calculated and judges the summit macro block that obtains moving object; Summit macro block and 3 * 3 macro blocks that with the summit macro block are the center are compared, find and the immediate macro block of summit macro block, and with it as moving object edge macro block, be the center with this moving object edge macro block again, continue to seek next similar edge macro block to it; By that analogy, constantly seek next edge macro block; Up to finding the individual macroblock number of setting threshold.The present invention need not come video motion is detected based on the pixel value and the multiple image of entire image, but utilizes the motion vector that generates in the video coding process, seeks moving object border movement macro block and has determined whether moving object; This method has reduced the memory space of computing and system, and can be by regulating threshold value to regulate the sensitivity of the inventive method.
[description of drawings]
Fig. 1 is the inventive method schematic flow sheet.
Fig. 2 is that 3 * 3 macro blocks make to judge structural representation relatively in the motion vector macro block table of the present invention.
[embodiment]
Please refer to shown in Figure 1ly, the mobile detection method based on motion vector of the present invention comprises the steps:
With (X=X
Top) set up rectangular coordinate system for axis, as shown in Figure 2, in the present embodiment, (zone 1, zone 2, zone 3, zone 4, zone 5, the zone 6 of each zone on the parabola in the coordinate system wherein, each zone all is made up of 3 * 3 macro blocks, 6 zones are present embodiment one preferred example herein, and its zone that will compare is not limit 6) be 3 * 3 macro blocks will doing to judge; X<X in the macroblock motion vector that will compare
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the lower right corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block;
X>X in the macroblock motion vector that will compare
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the upper left corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block.The motion vector of this edge macro block of finding is designated as
If do not find similar macro block, then find
Be the error amount of video coding, the P frame of getting in other 4 frames is judged again;
Here what deserves to be mentioned is: all motion vectors generate in video coding process; Principle of the present invention is: seek the object edge motion macro block of moving object in motion vector macro block figure, purpose is to find the boundary curve of moving object, has determined whether moving object.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.
Claims (4)
1. the mobile detection method based on motion vector is characterized in that: comprise the steps:
Step 10, every fixing frame number the P frame is carried out detecting moving object one time in video sequence, extract all macroblock motion vectors of this P frame, all macro blocks of this P frame are divided into a motion vector macro block table with a two field picture;
Step 20, setting first threshold T
1, T
1As judging whether macro block is the standard of motion macro block; Begin to search by row from the macro block in the upper left corner of described motion vector macro block table, the motion vector of each macro block is calculated and judges: calculate
Whether value is more than or equal to T
1, MV wherein
X, MV
YBe the macroblock motion vector in the rectangular coordinate system; As the motion vector computation value of a macro block more than or equal to T
1, be designated as then the summit macro block of this macro block, and with the motion vector of this macro block as moving object
Enter step 30; The motion vector computation of all macro blocks in the image of a frame
Value is less than T
1, then this frame is not a motion frame, does not promptly have moving object, take off one fixedly the P frame in the frame number judge again;
Step 30, from
Macro block begins to seek in a clockwise direction moving object edge macro block, sets the second threshold value T
2, will
One by one with
3 * 3 macro blocks that are the center do to judge relatively, find with
Similar macro block, promptly similar macro block is the moving object edge macro block that will look for, and the motion vector of this edge macro block is designated as
If do not find similar macro block, then find
Be the error amount of video coding, take off one fixedly the P frame in the frame number judge again;
Step 40, again with
Be the center, continue with the process of step 30 seek next with
Similar edge macro block; By that analogy, constantly seek next edge macro block; Set the 3rd threshold value T
3, T
3Find the threshold value of edge macroblock number as judgement; If the edge macroblock number that finds is more than or equal to T
3, illustrate that then this frame has moving object; If can not find the edge macro block or the edge macro block is given initial point for change
And the macroblock number that finds is less than T
3, illustrate that then this frame does not have moving object, continue to take off one fixedly the P frame in the frame number judge again.
2. the mobile detection method based on motion vector according to claim 1 is characterized in that: will in the described step 30
One by one with
3 * 3 macro blocks that are the center do to judge relatively, find with
Similar macro block is specially:
With (X=X
Top) set up rectangular coordinate system, X<X in the macroblock motion vector that will compare for axis
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the lower right corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block;
X>X in the macroblock motion vector that will compare
iThe time, then preferentially choose clockwise that macro block calculates one by one and relatively: calculate from the upper left corner direction of 3 * 3 macro blocks
Whether value is less than T
2, wherein
Be the macroblock motion vector of current comparison, i be 1,2,3...8}; After 3 * 3 macro blocks are all relatively intacter, from calculated value diff wherein less than T
2And that less macro block of the diff value of its calculating is will look for moving object edge macro block; If after 3 * 3 macro blocks were all relatively intacter, its each macro block calculated value diff was more than or equal to T
2, then do not find similar macro block.
3. the mobile detection method based on motion vector according to claim 1 is characterized in that: all macroblock size of P frame are 8 * 8 block of pixels in the described step 10.
4. the mobile detection method based on motion vector according to claim 1 is characterized in that: described in the described step 10 every fixing frame number for every 4 fixing frame numbers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110206836 CN102263956B (en) | 2011-07-21 | 2011-07-21 | Mobile detecting method based on motion vector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110206836 CN102263956B (en) | 2011-07-21 | 2011-07-21 | Mobile detecting method based on motion vector |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102263956A true CN102263956A (en) | 2011-11-30 |
CN102263956B CN102263956B (en) | 2013-03-20 |
Family
ID=45010384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110206836 Expired - Fee Related CN102263956B (en) | 2011-07-21 | 2011-07-21 | Mobile detecting method based on motion vector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102263956B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495073A (en) * | 2018-03-29 | 2018-09-04 | 福州瑞芯微电子股份有限公司 | A kind of picture frame field detecting method, storage medium and computer |
CN110532837A (en) * | 2018-05-25 | 2019-12-03 | 九阳股份有限公司 | Image processing method and household appliance in a kind of article fetching process |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6337917B1 (en) * | 1997-01-29 | 2002-01-08 | Levent Onural | Rule-based moving object segmentation |
WO2005022922A1 (en) * | 2003-09-02 | 2005-03-10 | Koninklijke Philips Electronics N.V. | Temporal interpolation of a pixel on basis of occlusion detection |
CN101119480A (en) * | 2007-09-13 | 2008-02-06 | 中兴通讯股份有限公司 | Method for detecting video shelter in network video monitoring |
CN101895675A (en) * | 2010-07-26 | 2010-11-24 | 杭州海康威视软件有限公司 | Motion detection method and device |
US7868946B2 (en) * | 2003-12-10 | 2011-01-11 | Samsung Electronics Co., Ltd. | Adaptive motion compensated interpolating method and apparatus |
-
2011
- 2011-07-21 CN CN 201110206836 patent/CN102263956B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6337917B1 (en) * | 1997-01-29 | 2002-01-08 | Levent Onural | Rule-based moving object segmentation |
WO2005022922A1 (en) * | 2003-09-02 | 2005-03-10 | Koninklijke Philips Electronics N.V. | Temporal interpolation of a pixel on basis of occlusion detection |
US7868946B2 (en) * | 2003-12-10 | 2011-01-11 | Samsung Electronics Co., Ltd. | Adaptive motion compensated interpolating method and apparatus |
CN101119480A (en) * | 2007-09-13 | 2008-02-06 | 中兴通讯股份有限公司 | Method for detecting video shelter in network video monitoring |
CN101895675A (en) * | 2010-07-26 | 2010-11-24 | 杭州海康威视软件有限公司 | Motion detection method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495073A (en) * | 2018-03-29 | 2018-09-04 | 福州瑞芯微电子股份有限公司 | A kind of picture frame field detecting method, storage medium and computer |
CN110532837A (en) * | 2018-05-25 | 2019-12-03 | 九阳股份有限公司 | Image processing method and household appliance in a kind of article fetching process |
Also Published As
Publication number | Publication date |
---|---|
CN102263956B (en) | 2013-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101299237B1 (en) | Apparatus and method for detecting object using PTZ camera | |
Zhou et al. | Efficient road detection and tracking for unmanned aerial vehicle | |
EP2357614B1 (en) | Method and terminal for detecting and tracking moving object using real-time camera motion estimation | |
CN102542571B (en) | Moving target detecting method and device | |
JP2015534202A (en) | Image stabilization techniques for video surveillance systems. | |
US10157327B2 (en) | Image processing device, image processing method, and program | |
CN102263955A (en) | Method for detecting video occlusion based on motion vectors | |
CN103700087A (en) | Motion detection method and device | |
KR101750094B1 (en) | Method for classification of group behavior by real-time video monitoring | |
CN110782433A (en) | Dynamic information violent parabolic detection method and device based on time sequence and storage medium | |
KR20160037643A (en) | Method and Apparatus for Setting Candidate Area of Object for Recognizing Object | |
CN109478329A (en) | Image processing method and device | |
CN104717402A (en) | Space-time domain joint noise estimation system | |
CN105654505A (en) | Collaborative tracking algorithm based on super-pixel and system thereof | |
CN110853077B (en) | Self-adaptive infrared dynamic frame feature extraction method based on morphological change estimation | |
CN103793921A (en) | Moving object extraction method and moving object extraction device | |
CN102263956B (en) | Mobile detecting method based on motion vector | |
Wang | Research and implementation of intrusion detection algorithm in video surveillance | |
CN107564029B (en) | Moving target detection method based on Gaussian extreme value filtering and group sparse RPCA | |
US20130223692A1 (en) | Method for logo detection in memc | |
Zhang et al. | A traffic flow detection system combining optical flow and shadow removal | |
Alavianmehr et al. | Video foreground detection based on adaptive mixture gaussian model for video surveillance systems | |
US9986237B2 (en) | Method for motion estimation and apparatus for processing image | |
Tegolo et al. | A genetic algorithm for scratch removal in static images | |
CN106851047B (en) | Method and system for detecting static pixel points in video image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130320 Termination date: 20210721 |