Technical Field
The present application relates to a method for controlling a bit rate and an apparatus therefor, and more specifically to an apparatus, which stores a bit rate varied according to a significance level in a memory, and a method for determining a bit rate.
Description of the Related Art
As a social interest in a security increases, demands on a black box monitoring camera or a security camera becomes higher.
A main function of a device for obtaining image information on a predetermined area detects an event such as appearance or a suspected object in a camera area and compresses and stores data according to image information which is obtained until the event is terminated.
Because the device for obtaining image information receives power from a battery (e.g., a security camera operated by a battery of a vehicle when the vehicle is parked during a few weeks), a reduction in energy consumption is one of the most important issues.
That is, other function blocks except for an event detector 120 are generally power-gated and wake up and operate whenever the event detector 120 detects an event.
A significance level of image information obtained when an event lasts is variable. For example, a significance level of image information including a face image is higher than that of image information including the back of his/her head.
The significance level is measured through various algorithms such as background subtraction, face detection and recognition, object tracking, behavior analysis, and the like.
A result of the measured significance level is used to adjust video encoding of a video encoder 140 (e.g., a manner of encoding image information having a high significance level using high image quality).
Generally, an encoding configuration with a high bit rate and low compression efficiency of an encoding frame needs power consumption units of which the number is smaller than that with high compression efficiency.
However, as a bit rate of an encoder increases, the energy consumption needed to store encoded image information in a memory increases.
That is, there is an energy trade-off on a video encoding configuration.
Furthermore, a memory embedded in an imaging device has a limited memory space to reduce the cost of the imaging device overall.
Accordingly, determination of a bit rate for encoding has to satisfy a restriction on a memory space in order to consider such constraints.
The encoding bit rate for minimizing energy depends on an event behavior specified by frequency of event occurrence and duration.
However, because the event behavior is nondeterministic and non-static, a time-driven encoding bit rate configuration according to the predetermined event behavior is inaccurate and inefficient.
The present disclosure is directed to providing a bit rate determining method and apparatus, capable of minimizing energy consumption by satisfying a restriction on a memory space and an image distortion requirement according to a significance level of image information.
According to an exemplary embodiment of the inventive concept, a method is provided which determines a bit rate corresponding to a first significance level by an imaging device which stores image information using a bit rate varied according to a significance level. The method may include allocating a memory space for storing obtained image information, determining a bit rate corresponding to the first significance level, the bit rate satisfying a distortion requirement according to the first significance level and making energy consumption minimized when image information having the first significance level is stored, determining whether to exceed the allocated memory space, when image information is processed according to the determined bit rate, and if the allocated memory space is determined as exceeding a size of the processed image information, calculating a bit rate of to a second significance level, which makes a change in energy consumption minimized when the bit rate is lowered, to lower the bit rate of the second significance level.
The determining of the bit rate may include determining a bit rate in which a sum of energy consumption for video encoding of image information having the first significance level and energy consumption for memory storage is minimized, as the bit rate corresponding to the first significance level.
The method may further include again performing the determining of whether to exceed the allocated memory space, after the lowering of the bit rate. A bit rate may be determined if a size of image information processed according to a bit rate corresponding to the second significance level satisfies the allocated memory space, and the lowering of the bit rate may be again performed if the size of the processed image information exceeds the allocated memory space.
The image information may be image information obtained in a divided time area. The method may further include predicting a probability that image information having the first significance level in the divided time area occurs, and the determining of the bit rate may include determining whether to exceed the allocated memory space according to the predicted probability.
According to an exemplary embodiment of the inventive concept, an imaging device is provided which obtains image information and stores the obtained image information using a bit rate varied according to a significance level of the obtained image information in a memory. The imaging device may include a memory space determination unit configured to allocate a memory space on the memory at which image information obtained in a divided time area is stored, and a bit rate determination unit configured to determine a bit rate corresponding to a first significance level in consideration of the memory space allocated by the memory space determination unit.
The bit rate determination unit may determine a bit rate of the first significance level which satisfies a distortion requirement according to the first significance level and makes energy consumption minimized when image information having the first significance level is stored, and if a size of image information processed according to the determined bit rate exceeds the allocated memory space, the bit rate determination unit may calculate a bit rate of a second significance level which makes a change in energy consumption minimized when the bit rate is lowered, to lower the bit rate of the second significance level.
The imaging device may further include an event occurrence prediction unit configured to predict a probability that image information having the first significance level in the divided time area occurs, and the bit rate determination unit may determine whether to exceed the allocated memory space according to the probability predicted by the event occurrence prediction unit.
The details of other embodiments may be included in the detailed description and drawings.
According to an exemplary embodiment of the inventive concept, it may be possible to minimize energy consumption by satisfying an image distortion requirement according to the restriction on a memory space and a significance level of image information.
Advantage points and features of the present invention and a method of accomplishing thereof will become apparent from the following description with reference to the following figures, wherein embodiments will be described in detail with reference to the accompanying drawings. Embodiments of the present invention, however, may be embodied in various different forms, and should not be construed as being limited only to the illustrated embodiments. Rather, these embodiments are provided as examples so that this present invention will be thorough and complete, and will fully convey the concept of the present invention to those skilled in the art. The present invention may be defined by scope of the claims. Meanwhile, the terminology used herein to describe embodiments of the invention is not intended to limit the scope of the invention.
In the allocating (S220), there may be allocated a specific memory space on a memory where image information captured by an imaging device is to be stored.
According to an embodiment of the present invention, the imaging device may divide a time area and may allocate a memory space by the divided time area.
Favorably, allocation of the memory space may be accomplished according to the following equation.
ci=(Bi/(Nr1−i+1))
Here, i may denote an order in the divided time area. Nr may denote the total number of divided time areas. (i.e., i is an integer number between one and Nr)
Bi may denote a remaining memory space in an i-th time area and may mean a memory space where ci is allocated.
According to an embodiment of the present invention, the bit rate determination method may further include predicting a probability that image information having a first signification level occurs in a divided time area (S210).
Favorably, the predicted image information occurrence probability may be expressed by: Wi={wi,1, wi,2, wi,3, . . . , wi,Ns}. wi may be a set of image information occurrence probabilities in the i-th time area. wi,j may mean a probability that image information having a significance level of j in the i-th time area occurs.
In the determining (S230), an imaging device may determine a bit rate corresponding to a specific significance level. In the determining (S230), the imaging device may determine a bit rate which satisfies a distortion requirement level according to each significance level and makes energy consumption minimized.
According to an embodiment of the present invention, the determining of the bit rate (S230) may include determining the bit rate, in which a sum of energy consumption for video encoding of image information having a specific significance level and energy consumption for memory storage is minimized, as a bit rate corresponding to the specific significance level.
Returning to
In the determining (S240), whether to exceed a memory space allocated in the allocating (S220) may be determined when the imaging device performs processing using a bit rate determined in the determining (S230).
If the bit rate is determined, a required memory space may be calculated by multiplying the number of bits to be processed and the determined bit rate, and whether to exceed a memory space may be determined by comparing the allocated memory space and the calculated memory space.
Favorably, in the determining (S240), whether to satisfy the restriction on the memory space may be determined according to the following equation calculated by the imaging device.
Here, ci may denote an allocated memory space. Ns may denote the number of significance levels. ri,j may be a value determined as a bit rate corresponding to image information having a significance level of j in the i-th time area. bi,j may denote the number of bits which are image information having the significance level of j in the i-th time area.
Here, bi,j may be calculated through the following equation.
bi,j=fpsj*nwj*nHj*ri,j*(wi,j*tr)
fpsj may indicate the number of frames per second of image information having the significance level of j. wi,j may indicate a probability that image information having a significance level of j in the i-th time area occurs. tr may be a length of a divided time area. nwj may be a width of image information having a significance level of j. nHj may be a height of image information having a significance level of j.
If the restriction on a memory space allocated in the determining of whether to satisfy the restriction on the memory space (S240) is satisfied, the bit rate determined in the determining of the bit rate (S230) may be selected and the process may be terminated.
If the restriction on a memory space allocated in the determining (S240) is not satisfied, the correcting of the bit rate (S250, S260) may be performed.
In the correcting of the bit rate (S250, S260), there may be calculated a bit rate of a specific significance level in which energy consumption variation is minimized, and the calculated bit rate corresponding to the specific significance level may be lowered. Whether to satisfy a restriction on the memory space may be again performed according to the lowered bit rate.
Favorably, the correcting of the bit rate (S250, S260) may include calculating a specific significance level (j*) in which a change in energy consumption is minimized when a bit rate is lowered (S250) and lowering the calculated bit rate corresponding to the significance level (j*) (S260).
In the calculating of the significance level of j* (S250), the smallest value of j may be calculated as j* through the following equation.
Δei,j(ri,j,di,j)=ei,j(ri,j−Δr,di,j)−ei,j(ri,j,di,j)
Xr may be a difference of bit rates varied by lowering a bit rate. ri,j may be a bit rate corresponding to image information having a significance level of j in a i-th time area. di,j may be a mean distortion requirement level on the image information having a significance level of j in a i-th time area. ei,j(A,B) may be energy consumed to process image information which has a bit rate of A and a distortion requirement level of B and has a significance level of j in a i-th time area. That is, Xei,j(A, B) may mean energy consumption which is varied when the bit rate corresponding to the image information having a significance level of j in a i-th time area is lowered as many as a level (i.e., it is assumed that the bit rate is discretely determined).
According to an exemplary embodiment of the inventive concept, it may be possible to determine a bit rate which satisfies a restriction on a memory space and minimizes energy consumption.
According to an embodiment of the present invention, the imaging device may further include an event occurrence prediction unit 410 for predicting a probability that the image information having a specific significance level occurs in a divided time area.
The event occurrence prediction unit 410 may predict the probability that the image information having a specific significance level occurs in a divided time area, as described with reference to
The memory space determination unit 420 may allocate a memory space at which image information obtained in a divided time area is stored, as described with reference to
The bit rate determination unit 430 may determine a bit rate corresponding to a specific significance level as described with reference to
As described above, the imaging device according to an embodiment of the present invention may encode image information obtained from an image information obtaining unit under a control of the control unit 400 and may store the encoded image information in a memory, thereby making it possible to satisfy a restriction on a memory space and to minimize energy consumption.
While the inventive concept has been described with reference to exemplary embodiments, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the inventive concept. Therefore, it should be understood that the above embodiments are not limiting, but illustrative.
Number | Date | Country | Kind |
---|---|---|---|
10-2013-0010332 | Jan 2013 | KR | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/KR2014/000829 | 1/29/2014 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2014/119917 | 8/7/2014 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20140211842 | Zhao | Jul 2014 | A1 |
Number | Date | Country |
---|---|---|
10-2009-0036765 | Apr 2009 | KR |
10-2010-0113365 | Oct 2010 | KR |
10-2011-0099554 | Sep 2011 | KR |
Entry |
---|
Kim et al., “Event Statistics and Criticality-Aware Bitrate Allocation to Minimize Energy Consumption of Memory-Constrained Wireless Surveillance System,” 2010 IEEE International Conference on Multimedia and Expo (ICME), Jul. 19-23, 2010, Suntec City, Singapore, pp. 7-12. |
Kim et al., “Energy-Aware Operation of Black Box Surveillance Cameras under Event Uncertainty and Memory Constraint,” 2012 IEEE International Conference on Multimedia and Expo (ICME), Jul. 9-13, 2012, Melbourne, Australia, pp. 782-787. |
International Search Report, mailed May 12, 2014, for PCT/KR2014/000829, 5 pages (incl. English translation). |
Number | Date | Country | |
---|---|---|---|
20150380049 A1 | Dec 2015 | US |