JP6990998B2 - Camera work judgment device and program - Google Patents
Camera work judgment device and program Download PDFInfo
- Publication number
- JP6990998B2 JP6990998B2 JP2017111882A JP2017111882A JP6990998B2 JP 6990998 B2 JP6990998 B2 JP 6990998B2 JP 2017111882 A JP2017111882 A JP 2017111882A JP 2017111882 A JP2017111882 A JP 2017111882A JP 6990998 B2 JP6990998 B2 JP 6990998B2
- Authority
- JP
- Japan
- Prior art keywords
- camera work
- image
- camera
- section
- inter
- 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.)
- Active
Links
Images
Landscapes
- Image Analysis (AREA)
Description
本発明は、コンピュータ及びハードディスクを用いた映像処理分野において、映像のカメラワークを判定する装置及びプログラムに関する。 The present invention relates to an apparatus and a program for determining camera work of an image in the field of image processing using a computer and a hard disk.
映像のズームイン、パンニング等の「カメラワーク」は、映像の制作者が視聴者に被写体またはイベント内容を強く印象付けたい場合に用いられる傾向がある。したがって、カメラワークに関する情報は、見たい場面を検索する作業、注目すべき場面をセレクトしてダイジェスト映像を作る作業等を効率的に進めるために、重要な手掛かりとなる。 "Camera work" such as zooming in and panning of a video tends to be used when the creator of the video wants to strongly impress the viewer with the subject or the content of the event. Therefore, the information about the camera work is an important clue in order to efficiently proceed with the work of searching for the scene to be seen, the work of selecting the scene of interest and creating the digest video, and the like.
カメラワークを自動的に判定する技術としては、例えば特許文献1,2,3の手法が提案されている。
As a technique for automatically determining camera work, for example, the methods of
特許文献1の手法は、映像圧縮符号化データから動きベクトルを含む符号化情報を抽出し、動きベクトルからカメラワークまたは被写体と無関係な動きベクトルをノイズとして除去し、ノイズ除去後の動きベクトルからカメラワークを判定するものである。
The method of
特許文献2の手法は、フレーム内の右端、左端等の外縁ブロックについて、フレーム内予測とフレーム間予測との間の差に基づいて、時間方向の相関と空間方向の相関との大小関係を判定し、パンまたはチルトのカメラワークを判定するものである。
The method of
特許文献3の手法は、フレームの局所領域を空間微分及び時間微分することで、その移動方向を検出し、局所領域の移動方向からカメラワークを判定するものである。
The method of
前述の特許文献1,2の手法は、MPEG等の特定の符号化方式にて生成された映像を対象とするものであり、汎用性が低い。また、前述の特許文献3の手法は、映像の符号化方式に依存しないものであり、汎用性が高い。しかし、いずれの手法も、連続したフレーム画像間の動きデータを求める必要があり、処理時間が増大する可能性がある。
The methods of
また、特許文献1,3の手法は、画像全体から求めた動きデータを用いるため、被写体の動きがノイズとなり、カメラワークの判定精度が低下する可能性がある。これに対し、特許文献2の手法は、画像の右端、左端等の外縁ブロックの動きデータを用いるため、特許文献1,3の手法と異なり、カメラワークの判定精度はさほど低下しない。
Further, since the methods of
しかしながら、特許文献2の手法では、パンまたはチルトのカメラワークのみを判定するものであり、ズームインまたはズームアウトのカメラワークを判定することができない。特許文献2の手法により判定されるカメラワークは、所定の種類に限定されていることから、カメラワークの情報を用いて所望の場面を検索する作業等を進めるのに効率が悪く、不十分であるという問題があった。
However, in the method of
そこで、本発明は前記課題を解決するためになされたものであり、その目的は、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定可能なカメラワーク判定装置及びプログラムを提供することにある。 Therefore, the present invention has been made to solve the above problems, and an object thereof is a camera work determination device and a program capable of determining camera work in high speed and in detail without depending on a video coding method. To provide.
前記課題を解決するために、請求項1のカメラワーク判定装置は、映像から所定のT1フレーム毎に第1フレーム画像をサンプリングし、前記第1フレーム画像から所定のT2フレーム先(T1>T2とする。)の第2フレーム画像をサンプリングし、前記T1フレームの間隔毎に、前記第1フレーム画像及び前記第2フレーム画像をペアとした画像ペアを生成するフレーム画像サンプリング部と、前記フレーム画像サンプリング部により生成された前記画像ペアの背景部分を分割した、画像の左端及び右端または前記画像の上端及び下端の複数の背景領域のそれぞれについて、動きデータを生成し、前記複数の背景領域の動きデータに基づいて、前記画像ペアのカメラワークの種類として「ズームイン」「ズームアウト」を含むカメラワークの種類を示す画像間カメラワーク種を判定する画像間カメラワーク判定部と、前記画像間カメラワーク判定部により判定された同じ前記画像間カメラワーク種が継続する前記画像ペアの数を継続区間の長さとして求め、前記継続区間の長さが所定の閾値以上であるか否かを判定し、前記継続区間の長さが前記閾値以上であると判定した場合、前記継続区間をカメラワーク区間として判定し、当該カメラワーク区間における前記画像ペアの画像間カメラワーク種を当該カメラワーク区間のカメラワーク種として出力するカメラワーク判定部と、を備え、前記画像間カメラワーク判定部が、前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎の前記動きデータに基づいて、前記動きデータが最大となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の外側から中央へ向いている場合、前記画像ペアの画像間カメラワーク種を「ズームイン」として判定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の中央から外側へ向いている場合、前記画像ペアの画像間カメラワーク種を「ズームアウト」として判定することを特徴とする。 In order to solve the above problem, the camera work determination device according to claim 1 samples a first frame image for each predetermined T 1 frame from the video, and a predetermined T 2 frame ahead (T 1 ) from the first frame image. > T 2 ), and a frame image sampling unit that samples the second frame image and generates an image pair in which the first frame image and the second frame image are paired at each interval of the T 1 frame. , Motion data is generated for each of the left and right edges of the image or the top and bottom edges of the image obtained by dividing the background portion of the image pair generated by the frame image sampling unit. An inter-image camera work determination unit that determines an inter-image camera work type indicating the type of camera work including "zoom in" and "zoom out" as the camera work type of the image pair based on the motion data of the background area, and the above-mentioned The number of the image pairs in which the same inter-image camera work type determined by the inter-image camera work determination unit continues is obtained as the length of the continuation section, and whether or not the length of the continuation section is equal to or greater than a predetermined threshold value. If it is determined that the length of the continuation section is equal to or greater than the threshold value, the continuation section is determined as the camera work section, and the inter-image camera work type of the image pair in the camera work section is the camera work. A camera work determination unit for outputting as a section camera work type is provided , and the inter-image camera work determination unit classifies the motion data into a plurality of directions for each of the plurality of background areas, and for each of the directions. Based on the motion data, the direction in which the motion data is maximized is specified, the direction is set as the main direction of the background region, and the main direction for each of the plurality of background regions is the frame image. When facing from the outside to the center of the image pair, the inter-image camera work type of the image pair is determined as "zoom in", and the main direction for each of the plurality of background areas faces from the center to the outside of the frame image. If so, it is characterized in that the inter-image camera work type of the image pair is determined as "zoom out" .
また、請求項2のカメラワーク判定装置は、請求項1に記載のカメラワーク判定装置において、前記画像間カメラワーク判定部が、前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎に前記動きデータの数を積算することで、前記複数の背景領域における前記方向毎の動きヒストグラムを求め、前記動きデータ及び前記動きヒストグラムに基づいて、前記複数の背景領域における前記方向毎の前記動きデータの平均値を求める背景領域動きヒストグラム算出部と、前記複数の背景領域のそれぞれについて、前記背景領域動きヒストグラム算出部により求めた前記動きヒストグラムが最大値となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記背景領域動きヒストグラム算出部により求めた、当該方向の前記動きデータの平均値を、当該背景領域の主方向動き量に設定し、前記複数の背景領域のそれぞれについての前記主方向及び前記主方向動き量に基づいて、前記画像ペアの画像間カメラワーク種、及び前記画像ペアの動き量を示す画像間動き量を求めるカメラワーク判定及び動き量算出部と、を備えたことを特徴とする。
Further, in the camera work determination device according to
また、請求項3のカメラワーク判定装置は、請求項2に記載のカメラワーク判定装置において、前記カメラワーク判定部が、同じ前記画像間カメラワーク種が継続する前記継続区間の長さが前記閾値以上である場合、その継続区間を前記カメラワーク区間として判定するカメラワーク区間判定部と、前記カメラワーク区間判定部により判定された前記カメラワーク区間について、当該カメラワーク区間の開始時点に対応する前記画像ペアの開始フレーム番号、及び当該カメラワーク区間の終了時点に対応する前記画像ペアの終了フレーム番号を特定し、当該カメラワーク区間に対応する前記画像ペアのカメラワーク種を当該カメラワーク区間のカメラワーク種として特定し、当該カメラワーク区間に対応する全ての前記画像ペアの画像間動き量を加算し、加算結果を当該カメラワーク区間のカメラ動き量として求め、前記カメラワーク区間の前記開始フレーム番号、前記終了フレーム番号、前記カメラワーク種及び前記カメラ動き量をカメラワークデータとして出力するカメラワークデータ生成部と、を備えたことを特徴とする。
Further, in the camera work determination device according to
さらに、請求項4のプログラムは、コンピュータを、請求項1から3までのいずれか一項に記載のカメラワーク判定装置として機能させることを特徴とする。
Further, the program of
以上のように、本発明によれば、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となる。 As described above, according to the present invention, it is possible to determine the camera work in high speed and in detail without depending on the video coding method.
以下、本発明を実施するための形態について図面を用いて詳細に説明する。
〔発明の概要〕
まず、本発明の概要について説明する。本発明者は、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となるように、鋭意検討を行った。その結果、本発明者は、次の(1)及び(2)を見出した。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings.
[Outline of the invention]
First, the outline of the present invention will be described. The present inventor has made diligent studies so that the camera work can be determined in high speed and in detail without depending on the video coding method. As a result, the present inventor has found the following (1) and (2).
(1)一般的な映像のカメラワークは瞬間的に変化するものではなく、一定時間継続する傾向がある。そこで、本発明では、連続したフレーム画像の動きデータを用いるのではなく、所定間隔でサンプリングしたフレーム画像の動きデータを用いてカメラワークを判定する。これにより、十分な精度のカメラワーク判定を実現すると共に、高速化を実現することができる。 (1) The camera work of a general image does not change instantaneously and tends to continue for a certain period of time. Therefore, in the present invention, the camera work is determined by using the motion data of the frame images sampled at predetermined intervals instead of using the motion data of the continuous frame images. As a result, it is possible to realize a sufficiently accurate camera work determination and to realize high speed.
(2)複数の背景領域の動きデータを比較することで、ズームインまたはズームアウトのカメラワークを判定することができる。そこで、本発明では、被写体の動きに影響されないように背景部分の動きのみを利用し、背景部分を複数の領域に分割し、分割した背景領域毎の動きデータを比較することでカメラワークを判定する。これにより、ズームイン及びズームアウトを含む、より詳細なカメラワークを判定することができる。 (2) By comparing the motion data of a plurality of background areas, it is possible to determine the zoom-in or zoom-out camera work. Therefore, in the present invention, the camera work is determined by using only the movement of the background portion so as not to be affected by the movement of the subject, dividing the background portion into a plurality of regions, and comparing the movement data of each divided background region. do. This makes it possible to determine more detailed camera work, including zooming in and out.
〔全体構成〕
次に、本発明の実施形態によるカメラワーク判定装置の全体構成について説明する。図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 showing a configuration example of a camera work determination device according to an embodiment of the present invention. The camera
フレーム画像サンプリング部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 an image pair P * [i] is generated from a program video by the frame
フレーム画像P[i]及びフレーム画像P'[i]をペアとした画像ペアP*[i]が生成され、画像ペア系列P*[1],...,P*[NP]が生成される。 An image pair P * [i] is generated by pairing a frame image P [i] and a frame image P'[i], and an image pair series P * [1], ..., P * [N P ] is generated. Will be done.
これにより、番組映像からフレーム画像がサンプリングされ、所定間隔毎に画像ペアP*[i]が生成される。当該カメラワーク判定装置1は、番組映像の連続した全てのフレーム画像ではなく、所定間隔でサンプリングした画像ペアP*[i]を用いてカメラワークを判定するから、処理負荷が低減すると共に、処理時間も短くて済む。
As a result, the frame image is sampled from the program video, and the image pair P * [i] is generated at predetermined intervals. Since the camera
図1に戻って、画像間カメラワーク判定部11は、フレーム画像サンプリング部10から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]を入力する。
Returning to FIG. 1, the inter-image camera
画像間カメラワーク判定部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 camera
画像間カメラワーク判定部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-image camera work type C P [i] consists of eight types of camera work: "zoom in", "zoom out", "left pan", "right pan", "up tilt", "down tilt", "still", and "others". ..
これにより、画像ペアP*[i]のそれぞれについて、「ズームイン」「ズームアウト」を含むカメラワークの種類を示す画像間カメラワーク種CP[i]、及びカメラの動き量を示す画像間動き量dP[i]が求められる。 As a result, for each of the image pairs 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 movement indicating the amount of camera movement. The quantity d P [i] is calculated.
カメラワーク判定部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は、「ズームイン」「ズームアウト」を含むカメラワークを判定するから、より詳細なカメラワークを判定することができる。
As a result, the camera
〔画像間カメラワーク判定部11〕
次に、図1に示した画像間カメラワーク判定部11について詳細に説明する。前述のとおり、画像間カメラワーク判定部11は、各画像ペアP*[i]について、当該画像ペアP*[i]の2枚のフレーム画像P[i],P'[i]間における分割した背景領域Rnのみの動きデータに基づいて、画像間カメラワーク種CP[i]を判定すると共に、画像間動き量dP[i]を算出する。
[Camera work determination unit between images 11]
Next, the inter-image camera
図3は、画像間カメラワーク判定部11の構成例及び入出力データ例を示すブロック図である。この画像間カメラワーク判定部11は、背景領域動きヒストグラム算出部20及びカメラワーク判定及び動き量算出部21を備えている。
FIG. 3 is a block diagram showing a configuration example and an input / output data example of the inter-image camera
背景領域動きヒストグラム算出部20は、フレーム画像サンプリング部10から、画像ペアP*[i]からなる画像ペア系列P*[1],...,P*[NP]を入力する。そして、背景領域動きヒストグラム算出部20は、画像ペアP*[i]を構成する2枚のフレーム画像について、ブロックマッチング等の既存手法を用いて、数ピクセル間隔の各画素の動き差分ベクトルを求める。
The background area motion
背景領域動きヒストグラム算出部20は、分割した各背景領域Rn(n=1,...,6)について、動き差分ベクトルを所定の複数の方向kに分類し、方向k毎に動き差分ベクトルの数を積算し、動きヒストグラムを求める。すなわち、背景領域動きヒストグラム算出部20は、各背景領域Rn(n=1,...,6)について、方向k毎に動き差分ベクトルの数の積算値である度数h[i,n,k](k=1,...,8)を求める。背景領域Rnは、被写体の動きに影響されない領域である。
The background area 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
[Number 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]として算出される。 As a result, the average value of the lengths of the motion difference vectors is set as the average value d A [i, n, k] of the motion amount for each direction k for each background region R n (n = 1, ..., 6). It is calculated.
背景領域動きヒストグラム算出部20は、各背景領域Rn(n=1,...,6)についての方向k毎の度数h[i,n,k]及び動き量の平均値dA[i,n,k]を、カメラワーク判定及び動き量算出部21に出力する。
The background region 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 the image pair P * [i], and i = 1, ..., N P. The parameter n is the number of the background area R n , and n = 1, ..., 6. The parameter k is the number of the direction k, and k = 1, ..., 8.
図4は、背景領域Rnの例を説明する図である。図4には、画像の左端上、左端中央、左端下、右端上、右端中央及び右端下の6つの背景領域Rn(n=1,...,6)が示されている。画像の横幅をWとすると、画像の左端上の背景領域R1、左端中央の背景領域R2、左端下の背景領域R3、右端上の背景領域R4、右端中央の背景領域R5及び右端下の背景領域R6の横幅は、それぞれ0.2Wである。 FIG. 4 is a diagram illustrating an example of the background region R n . FIG. 4 shows six background regions R n (n = 1, ..., 6) on the left edge, the center of the left edge, the bottom of the left edge, the top of the right edge, the center of the right edge, and the bottom of the right edge of the image. Assuming that the width of the image is W, the background area R 1 on the left edge of the image, the background area R 2 in the center of the left edge, the background area R 3 below the left edge, the background area R 4 on the right edge, the background area R 5 in the center of the right edge, and so on. The width of the background area 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 illustrating an example of the principal direction number C R [i, n] and the principal direction movement amount d R [i, n] in the background region R n of the image pair P * [i]. FIG. 6 shows the frequency h [i, n, k] and the average value d A [i, n, k] of the amount of movement for each direction k of the background region R n of the image pair P * [i]. 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 movement
カメラワーク判定及び動き量算出部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へ移行する。
When 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へ移行する。
When 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へ移行する。
When the camera work determination and movement
カメラワーク判定及び動き量算出部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 movement
カメラワーク判定及び動き量算出部21は、ステップS708において、「右パン」の条件を満たすと判定した場合(ステップS708:Y)、画像間カメラワーク種CP[i]=「右パン」を設定する(ステップS709)。一方、カメラワーク判定及び動き量算出部21は、ステップS708において、「右パン」の条件を満たさないと判定した場合(ステップS708:N)、ステップS710へ移行する。
When the camera work determination and movement
カメラワーク判定及び動き量算出部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 movement
カメラワーク判定及び動き量算出部21は、ステップS710において、「上チルト」の条件を満たすと判定した場合(ステップS710:Y)、画像間カメラワーク種CP[i]=「上チルト」を設定する(ステップS711)。一方、カメラワーク判定及び動き量算出部21は、ステップS710において、「上チルト」の条件を満たさないと判定した場合(ステップS710:N)、ステップS712へ移行する。
When the camera work determination and movement
カメラワーク判定及び動き量算出部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 movement
カメラワーク判定及び動き量算出部21は、ステップS712において、「下チルト」の条件を満たすと判定した場合(ステップS712:Y)、画像間カメラワーク種CP[i]=「下チルト」を設定する(ステップS713)。一方、カメラワーク判定及び動き量算出部21は、ステップS712において、「下チルト」の条件を満たさないと判定した場合(ステップS712:N)、ステップS714へ移行する。
When the camera work determination and movement
カメラワーク判定及び動き量算出部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)。
When the camera work determination and movement
カメラワーク判定及び動き量算出部21は、ステップS703、ステップS705、ステップS707、ステップS709、ステップS711、ステップS713、ステップS715またはステップS716から移行して、以下の式にて、各背景領域Rnの主方向動き量dR[i,n]を加算して平均化し、画像間動き量dP[i]を算出する(ステップS717)。
[数2]
The camera work determination and motion
[Number 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]が求められる。
When the camera work determination and movement
〔カメラワーク判定部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 showing a configuration example and an 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]として求める。
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 showing 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]について行ったか否かを判定する。
The camera
カメラワーク判定部12は、ステップS1006において、番号iが画像ペアP*[i]の数Np以上でないと判定した場合(ステップS1006:N)、すなわちステップS1003~ステップS1005の処理を全ての画像ペアP*[i]について行っていないと判定した場合、番号iをインクリメントし(i=i+1、ステップS1007)、ステップS1003へ移行する。
When the camera
一方、カメラワーク判定部12は、ステップS1006において、番号iが画像ペアP*[i]の数Np以上であると判定した場合(ステップS1006:Y)、すなわちステップS1003~ステップS1005の処理を全ての画像ペアP*[i]について行ったと判定した場合、ステップS1008へ移行する。
On the other hand, when the camera
一方、カメラワーク判定部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
さらに、カメラワーク判定部12は、画像ペアP*[i0]の画像間カメラワーク種CP[i0]を、当該カメラワーク区間のカメラワーク種C[n]に設定する。また、カメラワーク判定部12は、ステップS1004にて算出したカメラ動き量d[n]を、当該カメラワーク区間のカメラ動き量d[n]に設定する。
Further, the camera
カメラワーク判定部12は、ステップS1009から移行して、カメラワーク区間の番号nをインクリメントする(n=n+1、ステップS1010)。
The camera
一方、カメラワーク判定部12は、ステップS1008において、カメラワーク区間の長さCountが閾値Th以上でないと判定した場合(ステップS1008:N)、ステップS1011へ移行する。
On the other hand, when the camera
カメラワーク判定部12は、ステップS1008(N)またはステップS1010から移行して、画像ペアP*[i]の番号iが画像ペアP*[i]の数Np以上であるか否かを判定する(i≧Np?、ステップS1011)。すなわち、カメラワーク判定部12は、ステップS1003~ステップS1010及びステップS1012の処理を全ての画像ペアP*[i]について行ったか否かを判定する。
The camera
カメラワーク判定部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]について処理が行われる。
When the camera
一方、カメラワーク判定部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, when the camera
以上のように、本発明の実施形態によるカメラワーク判定装置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]を算出する。
The inter-image camera
具体的には、画像間カメラワーク判定部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 area motion
また、画像間カメラワーク判定部11のカメラワーク判定及び動き量算出部21は、背景領域Rnの主方向番号CR[i,n]及び主方向動き量dR[i,n]に基づいて、画像間カメラワーク種CP[i]を求め、背景領域Rnの主方向動き量dR[i,n]の平均を画像間動き量dP[i]として求める。
Further, the camera work determination and movement
カメラワーク判定部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 coding method is targeted for processing, processing according to the coding method becomes unnecessary. Further, since the image pair P * [i] consisting 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 multiple divided background areas R n are used, it is possible to determine the camera work type C [n] of "zoom in" and "zoom out" in addition to "pan", "tilt", and "still". can.
したがって、映像の符号化方式に依存することなく、高速かつ詳細にカメラワークを判定することが可能となる。 Therefore, it is possible to determine the camera work at high speed and in detail without depending on the video coding method.
以上、実施形態を挙げて本発明を説明したが、本発明は前記実施形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。前記実施形態では、分割した背景領域Rnの数を6(n=1,...,6)としたが、本発明はその数を限定するものではなく、2以上であればよい。また、図4に示した背景領域Rnは、画面の左端及び右端に設定するようにしたが、例えば画面の上端及び下端に設定するようにしてよいし、左端、右端、上端及び下端に設定するようにしてもよい。 Although the present invention has been described above with reference to embodiments, the present invention is not limited to the above-described embodiment and can be variously modified without departing from the technical idea. In the above embodiment, the number of divided background regions R n is 6 (n = 1, ..., 6), but the present invention does not limit the number and may be 2 or more. Further, the background area 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, and is set at the left end, the right end, the upper end, and the lower end. You may try to do it.
また、前記実施形態では、方向kの数を8(k=1,...,8)としたが、本発明はその数を限定するものではなく、2以上であればよい。 Further, in the above embodiment, the number of directions k is 8 (k = 1, ..., 8), but the present invention does not limit the number, and may be 2 or more.
尚、本発明の実施形態によるカメラワーク判定装置1のハードウェア構成としては、通常のコンピュータを使用することができる。カメラワーク判定装置1は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。カメラワーク判定装置1に備えたフレーム画像サンプリング部10、画像間カメラワーク判定部11及びカメラワーク判定部12の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。これらのプログラムは、前記記憶媒体に格納されており、CPUに読み出されて実行される。また、これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD-ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもでき、ネットワークを介して送受信することもできる。
As the hardware configuration of the camera
1 カメラワーク判定装置
10 フレーム画像サンプリング部
11 画像間カメラワーク判定部
12 カメラワーク判定部
20 背景領域動きヒストグラム算出部
21 カメラワーク判定及び動き量算出部
30 カメラワーク区間判定部
31 カメラワークデータ生成部
1
Claims (4)
前記フレーム画像サンプリング部により生成された前記画像ペアの背景部分を分割した、画像の左端及び右端または前記画像の上端及び下端の複数の背景領域のそれぞれについて、動きデータを生成し、前記複数の背景領域の動きデータに基づいて、前記画像ペアのカメラワークの種類として「ズームイン」「ズームアウト」を含むカメラワークの種類を示す画像間カメラワーク種を判定する画像間カメラワーク判定部と、
前記画像間カメラワーク判定部により判定された同じ前記画像間カメラワーク種が継続する前記画像ペアの数を継続区間の長さとして求め、前記継続区間の長さが所定の閾値以上であるか否かを判定し、前記継続区間の長さが前記閾値以上であると判定した場合、前記継続区間をカメラワーク区間として判定し、当該カメラワーク区間における前記画像ペアの画像間カメラワーク種を当該カメラワーク区間のカメラワーク種として出力するカメラワーク判定部と、
を備え、
前記画像間カメラワーク判定部は、
前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎の前記動きデータに基づいて、前記動きデータが最大となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の外側から中央へ向いている場合、前記画像ペアの画像間カメラワーク種を「ズームイン」として判定し、前記複数の背景領域のそれぞれについての前記主方向が、前記フレーム画像の中央から外側へ向いている場合、前記画像ペアの画像間カメラワーク種を「ズームアウト」として判定する、
ことを特徴とするカメラワーク判定装置。 A first frame image is sampled from the video for each predetermined T 1 frame, a second frame image at a predetermined T 2 frame destination (T 1 > T 2 ) is sampled from the first frame image, and the T is said. A frame image sampling unit that generates an image pair in which the first frame image and the second frame image are paired at intervals of one frame.
Motion data is generated for each of the left and right edges of the image or the plurality of background regions at the top and bottom edges of the image obtained by dividing the background portion of the image pair generated by the frame image sampling unit, and the plurality of backgrounds are generated. An image-to-image camera work determination unit that determines an image-to-image camera work type indicating the type of camera work including "zoom in" and "zoom out" as the camera work type of the image pair based on the motion data of the region.
The number of the image pairs in which the same inter-image camera work type determined by the inter-image camera work determination unit continues is obtained as the length of the continuation section, and whether or not the length of the continuation section is equal to or greater than a predetermined threshold value. If it is determined that the length of the continuation section is equal to or greater than the threshold value, the continuation section is determined as the camera work section, and the inter-image camera work type of the image pair in the camera work section is the camera. The camera work judgment unit that outputs as the camera work type of the work section, and
Equipped with
The inter-image camera work determination unit is
For each of the plurality of background areas, 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 area. When the main direction of each of the plurality of background areas faces from the outside to the center of the frame image, the inter-image camera work type of the image pair is determined as "zoom in". When the main direction for each of the plurality of background areas points from the center of the frame image to the outside, the inter-image camera work type of the image pair is determined as "zoom out".
A camera work judgment device characterized by this.
前記画像間カメラワーク判定部は、
前記複数の背景領域のそれぞれについて、前記動きデータを複数の方向に分類し、前記方向毎に前記動きデータの数を積算することで、前記複数の背景領域における前記方向毎の動きヒストグラムを求め、前記動きデータ及び前記動きヒストグラムに基づいて、前記複数の背景領域における前記方向毎の前記動きデータの平均値を求める背景領域動きヒストグラム算出部と、
前記複数の背景領域のそれぞれについて、前記背景領域動きヒストグラム算出部により求めた前記動きヒストグラムが最大値となる前記方向を特定し、当該方向を当該背景領域の主方向に設定し、前記背景領域動きヒストグラム算出部により求めた、当該方向の前記動きデータの平均値を、当該背景領域の主方向動き量に設定し、
前記複数の背景領域のそれぞれについての前記主方向及び前記主方向動き量に基づいて、前記画像ペアの画像間カメラワーク種、及び前記画像ペアの動き量を示す画像間動き量を求めるカメラワーク判定及び動き量算出部と、
を備えたことを特徴とするカメラワーク判定装置。 In the camera work determination device according to claim 1 ,
The inter-image camera work determination unit is
For each of the plurality of background regions, the motion data is classified into a plurality of directions, and the number of the motion data is integrated for each direction to obtain a motion histogram for each direction in the plurality of background regions. A background area motion histogram calculation unit that obtains 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 has the maximum value is specified, the direction is set as the main direction of the background region, and the background region motion is performed. The average value of the movement data in the direction obtained by the histogram calculation unit is set as the amount of movement in the main direction of the background area.
Based on the main direction and the movement amount in the main direction for each of the plurality of background regions, the camera work type between images of the image pair and the camera work determination for obtaining the movement amount between images indicating the movement amount of the image pair. And the movement amount calculation unit,
A camera work judgment device characterized by being equipped with.
前記カメラワーク判定部は、
同じ前記画像間カメラワーク種が継続する前記継続区間の長さが前記閾値以上である場合、その継続区間を前記カメラワーク区間として判定するカメラワーク区間判定部と、
前記カメラワーク区間判定部により判定された前記カメラワーク区間について、当該カメラワーク区間の開始時点に対応する前記画像ペアの開始フレーム番号、及び当該カメラワーク区間の終了時点に対応する前記画像ペアの終了フレーム番号を特定し、当該カメラワーク区間に対応する前記画像ペアのカメラワーク種を当該カメラワーク区間のカメラワーク種として特定し、当該カメラワーク区間に対応する全ての前記画像ペアの画像間動き量を加算し、加算結果を当該カメラワーク区間のカメラ動き量として求め、前記カメラワーク区間の前記開始フレーム番号、前記終了フレーム番号、前記カメラワーク種及び前記カメラ動き量をカメラワークデータとして出力するカメラワークデータ生成部と、
を備えたことを特徴とするカメラワーク判定装置。 In the camera work determination device according to claim 2 ,
The camera work determination unit is
When the length of the continuation section in which the same inter-image camera work type continues is equal to or greater than the threshold value , the camera work section determination unit that determines the continuation 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 amount of movement between images of all the image pairs corresponding to the camera work section is specified. Is added, the addition result is obtained as the camera movement amount of the camera work section, and the camera that outputs the start frame number, the end frame number, the camera work type, and the camera movement amount of the camera work section as camera work data. Work data generator and
A camera work judgment device characterized by being equipped with.
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 JP2018206142A (en) | 2018-12-27 |
| JP6990998B2 true 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) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7619546B2 (en) | 2021-02-19 | 2025-01-22 | 公立大学法人会津大学 | Motion identification program, information processing device, and motion identification method |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003032600A (en) | 2001-07-18 | 2003-01-31 | Canon Inc | Image processing apparatus, index creation system, index creation method, recording medium, and program |
| JP2005277733A (en) | 2004-03-24 | 2005-10-06 | Seiko Epson Corp | Moving image processing device |
| JP2007068165A (en) | 2005-08-29 | 2007-03-15 | Samsung Electronics Co Ltd | Improved motion estimation method, video encoding method and apparatus using 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 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06350895A (en) * | 1993-06-10 | 1994-12-22 | Fujitsu General Ltd | Image stabilization method for video cameras |
| JPH10243340A (en) * | 1997-02-27 | 1998-09-11 | Hitachi Ltd | Moving image processing device |
-
2017
- 2017-06-06 JP JP2017111882A patent/JP6990998B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003032600A (en) | 2001-07-18 | 2003-01-31 | Canon Inc | Image processing apparatus, index creation system, index creation method, recording medium, and program |
| JP2005277733A (en) | 2004-03-24 | 2005-10-06 | Seiko Epson Corp | Moving image processing device |
| JP2007068165A (en) | 2005-08-29 | 2007-03-15 | Samsung Electronics Co Ltd | Improved motion estimation method, video encoding method and apparatus using 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名,"局所動き方向ヒストグラム特徴による映像データからの動物体の検出",電子情報通信学会技術研究報告,日本,社団法人電子情報通信学会,2002年10月11日,Vol.102, No.382,pp.47-52 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018206142A (en) | 2018-12-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4444252B2 (en) | Method and apparatus for wide area-local block motion estimation | |
| JP4698754B2 (en) | Scene change detection method and apparatus | |
| JP5777311B2 (en) | How to generate high-resolution video from low-resolution video | |
| US7606462B2 (en) | Video processing device and method for producing digest video data | |
| JP5478047B2 (en) | Video data compression pre-processing method, video data compression method and video data compression system using the same | |
| JP2009147807A (en) | Image processing device | |
| JP4514203B2 (en) | Motion vector detection apparatus and method | |
| US20150043826A1 (en) | Image processing apparatus, image processing method, and program | |
| US8363726B2 (en) | Electronic apparatus, motion vector detecting method, and program therefor | |
| CN110996099B (en) | A video coding method, system and device | |
| JP2008518331A (en) | Understanding video content through real-time video motion analysis | |
| JP3131560B2 (en) | Moving image information detecting device in moving image processing system | |
| JP2000278694A5 (en) | Encoding device, image processing device, coding method, and recording medium | |
| JP2005229600A (en) | Motion compensated interpolation method based on superimposed block-based motion estimation and frame rate conversion apparatus using the same | |
| JP6990998B2 (en) | Camera work judgment device and program | |
| JP2004356747A (en) | Image matching method and apparatus | |
| JP4496992B2 (en) | Animal up-frame detection method, program, and storage medium storing program, and animal up-shot detection method, animal up-frame or shot detection method, program, and storage medium | |
| JP3979768B2 (en) | Digital video segmentation method and apparatus | |
| JP2010521118A (en) | Multiframe video estimation from compressed video sources | |
| JP6814484B2 (en) | Image processing equipment, image processing method and image processing program | |
| JP4898415B2 (en) | Moving picture coding apparatus and moving picture coding method | |
| JP4677351B2 (en) | Motion compensator, motion compensation processing method, computer program, and storage medium | |
| WO2023132163A1 (en) | Video compression method, video compression device, computer program, and video processing system | |
| CN101379833A (en) | Moving-vector detecting device and moving-vector detecting method | |
| JP2007166545A (en) | Motion vector detection apparatus and method |
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 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |