JP2018206142A - Camera work determining apparatus and program - Google Patents
Camera work determining apparatus and program Download PDFInfo
- Publication number
- JP2018206142A JP2018206142A JP2017111882A JP2017111882A JP2018206142A JP 2018206142 A JP2018206142 A JP 2018206142A JP 2017111882 A JP2017111882 A JP 2017111882A JP 2017111882 A JP2017111882 A JP 2017111882A JP 2018206142 A JP2018206142 A JP 2018206142A
- Authority
- JP
- Japan
- Prior art keywords
- camera work
- image
- inter
- motion
- camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Image Analysis (AREA)
Abstract
Description
本発明は、コンピュータ及びハードディスクを用いた映像処理分野において、映像のカメラワークを判定する装置及びプログラムに関する。 The present invention relates to an apparatus and a program for determining video camerawork in the field of video processing using a computer and a hard disk.
映像のズームイン、パンニング等の「カメラワーク」は、映像の制作者が視聴者に被写体またはイベント内容を強く印象付けたい場合に用いられる傾向がある。したがって、カメラワークに関する情報は、見たい場面を検索する作業、注目すべき場面をセレクトしてダイジェスト映像を作る作業等を効率的に進めるために、重要な手掛かりとなる。 “Camera work” such as zooming in and panning video tends to be used when the video producer wants to make a strong impression of the subject or event content to the viewer. Therefore, information relating to camera work is an important clue for efficiently advancing operations such as searching for a desired scene and selecting a notable scene to create a digest video.
カメラワークを自動的に判定する技術としては、例えば特許文献1,2,3の手法が提案されている。
As techniques for automatically determining camera work, for example, methods of
特許文献1の手法は、映像圧縮符号化データから動きベクトルを含む符号化情報を抽出し、動きベクトルからカメラワークまたは被写体と無関係な動きベクトルをノイズとして除去し、ノイズ除去後の動きベクトルからカメラワークを判定するものである。
The method of
特許文献2の手法は、フレーム内の右端、左端等の外縁ブロックについて、フレーム内予測とフレーム間予測との間の差に基づいて、時間方向の相関と空間方向の相関との大小関係を判定し、パンまたはチルトのカメラワークを判定するものである。
The method of
特許文献3の手法は、フレームの局所領域を空間微分及び時間微分することで、その移動方向を検出し、局所領域の移動方向からカメラワークを判定するものである。
The method of
前述の特許文献1,2の手法は、MPEG等の特定の符号化方式にて生成された映像を対象とするものであり、汎用性が低い。また、前述の特許文献3の手法は、映像の符号化方式に依存しないものであり、汎用性が高い。しかし、いずれの手法も、連続したフレーム画像間の動きデータを求める必要があり、処理時間が増大する可能性がある。
The methods described in
また、特許文献1,3の手法は、画像全体から求めた動きデータを用いるため、被写体の動きがノイズとなり、カメラワークの判定精度が低下する可能性がある。これに対し、特許文献2の手法は、画像の右端、左端等の外縁ブロックの動きデータを用いるため、特許文献1,3の手法と異なり、カメラワークの判定精度はさほど低下しない。
In addition, since the methods of
しかしながら、特許文献2の手法では、パンまたはチルトのカメラワークのみを判定するものであり、ズームインまたはズームアウトのカメラワークを判定することができない。特許文献2の手法により判定されるカメラワークは、所定の種類に限定されていることから、カメラワークの情報を用いて所望の場面を検索する作業等を進めるのに効率が悪く、不十分であるという問題があった。
However, the method of
そこで、本発明は前記課題を解決するためになされたものであり、その目的は、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定可能なカメラワーク判定装置及びプログラムを提供することにある。 Accordingly, the present invention has been made to solve the above-described problems, and an object of the present invention is to provide a camera work determination device and a program capable of determining camera work at high speed and in detail without depending on a video encoding method. It is to provide.
前記課題を解決するために、請求項1のカメラワーク判定装置は、映像からフレーム画像をサンプリングし、所定間隔毎に画像ペアを生成するフレーム画像サンプリング部と、前記フレーム画像サンプリング部により生成された前記画像ペアの背景部分を分割した複数の背景領域のそれぞれについて、動きデータを生成し、前記複数の背景領域の動きデータに基づいて、前記画像ペアのカメラワークの種類を示す画像間カメラワーク種を判定する画像間カメラワーク判定部と、前記画像間カメラワーク判定部により判定された前記画像ペアの画像間カメラワーク種に基づいて、前記映像のカメラワークを判定するカメラワーク判定部と、を備えたことを特徴とする。
In order to solve the above-mentioned problem, the camerawork determination device according to
また、請求項2のカメラワーク判定装置は、請求項1に記載のカメラワーク判定装置において、前記カメラワーク判定部が、同じ前記画像間カメラワーク種が継続する前記画像ペアの数が所定数以上である場合、その継続区間をカメラワーク区間として判定し、当該カメラワーク区間における前記画像ペアの画像間カメラワーク種を当該カメラワーク区間のカメラワーク種として出力する、ことを特徴とする。
The camera work determination device according to
また、請求項3のカメラワーク判定装置は、請求項1または2に記載のカメラワーク判定装置において、前記画像間カメラワーク判定部が、前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎の前記動きデータに基づいて、前記動きデータが最大となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の外側から中央へ向いている場合、前記画像ペアの画像間カメラワーク種をズームインとして判定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の中央から外側へ向いている場合、前記画像ペアの画像間カメラワーク種をズームアウトとして判定する、ことを特徴とする。
The camera work determination device according to
また、請求項4のカメラワーク判定装置は、請求項1から3までのいずれか一項に記載のカメラワーク判定装置において、前記画像間カメラワーク判定部が、前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎に前記動きデータの数を積算することで、前記複数の背景領域における前記方向毎の動きヒストグラムを求め、前記動きデータ及び前記動きヒストグラムに基づいて、前記複数の背景領域における前記方向毎の前記動きデータの平均値を求める背景領域動きヒストグラム算出部と、前記複数の背景領域のそれぞれについて、前記背景領域動きヒストグラム算出部により求めた前記動きヒストグラムが最大値となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記背景領域動きヒストグラム算出部により求めた、当該方向の前記動きデータの平均値を、当該背景領域の主方向動き量に設定し、前記複数の背景領域のそれぞれについての前記主方向及び前記主方向動き量に基づいて、前記画像ペアの画像間カメラワーク種、及び前記画像ペアの動き量を示す画像間動き量を求めるカメラワーク判定及び動き量算出部と、を備えたことを特徴とする。
Moreover, the camera work determination apparatus according to
また、請求項5のカメラワーク判定装置は、請求項4に記載のカメラワーク判定装置において、前記カメラワーク判定部が、同じ前記画像間カメラワーク種が継続する前記画像ペアの数が所定数以上である場合、その継続区間を前記カメラワーク区間として判定するカメラワーク区間判定部と、前記カメラワーク区間判定部により判定された前記カメラワーク区間について、当該カメラワーク区間の開始時点に対応する前記画像ペアの開始フレーム番号、及び当該カメラワーク区間の終了時点に対応する前記画像ペアの終了フレーム番号を特定し、当該カメラワーク区間に対応する前記画像ペアのカメラワーク種を当該カメラワーク区間のカメラワーク種として特定し、当該カメラワーク区間に対応する全ての前記画像ペアの画像間動き量を加算し、加算結果を当該カメラワーク区間のカメラ動き量として求め、前記カメラワーク区間の前記開始フレーム番号、前記終了フレーム番号、前記カメラワーク種及び前記カメラ動き量をカメラワークデータとして出力するカメラワークデータ生成部と、を備えたことを特徴とする。
The camera work determination device according to
さらに、請求項6のプログラムは、コンピュータを、請求項1から5までのいずれか一項に記載のカメラワーク判定装置として機能させることを特徴とする。 Furthermore, a program according to a sixth aspect causes a computer to function as the camera work determination device according to any one of the first to fifth aspects.
以上のように、本発明によれば、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となる。 As described above, according to the present invention, it is possible to determine camera work at high speed and in detail without depending on the video encoding method.
以下、本発明を実施するための形態について図面を用いて詳細に説明する。
〔発明の概要〕
まず、本発明の概要について説明する。本発明者は、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となるように、鋭意検討を行った。その結果、本発明者は、次の(1)及び(2)を見出した。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings.
[Summary of the Invention]
First, an outline of the present invention will be described. The present inventor has intensively studied so that camerawork can be determined at high speed and in detail without depending on the video encoding method. As a result, the present inventors have found the following (1) and (2).
(1)一般的な映像のカメラワークは瞬間的に変化するものではなく、一定時間継続する傾向がある。そこで、本発明では、連続したフレーム画像の動きデータを用いるのではなく、所定間隔でサンプリングしたフレーム画像の動きデータを用いてカメラワークを判定する。これにより、十分な精度のカメラワーク判定を実現すると共に、高速化を実現することができる。 (1) General video camera work does not change instantaneously but tends to continue for a certain period of time. Therefore, in the present invention, camera work is determined using motion data of frame images sampled at a predetermined interval instead of using motion data of continuous frame images. As a result, it is possible to realize camera work determination with sufficient accuracy and to achieve high speed.
(2)複数の背景領域の動きデータを比較することで、ズームインまたはズームアウトのカメラワークを判定することができる。そこで、本発明では、被写体の動きに影響されないように背景部分の動きのみを利用し、背景部分を複数の領域に分割し、分割した背景領域毎の動きデータを比較することでカメラワークを判定する。これにより、ズームイン及びズームアウトを含む、より詳細なカメラワークを判定することができる。 (2) By comparing the motion data of a plurality of background regions, it is possible to determine zoom-in or zoom-out camera work. Therefore, in the present invention, only the movement of the background part is used so as not to be affected by the movement of the subject, the background part is divided into a plurality of areas, and the camera work is determined by comparing the movement data for each divided background area. To do. Thereby, more detailed camera work including zoom-in and zoom-out can be determined.
〔全体構成〕
次に、本発明の実施形態によるカメラワーク判定装置の全体構成について説明する。図1は、本発明の実施形態によるカメラワーク判定装置の構成例を示すブロック図である。このカメラワーク判定装置1は、フレーム画像サンプリング部10、画像間カメラワーク判定部11及びカメラワーク判定部12を備えている。
〔overall structure〕
Next, the overall configuration of the camera work determination device according to the embodiment of the present invention will be described. FIG. 1 is a block diagram illustrating a configuration example of a camera work determination device according to an embodiment of the present invention. The
フレーム画像サンプリング部10は、番組映像を入力し、番組映像からT1フレーム毎にフレーム画像をサンプリングし、画像系列P[1],...,P[NP]を生成する。NPは、サンプリングされたフレーム画像の数を示す。
The frame
フレーム画像サンプリング部10が入力する番組映像は、符号化方式に依存しない映像である。したがって、当該カメラワーク判定装置1は、汎用性の高い処理を実現することができる。
The program video input by the frame
フレーム画像サンプリング部10は、各フレーム画像P[i]について、当該フレーム画像P[i]の位置からT2フレーム先のフレーム画像をP'[i]として、フレーム画像P'[i]をサンプリングする。T1>T2である。
For each frame image P [i], the frame
フレーム画像サンプリング部10は、フレーム画像P[i]及びフレーム画像P'[i]をペアとして画像ペアP*[i]を生成し、画像ペア系列P*[1],...,P*[NP]を生成する。そして、フレーム画像サンプリング部10は、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]を画像間カメラワーク判定部11に出力する。
The frame
図2は、フレーム画像サンプリング部10により番組映像から画像ペアP*[i]が生成される処理の概念図を示す。図2に示すように、番組映像からT1フレーム毎にフレーム画像P[i]がサンプリングされ、画像系列P[1],...,P[NP]が生成される。そして、各フレーム画像P[i]について、そこからT2フレーム先のフレーム画像P'[i]がサンプリングされる。
FIG. 2 shows a conceptual diagram of a process in which the frame
フレーム画像P[i]及びフレーム画像P'[i]をペアとした画像ペアP*[i]が生成され、画像ペア系列P*[1],...,P*[NP]が生成される。 An image pair P * [i] is generated by pairing the frame image P [i] and the frame image P ′ [i], and an image pair sequence P * [1], ..., P * [N P ] is generated. Is done.
これにより、番組映像からフレーム画像がサンプリングされ、所定間隔毎に画像ペアP*[i]が生成される。当該カメラワーク判定装置1は、番組映像の連続した全てのフレーム画像ではなく、所定間隔でサンプリングした画像ペアP*[i]を用いてカメラワークを判定するから、処理負荷が低減すると共に、処理時間も短くて済む。
As a result, frame images are sampled from the program video, and image pairs P * [i] are generated at predetermined intervals. Since the
図1に戻って、画像間カメラワーク判定部11は、フレーム画像サンプリング部10から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]を入力する。
Returning to FIG. 1, the inter-image
画像間カメラワーク判定部11は、各画像ペアP*[i]について、当該画像ペアP*[i]の2枚のフレーム画像P[i],P'[i]間における分割した背景領域Rnのみの動きデータに基づいて、画像間カメラワーク種CP[i]を判定すると共に、画像間動き量dP[i]を算出する。そして、画像間カメラワーク判定部11は、画像間カメラワーク種系列CP[1],...,CP[NP]及び画像間動き量系列dP[1],...,dP[NP]を生成する。
For each image pair P * [i], the inter-image
画像間カメラワーク判定部11は、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]、画像間カメラワーク種CP[i]からなる画像間カメラワーク種系列CP[1],...,CP[NP]、及び画像間動き量dP[i]からなる画像間動き量系列dP[1],...,dP[NP]をカメラワーク判定部12に出力する。画像間カメラワーク判定部11の詳細については後述する。
The inter-image camera
画像間カメラワーク種CP[i]は、「ズームイン」「ズームアウト」「左パン」「右パン」「上チルト」「下チルト」「静止」「その他」からなる8種類のカメラワークとする。 Inter-camera work types C P [i] are eight types of camera work including “zoom-in”, “zoom-out”, “left pan”, “right pan”, “top tilt”, “bottom tilt”, “still”, and “others”. .
これにより、画像ペアP*[i]のそれぞれについて、「ズームイン」「ズームアウト」を含むカメラワークの種類を示す画像間カメラワーク種CP[i]、及びカメラの動き量を示す画像間動き量dP[i]が求められる。 As a result, for each image pair P * [i], the inter-image camera work type C P [i] indicating the type of camera work including “zoom in” and “zoom out”, and the inter-image motion indicating the amount of camera movement The quantity d P [i] is determined.
カメラワーク判定部12は、画像間カメラワーク判定部11から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]、画像間カメラワーク種CP[i]からなる画像間カメラワーク種系列CP[1],...,CP[NP]、及び画像間動き量dP[i]からなる画像間動き量系列dP[1],...,dP[NP]を入力する。そして、カメラワーク判定部12は、同じ画像間カメラワーク種CP[i]の画像ペアP*[i]が所定数以上継続する区間をカメラワーク区間として判定する。
The camera
カメラワーク判定部12は、各カメラワーク区間について、画像ペアP*[i]に基づいて開始フレーム番号TS[n]及び終了フレーム番号TE[n]を特定する。また、カメラワーク判定部12は、各カメラワーク区間について、画像間カメラワーク種CP[i]に基づいてカメラワーク種C[n]を特定し、画像間動き量dP[i]に基づいてカメラ動き量d[n]を算出する。
The camera
カメラワーク判定部12は、各カメラワーク区間について、開始フレーム番号系列TS[1],...,TS[NC]、終了フレーム番号系列TE[1],...,TE[NC]、カメラワーク種系列C[1],...,C[NC]及びカメラ動き量系列d[1],...,d[NC]を生成する。NCは、判定されたカメラワーク区間の数を示す。そして、カメラワーク判定部12は、これらのデータをカメラワークデータとして出力する。カメラワーク判定部12の詳細については後述する。
The camera
これにより、当該カメラワーク判定装置1は、「ズームイン」「ズームアウト」を含むカメラワークを判定するから、より詳細なカメラワークを判定することができる。
Thereby, since the camera
〔画像間カメラワーク判定部11〕
次に、図1に示した画像間カメラワーク判定部11について詳細に説明する。前述のとおり、画像間カメラワーク判定部11は、各画像ペアP*[i]について、当該画像ペアP*[i]の2枚のフレーム画像P[i],P'[i]間における分割した背景領域Rnのみの動きデータに基づいて、画像間カメラワーク種CP[i]を判定すると共に、画像間動き量dP[i]を算出する。
[Inter-image camera work determination unit 11]
Next, the inter-image camera
図3は、画像間カメラワーク判定部11の構成例及び入出力データ例を示すブロック図である。この画像間カメラワーク判定部11は、背景領域動きヒストグラム算出部20及びカメラワーク判定及び動き量算出部21を備えている。
FIG. 3 is a block diagram illustrating a configuration example and input / output data example of the inter-image camera
背景領域動きヒストグラム算出部20は、フレーム画像サンプリング部10から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]を入力する。そして、背景領域動きヒストグラム算出部20は、画像ペアP*[i]を構成する2枚のフレーム画像について、ブロックマッチング等の既存手法を用いて、数ピクセル間隔の各画素の動き差分ベクトルを求める。
The background region motion
背景領域動きヒストグラム算出部20は、分割した各背景領域Rn(n=1,...,6)について、動き差分ベクトルを所定の複数の方向kに分類し、方向k毎に動き差分ベクトルの数を積算し、動きヒストグラムを求める。すなわち、背景領域動きヒストグラム算出部20は、各背景領域Rn(n=1,...,6)について、方向k毎に動き差分ベクトルの数の積算値である度数h[i,n,k](k=1,...,8)を求める。背景領域Rnは、被写体の動きに影響されない領域である。
The background region motion
また、背景領域動きヒストグラム算出部20は、各背景領域Rn(n=1,...,6)について方向k毎に、方向kに属する動き差分ベクトルの長さの和を算出し、その和を度数h[i,n,k]で除算することで、以下の式にて、動き量の平均値dA[i,n,k]を求める。
[数1]
dA[i,n,k]=(方向kに属する動き差分ベクトルの長さの和)/h[i,n,k] ・・・(1)
Further, the background region motion
[Equation 1]
d A [i, n, k] = (sum of lengths of motion difference vectors belonging to direction k) / h [i, n, k] (1)
これにより、各背景領域Rn(n=1,...,6)について方向k毎に、動き差分ベクトルの長さの平均値が動き量の平均値dA[i,n,k]として算出される。 Thus, for each background region R n (n = 1,..., 6), the average value of the lengths of the motion difference vectors is set as the average value d A [i, n, k] for each direction k. Calculated.
背景領域動きヒストグラム算出部20は、各背景領域Rn(n=1,...,6)についての方向k毎の度数h[i,n,k]及び動き量の平均値dA[i,n,k]を、カメラワーク判定及び動き量算出部21に出力する。
The background area motion
ここで、パラメータiは、画像ペアP*[i]の番号であり、i=1,...,NPである。パラメータnは、背景領域Rnの番号であり、n=1,...,6とする。パラメータkは、方向kの番号であり、k=1,...,8とする。 Here, the parameter i is the number of image pairs P * [i], i = 1, ..., a N P. Parameter n is the number of background region R n, n = 1, ..., a 6. The parameter k is a number in the direction k, and k = 1,.
図4は、背景領域Rnの例を説明する図である。図4には、画像の左端上、左端中央、左端下、右端上、右端中央及び右端下の6つの背景領域Rn(n=1,...,6)が示されている。画像の横幅をWとすると、画像の左端上の背景領域R1、左端中央の背景領域R2、左端下の背景領域R3、右端上の背景領域R4、右端中央の背景領域R5及び右端下の背景領域R6の横幅は、それぞれ0.2Wである。 Figure 4 is a diagram illustrating an example of a background region R n. FIG. 4 shows six background regions R n (n = 1,..., 6) at the upper left end, the left end center, the lower left end, the upper right end, the right end center, and the lower right end of the image. Assuming that the width of the image is W, a background region R 1 on the left end of the image, a background region R 2 at the center of the left end, a background region R 3 at the bottom of the left end, a background region R 4 at the right end, a background region R 5 at the center of the right end, and The horizontal width of the background region R 6 below the right end is 0.2 W, respectively.
図5は、方向kの例を説明する図である。図5には、中央点を起点とした8つの方向k=1,...,8が示されている。方向1は右、方向2は右下、方向3は下、方向4は左下、方向5は左、方向6は左上、方向7は上、方向8は右上の向きをそれぞれ示す。
FIG. 5 is a diagram illustrating an example of the direction k. FIG. 5 shows eight directions k = 1,..., 8 starting from the center point.
図3に戻って、カメラワーク判定及び動き量算出部21は、背景領域動きヒストグラム算出部20から、各背景領域Rn(n=1,...,6)についての方向k毎の度数h[i,n,k]及び動き量の平均値dA[i,n,k]を入力する。
Returning to FIG. 3, the camera work determination and motion
カメラワーク判定及び動き量算出部21は、各背景領域Rnについて、度数h[i,n,k]が最大値を取る方向kを特定し、これを背景領域Rnの主方向番号CR[i,n]に設定する。また、カメラワーク判定及び動き量算出部21は、背景領域Rnの主方向番号CR[i,n](の方向k)における動き量の平均値dA[i,n,CR[i,n]]を特定し、これを背景領域Rnの主方向動き量dR[i,n]に設定する。
The camera work determination and motion
図6は、画像ペアP*[i]の背景領域Rnにおける主方向番号CR[i,n]及び主方向動き量dR[i,n]の例を説明する図である。図6には、画像ペアP*[i]の背景領域Rnの各方向kについて、度数h[i,n,k]及び動き量の平均値dA[i,n,k]が示されている。カメラワーク判定及び動き量算出部21により、度数h[i,n,k]が最大値を取る方向kとして方向k=3が特定され、主方向番号CR[i,n]=3が設定される。また、主方向番号CR[i,n]=3(の方向k=3)における動き量の平均値dA[i,n,CR[i,n]]=dA[i,n,3]が特定され、主方向動き量dR[i,n]=3.4が設定される。
FIG. 6 is a diagram for explaining an example of the main direction number C R [i, n] and the main direction motion amount d R [i, n] in the background region R n of the image pair P * [i]. 6, for each direction k of the background region R n of image pairs P * [i], the frequency h [i, n, k] and the motion amount of the average value d A [i, n, k ] are shown ing. The camera work determination and motion
図3に戻って、カメラワーク判定及び動き量算出部21は、各背景領域Rnの主方向番号CR[i,n]及び主方向動き量dR[i,n]に基づいて、画像ペアP*[i]の画像間カメラワーク種CP[i]及び画像間動き量dP[i]を求める。そして、カメラワーク判定及び動き量算出部21は、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]、画像間カメラワーク種CP[i]からなる画像間カメラワーク種系列CP[1],...,CP[NP]、及び画像間動き量dP[i]からなる画像間動き量系列dP[1],...,dP[NP]をカメラワーク判定部12に出力する。
Returning to FIG. 3, the camera work determination and motion
図7は、画像間カメラワーク種CP[i]及び画像間動き量dP[i]を求めるカメラワーク判定及び動き量算出部21の処理例を示すフローチャートであり、図8は、主方向番号CR[i,n]及び画像間カメラワーク種CP[i]の関係を説明する図である。まず、カメラワーク判定及び動き量算出部21は、画像ペアP*[i]の番号であるパラメータiについて、i=1を設定する(ステップS701)。
FIG. 7 is a flowchart showing a processing example of the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「ズームイン」の条件(主方向番号CR[i,n]について、5≦CR[i,1]≦7、かつ4≦CR[i,2]≦6、かつ3≦CR[i,3]≦5、かつCR[i,4]=1または7または8、かつCR[i,5]=1または2または8、かつ1≦CR[i,6]≦3であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS702)。D1は予め設定された値である。「ズームイン」の主方向番号CR[i,n]の条件は、図8(1)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の中央から放射状に外側へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS702において、「ズームイン」の条件を満たすと判定した場合(ステップS702:Y)、画像間カメラワーク種CP[i]=「ズームイン」を設定する(ステップS703)。一方、カメラワーク判定及び動き量算出部21は、ステップS702において、「ズームイン」の条件を満たさないと判定した場合(ステップS702:N)、ステップS704へ移行する。
If the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「ズームアウト」の条件(主方向番号CR[i,n]について、1≦CR[i,1]≦3、かつCR[i,2]=1または2または8、かつCR[i,3]=1または7または8、かつ3≦CR[i,4]≦5、かつ4≦CR[i,5]≦6、かつ5≦CR[i,6]≦7であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS704)。「ズームアウト」の主方向番号CR[i,n]の条件は、図8(2)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の外側から中心へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS704において、「ズームアウト」の条件を満たすと判定した場合(ステップS704:Y)、画像間カメラワーク種CP[i]=「ズームアウト」を設定する(ステップS705)。一方、カメラワーク判定及び動き量算出部21は、ステップS704において、「ズームアウト」の条件を満たさないと判定した場合(ステップS704:N)、ステップS706へ移行する。
If the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「左パン」の条件(主方向番号CR[i,n]について、全てのCR[i,n]=1または2または8であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS706)。「左パン」の主方向番号CR[i,n]の条件は、図8(3)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の右側へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS706において、「左パン」の条件を満たすと判定した場合(ステップS706:Y)、画像間カメラワーク種CP[i]=「左パン」を設定する(ステップS707)。一方、カメラワーク判定及び動き量算出部21は、ステップS706において、「左パン」の条件を満たさないと判定した場合(ステップS706:N)、ステップS708へ移行する。
If it is determined in step S706 that the “left pan” condition is satisfied (step S706: Y), the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「右パン」の条件(主方向番号CR[i,n]について、4≦全てのCR[i,n]≦6であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS708)。「右パン」の主方向番号CR[i,n]の条件は、図8(4)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の左側へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS708において、「右パン」の条件を満たすと判定した場合(ステップS708:Y)、画像間カメラワーク種CP[i]=「右パン」を設定する(ステップS709)。一方、カメラワーク判定及び動き量算出部21は、ステップS708において、「右パン」の条件を満たさないと判定した場合(ステップS708:N)、ステップS710へ移行する。
If the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「上チルト」の条件(主方向番号CR[i,n]について、2≦全てのCR[i,n]≦4であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS710)。「上チルト」の主方向番号CR[i,n]の条件は、図8(5)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の下側へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS710において、「上チルト」の条件を満たすと判定した場合(ステップS710:Y)、画像間カメラワーク種CP[i]=「上チルト」を設定する(ステップS711)。一方、カメラワーク判定及び動き量算出部21は、ステップS710において、「上チルト」の条件を満たさないと判定した場合(ステップS710:N)、ステップS712へ移行する。
If the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「下チルト」の条件(主方向番号CR[i,n]について、6≦全てのCR[i,n]≦8であり、かつ主方向動き量dR[i,n]について、全てのdR[i,n]≧D1(n=1,...,6))を満たすか否かを判定する(ステップS712)。「下チルト」の主方向番号CR[i,n]の条件は、図8(6)の矢印に示すとおり、全ての主方向番号CR[i,n]の示す動き方向が、フレーム画像の上側へ向いていることである。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS712において、「下チルト」の条件を満たすと判定した場合(ステップS712:Y)、画像間カメラワーク種CP[i]=「下チルト」を設定する(ステップS713)。一方、カメラワーク判定及び動き量算出部21は、ステップS712において、「下チルト」の条件を満たさないと判定した場合(ステップS712:N)、ステップS714へ移行する。
If the camera work determination and motion
カメラワーク判定及び動き量算出部21は、「静止」の条件(主方向動き量dR[i,n]について、dR[i,n]<D2(n=1,...,6))を満たすか否かを判定する(ステップS714)。D2は予め設定された値である。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS714において、「静止」の条件を満たすと判定した場合(ステップS714:Y)、画像間カメラワーク種CP[i]=「静止」を設定する(ステップS715)。一方、カメラワーク判定及び動き量算出部21は、ステップS714において、「静止」の条件を満たさないと判定した場合(ステップS714:N)、画像間カメラワーク種CP[i]=「その他」を設定する(ステップS716)。
If it is determined in step S714 that the “still” condition is satisfied (step S714: Y), the camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS703、ステップS705、ステップS707、ステップS709、ステップS711、ステップS713、ステップS715またはステップS716から移行して、以下の式にて、各背景領域Rnの主方向動き量dR[i,n]を加算して平均化し、画像間動き量dP[i]を算出する(ステップS717)。
[数2]
The camera work determination and motion
[Equation 2]
カメラワーク判定及び動き量算出部21は、パラメータiをインクリメントし(i=i+1)(ステップS718)、パラメータiが画像数NP(画像ペアP*[i]の数)よりも大きいか否かを判定する(ステップS719)。
The camera work determination and motion
カメラワーク判定及び動き量算出部21は、ステップS719において、パラメータiが画像数NPよりも大きくないと判定した場合(ステップS719:N)、ステップS702へ移行する。一方、カメラワーク判定及び動き量算出部21は、ステップS719において、パラメータiが画像数NPよりも大きいと判定した場合(ステップS719:Y)、処理を終了する。これにより、画像ペアP*[i]の画像間カメラワーク種CP[i]及び画像間動き量dP[i]が求められる。
If the camera work determination and motion
〔カメラワーク判定部12〕
次に、図1に示したカメラワーク判定部12について詳細に説明する。前述のとおり、カメラワーク判定部12は、同じ画像間カメラワーク種CP[i]の画像ペアP*[i]が所定数以上継続する区間をカメラワーク区間として判定し、各カメラワーク区間について、開始フレーム番号TS[n]、終了フレーム番号TE[n]及びカメラワーク種C[n]を特定し、カメラ動き量d[n]を算出する。
[Camera work determination unit 12]
Next, the camera
図9は、カメラワーク判定部12の構成例及び入出力データ例を示すブロック図である。このカメラワーク判定部12は、カメラワーク区間判定部30及びカメラワークデータ生成部31を備えている。
FIG. 9 is a block diagram illustrating a configuration example and input / output data example of the camera
カメラワーク区間判定部30は、画像間カメラワーク判定部11から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]、画像間カメラワーク種CP[i]からなる画像間カメラワーク種系列CP[1],...,CP[NP]、及び画像間動き量dP[i]からなる画像間動き量系列dP[1],...,dP[NP]を入力する。そして、カメラワーク区間判定部30は、同じ画像間カメラワーク種CP[i]の画像ペアP*[i]が所定数以上継続する区間を特定し、当該区間をカメラワーク区間として判定する。
The camera work
カメラワークデータ生成部31は、カメラワーク区間判定部30により判定された各カメラワーク区間について、当該カメラワーク区間の開始時点及び終了時点にそれぞれ対応する画像ペアP*[i]の開始フレーム番号TS[n]及び終了フレーム番号TE[n]を特定する。また、カメラワークデータ生成部31は、各カメラワーク区間について、当該カメラワーク区間に対応する画像間カメラワーク種CP[i]をカメラワーク種C[n]として特定する。また、カメラワークデータ生成部31は、各カメラワーク区間について、当該カメラワーク区間に対応する全ての画像間動き量dP[i]を加算し、加算結果をカメラ動き量d[n]として求める。
For each camera work section determined by the camera work
カメラワークデータ生成部31は、カメラワーク区間の開始フレーム番号系列TS[1],...,TS[NC]、終了フレーム番号系列TE[1],...,TE[NC]、カメラワーク種系列C[1],...,C[NC]及びカメラ動き量系列d[1],...,d[NC]を生成する。そして、カメラワークデータ生成部31は、これらのデータをカメラワークデータとして出力する。
The camera work
図10は、カメラワーク判定部12の処理例を示すフローチャートである。カメラワーク判定部12は、画像間カメラワーク判定部11から画像ペアP*[i]、画像間カメラワーク種CP[i]及び画像間動き量dP[i]を入力する(ステップS1001)。そして、カメラワーク判定部12は、n=1、i=1、カメラ動き量d[n]=画像間動き量dp[i]、i0=1及びCount=0を設定する(ステップS1002)。nはカメラワーク区間の番号を示し、i及びi0は画像ペアP*[i]の番号を示し、Countはカメラワーク区間の長さを示す。
FIG. 10 is a flowchart illustrating a processing example of the camera
カメラワーク判定部12は、i番目の画像ペアP*[i]の画像間カメラワーク種CP[i]とi+1番目の画像ペアP*[i+1]の画像間カメラワーク種CP[i+1]とが同じであるか否かを判定する(CP[i]=CP[i+1]?、ステップS1003)。
The camera
カメラワーク判定部12は、ステップS1003において、画像間カメラワーク種CP[i]と画像間カメラワーク種CP[i+1]とが同じであると判定した場合(ステップS1003:Y)、カメラ動き量d[n]にi+1番目の画像間動き量dp[i+1]を加算し、新たなカメラ動き量d[n]を求める(d[n]=d[n]+dp[i+1]、ステップS1004)。そして、カメラワーク判定部12は、カメラワーク区間の長さCountをインクリメントする(Count=Count+1、ステップS1005)。
When the camera
カメラワーク判定部12は、画像ペアP*[i]の番号iが画像ペアP*[i]の数Np以上であるか否かを判定する(i≧Np?、ステップS1006)。すなわち、カメラワーク判定部12は、ステップS1003〜ステップS1005の処理を全ての画像ペアP*[i]について行ったか否かを判定する。
カメラワーク判定部12は、ステップS1006において、番号iが画像ペアP*[i]の数Np以上でないと判定した場合(ステップS1006:N)、すなわちステップS1003〜ステップS1005の処理を全ての画像ペアP*[i]について行っていないと判定した場合、番号iをインクリメントし(i=i+1、ステップS1007)、ステップS1003へ移行する。
一方、カメラワーク判定部12は、ステップS1006において、番号iが画像ペアP*[i]の数Np以上であると判定した場合(ステップS1006:Y)、すなわちステップS1003〜ステップS1005の処理を全ての画像ペアP*[i]について行ったと判定した場合、ステップS1008へ移行する。
On the other hand, the
一方、カメラワーク判定部12は、ステップS1003において、画像間カメラワーク種CP[i]と画像間カメラワーク種CP[i+1]とが同じでないと判定した場合(ステップS1003:N)、ステップS1008へ移行する。
On the other hand, when the camera
カメラワーク判定部12は、ステップS1003(N)またはステップS1006(Y)から移行して、カメラワーク区間の長さCountが予め設定された閾値Th以上であるか否かを判定する(Count≧Th?、ステップS1008)。
The camera
カメラワーク判定部12は、ステップS1008において、カメラワーク区間の長さCountが閾値Th以上であると判定した場合(ステップS1008:Y)、番号nのカメラワーク区間の開始フレーム番号TS[n]、終了フレーム番号TE[n]、カメラワーク種C[n]及びカメラ動き量d[n]を設定する(ステップS1009)。
When the camera
具体的には、カメラワーク判定部12は、画像ペアP*[i0]を構成する2枚のフレーム画像P[i0],P'[i0]のうちフレーム画像P[i0]のフレーム番号を、当該カメラワーク区間の開始フレーム番号TS[n]に設定する。また、カメラワーク判定部12は、画像ペアP*[i]を構成する2枚のフレーム画像P[i],P'[i]のうちフレーム画像P'[i]のフレーム番号を、当該カメラワーク区間の終了フレーム番号TE[n]に設定する。
Specifically, the camera
さらに、カメラワーク判定部12は、画像ペアP*[i0]の画像間カメラワーク種CP[i0]を、当該カメラワーク区間のカメラワーク種C[n]に設定する。また、カメラワーク判定部12は、ステップS1004にて算出したカメラ動き量d[n]を、当該カメラワーク区間のカメラ動き量d[n]に設定する。
Furthermore, the camera
カメラワーク判定部12は、ステップS1009から移行して、カメラワーク区間の番号nをインクリメントする(n=n+1、ステップS1010)。
The camera
一方、カメラワーク判定部12は、ステップS1008において、カメラワーク区間の長さCountが閾値Th以上でないと判定した場合(ステップS1008:N)、ステップS1011へ移行する。
On the other hand, if the
カメラワーク判定部12は、ステップS1008(N)またはステップS1010から移行して、画像ペアP*[i]の番号iが画像ペアP*[i]の数Np以上であるか否かを判定する(i≧Np?、ステップS1011)。すなわち、カメラワーク判定部12は、ステップS1003〜ステップS1010及びステップS1012の処理を全ての画像ペアP*[i]について行ったか否かを判定する。
カメラワーク判定部12は、ステップS1011において、番号iが画像ペアP*[i]の数Np以上でないと判定した場合(ステップS1011:N)、すなわちステップS1003〜ステップS1010及びステップS1012の処理を全ての画像ペアP*[i]について行っていないと判定した場合、番号iをインクリメントし(i=i+1)、カメラ動き量d[n]に画像間動き量dp[i]を設定し(d[n]=dp[i])、i0=1及びCount=0を設定し(ステップS1012)、ステップS1003へ移行する。これにより、次のカメラワーク区間または次の画像ペアP*[i]について処理が行われる。
一方、カメラワーク判定部12は、ステップS1011において、番号iが画像ペアP*[i]の数Np以上であると判定した場合(ステップS1011:Y)、すなわちステップS1003〜ステップS1010及びステップS1012の処理を全ての画像ペアP*[i]について行ったと判定した場合、ステップS1009にて設定した開始フレーム番号TS[n]、終了フレーム番号TE[n]、カメラワーク種C[n]及びカメラ動き量d[n]から、開始フレーム番号系列TS[1],...,TS[NC]、終了フレーム番号系列TE[1],...,TE[NC]、カメラワーク種系列C[1],...,C[NC]及びカメラ動き量系列d[1],...,d[NC]を生成し、これらの系列をカメラワークデータとして出力する(ステップS1013)。
On the other hand, the
以上のように、本発明の実施形態によるカメラワーク判定装置1によれば、フレーム画像サンプリング部10は、番組映像からT1フレーム毎にフレーム画像P[i]をサンプリングし、フレーム画像P[i]からT2フレーム先のフレーム画像P'[i]をサンプリングし、フレーム画像P[i],P'[i]からなる画像ペアP*[i]を生成する。
As described above, according to the camera
画像間カメラワーク判定部11は、画像ペアP*[i]について、2枚のフレーム画像P[i],P'[i]間における分割した背景領域Rnのみの動きデータに基づいて、画像間カメラワーク種CP[i]を判定すると共に、画像間動き量dP[i]を算出する。
Inter-image
具体的には、画像間カメラワーク判定部11の背景領域動きヒストグラム算出部20は、分割した背景領域Rnについて、2枚のフレーム画像P[i],P'[i]から求めた動き差分ベクトルを方向kに分類し、方向k毎の動きヒストグラムである動き差分ベクトルの度数h[i,n,k]を求める。また、背景領域動きヒストグラム算出部20は、背景領域Rnについて、方向kに属する動き差分ベクトルの長さの和を度数h[i,n,k]で除算し、方向k毎に動き量の平均値dA[i,n,k]を求める。そして、背景領域動きヒストグラム算出部20は、背景領域Rnについて、度数h[i,n,k]が最大値を取る方向kを特定し、これを主方向番号CR[i,n]に設定し、主方向番号CR[i,n]の動き量の平均値dA[i,n,CR[i,n]]を主方向動き量dR[i,n]に設定する。
Specifically, the background region motion
また、画像間カメラワーク判定部11のカメラワーク判定及び動き量算出部21は、背景領域Rnの主方向番号CR[i,n]及び主方向動き量dR[i,n]に基づいて、画像間カメラワーク種CP[i]を求め、背景領域Rnの主方向動き量dR[i,n]の平均を画像間動き量dP[i]として求める。
The camera work determination and motion
カメラワーク判定部12は、画像間カメラワーク種CP[i]に基づいてカメラワーク区間を判定し、カメラワーク区間について、画像ペアP*[i]に基づいて開始フレーム番号TS[n]及び終了フレーム番号TE[n]を特定し、画像間カメラワーク種CP[i]に基づいてカメラワーク種C[n]を特定し、画像間動き量dP[i]に基づいてカメラ動き量d[n]を算出する。そして、カメラワーク判定部12は、これらのデータをカメラワークデータとして出力する。
The camera
具体的には、カメラワーク判定部12のカメラワーク区間判定部30は、同じ画像間カメラワーク種CP[i]の画像ペアP*[i]が所定数以上継続する区間をカメラワーク区間として判定する。また、カメラワークデータ生成部31は、カメラワーク区間について、当該カメラワーク区間の開始時点及び終了時点にそれぞれ対応する画像ペアP*[i]の開始フレーム番号TS[n]及び終了フレーム番号TE[n]を特定し、当該カメラワーク区間に対応する画像間カメラワーク種CP[i]をカメラワーク種C[n]として特定し、当該カメラワーク区間に対応する全ての画像間動き量dP[i]を加算し、加算結果をカメラ動き量d[n]として求める。そして、カメラワークデータ生成部31は、カメラワーク区間の開始フレーム番号系列TS[1],...,TS[NC]、終了フレーム番号系列TE[1],...,TE[NC]、カメラワーク種系列C[1],...,C[NC]及びカメラ動き量系列d[1],...,d[NC]を生成し、これらのデータをカメラワークデータとして出力する。
Specifically, the camera work
これにより、映像の符号化方式に依存しない番組映像を処理対象とするから、符号化方式に応じた処理が不要となる。また、フレーム画像P[i],P'[i]からなる画像ペアP*[i]を用いるようにしたから、連続したフレーム画像を用いる必要がなく、処理時間を短くすることができる。 As a result, since the program video that does not depend on the video encoding method is processed, processing according to the encoding method becomes unnecessary. Further, since the image pair P * [i] composed of the frame images P [i] and P ′ [i] is used, it is not necessary to use continuous frame images, and the processing time can be shortened.
また、分割した複数の背景領域Rnを用いるようにしたから、「パン」「チルト」「静止」に加え、「ズームイン」及び「ズームアウト」のカメラワーク種C[n]も判定することができる。 In addition, since a plurality of divided background regions R n are used, it is possible to determine camera work types C [n] of “zoom in” and “zoom out” in addition to “pan” “tilt” “still”. it can.
したがって、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となる。 Therefore, it is possible to determine camera work at high speed and in detail without depending on the video encoding method.
以上、実施形態を挙げて本発明を説明したが、本発明は前記実施形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。前記実施形態では、分割した背景領域Rnの数を6(n=1,...,6)としたが、本発明はその数を限定するものではなく、2以上であればよい。また、図4に示した背景領域Rnは、画面の左端及び右端に設定するようにしたが、例えば画面の上端及び下端に設定するようにしてよいし、左端、右端、上端及び下端に設定するようにしてもよい。 The present invention has been described with reference to the embodiment. However, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the technical idea thereof. In the above embodiment, the number of 6 (n = 1, ..., 6) of the divided background region R n is set to, the present invention is not limited in number, may be two or more. Further, the background region R n shown in FIG. 4 is set at the left end and the right end of the screen, but may be set at the upper end and the lower end of the screen, for example, or set at the left end, the right end, the upper end, and the lower end. You may make it do.
また、前記実施形態では、方向kの数を8(k=1,...,8)としたが、本発明はその数を限定するものではなく、2以上であればよい。 In the above embodiment, the number of directions k is 8 (k = 1,..., 8), but the present invention does not limit the number, and it may be 2 or more.
尚、本発明の実施形態によるカメラワーク判定装置1のハードウェア構成としては、通常のコンピュータを使用することができる。カメラワーク判定装置1は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。カメラワーク判定装置1に備えたフレーム画像サンプリング部10、画像間カメラワーク判定部11及びカメラワーク判定部12の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。これらのプログラムは、前記記憶媒体に格納されており、CPUに読み出されて実行される。また、これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもでき、ネットワークを介して送受信することもできる。
As a hardware configuration of the camera
1 カメラワーク判定装置
10 フレーム画像サンプリング部
11 画像間カメラワーク判定部
12 カメラワーク判定部
20 背景領域動きヒストグラム算出部
21 カメラワーク判定及び動き量算出部
30 カメラワーク区間判定部
31 カメラワークデータ生成部
DESCRIPTION OF
Claims (6)
前記フレーム画像サンプリング部により生成された前記画像ペアの背景部分を分割した複数の背景領域のそれぞれについて、動きデータを生成し、前記複数の背景領域の動きデータに基づいて、前記画像ペアのカメラワークの種類を示す画像間カメラワーク種を判定する画像間カメラワーク判定部と、
前記画像間カメラワーク判定部により判定された前記画像ペアの画像間カメラワーク種に基づいて、前記映像のカメラワークを判定するカメラワーク判定部と、
を備えたことを特徴とするカメラワーク判定装置。 A frame image sampling unit that samples frame images from video and generates image pairs at predetermined intervals;
Motion data is generated for each of a plurality of background regions obtained by dividing the background portion of the image pair generated by the frame image sampling unit, and the camera work of the image pair is performed based on the motion data of the plurality of background regions. An inter-image camera work determination unit that determines an inter-image camera work type indicating the type of
A camera work determination unit that determines the camera work of the video based on the inter-image camera work type of the image pair determined by the inter-image camera work determination unit;
A camera work determination device comprising:
前記カメラワーク判定部は、
同じ前記画像間カメラワーク種が継続する前記画像ペアの数が所定数以上である場合、その継続区間をカメラワーク区間として判定し、当該カメラワーク区間における前記画像ペアの画像間カメラワーク種を当該カメラワーク区間のカメラワーク種として出力する、ことを特徴とするカメラワーク判定装置。 The camera work determination device according to claim 1,
The camera work determination unit
When the number of the image pairs that the same inter-image camera work type continues is a predetermined number or more, the continuous section is determined as the camera work section, and the inter-camera work type of the image pair in the camera work section is A camera work determination device that outputs as a camera work type in a camera work section.
前記画像間カメラワーク判定部は、
前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎の前記動きデータに基づいて、前記動きデータが最大となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の外側から中央へ向いている場合、前記画像ペアの画像間カメラワーク種をズームインとして判定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の中央から外側へ向いている場合、前記画像ペアの画像間カメラワーク種をズームアウトとして判定する、ことを特徴とするカメラワーク判定装置。 In the camera work determination device according to claim 1 or 2,
The inter-image camera work determination unit
For each of the plurality of background regions, the motion data is classified into a plurality of directions, the direction in which the motion data is maximized is specified based on the motion data for each direction, and the direction is defined as the background region. And when the main direction for each of the plurality of background regions is directed from the outside to the center of the frame image, the inter-image camerawork type of the image pair is determined as zoom-in, When the main direction for each of a plurality of background regions is directed outward from the center of the frame image, the inter-image camera work type of the image pair is determined as zoom out. apparatus.
前記画像間カメラワーク判定部は、
前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎に前記動きデータの数を積算することで、前記複数の背景領域における前記方向毎の動きヒストグラムを求め、前記動きデータ及び前記動きヒストグラムに基づいて、前記複数の背景領域における前記方向毎の前記動きデータの平均値を求める背景領域動きヒストグラム算出部と、
前記複数の背景領域のそれぞれについて、前記背景領域動きヒストグラム算出部により求めた前記動きヒストグラムが最大値となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記背景領域動きヒストグラム算出部により求めた、当該方向の前記動きデータの平均値を、当該背景領域の主方向動き量に設定し、
前記複数の背景領域のそれぞれについての前記主方向及び前記主方向動き量に基づいて、前記画像ペアの画像間カメラワーク種、及び前記画像ペアの動き量を示す画像間動き量を求めるカメラワーク判定及び動き量算出部と、
を備えたことを特徴とするカメラワーク判定装置。 In the camera work determination device according to any one of claims 1 to 3,
The inter-image camera work determination unit
For each of the plurality of background regions, the motion data is classified into a plurality of directions, and by accumulating the number of the motion data for each direction, a motion histogram for each direction in the plurality of background regions is obtained, A background region motion histogram calculation unit for obtaining an average value of the motion data for each direction in the plurality of background regions based on the motion data and the motion histogram;
For each of the plurality of background regions, the direction in which the motion histogram obtained by the background region motion histogram calculation unit is maximum is specified, the direction is set as the main direction of the background region, and the background region motion The average value of the motion data in the direction determined by the histogram calculation unit is set as the main direction motion amount of the background region,
Based on the main direction and the main direction motion amount for each of the plurality of background regions, camera work determination for obtaining an inter-image camera work type of the image pair and an inter-image motion amount indicating the motion amount of the image pair And a motion amount calculation unit;
A camera work determination device comprising:
前記カメラワーク判定部は、
同じ前記画像間カメラワーク種が継続する前記画像ペアの数が所定数以上である場合、その継続区間を前記カメラワーク区間として判定するカメラワーク区間判定部と、
前記カメラワーク区間判定部により判定された前記カメラワーク区間について、当該カメラワーク区間の開始時点に対応する前記画像ペアの開始フレーム番号、及び当該カメラワーク区間の終了時点に対応する前記画像ペアの終了フレーム番号を特定し、当該カメラワーク区間に対応する前記画像ペアのカメラワーク種を当該カメラワーク区間のカメラワーク種として特定し、当該カメラワーク区間に対応する全ての前記画像ペアの画像間動き量を加算し、加算結果を当該カメラワーク区間のカメラ動き量として求め、前記カメラワーク区間の前記開始フレーム番号、前記終了フレーム番号、前記カメラワーク種及び前記カメラ動き量をカメラワークデータとして出力するカメラワークデータ生成部と、
を備えたことを特徴とするカメラワーク判定装置。 In the camera work determination device according to claim 4,
The camera work determination unit
When the number of the image pairs in which the same image work type between images continues is a predetermined number or more, a camera work section determination unit that determines the continuous section as the camera work section;
For the camera work section determined by the camera work section determination unit, the start frame number of the image pair corresponding to the start time of the camera work section and the end of the image pair corresponding to the end time of the camera work section The frame number is specified, the camera work type of the image pair corresponding to the camera work section is specified as the camera work type of the camera work section, and the inter-image motion amount of all the image pairs corresponding to the camera work section That calculates the addition result as a camera motion amount of the camera work section, and outputs the start frame number, the end frame number, the camera work type, and the camera motion amount of the camera work section as camera work data. A work data generation unit;
A camera work determination device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017111882A JP6990998B2 (en) | 2017-06-06 | 2017-06-06 | Camera work judgment device and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017111882A JP6990998B2 (en) | 2017-06-06 | 2017-06-06 | Camera work judgment device and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018206142A true JP2018206142A (en) | 2018-12-27 |
JP6990998B2 JP6990998B2 (en) | 2022-02-03 |
Family
ID=64957289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017111882A Active JP6990998B2 (en) | 2017-06-06 | 2017-06-06 | Camera work judgment device and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6990998B2 (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06350895A (en) * | 1993-06-10 | 1994-12-22 | Fujitsu General Ltd | Method for correcting jiggle in video camera |
JPH10243340A (en) * | 1997-02-27 | 1998-09-11 | Hitachi Ltd | Moving image processor |
JP2003032600A (en) * | 2001-07-18 | 2003-01-31 | Canon Inc | Image processing unit, index preparing system, index preparing method, recording medium and program |
JP2005277733A (en) * | 2004-03-24 | 2005-10-06 | Seiko Epson Corp | Moving image processing apparatus |
JP2007068165A (en) * | 2005-08-29 | 2007-03-15 | Samsung Electronics Co Ltd | Improved estimating method of movement, method and device for video encoding utilizing the method |
JP2012160780A (en) * | 2011-01-28 | 2012-08-23 | Nikon Corp | Imaging device, image processing device, and image processing program |
JP2013183189A (en) * | 2012-02-29 | 2013-09-12 | Nikon Corp | Image processing apparatus, imaging apparatus, and image processing program |
JP2015194915A (en) * | 2014-03-31 | 2015-11-05 | 住友電気工業株式会社 | Moving body tracking apparatus, moving body tracking method, moving body tracking system, and camera |
-
2017
- 2017-06-06 JP JP2017111882A patent/JP6990998B2/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06350895A (en) * | 1993-06-10 | 1994-12-22 | Fujitsu General Ltd | Method for correcting jiggle in video camera |
JPH10243340A (en) * | 1997-02-27 | 1998-09-11 | Hitachi Ltd | Moving image processor |
JP2003032600A (en) * | 2001-07-18 | 2003-01-31 | Canon Inc | Image processing unit, index preparing system, index preparing method, recording medium and program |
JP2005277733A (en) * | 2004-03-24 | 2005-10-06 | Seiko Epson Corp | Moving image processing apparatus |
JP2007068165A (en) * | 2005-08-29 | 2007-03-15 | Samsung Electronics Co Ltd | Improved estimating method of movement, method and device for video encoding utilizing the method |
JP2012160780A (en) * | 2011-01-28 | 2012-08-23 | Nikon Corp | Imaging device, image processing device, and image processing program |
JP2013183189A (en) * | 2012-02-29 | 2013-09-12 | Nikon Corp | Image processing apparatus, imaging apparatus, and image processing program |
JP2015194915A (en) * | 2014-03-31 | 2015-11-05 | 住友電気工業株式会社 | Moving body tracking apparatus, moving body tracking method, moving body tracking system, and camera |
Non-Patent Citations (1)
Title |
---|
鈴木 賢一郎、外2名: ""局所動き方向ヒストグラム特徴による映像データからの動物体の検出"", 電子情報通信学会技術研究報告, vol. 102, no. 382, JPN6021021941, 11 October 2002 (2002-10-11), JP, pages 47 - 52, ISSN: 0004575075 * |
Also Published As
Publication number | Publication date |
---|---|
JP6990998B2 (en) | 2022-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7876828B2 (en) | Method, medium, and apparatus predicting direct mode motion of a multi-angle moving picture | |
JP2009147807A (en) | Image processing apparatus | |
JP4698754B2 (en) | Scene change detection method and apparatus | |
JP5777311B2 (en) | How to generate high-resolution video from low-resolution video | |
JP4514203B2 (en) | Motion vector detection apparatus and method | |
US8274602B2 (en) | Image processing apparatus and image processing method with redundant frame detection | |
JP2005229600A (en) | Motion compensation interpolating method by motion estimation of superposed block base and frame rate conversion device applying the same | |
JP2009147911A (en) | Video data compression preprocessing method, video data compression method employing the same and video data compression system | |
US8363726B2 (en) | Electronic apparatus, motion vector detecting method, and program therefor | |
JP2000278694A (en) | Encoding device, image processor, image processing system, encoding method and storage medium | |
JP5942517B2 (en) | Method and apparatus for camera motion analysis in video | |
JP5441812B2 (en) | Video encoding apparatus and control method thereof | |
JP4898415B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP6990998B2 (en) | Camera work judgment device and program | |
JP4677351B2 (en) | Motion compensator, motion compensation processing method, computer program, and storage medium | |
JP2007174202A (en) | Motion vector detecting device and method therefor | |
JP5906993B2 (en) | Encoding apparatus, encoding method, and program | |
JP2010206430A (en) | Frame rate conversion method, apparatus, and program | |
JP2009267726A (en) | Moving image encoding apparatus, recorder, moving image encoding method, moving image encoding program | |
JP3941921B2 (en) | Video encoding device | |
JP5763578B2 (en) | Image coding apparatus, image coding method, and program | |
JP2010141451A (en) | Method, device and program for converting frame rate, and computer readable recording medium recording the program | |
JP2005004770A (en) | Movie video detecting method and apparatus using grouping | |
JP2006311603A (en) | Moving image encoding method and apparatus, and moving image decoding method and apparatus | |
JP2008098796A (en) | Video encoding method, video encoding device, video encoding program, and recording medium thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200420 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210531 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210610 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210804 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210823 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20211004 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20211112 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211207 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6990998 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |