JPH04373085A - Background image replacing device - Google Patents
Background image replacing deviceInfo
- Publication number
- JPH04373085A JPH04373085A JP3151230A JP15123091A JPH04373085A JP H04373085 A JPH04373085 A JP H04373085A JP 3151230 A JP3151230 A JP 3151230A JP 15123091 A JP15123091 A JP 15123091A JP H04373085 A JPH04373085 A JP H04373085A
- Authority
- JP
- Japan
- Prior art keywords
- image
- time
- coordinates
- background
- edge
- 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
Links
Landscapes
- Image Processing (AREA)
- Studio Circuits (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、与えられた静止画像か
ら対象以外の背景画像をあらかじめ用意した別の画像で
置換した背景置換画像を得る背景画像置換装置に関する
ものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a background image substituting apparatus for obtaining a background substituting image by substituting a background image other than the object from a given still image with another previously prepared image.
【0002】0002
【従来の技術】画像中から特定の対象領域(例えば人物
)を抽出し背景画像を置換する方法として、2画像間の
差分情報を利用する方法が提案されている。この方法で
はあらかじめ対象の写っていない背景画像を撮影し保存
しておき、この画像と対象の写っている画像との差分を
とることで対象を抽出し背景画像を置換するのが一般的
である。2. Description of the Related Art A method using difference information between two images has been proposed as a method for extracting a specific target area (for example, a person) from an image and replacing the background image. In this method, it is common to take and save a background image that does not include the target in advance, and then extract the target and replace the background image by taking the difference between this image and the image that does include the target. .
【0003】0003
【発明が解決しようとする課題】しかし、背景をあらか
じめ撮影しておく方法では照明条件が変化した場合やカ
メラ位置が変化した場合には差分情報を対象抽出に利用
できなくなるという問題があった。[Problems to be Solved by the Invention] However, with the method of photographing the background in advance, there is a problem in that when the lighting conditions change or the camera position changes, the difference information cannot be used for target extraction.
【0004】本発明は、あらかじめ対象の写っていない
背景画像を撮影し保存しておく必要がないようにするこ
とを目的としている。[0004] An object of the present invention is to eliminate the need to take and save a background image in which no object is shown in advance.
【0005】[0005]
【課題を解決するための手段】次々と入力される静止画
信号に対し、時刻(t−1)の静止画像(t−1)と時
刻tの静止画像tとの間の減算を実行し減算結果の絶対
値をとることにより前記2静止画信号間で動きのある領
域を抽出した差分画像を得る。前記差分画像をしきい値
処理により二値化した二値化差分画像を得る。前記二値
化差分画像に対し収縮・膨張等の画像処理を施しノイズ
除去・エッジ切れの補正を行った補正二値化差分画像を
得る。前記補正二値化差分画像から時刻tでの対象のY
座標に関する頂点座標情報および対象が左右どちらの方
向に移動したかの移動情報を得る。前記移動情報から対
象が左から右に移動したと判定した場合には対象の前記
頂点座標を起点とする右半分のエッジ座標としては前記
補正二値化差分画像の前記頂点座標を起点とする右半分
のエッジ座標を用い、対象の前記頂点座標を起点とする
左半分のエッジ座標としては時刻tの静止画像において
時刻tでの対象の前記頂点座標を開始点としてたどった
対象の左半分のエッジ座標を用いる。前記移動情報から
対象が右から左に移動したと判定した場合には対象の前
記頂点座標を起点とする左半分のエッジ座標としては前
記補正二値化差分画像の前記頂点座標を起点とする左半
分のエッジ座標を用い、対象の前記頂点座標を起点とす
る右半分のエッジ座標としては時刻tの静止画像におい
て時刻tでの対象の前記頂点座標を開始点としてたどっ
た対象の右半分のエッジ座標を用いる。上記により求め
た時刻tの対象のエッジ座標情報を基に時刻tでの対象
以外の背景画像を別の画像で置換した背景置換画像を得
ることを主要な特徴とする。[Means for solving the problem] For still image signals that are input one after another, subtraction is performed between a still image (t-1) at time (t-1) and a still image t at time t. By taking the absolute value of the result, a difference image is obtained in which a moving area is extracted between the two still image signals. A binarized difference image is obtained by binarizing the difference image by threshold processing. Image processing such as contraction and expansion is performed on the binarized difference image to obtain a corrected binarized difference image in which noise is removed and edges are corrected. Y of the target at time t from the corrected binarized difference image
Vertex coordinate information regarding the coordinates and movement information indicating which direction the object has moved to the left or right are obtained. If it is determined from the movement information that the object has moved from left to right, the edge coordinates of the right half starting from the vertex coordinates of the object are the right edge coordinates starting from the vertex coordinates of the corrected binarized difference image. Using half edge coordinates, the edge coordinates of the left half starting from the vertex coordinates of the object are the edges of the left half of the object traced starting from the vertex coordinates of the object at time t in the still image at time t. Use coordinates. If it is determined from the movement information that the object has moved from right to left, the edge coordinates of the left half starting from the vertex coordinates of the object are the left half edge coordinates starting from the vertex coordinates of the corrected binarized difference image. Using half edge coordinates, the edge coordinates of the right half starting from the vertex coordinates of the target are the edges of the right half of the target traced starting from the vertex coordinates of the target at time t in the still image at time t. Use coordinates. The main feature is to obtain a background replacement image in which a background image other than the object at time t is replaced with another image based on the edge coordinate information of the object at time t obtained as described above.
【0006】[0006]
【作用】本発明は上記手段により、時間的に連続する2
画像間の差分情報と対象の動き情報を利用し対象以外の
背景画像をあらかじめ用意した別の画像で置換した背景
置換画像を得ることを可能としている。そして時刻tの
静止画像において対象以外の背景画像を別の画像で置換
した静止画像を得ている。[Operation] By the above means, the present invention provides two temporally continuous
Using difference information between images and target movement information, it is possible to obtain a background replacement image in which a background image other than the target is replaced with another image prepared in advance. Then, in the still image at time t, a still image is obtained in which the background image other than the target is replaced with another image.
【0007】[0007]
【実施例】以下、本発明の一実施例により詳細に説明す
る。図1は本発明の一実施例のブロック図である。図に
おいて、1は背景画像置換装置の全体図であり、2は差
分画像取得部、21,22はそれぞれ差分画像取得部を
構成する画像間減算実行部、差分画像二値化部、3は動
き判定部、4は対象領域抽出部、41,42,43,4
4はそれぞれ画像補正部、動き情報抽出部、差分画像エ
ッジ抽出部、対象画像エッジ抽出部、5は背景画像置換
部、6は画像蓄積部、61,62,63はそれぞれ入力
画像蓄積部、背景画像蓄積部、背景置換画像蓄積部であ
り、これら各部から構成される。[Example] The present invention will be explained in detail below using an example. FIG. 1 is a block diagram of one embodiment of the present invention. In the figure, 1 is an overall view of the background image replacement device, 2 is a difference image acquisition unit, 21 and 22 are inter-image subtraction execution units and difference image binarization units that constitute the difference image acquisition unit, and 3 is a motion Judgment unit, 4 is target area extraction unit, 41, 42, 43, 4
4 is an image correction section, a motion information extraction section, a differential image edge extraction section, and a target image edge extraction section, 5 is a background image replacement section, 6 is an image storage section, and 61, 62, and 63 are an input image storage section and a background, respectively. They are an image storage section and a background replacement image storage section, and are composed of these sections.
【0008】以下、実施例の動作について説明する。時
刻tでの静止画像tが背景画像置換装置1に入力される
と、先ず、差分画像取得部2内の画像間減算実行部21
において画像蓄積部6内の入力画像蓄積部61に蓄積さ
れている時刻(t−1)での静止画像(t−1)と前記
静止画像tとの2静止画間での減算を実行し、その減算
結果の絶対値をとることにより差分画像を得る。これに
より2静止画間で動きのある領域が抽出できる。The operation of the embodiment will be explained below. When a still image t at time t is input to the background image replacement device 1, first, the inter-image subtraction execution unit 21 in the difference image acquisition unit 2
, subtraction is performed between the still image (t-1) at time (t-1) stored in the input image storage section 61 of the image storage section 6 and the still image t; A difference image is obtained by taking the absolute value of the subtraction result. This makes it possible to extract areas with movement between two still images.
【0009】次に差分画像取得部2内の差分画像二値化
部22において前記差分画像をしきい値処理により二値
化した二値化差分画像を得る。しきい値の決定はしきい
値処理対象の前記二値化差分画像について「5」刻み毎
に階調値の頻度の和を集計した濃度ヒストグラム上にお
いて、MAXの階調値から隣接する階調値との頻度差を
調べ頻度差が最大となる直前の階調値をしきい値とする
方法をとる。Next, a difference image binarization unit 22 in the difference image acquisition unit 2 binarizes the difference image by threshold processing to obtain a binarized difference image. The threshold value is determined from the MAX gradation value to the adjacent gradation value on the density histogram, which is the sum of the frequencies of the gradation values every "5" for the binarized difference image to be subjected to threshold processing. A method is used in which the frequency difference with the value is checked and the gradation value immediately before the frequency difference becomes the maximum is set as the threshold value.
【0010】次に動き判定部3において前記二値化差分
画像で階調値が「1」の画素数を調べ画素数があらかじ
め規定した数以下の場合には2静止画間で対象の動きが
少ないと判定し背景置換画像として直前に得た背景置換
画像をそのまま利用し次の静止画信号(t+1)の処理
へと移る。階調値が「1」の画素数があらかじめ規定し
た数以上の場合には2静止画間で対象の動きが大きいと
判定し以降の処理を行う。Next, the motion determining unit 3 checks the number of pixels with a gradation value of "1" in the binarized difference image, and if the number of pixels is less than a predetermined number, it is determined that there is no movement of the object between the two still images. It is determined that the amount is small, and the background replacement image obtained immediately before is used as the background replacement image, and the process moves to the next still image signal (t+1). If the number of pixels with a gradation value of "1" is greater than or equal to a predetermined number, it is determined that there is a large movement of the object between the two still images, and subsequent processing is performed.
【0011】前記二値化差分画像が対象領域抽出部4に
入力されると、先ず、画像補正部41において二値化差
分画像に収縮・膨張等の画像処理を施し二値化差分画像
のノイズ除去、エッジ切れの補正を行った補正二値化差
分画像を得る。When the binarized difference image is input to the target area extraction unit 4, first, the image correction unit 41 performs image processing such as contraction and expansion on the binarized difference image to eliminate noise in the binarized difference image. A corrected binarized difference image is obtained after removing and correcting edge breakage.
【0012】次に動き情報抽出部42において時刻tで
の対象の頂点座標情報および対象が左右どちらの方向に
移動したかの移動情報を得る。時刻tにおける対象の頂
点座標の抽出は前記時刻tでの静止画像から前記時刻(
t−1)での静止画像を減算し,その減算結果が正であ
る画素のみからなる画像を求め収縮処理によりノイズを
除去した後,左隅(X座標=0,Y座標=0)から右隅
に向けて階調値が「1」の画素があるかを検査し,最初
に検出した階調値が「1」の画素の座標を時刻tにおけ
る対象の頭頂座標とする。移動情報については時刻tに
おける対象の頂点座標と時刻(t−1)における対象の
頂点座標とを比較することにより,対象が左から右に移
動したか,あるいは右から左に移動したかを判定する。Next, the motion information extraction section 42 obtains vertex coordinate information of the object at time t and movement information indicating in which direction the object has moved, to the left or right. Extraction of the target vertex coordinates at time t is performed by extracting the vertex coordinates of the target from the still image at the time t at the time (
After subtracting the still image at t-1), obtaining an image consisting only of pixels for which the subtraction result is positive, and removing noise by contraction processing, move from the left corner (X coordinate = 0, Y coordinate = 0) to the right corner. It is checked whether there is a pixel with a gradation value of "1" toward , and the coordinates of the first detected pixel with a gradation value of "1" are taken as the coordinates of the top of the subject's head at time t. Regarding movement information, by comparing the vertex coordinates of the target at time t and the vertex coordinates of the target at time (t-1), it is determined whether the target has moved from left to right or from right to left. do.
【0013】前記移動情報から対象が左から右に移動し
たと判定した場合には差分画像エッジ抽出部43におい
て前記補正二値化差分画像の前記頂点座標を起点とする
右半分のエッジ座標を対象の前記頂点座標を起点とする
右半分のエッジ座標として抽出し、対象画像エッジ抽出
部44において時刻tでの対象の前記頂点座標を開始点
として対象の左半分のエッジをたどることにより対象の
前記頂点座標を起点とする左半分のエッジ座標を抽出す
る。図2に対象が人物である場合の移動後の頭頂座標か
らの人物の左半分のエッジの追跡例を示す。If it is determined from the movement information that the object has moved from left to right, the difference image edge extraction unit 43 extracts the edge coordinates of the right half of the corrected binarized difference image starting from the vertex coordinates as the target. The edge coordinates of the right half of the target image are extracted as the edge coordinates of the right half starting from the vertex coordinates of the target image at time t, and the edges of the left half of the target are traced using the vertex coordinates of the target at time t as a starting point in the target image edge extraction unit 44. Extract the edge coordinates of the left half starting from the vertex coordinates. FIG. 2 shows an example of tracking the edge of the left half of a person from the coordinates of the top of the head after movement when the object is a person.
【0014】前記移動情報から対象が右から左に移動し
たと判定した場合には差分画像エッジ抽出部43におい
て前記補正二値化差分画像の前記頂点座標を起点とする
左半分のエッジ座標を対象の前記頂点座標を起点とする
左半分のエッジ座標として抽出し、対象画像エッジ抽出
部44において時刻tでの対象の前記頂点座標を開始点
として対象の右半分のエッジをたどることにより対象の
前記頂点座標を起点とする右半分のエッジ座標を抽出す
る。If it is determined from the movement information that the object has moved from right to left, the difference image edge extraction unit 43 extracts the edge coordinates of the left half of the corrected binarized difference image starting from the vertex coordinates as the object. The edge coordinates of the left half of the target image are extracted as the edge coordinates of the left half starting from the vertex coordinates of the target image, and the edge coordinates of the right half of the target are traced in the target image edge extraction unit 44 with the vertex coordinates of the target at time t as the starting point. Extract the edge coordinates of the right half starting from the vertex coordinates.
【0015】次に背景画像置換部5において前記により
求めた時刻tでの対象のエッジ座標情報を基に時刻tで
の対象以外の背景画像を画像蓄積部6内の背景画像蓄積
部62に蓄積した画像で置換し背景置換画像を得る。こ
の背景置換画像を背景画像置換装置1から出力するとと
もに画像蓄積部6内の背景置換画像蓄積部63に蓄積す
る。Next, the background image replacement unit 5 stores a background image other than the target at time t in the background image storage unit 62 in the image storage unit 6 based on the edge coordinate information of the target at time t obtained as described above. Replace the image with the original image to obtain a background replacement image. This background replaced image is output from the background image replacing device 1 and is stored in the background replaced image storage section 63 in the image storage section 6.
【0016】[0016]
【発明の効果】以上説明したように、本発明によれば、
時間的に連続する2静止画像間の差分情報と対象の動き
情報を利用するので、あらかじめ対象の写っていない背
景画像を撮影し保存しておく必要がなく照明条件の変化
やカメラ位置の変化による影響を受けることなく対象以
外の背景画像を別の画像で置換した背景置換画像を高速
に得ることが可能となる。従って本発明を適用すれば、
例えば、静止画TV電話を用いて通信を行う場合に人物
以外の背景を相手に見せたくないという利用者の要求に
対して背景として別の画像を送るという付加サービスを
実施することが可能となりTV電話等による画像通信サ
ービスの利用の普及を促進するという効果がある。[Effects of the Invention] As explained above, according to the present invention,
Since it uses the difference information between two temporally consecutive still images and the movement information of the target, there is no need to take and save a background image that does not include the target in advance. It becomes possible to quickly obtain a background replacement image in which a background image other than the target image is replaced with another image without being affected. Therefore, if the present invention is applied,
For example, when communicating using a still image TV phone, it is possible to implement an additional service that sends a different image as the background in response to a user's request to not show the background of anything other than the person on the TV. This has the effect of promoting the spread of the use of image communication services by telephone and the like.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
【図2】対象のエッジ座標をたどる方法を示す図である
。FIG. 2 is a diagram illustrating a method of tracing edge coordinates of an object.
1 背景画像置換装置 2 差分画像取得部 21 画像間減算実行部 22 差分画像二値化部 3 動き判定部 4 対象領域抽出部 41 画像補正部 42 動き情報抽出部 43 差分画像エッジ抽出部 44 対象画像エッジ抽出部 5 背景画像置換部 6 画像蓄積部 61 入力画像蓄積部 62 背景画像蓄積部 63 背景置換画像蓄積部 1 Background image replacement device 2 Difference image acquisition unit 21 Inter-image subtraction execution unit 22 Difference image binarization unit 3 Motion determination section 4 Target area extraction part 41 Image correction section 42 Motion information extraction section 43 Difference image edge extraction part 44 Target image edge extraction section 5 Background image replacement part 6 Image storage section 61 Input image storage section 62 Background image storage section 63 Background replacement image storage section
Claims (1)
刻(t−1)の静止画像(t−1)と時刻tの静止画像
t間の減算を実行し減算結果の絶対値をとることにより
前記2静止画像間で動きのある領域を抽出した差分画像
を得る手段と、前記差分画像をしきい値処理により二値
化した二値化差分画像を得る手段と、補正二値化差分画
像から時刻tでの対象のY座標に関する頂点座標情報お
よび対象が左右どちらの方向に移動したかの移動情報を
得る手段と、前記移動情報から対象が左から右に移動し
たと判定した場合には対象の前記頂点座標を起点とする
右半分のエッジ座標としては前記補正二値化差分画像の
前記頂点座標を起点とする右半分のエッジ座標を用い、
対象の前記頂点座標を起点とする左半分のエッジ座標と
しては時刻tの静止画像において時刻tでの対象の前記
頂点座標を開始点としてたどった対象の左半分のエッジ
座標を用い、前記移動情報から対象が右から左に移動し
たと判定した場合には対象の前記頂点座標を起点とする
左半分のエッジ座標としては前記補正二値化差分画像の
前記頂点座標を起点とする左半分のエッジ座標を用い、
対象の前記頂点座標を起点とする右半分のエッジ座標と
しては時刻tの静止画像において時刻tでの対象の前記
頂点座標を開始点としてたどった対象の右半分のエッジ
座標を用いる手段と、上記により求めた時刻tの対象の
エッジ座標情報を基に時刻tでの対象以外の背景画像を
あらかじめ用意してある別の画像で置換した背景置換画
像を得る手段を具備することを特徴とする背景画像置換
装置。Claim 1: Perform subtraction between a still image (t-1) at time (t-1) and a still image t at time t for still images that are input one after another, and take the absolute value of the subtraction result. means for obtaining a difference image by extracting a moving area between the two still images; means for obtaining a binarized difference image by binarizing the difference image by threshold processing; and a corrected binarized difference image. means for obtaining vertex coordinate information regarding the Y-coordinate of the object at time t and movement information indicating which direction the object has moved from left to right, and when it is determined from the movement information that the object has moved from left to right; As the edge coordinates of the right half starting from the vertex coordinates of the target, use the edge coordinates of the right half starting from the vertex coordinates of the corrected binarized difference image,
As the edge coordinates of the left half starting from the vertex coordinates of the object, use the edge coordinates of the left half of the object traced from the vertex coordinates of the object at time t as the starting point in the still image at time t, and If it is determined that the object has moved from right to left, the edge coordinates of the left half starting from the vertex coordinates of the object are the edges of the left half starting from the vertex coordinates of the corrected binarized difference image. Using coordinates,
means for using the edge coordinates of the right half of the object traced from the vertex coordinates of the object at time t as a starting point in a still image at time t as the edge coordinates of the right half starting from the vertex coordinates of the object; A background characterized by comprising means for obtaining a background replacement image in which a background image other than the object at time t is replaced with another image prepared in advance based on the edge coordinate information of the object at time t obtained by. Image replacement device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3151230A JPH04373085A (en) | 1991-06-24 | 1991-06-24 | Background image replacing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3151230A JPH04373085A (en) | 1991-06-24 | 1991-06-24 | Background image replacing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04373085A true JPH04373085A (en) | 1992-12-25 |
Family
ID=15514092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3151230A Pending JPH04373085A (en) | 1991-06-24 | 1991-06-24 | Background image replacing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04373085A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998015117A1 (en) * | 1996-10-04 | 1998-04-09 | Nippon Telegraph And Telephone Corporation | Method for temporally and spatially integrating and managing a plurality of videos, device used for the same, and recording medium storing program of the method |
US8830413B2 (en) | 2003-01-15 | 2014-09-09 | Semiconductor Energy Laboratory Co., Ltd. | Peeling method and method for manufacturing display device using the peeling method |
-
1991
- 1991-06-24 JP JP3151230A patent/JPH04373085A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998015117A1 (en) * | 1996-10-04 | 1998-04-09 | Nippon Telegraph And Telephone Corporation | Method for temporally and spatially integrating and managing a plurality of videos, device used for the same, and recording medium storing program of the method |
US8830413B2 (en) | 2003-01-15 | 2014-09-09 | Semiconductor Energy Laboratory Co., Ltd. | Peeling method and method for manufacturing display device using the peeling method |
US9013650B2 (en) | 2003-01-15 | 2015-04-21 | Semiconductor Energy Laboratory Co., Ltd. | Peeling method and method for manufacturing display device using the peeling method |
US9299879B2 (en) | 2003-01-15 | 2016-03-29 | Semiconductor Energy Laboratory Co., Ltd. | Peeling method and method for manufacturing display device using the peeling method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3461626B2 (en) | Specific image region extraction method and specific image region extraction device | |
JP4597391B2 (en) | Facial region detection apparatus and method, and computer-readable recording medium | |
WO2020029518A1 (en) | Monitoring video processing method, device and computer readable medium | |
JP2001229390A (en) | Method and device for changing pixel image into segment | |
JP2003058894A (en) | Method and device for segmenting pixeled image | |
JPH07168932A (en) | Method for search of human being in video image | |
CN108154491B (en) | Image reflection eliminating method | |
JP3490910B2 (en) | Face area detection device | |
JPH03274983A (en) | Picture recognition device | |
CN107820013A (en) | A kind of photographic method and terminal | |
WO2023019793A1 (en) | Determination method, cleaning robot, and computer storage medium | |
KR20110005408A (en) | Image Noise Reduction Device and Method | |
CN113627306A (en) | Key point processing method and device, readable storage medium and terminal | |
JPH10162118A (en) | Device and method for image processing | |
KR102767452B1 (en) | How to create a slap/finger foreground mask | |
CN111583357A (en) | Object motion image capturing and synthesizing method based on MATLAB system | |
CN110689554A (en) | Background motion estimation method and device for infrared image sequence and storage medium | |
JP3818044B2 (en) | Noise removing apparatus, noise removing method, and computer-readable recording medium | |
JPH04373085A (en) | Background image replacing device | |
JP3230509B2 (en) | Moving image processing device | |
CN118038302A (en) | Method and device for determining outline of moving object, electronic equipment and storage medium | |
JP3417635B2 (en) | Intruding object recognition method | |
JP2621806B2 (en) | Background feature mask generation device and moving object feature extraction device | |
JP2000078564A (en) | System for tracing person on television camera monitor | |
JPH0589243A (en) | Background image alternation device |