JP2005184477A - Device and method for encoding picture - Google Patents

Device and method for encoding picture Download PDF

Info

Publication number
JP2005184477A
JP2005184477A JP2003422516A JP2003422516A JP2005184477A JP 2005184477 A JP2005184477 A JP 2005184477A JP 2003422516 A JP2003422516 A JP 2003422516A JP 2003422516 A JP2003422516 A JP 2003422516A JP 2005184477 A JP2005184477 A JP 2005184477A
Authority
JP
Japan
Prior art keywords
image data
encoding
time length
unit time
image
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.)
Pending
Application number
JP2003422516A
Other languages
Japanese (ja)
Inventor
Kazuhiro Tsubota
一広 坪田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003422516A priority Critical patent/JP2005184477A/en
Publication of JP2005184477A publication Critical patent/JP2005184477A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a picture encoding device for suppressing overflow of picture data to be encoded, and also to provide a picture encoding method. <P>SOLUTION: A monitor camera system 100 comprises: a buffer 102 for successively inputting picture data with a unit time length and storing them; and a three-field time encoder 105 for encoding the stored picture data with the unit time length, within a time shorter than the unit time length when the picture data with the unit time length are stored in the buffer 102, and for outputting the encoded picture data. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、監視カメラシステム等の撮影システムにおいて画像データのエンコードを行う画像エンコード装置、及び、画像エンコード方法に関する。   The present invention relates to an image encoding apparatus and an image encoding method for encoding image data in a photographing system such as a surveillance camera system.

従来、監視カメラによって撮影された画像を記憶し、犯罪が発生した場合に、その記録された画像を捜査等に役立てることを可能とした監視カメラシステムが提案されている。   2. Description of the Related Art Conventionally, there has been proposed a surveillance camera system that stores an image taken by a surveillance camera and can use the recorded image for investigation or the like when a crime occurs.

従来の監視カメラシステムの第1のブロック図を図6に示す。図6に示す監視カメラシステム500では、エンコーダ504は、1フィールド時間(1フィールドの画像に対応する単位時間)当たり1フィールド分の画像データの圧縮を行うことができる。このエンコーダ504は、16個のカメラ502a乃至502pの各チャンネルに対応する画像データの全て又は一部が多重化されることによって生成される、ITU−R(International Telecommunication Union −Radiocommunication sector)のBT.656規格に準拠した画像データ(以下、「多重化画像データ」と称する)を、1フィールド時間で1フィールド分圧縮する。記録ディスク506は、1フィールド時間当たり1フィールド分の画像データの記録を行うことができる。この記録ディスク506は、エンコーダ504によって圧縮された1フィールドの画像データを1フィールド時間で記録する。   A first block diagram of a conventional surveillance camera system is shown in FIG. In the surveillance camera system 500 shown in FIG. 6, the encoder 504 can compress image data for one field per field time (unit time corresponding to an image of one field). This encoder 504 is an ITU-R (International Telecommunication Union-Radiocommunication sector) BT.R, which is generated by multiplexing all or part of image data corresponding to each channel of 16 cameras 502a to 502p. Image data conforming to the 656 standard (hereinafter referred to as “multiplexed image data”) is compressed by one field in one field time. The recording disk 506 can record image data for one field per field time. The recording disk 506 records one field of image data compressed by the encoder 504 in one field time.

図6に示す監視カメラシステム500におけるタイミングチャートを図7に示す。このタイミングチャートに示すように、エンコーダ504が1フィールド時間当たり1フィールド分の画像データの圧縮を行うことができ、且つ、記録ディスク506が1フィールド時間当たり1フィールド分の画像データの記録を行うことができる場合には、カメラ502が出力する多重化画像データは、オーバフローすることなく、1フィールド時間でエンコーダ504によって圧縮され、次の1フィールド時間で記録ディスク506によって記録される。   FIG. 7 shows a timing chart in the monitoring camera system 500 shown in FIG. As shown in this timing chart, the encoder 504 can compress image data for one field per field time, and the recording disk 506 records image data for one field per field time. In such a case, the multiplexed image data output from the camera 502 is compressed by the encoder 504 in one field time without being overflowed, and is recorded by the recording disk 506 in the next one field time.

また、カメラが出力する画像データが圧縮されても、圧縮後の画像データが所定サイズ以下にならない場合、更に画像データを圧縮するのではなく、圧縮後の画像データの一部を削減して所定サイズ以下に抑えて記録する画像圧縮装置が提案されている(例えば特許文献1参照)。圧縮後の画像データが所定サイズを超える場合に、その圧縮後の画像データが更に圧縮されるような構成を有する画像圧縮装置では、圧縮処理に要する時間が長くなり、入力される画像データがオーバーフローして画像のコマ落ちが生じることがある。しかし、従来の画像圧縮装置では、更なる圧縮は行われず、圧縮後の画像データの一部を削減しているため、エンコーダが1フィールド時間当たり1フィールド分の画像データの圧縮を行うことができ、且つ、記録ディスクが1フィールド時間当たり1フィールド分の画像データの記録を行うことができる場合には、入力される画像データのオーバーフローにより画像のコマ落ちが生じることを防止することができる。
特開2003−158740号公報(第1−7頁、図1)
In addition, even if the image data output from the camera is compressed, if the compressed image data does not become a predetermined size or less, the image data is not further compressed, but a part of the compressed image data is reduced to a predetermined size. There has been proposed an image compression apparatus for recording with a size smaller than or equal to the size (see, for example, Patent Document 1). When the compressed image data exceeds a predetermined size, the image compression apparatus having a configuration in which the compressed image data is further compressed increases the time required for the compression process, and the input image data overflows. As a result, frames may be dropped. However, in the conventional image compression apparatus, no further compression is performed and a part of the image data after compression is reduced, so that the encoder can compress the image data for one field per one field time. In addition, when the recording disk can record one field of image data per one field time, it is possible to prevent an image from dropping due to an overflow of input image data.
JP 2003-158740 A (page 1-7, FIG. 1)

しかしながら、複数のカメラの各チャンネル毎に、そのチャンネルに対応する複数の画像データ間の相関に基づく画像圧縮が行われる場合、エンコーダが1フィールド時間当たり1フィールド分の画像データの圧縮を行うことができ、且つ、記録ディスクが1フィールド時間当たり1フィールド分の画像データの記録を行うことができる場合であっても、システム全体として十分なスループットが得られない場合がある。   However, when image compression based on correlation between a plurality of image data corresponding to each channel is performed for each channel of a plurality of cameras, the encoder may compress image data for one field per field time. Even when the recording disk can record one field of image data per field time, there may be a case where sufficient throughput cannot be obtained as a whole system.

このことを図8及び図9を用いて説明する。従来の監視カメラシステムの第2のブロック図を図8に示す。図8に示す監視カメラシステム700では、4フィールド分の画像データ間の相関に基づく画像圧縮(4フィールド相関の画像圧縮)が行われる。   This will be described with reference to FIGS. A second block diagram of a conventional surveillance camera system is shown in FIG. In the surveillance camera system 700 shown in FIG. 8, image compression based on correlation between image data for four fields (image compression with four field correlation) is performed.

バッファ703は、16個のカメラ702a乃至702pの全て又は一部によって撮影された画像のデータが多重化されることによって得られる、ITU−RのBT.656規格に準拠した多重化画像データを入力し、この多重化画像データ内の各画像データを、その画像データを生成したカメラ702のチャンネルの番号(カメラチャンネル番号)毎に蓄積する。更に、バッファ703は、いずれかのチャンネルに対応する画像データを4フィールド分蓄積した場合に、対応するカメラチャンネル番号をエンコードリクエストキュー704へ出力する。エンコードリクエストキュー704は、バッファ703からのカメラチャンネル番号を入力し、保持する。   The buffer 703 is a BT-BT of ITU-R obtained by multiplexing data of images taken by all or a part of the 16 cameras 702a to 702p. Multiplexed image data conforming to the 656 standard is input, and each image data in the multiplexed image data is stored for each channel number (camera channel number) of the camera 702 that generated the image data. Further, the buffer 703 outputs the corresponding camera channel number to the encode request queue 704 when image data corresponding to any channel is accumulated for four fields. The encoding request queue 704 receives and holds the camera channel number from the buffer 703.

