JP2000197003A - Dynamic image recorder - Google Patents

Dynamic image recorder

Info

Publication number
JP2000197003A
JP2000197003A JP36622698A JP36622698A JP2000197003A JP 2000197003 A JP2000197003 A JP 2000197003A JP 36622698 A JP36622698 A JP 36622698A JP 36622698 A JP36622698 A JP 36622698A JP 2000197003 A JP2000197003 A JP 2000197003A
Authority
JP
Japan
Prior art keywords
frame
image
encoding
picture
motion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP36622698A
Other languages
Japanese (ja)
Other versions
JP3794529B2 (en
Inventor
Makoto Yokoi
誠 横井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP36622698A priority Critical patent/JP3794529B2/en
Publication of JP2000197003A publication Critical patent/JP2000197003A/en
Application granted granted Critical
Publication of JP3794529B2 publication Critical patent/JP3794529B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve image quality and to simplify arithmetic processings of a motion vector by extracting the feature part of frame image signal and changing the encoding form of respective frames, based on the result of detecting the motion of an object in correlation between adjacent frames. SOLUTION: At detection of striking motion of an object in a motion detection circuit 30, the default values for an N parameters and an M parameters are ignored, a GOP is forcibly closed and the practical number of the I pictures of satisfactory image quality is increased. An LPF 31, an HPF 32, a gate circuit 33 and a peak-holding circuit 34, etc., for constituting the motion detection circuit 30 are often loaded on the AF part of an electronic still camera and the circuit can be shared. Since whether or not the object frame of B picture encoding is provided with correlation with only the front or back can be detected by motion detection signals MV, motion compensation inter-frame prediction is applied only with respect to a reference frame with the correlation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、動画像記録装置に
関し、特に、MPEG(Moving Picture ExpertsGrou
p)標準の符号化方式で動画像の圧縮記録を行う電子ス
チルカメラやビデオカメラ等の動画像記録装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture recording apparatus, and more particularly, to an MPEG (Moving Picture Experts Group).
p) The present invention relates to a moving image recording device such as an electronic still camera or a video camera that compresses and records a moving image using a standard encoding method.

【0002】[0002]

【従来の技術】<MPEG符号化方式の概説>MPEG
は、蓄積メディア系や通信メディア系への動画像適用を
目的としてCCITT H.261(テレビ電話、テレ
ビ会議用符号化)から発展した符号化標準である。MP
EGは、MC(Motion Compensation;動き補償)やD
CT(Discrete Cosine Transform;離散コサイン変
換)などの符号化ツールを持つ点で基本的にH.261
と共通するが、早送り、巻戻し、途中再生及び逆転再生
などのトリックモードを実現するための特殊な構造、す
なわち、GOP(Group Of Pictures)構造を持つ点で
相違する。
2. Description of the Related Art <Outline of MPEG Coding Method> MPEG
Is CCITT H.264 for the purpose of applying moving images to storage media systems and communication media systems. H.261 (encoding for videophone and videoconference). MP
EG is MC (Motion Compensation) and D
Basically, H.CT has an encoding tool such as a discrete cosine transform (CT). 261
However, they are different in that they have a special structure for realizing trick modes such as fast forward, rewind, midway reproduction, and reverse reproduction, that is, a GOP (Group Of Pictures) structure.

【0003】図7は、MPEGのシンタクス(構文;ビ
ット・ストリームの満たすべき順序と内容)である。こ
のシンタクスは、シーケンスヘッダとシーケンスエンド
の間に幾つかのGOPを持つシーケンス層と、その下位
のGOP層からなり、GOP層はGOPヘッダの後にn
個のピクチャフレーム(符号化された画面データ)を持
つ構造になっている。
FIG. 7 shows an MPEG syntax (syntax; order and contents to be satisfied by a bit stream). This syntax is composed of a sequence layer having several GOPs between a sequence header and a sequence end, and a GOP layer below the sequence layer.
It has a structure having picture frames (encoded screen data).

【0004】一つのGOPがランダムアクセスの1単位
であり、この単位で上述のトリックモードを可能にす
る。n個のピクチャフレームのタイプ(ピクチャタイ
プ)は、Iピクチャ(略号:I)、Pピクチャ(略号:
P)又はBピクチャ(略号:B)の何れかであり、各ピ
クチャタイプの内容は、以下のとおりである。 (1)Iピクチャ フレーム内符号化画像(Intra-Coded Picture)の略。
画面の全てをイントラ符号化する画像である。GOP内
の独立性(参照画像を必要としない)を持つ点で他のピ
クチャタイプと異なる。 (2)Pピクチャ フレーム間順方向予測符号化画像(Predictive-Coded P
icture)の略。前のIピクチャ又はPピクチャから順方
向予測される画像である。 (3)Bピクチャ フレーム内挿双方向予測符号化画像(Bidirectionally
Predictive-Coded Picture)の略。前後のIピクチャ又
はPピクチャから双方向予測される画像である。
[0004] One GOP is one unit of random access, and this unit enables the above-mentioned trick mode. The types (picture types) of the n picture frames are I picture (abbreviation: I), P picture (abbreviation:
P) or B picture (abbreviation: B), and the content of each picture type is as follows. (1) I picture Abbreviation of intra-coded picture.
This is an image in which all of the screen is intra-coded. It differs from other picture types in that it has independence within the GOP (does not require a reference picture). (2) P picture Predictive-Coded P picture between frames
icture). This is an image predicted in the forward direction from the previous I picture or P picture. (3) B-picture frame-interpolated bidirectionally coded image (Bidirectionally coded image)
Predictive-Coded Picture). This is an image that is bidirectionally predicted from preceding and succeeding I or P pictures.

【0005】図8は、GOP構造の一例を示す図であ
り、GOPのピクチャ数(Nパラメータ)を“15”と
するとともに、I又はPピクチャとPピクチャの周期
(Mパラメータ)を“3”とした場合の例である。すな
わち、1GOPが15枚のフレームで構成されており、
且つ、Iピクチャ(又はPピクチャ)から次のPピクチ
ャまでのフレーム数が3枚の例を示している。
FIG. 8 is a diagram showing an example of the GOP structure. The number of pictures (N parameter) of the GOP is set to “15”, and the cycle of the I or P picture and the P picture (M parameter) is set to “3”. This is an example of the case where That is, one GOP is composed of 15 frames,
Further, an example is shown in which the number of frames from an I picture (or P picture) to the next P picture is three.

【0006】図8において、Iピクチャは参照画像を必
要としないイントラ符号化画像であるが、Pピクチャと
Bピクチャは、それぞれ順方向と双方向の予測符号化画
像であり、図に示すように、Pピクチャは既に符号化済
みのIピクチャ又はPピクチャを参照画像とし、Bピク
チャは前後のIピクチャ又はPピクチャを参照画像とし
て、それぞれ順方向予測及び双方向予測された画像であ
る。
In FIG. 8, an I picture is an intra-coded picture that does not require a reference picture, whereas a P picture and a B picture are forward-coded and bi-directional predicted coded pictures, respectively, as shown in the figure. , And P pictures are images that have been forward- and bi-directionally predicted using the already coded I or P picture as a reference image, and the B pictures using the preceding and succeeding I or P pictures as reference images.

【0007】Iピクチャでは原画像のブロックごとにD
CT演算、量子化及び可変長符号化を行うが、Pピクチ
ャとBピクチャでは参照画像との間の動き補償予測の誤
差信号(予測誤差信号)に対してのみDCT演算、量子
化及び可変長符号化を行うため、特に予測誤差信号が小
さい場合、すなわち、動きの穏やかな動画像の場合の圧
縮効率に優れている。
In the case of an I picture, D
The CT operation, quantization, and variable length coding are performed. In the P picture and the B picture, DCT operation, quantization, and variable length coding are performed only on an error signal (prediction error signal) of motion compensation prediction between a reference image and a reference image. In particular, the compression efficiency is excellent when the prediction error signal is small, that is, when the moving image has a gentle motion.

【0008】図9は、GOPのフレーム配列を示す図で
ある。この図では、原画像の画面順(B0、B1、I
2、B3、B4、P5、……)が符号化処理の段階で一
部入れ替わり、再生画像の段階で元の並び順に復帰する
様子が示されている。符号化処理段階におけるBピクチ
ャの挿入は、その前後のIピクチャ(又はPピクチャ)
とPピクチャの符号化後に行われる。例えば、原画像の
B3、B4に着目すると、I2とP5の符号化後、これ
らのI2とP5を参照画像にしてB3、B4が符号化さ
れ、I2とP5の後に挿入される結果、原画像の段階で
「I2、B3、B4、P5」であった並び順が、「I
2、……、P5、B3、B4」と入れ替わることにな
る。
FIG. 9 is a diagram showing a frame arrangement of a GOP. In this figure, the screen order of the original image (B0, B1, I
2, B3, B4, P5,...) Are partially replaced at the stage of the encoding process, and returned to the original arrangement order at the stage of the reproduced image. Insertion of a B picture in the encoding process is performed by inserting an I picture (or a P picture) before and after the B picture.
And after the encoding of the P picture. For example, when focusing on B3 and B4 of the original image, after encoding I2 and P5, B3 and B4 are encoded using these I2 and P5 as reference images, and inserted as a result after I2 and P5. In the order of “I2, B3, B4, P5” at the stage of
2,..., P5, B3, B4 ".

