This application claims the benefit of People's Republic of China application Serial No. 201110266954.3, filed Sep. 9, 2011, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to a motion detection method and associated method, and more particularly to a motion detection method capable of performing motion detection without a motion vector and associated method.
2. Description of the Related Art
Accompanied with improvements of broadband transmission environments, high-quality video frame transmission is to become a future trend. As related hardware equipment with consumer-friendly prices gains prevalence, high-quality video services are now in higher demands. In order to efficiently and smoothly complete video frame transmissions under a limited bandwidth or capacity, video frames are necessarily compressed in a transmission process of the video frames.
Certain compression algorithms are implemented via a video encoder. In a video encoder, based on high correlations between video frames in a time-domain, a motion vector is directly placed in a macro block to be encoded according to a motion vector prediction technique to express a distance between the macro block and a most similar reference block in a reference frame. Thus, a data amount to be encoded in the encoding process can be significantly reduced. In fact, a considerable motion correlation exists between not only video frames but also neighboring macro blocks of a same video frame. Such characteristic may be employed by the video encoder for further reducing the data amount to be encoded. However, the motion detection cannot be performed in the event that the selected compression algorithm does not generate a motion vector.
The invention is directed to a motion detection method and associated apparatus capable of performing motion detection without using a motion vector.
A motion detection method is provided by the present invention. The motion detection method includes steps of: capturing a current frame, generating a current luma frame according to the current frame, generating a foreground binary image according to the current luma frame, the background luma frame and a sensitivity; and updating the background luma frame according to an updating frequency and the sensitivity.
A motion detection apparatus is further provided by the present invention. The motion detection apparatus includes a frame capturing unit, a luma generating unit, a binary image generating unit, and a background updating unit. The frame capturing unit captures a current frame. The luma generating unit outputs a current luma frame according to the current frame. The binary image generating unit generates a foreground binary image according to the current luma frame, a background luma frame and a sensitivity. The background updating unit updates the background luma frame according an updating frequency and the sensitivity.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
Structural and operational principles of the present invention shall be given in the embodiments below with reference to related diagrams below.
As shown in Step 24, the binary image generating unit 14 generates a foreground binary image B according to the current luma frame Y(i), a background luma frame Y(i-1) and a sensitivity S. The processing unit 16 obtains a size and a position of a moving object according to the foreground binary image B. In Step 25, the background updating unit 15 updates the background luma frame Y(i-1) according to an updating frequency f and the sensitivity S. In Step 26, the processing unit 16 determines whether to proceed with subsequent processing according to the foreground binary image B and a predetermined threshold Vth. Thus, through detecting the luma change, the motion detection apparatus 1 is able to perform motion detection without having to generate a motion vector, thereby significantly increasing application convenience.
For example, the foregoing updating frequency f, the sensitivity S and the predetermined threshold Vth are user-defined based on actual requirements. The updating frequency f is a reciprocal of a predetermined updating time T, which is a period for updating the background luma frame Y(i-1). By setting the updating frequency f for detecting a slow-moving object, accuracy of motion detection can be increased. When a luma difference between a current pixel of the current luma frame Y(i) and a corresponding background pixel of the background luma frame Y(i-1) is smaller than the sensitivity S, the binary image generating unit 14 sets the current pixel in foreground binary image B to 0. The current pixel set to 0 in the foreground binary image B may be regarded as a non-changing point. Conversely, when the luma difference between the current pixel in the current luma frame Y(i) and the background pixel of the background luma frame Y(i-1) is not smaller than the sensitivity, the binary image generating unit 14 sets the current pixel in the foreground binary image B to 1. The current pixel set to 1 in the foreground binary image B may be regarded as a changing point. When a ratio of the changing points in the foreground binary image B exceeds the predetermined threshold Vth, the processing unit 16 performs subsequent processing, e.g., the processing unit 16 sends out an alert signal or records the current frame F(i). Conversely, when the ratio of the changing points in the foreground binary image B does not exceed the predetermined threshold Vth, the processing 16 does not perform any subsequent processing.
When the current pixel is not in the foreground, Step 256 is performed. In Step 256, the background updating unit 15 updates the background pixel according to the luma value of the current pixel, a luma value of the background pixel and a predetermined ratio. For example, the luma value of the current pixel and the luma value of the background pixel are respectively 100 and 20, and the predetermined ratio is 50%. Hence, the background updating unit 15 updates the luma value of the background pixel to
Conversely, when the current pixel is in the foreground, Step 257 is performed. In Step 257, the background updating unit 15 increases the counting time, and Step 251 is iterated.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
2011 1 0266954 | Sep 2011 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5543939 | Harvey et al. | Aug 1996 | A |
5796445 | Nomura et al. | Aug 1998 | A |
6593956 | Potts et al. | Jul 2003 | B1 |
8134614 | Fujii | Mar 2012 | B2 |
8437503 | Verdant | May 2013 | B2 |
20040017517 | Alvarez | Jan 2004 | A1 |
20040146112 | Park | Jul 2004 | A1 |
20050168653 | Wyman | Aug 2005 | A1 |
20070286499 | Freiburg et al. | Dec 2007 | A1 |
20080106642 | Srinivasan et al. | May 2008 | A1 |
20080292201 | Dumitras | Nov 2008 | A1 |
20090073558 | Jacobs | Mar 2009 | A1 |
20090128652 | Fujii | May 2009 | A1 |
20100026470 | Wilson et al. | Feb 2010 | A1 |
20100188571 | Wei Yin | Jul 2010 | A1 |
20100277586 | Ying et al. | Nov 2010 | A1 |
20110211732 | Rapaport | Sep 2011 | A1 |
20110254976 | Garten | Oct 2011 | A1 |
20110294544 | Liang et al. | Dec 2011 | A1 |
20120002112 | Huang et al. | Jan 2012 | A1 |
20120002899 | Orr et al. | Jan 2012 | A1 |
20120019728 | Moore | Jan 2012 | A1 |
20130033622 | Li | Feb 2013 | A1 |
20140018669 | Xu | Jan 2014 | A1 |
20140105462 | Ramaswamy et al. | Apr 2014 | A1 |
Number | Date | Country |
---|---|---|
101221663 | Jul 2008 | CN |
101465955 | Jun 2009 | CN |
101510358 | Aug 2009 | CN |
Entry |
---|
CPC Definition for class H04N5/217 and H04N5/225. |
CN Office Action dated Jan. 23, 2015. |
Full English (machine) translation of CN101221663 (Published Jul. 16, 2008). |
English Abstract translation of CN101510358 (Published Aug. 19, 2009). |
Number | Date | Country | |
---|---|---|---|
20130064295 A1 | Mar 2013 | US |