JPH09200768A - Moving image processing method and apparatus - Google Patents

Moving image processing method and apparatus

Info

Publication number
JPH09200768A
JPH09200768A JP8003599A JP359996A JPH09200768A JP H09200768 A JPH09200768 A JP H09200768A JP 8003599 A JP8003599 A JP 8003599A JP 359996 A JP359996 A JP 359996A JP H09200768 A JPH09200768 A JP H09200768A
Authority
JP
Japan
Prior art keywords
moving image
change
image
moving
threshold value
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
JP8003599A
Other languages
Japanese (ja)
Inventor
Shinichiro Koga
慎一郎 古賀
Yoshihiro Ishida
良弘 石田
Takeshi Namigata
健 波潟
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP8003599A priority Critical patent/JPH09200768A/en
Publication of JPH09200768A publication Critical patent/JPH09200768A/en
Pending legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

(57)【要約】 【課題】 ユーザに大きな負担をかけることなく適切な
閾値を算出できるようにする。 【解決手段】 映像の変化を検出し、そのデータ量を削
減して出力する際に、上記映像変化の検出に用いるため
の1つまたは複数種類の閾値を、入力される静止状態の
動画像および動状態の動画像に基づいて算出する閾値算
出工程1を備え、ユーザが変化がないと考える静止状態
の動画像における閾値毎のエラー率と、ユーザが変化し
ていると考える動状態の動画像における閾値毎のエラー
率とを加えたものを算出して、静止状態の動画像および
動状態の動画像を入力するだけで最適な閾値を決定する
ことができるようにする。
(57) [Abstract] [PROBLEMS] To enable calculation of an appropriate threshold value without imposing a heavy burden on a user. Kind Code: A1 When a change in video is detected and the amount of data is reduced and output, one or a plurality of types of threshold values used for detecting the change in the video are input, An error rate for each threshold value in a moving image in a stationary state that the user thinks does not change, and a moving image in a moving state that the user thinks are changing, including a threshold value calculation step 1 that is calculated based on the moving image in the moving state. It is possible to determine the optimum threshold value by only adding the error rate for each threshold value in 1) and inputting the moving image in the still state and the moving image in the moving state.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は動画像処理方法およ
び装置に係わり、特に、監視領域の映像を伝送したり蓄
積したりする監視装置やTV会議装置、或いは動画を扱
う汎用計算機などに用いて好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving image processing method and apparatus, and more particularly to a moving image processing method and apparatus, a monitoring apparatus for transmitting and storing images in a monitoring area, a TV conference apparatus, or a general-purpose computer for handling moving images. It is suitable.

【0002】[0002]

【従来の技術】従来から、道路監視や夜間監視などの監
視分野において、テレビカメラなどで撮影した監視領域
の映像を遠隔地に伝送してモニタリングしたり、或いは
蓄積装置に蓄積したりすることにより、監視にかかるコ
ストを削減する装置が用いられている。
2. Description of the Related Art Conventionally, in the field of monitoring such as road monitoring and nighttime monitoring, by transmitting a video of a monitoring area photographed by a television camera or the like to a remote place for monitoring or accumulating in a storage device. , Devices that reduce the cost of monitoring are used.

【0003】また、近年では、TV会議などのように、
監視を目的としなくても、通信網(WANやLAN)を
通して遠隔地どうしで映像を送信したり、蓄積したりす
ることが多く行われるようになっている。さらに、汎用
計算機の性能の向上に伴い、単に動画を表示することか
ら動画の送信や蓄積が汎用計算機上でも行えるようにな
ってきている。
In recent years, such as in TV conferences,
Even without the purpose of monitoring, images are often transmitted and stored between remote places through a communication network (WAN or LAN). Further, as the performance of the general-purpose computer has improved, it is becoming possible to transmit and store the moving image on the general-purpose computer only by displaying the moving image.

【0004】また、映像の変化検出方法に関して、従来
から多くの方法が提案されている。比較的簡便なものと
して、画像間の差分により変化領域を検出する方法が提
案されている(佐久間、伊藤、増田、「フレーム間差分
を用いた侵入物体検出法」、テレビジョン学会技術報
告、vol.14, No49,pp. 1-6,1990年などを参照)。
Many methods have been proposed in the past for detecting changes in video. As a relatively simple method, a method of detecting a change area by a difference between images has been proposed (Sakuma, Ito, Masuda, "Intruding Object Detection Method Using Difference Between Frames", Technical Report of the Institute of Television Engineers of Japan, vol. .14, No49, pp. 1-6, 1990, etc.).

【0005】上記画像の差分による映像の変化を検出す
る方法としては、予め撮影した背景画像と現在の画像と
の差分により検出する方法、或いは近接するフレーム間
の差分により変化領域を検出する方法等が代表的な方法
である。
As a method of detecting a change in video due to the difference between the images, a method of detecting a difference between a background image captured in advance and a current image, a method of detecting a change area based on a difference between adjacent frames, or the like is used. Is a typical method.

【0006】上記フレーム間の差分により変化領域を検
出する方法として、監視領域の映像をVTRに録画する
装置において、映像の変化を検出し、映像が変化した時
だけ映像をVTRに録画するようにする装置が提案され
ている(例えば、特開平2−2486号公報)。
As a method of detecting the change area based on the difference between the frames, a device for recording the video of the monitoring area on the VTR detects the change of the video and records the video on the VTR only when the video changes. A device for doing so has been proposed (for example, Japanese Patent Laid-Open No. 2-2486).

【0007】また、本出願人は既に、図15に示すよう
に、変化を検出した最新の画像(送信、蓄積、表示を行
った画像)と現在の画像とを比較することにより映像の
変化を検出する方法を提案している。これにより、背景
画像を予め用意する必要がなく、また、映像の変化が緩
やかであっても検出が可能である。
Further, the present applicant has already detected the change of the video by comparing the latest image in which the change is detected (the image transmitted, accumulated and displayed) with the current image as shown in FIG. Suggests a way to detect. As a result, it is not necessary to prepare a background image in advance, and it is possible to detect even a gradual change in video.

【0008】[0008]

【発明が解決しようとする課題】上記映像変化検出方法
などでは、映像データ中のノイズなどを考慮し、変化量
が一定の値(閾値)を越えた時には、映像に変化があっ
たと検出する方法が一般的である。
In the above-described image change detecting method, etc., noise in the image data is taken into consideration, and when the amount of change exceeds a certain value (threshold value), it is detected that the image has changed. Is common.

【0009】しかし、上記閾値は、映像の質(ノイズの
量)やシーンの内容(シーンの明るさ)により、最適な
閾値が異なる場合が多い。また、カメラやA/D変換器
などの性能やカメラの設置場所に応じて閾値を変更しな
ければならない場合が多かった。
However, the optimum threshold value is often different depending on the image quality (amount of noise) and the content of the scene (brightness of the scene). Further, there are many cases where the threshold value needs to be changed according to the performance of the camera or the A / D converter or the installation location of the camera.

【0010】このため、従来は適切な閾値を決定する作
業が面倒であり、ユーザは閾値を何度も変えながら映像
の変化検出結果を見て適切な閾値をその都度決定しなけ
ればならず、煩雑な作業が多く必要であった。
For this reason, conventionally, the task of determining an appropriate threshold value is troublesome, and the user must determine the appropriate threshold value each time by changing the threshold value many times and looking at the image change detection result. A lot of complicated work was required.

【0011】本発明は上述の問題点にかんがみ、ユーザ
に大きな負担をかけることなく適切な閾値を算出して設
定できるようにすることを目的とする。
In view of the above problems, it is an object of the present invention to calculate and set an appropriate threshold value without imposing a heavy burden on the user.

【0012】[0012]

【課題を解決するための手段】本発明の動画像処理方法
は、映像の変化を検出し、そのデータ量を削減して出力
するようにした動画像処理方法であって、入力される静
止状態の動画像および動状態の動画像に基づいて、映像
変化の検出に用いるための1つまたは複数種類の閾値を
算出する閾値算出工程を備えることを特徴としている。
A moving image processing method of the present invention is a moving image processing method for detecting a change in video, reducing the amount of data, and outputting the reduced still image. It is characterized by including a threshold value calculating step of calculating one or a plurality of kinds of threshold values to be used for detecting a video change based on the moving image and the moving image of the moving state.

【0013】また、本発明の他の特徴とするところは、
上記静止状態の動画像および動状態の動画像から各閾値
でのエラー率を作成して1つまたは複数種類の閾値を算
出することを特徴としている。
Another feature of the present invention is that
It is characterized in that one or a plurality of types of threshold values are calculated by creating an error rate at each threshold value from the moving image in the stationary state and the moving image in the moving state.

【0014】また、本発明のその他の特徴とするところ
は、上記静止状態の動画像および動状態の動画像でのエ
ラー率を各閾値毎に合計して1つまたは複数種類の閾値
を算出することを特徴としている。
Another feature of the present invention is that one or a plurality of types of threshold values are calculated by summing up the error rates in the moving image in the stationary state and the moving image in the moving state for each threshold value. It is characterized by that.

【0015】また、本発明のその他の特徴とするところ
は、上記静止状態の動画像および動状態の動画像でのエ
ラー率に重み付けして各閾値毎に合計することにより、
検出もれ防止または誤検出防止を優先した1つまたは複
数種類の閾値を算出することを特徴としている。
Another feature of the present invention is that by weighting the error rates of the moving image in the stationary state and the moving image in the moving state and summing them for each threshold value,
It is characterized in that one or a plurality of types of threshold values, which give priority to prevention of missed detection or erroneous detection, are calculated.

【0016】また、本発明のその他の特徴とするところ
は、上記検出もれ防止または誤検出防止の優先をユーザ
が段階的に指定することを特徴としている。
Another feature of the present invention is that the user specifies the priority of the above-mentioned omission of detection or prevention of erroneous detection step by step.

【0017】また、本発明のその他の特徴とするところ
は、上記静止状態の動画像および動状態の動画像から作
成した各閾値でのエラー率から、エラー率が最小となる
1つまたは複数種類の閾値を算出することを特徴として
いる。
Another feature of the present invention is that one or more kinds of error rates are minimized from the error rate at each threshold value created from the moving image in the stationary state and the moving image in the moving state. It is characterized in that the threshold value of is calculated.

【0018】また、本発明のその他の特徴とするところ
は、上記静止状態の動画像および動状態の動画像から作
成した各閾値でのエラー率から、エラー率がある値以下
である1つまたは複数種類の閾値の範囲を算出し、上記
算出した閾値の範囲からユーザが1つまたは複数種類の
閾値を指定することを特徴としている。
Another feature of the present invention is that the error rate is less than or equal to a certain value from the error rate at each threshold value created from the moving image in the stationary state and the moving image in the moving state. It is characterized in that a range of a plurality of types of thresholds is calculated, and the user specifies one or a plurality of types of thresholds from the range of the calculated thresholds.

【0019】また、本発明のその他の特徴とするところ
は、映像変化の検出に用いるための1つまたは複数種類
の閾値を、静止状態の動画像および動状態の動画像に基
づいて算出する閾値算出工程と、撮像手段により撮像さ
れた映像または記録装置に格納してある映像から、所定
の静止画像を入力画像として入力する画像入力工程と、
上記入力画像と、変化が検出された最新変化画像とを比
較して映像の変化を検出する変化検出工程と、上記変化
が検出された最新変化画像を蓄積する最新変化画像蓄積
工程と、上記入力画像のうち、変化が検出された画像を
出力する画像出力工程を備えることを特徴としている。
Another feature of the present invention is that a threshold value for calculating one or a plurality of types of threshold values used for detecting a video change is calculated based on a moving image in a stationary state and a moving image in a moving state. A calculation step, and an image input step of inputting a predetermined still image as an input image from the video imaged by the imaging means or the video image stored in the recording device,
A change detection step of comparing the input image with a latest change image in which a change has been detected to detect a change in video; a latest change image storage step of storing the latest change image in which the change has been detected; It is characterized by including an image output step of outputting an image in which a change is detected among the images.

【0020】また、本発明のその他の特徴とするところ
は、上記閾値算出工程は、1つまたは複数種類の閾値を
算出することを特徴としている。
Another feature of the present invention is that the threshold value calculating step calculates one or more kinds of threshold values.

【0021】また、本発明の動画像処理装置の特徴とす
るところは、映像の変化を検出し、映像のデータ量を削
減して出力するようにした動画像処理装置であって、映
像変化の検出に用いるための1つまたは複数種類の閾値
を、静止状態の動画像および動状態の動画像に基づいて
算出する閾値算出手段を具備することを特徴としてい
る。
A feature of the moving image processing apparatus of the present invention is that the moving image processing apparatus detects a change in a video and outputs the reduced video data amount. It is characterized by comprising a threshold value calculation means for calculating one or a plurality of kinds of threshold values used for detection, based on a moving image in a stationary state and a moving image in a moving state.

【0022】また、本発明の動画像処理装置の他の特徴
とするところは、映像変化の検出に用いるための1つま
たは複数種類の閾値を、静止状態の動画像および動状態
の動画像に基づいて算出する閾値算出手段と、検出もれ
防止または誤検出防止の優先をユーザが段階的に指示す
るための優先指示手段とを備えることを特徴としてい
る。
Another feature of the moving image processing apparatus of the present invention is that one or a plurality of types of threshold values used for detecting a video change are set to a moving image in a stationary state and a moving image in a moving state. The present invention is characterized by including a threshold value calculation unit that is calculated on the basis of the threshold value, and a priority instruction unit that allows the user to give a stepwise instruction to prioritize prevention of missed detection or false detection.

【0023】また、本発明の動画像処理装置のその他の
特徴とするところは、映像変化の検出に用いるための1
つまたは複数種類の閾値を、静止状態の動画像および動
状態の動画像に基づいて算出する閾値算出手段と、上記
閾値算出手段が算出した閾値の範囲から、ユーザが所定
の閾値を指示するようにするための閾値指示手段を備え
ることを特徴としている。
Another feature of the moving image processing apparatus of the present invention is that it is used for detecting a video change.
One or more kinds of threshold values are calculated based on a moving image in a still state and a moving image in a moving state, and a user specifies a predetermined threshold value from a threshold value range calculated by the threshold value calculating means. It is characterized in that it is provided with a threshold value indicating means for making

【0024】また、本発明の動画像処理装置のその他の
特徴とするところは、映像変化の検出に用いるための1
つまたは複数種類の閾値を、静止状態の動画像および動
状態の動画像に基づいて算出する閾値算出手段と、撮像
手段により撮像された映像または記録装置に格納されて
いる映像から静止画像を入力する画像入力手段と、上記
入力画像と、変化を検出した最新変化画像とを比較する
ことにより映像の変化を検出する変化検出手段と、上記
最新変化画像を蓄積するための最新変化画像蓄積手段
と、上記入力画像のうち、変化を検出した画像のみを出
力する画像出力手段を備えることを特徴としている。
Another feature of the moving image processing apparatus of the present invention is that it is used for detecting a video change.
Threshold value calculation means for calculating one or more kinds of threshold values based on a moving image in a still state and a moving image in a moving state, and a still image from a video image captured by the image capturing means or a video stored in a recording device Image input means, a change detection means for detecting a change in video by comparing the input image with a latest change image in which a change has been detected, and a latest change image storage means for storing the latest change image. Of the input images, an image output unit that outputs only an image in which a change is detected is provided.

【0025】また、本発明の動画像処理装置のその他の
特徴とするところは、上記閾値算出手段は、1つまたは
複数種類の閾値を算出することを特徴としている。
Another feature of the moving image processing apparatus of the present invention is that the threshold value calculating means calculates one or a plurality of kinds of threshold values.

【0026】[0026]

【作用】本発明は上記技術手段よりなるので、入力され
る静止状態の動画像および動状態の動画像に基づいて、
映像変化の検出に用いるための1つまたは複数種類の閾
値が算出されるので、ユーザは静止状態の動画像と動状
態の動画像を入力するだけで最適な閾値を算出して設定
することが可能となる。
Since the present invention comprises the above technical means, based on the input still image and moving image,
Since one or a plurality of types of thresholds for use in detecting a video change are calculated, the user can calculate and set the optimum threshold by simply inputting a moving image in a still state and a moving image in a moving state. It will be possible.

【0027】また、本発明の他の特徴によれば、ユーザ
が変化がないと考える静止状態の動画像における閾値毎
のエラー率と、ユーザが変化していると考える動状態の
動画像における閾値毎のエラー率とを加えたもの、すな
わち、静止状態の動画像において変化を検出する割合
と、動状態の動画像において変化を検出しない割合とを
加えたものを算出して1つまたは複数種類の閾値を算出
するので、例えば上記エラー率が最小となる閾値を自動
的に求めて適切な閾値を算出することができるようにな
る。
According to another feature of the present invention, the error rate for each threshold value in a moving image in a stationary state that the user thinks is unchanged, and the threshold value in a moving image in a moving state that the user thinks are changing. One or a plurality of types are calculated by adding the error rate for each of them, that is, the sum of the rate of detecting a change in a still moving image and the rate of not detecting a change in a moving image. Since the threshold value is calculated, it is possible to automatically obtain the threshold value that minimizes the error rate and calculate an appropriate threshold value.

【0028】また、本発明のその他の特徴によれば、ユ
ーザが誤検出防止優先の指定をした場合には、動状態の
エラー率分布よりも静止状態のエラー率分布に重みをか
けて加え、ユーザが変化検出もれ防止優先の指定をした
場合には、静止状態のエラー率分布よりも動状態のエラ
ー率分布に重みをかけて加えて、1つまたは複数種類の
閾値を算出するので、検出もれ防止優先または誤検出防
止優先のどちらの要求にも適切に応じることが可能とな
る。
According to another feature of the present invention, when the user designates the false detection prevention priority, the error rate distribution in the stationary state is weighted and added to the error rate distribution in the dynamic state, When the user specifies change detection / leakage prevention priority, one or a plurality of types of threshold values are calculated by weighting the error rate distribution in the moving state rather than the error rate distribution in the stationary state and calculating the threshold value. It is possible to appropriately comply with either the request for prevention of missed detection or the priority for prevention of false detection.

【0029】また、本発明のその他の特徴によれば、エ
ラー率が低い閾値範囲をユーザに提示するようにして、
最終的な閾値をユーザが選択できるようにすることが可
能となり、誤検出防止優先や検出もれ防止優先の指定を
ユーザがきめ細かく設定することが可能となる。
According to another feature of the present invention, the threshold range with a low error rate is presented to the user,
It becomes possible for the user to select the final threshold value, and the user can finely set the designation of the false detection prevention priority and the detection failure prevention priority.

【0030】[0030]

【発明の実施の形態】以下、本発明の動画像処理方法お
よび装置の実施形態を図面を参照して説明する。まず、
第1の実施形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a moving image processing method and apparatus according to the present invention will be described below with reference to the drawings. First,
The first embodiment will be described.

【0031】図1は、本発明を動画像処理方法に適用し
た代表的な構成例を説明するための図である。図1にお
いて、閾値算出工程1は、静止状態の動画像と動状態の
動画像から最適な閾値を算出する。
FIG. 1 is a diagram for explaining a typical configuration example in which the present invention is applied to a moving image processing method. In FIG. 1, a threshold calculation step 1 calculates an optimum threshold from a moving image in a stationary state and a moving image in a moving state.

【0032】画像入力工程2は、ビデオカメラで得られ
る映像やディスク装置に格納してあるデジタル動画像等
の映像から静止画像(以下、入力画像と呼ぶ)を獲得す
る。
In the image input step 2, a still image (hereinafter referred to as an input image) is obtained from an image obtained by a video camera or an image such as a digital moving image stored in a disc device.

【0033】変化検出工程3は、画像入力工程2で入力
された入力画像と変化を検出した最新の画像(以下、最
新変化画像と呼ぶ)とを比較するとともに、その比較結
果に上記閾値算出工程1で算出した閾値を用いて映像の
変化を検出する。
In the change detection step 3, the input image input in the image input step 2 is compared with the latest image in which a change is detected (hereinafter referred to as the latest change image), and the threshold value calculation step is applied to the comparison result. The change in the image is detected using the threshold value calculated in 1.

【0034】変化検出判断工程4は、上記変化検出工程
3で映像の変化を検出したか否かを判断する工程であ
り、上記変化検出工程3で映像の変化を検出した場合
は、最新変化画像蓄積工程5へと処理を移行し、また、
変化を検出できなかった場合は画像入力工程2へと処理
を戻すようにする。
The change detection determining step 4 is a step of determining whether or not a change in the image is detected in the change detecting step 3. If the change in the image is detected in the change detecting step 3, the latest change image is detected. Transfer processing to storage step 5,
When no change can be detected, the process is returned to the image input process 2.

【0035】最新変化画像蓄積工程5は、上記変化検出
工程3で変化を検出した時に、入力画像を最新変化画像
として蓄積する。画像出力工程6は、上記変化検出工程
3で変化を検出した時に、入力画像を通信路(WANや
LAN)に出力して送信したり、画像蓄積装置へ供給し
て蓄積したり、画像表示装置に供給して表示したりす
る。
The latest change image storage step 5 stores the input image as the latest change image when the change is detected in the change detection step 3. In the image output step 6, when a change is detected in the change detection step 3, the input image is output to a communication path (WAN or LAN) and transmitted, or supplied to and accumulated in an image accumulating device, and an image display device. It is supplied to and displayed.

【0036】処理終了判断工程7は、処理終了の指示が
ユーザにより行われているか否かを判断する工程であ
り、処理終了の指示が行われていない場合には上述した
画像入力工程2に再び戻り、処理終了の指示が行われて
いる場合には処理を終了する。
The process end judging step 7 is a step of judging whether or not the user has given an instruction to end the process. If the instruction to end the process has not been given, the process is returned to the image input step 2 described above. If the instruction to end the process is given, the process ends.