【0009】ここで、GOPの生成規則は、メディア
上のGOPの最初がIピクチャであることと、原画像
及び再生画像の並び順でGOPの最後がPピクチャであ
ることを満たしていればよく、上述のNパラメータやM
パラメータに使用上の制限はないが、実際には、画質や
動画像の動きなどから最適と思われる値、例えば、Nは
ランダムアクセス単位が0.4秒〜1秒程度になるよう
な値(“15”程度)、また、Mは比較的動きの穏やか
な画像に合わせた値(“3”程度)に設定されることが
多い。
Here, the GOP generation rule only needs to satisfy that the first of the GOP on the medium is an I picture and that the last of the GOP is a P picture in the arrangement order of the original image and the reproduced image. , N parameters and M
Although there is no restriction on the use of the parameters, in practice, a value considered to be optimal from the image quality and the motion of the moving image, for example, N is a value such that the random access unit is about 0.4 to 1 second ( M is often set to a value (about "3") corresponding to an image having relatively gentle movement.

【0010】<動画像記録装置の一例>電子スチルカメ
ラは、被写体の像を2次元のイメージセンサで電気信号
に変換して、その電気信号から所定周期のフレーム画像
を生成するとともに、シャッターキー押し下げ時のフレ
ーム画像をキャプチャし、そのキャプチャ画像をフラッ
シュメモリ等の記憶媒体に記録するものであり、銀塩カ
メラと同じく被写体の静止画を記録するものであるが、
近時、上記フレーム画像の周期的生成動作を利用し、被
写体の動きを連続的に記録できるようにした電子スチル
カメラが公知であり、かかる動画像の圧縮記録に上述の
MPEGが用いられている。
<Example of Moving Image Recording Apparatus> An electronic still camera converts an image of a subject into an electric signal by a two-dimensional image sensor, generates a frame image of a predetermined cycle from the electric signal, and depresses a shutter key. It captures a frame image at the time and records the captured image on a storage medium such as a flash memory, and records a still image of the subject like a silver halide camera,
2. Description of the Related Art Recently, there has been known an electronic still camera capable of continuously recording the movement of a subject by utilizing the above-described periodic generation operation of a frame image, and the above-described MPEG is used for compression recording of such a moving image. .

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上記従
来の電子スチルカメラにあっては、Mパラメータをあら
かじめ固定的に設定しており、その設定値は比較的動き
の穏やかな画像に合わせた、例えば“3”であったた
め、メディア上のフレーム配列でIピクチャ(又はPピ
クチャ)とPピクチャの間に、常にM−1=2個のBピ
クチャが挿入されることとなるが、以下の理由で、被写
体の動きが激しい場合に画質の劣化を招くという問題点
がある。
However, in the above-mentioned conventional electronic still camera, the M parameter is fixedly set in advance, and the set value is adjusted to an image having a relatively gentle movement, for example, Since it is "3", M-1 = 2 B pictures are always inserted between the I picture (or P picture) and the P picture in the frame arrangement on the media, for the following reason. In addition, there is a problem that the image quality is deteriorated when the movement of the subject is severe.

【0012】Bピクチャは上述のとおり、フレーム内挿
双方向予測符号化画像であって、この画像は前後のIピ
クチャ又はPピクチャから双方向予測された誤差信号
(予測誤差信号)にIピクチャと同様のDCT演算、量
子化及び可変長符号化を適用して情報量を圧縮するもの
であり、被写体の動きが穏やかな場合には相応の圧縮効
果が得られて有効な反面、被写体の動きが激しい場合に
は予測誤差信号が大きくなって却って情報量の増加を招
くことになるから、所要の伝送速度を確保するために
は、“きつい量子化処理”………量子化とは連続する信
号を適当な“間隔”で代表値に置き換え、代表値の番号
を符号化する技術であり、“きつい量子化処理”とはそ
の間隔を広げることをいう。………を施さざるを得ず、
画質劣化の要因となっていた。
As described above, the B picture is a frame-interpolated bidirectional predictive coded image, and this image includes an I picture and a bidirectionally predicted error signal (prediction error signal) from the preceding and succeeding I or P pictures. The same amount of information is compressed by applying the same DCT operation, quantization, and variable-length coding. When the movement of the subject is gentle, an appropriate compression effect can be obtained, which is effective. If it is severe, the prediction error signal will increase and the amount of information will increase. Therefore, in order to secure the required transmission rate, a "tight quantization process" is used. Is replaced with a representative value at an appropriate “interval”, and the number of the representative value is encoded. “Tight quantization processing” refers to increasing the interval. ………
This is a cause of image quality deterioration.

【0013】なお、Mパラメータを“1”にすれば、B
ピクチャの挿入がなくなり、画質劣化を回避できるもの
の、Bピクチャのメリット、すなわち、被写体の動きが
穏やかな場合の情報量の削減効果が失われるので好まく
ない。
If the M parameter is set to "1", B
Although picture insertion is eliminated and image quality degradation can be avoided, the advantage of a B picture, that is, the effect of reducing the amount of information when the movement of the subject is gentle, is not preferable.

【0014】そこで本発明は、被写体の動きが穏やかな
場合の情報量削減と被写体の動きが激しい場合の画質向
上とを共に達成できる動画像記録装置の提供を目的とす
る。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a moving image recording apparatus capable of achieving both reduction in the amount of information when the subject moves slowly and improvement in image quality when the subject moves rapidly.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明は、
所定周期のフレーム画像信号を入力する入力手段と、前
記フレーム画像信号をMPEG標準の符号化方式で符号
化する符号化手段と、符号化後のフレーム画像信号を記
憶媒体に記録する記録手段と、前記フレーム画像信号の
特徴部分を抽出する抽出手段と、前記特徴部分を隣接フ
レーム間で相関して被写体の動きを検出する検出手段
と、前記検出手段の検出結果に基づいて前記符号化手段
における各フレームの符号化方式を変更する変更手段
と、を備えたことを特徴とする。請求項2記載の発明
は、請求項1記載の動画像記録装置において、前記変更
手段は、前記検出手段で被写体の著しい動きが検出され
たときに前記符号化手段におけるフレームの符号化方式
をIピクチャに変更することを特徴とする。請求項3記
載の発明は、請求項1記載の動画像記録装置において、
前記変更手段は、前記検出手段で被写体の著しい動きが
検出されたときに前記符号化手段におけるフレームの符
号化方式を操作して現GOPのクローズと新たなGOP
の生成を開始させることを特徴とする。請求項4記載の
発明は、被写体の像を所定周期のフレーム画像信号に変
換する変換手段と、前記フレーム画像信号をMPEG標
準の符号化方式で符号化する符号化手段と、符号化後の
フレーム画像信号を記憶媒体に記録する記録手段と、前
記フレーム画像信号の特徴部分を抽出する抽出手段と、
前記特徴部分を隣接フレーム間で相関して被写体の動き
を検出する検出手段と、前記検出手段の検出結果に基づ
いて前記符号化手段における各フレームの符号化方式を
変更する変更手段と、を備え、前記抽出手段は、電子カ
メラの自動焦点回路と併用されるものであることを特徴
とする。請求項5記載の発明は、請求項1又は請求項4
記載の動画像記録装置において、前記検出手段の検出結
果をMPEGの動き補償処理に適用し、相関関係を持つ
参照フレームに対してのみ動き補償フレーム間予測を行
うようにしたことを特徴とする。
According to the first aspect of the present invention,
Input means for inputting a frame image signal of a predetermined period, encoding means for encoding the frame image signal by an MPEG standard encoding method, recording means for recording the encoded frame image signal on a storage medium, Extracting means for extracting a characteristic part of the frame image signal, detecting means for correlating the characteristic part between adjacent frames to detect a movement of a subject, and each of the encoding means based on a detection result of the detecting means. Changing means for changing a frame encoding method. According to a second aspect of the present invention, in the moving image recording apparatus according to the first aspect, the changing unit sets the encoding method of the frame in the encoding unit to I when the remarkable movement of the subject is detected by the detection unit. It is characterized by changing to a picture. According to a third aspect of the present invention, in the moving image recording apparatus according to the first aspect,
The changing means operates the encoding method of the frame in the encoding means when the detecting means detects a remarkable movement of the object, and closes the current GOP and a new GOP.
Is started. According to a fourth aspect of the present invention, there is provided a conversion unit for converting an image of a subject into a frame image signal having a predetermined period, an encoding unit for encoding the frame image signal according to an MPEG standard encoding method, and a frame after encoding. Recording means for recording an image signal on a storage medium, and extraction means for extracting a characteristic portion of the frame image signal,
Detecting means for detecting the movement of the subject by correlating the characteristic portion between adjacent frames, and changing means for changing an encoding method of each frame in the encoding means based on a detection result of the detecting means. The extraction means is used in combination with an automatic focusing circuit of an electronic camera. The invention according to claim 5 is the invention according to claim 1 or claim 4.
In the moving picture recording apparatus described above, the detection result of the detection means is applied to an MPEG motion compensation process, and motion compensation inter-frame prediction is performed only on reference frames having a correlation.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態を、動
画(ムービー画像ともいう)記録モードを有する電子ス
チルカメラを例にして、図面を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings, taking an electronic still camera having a moving image (movie image) recording mode as an example.

【0017】図1は、電子スチルカメラの外観図であ
る。図示の電子スチルカメラ1は、特に限定しないが、
本体部2と、本体部2に回動可能に取り付けられたカメ
ラ部3とに分かれており、カメラ部3の前面(図面の裏
面側)には図示を略した写真レンズが装着されている。
写真レンズの後ろには、これも図示を略したCCD(イ
メージセンサ)が取り付けられており、後述の撮影モー
ドの際に、写真レンズから取り込まれた被写体の像を映
像信号に変換して、高解像度のフレーム画像を生成でき
るようになっている。
FIG. 1 is an external view of an electronic still camera. Although the illustrated electronic still camera 1 is not particularly limited,
The camera unit 3 is divided into a main body 2 and a camera unit 3 rotatably attached to the main body 2, and a photographic lens (not shown) is mounted on a front surface (a back surface side in the drawing) of the camera unit 3.
A CCD (image sensor), also not shown, is attached to the back of the photographic lens, and converts an image of a subject taken from the photographic lens into a video signal in a shooting mode, which will be described later. A frame image having a resolution can be generated.

【0018】一方、本体部2には、画像(構図調整のた
めのスルー画像や記録済みのキャプチャー画像若しくは
ムービー画像の再生画像若しくはムービー画像を構成す
る各画面のうちm個の静止画像)を確認するための平面
表示装置、例えば、液晶ディスプレイ4が取り付けられ
ているほか、シャッターキー5を始めとする各種の操作
キー類が適宜の位置に取り付けられている。操作キーの
種類や呼び方は製造会社や機種によってまちまちであり
一意に特定できないが、例えば、プラスキー6、マイナ
スキー7、メニューキー8、電源スイッチ9、ディスプ
レイキー10、撮影モードキー11、セルフタイマーキ
ー12、ストロボモードキー13、REC/PLAYキ
ー14などであり、これら各キーの機能(役割)は、以
下のとおりである。
On the other hand, the main body 2 confirms images (through images for composition adjustment, m captured still images of captured images or reproduced images of movie images, or m images of each screen constituting a movie image). For example, a flat panel display device, for example, a liquid crystal display 4 is mounted, and various operation keys such as a shutter key 5 are mounted at appropriate positions. The types and names of operation keys vary depending on the manufacturer and model and cannot be uniquely specified. For example, a plus key 6, a minus key 7, a menu key 8, a power switch 9, a display key 10, a shooting mode key 11, A timer key 12, a strobe mode key 13, a REC / PLAY key 14, etc. The functions (roles) of these keys are as follows.

【0019】(A)シャッターキー5:撮影モード時に
は、その名のとおり“シャッターキー"(半押しで露出
とフォーカスを固定し、全押しで画像をキャプチャーす
る又はムービー撮影を開始する)として働くキーである
が、撮影モードや再生モード時にメニューキー8が押さ
れた場合には、液晶ディスプレイ4に表示された様々な
選択項目を了解するためのYESキーとしても働くマル
チ機能キーである。 (B)プラスキー6:再生画像を選択したり、各種シス
テム設定を選択したりするために用いられるキーであ
る。“プラス"は、その選択方向を意味し、画像選択の
場合であれば最新画像の方向、システム設定選択の場合
であれば液晶ディスプレイ4の走査方向である。 (C)マイナスキー7:方向が逆向きである以外、プラ
スキーと同じ機能である。
(A) Shutter key 5: In the shooting mode, as the name implies, it functions as a "shutter key" (fixing exposure and focus by half-pressing, capturing an image or starting movie shooting by full-pressing). However, when the menu key 8 is pressed in the shooting mode or the reproduction mode, the multi-function key also functions as a YES key for understanding various selection items displayed on the liquid crystal display 4. (B) Plus key 6: a key used to select a reproduced image and various system settings. “Plus” means the selection direction, which is the direction of the latest image in the case of image selection, and the scanning direction of the liquid crystal display 4 in the case of system setting selection. (C) Minus key 7: Same function as the plus key except that the direction is reversed.