エンコーダ705は、4フィールド時間で4フィールド相関の画像圧縮を行うことができる。このエンコーダ705は、エンコードリクエストキュー704に保持されたカメラチャンネル番号を参照することにより、画像圧縮が可能な画像データに対応するカメラチャンネル番号を得る。更に、エンコーダ706は、4フィールド時間で、得たカメラチャンネル番号に対応する4フィールド分の画像データをバッファ704から読み出し、4フィールド相関の画像圧縮を行う。記録ディスク706は、4フィールド時間当たり4フィールド分の画像データの記録を行うことができる。この記録ディスク706は、エンコーダ705による4フィールド相関の画像圧縮により得られた圧縮後の画像データを4フィールド時間で記録する。   The encoder 705 can perform 4-field correlation image compression in 4 field times. The encoder 705 obtains a camera channel number corresponding to image data that can be compressed by referring to the camera channel number held in the encode request queue 704. Further, the encoder 706 reads out image data for four fields corresponding to the obtained camera channel number from the buffer 704 in four field times, and performs image compression with four field correlation. The recording disk 706 can record four fields of image data per four field hours. The recording disk 706 records the compressed image data obtained by the four-field correlation image compression by the encoder 705 in four field times.

図8に示す監視カメラシステム700におけるエンコーダ705の動作状況を図9に示す。   FIG. 9 shows an operation state of the encoder 705 in the monitoring camera system 700 shown in FIG.

図9において、フィールド時間1では、バッファ703には、カメラチャンネル番号9(CH9)に対応する画像データが4フィールド分蓄積されるとともに、カメラチャンネル番号13(CH13)に対応する画像データが5フィールド分蓄積されている。ここで、カメラチャンネル番号9(CH9)に対応する画像データの方がカメラチャンネル番号13(CH13)に対応する画像データよりも早く4フィールド分バッファ703に蓄積されたとすると、エンコードリクエストキュー704の先頭には、カメラチャンネル番号9(CH9)が保持され、続いてカメラチャンネル番号13(CH13)が保持されることになる。この場合、エンコーダ705は、次のフィールド時間2において、バッファ703からカメラチャンネル番号9(CH9)に対応する4フィールド分の画像データを読み出し、フィールド時間5まで4フィールド相関の画像圧縮を行う。   In FIG. 9, at field time 1, image data corresponding to camera channel number 9 (CH9) is stored in buffer 703 for four fields, and image data corresponding to camera channel number 13 (CH13) is stored in five fields. Minutes are accumulated. Here, if the image data corresponding to the camera channel number 9 (CH9) is stored in the buffer 703 for four fields earlier than the image data corresponding to the camera channel number 13 (CH13), the head of the encoding request queue 704 is assumed. Holds the camera channel number 9 (CH9), and subsequently holds the camera channel number 13 (CH13). In this case, the encoder 705 reads the image data for four fields corresponding to the camera channel number 9 (CH9) from the buffer 703 in the next field time 2, and performs image compression with four field correlation until the field time 5.

エンコーダ705の動作が終了するフィールド時間5では、バッファ703には、カメラチャンネル番号13(CH13)に対応する画像データが6フィールド分蓄積されており、エンコードリクエストキュー704には、カメラチャンネル番号13(CH13)が保持されている。この場合、エンコーダ705は、次のフィールド時間6において、バッファ703からカメラチャンネル番号13(CH13)に対応する4フィールド分の画像データを読み出し、フィールド時間9まで4フィールド相関の画像圧縮を行う。   At field time 5 when the operation of the encoder 705 ends, image data corresponding to the camera channel number 13 (CH13) is accumulated in the buffer 703 for six fields, and the camera channel number 13 (in the encode request queue 704). CH13) is retained. In this case, the encoder 705 reads the image data for four fields corresponding to the camera channel number 13 (CH13) from the buffer 703 at the next field time 6, and performs image compression with four field correlation until the field time 9.

そして、エンコーダ705の動作が終了するフィールド時間9では、バッファ703に蓄積された各チャンネルに対応する画像データの中に、4フィールド分以上を有するものはないため、エンコードリクエストキュー704には、何も保持されていない。この場合、エンコーダ705は、次のフィールド時間10乃至13において未動作状態となる。   In the field time 9 when the operation of the encoder 705 ends, there is no image data corresponding to each channel stored in the buffer 703 having more than four fields. Also not retained. In this case, the encoder 705 is in an inoperative state in the next field time 10 to 13.

更に、エンコーダ705の未動作状態が終了するフィールド時間13では、バッファ703には、カメラチャンネル番号11(CH11)に対応する画像データが4フィールド分、カメラチャンネル番号12(CH12)に対応する画像データが4フィールド分それぞれ蓄積される。ここで、カメラチャンネル番号11(CH11)に対応する画像データは、フィールド時間10の時に4フィールド分がバッファ703に蓄積され、カメラチャンネル番号12(CH12)に対応する画像データは、フィールド時間13の時に4フィールド分がバッファ703に蓄積されている。このため、エンコードリクエストキュー704の先頭には、カメラチャンネル番号11(CH11)が保持され、続いてカメラチャンネル番号12(CH12)が保持されることになる。この場合、エンコーダ705は、次のフィールド時間14において、バッファ703からカメラチャンネル番号11(CH11)に対応する4フィールド分の画像データを読み出し、フィールド時間17まで4フィールド相関の画像圧縮を行う。   Further, at the field time 13 when the non-operating state of the encoder 705 ends, image data corresponding to the camera channel number 11 (CH11) is stored in the buffer 703 for four fields, and the image data corresponding to the camera channel number 12 (CH12). Are stored for 4 fields respectively. Here, the image data corresponding to the camera channel number 11 (CH11) is stored in the buffer 703 for the field time 10, and the image data corresponding to the camera channel number 12 (CH12) is stored at the field time 13. Sometimes four fields are stored in the buffer 703. For this reason, the camera channel number 11 (CH11) is held at the head of the encode request queue 704, and then the camera channel number 12 (CH12) is held. In this case, the encoder 705 reads the image data for four fields corresponding to the camera channel number 11 (CH11) from the buffer 703 at the next field time 14, and performs image compression with four field correlation until the field time 17.

エンコーダ705の動作状態が図9に示すものとなる場合、エンコーダ705のスループットが4フィールド時間で4フィールド相関の画像圧縮であるから4/4であり、エンコーダ705の動作率が16フィールド時間中12フィールド時間動作しているから3/4であることを利用すると、フィールド時間2乃至17におけるエンコーダ705が1フィールド時間当たりに処理して出力する画像データのフィールド数(出力平均スループット)は、これらを乗算した3/4となる。すなわち、エンコーダ705の出力平均スループットは、バッファ703が1フィールド時間当たりに蓄積する画像データのフィールド数(入力スループット)である1(フィールド/フィールド時間)よりも低い値となる。更に、エンコーダ705が一旦未動作状態になると、その後に連続的に動作状態になったとしても、出力平均スループットが1(フィールド/フィールド時間)に回復することはない。その結果、入力される画像データはオーバーフローしてしまう可能性が高い。   When the operation state of the encoder 705 is as shown in FIG. 9, the throughput of the encoder 705 is 4/4 because the image compression is 4 field correlation in 4 field time, and the operation rate of the encoder 705 is 12 out of 16 field time. If the field time operation is 3/4, the number of fields (output average throughput) of the image data processed and output per field time by the encoder 705 in the field time 2 to 17 is calculated as follows. Multiply by 3/4. That is, the average output throughput of the encoder 705 is lower than 1 (field / field time), which is the number of fields (input throughput) of image data stored in the buffer 703 per field time. Further, once the encoder 705 is in an inoperative state, the average output throughput will not be restored to 1 (field / field time) even if the encoder 705 is continuously in an operational state thereafter. As a result, the input image data is likely to overflow.

本発明は従来の問題を解決するためになされたもので、エンコード対象の画像データのオーバーフローを抑制した画像エンコード装置及び画像エンコード方法を提供することを目的とする。   The present invention has been made to solve the conventional problems, and an object of the present invention is to provide an image encoding apparatus and an image encoding method in which overflow of image data to be encoded is suppressed.

本発明の画像エンコード装置は、単位時間長の画像データを順次入力して蓄積する画像データ蓄積手段と、前記画像データ蓄積手段に前記単位時間長の画像データが蓄積された場合に、前記単位時間長よりも短い時間内に、前記画像データ蓄積手段に蓄積された前記単位時間長の画像データのエンコードを行い、エンコード後の画像データを出力する画像データエンコード手段とを有する構成となる。   The image encoding apparatus according to the present invention includes an image data storage unit that sequentially inputs and stores unit time length image data, and the unit time length when the unit time length image data is stored in the image data storage unit. Image data encoding means for encoding the image data of the unit time length stored in the image data storage means and outputting the encoded image data within a time shorter than the length is provided.

この構成により、単位時間長の画像データが蓄積された場合には、単位時間長よりも短い時間内に、その単位時間長の画像データのエンコードが行われ、エンコード対象の画像データのオーバーフローが抑制される。   With this configuration, when image data of unit time length is accumulated, the image data of the unit time length is encoded within a time shorter than the unit time length, and the overflow of the image data to be encoded is suppressed. Is done.

また、本発明の画像エンコード装置は、前記画像データ蓄積手段に前記単位時間長の画像データがエンコード処理単位数分蓄積されたことを検出する画像データ蓄積検出手段を有し、前記画像データエンコード手段が、前記画像データ蓄積検出手段により、前記画像データ蓄積手段に前記単位時間長の画像データがエンコード処理単位数分蓄積されたことが検出された場合に、前記エンコード処理単位数分の単位時間長の画像データのエンコードを行う構成とすることができる。   The image encoding apparatus of the present invention further comprises image data storage detecting means for detecting that the unit time length of image data has been stored in the image data storage means for the number of encoding processing units, and the image data encoding means However, when it is detected by the image data storage detection means that the unit time length of image data has been stored in the image data storage means, the unit time length of the number of encoding processing units The image data can be encoded.

この構成により、画像データエンコード手段は、画像データ蓄積手段に前記単位時間長の画像データがエンコード処理単位数分蓄積されたことを簡易に認識し、迅速に画像データの圧縮を開始することが可能となる。   With this configuration, the image data encoding means can easily recognize that the image data of the unit time length has been stored in the image data storage means for the number of encoding processing units, and can quickly start compressing the image data. It becomes.

また、本発明の画像エンコード装置は、前記画像データエンコード手段が、前記エンコード処理単位数分の単位時間長の画像データ間の相関に基づくエンコードを行う構成とすることができる。   Further, the image encoding apparatus of the present invention may be configured such that the image data encoding means performs encoding based on a correlation between image data having a unit time length corresponding to the number of encoding processing units.

この構成により、画像データ間の相関に基づくエンコードが行われる場合においても、エンコード対象の画像データのオーバーフローが抑制される。   With this configuration, even when encoding based on correlation between image data is performed, overflow of image data to be encoded is suppressed.

また、本発明の画像エンコード装置は、前記単位時間長よりも短い時間内に、前記画像データエンコード手段によりエンコードが行われた画像データを記録する画像データ記録手段を有する構成とすることができる。   The image encoding apparatus according to the present invention may further include an image data recording unit that records the image data encoded by the image data encoding unit within a time shorter than the unit time length.

この構成により、エンコード後の画像データが記録される場合においても、エンコード対象の画像データのオーバーフローが抑制される。   With this configuration, even when encoded image data is recorded, overflow of the image data to be encoded is suppressed.

また、本発明の画像エンコード装置は、前記画像データ蓄積手段が、複数のチャンネルに対応する前記単位時間長の画像データが多重化された画像データを順次入力して蓄積し、前記画像データエンコード手段が、前記画像データ蓄積手段に、前記複数のチャンネルのいずれかに対応する単位時間長の画像データが蓄積された場合に、前記単位時間長の画像データのエンコードを行う構成とすることができる。   Further, in the image encoding apparatus of the present invention, the image data storage means sequentially inputs and stores the image data multiplexed with the unit time length image data corresponding to a plurality of channels, and the image data encoding means However, when image data having a unit time length corresponding to one of the plurality of channels is stored in the image data storage unit, the image data having the unit time length can be encoded.

この構成により、複数のチャンネルに対応する単位時間長の画像データが多重化された画像データが蓄積される場合において、複数のチャンネルのいずれかに対応する単位時間長の画像データが順次エンコードされるようにすることができる。   With this configuration, when image data in which unit time length image data corresponding to a plurality of channels is multiplexed is stored, unit time length image data corresponding to any of the plurality of channels is sequentially encoded. Can be.

また、本発明の画像エンコード装置は、前記画像データエンコード手段が、前記画像データ蓄積手段に蓄積された前記単位時間長の画像データを読み出し、圧縮を行って出力する構成とすることができる。   The image encoding apparatus of the present invention may be configured such that the image data encoding unit reads out the unit time length of image data stored in the image data storage unit, performs compression, and outputs the compressed data.

この構成により、エンコードが画像データの圧縮である場合においても、エンコード対象の画像データのオーバーフローが抑制される。   With this configuration, even when encoding is compression of image data, overflow of image data to be encoded is suppressed.

また、本発明の画像エンコード方法は、単位時間長の画像データを順次入力して蓄積する画像データ蓄積ステップと、前記画像データ蓄積ステップにおいて前記単位時間長の画像データが蓄積された場合に、前記単位時間長よりも短い時間内に、前記蓄積された前記単位時間長の画像データのエンコードを行い、エンコード後の画像データを出力する画像データエンコードステップとを有する構成となる。   The image encoding method of the present invention includes an image data storage step for sequentially inputting and storing unit time length image data, and when the unit time length image data is stored in the image data storage step, An image data encoding step of encoding the accumulated image data of the unit time length within a time shorter than the unit time length and outputting the encoded image data.

また、本発明の画像エンコード方法は、前記単位時間長の画像データがエンコード処理単位数分蓄積されたことを検出する画像データ蓄積検出ステップを有し、前記画像データエンコードステップが、前記画像データ蓄積ステップにおいて前記単位時間長の画像データがエンコード処理単位数分蓄積されたことが検出された場合に、前記エンコード処理単位数分の前記単位時間長の画像データのエンコードを行う構成とすることができる。   The image encoding method of the present invention further includes an image data accumulation detecting step for detecting that the unit time length of image data is accumulated for the number of encoding processing units, and the image data encoding step includes the image data accumulation step. When it is detected in the step that the unit time length of image data has been accumulated for the number of encoding processing units, the unit time length of image data for the number of encoding processing units can be encoded. .

また、本発明の画像エンコード方法は、単位時間長よりも短い時間内に、前記画像エンコードステップにおいてエンコードが行われた前記単位時間長の画像データを記録する画像データ記録ステップを有する構成とすることができる。   The image encoding method of the present invention includes an image data recording step for recording the image data of the unit time length encoded in the image encoding step within a time shorter than the unit time length. Can do.

また、本発明の画像エンコード方法は、前記画像データ蓄積ステップが、複数のチャンネルに対応する前記単位時間長の画像データが多重化された画像データを順次入力して蓄積し、前記画像データエンコードステップが、前記画像データ蓄積ステップにおいて前記複数のチャンネルのいずれかに対応する前記単位時間長の画像データが蓄積された場合に、前記単位時間長の画像データのエンコードを行う構成とすることができる。   In the image encoding method of the present invention, the image data accumulation step sequentially inputs and accumulates image data obtained by multiplexing the unit time length image data corresponding to a plurality of channels, and the image data encoding step However, when the unit time length image data corresponding to one of the plurality of channels is stored in the image data storage step, the unit time length image data may be encoded.