【0037】図2は、図1で説明した処理を行う動画像
処理装置の構成例を表す機能ブロック図であり、図3
は、図2に示した構成を実現するハードウェア例であ
る。図3において、2001はCPU、2002はディ
スク装置、2003はディスクI/O、2004はRO
M(リードオンリーメモリ)、2005はビデオキャプ
チャー装置である。
FIG. 2 is a functional block diagram showing a configuration example of a moving image processing apparatus for performing the processing described in FIG.
Is an example of hardware that realizes the configuration shown in FIG. In FIG. 3, reference numeral 2001 is a CPU, 2002 is a disk device, 2003 is disk I / O, and 2004 is RO.
M (Read Only Memory), 2005 is a video capture device.

【0038】また、2006はRAM(ランダムアクセ
スメモリ)、2007は上記した各ブロックを接続する
バス、2008はビデオカメラであり、2009はWA
N(ワイドエリアネットワーク)やLAN(ローカルエ
リアネットワーク)へとつながる通信装置であり、20
10はVTR装置である。
Reference numeral 2006 is a RAM (random access memory), 2007 is a bus connecting the above-mentioned blocks, 2008 is a video camera, and 2009 is a WA.
A communication device that connects to an N (wide area network) or a LAN (local area network).
10 is a VTR device.

【0039】図2において、画像入力手段1001は、
ビデオカメラ2008で得られる映像やディスク装置2
0002に格納してあるデジタル動画像等から静止画像
を獲得し、入力画像蓄積手段1004に格納する。
In FIG. 2, the image input means 1001 is
Video obtained by video camera 2008 and disk device 2
A still image is acquired from a digital moving image or the like stored in 0002 and stored in the input image storage unit 1004.

【0040】例えば、図3においては、ROM2004
またはRAM2006上のプログラムにより動作するC
PU2001の制御により、ビデオカメラ2008また
はVTR装置2010の映像からビデオキャプチャー装
置2005で静止画像( 入力画像) を獲得し、RAM2
006に格納する。
For example, in FIG. 3, ROM 2004
Or C operated by a program on RAM 2006
Under the control of the PU 2001, a still image (input image) is acquired by the video capture device 2005 from the video of the video camera 2008 or the VTR device 2010, and the RAM 2
It is stored in 006.

【0041】または、ROM2004またはRAM20
06に格納されているプログラムによって動作するCP
U2001の制御により、ディスク装置2002に格納
してあるデジタル動画像から静止画像( 入力画像)を読
み込みRAM2006に格納するようにしてもよい。
Alternatively, the ROM 2004 or the RAM 20
CP operated by the program stored in 06
Under the control of U2001, a still image (input image) may be read from the digital moving image stored in the disk device 2002 and stored in the RAM 2006.

【0042】なお、図3には示していないが、ROM2
004またはRAM2006に格納されているプログラ
ムにより動作するCPU2001の制御により、静止画
像(入力画像) をデジタルスチルカメラで撮影してRA
M2006に格納するようにしてよい。また、複数の画
像入力手段を設けるようにしてもよい。
Although not shown in FIG. 3, the ROM 2
A still image (input image) is captured by a digital still camera under the control of the CPU 2001 operated by a program stored in the RAM 004 or the RAM 2006, and RA
It may be stored in M2006. Also, a plurality of image input means may be provided.

【0043】変化検出手段1002は、入力画像蓄積手
段1004に蓄積した入力画像と、最新変化画像蓄積手
段1005に蓄積した最新変化画像とを比較することに
より、映像の変化を検出する。
The change detecting means 1002 detects a change in video by comparing the input image stored in the input image storage means 1004 with the latest change image stored in the latest change image storage means 1005.

【0044】上記変化検出手段1002により映像の変
化を検出した場合は、上記入力画像蓄積手段1004に
蓄積した入力画像を最新変化画像蓄積手段1005に蓄
積する。上記変化検出手段1002は、例えば図3にお
いて、ROM2004またはRAM2006上のプログ
ラムにより動作するCPU2001と、ワークメモリと
して使用するRAM2006、またはディスク装置20
02で構成することができる。もちろん、それぞれ専用
のCPU、RAM、ディスク装置をそれぞれ設けて構成
したり、専用のハードウェアにより構成したりすること
もできる。
When the change detecting means 1002 detects a change in the image, the input image accumulated in the input image accumulating means 1004 is accumulated in the latest change image accumulating means 1005. The change detection means 1002 is, for example, in FIG. 3, a CPU 2001 operated by a program on a ROM 2004 or a RAM 2006, a RAM 2006 used as a work memory, or a disk device 20.
02 can be configured. Of course, the CPU, the RAM, and the disk device dedicated to each may be provided and configured, or configured by dedicated hardware.

【0045】画像出力手段1003は、上記変化検出手
段1002において映像の変化を検出した時に、入力画
像蓄積手段1004に蓄積した入力画像を通信路(WA
NやLAN)に出力して送信したり、上記入力画像蓄積
装置1004へ出力して蓄積したり、画像表示装置(図
示せず)に表示したりする。
The image output means 1003 receives the input image stored in the input image storage means 1004 as a communication path (WA) when the change detection means 1002 detects a change in the image.
(N or LAN) for transmission, output to the input image storage device 1004 for storage, or display on an image display device (not shown).

【0046】例えば、図3においては、ROM2004
またはRAM2006上のプログラムにより動作するC
PU2001の制御により、通信装置2009を通じて
WANやLANに送信する。
For example, in FIG. 3, ROM 2004
Or C operated by a program on RAM 2006
Under the control of the PU 2001, the data is transmitted to the WAN or LAN through the communication device 2009.

【0047】または、ROM2004またはRAM20
06上のプログラムにより動作するCPU2001の制
御により、デジタル動画像の一部としてディスク装置2
002に格納する。ここで、ディスク装置2002は、
LANなどのネットワークを通して利用可能なものでも
かまわない。
Alternatively, the ROM 2004 or the RAM 20
Under the control of the CPU 2001 operated by the program on the disc 06, as a part of the digital moving image, the disc device 2
It is stored in 002. Here, the disk device 2002 is
It may be available through a network such as a LAN.

【0048】また、図3には示していないが、静止画像
をディスプレイ上の同じ部分に連続的に表示することに
より、動画像を表示する画像出力手段でも構成すること
ができる。なお、画像出力手段を複数個設けるようにし
てもよい。
Although not shown in FIG. 3, an image output unit for displaying a moving image can also be configured by continuously displaying a still image on the same portion of the display. A plurality of image output means may be provided.

【0049】入力画像蓄積手段1004、最新変化画像
蓄積手段1005は、例えば、図3において、RAM2
006またはディスク装置2002で構成することがで
きる。もちろん、専用の記憶装置でそれぞれの手段を構
成するようにしてもよい。
The input image storage means 1004 and the latest change image storage means 1005 are, for example, RAM 2 in FIG.
006 or a disk device 2002. Of course, each unit may be configured by a dedicated storage device.

【0050】閾値算出手段1006は、静止状態の動画
像と動状態の動画像を入力した時の変化検出手段100
2の検出結果から閾値を算出する。閾値算出手段100
6は、例えば図3において、ROM2004またはRA
M2006上のプログラムにより動作するCPU200
1とワークメモリとして使用するRAM2006、また
はディスク装置2002で構成することができる。この
場合も、それぞれ専用のCPU、RAM、ディスク装置
等により構成したり、専用のハードウェアにより構成し
たりしてもよい。
The threshold calculating means 1006 is a change detecting means 100 when a moving image in a stationary state and a moving image in a moving state are input.
A threshold value is calculated from the detection result of 2. Threshold calculation means 100
6 is a ROM 2004 or RA in FIG.
CPU200 operated by a program on M2006
1 and a RAM 2006 used as a work memory, or a disk device 2002. Also in this case, each may be configured by a dedicated CPU, RAM, disk device, or the like, or may be configured by dedicated hardware.

【0051】以下、図1の各工程1〜7について、図2
の構成図を参照しながら詳細に説明する。 <閾値算出工程>閾値算出工程1は、閾値算出手段10
06において、静止状態の動画像と動状態の動画像とを
入力した時の変化検出手段1002の検出結果から閾値
を算出する工程である。
The steps 1 to 7 of FIG. 1 will be described below with reference to FIG.
It will be described in detail with reference to the configuration diagram of FIG. <Threshold Calculation Step> The threshold calculation step 1 includes the threshold calculation means 10
In 06, it is a step of calculating a threshold value from the detection result of the change detecting means 1002 when the moving image in the stationary state and the moving image in the moving state are input.

【0052】図4に、閾値算出工程1の詳細な構成図を
示す。また、閾値算出工程1の動作を説明する様子を図
5に示す。図4において、静止状態のエラー率分布算出
工程101は、ビデオカメラ2008またはVTR装置
2010から静止状態の動画像(ユーザが変化がないと
考える動画像) を入力し、閾値を変えながら変化検出を
行い、静止状態のエラー率分布( 各閾値において、静止
状態の動画像に対して変化を検出する割合の分布)を算
出する。例えば、図5(a)に示すようなエラー率の分
布を算出する。
FIG. 4 is a detailed block diagram of the threshold value calculation step 1. Further, FIG. 5 shows how the operation of the threshold calculation step 1 is described. In FIG. 4, a still state error rate distribution calculation step 101 inputs a still image (a moving image that the user thinks is unchanged) from the video camera 2008 or the VTR device 2010, and detects change while changing the threshold value. Then, the error rate distribution in the stationary state (at each threshold, the distribution of the ratio of detecting a change in the moving image in the stationary state) is calculated. For example, the distribution of error rates as shown in FIG. 5A is calculated.

【0053】図4において、動状態のエラー率分布算出
工程102は、ビデオカメラ2008またはVTR装置
2010から動状態の動画像(ユーザが変化していると
考える動画像) を入力し、閾値を変えながら変化検出を
行い、動状態のエラー率分布(各閾値において、動状態
の動画像に対して変化を検出しない割合の分布) を算出
する。例えば、図5(b)に示すようなエラー率の分布
を算出する。
In FIG. 4, in the moving state error rate distribution calculating step 102, a moving image in a moving state (a moving image which the user thinks is changing) is input from the video camera 2008 or the VTR device 2010, and the threshold value is changed. While detecting the change, the error rate distribution of the moving state (the distribution of the ratio of not detecting the change with respect to the moving image of the moving state at each threshold) is calculated. For example, the distribution of error rates as shown in FIG. 5B is calculated.

【0054】図4において、合計エラー率分布算出工程
103は、静止状態のエラー率分布算出工程101と動
状態のエラー率分布算出工程102で算出した静止状態
のエラー率分布および動状態のエラー率分布を各閾値毎
に加え、合計エラー率分布を算出する。
In FIG. 4, the total error rate distribution calculation step 103 is performed by the error rate distribution calculation step 101 in the stationary state and the error rate distribution in the static state and the error rate in the dynamic state calculated in the error rate distribution calculation step 102 in the dynamic state. The distribution is added for each threshold to calculate the total error rate distribution.