【0020】(D)メニューキー8:各種システム設定
を行うためのキーである。再生モードにおいては、デリ
ートモード(画像の消去モード)をはじめとした各種項
目を液晶ディスプレイ4に表示し、撮影モードにおいて
は、画像の記録に必要な、例えば、記録画像の精細度や
オートフォーカスのオンオフなどに加え、さらに、本実
施の形態では、ムービー画像の撮影時間を指定するため
の選択項目を液晶ディスプレイ4に表示する。 (E)電源スイッチ9:カメラの電源をオンオフするス
イッチである。 (F)ディスプレイキー10:液晶ディスプレイ4に表
示された画像に様々な情報をオーバラップ表示するため
のキーである。例えば、撮影モードでは、残り撮影可能
枚数や撮影形態(通常撮影、パノラマ撮影又はムービー
撮影)などの情報をオーバラップ表示し、再生モードで
は、再生画像の属性情報(ページ番号や精細度等)をオ
ーバラップ表示する。
(D) Menu key 8: a key for performing various system settings. In the reproduction mode, various items including the delete mode (image erasing mode) are displayed on the liquid crystal display 4, and in the photographing mode, for example, the definition of the recorded image, such as the definition of the recorded image and the auto focus, In addition to ON / OFF, in the present embodiment, the liquid crystal display 4 displays a selection item for designating a shooting time of a movie image. (E) Power switch 9: a switch for turning on / off the power of the camera. (F) Display key 10: a key for overlappingly displaying various information on the image displayed on the liquid crystal display 4. For example, in the shooting mode, information such as the remaining number of images that can be shot and the shooting mode (normal shooting, panorama shooting or movie shooting) are displayed in an overlapped manner, and in the playback mode, attribute information (page number, definition, etc.) of the playback image is displayed. Display overlap.

【0021】(G)撮影モードキー11:撮影モード時
のみ使用可能になるキーである。通常撮影やパノラマ撮
影を選択するほか、特に本実施の形態では、ムービー撮
影モードを選択する。 (H)セルフタイマーキー12:セルフタイマー機能を
オンオフするキーである。 (I)ストロボモードキー13:ストロボに関する様々
な設定、例えば、強制発光させたり、発光を禁止した
り、赤目を防止したりするキーである。 (J)REC/PLAYキー14 撮影モードと再生モードを切り替えるためのキーであ
る。この例では、スライドスイッチになっており、上に
スライドすると撮影モード、下にスライドすると再生モ
ードになる。
(G) Shooting mode key 11: A key which can be used only in the shooting mode. In addition to selecting normal shooting or panoramic shooting, in this embodiment, in particular, a movie shooting mode is selected. (H) Self-timer key 12: A key for turning on and off a self-timer function. (I) Strobe mode key 13: Various keys for strobe light, for example, a key for forcibly firing light, prohibiting light emission, and preventing red-eye. (J) REC / PLAY key 14 This is a key for switching between a shooting mode and a reproduction mode. In this example, the switch is a slide switch, and slide up to set a shooting mode, and slide down to set a playback mode.

【0022】図2は、本実施の形態における電子スチル
カメラのブロック図である。なお、本実施の形態の電子
スチルカメラは、自動露光(AE)機能と自動焦点(A
F)機能を備えており、これらの機能に特有の要素(例
えば、光量測定用センサ、測距センサ、オートフォーカ
ス用駆動機構及びこれらの制御機構など)を備えている
が、図示の簡単化のためにブロック図に記載していな
い。
FIG. 2 is a block diagram of the electronic still camera according to the present embodiment. The electronic still camera according to the present embodiment has an automatic exposure (AE) function and an automatic focus (A).
F) functions are provided, and elements specific to these functions (for example, a light amount measuring sensor, a distance measuring sensor, an auto-focus driving mechanism, and a control mechanism thereof) are provided. Not shown in the block diagram.

【0023】図2において、15は写真レンズ、16は
CCD(イメージセンサ;発明の要旨に記載の入力手段
(変換手段)に相当)、17は水平・垂直ドライバ、1
8はタイミング発生器(略号はTG)、19はサンプル
ホールド回路(略号はS/H;発明の要旨に記載の入力
手段(変換手段)に相当)、20はアナログディジタル
変換器(略号はA/D;発明の要旨に記載の入力手段
(変換手段)に相当)、21はカラープロセス回路(発
明の要旨に記載の入力手段(変換手段)に相当)、22
はビデオトランスファー回路、23はバッファメモリ、
24は圧縮・伸長回路(発明の要旨に記載の符号化手段
及び変更手段に相当)、25はフラッシュメモリ(発明
の要旨に記載の記憶媒体に相当)、26はCPU(発明
の要旨に記載の記録手段に相当)、27はキー入力部、
28はディジタルビデオエンコーダ、29はバスであ
り、さらに、30は本実施の形態の特有の要素の一つで
ある動き検出回路(発明の要旨に記載の抽出手段及び検
出手段に相当)である。
In FIG. 2, reference numeral 15 denotes a photographic lens, 16 denotes a CCD (image sensor; corresponding to input means (conversion means) described in the gist of the invention), 17 denotes a horizontal / vertical driver, 1
8 is a timing generator (abbreviation is TG), 19 is a sample and hold circuit (abbreviation is S / H; corresponding to input means (conversion means) described in the gist of the invention), 20 is an analog / digital converter (abbreviation is A / H). D: input means (conversion means) described in the gist of the invention), 21 is a color process circuit (corresponding to input means (conversion means) in the gist of the invention), 22
Is a video transfer circuit, 23 is a buffer memory,
Reference numeral 24 denotes a compression / expansion circuit (corresponding to the encoding means and changing means described in the gist of the invention), 25 denotes a flash memory (corresponding to a storage medium described in the gist of the invention), and 26 denotes a CPU (corresponding to the gist of the invention). 27 corresponds to a key input unit,
Reference numeral 28 denotes a digital video encoder, reference numeral 29 denotes a bus, and reference numeral 30 denotes a motion detection circuit (corresponding to the extraction means and the detection means described in the gist of the present invention) which is one of the unique elements of the present embodiment.

【0024】これら各部の機能は、概ね以下のとおりで
ある。 (a)写真レンズ15:CCD16の受光面上に被写体
の像を結ばせるためのものであり、自動焦点機能のため
の焦点合わせ機構を備えている。なお、ズーム機能を備
えたり、沈胴式であったりしてもよい。 (b)CCD16:電荷をアレイ状に転送する固体撮像
デバイスであり、写真レンズ15を介して取り込まれた
被写体像を電気信号に変換し、毎秒数十コマ程度のフレ
ーム画像信号を出力するものである。
The functions of these components are as follows. (A) Photo lens 15: This is for forming an image of a subject on the light receiving surface of the CCD 16, and has a focusing mechanism for an automatic focusing function. Note that a zoom function may be provided, or a retractable type may be provided. (B) CCD 16: a solid-state imaging device that transfers electric charges in an array, converts a subject image captured via the photographic lens 15 into an electric signal, and outputs a frame image signal of about several tens of frames per second. is there.

【0025】一般にCCDは、多数の光電変換素子をア
レイ状に並べた光電変換部と、光電変換素子の出力電荷
を蓄積する電荷蓄積部と、電荷蓄積部の電荷を所定の方
式で読み出す電荷読み出し部とから構成されており、光
電変換素子の一つ一つが画素になる。例えば、有効画素
数が100万画素のCCDでは、少なくともアレイの桝
目が100万個並んでいることになる。以下、説明の都
合上、図示のCCD16の有効画素数を1280×96
0とする。すなわち、行方向(横方向)に1280個、
列方向(縦方向)に960個の画素で構成された、12
80列×960行のアレイ構造を有しているとする。
In general, a CCD has a photoelectric conversion section in which a large number of photoelectric conversion elements are arranged in an array, a charge accumulation section for accumulating output charges of the photoelectric conversion elements, and a charge readout for reading out the charges of the charge accumulation section in a predetermined manner. And each of the photoelectric conversion elements becomes a pixel. For example, in a CCD having one million effective pixels, at least one million cells in the array are arranged. Hereinafter, for convenience of explanation, the number of effective pixels of the illustrated CCD 16 is 1280 × 96.
Set to 0. That is, 1280 in the row direction (lateral direction),
12 pixels composed of 960 pixels in the column direction (vertical direction)
Assume that it has an array structure of 80 columns × 960 rows.

【0026】なお、本実施の形態のCCD16はカラー
CCDである。一般にCCDの画素情報そのものは色情
報を持っていないため、カラーCCDでは前面に色フィ
ルター(光の三原色を用いた原色フィルター又は色の三
原色を用いた補色フィルター)を装着する。
The CCD 16 according to the present embodiment is a color CCD. Generally, since the pixel information of the CCD itself does not have color information, a color filter (a primary color filter using three primary colors of light or a complementary color filter using three primary colors) is mounted on the front surface of a color CCD.

【0027】また、CCDは、電荷の読み出し方式によ
って二つのタイプに分けることができる。第1は、信号
を読み出すときに画素を一つずつ飛ばす「飛び越し読み
出し方式」(インターレースCCDとも言う)のタイプ
であり、第2は、全画素を順番に読み出す「全面読み出
し方式」(プログレッシブCCDとも言う)のタイプで
ある。電子スチルカメラでは第2のタイプがよく用いら
れるものの、昨今の100万画素を越えるメガピクセル
級の電子スチルカメラでは第1のタイプを用いることも
ある。以下、説明の便宜上、本実施の形態のCCD16
は、第2のタイプ(全面読み出し方式)とする。
Further, CCDs can be classified into two types according to a charge reading method. The first type is a "jump-out readout method" (also referred to as an interlaced CCD) in which pixels are skipped one by one when reading a signal. The second is a "full-surface readout method" (in both progressive CCDs) in which all pixels are read out in order. Say) type. Although the second type is often used in electronic still cameras, the first type may be used in recent megapixel electronic still cameras exceeding 1 million pixels. Hereinafter, for convenience of explanation, the CCD 16 of the present embodiment will be described.
Is of a second type (full-surface reading method).