本発明は、画像データ蓄積手段が単位時間長の画像データを蓄積した場合には、画像データエンコード手段は単位時間長よりも短い時間内に、その単位時間長の画像データのエンコードを行う。すなわち、画像データエンコード手段が動作状態において単位時間当たりエンコードを行う画像データ数は、画像データ蓄積手段が単位時間当たりに蓄積する画像データ数よりも多いため、エンコード対象の画像データのオーバーフローを抑制することが可能となる。   In the present invention, when the image data storage means stores image data of unit time length, the image data encoding means encodes the image data of the unit time length within a time shorter than the unit time length. That is, since the number of image data to be encoded per unit time in the operating state of the image data encoding unit is larger than the number of image data to be stored per unit time by the image data storage unit, the overflow of the image data to be encoded is suppressed. It becomes possible.

以下、本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムについて、図面を用いて説明する。   Hereinafter, a surveillance camera system to which an image encoding apparatus according to an embodiment of the present invention is applied will be described with reference to the drawings.

本発明の実施の形態における画像エンコード装置を適用した監視カメラシステムのブロック図を図1に示す。図1に示す監視カメラシステム100は、16個のカメラ102a乃至102p(以下、これらカメラ102a乃至102pをまとめて、適宜「カメラ102」と称する)と、カメラ102によって生成された画像のデータを蓄積するバッファ103と、エンコードの対象となる画像データを生成したカメラ102のチャンネル番号(カメラチャンネル番号)を保持するエンコードリクエストキュー104と、画像データのエンコードを行う3フィールド時間エンコーダ105と、3フィールド時間エンコーダ105によるエンコード処理後の画像データを記録する3フィールド時間記録ディスク106とを有する。なお、以下においては、3フィールド時間エンコーダ105によるエンコード処理として、画像データの圧縮が行われるものとする。   FIG. 1 shows a block diagram of a surveillance camera system to which an image encoding apparatus according to an embodiment of the present invention is applied. The surveillance camera system 100 shown in FIG. 1 stores 16 cameras 102a to 102p (hereinafter, these cameras 102a to 102p are collectively referred to as “camera 102” as appropriate) and image data generated by the camera 102. A buffer 103 that performs encoding, an encoding request queue 104 that holds a channel number (camera channel number) of the camera 102 that generated the image data to be encoded, a three-field time encoder 105 that encodes the image data, and a three-field time And a three-field time recording disk 106 for recording image data after encoding by the encoder 105. In the following, it is assumed that image data is compressed as an encoding process by the three-field time encoder 105.

以上のように構成された監視カメラシステム100について、図2及び図3を用いてその動作を説明する。なお、図2に示す動作と図3に示す動作とは並行して行われる。   The operation of the surveillance camera system 100 configured as described above will be described with reference to FIGS. 2 and the operation shown in FIG. 3 are performed in parallel.

まず、図2について説明する。カメラ102a乃至102pは、監視の対象となる道路や駅構内、室内等の所定範囲を撮影し、単位時間長の画像データを生成する。これらカメラ102a乃至102pのチャンネルには、カメラチャンネル番号CH1乃至CH16が対応付けられている。なお、単位時間長とは、1フィールドの画像に対応する時間を意味する。バッファ103は、カメラ102a乃至102pの全て又は一部によって生成された画像データが多重化されることによって得られる、ITU−RのBT.656規格に準拠した画像データ(以下、「多重化画像データ」と称する)を入力し、この多重化画像データ内の各画像データを、その画像データを生成したカメラ102のチャンネルのカメラチャンネル番号毎に蓄積する(S101)。   First, FIG. 2 will be described. The cameras 102a to 102p shoot a predetermined range such as a road to be monitored, a station premises, or a room, and generate unit time length image data. Camera channel numbers CH1 to CH16 are associated with the channels of the cameras 102a to 102p. The unit time length means a time corresponding to one field image. The buffer 103 is a BT-BT of the ITU-R obtained by multiplexing image data generated by all or part of the cameras 102a to 102p. Image data compliant with the 656 standard (hereinafter referred to as “multiplexed image data”) is input, and each image data in the multiplexed image data is set for each camera channel number of the channel of the camera 102 that generated the image data. (S101).

更に、バッファ102は、いずれかのカメラ102のチャンネルに対応する画像データを4フィールド分蓄積したか否かを判定する(S102)。いずれかのカメラ102のチャンネルに対応する画像データを4フィールド分蓄積していない場合、バッファ103は、カメラ102からの多重化画像データをカメラチャンネル番号毎に蓄積する処理(S101)以降を繰り返す。   Further, the buffer 102 determines whether or not image data corresponding to any one of the channels of the camera 102 has been accumulated for four fields (S102). When the image data corresponding to the channel of any camera 102 is not accumulated for four fields, the buffer 103 repeats the processing (S101) and subsequent steps for accumulating the multiplexed image data from the camera 102 for each camera channel number.

一方、バッファ102は、いずれかのカメラ102のチャンネルに対応する画像データを4フィールド分蓄積した場合、その4フィールド分蓄積した画像データを生成したカメラ102のチャンネルのカメラチャンネル番号を、エンコードリクエストキュー104へ出力する(S103)。エンコードリクエストキュー104は、FIFO(First In First Out)形式の入出力構造を有し、バッファ102からのカメラチャンネル番号を保持する(S104)。その後、バッファ103による、カメラ102からの多重化画像データをカメラチャンネル番号毎に蓄積する処理(S101)以降が繰り返される。   On the other hand, when the buffer 102 accumulates image data corresponding to the channel of any camera 102 for four fields, the buffer 102 stores the camera channel number of the channel of the camera 102 that generated the image data accumulated for the four fields in the encoding request queue. It outputs to 104 (S103). The encoding request queue 104 has an input / output structure in FIFO (First In First Out) format, and holds the camera channel number from the buffer 102 (S104). Thereafter, the processing after storing the multiplexed image data from the camera 102 for each camera channel number (S101) by the buffer 103 is repeated.

次に、図3について説明する。3フィールド時間エンコーダ105は、3フィールドの画像に対応する時間(3フィールド時間)で、4フィールド分の画像データを読み出し、4フィールド相関の画像圧縮を行って出力することができる。すなわち、3フィールド時間エンコーダ105は、1フィールド時間当たり4/3フィールド分の画像データの圧縮を行うことができる。   Next, FIG. 3 will be described. The three-field time encoder 105 can read out image data for four fields at a time corresponding to a three-field image (three-field time), and can output the compressed image by performing four-field correlation. That is, the 3-field time encoder 105 can compress image data for 4/3 fields per field time.

この3フィールド時間エンコーダ105は、エンコードリクエストキュー104にカメラチャンネル番号が保持されているか否かを判定する(S201)。3フィールド時間エンコーダ105は、エンコードリクエストキュー104にカメラチャンネル番号が保持されている場合、その保持されているカメラチャンネル番号を読み出し、その読み出したカメラチャンネル番号に対応する画像データを、バッファ103から4フィールド分読み出す(ステップ202)。この際、読み出されたカメラチャンネル番号は、エンコードリクエストキュー104から削除される。また、3フィールド時間エンコーダ105は、バッファ103に、読み出し対象の画像データが5フィールド以上蓄積されている場合、先に蓄積されたものから順に4フィールド分読み出す。更に、3フィールド時間エンコーダ105は、読み出した4フィールド分の画像データについて、読み出し時間も含めて3フィールド時間で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する(S203)。   The three-field time encoder 105 determines whether or not the camera channel number is held in the encode request queue 104 (S201). When the camera channel number is held in the encode request queue 104, the three-field time encoder 105 reads the held camera channel number, and outputs the image data corresponding to the read camera channel number from the buffer 103 to 4. The field is read (step 202). At this time, the read camera channel number is deleted from the encoding request queue 104. Further, when five or more fields of image data to be read are stored in the buffer 103, the three-field time encoder 105 reads four fields in order from the previously stored image data. Further, the 3-field time encoder 105 performs 4-field correlation image compression for 3 fields time including the readout time for the read image data for 4 fields, and outputs it to the 3-field time recording disk 106 (S203). .

