The present invention relates to an image signal encoding apparatus for suitably compressing and encoding the image signals derived from a plurality of cameras, and to an image signal recording apparatus for recording the compressed and encoded image signals on a recording medium.
In the anticrime/security monitoring system using video cameras, a plurality of cameras are often connected to a single recorder so as to simultaneously monitor at multiple points. In this case, when the recorder is constructed to record a plurality of image signals at a time, its recording capacity is required to increase in proportion to the number of cameras, thus leading to high cost.
Thus, there is known a system in which the parallel image signals from a plurality of cameras are sequentially switched every frames to form a time series signal, or a single-channel signal, and a predetermined number of frames sorted for each camera are compressed and encoded as a unit and recorded on a recording medium. According to this system, since frame correlation can be used, the recording rate per camera can be reduced and long-time recording can be performed without increasing the capacity of the recording medium, (for example, see JP-A-2001-103471).
In the above prior art, however, when the recording rate is decreased for long-time recording, the compression ratio of all frames is required to increase, resulting in the fact that the compression ratio of the reference images is increased. In the monitoring application in which the cameras are each often used at the same angle of view for a long time to produce slow-varying images that are to be recorded, there is no description about the effect of the increased compression ratio of reference images on the quality of the slow-varying portions.
It is an objective of the invention to provide an image encoder and recorder capable of solving the above problem and thus improving the image quality of the slow-varying portions even in longer-time recording by keeping the number of bits constant for the reference image and changing it for the difference image to thereby assuring the quality of the reference image and to decrease the average number of bits.
In order to solve the above problem, according to the first invention, there is provided a video signal encoding apparatus having a selecting module which sequentially selects one of input image signals fed from a plurality of channels in synchronism with the frame of the input image signals and converts the input image signals into a single-channel image signal, a sorting module which sorts the image signals of the single-channel image signal to be a group of a fixed number of frames for each channel, an encoding module which compresses and encodes each of the groups of frames of the sorted image signals that includes one reference image and one or more difference images, and a controlling module which controls the numbers of bits for the reference image and difference image compressed and encoded by the encoding module to be fixed as target values, whereby a plurality of combinations of the target numbers of bits for the reference image and for the difference image can be obtained and used to make image quality setting when an image quality is fixed. Thus, since the numbers of bits can be selected when an image quality is fixed, the image quality and recording time can be selected depending upon the situations in which the cameras are placed. For example, the number of bits for the slow-varying camera image is decreased so that it can be recorded for a long time.
In addition, there is provided an image signal encoding apparatus according to the above apparatus wherein a combination table for the combinations of the target numbers of bits is provided to have constant target numbers of bits for the reference image but variable target numbers of bits for the difference image depending upon a fixed image quality. Thus, when a low quality is selected, the number of bits for the reference image is kept constant, but that for the difference image is decreased so that the total recording rate can be reduced. Therefore, even when a low quality is selected, the image quality for the reference image can be kept good, and the image can be recorded for a long time so that the slow-varying image can be improved in its quality.
The image signal encoding apparatus is further constructed to be capable of selecting any image quality for each of the input channels. Thus, an image quality can be fixed for each channel, and hence the quality can be changed depending on the situations in which the cameras are placed. For example, when the cameras installed is a combination of cameras on which the image varies quickly or frequently and cameras on which the image varies slowly, a low quality is selected only for the channels of cameras on which the image varies slowly, thereby obtaining the effect that the image can be recorded for a long time.
The apparatus is further constructed to dynamically change the frame interval of the image signal encoded on each channel and to change the image quality according to the frame interval. Thus, since the channel fixed to have a wide frame interval can be increased in its image quality, it is possible to improve the image quality of the wide-interval channel that is apt to have quick varying images as compared with the narrow-interval channel.
According to the second invention, there is provided an image signal recording apparatus having a selecting module which sequentially selects one of input image signals fed from a plurality of channels in synchronism with the frame of the input image signals and converts the input image signals into a single-channel image signal, a sorting module which sorts the image signals of the single-channel image signal to be a group of a fixed number of frames for each channel, an encoding module which compresses and encodes each of the groups of frames of the sorted image signals that includes one reference image and one or more difference images, a controlling module which controls the numbers of bits for the reference image and difference image compressed and encoded by the encoding module to be fixed as target values, and a recording module which records the compressed and encoded image signals on a medium, whereby a plurality of combinations of the target numbers of bits for the reference image and for the difference image can be obtained and used to make image quality setting when an image quality is fixed. Thus, since the number of bits can be changed at the time of fixing a quality, the image quality and recording time can be fixed to arbitrary values depending upon the situations in which the cameras are placed. For example, for the camera of slow-varying image, the number of bits is decreased so that the image can be recorded for a long time.
This recording apparatus is further constructed to provide a combination table for the combinations of the target numbers of bits to have constant target numbers of bits for the reference image but variable target numbers of bits for the difference image depending upon a fixed image quality. Thus, when a low quality is selected, the number of bits for the reference image is kept constant, but that for the difference image is decreased so that the total recording rate can be decreased. Therefore, even when a low quality is selected, the quality of the reference image can be kept better and the image can be recorded for a long time, so that the quality of slow-varying images can be improved.
The recording apparatus is further constructed to be capable of selecting a quality for each channel input. Thus, it is possible to fix the image quality at any value for each channel and change the quality according to the situations in which the cameras are placed.
The recording apparatus is further constructed to dynamically change the frame interval of the image signal encoded on each channel, and change the image quality according to the frame interval. Thus, by increasing the image quality of the channel on which the frame interval is selected to be wide, it is possible to improve the image quality of the wide-frame-interval channel that is apt to have quick-varying images as compared with the case in which the frame interval is narrow.
According to the invention, even if the image quality is reduced for longer time recording, the slow-varying image on the camera can be improved in its quality.
In addition, when the cameras include cameras to which a frequently changing moving image is entered, and cameras to which a slow-varying image is applied, only the cameras to which the slow-varying image is entered are fixed to a low quality so that the image can be recorded for a longer time.
Moreover, by increasing the image quality of the channel on which the frame interval is fixed to be wide, it is possible to improve the image quality of the wide-frame-interval channel that is apt to have a quick-varying image as compared with the narrow-frame-interval channel.
As described above, a monitoring system according to the invention has the effect that the image on the monitor can be recorded with higher quality even when it is recorded for a long time.
These and other features, objects and advantages of the present invention will become more apparent from the following description when taken in conjunction with the accompanying drawings wherein:
An embodiment of the invention will be described with reference to the drawings.
The cameras 101a-101d are installed to monitor the images of the scenes at different points. Each of the cameras generates an image signal at a predetermined frame rate (for example, 30 fps (frames per second) in the NTSC standards), and supplies it to the multi-input selection/sequential module 102. The controlling microcomputer 105 controls the multi-input selection/sequential module 102 to select one of the channels with a period of frame as shown in
The data of sequential image signal containing a plurality of channels produced from the multi-input selection/sequential module 102 is fed to the channel allocation/sort module 103. The channel allocation/sort module 103 is formed of a memory, a write control module and a read control module.
In other words, the image frames “A1, A2, . . . ” from the camera 101a of channel ch-A are stored in the address area for channel ch-A. Similarly, the image frames “B1, B2, . . . ”, “C1, C2, . . . ” and “D1, D2, . . . ” from the cameras 101b˜101d of channels ch-B˜ch-D are stored in the address areas for channels ch-B˜ch-D, respectively. At this time, the controlling microcomputer 105 controls the memory to recognize the image channel to be written and to select the storage area in synchronism with the channel switching control operation on the multi-input selection/sequential module 102.
The controlling microcomputer 105 also controls the memory to reads out the image signal (data) of the frame number corresponding to the group of pictures for each channel at a time, and supplies it to the image compression/encode module 104 (step (b) to step (c) in
The image compression/encode module 104 makes compression/encode processing on the input data according to a technique such as MPEG (Moving Picture Experts Group) to produce a train of encoded data (bit stream) as the output data. The bit stream is recorded on a recording medium of the recording module 106. Alternatively, the bit stream can be transmitted to an uncompress/decode module or an external apparatus.
In the image compression/encode module 104, when it makes compression/encode operation, the first frame of each GOP is produced as a reference image by interframe compression and encoding, and the second to sixth frames are produced as difference images by interframe compression and encoding of the difference to the previous image, respectively. The controlling microcomputer 105 makes the so-called bit rate control for adjusting the number of generated bits in order to meet the target number of bits specified previously. Unless otherwise stated, it is assumed that the following bit rate control includes the control that is compliant with the MPEG2 standard and the construction to achieve this control. In this embodiment, since images of a plurality of sequential channels are treated, the compression/encode module 104 is constructed not to inherit the bit rate control between the GOPs of different channels of which the image frames are adjacent to each other. In other words, as each GOP is shown in step (c) of
Here, the quality setting will be described with reference to
The settings of quality will be described in detail.
The settings of quality in the prior art will be first mentioned.
Although three qualities and five frame intervals are shown above, more kinds of qualities and frame intervals will increase the degree of freedom, and thus the user is more easy to set the cameras for desired quality and recording time.
Thus, according to this embodiment about the apparatus for processing the image inputs from a plurality of channels by the single-channel compression/encode module, the number of bits for the reference image is constant, but the number of bits for the difference image is decreased, thereby reducing the total recording rate. Thus, even if the user sets the slow-image-varying channels, or cameras for low quality so as to record for a longer time, the image quality can be improved. In addition, when the recording frame interval is selected to be wide, the number of bits for the difference image is increased so that the recording time can be extended with the image quality not degraded.
While camera signals are inputted from four channels in this embodiment, the number of connected cameras is not limited to four. For example, the invention can be applied to the cases of a single camera, or one channel, and five cameras or more.
This invention can be applied to monitors that can record for a long time with the image quality maintained higher when the images on the cameras vary slowly.
While we have shown and described an embodiment in accordance with our invention, it should be understood that the disclosed embodiment is susceptible of changes and modifications without departing from the scope of the invention. Therefore, we do not intend to be bound by the details shown and described herein but intend to cover all such changes and modifications to fall within the ambit of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2003-421951 | Dec 2003 | JP | national |