【0055】例えば、図5(a)に示すような静止状態
のエラー率分布、図5(b)に示すような動状態のエラ
ー率分布、図5(c)に示す合計エラー率分布(太線)
を算出する。なお、ここでは、静止状態のエラー率分布
と動状態のエラー率分布を同じ重みで加える例で説明し
た。
For example, the error rate distribution in a static state as shown in FIG. 5A, the error rate distribution in a dynamic state as shown in FIG. 5B, and the total error rate distribution shown in FIG. 5C (thick line) )
Is calculated. Here, an example has been described in which the error rate distribution in the static state and the error rate distribution in the dynamic state are added with the same weight.

【0056】しかし、ユーザの使用目的によっては、誤
検出(静止状態のエラー率に対応)防止よりも変化検出
もれ(動状態のエラー率に対応)防止を優先したい場合
や、その逆の場合も想定できる。
However, depending on the purpose of use of the user, when it is desired to give priority to prevention of missed change detection (corresponding to error rate in moving state) over prevention of erroneous detection (corresponding to error rate in stationary state), or vice versa. Can also be assumed.

【0057】このため、静止状態のエラー率分布と動状
態のエラー率分布に不均等な重みをかけて加えても構わ
ない。ここで、エラー率分布にかける重みは、予めRO
M2004またはRAM2006、またはディスク装置
2002に書き込んだ値を用いても構わない。
Therefore, the error rate distribution in the stationary state and the error rate distribution in the moving state may be weighted unevenly and added. Here, the weight to be applied to the error rate distribution is RO
The value written in the M2004 or the RAM 2006 or the disk device 2002 may be used.

【0058】また、図示していないディスプレイ装置と
ポインティング装置とを組み合わせたユーザインターフ
ェイスなどを用いたユーザの誤検出防止優先(静止状態
のエラー率を低くするのに対応)や、変化検出もれ防止
優先(動状態のエラー率を低くするのに対応)の指定に
基づき、加える重みを決めても構わない。
Further, the user's erroneous detection prevention priority (corresponding to lowering the error rate in the stationary state) and the change detection omission are prevented by using a user interface which is a combination of a display device and a pointing device (not shown). The weight to be added may be determined based on the designation of priority (corresponding to lowering the error rate in the moving state).

【0059】例えば、ユーザが誤検出防止優先の指定を
した場合は、静止状態のエラー率分布に動状態のエラー
率分布よりも重みをかけて加える(静止状態のエラー率
分布を2倍などにして加えるなど)。ユーザが変化検出
もれ防止優先の指定をした場合は、動状態のエラー率分
布に静止状態のエラー率分布よりも重みをかけて加える
(動状態のエラー率分布を2倍などにして加えるな
ど)。また、ユーザの誤検出防止優先や検出もれ防止優
先の指定を、段階的に行えるようにして、指定の段階に
応じて重みを変えても構わない。
For example, when the user designates the error detection prevention priority, the error rate distribution in the static state is weighted more than the error rate distribution in the dynamic state (the error rate distribution in the static state is doubled, etc.). Etc.). When the user specifies change detection / leakage prevention priority, the error rate distribution in the dynamic state is weighted more than the error rate distribution in the static state and added (double the error rate distribution in the dynamic state, etc. ). Further, the user's erroneous detection prevention priority and detection leakage prevention priority may be designated in stages, and the weight may be changed according to the designated stage.

【0060】図4において、最小エラー率閾値算出工程
104は、合計エラー率分布算出工程103で算出した
合計エラー率分布において、エラー率が最小となる閾値
を算出し、それを最適な閾値とする。例えば図5(c)
に示すような合計エラー率分布の場合、図5(c)に示
す最小値を算出する。
In FIG. 4, the minimum error rate threshold calculation step 104 calculates the threshold value with the minimum error rate in the total error rate distribution calculated in the total error rate distribution calculation step 103, and sets it as the optimum threshold value. . For example, FIG. 5 (c)
In the case of the total error rate distribution as shown in FIG. 5, the minimum value shown in FIG. 5C is calculated.

【0061】なお、ここではエラー率が最小となる閾値
を適切な閾値として算出したが、エラー率が低い閾値範
囲( 例えば、エラー率が最小エラー率の2倍などのある
値以下である閾値の範囲) をユーザに提示し、図示して
いないディスプレイ装置とポインティング装置とを組み
合わせて、ユーザが最終的な閾値を選択するようにして
もよい。この場合、ユーザの負担は多少増えるが、誤検
出防止優先や検出もれ防止優先の指定をユーザがきめ細
か設定することができる利点が得られる。
Although the threshold value for which the error rate is the minimum is calculated as an appropriate threshold value here, the threshold value range for which the error rate is low (for example, the threshold value for which the error rate is less than a certain value such as twice the minimum error rate, (Range) may be presented to the user, and a display device (not shown) and a pointing device may be combined so that the user selects a final threshold value. In this case, the burden on the user is slightly increased, but the advantage that the user can finely set the designation of the false detection prevention priority and the detection failure prevention priority is obtained.

【0062】ここで、静止状態のエラー率分布算出工程
101で静止状態のエラー率分布を、動状態のエラー率
分布算出工程102で動状態のエラー率分布を算出する
ため、ROM2004またはRAM2006上のプログ
ラムにより動作するCPU2001で実行する手順の一
例を、図6のフローチャートに示す。なお、ここでは、
以下に述べる変化検出工程3で用いる閾値が1つの場合
を例にして述べる。
Here, in order to calculate the error rate distribution in the stationary state in the stationary state error rate distribution calculating step 101 and the moving state error rate distribution in the moving state error rate distribution calculating step 102, the error rate distribution in the ROM 2004 or the RAM 2006 is stored. An example of the procedure executed by the CPU 2001 operated by the program is shown in the flowchart of FIG. Here,
The case where there is one threshold value used in the change detection step 3 described below will be described as an example.

【0063】ステップS501は、静止状態の動画像ま
たは動状態の動画像を入力し、設定した閾値で、例えば
以下で説明する画像入力工程2、変化検出工程3、最新
変化画像蓄積工程5からなる変化検出処理を行う。
In step S501, a moving image in a stationary state or a moving image in a moving state is input, and with a set threshold value, for example, an image input step 2, a change detecting step 3, and a latest changing image accumulating step 5 will be described. Change detection processing is performed.

【0064】ステップS502は、各閾値でのエラー率
( 静止状態の動画像において変化を検出する割合、また
は動状態の動画像において変化を検出しない割合) をR
AM2006またはディスク装置2002へ格納する。
Step S502 is an error rate at each threshold.
R is the ratio of detecting the change in the still moving image or the ratio of not detecting the change in the moving image.
The data is stored in the AM 2006 or the disk device 2002.

【0065】ステップS503では、全ての閾値でステ
ップS501からステップS502を行ったか否かを判
定する。そして、全ての閾値で処理が終わったと判定し
た場合は図6に示す処理を終了する。また、全ての閾値
で処理が終わってないと判定した場合は、ステップS5
04に進む。
In step S503, it is determined whether steps S501 to S502 have been performed for all threshold values. Then, when it is determined that the processing is completed with all the threshold values, the processing shown in FIG. 6 is ended. If it is determined that the processing has not been completed for all thresholds, step S5
Go to 04.

【0066】ステップS504では、ステップS501
で行う変化検出処理で用いる閾値を変更して( 増やし
て) ステップS501に戻る。ここで、閾値を1つ刻み
に増す例で説明しているが、精度が低くてもよいから高
速に閾値を求めたい場合は、2つ以上の幾つか刻みで閾
値を増やしても構わない。このようにして、静止状態の
エラー率分布算出工程で静止状態のエラー率分布を算出
し、動状態のエラー率分布算出工程で動状態のエラー率
分布を算出する。
In step S504, step S501
After changing (increasing) the threshold value used in the change detection process performed in step S501, the process returns to step S501. Here, an example in which the threshold value is increased by one has been described, but if it is desired to obtain the threshold value at high speed because accuracy may be low, the threshold value may be increased in two or more steps. In this way, the error rate distribution in the static state is calculated in the static state error rate distribution calculating step, and the dynamic state error rate distribution is calculated in the dynamic state error rate distribution calculating step.

【0067】なお、しきい値の初期値は、図6のフロー
チャートで示される処理を開始させる前に、静止状態の
エラー率分布算出工程および動状態のエラー率分布算出
工程において、エラー率を測定するしきい値の値の範囲
の最小値に設定される(初期化される)ものとする。
As for the initial value of the threshold value, the error rate is measured in the static state error rate distribution calculating step and the dynamic state error rate distribution calculating step before the processing shown in the flowchart of FIG. 6 is started. It shall be set (initialized) to the minimum value in the range of threshold values.

【0068】<画像入力工程>画像入力工程2は、ビデ
オカメラで得られる映像、ディスク装置に格納してある
デジタル動画像、デジタルスチルカメラ等から静止画像
を獲得し、入力画像蓄積手段1004に格納する。
<Image Input Step> In the image input step 2, a video obtained by a video camera, a digital moving image stored in a disk device, a still image from a digital still camera, etc. are obtained and stored in the input image storage means 1004. To do.

【0069】<変化検出工程>変化検出工程3は、入力
画像蓄積手段1004に蓄積した入力画像と、最新変化
画像蓄積手段1005に蓄積した最新変化画像とを比較
することにより、映像の変化を検出する。図7に、変化
検出工程3において、ROM2004またはRAM20
06上のプログラムにより動作するCPU2001で実
行する処理手順の一例を示す。
<Change Detection Step> In the change detection step 3, the change in the video is detected by comparing the input image stored in the input image storage means 1004 with the latest change image stored in the latest change image storage means 1005. To do. FIG. 7 shows the ROM 2004 or the RAM 20 in the change detection step 3.
An example of the processing procedure executed by the CPU 2001 operated by the program on 06 is shown.

【0070】この処理は、入力画像と最新変化画像にお
いて対応する画素間の画素値差分(絶対値)を算出し、
画像全体の画素値差分値の合計がある値以上であれば、
入力画像は最新変化画像と比べて変化していると判断す
る処理、すなわち、映像が変化したと判断する処理であ
る。
This processing calculates the pixel value difference (absolute value) between corresponding pixels in the input image and the latest change image,
If the sum of the pixel value difference values of the entire image is greater than or equal to a certain value,
This is a process of determining that the input image has changed compared to the latest changed image, that is, a process of determining that the video has changed.

【0071】ここで、図8に示すように、画素値差分の
算出は画像の各画素をラスタ順に処理するものとし、処
理途中の画素値差分の合計を合計変化量と呼ぶ。もちろ
ん、各画素を並列に処理してもかまわない。
Here, as shown in FIG. 8, the pixel value difference is calculated by processing each pixel of the image in raster order, and the sum of the pixel value differences during the process is called the total change amount. Of course, each pixel may be processed in parallel.

【0072】図7において、ステップS101では、合
計変化量を0に初期化する。次のステップS102で
は、処理を行っている画素( 以下、注目画素と呼ぶ) 間
の画素値差分を算出する。
In FIG. 7, in step S101, the total change amount is initialized to zero. In the next step S102, the pixel value difference between the pixels being processed (hereinafter referred to as the pixel of interest) is calculated.

【0073】画素値差分は、例えば、入力画像が2値画
像であれば、注目画素の値が異なる場合は1とし、同じ
場合は0とする。また、入力画像が濃淡画像であれば、
例えば、注目画素の値の差の絶対値とする。さらに、入
力画像がカラー画像であれば、例えば、注目画素のRG
B値のそれぞれの差の絶対値を算出し、それぞれの差の
絶対値を合計した値とする。
For example, if the input image is a binary image, the pixel value difference is set to 1 if the value of the pixel of interest is different, and is set to 0 if they are the same. If the input image is a grayscale image,
For example, the absolute value of the difference between the values of the pixel of interest is set. Furthermore, if the input image is a color image, for example, the RG of the pixel of interest
The absolute value of each difference of B values is calculated, and the absolute value of each difference is summed.

【0074】ステップS103では、ステップS102
で算出した画素値差分を合計変化量に加える。ステップ
S104では、合計変化量が予め設定した値(閾値) よ
り大きいか否かを判断し、大きければ、映像に変化があ
ったとして、図7に示すフローチャートを終了する。ま
た、大きくなかったと判断した場合には、ステップS1
05に処理を進める。
In step S103, step S102
The pixel value difference calculated in step 3 is added to the total change amount. In step S104, it is determined whether or not the total change amount is larger than a preset value (threshold value). If the total change amount is larger, it is determined that the image has changed, and the flowchart shown in FIG. If it is determined that it is not large, step S1
The process proceeds to 05.

【0075】ステップS105では、全ての画素を処理
したか否かを判定する。そして、全ての画素を処理した
場合は、映像に変化がなかったとして処理を終了する。
ステップS106では、処理する画素を( 注目画素を)
次の画素に移してステップS102に戻る。
In step S105, it is determined whether or not all pixels have been processed. Then, when all the pixels have been processed, it is determined that there is no change in the image, and the process ends.
In step S106, the pixel to be processed (target pixel)
Move to the next pixel and return to step S102.

【0076】<変化検出判断工程>変化検出判断工程4
は、上記変化検出工程3において映像の変化が検出され
たか否かを判断する工程であり、映像の変化が検出され
た場合には処理を最新変化画像蓄積工程5に進め、ま
た、映像の変化が検出されなかった場合には処理を上述
した画像入力工程2に戻す処理を行う。
<Change Detection Judging Step> Change Detection Judging Step 4
Is a step of determining whether or not a change in video is detected in the change detection step 3, and if a change in video is detected, the process proceeds to the latest change image storage step 5, and the change in video is performed. If is not detected, the process is returned to the image input step 2 described above.

【0077】<最新変化画像蓄積工程>最新変化画像蓄
積工程5は、変化検出工程3で変化を検出した時に、画
像入力工程2で入力して入力画像蓄積手段1004に蓄
積している入力画像を最新変化画像として最新変化画像
蓄積手段1005へ蓄積する。
<Latest change image storage step> In the latest change image storage step 5, when the change is detected in the change detection step 3, the input image input in the image input step 2 and stored in the input image storage means 1004 is input. The latest changed image is stored in the latest changed image storage unit 1005.

【0078】<処理終了判断工程>処理終了判断工程7
は、処理終了の指示がユーザにより行われているか否か
を判断するものであり、通信装置2009を介してユー
ザが処理終了の指示を行っていない場合には上述した画
像入力工程2に再び戻り、処理終了の指示が行われてい
る場合には処理を終了する。
<Process End Judging Step> Process End Judging Step 7
Is for determining whether or not the user has given an instruction to end the process. If the user has not given an instruction to end the process via the communication device 2009, the process returns to the image input step 2 described above. If the processing end instruction is given, the processing is ended.

【0079】<画像出力工程>画像出力工程6は、変化
検出工程3において映像の変化を検出した時に、入力画
像蓄積手段1004に蓄積してある入力画像を通信装置
2009などを通して通信路(WANやLAN)に出力
して送信したり、画像蓄積装置2002などへ出力して
蓄積したり、表示装置に表示したりする。
<Image Output Step> In the image output step 6, when the change in the image is detected in the change detection step 3, the input image stored in the input image storage means 1004 is transmitted through the communication device 2009 or the like to a communication channel (WAN or WAN). It is output to and transmitted to a LAN), output to and stored in the image storage device 2002, or displayed on a display device.