3フィールド時間記録ディスク106は、3フィールド時間で、4フィールド分の圧縮後の画像データを記録することができる。すなわち、3フィールド時間エンコーダ105は、1フィールド時間当たり4/3フィールド分の圧縮後の画像データを記録することができる。この3フィールド時間記録ディスク106は、3フィールド時間で、3フィールド時間エンコーダ105による4フィールド相関の画像圧縮により得られた圧縮後の画像データを記録する(ステップ204)。その後、3フィールド時間エンコーダ105による、エンコードリクエストキュー104にカメラチャンネル番号が保持されているか否かの判定(S201)以降の動作が繰り返される。   The 3-field time recording disc 106 can record compressed image data for 4 fields in 3 field times. That is, the 3-field time encoder 105 can record the compressed image data for 4/3 fields per field time. The three-field time recording disk 106 records the compressed image data obtained by the four-field correlation image compression by the three-field time encoder 105 in three field times (step 204). Thereafter, the operations after the determination (S201) on whether or not the camera channel number is held in the encoding request queue 104 by the three-field time encoder 105 are repeated.

次に、画像データのフィールド数に応じた3フィールド時間エンコーダ105の動作状況を図4及び図5を用いて説明する。   Next, the operation status of the three-field time encoder 105 corresponding to the number of fields of image data will be described with reference to FIGS.

まず、図4について説明する。この図4における画像データのフィールド数の遷移は、図9における画像データのフィールド数の遷移と同一である。なお、図4においてフィールド時間1乃至17は、それぞれ1フィールド時間の時間長を有する。   First, FIG. 4 will be described. The transition of the number of fields of the image data in FIG. 4 is the same as the transition of the number of fields of the image data in FIG. In FIG. 4, field times 1 to 17 each have a time length of one field time.

図4において、フィールド時間1では、バッファ103には、カメラチャンネル番号9(CH9)に対応する画像データが4フィールド分蓄積されるとともに、カメラチャンネル番号13(CH13)に対応する画像データが5フィールド分蓄積されている。ここで、カメラチャンネル番号9(CH9)に対応する画像データの方がカメラチャンネル番号13(CH13)に対応する画像データよりも早く4フィールド分バッファ103に蓄積されていたものとすると、エンコードリクエストキュー104の先頭には、カメラチャンネル番号9(CH9)が保持され、続いてカメラチャンネル番号13(CH13)が保持されることになる。この場合、3フィールド時間エンコーダ105は、次のフィールド時間2において、バッファ103からカメラチャンネル番号9(CH9)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間2乃至4)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。なお、フィールド時間2において、3フィールド時間エンコーダ105がバッファ103からカメラチャンネル番号9(CH9)に対応する4フィールド分の画像データを読み出した後も、バッファ103には、カメラチャンネル番号9(CH9)に対応する1フィールド分の画像データが蓄積されているが、これは、フィールド時間2において、カメラチャンネル番号9(CH9)に対応する1フィールド分の画像データが新たにバッファ103に入力され、蓄積されたことを意味する。   In FIG. 4, at field time 1, image data corresponding to camera channel number 9 (CH9) is stored in the buffer 103 for four fields, and image data corresponding to camera channel number 13 (CH13) is stored in five fields. Minutes are accumulated. Here, it is assumed that the image data corresponding to the camera channel number 9 (CH9) is stored in the buffer 103 for four fields earlier than the image data corresponding to the camera channel number 13 (CH13). At the head of 104, camera channel number 9 (CH9) is held, and subsequently camera channel number 13 (CH13) is held. In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 9 (CH9) from the buffer 103 in the next field time 2, and includes this read time for three field times (field At time 2 to 4), image compression with 4-field correlation is performed and output to the 3-field time recording disk 106. Note that, in the field time 2, even after the 3-field time encoder 105 reads out image data for 4 fields corresponding to the camera channel number 9 (CH 9) from the buffer 103, the buffer 103 stores the camera channel number 9 (CH 9). The image data for one field corresponding to is stored in the buffer 103 at field time 2, and the image data for one field corresponding to the camera channel number 9 (CH9) is newly input to the buffer 103 and stored. Means that

3フィールド時間エンコーダ105の動作が終了するフィールド時間4では、バッファ103には、カメラチャンネル番号13(CH13)に対応する画像データが6フィールド分蓄積されており、エンコードリクエストキュー104には、カメラチャンネル番号13(CH13)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間5において、バッファ103からカメラチャンネル番号13(CH13)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間5乃至7)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   At field time 4 when the operation of the three-field time encoder 105 ends, image data corresponding to the camera channel number 13 (CH13) is stored in the buffer 103 for six fields, and the encoding request queue 104 stores the camera channel. Number 13 (CH13) is retained. In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 13 (CH13) from the buffer 103 in the next field time 5, and includes this read time for three field times (field At time 5 to 7), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

そして、3フィールド時間エンコーダ105の動作が終了するフィールド時間7では、バッファ103に蓄積された各チャンネルに対応する画像データの中に、4フィールド分以上を有するものはない。このため、エンコードリクエストキュー104には、何も保持されていない。この場合、3フィールド時間エンコーダ105は、次の3フィールド時間(フィールド時間8乃至10)において未動作状態となる。   In the field time 7 at which the operation of the three-field time encoder 105 ends, no image data corresponding to each channel stored in the buffer 103 has more than four fields. For this reason, nothing is held in the encoding request queue 104. In this case, the three-field time encoder 105 is in an inoperative state in the next three field times (field times 8 to 10).

次に、3フィールド時間エンコーダ105の未動作状態が終了するフィールド時間10では、バッファ103には、カメラチャンネル番号11(CH11)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号11(CH11)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間11において、バッファ103からカメラチャンネル番号11(CH11)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間11乃至13)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   Next, at the field time 10 when the non-operating state of the 3-field time encoder 105 ends, image data corresponding to the camera channel number 11 (CH11) is accumulated in the buffer 103 for 4 fields, and the encode request queue 104 stores the image data. , Camera channel number 11 (CH11) is held. In this case, the three-field time encoder 105 reads the image data for four fields corresponding to the camera channel number 11 (CH11) from the buffer 103 in the next field time 11, and includes the three-field time (field) including this read time. At time 11 to 13), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

次に、3フィールド時間エンコーダ105の動作が終了するフィールド時間13では、バッファ103には、カメラチャンネル番号12(CH12)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号12(CH12)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間14において、バッファ103からカメラチャンネル番号12(CH12)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間14乃至16)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   Next, at the field time 13 when the operation of the three-field time encoder 105 ends, the buffer 103 stores image data corresponding to the camera channel number 12 (CH12) for four fields, and the encode request queue 104 stores the camera data. Channel number 12 (CH12) is held. In this case, the three-field time encoder 105 reads image data for four fields corresponding to the camera channel number 12 (CH12) from the buffer 103 at the next field time 14, and includes the three-field time (field) including this read time. At time 14 to 16), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

更に、3フィールド時間エンコーダ105の動作が終了するフィールド時間16では、バッファ103には、カメラチャンネル番号13(CH13)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号13(CH13)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間17において、バッファ103からカメラチャンネル番号13(CH13)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   Further, at the field time 16 when the operation of the three-field time encoder 105 is completed, the image data corresponding to the camera channel number 13 (CH13) is stored in the buffer 103 for four fields, and the camera channel is stored in the encode request queue 104. Number 13 (CH13) is retained. In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 13 (CH13) from the buffer 103 in the next field time 17, and includes the readout time in three field times. 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