【0028】(c)水平・垂直ドライバ17とタイミン
グ発生器18:CCD16の読み出しに必要な駆動信号
を生成する部分であり、本実施の形態のCCD16は、
全面読み出し方式と仮定されているから、CCD16の
各列を次々に指定しながら行単位に画素の情報を転送す
る(読み出す)ことができる駆動信号、要するに、12
80列×960行のアレイ構造の左上から右下の方向
(この方向はテレビジョンの走査方向に類似する)に画
素情報をシリアルに読み出すための水平・垂直それぞれ
の駆動信号を生成するものである。 (d)サンプルホールド回路19:CCD16から読み
出された時系列の信号(この段階ではアナログ信号であ
る)を、CCD16の解像度に適合した周波数でサンプ
リング(例えば、相関二重サンプリング)するものであ
る。なお、サンプリング後に自動利得調整(AGC)を
行うこともある。 (e)アナログディジタル変換器20:サンプリングさ
れた信号をディジタル信号に変換するものである。
(C) Horizontal / vertical driver 17 and timing generator 18: This is a portion for generating a drive signal necessary for reading the CCD 16, and the CCD 16 of the present embodiment is
Since it is assumed that the entire surface is read out, a drive signal capable of transferring (reading out) pixel information in units of rows while designating each column of the CCD 16 one after another.
It generates horizontal and vertical drive signals for serially reading out pixel information in the direction from the upper left to the lower right of the array structure of 80 columns × 960 rows (this direction is similar to the television scanning direction). . (D) Sample and hold circuit 19: Sampling (for example, correlated double sampling) a time-series signal (which is an analog signal at this stage) read from the CCD 16 at a frequency suitable for the resolution of the CCD 16. . Note that automatic gain adjustment (AGC) may be performed after sampling. (E) Analog-to-digital converter 20: Converts a sampled signal into a digital signal.

【0029】アナログディジタル変換器20の出力から
輝度・色差マルチプレクス信号(以下、YUV信号と言
う)を生成する部分である。YUV信号を生成する理由
は、次のとおりである。アナログディジタル変換器20
の出力は、アナログかディジタルかの違い及びサンプリ
ングやディジタル変換の誤差を除き、実質的にCCD1
6の出力と一対一に対応し、光の三原色データ(RGB
データ)そのものであるが、このデータはサイズが大き
く、限られたメモリ資源の利用や処理時間の点で不都合
をきたす。そこで、何らかの手法で多少なりともデータ
量の削減を図る必要がある。YUV信号は、一般にRG
Bデータの各要素データ(Rデータ、Gデータ、Bデー
タ)は輝度信号Yに対して、G−Y、R−Y、B−Yの
三つの色差信号で表現できるうえ、これら三つの色差信
号の冗長を取り除けば、G−Yを転送しなくてもよく、
G−Y=α(R−Y)−β(B−Y)で再現できる、と
いう原理に基づく一種のデータ量削減信号と言うことが
できる。ここで、αやβは合成係数である。
This section generates a luminance / color difference multiplex signal (hereinafter, referred to as a YUV signal) from the output of the analog-to-digital converter 20. The reason for generating the YUV signal is as follows. Analog-to-digital converter 20
Output is substantially equal to CCD1 except for the difference between analog and digital, and errors in sampling and digital conversion.
6 corresponding to the three primary colors of light (RGB
Data) itself, but this data is large in size, causing inconvenience in terms of limited memory resource utilization and processing time. Therefore, it is necessary to reduce the amount of data to some extent by some method. YUV signal is generally RG
Each element data of the B data (R data, G data, B data) can be represented by three color difference signals GY, RY, BY for the luminance signal Y, and these three color difference signals If the redundancy of is removed, GY need not be transferred,
This can be said to be a kind of data amount reduction signal based on the principle that it can be reproduced by GY = α (RY) −β (BY). Here, α and β are synthesis coefficients.

【0030】なお、YUV信号をYCbCr信号(Cb
とCrはそれぞれB−YとR−Y)と言うこともある
が、本明細書ではYUV信号に統一することにする。ま
た、YUV信号の信号フォーマットは、輝度信号と二つ
の色差信号のそれぞれを独立して含む“コンポーネン
ト”と呼ばれる固定長の三つのブロックで構成されてお
り、各コンポーネントの長さ(ビット数)の比をコンポ
ーネント比と言う。変換直後のYUV信号のコンポーネ
ント比は1:1:1であるが、色差信号の二つのコンポ
ーネントを短くする、すなわち、1:x:x(但し、x
<1)とすることによってもデータ量を削減できる。こ
れは、人間の視覚特性は輝度信号よりも色差信号に対し
て鈍感であると言うことを利用したものである。
The YUV signal is converted to a YCbCr signal (Cb
And Cr may be referred to as BY and RY, respectively, but in this specification, they are unified to YUV signals. The signal format of the YUV signal is composed of three fixed-length blocks called “components” each independently including a luminance signal and two color difference signals, and has a length (number of bits) of each component. The ratio is called the component ratio. Although the component ratio of the YUV signal immediately after the conversion is 1: 1: 1, the two components of the color difference signal are shortened, that is, 1: x: x (where x
<1) can also reduce the data amount. This utilizes the fact that human visual characteristics are less sensitive to color difference signals than luminance signals.

【0031】(f)ビデオトランスファー回路22:ビ
デオトランスファー回路22は、カラープロセス回路2
1、バッファメモリ23、ディジタルビデオエンコーダ
28及び圧縮・伸張回路24の間を行き来するデータの
流れをコントロールするものである。
(F) Video transfer circuit 22: The video transfer circuit 22 is a color process circuit 2
1. It controls the flow of data flowing between the buffer memory 23, the digital video encoder 28 and the compression / expansion circuit 24.

【0032】なお、“流れ”とは、カラープロセス回路
21、バッファメモリ23、ディジタルビデオエンコー
ダ28及び圧縮・伸長回路24の間を行き来するデータ
の動きを概念的に捉えた便宜上の表現であり、その言葉
自体に格別の意味はないものの、一般にディジタルシス
テムにとっては、データの素早い動きはその性能を直接
に左右し、とりわけ大量の画素情報を取り扱う電子スチ
ルカメラにとっては、(データの素早い動きは)当然配
慮されなければならない設計条件の一つであるから、上
記流れのすべて又は一部は高速データ転送の手法を駆使
したデータの流れを意味するものである。すなわち、す
べての流れは、例えば、DMA(directmemory acces
s)転送による流れであり、ビデオトランスファー回路
22は、それに必要な制御部(DMAコントローラ)や
その他の周辺部分(例えば、転送速度調節のためのFI
FOメモリ及びインターフェース回路など)を含み、こ
れら各部の働きによって、カラープロセス回路21、バ
ッファメモリ23、ディジタルビデオエンコーダ28及
び圧縮・伸長回路24の間の“素早いデータ転送”(例
えば、DMA転送)を可能にするものである。
The "flow" is a convenient expression conceptually capturing the movement of data flowing between the color process circuit 21, the buffer memory 23, the digital video encoder 28, and the compression / decompression circuit 24. Although the words themselves have no special meaning, generally for digital systems, the fast movement of data directly affects its performance, especially for electronic still cameras that deal with a large amount of pixel information (quick movement of data). Since it is one of the design conditions that must be taken into consideration, all or a part of the above-mentioned flow means a data flow utilizing a high-speed data transfer method. That is, all flows are, for example, DMA (direct memory acces
s) The flow by transfer, and the video transfer circuit 22 includes a control unit (DMA controller) and other peripheral parts (for example, FI for adjusting the transfer speed) necessary for the transfer.
FO memory and interface circuit, etc.), and the operation of each of these units enables "quick data transfer" (for example, DMA transfer) between the color process circuit 21, the buffer memory 23, the digital video encoder 28, and the compression / decompression circuit 24. Is what makes it possible.

【0033】(g)バッファメモリ23:書き換え可能
な半導体メモリの一種であるDRAMで構成されてい
る。一般にDRAMは記憶内容を保持するために、デー
タの再書込み(リフレッシュ)をダイナミックに行う点
でスタティックRAM(SRAM)と相違するが、SR
AMと比べて書込みや読み出し速度が劣るものの、ビッ
ト単価が安く、大容量の一時記憶を安価に構成できるこ
とから、特に電子スチルカメラに好適である。但し、本
発明では、DRAMに限定しない。書き換え可能な半導
体メモリであればよい。
(G) Buffer memory 23: It is composed of a DRAM which is a kind of rewritable semiconductor memory. Generally, a DRAM is different from a static RAM (SRAM) in that data is dynamically rewritten (refreshed) in order to retain storage contents, but a DRAM is different from a static RAM (SRAM).
Although the writing and reading speeds are inferior to those of AM, it is particularly suitable for an electronic still camera because the unit cost per bit is low and a large-capacity temporary storage can be configured at low cost. However, the present invention is not limited to a DRAM. Any rewritable semiconductor memory may be used.

【0034】ここで、バッファメモリ23の記憶容量
は、以下の条件を全て満たさなければならない。第1の
条件は作業に必要な充分なワークエリア(作業空間)を
確保できる容量であるという点である。作業空間の大き
さはCPU26のアーキテクチャやOS(オペレーティ
ングシステム)及びそのOSの管理下で実行される各種
のアプリケーションプログラムによって決まるので、こ
れらの仕様を検討して過不足のない適切な大きさにすれ
ばよい。第2の条件は少なくともカラープロセス回路2
1で生成された高精細な画像の情報(640×480画
素の画像情報で且つ1:1:1のコンポーネント比をも
つYUV信号)を格納できる大きさのバッファ領域を確
保できる容量であるという点であり、さらに、第3の条
件は動画用の画像(640×480画素)を格納できる
大きさのバッファ領域を確保できる容量であるという点
である。
Here, the storage capacity of the buffer memory 23 must satisfy all of the following conditions. The first condition is that the capacity is such that a sufficient work area (work space) necessary for the work can be secured. The size of the work space is determined by the architecture of the CPU 26, the OS (Operating System), and various application programs executed under the control of the OS. I just need. The second condition is that at least the color process circuit 2
1 is a capacity that can secure a buffer area large enough to store the information of the high-definition image generated in Step 1 (image information of 640 × 480 pixels and a YUV signal having a component ratio of 1: 1: 1). The third condition is that the capacity is such that a buffer area large enough to store a moving image (640 × 480 pixels) can be secured.

【0035】(h)圧縮・伸長回路24:通常撮影の画
像についてはJPEG圧縮と伸長を行い、ムービー撮影
の画像(ムービー画像)についてはMPEG圧縮と伸長
を行う部分である。MPEGは冒頭で説明したとおり動
画像の符号化標準であり、JPEG(joint photograph
icexperts group)はカラー静止画(2値画像や動画像
を含まないフルカラーやグレイスケールの静止画)の国
際符号化標準である。なお、圧縮・伸長回路24は処理
速度の点で専用のハードウェアにすべきであるが、CP
U26でソフト的に行うことも可能である。
(H) Compression / expansion circuit 24: A section for performing JPEG compression and expansion for a normally shot image, and MPEG compression and expansion for a movie shot image (movie image). MPEG is a moving picture coding standard as described at the beginning, and JPEG (joint photographer)
The icexperts group is an international coding standard for color still images (full-color or grayscale still images that do not include binary images or moving images). The compression / expansion circuit 24 should be dedicated hardware in terms of processing speed.
It is also possible to perform this in U26 by software.