【0080】次に、本発明の第2の実施形態を説明す
る。本実施形態では、第1の実施形態における変化検出
工程3を2つの閾値を用いた方法で実現した場合の閾値
算出工程1の実現例を示す。
Next, a second embodiment of the present invention will be described. In the present embodiment, an example of implementation of the threshold value calculation step 1 when the change detection step 3 in the first embodiment is realized by a method using two threshold values will be shown.

【0081】図9に、変化検出工程3において、ROM
2004またはRAM2006上のプログラムにより動
作するCPU2001で実行する処理フローチャートの
一例を示す。この処理は、入力画像と最新変化画像にお
いて対応する画素間の画素値差分(絶対値)を算出し、
この画素値差分がある値以上であれば、注目画素は変化
しているとする(以下、変化した画素を変化画素と呼
ぶ)。
FIG. 9 shows the ROM in the change detection step 3.
An example of a processing flow chart executed by the CPU 2001 operated by a program on the 2004 or the RAM 2006 is shown. This process calculates the pixel value difference (absolute value) between corresponding pixels in the input image and the latest change image,
If this pixel value difference is greater than or equal to a certain value, it is assumed that the pixel of interest has changed (hereinafter, the changed pixel is referred to as a changed pixel).

【0082】さらに、入力画像においてこの変化画素の
数がある値以上であれば、入力画像は最新変化画像と比
べて変化していると判断する。すなわち、映像が変化し
たと判断する。なお、第1の実施形態と同様に変化画素
の判定は、図8に示したように、画像の各画素をラスタ
順に処理するものとし、処理途中の変化画素の合計を変
化画素数と呼ぶ。もちろん、各画素を並列に処理するよ
うにしてもかまわない。
Further, if the number of changed pixels in the input image is greater than or equal to a certain value, it is determined that the input image has changed compared with the latest changed image. That is, it is determined that the image has changed. Note that, as in the first embodiment, the determination of the changed pixels is performed by processing each pixel of the image in raster order as shown in FIG. 8, and the total number of changed pixels in the process is called the number of changed pixels. Of course, each pixel may be processed in parallel.

【0083】図9において、ステップS201では、変
化画素数を0に初期化する。ステップS202では、処
理を行っている画素( 以下、注目画素と呼ぶ) 間の画素
値差分を第1の実施形態と同様の方法で算出する。ステ
ップS203では、ステップS202で算出した画素値
差分が予め設定した値( 第1の閾値) より大きいか否か
を判定する。そして、第1の閾値より大きければステッ
プS204へ処理を進め、その反対に第1の閾値より大
きくなければステップS206の処理へジャンプする。
In FIG. 9, in step S201, the number of changed pixels is initialized to zero. In step S202, the pixel value difference between the pixels being processed (hereinafter referred to as the pixel of interest) is calculated by the same method as in the first embodiment. In step S203, it is determined whether the pixel value difference calculated in step S202 is larger than a preset value (first threshold value). If it is larger than the first threshold value, the process proceeds to step S204. On the contrary, if it is not larger than the first threshold value, the process jumps to step S206.

【0084】ステップS204では、変化画素数を1つ
増やす。次に、ステップS205では、変化画素数が予
め設定した値( 第2の閾値)より大きいか否かを判断す
る。この場合、映像に変化があったとして、図9に示す
フローチャートの処理を終了する。また、大きくなかっ
たと判断した場合には、ステップS206に処理を進め
る。
In step S204, the number of changed pixels is increased by one. Next, in step S205, it is determined whether the number of changed pixels is larger than a preset value (second threshold value). In this case, it is assumed that there is a change in the video, and the processing of the flowchart shown in FIG. 9 ends. If it is determined that the size is not large, the process proceeds to step S206.

【0085】ステップS206は、全ての画素を処理し
たか否かを判定する。全ての画素を処理した場合は、映
像に変化がなかったとして、図7に示したフローチャー
トの処理を終了する。全ての画素を処理していない場合
は、ステップS207に処理を進める。ステップS20
7においては、処理を( 注目画素を) 次の画素に移して
ステップS202に戻る。
A step S206 decides whether or not all the pixels have been processed. When all the pixels have been processed, it is considered that there is no change in the image, and the processing of the flowchart shown in FIG. 7 ends. If all pixels have not been processed, the process proceeds to step S207. Step S20
In step 7, the process is moved to the next pixel (target pixel) and the process returns to step S202.

【0086】<閾値算出工程>以上説明したように、変
化検出工程3を2つの閾値を用いる方法で実現した場合
の、閾値算出工程1について、以下に述べる。このよう
な場合も、第1の実施形態と同様に図4で示した方法で
閾値算出工程1を実現できる。ただし、閾値を2つ用い
るので、図5に示した合計エラー率分布は例えば、図1
0に示すような分布となる。
<Threshold Value Calculating Step> As described above, the threshold value calculating step 1 when the change detecting step 3 is realized by a method using two threshold values will be described below. Even in such a case, the threshold value calculation step 1 can be realized by the method shown in FIG. 4 as in the first embodiment. However, since two thresholds are used, the total error rate distribution shown in FIG.
The distribution is as shown in 0.

【0087】また、静止状態のエラー率分布算出工程1
01で静止状態のエラー率分布を算出する方法、動状態
のエラー率分布算出工程102で動状態のエラー率分布
を算出するための方法も異なる。以下、ROM2004
またはRAM2006上のプログラムにより動作するC
PU2001で実行する処理の一例を、図11のフロー
チャートに示す。
Further, the error rate distribution calculation step 1 in the stationary state
The method for calculating the error rate distribution in the stationary state in 01 and the method for calculating the error rate distribution in the moving state in the moving state error rate distribution calculating step 102 are also different. Below, ROM2004
Or C operated by a program on RAM 2006
An example of processing executed by the PU 2001 is shown in the flowchart of FIG.

【0088】図11において、ステップS601は、静
止状態の動画像または動状態の動画像を入力するととも
に、設定した閾値で変化検出処理を行う。例えば、今ま
でに説明した画像入力工程2、変化検出工程3、最新変
化画像蓄積工程5からなる変化検出処理を行う。
In FIG. 11, in step S601, a moving image in a stationary state or a moving image in a moving state is input, and change detection processing is performed with a set threshold value. For example, the change detection process including the image input process 2, the change detection process 3, and the latest change image accumulation process 5 described above is performed.

【0089】ステップS602は、各閾値の組み合わせ
でのエラー率( 静止状態の動画像において変化を検出す
る割合、または動状態の動画像において変化を検出しな
い割合) をRAM2006またはディスク装置2002
へ格納する。
In step S602, the error rate (the rate of detecting a change in a moving image in a stationary state or the rate of not detecting a change in a moving image in a moving state) for each combination of thresholds is set in the RAM 2006 or the disk device 2002.
To store.