3フィールド時間エンコーダ105の動作状態が図4に示すものとなる場合、3フィールド時間エンコーダ105のスループットが3フィールド時間で4フィールド相関の画像圧縮であるから4/3であり、3フィールド時間エンコーダ105の動作率が16フィールド時間中13フィールド時間動作しているから13/16であることを利用すると、フィールド時間2乃至17における3フィールド時間エンコーダ105が1フィールド時間当たりに処理して出力する画像データのフィールド数(出力平均スループット)は、これらを乗算した13/12となる。すなわち、図9における従来の出力平均スループットである3/4より増加する。従って、従来よりも、入力される画像データがオーバーフローしてしまうことを抑制することができる。また、3フィールド時間エンコーダ105がバッファ103から画像データを読み出す頻度が従来よりも増加するため、バッファ103の使用率を削減することができる。このため、バッファ103の容量削減が可能となる。   When the operation state of the three-field time encoder 105 is as shown in FIG. 4, the throughput of the three-field time encoder 105 is 4/3 because the image compression is four-field correlation in three field times, and the three-field time encoder 105 If the operation rate is 13/16 because it operates for 13 field hours out of 16 field hours, the 3-field time encoder 105 in the field times 2 to 17 processes and outputs image data per field time. The number of fields (average output throughput) is 13/12 multiplied by these. That is, it is increased from 3/4, which is the conventional average output throughput in FIG. Therefore, it is possible to prevent the input image data from overflowing as compared with the prior art. Further, since the frequency with which the three-field time encoder 105 reads image data from the buffer 103 is increased as compared with the conventional case, the usage rate of the buffer 103 can be reduced. For this reason, the capacity of the buffer 103 can be reduced.

次に、図5について説明する。なお、図5においてフィールド時間1乃至17は、図4と同様、それぞれ1フィールド時間の時間長を有する。   Next, FIG. 5 will be described. In FIG. 5, field times 1 to 17 each have a time length of one field time as in FIG.

図5において、フィールド時間1では、バッファ103には、カメラチャンネル番号6(CH6)に対応する画像データが4フィールド分、カメラチャンネル番号10(CH10)に対応する画像データが6フィールド分、カメラチャンネル番号12(CH12)に対応する画像データが5フィールド分、カメラチャンネル番号15(CH15)に対応する画像データが4フィールド分蓄積されている。ここで、4フィールド分の画像データが蓄積されるまでの時間の早い順が、カメラチャンネル番号10(CH10)に対応する画像データ、カメラチャンネル番号12(CH12)に対応する画像データ、カメラチャンネル番号6(CH6)に対応する画像データ、カメラチャンネル番号15(CH15)に対応する画像データの順であったものとすると、エンコードリクエストキュー104には、カメラチャンネル番号10(CH10)、カメラチャンネル番号12(CH12)、カメラチャンネル番号6(CH6)、カメラチャンネル番号15(CH15)の順でカメラチャンネル番号が保持されることになる。この場合、3フィールド時間エンコーダ105は、次のフィールド時間2において、バッファ103からカメラチャンネル番号10(CH10)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間2乃至4)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   In FIG. 5, at field time 1, buffer 103 stores image data corresponding to camera channel number 6 (CH6) for 4 fields, image data corresponding to camera channel number 10 (CH10) for 6 fields, camera channel. Image data corresponding to number 12 (CH12) is stored for five fields, and image data corresponding to camera channel number 15 (CH15) is stored for four fields. Here, the image data corresponding to the camera channel number 10 (CH10), the image data corresponding to the camera channel number 12 (CH12), and the camera channel number are arranged in order of time until the image data for four fields is accumulated. Assuming that the image data corresponding to 6 (CH6) and the image data corresponding to the camera channel number 15 (CH15) are in this order, the camera channel number 10 (CH10) and the camera channel number 12 are stored in the encode request queue 104. The camera channel numbers are held in the order of (CH12), camera channel number 6 (CH6), and camera channel number 15 (CH15). In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 10 (CH10) from the buffer 103 in the next field time 2, and includes the three field times (fields) including this read time. At time 2 to 4), image compression with 4-field correlation is performed and output to the 3-field time recording disk 106.

3フィールド時間エンコーダ105の動作が終了するフィールド時間4では、バッファ103には、カメラチャンネル番号(CH12)に対応する画像データが5フィールド分、カメラチャンネル番号6(CH6)に対応する画像データが4フィールド分、カメラチャンネル番号15(CH15)に対応する画像データが4フィールド分それぞれ蓄積されており、エンコードリクエストキュー104には、カメラチャンネル番号12(CH12)、カメラチャンネル番号6(CH6)、カメラチャンネル番号15(CH15)の順でカメラチャンネル番号が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間5において、バッファ103からカメラチャンネル番号12(CH12)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間5乃至7)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   In the field time 4 when the operation of the three-field time encoder 105 is finished, the buffer 103 has 5 fields of image data corresponding to the camera channel number (CH12) and 4 image data corresponding to the camera channel number 6 (CH6). Image data corresponding to field and camera channel number 15 (CH15) is accumulated for each of four fields, and the encoding request queue 104 stores camera channel number 12 (CH12), camera channel number 6 (CH6), and camera channel. Camera channel numbers are held in the order of number 15 (CH15). In this case, the 3-field time encoder 105 reads out image data for 4 fields corresponding to the camera channel number 12 (CH12) from the buffer 103 in the next field time 5, and includes 3 fields time (field) including this readout time. At time 5 to 7), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

そして、3フィールド時間エンコーダ105の動作が終了するフィールド時間7では、バッファ103には、カメラチャンネル番号6(CH6)に対応する画像データが4フィールド分、カメラチャンネル番号15(CH15)に対応する画像データが4フィールド分それぞれ蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号6(CH6)、カメラチャンネル番号15(CH15)の順でカメラチャンネル番号が保持されている。更に、フィールド時間7では、バッファ103には、カメラチャンネル番号13(CH13)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号15(CH15)に続いてカメラチャンネル番号13(CH13)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間8において、バッファ103からカメラチャンネル番号6(CH6)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間8乃至10)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   At field time 7 when the operation of the three-field time encoder 105 ends, image data corresponding to the camera channel number 6 (CH6) is stored in the buffer 103 for four fields, and the image corresponding to the camera channel number 15 (CH15). Data is accumulated for each of four fields, and camera channel numbers are held in the encoding request queue 104 in the order of camera channel number 6 (CH6) and camera channel number 15 (CH15). Further, at field time 7, image data corresponding to the camera channel number 13 (CH13) is accumulated in the buffer 103 for four fields, and the camera channel number 15 (CH15) is followed by the camera channel in the encode request queue 104. Number 13 (CH13) is retained. In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 6 (CH6) from the buffer 103 at the next field time 8, and includes the read time for three field times (field At time 8 to 10), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

次に、3フィールド時間エンコーダ105の動作が終了するフィールド時間10では、バッファ103には、カメラチャンネル番号15(CH15)に対応する画像データが4フィールド分、カメラチャンネル番号13(CH13)に対応する画像データが4フィールド分それぞれ蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号15(CH15)、カメラチャンネル番号13(CH13)の順でカメラチャンネル番号が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間11において、バッファ103からカメラチャンネル番号15(CH15)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間11乃至13)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   Next, at the field time 10 when the operation of the three-field time encoder 105 ends, image data corresponding to the camera channel number 15 (CH15) corresponds to the camera channel number 13 (CH13) in the buffer 103 for four fields. Image data is stored for each of four fields, and camera channel numbers are held in the encoding request queue 104 in the order of camera channel number 15 (CH15) and camera channel number 13 (CH13). In this case, the three-field time encoder 105 reads the image data for four fields corresponding to the camera channel number 15 (CH15) from the buffer 103 in the next field time 11, and includes the three field times (fields) including this read time. At time 11 to 13), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

次に、3フィールド時間エンコーダ105の動作が終了するフィールド時間13では、バッファ103には、カメラチャンネル番号13(CH13)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号13(CH13)が保持されている。この場合、3フィールド時間エンコーダ105は、次のフィールド時間14において、バッファ103からカメラチャンネル番号13(CH13)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間(フィールド時間11乃至13)で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   Next, at field time 13 when the operation of the three-field time encoder 105 ends, image data corresponding to the camera channel number 13 (CH13) is accumulated in the buffer 103 for four fields, and the encoding request queue 104 stores the camera data. Channel number 13 (CH13) is held. In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 13 (CH13) from the buffer 103 at the next field time 14, and includes the three-field time (field) including this read time. At time 11 to 13), 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