【0036】MPEGのNパラメータのディフォルト値
(既定値)は、適当なランダムアクセス単位を考慮した
適当な値(後述)に設定されている。また、Mパラメー
タは比較的穏やかな画像に合わせた適当な値(後述)に
設定されている。これらのディフォルト値は、後述の
「動き検出信号MV」がインアクティブ(便宜的にL論
理)のときに適用される。
The default value (predetermined value) of the N parameter of MPEG is set to an appropriate value (described later) in consideration of an appropriate random access unit. Further, the M parameter is set to an appropriate value (described later) corresponding to a relatively gentle image. These default values are applied when a “motion detection signal MV” described later is inactive (L logic for convenience).

【0037】すなわち、ムービー画像を圧縮する際に
「MV=L」であれば、N枚のピクチャフレームでGO
Pを構成するとともに、Iピクチャ(又はPピクチャ)
とPピクチャの間にM−1枚のBピクチャを挿入する
が、「動き検出信号MV」がアクティブ(便宜的にH論
理)のときで、且つ、そのアクティブ期間の長さが2フ
レーム分にわたる場合(図6のケース3及びケース4参
照;詳細は後述)は、上記ディフォルト値を無視してG
OPを強制的に閉じるようになっている。
That is, if “MV = L” when compressing a movie image, GO
Construct P and I picture (or P picture)
M-1 B pictures are inserted between the P picture and the P picture. When the “motion detection signal MV” is active (H logic for convenience) and the length of the active period extends for two frames. In the case (see case 3 and case 4 in FIG. 6; details will be described later), the default value is ignored and G
The OP is forcibly closed.

【0038】(i)フラッシュメモリ25:書き換え可
能な読み出し専用メモリ(PROM:programmable rea
d only memory)のうち、電気的に全ビット(又はブロ
ック単位)の内容を消して内容を書き直せるものを指
す。フラッシュEEPROM(flash electrically era
sablePROM)とも言う。本実施の形態におけるフラ
ッシュメモリ25は、カメラ本体から取り外せない固定
型であってもよいし、カード型やパッケージ型のように
取り外し可能なものであってもよい。 (j)CPU26:所定のプログラムを実行してカメラ
の動作を集中制御するものである。プログラムは、CP
U26の内部のインストラクションROMに書き込まれ
ており、記録モードでは、そのモード用のプログラム
が、また、再生モードでは、そのモード用のプログラム
がインストラクションROMからCPU26の内部RA
Mにロードされて実行される。
(I) Flash memory 25: rewritable read-only memory (PROM: programmable area)
d only memory) that can be electrically rewritten by erasing the contents of all bits (or blocks). Flash EEPROM (flash electrically era
sablePROM). The flash memory 25 in the present embodiment may be a fixed type that cannot be removed from the camera body, or may be a removable type such as a card type or a package type. (J) CPU 26: centrally controls the operation of the camera by executing a predetermined program. The program is CP
The program for the mode is written in the instruction ROM inside the U26. In the recording mode, the program for the mode is read from the instruction ROM in the reproduction mode.
M is loaded and executed.

【0039】(k)キー入力部27:カメラ本体に設け
られた各種キースイッチの操作信号を生成する部分であ
る。 (l)ディジタルビデオエンコーダ28:ビデオトラン
スファー回路22を介してバッファメモリ23のバッフ
ァ領域から読み出されたディジタル値の表示用画像をア
ナログ電圧に変換するとともに、液晶ディスプレイ4の
走査方式に応じたタイミングで順次に出力するものであ
る。 (m)バス29:以上各部の間で共有されるデータ(及
びアドレス)転送路である。図では省略しているが、各
部の間には所要の制御線(コントロールライン)も設け
られている。
(K) Key input section 27: a section for generating operation signals for various key switches provided on the camera body. (L) Digital video encoder 28: converts the digital value display image read from the buffer area of the buffer memory 23 via the video transfer circuit 22 into an analog voltage, and at the same time the timing according to the scanning method of the liquid crystal display 4. Are sequentially output. (M) Bus 29: A data (and address) transfer path shared among the above components. Although not shown in the figure, necessary control lines (control lines) are also provided between the units.

【0040】(n)動き検出回路30:A/D20の出
力、すなわち、ディジタルデータに変換された撮像系の
出力信号でYUV信号に変換する前の生のフレーム画像
信号に基づいて被写体の動きを検出し、動きが大きい
(又は激しい)場合にアクティブ(H論理)となる動き
検出信号MVを出力する回路である。
(N) Motion detection circuit 30: The output of the A / D 20, that is, the motion of the subject based on the raw frame image signal before being converted into the YUV signal with the output signal of the imaging system converted into digital data. This is a circuit that detects and outputs a motion detection signal MV that becomes active (H logic) when the motion is large (or severe).

【0041】図3は、動き検出回路30のブロック図で
あり、31はローパスフィルタ(LPF)、32はハイ
パスフィルタ(HPF)、33はゲート回路、34はピ
ークホールド回路、35は高輝度判定回路、36は積算
回路、37は動き判定部である。LPF31とHPF3
2でフレーム画像信号の高域周波数成分を取り出すとと
もに、ゲート回路33で画面内の特定範囲以外をマスク
し、ピークホールド回路34でその特定範囲における高
域周波数成分のピーク値PKを保持する。同時に、高輝
度判定回路35で画面内の高輝度部分を判定し、その高
輝度部分のマスクをゲート回路33に指示するととも
に、積算回路36で高輝度部分の輝度積算値BTを演算
する。
FIG. 3 is a block diagram of the motion detecting circuit 30, in which 31 is a low-pass filter (LPF), 32 is a high-pass filter (HPF), 33 is a gate circuit, 34 is a peak hold circuit, and 35 is a high-luminance determining circuit. , 36 are integrating circuits, and 37 is a motion determining unit. LPF31 and HPF3
In step 2, the high frequency component of the frame image signal is extracted, the gate circuit 33 masks a portion other than the specific range in the screen, and the peak hold circuit 34 holds the peak value PK of the high frequency component in the specific range. At the same time, the high-brightness determination circuit 35 determines a high-brightness portion in the screen, instructs the gate circuit 33 to mask the high-brightness portion, and calculates an integrated brightness value BT of the high-brightness portion by the integration circuit 36.

【0042】図4は、動き判定部37の構成図であり、
38はPKを1フレームの間保持するレジスタ、39は
現在のPKと前フレームのPKとの差分ΔPKを演算す
る差演算器、40はΔPKと基準値RPKとを比較して
「ΔPK≧RPK」のときにH論理を出力する比較器であ
る。また、41はBTを1フレームの間保持するレジス
タ、42は現在のBTと前フレームのBTとの差分ΔB
Tを演算する差演算器、43はΔBTと基準値RBTとを
比較して「ΔBT≧RBT」のときにH論理を出力する比
較器である。さらに、44は二つの比較器40、43の
少なくとも一方からH論理が出力されたときにH論理を
出力するオアゲート、45はオアゲート44の出力を1
フレームの間保持するレジスタであり、レジスタ45の
保持値が動き検出信号MVとして出力される。なお、F
はCCD16のフレーム周期に同期したフレーム信号で
あり、三つのレジスタ38、41及び45は、このフレ
ーム信号Fに応答して保持値を更新する。
FIG. 4 is a block diagram of the motion judging section 37.
38 is a register for holding the PK for one frame, 39 is a difference calculator for calculating a difference ΔPK between the current PK and the PK of the previous frame, and 40 is comparing ΔPK with a reference value RPK to obtain “ΔPK ≧ RPK”. Is a comparator that outputs H logic at the time of. 41 is a register for holding the BT for one frame, and 42 is a difference ΔB between the current BT and the BT of the previous frame.
A difference calculator 43 for calculating T is a comparator for comparing .DELTA.BT with the reference value RBT and outputting an H logic when ".DELTA.BT.gtoreq.RBT". Further, an OR gate 44 outputs an H logic when at least one of the two comparators 40 and 43 outputs an H logic.
This is a register held during the frame, and the value held in the register 45 is output as the motion detection signal MV. Note that F
Is a frame signal synchronized with the frame period of the CCD 16, and the three registers 38, 41 and 45 update the held values in response to the frame signal F.

【0043】図5は、動き判定部37の真理値であり、
「ΔPK≧RPK」又は「ΔBT≧RBT」のときにMV=
H、すなわち、動き検出信号MVが“アクティブ”にな
っている。
FIG. 5 shows the truth values of the motion judging section 37.
When “ΔPK ≧ RPK” or “ΔBT ≧ RBT”, MV =
H, that is, the motion detection signal MV is “active”.

【0044】ここで、ΔPKは画面内の特定範囲におけ
る高域周波数成分のピーク値PKのフレーム間差分であ
り、当該ピーク値PKは被写体像のエッジ成分(発明の
要旨に記載の特徴部分に相当)をよく表し、そのフレー
ム間差分に相当するΔPKが大きい場合(ΔPK≧RP
K)は、被写体の動きが大きく、二つのフレームの相関
関係が希薄であることが分かる。
Here, ΔPK is the difference between frames of the peak value PK of the high frequency component in a specific range in the screen, and the peak value PK is the edge component of the subject image (corresponding to the characteristic portion described in the gist of the invention). ), And when ΔPK corresponding to the difference between the frames is large (ΔPK ≧ RP
K) shows that the motion of the subject is large and the correlation between the two frames is sparse.

【0045】また、ΔBTは画面内の輝度成分(特に高
輝度成分)積算値BTのフレーム間差分であり、当該積
算値BTは被写体像を含む画面全体の明るさ(発明の要
旨に記載の特徴部分に相当)をよく表し、そのフレーム
間差分に相当するΔBTが大きい場合(ΔBT≧RBT)
も、被写体の動きが大きく、二つのフレームの相関関係
が希薄であることが分かる。したがって、何れの場合
も、被写体の著しい動きを検出しているから、該当する
フレームの間、動き検出信号MVをアクティブ状態に保
持する。
.DELTA.BT is the difference between frames of the integrated value BT of the luminance component (especially the high luminance component) in the screen, and the integrated value BT is the brightness of the entire screen including the subject image (the feature described in the summary of the invention). When the value of ΔBT corresponding to the difference between frames is large (ΔBT ≧ RBT)
Also, it can be seen that the movement of the subject is large and the correlation between the two frames is sparse. Therefore, in any case, since a remarkable motion of the subject is detected, the motion detection signal MV is held in the active state during the corresponding frame.