【0090】ステップS603は、ステップS601か
らステップS602の処理を第1の閾値で全て行ったか
否かを判定し、第1の閾値で処理が全て終わった場合は
ステップS605に進み、一方、第1の閾値で全ての処
理が終わっていない場合は、ステップS604に進む。
In step S603, it is determined whether or not the processes of steps S601 to S602 have all been performed with the first threshold value. If all the processes have been completed with the first threshold value, the process proceeds to step S605, while the first If all the processing is not completed with the threshold value of, the process proceeds to step S604.

【0091】ステップS604では、ステップS601
で行う変化検出処理で用いる第1の閾値を変え(増やし
て)、その後、ステップS601に進む。第1の実施形
態と同様に第1の閾値の刻み幅は、任意の数で構わな
い。
In step S604, step S601
The first threshold value used in the change detection process performed in (1) is changed (increased), and then the process proceeds to step S601. Similar to the first embodiment, the step size of the first threshold may be any number.

【0092】ステップS605は、ステップS601か
らステップS604の処理を第2の閾値で全て行ったか
否かを判定し、全ての処理が終わった場合には、図11
に示す処理を終了する。また、全ての処理が終わってい
ない場合にはステップS606に進む。
In step S605, it is determined whether or not the processes of steps S601 to S604 have all been performed with the second threshold value.
The process shown in is ended. If all the processes have not been completed, the process proceeds to step S606.

【0093】ステップS606では、ステップS601
で行う変化検出処理で用いる第1の閾値を元に戻し、第
2の閾値を増やしてステップS601に進む。同様に第
2の閾値の刻み幅も、任意の数で構わない。このように
して、静止状態のエラー率分布算出工程101で静止状
態のエラー率分布を算出し、動状態のエラー率分布算出
工程102で動状態のエラー率分布を算出する。
In step S606, step S601
The first threshold value used in the change detection process performed in step 1 is returned to the original value, the second threshold value is increased, and the process proceeds to step S601. Similarly, the step size of the second threshold may be any number. In this way, the error rate distribution calculation step 101 in the static state calculates the error rate distribution in the static state, and the error rate distribution calculation step 102 in the dynamic state calculates the error rate distribution in the dynamic state.

【0094】なお、第1のしきい値、第2のしきい値共
に、図11のフローチャートで示される処理が実行され
る前のステップで、それぞれ測定する値の範囲の最小値
に初期化されるものとする。
Note that both the first threshold value and the second threshold value are initialized to the minimum value in the range of the respective measured values in the step before the processing shown in the flowchart of FIG. 11 is executed. Shall be.

【0095】次に、本発明の第3の実施形態を説明す
る。本実施形態では、第1の実施形態における変化検出
工程3を3つの閾値を用いた方法で実現した場合の閾値
算出工程1の実現例を示す。
Next, a third embodiment of the present invention will be described. In the present embodiment, an example of realizing the threshold value calculating step 1 when the change detecting step 3 in the first embodiment is realized by a method using three threshold values will be shown.

【0096】図12に、変化検出工程3において、RO
M2004またはRAM2006上のプログラムにより
動作するCPU2001で実行する処理手順の一例を示
す。この処理は、入力画像および最新変化画像を図13
に示すように複数のブロックに分割し、ブロックごとに
変化を検出するようにしている。
In FIG. 12, in the change detection step 3, RO
An example of a processing procedure executed by the CPU 2001 operated by a program on the M2004 or the RAM 2006 will be shown. In this process, the input image and the latest change image are displayed as shown in FIG.
As shown in FIG. 3, the block is divided into a plurality of blocks, and the change is detected for each block.

【0097】各ブロックでは、第2の実施形態同様に、
入力画像と最新変化画像において対応する画素間の画素
値差分(絶対値)を算出し、この画素値差分がある値以
上であれば注目画素は変化しているとする。
In each block, as in the second embodiment,
A pixel value difference (absolute value) between corresponding pixels in the input image and the latest changed image is calculated, and if the pixel value difference is equal to or larger than a certain value, the pixel of interest is changed.

【0098】さらに、各ブロックにおいてこの変化画素
の数がある値以上であれば、ブロックは変化していると
すると判断する。最終的には、変化ブロック数がある値
以上であった時、入力画像は最新変化画像と比べて変化
していると判断する。
Further, if the number of the changed pixels in each block is a certain value or more, it is determined that the block is changed. Finally, when the number of changed blocks is equal to or larger than a certain value, it is determined that the input image has changed compared with the latest changed image.

【0099】すなわち、映像が変化したと判断する。各
ブロック内での画素値差分の算出は図13(a)、
(b)に示すように、各画素をラスタ順に処理するもの
とし、ブロックもラスタ順に処理するものとする。ま
た、処理途中のブロック内の変化画素数の合計を変化画
素数、変化ブロックの合計を変化ブロック数と呼ぶ。も
ちろん、各画素またはブロックを並列に処理してもかま
わない。
That is, it is determined that the image has changed. Calculation of the pixel value difference in each block is performed as shown in FIG.
As shown in (b), each pixel is processed in raster order, and the block is also processed in raster order. Further, the total number of changed pixels in the block in the middle of processing is called the number of changed pixels, and the total number of changed blocks is called the number of changed blocks. Of course, each pixel or block may be processed in parallel.

【0100】図12において、ステップS401におい
ては、変化ブロック数を0に初期化する。ステップS4
02では、変化画素数を0に初期化する。ステップS4
03では、第1の実施形態と同様に、注目画素間の画素
値差分を算出する。
In FIG. 12, in step S401, the number of changed blocks is initialized to 0. Step S4
In 02, the number of changed pixels is initialized to 0. Step S4
In 03, similarly to the first embodiment, the pixel value difference between the target pixels is calculated.

【0101】ステップS404では、ステップS403
で算出した画素値差分が予め設定した値( 第1の閾値)
より大きいか否かを判断し、大きければ、注目画素に変
化があったとして、ステップS405に処理を進める。
また、大きくなかった場合は、ステップS407の処理
にジャンプする。
In step S404, step S403
Pixel value difference calculated in step is a preset value (first threshold)
If it is larger, it is determined that the pixel of interest has changed, and the process proceeds to step S405.
If not, the process jumps to step S407.

【0102】ステップS405では、変化画素数を1つ
増やす。ステップS406では変化画素数が予め設定し
た値( 第2の閾値)より大きいか否かを判断し、大きけ
れば、注目ブロックに変化があったとしてステップS4
08に処理を進める。また、大きくなかった場合は、ス
テップS407に処理を進める。
In step S405, the number of changed pixels is increased by one. In step S406, it is determined whether or not the number of changed pixels is larger than a preset value (second threshold value), and if larger, it is determined that the target block has changed in step S4.
The process proceeds to 08. If not larger, the process proceeds to step S407.

【0103】ステップS407では、ブロック内の全て
の画素を処理したか判定する。この判定の結果、全ての
画素を処理した場合はステップS412へ処理を進め、
全ての画素を処理していない場合にはステップS411
に進む。
In step S407, it is determined whether all the pixels in the block have been processed. As a result of this determination, if all the pixels have been processed, the process proceeds to step S412,
If all pixels have not been processed, step S411
Proceed to.

【0104】ステップS408では、変化ブロック数に
1を加える。ステップS409では、変化ブロック数が
予め設定した値( 第3の閾値)より大きいか否かを判断
し、大きければ、映像に変化があったとして、図12に
示すフローチャートの処理を終了する。また、大きくな
かった場合は、ステップS410に処理を進める。
At step S408, 1 is added to the number of changed blocks. In step S409, it is determined whether or not the number of changed blocks is larger than a preset value (third threshold value). If larger, it is determined that the image has changed, and the process of the flowchart shown in FIG. 12 ends. If not larger, the process proceeds to step S410.

【0105】ステップS410では、全てのブロックを
処理したか否かを判定する。そして、全てのブロックを
処理した場合は映像に変化がなかったとして、図12に
示すフローチャートの処理を終了する。一方、全てのブ
ロックの処理が終わっていない場合には、ステップS4
12に進む。
In step S410, it is determined whether all blocks have been processed. Then, when all the blocks have been processed, it is considered that there is no change in the video, and the processing of the flowchart shown in FIG. 12 ends. On the other hand, if all blocks have not been processed, step S4
Proceed to 12.

【0106】ステップS411では、処理を( 注目画素
を) 次の画素に移し、その後、ステップS403に戻
る。ステップS412では、処理を( 注目ブロックを)
次のブロックに移し、その後、ステップS402に戻
る。
In step S411, the process is moved to the next pixel (target pixel), and then the process returns to step S403. In step S412, the processing is performed (the block of interest)
Move to the next block, and then return to step S402.

【0107】<閾値算出工程>以上、説明したように、
変化検出工程3を3つの閾値を用いる方法で実現した場
合の、閾値算出工程1について、以下に述べる。このよ
うな場合も、上述した第1の実施形態と同様に、図4で
示した方法で閾値算出工程1を実現することができる。
ただし、第2の実施形態と同様に閾値を3つ用いるの
で、図5に示した合計エラー率分布とは異なるエラー率
分布となる。
<Threshold Calculation Step> As described above,
The threshold value calculating step 1 in the case where the change detecting step 3 is realized by a method using three threshold values will be described below. Even in such a case, the threshold value calculation step 1 can be realized by the method shown in FIG. 4 as in the first embodiment described above.
However, since three threshold values are used as in the second embodiment, the error rate distribution is different from the total error rate distribution shown in FIG.

【0108】ここでは、合計エラー率分布の図は省略す
る。また、静止状態のエラー率分布算出工程101で静
止状態のエラー率分布を、動状態のエラー率分布算出工
程102で動状態のエラー率分布を算出するための方法
も異なる。以下、ROM2004またはRAM2006
上のプログラムにより動作するCPU2001で実行す
る。
Here, the diagram of the total error rate distribution is omitted. Further, the method for calculating the error rate distribution in the stationary state in the stationary state error rate distribution calculating step 101 and the method for calculating the moving state error rate distribution in the moving state error rate distribution calculating step 102 are also different. Hereinafter, ROM 2004 or RAM 2006
It is executed by the CPU 2001 operated by the above program.

【0109】次に、処理手順の一例を、図14に示す。
ステップS701は、静止状態の動画像または動状態の
動画像を入力するとともに、設定した閾値で、例えば今
までに説明した画像入力工程2、変化検出工程3、最新
変化画像蓄積工程5からなる変化検出処理を行う。
FIG. 14 shows an example of the processing procedure.
In step S701, a moving image in a still state or a moving image in a moving state is input, and a change is made with a set threshold value, for example, the image input step 2, the change detecting step 3, and the latest change image accumulating step 5 described above. Perform detection processing.

【0110】ステップS702は、各閾値の組み合わせ
でのエラー率( 静止状態の動画像において変化を検出す
る割合、または動状態の動画像において変化を検出しな
い割合) をRAM2006またはディスク装置2002
へ格納する。
In step S702, the error rate (the rate of detecting a change in a moving image in a stationary state or the rate of not detecting a change in a moving image in a stationary state) for each combination of thresholds is set in the RAM 2006 or the disk device 2002.
To store.