そして、フィールド時間14以降、バッファ103には、カメラチャンネル番号2(CH2)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号2(CH2)が保持されるとともに、フィールド時間15以降、バッファ103には、カメラチャンネル番号1(CH1)に対応する画像データが4フィールド分蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号2(CH2)に続いて、カメラチャンネル番号1(CH1)が保持される。このため、3フィールド時間エンコーダ105の動作が終了するフィールド時間16では、バッファ103には、カメラチャンネル番号2(CH2)に対応する画像データが4フィールド分、カメラチャンネル番号1(CH1)に対応する画像データが4フィールド分それぞれ蓄積され、エンコードリクエストキュー104には、カメラチャンネル番号2(CH2)、カメラチャンネル番号1(CH1)の順でカメラチャンネル番号が保持されることになる。この場合、3フィールド時間エンコーダ105は、次のフィールド時間17において、バッファ103からカメラチャンネル番号2(CH2)に対応する4フィールド分の画像データを読み出し、この読み出し時間を含めて3フィールド時間で、4フィールド相関の画像圧縮を行い、3フィールド時間記録ディスク106へ出力する。   After the field time 14, image data corresponding to the camera channel number 2 (CH2) is accumulated in the buffer 103 for four fields, and the camera channel number 2 (CH2) is held in the encode request queue 104. After field time 15, image data corresponding to camera channel number 1 (CH1) is accumulated in the buffer 103 for four fields, and the camera channel number 2 (CH2) follows the camera channel in the encode request queue 104. Number 1 (CH1) is retained. For this reason, at the field time 16 when the operation of the three-field time encoder 105 ends, the image data corresponding to the camera channel number 2 (CH2) corresponds to the camera channel number 1 (CH1) in the buffer 103 for four fields. Four fields of image data are accumulated, and the camera channel numbers are held in the encoding request queue 104 in the order of camera channel number 2 (CH2) and camera channel number 1 (CH1). In this case, the three-field time encoder 105 reads out image data for four fields corresponding to the camera channel number 2 (CH2) from the buffer 103 in the next field time 17, and includes the readout time in three field times. 4-field correlation image compression is performed and output to the 3-field time recording disk 106.

3フィールド時間エンコーダ105の動作状態が図5に示すものとなる場合、3フィールド時間エンコーダ105のスループットが3フィールド時間で4フィールド相関の画像圧縮であるから4/3であり、3フィールド時間エンコーダ105の動作率が16フィールド時間中16フィールド時間動作しているから16/16であることを利用すると、フィールド時間2乃至17における3フィールド時間エンコーダ105が1フィールド時間当たりに処理して出力する画像データのフィールド数(出力平均スループット)は、これらを乗算した4/3となり、バッファ103が1フィールド時間当たりに蓄積する画像データのフィールド数(入力スループット)である1(フィールド/フィールド時間)よりも大きい値となる。従って、入力される画像データがオーバーフローしてしまうことを抑制することができる。また、図4における動作と同様、3フィールド時間エンコーダ105がバッファ103から画像データを読み出す頻度が従来よりも増加するため、バッファ103の使用率を削減することができため、バッファ103の容量削減が可能となる。   When the operation state of the three-field time encoder 105 is as shown in FIG. 5, the throughput of the three-field time encoder 105 is 4/3 because the image compression of the four-field correlation is performed in three field times, and the three-field time encoder 105 If the operation rate of 16 is 16/16 out of 16 field hours, it is 16/16. Therefore, the 3-field time encoder 105 in the field times 2 to 17 processes and outputs image data per field time. The number of fields (average output throughput) is 4/3 multiplied by these, and is larger than 1 (field / field time) which is the number of fields (input throughput) of image data stored in the buffer 103 per field time. Value. Therefore, it is possible to prevent the input image data from overflowing. Further, as in the operation in FIG. 4, the frequency at which the three-field time encoder 105 reads image data from the buffer 103 is increased as compared with the prior art, so the usage rate of the buffer 103 can be reduced, and the capacity of the buffer 103 can be reduced. It becomes possible.

なお、前述した本発明の実施の形態では、画像データはフィールド単位に入力され、エンコード処理及び記録が行われたが、フレーム単位に入力され、エンコード処理及び記録が行われるようにしても良い。   In the above-described embodiment of the present invention, image data is input in units of fields and encoded and recorded. However, it may be input in units of frames and encoded and recorded.

また、前述した本発明の実施の形態では、4フィールドの画像データ間の相関に基づく画像圧縮が行われる場合について説明したが、2フィールド以上あるいは2フレーム以上の画像データ間の相関に基づく画像圧縮が行われる場合においても、本発明を適用することができる。   In the above-described embodiment of the present invention, the case where the image compression based on the correlation between the image data of the four fields is described, but the image compression based on the correlation between the image data of two fields or more or two frames or more is described. The present invention can be applied even when the above is performed.

更に、前述した実施形態では、3フィールド時間エンコーダ105は、1フィールド時間当たり4/3フィールド分の画像データの圧縮を行うことが可能な処理能力を有するが、1フィールド時間当たり1フィールド分以上、あるいは、1フレーム時間当たり1フレーム以上の画像データの圧縮を行うことが可能な処理能力を有するものであれば、本発明を適用することができる。また、バッファ103に入力される画像データは、ITU−RのBT.656規格に準拠した画像データ以外であっても良い。   Further, in the above-described embodiment, the 3-field time encoder 105 has a processing capability capable of compressing image data of 4/3 fields per field time, but more than 1 field per field time, Alternatively, the present invention can be applied as long as it has a processing capability capable of compressing image data of one frame or more per frame time. Also, the image data input to the buffer 103 is the ITU-R BT. It may be other than the image data based on the 656 standard.

以上のように、本発明に係る画像エンコード装置及び画像エンコード方法は、エンコード対象の画像データのオーバーフローを抑制することが可能となるという効果を有し、画像エンコード装置及び画像エンコード方法として有用である。   As described above, the image encoding device and the image encoding method according to the present invention have an effect that it is possible to suppress overflow of image data to be encoded, and are useful as an image encoding device and an image encoding method. .

本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムのブロック図1 is a block diagram of a surveillance camera system to which an image encoding apparatus according to an embodiment of the present invention is applied. 本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムの動作を示す第1のフローチャートFirst flowchart showing the operation of the surveillance camera system to which the image encoding device of the embodiment of the present invention is applied. 本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムの動作を示す第2のフローチャート2nd flowchart which shows operation | movement of the surveillance camera system to which the image encoding apparatus of embodiment of this invention is applied. 本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムにおける3フィールド時間エンコーダの第1の動作状況を示す図The figure which shows the 1st operation | movement condition of the 3 field time encoder in the surveillance camera system to which the image encoding apparatus of embodiment of this invention is applied. 本発明の実施の形態の画像エンコード装置を適用した監視カメラシステムにおける3フィールド時間エンコーダの第2の動作状況を示す図The figure which shows the 2nd operation | movement condition of the 3 field time encoder in the surveillance camera system to which the image encoding apparatus of embodiment of this invention is applied. 従来の第1の監視カメラシステムのブロック図Block diagram of a conventional first surveillance camera system 従来の第1の監視カメラシステムのタイミングチャートTiming chart of conventional first surveillance camera system 従来の第2の監視カメラシステムのブロック図Block diagram of a conventional second surveillance camera system 従来の第2の監視カメラシステムにおけるエンコーダの動作状況を示す図The figure which shows the operation | movement condition of the encoder in the conventional 2nd surveillance camera system

符号の説明Explanation of symbols

100 監視カメラシステム
102a〜102p カメラ
103 バッファ
104 エンコードリクエストキュー
105 3フィールド時間エンコーダ
106 3フィールド時間記録ディスク
DESCRIPTION OF SYMBOLS 100 Surveillance camera system 102a-102p Camera 103 Buffer 104 Encoding request queue 105 3 field time encoder 106 3 field time recording disk

Claims (10)