【0046】次に、作用を説明する。 <通常撮影の記録モード>このモードでは、写真レンズ
15の後方に配置されたCCD16がドライバ17から
の信号で駆動され、写真レンズ15で集められた映像が
一定周期毎に光電変換されて1画像分の映像信号が出力
される。そして、この映像信号がサンプリングホールド
回路19でサンプリングされ、アナログディジタル変換
器20でディジタル信号に変換された後、カラープロセ
ス回路21でYUV信号が生成される。このYUV信号
は、ビデオトランスファー回路22を介してバッファメ
モリ23のバッファ領域に転送され、同バッファ領域へ
の転送完了後に、ビデオトランスファー回路22及びデ
ィジタルビデオエンコーダ28を介して液晶ディスプレ
イ4に送られ、スルー画像として表示される。
Next, the operation will be described. <Recording Mode of Normal Photographing> In this mode, the CCD 16 disposed behind the photographic lens 15 is driven by a signal from the driver 17, and the image collected by the photographic lens 15 is photoelectrically converted at regular intervals to generate one image. Minute video signals are output. Then, the video signal is sampled by the sampling and holding circuit 19 and converted into a digital signal by the analog-to-digital converter 20, and then a YUV signal is generated by the color process circuit 21. This YUV signal is transferred to the buffer area of the buffer memory 23 via the video transfer circuit 22, and after the transfer to the buffer area is completed, is sent to the liquid crystal display 4 via the video transfer circuit 22 and the digital video encoder 28. It is displayed as a through image.

【0047】この状態でカメラの向きを変えると、液晶
ディスプレイ4に表示中のスルー画像の構図が変化し、
所望の構図が得られた時点でシャッターキー5を“半押
し”して露出とフォーカスをセットした後、“全押し”
すると、バッファメモリ23のバッファ領域に保存され
ているYUV信号がその時点のYUV信号で固定され、
かつ液晶ディスプレイ4に表示されているスルー画像も
同時点の画像で固定される。
When the direction of the camera is changed in this state, the composition of the through image displayed on the liquid crystal display 4 changes.
When the desired composition is obtained, set the exposure and focus by “half-pressing” the shutter key 5 and then “press fully”.
Then, the YUV signal stored in the buffer area of the buffer memory 23 is fixed at the current YUV signal,
Further, the through image displayed on the liquid crystal display 4 is also fixed at the image at the same time.

【0048】そして、その時点でバッファメモリ23の
バッファ領域に保存されているYUV信号は、ビデオト
ランスファー回路22を介して圧縮・伸長回路24に送
られ、Y、Cb、Crの各コンポーネント毎に8×8画
素の基本ブロックと呼ばれる単位でJPEG符号化され
た後、フラッシュメモリ25に書き込まれ、1画像分の
キャプチャー画像として記録される。
Then, the YUV signal stored in the buffer area of the buffer memory 23 at that time is sent to the compression / decompression circuit 24 via the video transfer circuit 22, and the YUV signal is transmitted to each of the Y, Cb and Cr components. After being JPEG-encoded in units called a basic block of × 8 pixels, it is written into the flash memory 25 and recorded as a captured image for one image.

【0049】<通常撮影の再生モード>このモードで
は、CCD16からバッファメモリ23までの経路が停
止されるとともに、最新のキャプチャー画像がフラッシ
ュメモリ25から読み出され、圧縮・伸長回路24で伸
張処理された後、ビデオトランスファー回路22を介し
てバッファメモリ23のバッファ領域に送られる。そし
て、このバッファ領域のデータがビデオトランスファー
回路22とディジタルビデオエンコーダ28を介して液
晶ディスプレイ4に送られ、再生画像として表示され
る。
<Normal Shooting Reproduction Mode> In this mode, the path from the CCD 16 to the buffer memory 23 is stopped, and the latest captured image is read from the flash memory 25 and decompressed by the compression / decompression circuit 24. After that, it is sent to the buffer area of the buffer memory 23 via the video transfer circuit 22. Then, the data in the buffer area is sent to the liquid crystal display 4 via the video transfer circuit 22 and the digital video encoder 28, and is displayed as a reproduced image.

【0050】<ムービー撮影の記録モード>基本的な動
作は通常撮影時と同じであるが、シャッターキー5を全
押しした後、あらかじめ設定されたムービー撮影時間の
間、カラープロセス回路21からのYUV信号を圧縮・
伸長回路24でMPEG圧縮してフラッシュメモリ25
に記録する点で相違する。例えば、ムービー撮影時間が
9秒に設定されている場合、シャッターキー5を全押し
してから9秒間のスルー画像を連続的にMPEG圧縮し
てフラッシュメモリ25に記録する。
<Recording Mode of Movie Shooting> The basic operation is the same as that of the normal shooting, except that the YUV from the color process circuit 21 is pressed for a preset movie shooting time after the shutter key 5 is fully pressed. Compress signal
MPEG compression by a decompression circuit 24 and flash memory 25
In that it is recorded in For example, when the movie shooting time is set to 9 seconds, the through image for 9 seconds is continuously MPEG-compressed and recorded in the flash memory 25 after the shutter key 5 is fully pressed.

【0051】<ムービー撮影の再生モード>この再生モ
ードでは二つのモードを選択することができる。その一
つはフラッシュメモリ25に記録されている動画像を再
生して液晶ディスプレイ4に表示するモードであり、い
わゆる動画再生のモードであるが、他の一つは動画像を
構成する各画面の中からm個の画面を選択して液晶ディ
スプレイ4にマルチ画面表示するモードである。画面の
選択数mは任意であるが、便宜的にm=9とした場合、
液晶ディスプレイ4に9枚の静止画を表示でき、例え
ば、ゴルフスィングを撮影した9秒間の動画像の中から
1秒毎の9枚の静止画を表示してフォームの矯正等を行
うことができる。
<Playback Mode for Movie Shooting> In this playback mode, two modes can be selected. One of the modes is a mode of reproducing a moving image recorded in the flash memory 25 and displaying the moving image on the liquid crystal display 4, which is a so-called moving image reproduction mode. The other is a mode of reproducing a moving image. In this mode, m screens are selected from among them and the multi-screen is displayed on the liquid crystal display 4. The number m of screen selections is arbitrary, but if m = 9 for convenience,
Nine still images can be displayed on the liquid crystal display 4. For example, nine still images every second can be displayed from a nine-second moving image of a golf swing taken to correct the form. .

【0052】<ムービー撮影の記録モードにおけるMP
EG圧縮の一例>図6は、ムービー撮影の記録モードに
おけるGOP構造を示す図である。この図において、F
nは入力画像信号(正確にはビデオトランスファー回路
22を介してカラープロセス回路21からバッファメモ
リ23に取り込まれたYUV信号)、tnはFnのフレ
ーム番号に対応した時間の指標である。なお、nはCC
D16の駆動周期に対応したフレームの順番である。
<MP in Movie Recording Mode
Example of EG Compression> FIG. 6 is a diagram showing a GOP structure in a recording mode of movie shooting. In this figure, F
n is an input image signal (more precisely, a YUV signal taken into the buffer memory 23 from the color process circuit 21 via the video transfer circuit 22), and tn is an index of time corresponding to the frame number of Fn. Note that n is CC
This is the order of frames corresponding to the drive cycle of D16.

【0053】図には、a、b及びcの三つのパターンの
GOP構造が示されており、これらのパターンは動き検
出信号MVの論理状態(ケース0〜ケース4)に基づい
て択一的に選択される。すなわち、MVが常にL論理と
なるケース0又はMVが1フレームだけH論理(アクテ
ィブ状態)となるケース1、2では、パターンaのGO
P構造が選択され、MVが2フレーム連続してH論理
(アクティブ状態)となるケース3又はケース4では、
パターンb又はパターンcのGOP構造が選択されるよ
うになっている。
The figure shows the GOP structure of three patterns of a, b and c, and these patterns are alternatively selected based on the logical state (case 0 to case 4) of the motion detection signal MV. Selected. That is, in case 0 where the MV is always at the L logic or in cases 1 and 2 where the MV is at the H logic (active state) for one frame, the GO of pattern a
In case 3 or case 4 in which the P structure is selected and the MV goes to the H logic (active state) for two consecutive frames,
The GOP structure of the pattern b or the pattern c is selected.

【0054】パターンaのGOP構造は、GOPのNパ
ラメータとMパラメータにディフォルト値を適用する。
ここに、ディフォルト値は特に限定しないが、N=9、
M=3である。パターンaの一つのGOPは、例えば、
F0、F−2、F−1、F3、F1、F2、F6、F4
及びF5の9フレーム(Nフレーム)で構成されてお
り、その符号化方式(符号化のピクチャタイプ)はM=
3に対応してGOPの先頭から順にI、B、B、P、
B、B、P、B、Bの配列になっている。なお、前方参
照フレームはPピクチャ符号化における参照フレームと
Bピクチャ符号化における前方向の参照フレームを表
し、後方参照フレームはBピクチャ符号化における後方
向の参照フレームを表している。
The GOP structure of pattern a applies default values to the N and M parameters of the GOP.
Here, the default value is not particularly limited, but N = 9,
M = 3. One GOP of the pattern a is, for example,
F0, F-2, F-1, F3, F1, F2, F6, F4
, F5, and 9 frames (N frames), and the encoding method (encoding picture type) is M =
3, I, B, B, P,
B, B, P, B, and B are arranged. Note that a forward reference frame represents a reference frame in P picture coding and a forward reference frame in B picture coding, and a backward reference frame represents a backward reference frame in B picture coding.

【0055】ここに、ケース0のMVは、常にL論理
(インアクティブ状態)であり、動き検出回路30にお
いて被写体の著しい動きを検出していない(言い換えれ
ば、動き検出回路30において被写体の穏やかな動きを
検出している)ことを示しているから、ケース0に、デ
ィフォルトのNパラメータとMパラメータを適用する。
これは、被写体の動きが穏やかな場合の予測誤差信号
(動き補償予測の誤差信号)が小さく、圧縮効率を向上
できるからである。
Here, the MV in case 0 is always L logic (inactive state), and the motion detection circuit 30 does not detect a remarkable motion of the subject (in other words, the motion detection circuit 30 Motion is detected), the default N and M parameters are applied to case 0.
This is because the prediction error signal (motion compensation prediction error signal) when the motion of the subject is gentle is small, and the compression efficiency can be improved.

【0056】一方、ケース1とケース2のMVに着目す
ると、これらは1フレームの間、H論理(アクティブ状
態)となっており、動き検出回路30において被写体の
著しい動きを検出していることを示しているが、当該フ
レームをFiとすると、その検出対象フレームはFi−
2とFi−1の2フレーム(ケース1ではFi=F2で
あるからF0とF1、ケース2ではFi=F3であるか
らF1とF2)だけであり、この2フレームの相関関係
が希薄(ケース1ではF0≠F1、ケース1ではF1≠
F2)となっているものの、Bピクチャの符号化に必要
な他の参照画像(ケース1ではF3、ケース2ではF0
及びF3)とFiの相関関係(ケース0ではF1=F
3、ケース1ではF0=F1及びF2=F3)は認めら
れるので、被写体の動きが穏やかな場合とみなして支障
なく、ケース1とケース2についてもケース0と同様に
ディフォルトのN及びMパラメータを適用する。
On the other hand, focusing on the MVs of Case 1 and Case 2, it is shown that these are in H logic (active state) for one frame, and that the motion detection circuit 30 detects a remarkable motion of the subject. Assuming that the frame is Fi, the frame to be detected is Fi-
2 and Fi-1 (only F0 and F1 in case 1 because Fi = F2, and F1 and F2 in case 2 because Fi = F3), and the correlation between these two frames is sparse (case 1). Then F0 ≠ F1, and in case 1, F1 ≠
F2), other reference images (F3 in case 1 and F0 in case 2) necessary for encoding the B picture
And F3) and Fi (in case 0, F1 = F
3. In case 1, F0 = F1 and F2 = F3) are recognized, so there is no problem assuming that the motion of the subject is gentle, and the default N and M parameters for case 1 and case 2 are set similarly to case 0. Apply.