【0111】ステップS703は、ステップS701か
らステップS702の処理を第1の閾値で全て行ったか
否かを判定し、処理が終わっていない場合にはステップ
S704に進み、処理が終わった場合にはステップS7
05に進む。
A step S703 decides whether or not the processes of the steps S701 to S702 have all been performed with the first threshold value. If the process is not completed, the process proceeds to a step S704, and if the process is completed, the step S703 is executed. S7
Go to 05.

【0112】ステップS704では、ステップS701
で行う変化検出処理で用いる第1の閾値を変えて(増や
して)ステップS701に進む。なお、第1の実施形態
と同様に、第1の閾値の刻み幅は、任意の数でかまわな
い。
In step S704, step S701
The first threshold value used in the change detection process performed in (4) is changed (increased) and the process proceeds to step S701. Note that, as in the first embodiment, the step size of the first threshold may be any number.

【0113】ステップS705は、ステップS701か
らステップS704の処理を第2の閾値で全て行ったか
否かを判定し、処理が終わった場合はステップS707
へ進み、処理が終わっていない場合はステップS706
に進む。
A step S705 decides whether or not the processes of the steps S701 to S704 have all been carried out with the second threshold value, and if the processes are completed, a step S707.
If not, the process proceeds to step S706 if the process is not finished.
Proceed to.

【0114】ステップS706では、ステップS701
で行う変化検出処理で用いる第1の閾値を元にに戻し、
第2の閾値を増やしてステップS701に進む。同様
に、第2の閾値の刻み幅も任意の数でかまわない。
In step S706, step S701
Return the first threshold used in the change detection processing in
The second threshold value is increased and the process proceeds to step S701. Similarly, the step size of the second threshold may be any number.

【0115】ステップS707は、ステップS701か
らステップS706の処理を第3の閾値で全て行ったか
否かを判定し、処理が終わった場合は図14に示す処理
を終了し、処理が終わっていない場合はステップS70
8に進む。
A step S707 decides whether or not the processes of the steps S701 to S706 have all been carried out with the third threshold value. If the process is finished, the process shown in FIG. 14 is finished, and if the process is not finished. Is step S70
Proceed to 8.

【0116】ステップS708では、ステップS701
で行う変化検出処理で用いる第1の閾値と第2の閾値を
元に戻し、第3の閾値を増やしてステップS701に進
む。同様に第3の閾値の刻み幅も、任意の数でかまわな
い。このようにして、静止状態のエラー率分布算出工程
101で静止状態のエラー率分布を、動状態のエラー率
分布算出工程102で動状態のエラー率分布を算出す
る。
In step S708, step S701
The first threshold value and the second threshold value used in the change detection process performed in step 3 are restored, the third threshold value is increased, and the process proceeds to step S701. Similarly, the step size of the third threshold may be any number. In this way, the error rate distribution calculation step 101 in the static state calculates the error rate distribution in the static state, and the error rate distribution calculation step 102 in the dynamic state calculates the error rate distribution in the dynamic state.

【0117】なお、第1のしきい値、第2のしきい値、
第3のしきい値の全ては、共に、図14のフローチャー
トで示される処理が実行される前のステップで、それぞ
れ測定する値の範囲の最小値に初期化されるものとす
る。
The first threshold value, the second threshold value,
It is assumed that all of the third threshold values are initialized to the minimum value in the range of the respective measured values in the step before the processing shown in the flowchart of FIG. 14 is executed.

【0118】[0118]

【発明の効果】本発明は上述したように、本発明によれ
ば、入力される静止状態の動画像および動状態の動画像
に基づいて、映像変化の検出に用いるための1つまたは
複数種類の閾値を算出するようにしたので、ユーザは静
止状態の動画像と動状態の動画像を入力するだけで最適
な閾値を算出して設定することができる。
As described above, according to the present invention, one or a plurality of types for use in detecting a video change are input based on an input still-state moving image and a moving-state moving image. Since the threshold value is calculated, the user can calculate and set the optimum threshold value only by inputting the moving image in the still state and the moving image in the moving state.

【0119】また、本発明の他の特徴によれば、ユーザ
が変化がないと考える静止状態の動画像における閾値毎
のエラー率と、ユーザが変化していると考える動状態の
動画像における閾値毎のエラー率とを加えたもの、すな
わち、静止状態の動画像において変化を検出する割合
と、動状態の動画像において変化を検出しない割合とを
加えたものを算出して1つまたは複数種類の閾値を算出
するようにしたので、例えば上記エラー率が最小となる
閾値を自動的に求めて適切な閾値を算出することができ
る。
Further, according to another feature of the present invention, the error rate for each threshold value in a moving image in a stationary state that the user thinks is unchanged, and the threshold value in a moving image in a moving state that the user thinks are changing. One or a plurality of types are calculated by adding the error rate for each of them, that is, the sum of the rate of detecting a change in a still moving image and the rate of not detecting a change in a moving image. Since the threshold value is calculated, it is possible to automatically obtain the threshold value that minimizes the error rate and calculate an appropriate threshold value.

【0120】また、本発明のその他の特徴によれば、ユ
ーザが誤検出防止優先の指定をした場合には、動状態の
エラー率分布よりも静止状態のエラー率分布に重みをか
けて加え、ユーザが変化検出もれ防止優先の指定をした
場合には、静止状態のエラー率分布よりも動状態のエラ
ー率分布に重みをかけて加えて、1つまたは複数種類の
閾値を算出するようにしたので、検出もれ防止優先また
は誤検出防止優先のどちらの要求にも応じることができ
る。
According to another feature of the present invention, when the user designates the false detection prevention priority, the error rate distribution in the stationary state is weighted and added to the error rate distribution in the dynamic state, When the user specifies the change detection / leakage prevention priority, the error rate distribution in the dynamic state is weighted and added to the error rate distribution in the stationary state to calculate one or more kinds of threshold values. Therefore, it is possible to meet the request of either the detection omission prevention priority or the false detection prevention priority.

【0121】また、本発明のその他の特徴によれば、エ
ラー率が低い閾値範囲をユーザに提示するようにして、
最終的な閾値をユーザが選択できるようにすることがで
き、誤検出防止優先や検出もれ防止優先の指定をユーザ
がきめ細かく設定することができるようになる。
According to another feature of the present invention, the threshold range with a low error rate is presented to the user,
The final threshold value can be selected by the user, and the user can finely set the designation of the false detection prevention priority and the detection failure prevention priority.

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

【図1】本発明の代表的な処理手順を示すフローチャー
トである。
FIG. 1 is a flowchart showing a typical processing procedure of the present invention.

【図2】本発明を適用した動画像処理装置の構成例を示
すブロック図である。
FIG. 2 is a block diagram showing a configuration example of a moving image processing apparatus to which the present invention has been applied.

【図3】本発明を適用した動画像処理装置のハードウェ
アの実現例を示す構成図である。
FIG. 3 is a configuration diagram showing a hardware implementation example of a moving image processing apparatus to which the present invention is applied.

【図4】閾値算出工程の詳細な処理の一例を示すフロー
チャートである。
FIG. 4 is a flowchart showing an example of detailed processing of a threshold value calculation step.

【図5】エラー率分布の一例を示す特性図である。FIG. 5 is a characteristic diagram showing an example of an error rate distribution.

【図6】静止状態のエラー率分布算出工程または動状態
のエラー率分布算出工程の処理の一例を示すフローチャ
ートである。
FIG. 6 is a flowchart showing an example of processing of an error rate distribution calculating step in a stationary state or an error rate distribution calculating step in a moving state.

【図7】変化検出工程の処理を示すフローチャートであ
る。
FIG. 7 is a flowchart showing a process of a change detection process.

【図8】画素の処理順序を説明する図である。FIG. 8 is a diagram illustrating a pixel processing order.

【図9】変化検出工程の処理を説明するフローチャート
である。
FIG. 9 is a flowchart illustrating a process of a change detection process.

【図10】エラー率分布の例を示す図である。FIG. 10 is a diagram showing an example of an error rate distribution.

【図11】静止状態のエラー率分布算出工程または動状
態のエラー率分布算出工程の処理の一例を示すフローチ
ャートである。
FIG. 11 is a flowchart showing an example of processing of an error rate distribution calculating step in a stationary state or an error rate distribution calculating step in a moving state.

【図12】変化検出工程の処理の一例を示すフローチャ
ートである。
FIG. 12 is a flowchart illustrating an example of processing of a change detection process.

【図13】ブロックの分割例、および画素の処理順序と
ブロックの処理順序を説明する図である。
FIG. 13 is a diagram illustrating an example of block division, a pixel processing order, and a block processing order.

【図14】変化検出工程の処理の一例を示すフローチャ
ートである。
FIG. 14 is a flowchart illustrating an example of processing of a change detection process.

【図15】変化検出方法の概略を説明する図である。FIG. 15 is a diagram illustrating an outline of a change detection method.

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

1 閾値算出工程 2 画像入力工程 3 変化検出工程 4 最新変化画像蓄積工程 5 画像出力工程 101 静止状態のエラー率分布算出工程 102 動状態のエラー率分布算出工程 103 合計エラー率分布算出工程 104 最小エラー率閾値算出工程 1001 画像入力手段 1002 変化検出手段 1003 画像出力手段 1004 入力画像蓄積手段 1005 最新変化画像蓄積手段 1006 閾値算出手段 1 threshold calculation step 2 image input step 3 change detection step 4 latest change image accumulation step 5 image output step 101 static state error rate distribution calculation step 102 dynamic state error rate distribution calculation step 103 total error rate distribution calculation step 104 minimum error Rate threshold calculation step 1001 Image input means 1002 Change detection means 1003 Image output means 1004 Input image storage means 1005 Latest changed image storage means 1006 Threshold calculation means

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 映像の変化を検出し、そのデータ量を削
減して出力するようにした動画像処理方法であって、 上記映像の変化を検出するために用いる1つまたは複数
種類の閾値を静止状態の動画像および動状態の動画像に
基づいて算出する閾値算出工程を備えることを特徴とす
る動画像処理方法。
1. A moving image processing method for detecting a change in video, reducing the amount of data and outputting the data, wherein one or a plurality of threshold values used for detecting the change in the video are set. A moving image processing method, comprising: a moving image in a stationary state; and a threshold value calculating step for calculating based on the moving image in a moving state.
【請求項2】 上記静止状態の動画像および動状態の動
画像から各閾値でのエラー率を作成して1つまたは複数
種類の閾値を算出するようにしたことを特徴とする請求
項1に記載の動画像処理方法。
2. The one or more kinds of threshold values are calculated by creating an error rate at each threshold value from the stationary moving image and the moving image in the moving state. The moving image processing method described.
【請求項3】 上記静止状態の動画像および動状態の動
画像でのエラー率を各閾値毎に合計して1つまたは複数
種類の閾値を算出するようにしたことを特徴とする請求
項1または2の何れか1項に記載の動画像処理方法。
3. The one or a plurality of types of threshold values are calculated by summing up the error rates of the moving image in the stationary state and the moving image in the moving state for each threshold value. Or the moving image processing method according to any one of 2).
【請求項4】 上記静止状態の動画像および動状態の動
画像でのエラー率に重み付けを行って各閾値毎に合計す
ることにより、検出もれ防止または誤検出防止を優先し
た1つまたは複数種類の閾値を算出するようにしたこと
を特徴とする請求項1〜3のいずれか1項に記載の動画
像処理方法。
4. One or a plurality of methods giving priority to prevention of missed detection or erroneous detection by weighting the error rates in the moving image in the still state and the moving image in the moving state and summing the error rates for each threshold value. The moving image processing method according to any one of claims 1 to 3, wherein the type threshold value is calculated.
【請求項5】 上記検出もれ防止または誤検出防止の優
先をユーザが段階的に指定するようにしたことを特徴と
する請求項4に記載の記載の動画像処理方法。
5. The moving image processing method according to claim 4, wherein the user specifies the priority of the detection omission prevention or the false detection prevention step by step.
【請求項6】 上記静止状態の動画像および動状態の動
画像から作成した各閾値でのエラー率から、エラー率が
最小となる1つまたは複数種類の閾値を算出するように
したことを特徴とする請求項1〜5の何れか1項に記載
の動画像処理方法。
6. One or a plurality of types of threshold values having a minimum error rate are calculated from the error rate at each threshold value created from the moving image in the stationary state and the moving image in the moving state. The moving image processing method according to any one of claims 1 to 5.
【請求項7】 上記静止状態の動画像および動状態の動
画像から作成した各閾値でのエラー率から、エラー率が
ある値以下である1つまたは複数種類の閾値の範囲を算
出し、上記算出した閾値の範囲からユーザが1つまたは
複数種類の閾値を指定するようにしたことを特徴とする
請求項1〜6の何れか1項に記載の動画像処理方法。
7. A range of one or a plurality of types of threshold values having an error rate equal to or less than a certain value is calculated from the error rate at each threshold value created from the still state moving image and the moving state moving image, 7. The moving image processing method according to claim 1, wherein the user specifies one or a plurality of types of threshold values from the calculated threshold value range.
【請求項8】 映像変化の検出に用いるための1つまた
は複数種類の閾値を静止状態の動画像および動状態の動
画像に基づいて算出する閾値算出工程と、 映像供給源から供給される映像から、所定の静止画像を
取得するとともに、上記取得した画像を入力画像として
入力する画像入力工程と、 上記入力画像と、変化が検出された最新変化画像とを比
較して映像の変化を検出する変化検出工程と、 上記変化が検出された最新変化画像を蓄積する最新変化
画像蓄積工程と、 上記入力画像のうち、変化が検出された画像を出力する
画像出力工程とを備えることを特徴とする動画像処理方
法。
8. A threshold value calculating step of calculating one or more kinds of threshold values for use in detecting a video change based on a moving image in a stationary state and a moving image in a moving state, and an image supplied from a video source. From the above, a predetermined still image is acquired, and an image input step of inputting the acquired image as an input image, and the input image and the latest change image in which a change is detected are compared to detect a change in video. A change detection step, a latest change image storage step of storing the latest change image in which the change is detected, and an image output step of outputting an image in which a change is detected among the input images. Video processing method.
【請求項9】 上記閾値算出工程は、1つまたは複数種
類の閾値を算出するようにしたことを特徴とする請求項
8に記載の動画像処理方法。
9. The moving image processing method according to claim 8, wherein the threshold value calculating step calculates one or more kinds of threshold values.
【請求項10】 映像の変化を検出し、そのデータ量を
削減して出力するようにした動画像処理装置であって、 上記映像変化の検出に用いるための1つまたは複数種類
の閾値を、静止状態の動画像および動状態の動画像に基
づいて算出する閾値算出手段を具備することを特徴とす
る動画像処理装置。
10. A moving image processing apparatus for detecting a change in video, reducing the amount of data and outputting the data, wherein one or a plurality of types of threshold values for use in detecting the change in the video are provided. A moving image processing apparatus, comprising: a moving image in a stationary state and a threshold value calculating means for calculating the moving image in the moving state.
【請求項11】 映像の変化を検出し、そのデータ量を
削減して出力するようにした動画像処理装置であって、 映像変化の検出に用いるための1つまたは複数種類の閾
値を、静止状態の動画像および動状態の動画像に基づい
て算出する閾値算出手段と、 検出もれ防止または誤検出防止の優先をユーザが段階的
に指示するようにするための優先指示手段とを備えるこ
とを特徴とする動画像処理装置。
11. A moving image processing apparatus for detecting a change in video, reducing the amount of data and outputting the data, wherein one or a plurality of types of threshold values used for detecting the change in the video are static. A moving image of the state and a threshold value calculating unit that calculates based on the moving image of the moving state, and a priority instructing unit that allows the user to stepwise give priority to the detection failure prevention or the false detection prevention. And a moving image processing device.
【請求項12】 映像の変化を検出し、そのデータ量を
削減して出力するようにした動画像処理装置であって、 映像変化の検出に用いるための1つまたは複数種類の閾
値を、静止状態の動画像および動状態の動画像に基づい
て算出する閾値算出手段と、 上記閾値算出手段が算出した閾値の範囲から、ユーザが
所定の閾値を指示するようにするための閾値指示手段を
備えることを特徴とする動画像処理装置。
12. A moving image processing apparatus for detecting a change in video, reducing the amount of data and outputting the data, wherein one or a plurality of types of threshold values used for detecting the change in the video are static. A moving image of a state and a threshold calculating unit that calculates based on the moving image of the moving state; and a threshold instructing unit that allows the user to instruct a predetermined threshold from the range of the threshold calculated by the threshold calculating unit. A moving image processing device characterized by the above.
【請求項13】 映像の変化を検出し、そのデータ量を
削減して出力するようにした動画像処理装置であって、 映像変化の検出に用いるための1つまたは複数種類の閾
値を、静止状態の動画像および動状態の動画像に基づい
て算出する閾値算出手段と、 映像供給源より供給される映像から静止画像を入力する
画像入力手段と、 上記入力画像と、変化を検出した最新変化画像とを比較
することにより映像の変化を検出する変化検出手段と、 上記最新変化画像を蓄積するための最新変化画像蓄積手
段と、 上記入力画像のうち、変化を検出した画像を出力するよ
うにする画像出力手段とを備えることを特徴とする動画
像処理装置。
13. A moving image processing apparatus for detecting a change in video, reducing the amount of data and outputting the data, wherein one or a plurality of types of threshold values used for detecting the change in the video are static. State moving image and threshold value calculating means for calculating based on the moving state moving image, image input means for inputting a still image from the image supplied from the image supply source, the input image, and the latest change detecting the change A change detecting unit that detects a change in video by comparing the image, a latest change image storage unit that stores the latest change image, and an image in which a change is detected among the input images is output. And an image output unit for performing the moving image processing.
【請求項14】 上記閾値算出手段は、1つまたは複数
種類の閾値を算出することを特徴とする請求項10〜1
3の何れか1項に記載の動画像処理装置。
14. The threshold value calculating means calculates one or a plurality of kinds of threshold values.
The moving image processing apparatus according to any one of 3 above.
JP8003599A 1996-01-12 1996-01-12 Moving image processing method and apparatus Pending JPH09200768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8003599A JPH09200768A (en) 1996-01-12 1996-01-12 Moving image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8003599A JPH09200768A (en) 1996-01-12 1996-01-12 Moving image processing method and apparatus

Publications (1)

Publication Number Publication Date
JPH09200768A true JPH09200768A (en) 1997-07-31

Family

ID=11561956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8003599A Pending JPH09200768A (en) 1996-01-12 1996-01-12 Moving image processing method and apparatus

Country Status (1)

Country Link
JP (1) JPH09200768A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160017A (en) * 2003-10-30 2005-06-16 Canon Inc Image motion detection device, image motion detection method, program, and recording medium
US7280753B2 (en) 2003-09-03 2007-10-09 Canon Kabushiki Kaisha Display apparatus, image processing apparatus, and image processing system
JP2010016892A (en) * 2003-10-30 2010-01-21 Canon Inc Image movement detection device, image movement detection method, program, and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7280753B2 (en) 2003-09-03 2007-10-09 Canon Kabushiki Kaisha Display apparatus, image processing apparatus, and image processing system
US7777780B2 (en) 2003-09-03 2010-08-17 Canon Kabushiki Kaisha Image motion display method and apparatus
US8654199B2 (en) 2003-09-03 2014-02-18 Canon Kabushiki Kaisha Image motion detection apparatus and method for determining a parameter for detecting a moving object in a moving image and computer readable medium having encoded thereon a program instructing a computer to perform the method
US9131122B2 (en) 2003-09-03 2015-09-08 Canon Kabushiki Kaisha Apparatus, method, system, and storage medium causing a display to display a graph indicating a degree of change of part of a captured image
JP2005160017A (en) * 2003-10-30 2005-06-16 Canon Inc Image motion detection device, image motion detection method, program, and recording medium
JP2010016892A (en) * 2003-10-30 2010-01-21 Canon Inc Image movement detection device, image movement detection method, program, and recording medium

Similar Documents

Publication Publication Date Title
JP2940762B2 (en) Video camera with image stabilization device
US8451284B2 (en) Video acquisition with integrated GPU processing
JP3461626B2 (en) Specific image region extraction method and specific image region extraction device
US8260079B2 (en) Video acquisition with processing based on ancillary data
US9105122B2 (en) Image processing apparatus and image processing method
US7596280B2 (en) Video acquisition with integrated GPU processing
US8279937B2 (en) Correcting moving image wavering
CN112601008B (en) Camera switching method, terminal, device and computer readable storage medium
JPH08242449A (en) Low bit rate foreground region detection device for video signal encoder
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
US7239758B2 (en) Signal processing device for reducing noise of image signal, signal processing program, and signal processing method
JPH08251474A (en) Motion vector detection device, motion vector detection method, image blur correction device, image tracking device, and imaging device
US6192163B1 (en) Image processing method and image processing apparatus
JPH09200768A (en) Moving image processing method and apparatus
US20240080544A1 (en) Imaging apparatus, control method for imaging apparatus, and control program
WO2001065859A1 (en) Image pickup apparatus
JPH04213973A (en) Image shake corrector
JPH08320935A (en) Moving image processing method and apparatus
NL1013983C2 (en) Device and method for automatically controlling exposure time in a CMOS image sensor.
JP2019219922A (en) Image processing device, image processing method, and program
JP4250807B2 (en) Field frequency conversion device and conversion method
JP3792826B2 (en) Image processing method and image processing apparatus
US7599007B2 (en) Noise detection method, noise reduction method, noise detection device, and noise reduction device
JPH099135A (en) Motion vector detector
CN113395463A (en) Matting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060324

A977 Report on retrieval

Effective date: 20070727

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20070807

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Effective date: 20071204

Free format text: JAPANESE INTERMEDIATE CODE: A02