単位時間長の画像データを順次入力して蓄積する画像データ蓄積手段と、
前記画像データ蓄積手段に前記単位時間長の画像データが蓄積された場合に、前記単位時間長よりも短い時間内に、前記画像データ蓄積手段に蓄積された前記単位時間長の画像データのエンコードを行い、エンコード後の画像データを出力する画像データエンコード手段とを有することを特徴とする画像エンコード装置。
Image data storage means for sequentially inputting and storing image data of unit time length;
When the unit time length image data is stored in the image data storage unit, the unit time length image data stored in the image data storage unit is encoded within a time shorter than the unit time length. And an image data encoding means for outputting the encoded image data.
前記画像データ蓄積手段に前記単位時間長の画像データがエンコード処理単位数分蓄積されたことを検出する画像データ蓄積検出手段を有し、
前記画像データエンコード手段は、前記画像データ蓄積検出手段により、前記画像データ蓄積手段に前記単位時間長の画像データがエンコード処理単位数分蓄積されたことが検出された場合に、前記エンコード処理単位数分の単位時間長の画像データのエンコードを行うことを特徴とする請求項1記載の画像エンコード装置。
The image data storage means has image data storage detection means for detecting that the unit time length of image data has been stored for the number of encoding processing units,
The image data encoding unit detects the number of encoding processing units when the image data storage detecting unit detects that the unit time length of image data has been stored in the image data storage unit. The image encoding apparatus according to claim 1, wherein the image data is encoded with a unit time length of minutes.
前記画像データエンコード手段は、前記エンコード処理単位数分の単位時間長の画像データ間の相関に基づくエンコードを行うことを特徴とする請求項1又は2記載の画像エンコード装置。 3. The image encoding apparatus according to claim 1, wherein the image data encoding means performs encoding based on correlation between image data having a unit time length corresponding to the number of encoding processing units. 前記単位時間長よりも短い時間内に、前記画像データエンコード手段によりエンコードが行われた画像データを記録する画像データ記録手段を有することを特徴とする請求項1乃至3のいずれか記載の画像エンコード装置。 4. The image encoding according to claim 1, further comprising image data recording means for recording the image data encoded by the image data encoding means within a time shorter than the unit time length. 5. apparatus. 前記画像データ蓄積手段は、複数のチャンネルに対応する前記単位時間長の画像データが多重化された画像データを順次入力して蓄積し、
前記画像データエンコード手段は、前記画像データ蓄積手段に、前記複数のチャンネルのいずれかに対応する単位時間長の画像データが蓄積された場合に、前記単位時間長の画像データのエンコードを行うことを特徴とする請求項1乃至4のいずれか記載の画像エンコード装置。
The image data storage means sequentially inputs and stores image data obtained by multiplexing the unit time length image data corresponding to a plurality of channels,
The image data encoding means encodes the unit time length image data when the image data storage means stores image data of a unit time length corresponding to any of the plurality of channels. The image encoding device according to claim 1, wherein the image encoding device is an image encoding device.
前記画像データエンコード手段は、前記画像データ蓄積手段に蓄積された前記単位時間長の画像データを読み出し、圧縮を行って出力することを特徴とする請求項1乃至5のいずれか記載の画像エンコード装置。 6. The image encoding apparatus according to claim 1, wherein the image data encoding unit reads out the unit time length of image data stored in the image data storage unit, performs compression, and outputs the compressed image data. . 単位時間長の画像データを順次入力して蓄積する画像データ蓄積ステップと、
前記画像データ蓄積ステップにおいて前記単位時間長の画像データが蓄積された場合に、前記単位時間長よりも短い時間内に、前記蓄積された前記単位時間長の画像データのエンコードを行い、エンコード後の画像データを出力する画像データエンコードステップとを有することを特徴とする画像エンコード方法。
An image data storage step of sequentially inputting and storing image data of unit time length; and
When the image data of the unit time length is accumulated in the image data accumulation step, the accumulated image data of the unit time length is encoded within a time shorter than the unit time length. And an image data encoding step for outputting image data.
前記単位時間長の画像データがエンコード処理単位数分蓄積されたことを検出する画像データ蓄積検出ステップを有し、
前記画像データエンコードステップは、前記画像データ蓄積ステップにおいて前記単位時間長の画像データがエンコード処理単位数分蓄積されたことが検出された場合に、前記エンコード処理単位数分の前記単位時間長の画像データのエンコードを行うことを特徴とする請求項7記載の画像エンコード方法。
An image data storage detection step for detecting that the unit time length of image data is stored for the number of encoding processing units;
In the image data encoding step, when it is detected in the image data storage step that the unit time length of image data has been stored for the number of units of encoding processing, the unit time length of images for the number of units of encoding processing 8. The image encoding method according to claim 7, wherein the data is encoded.
前記単位時間長よりも短い時間内に、前記画像エンコードステップにおいてエンコードが行われた前記単位時間長の画像データを記録する画像データ記録ステップを有することを特徴とする請求項7又は8記載の画像エンコード方法。 9. The image according to claim 7, further comprising an image data recording step of recording the image data of the unit time length encoded in the image encoding step within a time shorter than the unit time length. Encoding method. 前記画像データ蓄積ステップは、複数のチャンネルに対応する前記単位時間長の画像データが多重化された画像データを順次入力して蓄積し、
前記画像データエンコードステップは、前記画像データ蓄積ステップにおいて前記複数のチャンネルのいずれかに対応する前記単位時間長の画像データが蓄積された場合に、前記単位時間長の画像データのエンコードを行うことを特徴とする請求項7乃至9のいずれか記載の画像エンコード方法。
The image data accumulation step sequentially inputs and accumulates image data obtained by multiplexing the unit time length image data corresponding to a plurality of channels,
The image data encoding step encodes the unit time length image data when the unit time length image data corresponding to any of the plurality of channels is stored in the image data storage step. 10. The image encoding method according to claim 7, wherein the image encoding method is any one of claims 7 to 9.
JP2003422516A 2003-12-19 2003-12-19 Device and method for encoding picture Pending JP2005184477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003422516A JP2005184477A (en) 2003-12-19 2003-12-19 Device and method for encoding picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003422516A JP2005184477A (en) 2003-12-19 2003-12-19 Device and method for encoding picture

Publications (1)

Publication Number Publication Date
JP2005184477A true JP2005184477A (en) 2005-07-07

Family

ID=34783363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003422516A Pending JP2005184477A (en) 2003-12-19 2003-12-19 Device and method for encoding picture

Country Status (1)

Country Link
JP (1) JP2005184477A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203706A (en) * 2011-03-25 2012-10-22 Kayaba Ind Co Ltd Drive recorder and drive recorder system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203706A (en) * 2011-03-25 2012-10-22 Kayaba Ind Co Ltd Drive recorder and drive recorder system

Similar Documents

Publication Publication Date Title
JP5331316B2 (en) Improved video buffer before alarm
JP2009033423A (en) Image compression method and image processing device
US8094991B2 (en) Methods and apparatus for recording and reproducing a moving image, and a recording medium in which program for executing the methods is recorded
US20090154551A1 (en) Apparatus for recording/reproducing moving picture, and recording medium thereof
US6947660B2 (en) Motion picture recording/reproduction apparatus
KR100597917B1 (en) Moving picture recording apparatus and system
US7006701B2 (en) Sequential digital image compression
JP2005184477A (en) Device and method for encoding picture
JP2002262272A (en) Digital supervisory camera system and controller
JP2003009085A (en) Device and method for recording digital signal and device and method for reproducing digital signal
JP2005117447A (en) Animation recording device, animation recording method and animation recording program
JP3196764B2 (en) Moving image recording / playback method
JP2001186530A (en) Multiple channel image compressor and method therefor
JP2003189242A (en) Video recording and reproducing device and reproducing method
JP4255455B2 (en) Image data compression device
JP4451754B2 (en) Image data storage method
US10412340B2 (en) Recording device and multiplexing method
JP2004104193A (en) Imaging apparatus and recorder
JP2001186469A (en) Intermittent picture recording device and its method
KR19990019528A (en) Data transmission device and method of security system using MPEG encoder
JPH08186822A (en) Image decoder
JP2007043575A (en) Image processor and image processing method
JP2009055648A (en) Image data compression apparatus
JP2003235011A (en) Program stream production apparatus and recording and reproducing apparatus employing the same
JP2001186528A (en) Bit stream frequency converter for image signal and method therefor