【0057】他方、ケース3とケース4のMVは、2フ
レームの間、H論理(アクティブ状態)が続いており、
何れのケースもBピクチャの符号化に必要な二つの参照
画像との間の相関関係が明らかに希薄である。すなわ
ち、ケース3ではF0≠F1≠F2であり、ケース4で
はF1≠F2≠F3であるから、何れのケースも被写体
の動きが激しく、予測誤差信号(動き補償予測の誤差信
号)が大きいため、Bピクチャの挿入は却って圧縮効率
を阻害することになるので、かかるケース3と4にあっ
ては、該当フレーム(ケース3ではF−1、ケース4で
はF1)の符号化を完了した時点でN及びMのディフォ
ルト値を無視して強制的にGOPをクローズし、新たな
GOPの生成を開始する。
On the other hand, the MVs of Case 3 and Case 4 keep the H logic (active state) for two frames.
In each case, the correlation between the two reference pictures required for encoding the B picture is clearly sparse. That is, since F0 ≠ F1 ≠ F2 in case 3 and F1 ≠ F2 ≠ F3 in case 4, the motion of the subject is sharp in any case and the prediction error signal (error signal of motion compensation prediction) is large. Since the insertion of a B-picture rather impairs the compression efficiency, in such cases 3 and 4, when the coding of the corresponding frame (F-1 in case 3 and F1 in case 4) is completed, N And forcibly close the GOP ignoring the default values of M and M, and start generating a new GOP.

【0058】これによれば、新たなGOPの先頭が必ず
Iピクチャとなり、Iピクチャの画質は、例えば、静止
画符号化標準のJPEG相当になるので、被写体の動き
が激しい場合の画質劣化を防止でき、ムービー撮影の記
録画像の品質向上を図ることができる。
According to this, the head of a new GOP always becomes an I picture, and the picture quality of the I picture is equivalent to, for example, JPEG of the still picture coding standard. It is possible to improve the quality of recorded images of movie shooting.

【0059】なお、新たなGOPの生成の際に、Mパラ
メータを“1”にしてもよい。すなわち、Bピクチャを
含まないIピクチャとPピクチャだけのGOP構造にし
てもよく、被写体の動きが穏やかになってから、Mパラ
メータをディフォルト値に戻してもよい。
When a new GOP is generated, the M parameter may be set to “1”. That is, a GOP structure including only an I picture and a P picture that does not include a B picture may be used, or the M parameter may be returned to a default value after the motion of the subject becomes gentle.

【0060】以上のとおり、本実施の形態によれば、動
き検出回路30で被写体の著しい動きを検出すると、N
パラメータやMパラメータのディフォルト値を無視して
GOPを強制的に閉じるようにしたから、画質のよいI
ピクチャの実質数を増やして、ムービー撮影の記録画像
の品質向上を図ることができるという格別の効果が得ら
れる。
As described above, according to the present embodiment, when the motion detection circuit 30 detects a remarkable motion of the subject, N
The GOP is forcibly closed by ignoring the default values of the parameters and the M parameter, so that the IOP with good image quality is
A special effect is obtained in that the number of pictures can be increased to improve the quality of a recorded image of a movie.

【0061】また、動き検出回路30を構成するLPF
31、HPF32、ゲート回路33、ピークホールド回
路34、高輝度判定回路35及び積算回路36などは、
電子スチルカメラのAF部に搭載されていることが多
く、回路の共有化が可能であるため、大幅な改修等を必
要とせずに低コストで上記効果を得ることができるとい
うメリットもある。
The LPF constituting the motion detection circuit 30
31, an HPF 32, a gate circuit 33, a peak hold circuit 34, a high luminance determination circuit 35, an integration circuit 36, etc.
Since it is often mounted in the AF section of an electronic still camera and can share a circuit, there is also an advantage that the above-described effect can be obtained at low cost without requiring a major modification or the like.

【0062】さらに、動き検出回路30の出力信号(動
き検出信号MV)を利用することにより、MPEGの動
き補償の演算量削減も可能である。すなわち、MPEG
では、被写体の画像の一部を切り出して動き量だけずら
し、それを次のフレームの画像として予測(動き補償フ
レーム間予測)しているが、動き検出信号MVによっ
て、Bピクチャ符号化の対象フレームが前後いずれかの
みに相関関係を有しているかを検出可能であるため、M
PEGの動き補償処理において、相関関係を持つ参照フ
レームに対してのみ動き補償フレーム間予測を適用する
ことにより、動きベクトルの演算など大量の演算処理を
簡素化でき、省電力化を図ることができるというメリッ
トが得られる。
Further, by using the output signal (motion detection signal MV) of the motion detection circuit 30, the amount of calculation for MPEG motion compensation can be reduced. That is, MPEG
In this example, a part of an image of a subject is cut out, shifted by the amount of motion, and predicted as a next frame image (motion-compensated inter-frame prediction). Since it is possible to detect whether or not has a correlation only before or after,
In the motion compensation processing of PEG, by applying motion compensation inter-frame prediction only to reference frames having a correlation, a large amount of computation processing such as computation of a motion vector can be simplified, and power saving can be achieved. The advantage is obtained.

【0063】[0063]

【発明の効果】請求項1記載の発明によれば、所定周期
のフレーム画像信号を入力する入力手段と、前記フレー
ム画像信号をMPEG標準の符号化方式で符号化する符
号化手段と、符号化後のフレーム画像信号を記憶媒体に
記録する記録手段と、前記フレーム画像信号の特徴部分
を抽出する抽出手段と、前記特徴部分を隣接フレーム間
で相関して被写体の動きを検出する検出手段と、前記検
出手段の検出結果に基づいて前記符号化手段における各
フレームの符号化方式を変更する変更手段と、を備えた
ので、簡素な動き検出回路を用いて被写体の動きを検出
し、この被写体の動きの程度に応じて、各フレームの符
号化方式を適正化でき、動きが穏やかな場合の情報量削
減と動きが激しい場合の画質向上とを共に達成できる。
請求項2記載の発明によれば、請求項1記載の動画像記
録装置において、前記変更手段は、前記検出手段で被写
体の著しい動きが検出されたときに前記符号化手段にお
けるフレームの符号化方式をIピクチャに変更するの
で、画質の良好なIピクチャの実質数を増大して記録画
像の品質向上を図ることができる。請求項3記載の発明
によれば、請求項1記載の動画像記録装置において、前
記変更手段は、前記検出手段で被写体の著しい動きが検
出されたときに前記符号化手段におけるフレームの符号
化方式を操作して現GOPのクローズと新たなGOPの
生成を開始させるので、GOPの先頭は必ずIピクチャ
になるから、画質の良好なIピクチャの実質数を増大し
て記録画像の品質向上を図ることができる。請求項4記
載の発明によれば、被写体の像を所定周期のフレーム画
像信号に変換する変換手段と、前記フレーム画像信号を
MPEG標準の符号化方式で符号化する符号化手段と、
符号化後のフレーム画像信号を記憶媒体に記録する記録
手段と、前記フレーム画像信号の特徴部分を抽出する抽
出手段と、前記特徴部分を隣接フレーム間で相関して被
写体の動きを検出する検出手段と、前記検出手段の検出
結果に基づいて前記符号化手段における各フレームの符
号化方式を変更する変更手段と、を備え、前記抽出手段
は、電子カメラの自動焦点回路と併用されるものである
ので、コストアップを招くことなく、各フレームの符号
化方式を適正化して動きが穏やかな場合の情報量削減と
動きが激しい場合の画質向上とを共に達成できる。請求
項5記載の発明によれば、請求項1又は請求項4記載の
動画像記録装置において、前記検出手段の検出結果をM
PEGの動き補償処理に適用し、相関関係を持つ参照フ
レームに対してのみ動き補償フレーム間予測を行うよう
にしたので、動きベクトルの演算など大量の演算処理を
簡素化でき、省電力化を図ることができる。
According to the first aspect of the present invention, input means for inputting a frame image signal of a predetermined period, encoding means for encoding the frame image signal by an MPEG standard encoding method, Recording means for recording a subsequent frame image signal on a storage medium, extraction means for extracting a characteristic portion of the frame image signal, and detection means for detecting the movement of the subject by correlating the characteristic portion between adjacent frames, Changing means for changing the coding method of each frame in the coding means based on the detection result of the detection means, so that the motion of the subject is detected using a simple motion detection circuit, The coding method of each frame can be optimized according to the degree of movement, and both the reduction of the amount of information when the movement is gentle and the improvement of the image quality when the movement is severe can be achieved.
According to the second aspect of the present invention, in the moving image recording apparatus according to the first aspect, the changing unit is configured to encode the frame by the encoding unit when the detecting unit detects a remarkable movement of the subject. Is changed to an I-picture, so that the substantial number of I-pictures having good image quality can be increased to improve the quality of a recorded image. According to the third aspect of the present invention, in the moving image recording apparatus according to the first aspect, the changing unit is configured to encode the frame by the encoding unit when the detection unit detects a remarkable movement of the subject. Is operated to start the closing of the current GOP and the generation of a new GOP. Therefore, since the beginning of the GOP is always an I picture, the real number of high quality I pictures is increased to improve the quality of a recorded image. be able to. According to the invention as set forth in claim 4, conversion means for converting an image of a subject into a frame image signal of a predetermined cycle, coding means for coding the frame image signal by an MPEG standard coding method,
Recording means for recording an encoded frame image signal on a storage medium; extracting means for extracting a characteristic portion of the frame image signal; and detecting means for detecting the movement of a subject by correlating the characteristic portion between adjacent frames And changing means for changing the coding method of each frame in the coding means based on the detection result of the detection means, wherein the extraction means is used in combination with an automatic focusing circuit of the electronic camera. Therefore, it is possible to reduce the amount of information when the motion is gentle and improve the image quality when the motion is severe by optimizing the encoding method of each frame without increasing the cost. According to the fifth aspect of the present invention, in the moving image recording apparatus according to the first or fourth aspect, the detection result of the detecting means is set to M
Applying to PEG motion compensation processing and performing motion compensation inter-frame prediction only for reference frames having correlation, it is possible to simplify a large amount of computation processing such as motion vector computation and to save power. be able to.

【図面の簡単な説明】[Brief description of the drawings]

【図1】電子スチルカメラの外観図である。FIG. 1 is an external view of an electronic still camera.

【図2】電子スチルカメラのブロック図である。FIG. 2 is a block diagram of an electronic still camera.

【図3】動き検出回路の構成図である。FIG. 3 is a configuration diagram of a motion detection circuit.

【図4】動き判定部の構成図である。FIG. 4 is a configuration diagram of a motion determination unit.

【図5】動き判定部の真理値表である。FIG. 5 is a truth table of the motion determination unit.

【図6】本実施の形態におけるGOP構造図である。FIG. 6 is a GOP structure diagram in the present embodiment.

【図7】MPEGのシンタクス図である。FIG. 7 is a syntax diagram of MPEG.

【図8】GOP構造の一例を示す図である。FIG. 8 is a diagram illustrating an example of a GOP structure.

【図9】原画像の画面順の入れ替わりを示す状態図であ
る。
FIG. 9 is a state diagram showing a change in the order of screens of an original image.

【符号の説明】[Explanation of symbols]

16 CCD(入力手段(変換手段)) 19 サンプルホールド回路(入力手段(変換手段)) 20 アナログディジタル変換器(入力手段(変換手
段)) 21 カラープロセス回路(入力手段(変換手段)) 24 圧縮・伸長回路(符号化手段、変更手段) 25 フラッシュメモリ(記憶媒体) 26 CPU(記録手段) 30 動き検出回路(抽出手段、検出手段)
16 CCD (input means (conversion means)) 19 sample hold circuit (input means (conversion means)) 20 analog-digital converter (input means (conversion means)) 21 color process circuit (input means (conversion means)) 24 compression / Decompression circuit (encoding means, changing means) 25 Flash memory (storage medium) 26 CPU (recording means) 30 Motion detection circuit (extraction means, detection means)

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C022 AA13 AB02 AB28 AB68 AC42 AC69 5C053 FA11 GA11 GB22 GB26 GB28 GB30 GB32 GB37 KA04 KA21 KA24 LA01 LA06 5C059 KK08 KK19 KK47 LA09 LB18 LC01 MA00 MA05 MA14 MA23 MA47 MB04 MC35 ME01 NN24 NN28 NN36 NN43 PP01 PP05 PP16 PP26 SS14 SS15 TA03 TA66 TA74 TB03 TC13 TC41 TC43 TD05 TD18 UA02 UA30 UA33  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C022 AA13 AB02 AB28 AB68 AC42 AC69 5C053 FA11 GA11 GB22 GB26 GB28 GB30 GB32 GB37 KA04 KA21 KA24 LA01 LA06 5C059 KK08 KK19 KK47 LA09 LB18 LC01 MA00 MA05 MA14 MA23 MA47 MB04 MC35 ME01 NN36 NN43 PP01 PP05 PP16 PP26 SS14 SS15 TA03 TA66 TA74 TB03 TC13 TC41 TC43 TD05 TD18 UA02 UA30 UA33

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 所定周期のフレーム画像信号を入力する
入力手段と、 前記フレーム画像信号をMPEG標準の符号化方式で符
号化する符号化手段と、 符号化後のフレーム画像信号を記憶媒体に記録する記録
手段と、 前記フレーム画像信号の特徴部分を抽出する抽出手段
と、 前記特徴部分を隣接フレーム間で相関して被写体の動き
を検出する検出手段と、 前記検出手段の検出結果に基づいて前記符号化手段にお
ける各フレームの符号化方式を変更する変更手段と、を
備えたことを特徴とする動画像記録装置。
An input unit for inputting a frame image signal having a predetermined period; an encoding unit for encoding the frame image signal according to an MPEG standard encoding method; and recording the encoded frame image signal on a storage medium. Recording means, extracting means for extracting a characteristic portion of the frame image signal, detecting means for correlating the characteristic portion between adjacent frames to detect the movement of the subject, and A moving image recording apparatus, comprising: changing means for changing the coding method of each frame in the coding means.
【請求項2】 前記変更手段は、前記検出手段で被写体
の著しい動きが検出されたときに前記符号化手段におけ
るフレームの符号化方式をIピクチャに変更することを
特徴とする請求項1記載の動画像記録装置。
2. The apparatus according to claim 1, wherein said changing means changes a frame coding method of said coding means to an I picture when said detecting means detects a remarkable movement of the subject. Moving image recording device.
【請求項3】 前記変更手段は、前記検出手段で被写体
の著しい動きが検出されたときに前記符号化手段におけ
るフレームの符号化方式を操作して現GOPのクローズ
と新たなGOPの生成を開始させることを特徴とする請
求項1記載の動画像記録装置。
3. The changing means starts closing a current GOP and generating a new GOP by operating a frame coding method in the coding means when a remarkable movement of a subject is detected by the detection means. 2. The moving image recording apparatus according to claim 1, wherein the moving image is recorded.
【請求項4】 被写体の像を所定周期のフレーム画像信
号に変換する変換手段と、 前記フレーム画像信号をMPEG標準の符号化方式で符
号化する符号化手段と、 符号化後のフレーム画像信号を記憶媒体に記録する記録
手段と、 前記フレーム画像信号の特徴部分を抽出する抽出手段
と、 前記特徴部分を隣接フレーム間で相関して被写体の動き
を検出する検出手段と、 前記検出手段の検出結果に基づいて前記符号化手段にお
ける各フレームの符号化方式を変更する変更手段と、 を備え、 前記抽出手段は、電子カメラの自動焦点回路と併用され
るものであることを特徴とする動画像記録装置。
4. A converting means for converting an image of a subject into a frame image signal having a predetermined period, an encoding means for encoding the frame image signal by an MPEG standard encoding method, and a frame image signal after encoding. Recording means for recording on a storage medium; extracting means for extracting a characteristic portion of the frame image signal; detecting means for detecting a movement of a subject by correlating the characteristic portion between adjacent frames; and a detection result of the detecting means A changing means for changing the coding scheme of each frame in the coding means based on the above, wherein the extracting means is used in combination with an automatic focusing circuit of an electronic camera. apparatus.
【請求項5】 前記検出手段の検出結果をMPEGの動
き補償処理に適用し、相関関係を持つ参照フレームに対
してのみ動き補償フレーム間予測を行うようにしたこと
を特徴とする請求項1又は請求項4記載の動画像記録装
置。
5. The method according to claim 1, wherein the detection result of the detection unit is applied to an MPEG motion compensation process, and the motion compensation inter-frame prediction is performed only on a reference frame having a correlation. The moving image recording apparatus according to claim 4.
JP36622698A 1998-12-24 1998-12-24 Moving picture recording apparatus and moving picture encoding method Expired - Fee Related JP3794529B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36622698A JP3794529B2 (en) 1998-12-24 1998-12-24 Moving picture recording apparatus and moving picture encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36622698A JP3794529B2 (en) 1998-12-24 1998-12-24 Moving picture recording apparatus and moving picture encoding method

Publications (2)

Publication Number Publication Date
JP2000197003A true JP2000197003A (en) 2000-07-14
JP3794529B2 JP3794529B2 (en) 2006-07-05

Family

ID=18486243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36622698A Expired - Fee Related JP3794529B2 (en) 1998-12-24 1998-12-24 Moving picture recording apparatus and moving picture encoding method

Country Status (1)

Country Link
JP (1) JP3794529B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006025124A (en) * 2004-07-07 2006-01-26 Canon Inc Video signal processor, memory control method, and program
KR100675387B1 (en) * 2003-12-22 2007-01-29 캐논 가부시끼가이샤 Image processing apparatus
US7450164B2 (en) 2001-12-19 2008-11-11 Fujifilm Corporation Digital camera
WO2009072375A1 (en) * 2007-12-05 2009-06-11 Canon Kabushiki Kaisha Image processing apparatus, control method thereof, and program
KR101409852B1 (en) * 2012-12-27 2014-06-20 전자부품연구원 Scalable video encoding method according to the analysis of moving object in the video and apparatus thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7450164B2 (en) 2001-12-19 2008-11-11 Fujifilm Corporation Digital camera
KR100675387B1 (en) * 2003-12-22 2007-01-29 캐논 가부시끼가이샤 Image processing apparatus
US7412079B2 (en) 2003-12-22 2008-08-12 Canon Kabushiki Kaisha Image processing apparatus
JP2006025124A (en) * 2004-07-07 2006-01-26 Canon Inc Video signal processor, memory control method, and program
JP4500610B2 (en) * 2004-07-07 2010-07-14 キヤノン株式会社 Video signal processing apparatus, memory control method, and program
US7796136B2 (en) 2004-07-07 2010-09-14 Canon Kabushiki Kaisha Image signal processing apparatus, memory control method, and program for implementing the method
WO2009072375A1 (en) * 2007-12-05 2009-06-11 Canon Kabushiki Kaisha Image processing apparatus, control method thereof, and program
US8848034B2 (en) 2007-12-05 2014-09-30 Canon Kabushiki Kaisha Image processing apparatus, control method thereof, and program
KR101409852B1 (en) * 2012-12-27 2014-06-20 전자부품연구원 Scalable video encoding method according to the analysis of moving object in the video and apparatus thereof
WO2014106975A1 (en) * 2012-12-27 2014-07-10 전자부품연구원 Scalable encoding method and apparatus based on motion object analysis of video

Also Published As

Publication number Publication date
JP3794529B2 (en) 2006-07-05

Similar Documents

Publication Publication Date Title
JP4441882B2 (en) Imaging device, display control method, program
US8743227B2 (en) Imaging apparatus and control method for reducing a load of writing image data on a recording medium
JP3822380B2 (en) Image signal processing device
JP4234968B2 (en) Digital camera
JP2009232003A (en) Imaging apparatus and control method of imaging apparatus, and signal processor and signal processing method
JP4189820B2 (en) Imaging apparatus and image recording method
JP6354877B2 (en) Imaging control apparatus, and control method and program thereof
JP3794529B2 (en) Moving picture recording apparatus and moving picture encoding method
US6774940B1 (en) Electronic camera apparatus having image reproducing function and method for controlling reproduction thereof
JP2009065320A (en) Imaging device
JP6103481B2 (en) Imaging apparatus, and control method and program thereof
JP3945059B2 (en) Moving image recording apparatus and moving image recording method
JP4467232B2 (en) Image recording apparatus and method
JP2000032332A (en) Electronic camera
JP4311161B2 (en) Electronic camera and photographing control method of electronic camera
JP3695140B2 (en) Electronic still camera and control method thereof
JP4678273B2 (en) Imaging apparatus, moving image storage method, and moving image storage program
JP2000101916A (en) Electronic still camera and its control method
JP3815068B2 (en) Electronic still camera and control method thereof
JP2000278641A (en) Device and method for processing moving picture
JP4193691B2 (en) Imaging apparatus, moving image file recording method, and program
JP3835657B2 (en) Electronic still camera and continuous shot image reproduction method
JP4647480B2 (en) Moving image display device and display control method
JP4635076B2 (en) Solid-state imaging device
JP2009033767A (en) Recording apparatus for moving image, and moving image recording method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051017

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051021

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051219

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060324

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060406

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140421

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees