Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7192259B2 - Image processing device, image processing method and program - Google Patents
[go: Go Back, main page]

JP7192259B2 - Image processing device, image processing method and program - Google Patents

Image processing device, image processing method and program Download PDF

Info

Publication number
JP7192259B2
JP7192259B2 JP2018117154A JP2018117154A JP7192259B2 JP 7192259 B2 JP7192259 B2 JP 7192259B2 JP 2018117154 A JP2018117154 A JP 2018117154A JP 2018117154 A JP2018117154 A JP 2018117154A JP 7192259 B2 JP7192259 B2 JP 7192259B2
Authority
JP
Japan
Prior art keywords
image
background image
background
frame images
target
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
Application number
JP2018117154A
Other languages
Japanese (ja)
Other versions
JP2019219940A (en
JP2019219940A5 (en
Inventor
寛之 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2018117154A priority Critical patent/JP7192259B2/en
Publication of JP2019219940A publication Critical patent/JP2019219940A/en
Publication of JP2019219940A5 publication Critical patent/JP2019219940A5/ja
Application granted granted Critical
Publication of JP7192259B2 publication Critical patent/JP7192259B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Studio Devices (AREA)

Description

本発明は、画像処理装置、画像処理方法及びプログラムに関する。 The present invention relates to an image processing device, an image processing method, and a program.

画面全体からゆらぎ領域を確実に検出でき、監視対象とする物体を精度良く検知するための技術が提案されている。(例えば、特許文献1) Techniques have been proposed for reliably detecting a fluctuation region from the entire screen and accurately detecting an object to be monitored. (For example, Patent Document 1)

特開2011-123562号公報JP 2011-123562 A

例えば、室内でカメラを固定して人物がダンスする情景を動画撮影する場合で、且つカメラが備えるオートフォーカス機能により、撮影範囲内を移動する、主要な被写体であるダンスを行なう人物を追尾しながら合焦し続けるケースを想定する。 For example, when shooting a video of a scene where a person dances with the camera fixed indoors, and the camera's autofocus function is used to track the dancing person, who is the main subject, moving within the shooting range. Assume a case of continuous focusing.

そのような状況においては、上記合焦位置が移動することに伴って、背景となる画像部分においても、著しく合焦から外れた、所謂「ピンぼけ」と称される不鮮明な状態で撮影されることがある。 In such a situation, as the in-focus position moves, even the background image portion is significantly out of focus, and is photographed in a blurry state called "out of focus." There is

そして、上述したように背景側の画像が不鮮明な状態で撮影されると、その後に撮影画像中を移動する主要被写体の画像と背景を切り分けるような画像処理が必要となった場合に、背景と主要被写体との区分を判断する際の精度が低下する、という不具合を生じることになる。 As described above, when an image on the background side is shot in a blurred state, if image processing is required to separate the image of the main subject moving in the shot image afterward from the background, the background and the This causes a problem that the accuracy in determining the division from the main subject is lowered.

このようなオートフォーカス機能の働きによって生じる背景画像の不鮮明化等については、上記特許文献に記載された技術でも考慮されていない。 Even the technology described in the above patent document does not take into consideration the blurring of the background image caused by the function of such an autofocus function.

本発明は上記のような実情に鑑みてなされたもので、その目的とするところは、画像中を移動する動体と背景を精度良く切り分けることが可能な画像処理装置、画像処理方法及びプログラムを提供することにある。 SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and its object is to provide an image processing apparatus, an image processing method, and a program capable of accurately separating a moving object moving in an image from the background. to do.

本発明の一態様は、
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段と、
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段と、
を備え、
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である。
One aspect of the present invention is
determining means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
with
The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets a weight for each area as a background image. ,
For division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.

本発明によれば、画像中を移動する動体と背景を精度良く切り分けることが可能となる。 According to the present invention, it is possible to accurately separate a moving object moving in an image from the background.

本発明の一実施形態に係るスマートフォンの電子回路の機能構成を示すブロック図。1 is a block diagram showing the functional configuration of an electronic circuit of a smart phone according to one embodiment of the present invention; FIG. 同実施形態に係るダンスを撮影してから、その撮影結果を基に採点を行なうまでの一連の処理の流れを示すフローチャート。4 is a flowchart showing a series of processes from photographing the dance according to the embodiment to scoring based on the photographed result. 同実施形態に係る図2の背景テンプレート画像作成に関するサブルーチンの処理内容を示すフローチャート。FIG. 3 is a flowchart showing the processing contents of a subroutine relating to background template image creation of FIG. 2 according to the embodiment; FIG. 同実施形態に係る画像中の主要被写体の位置に応じた重み付け設定の例を示す図。FIG. 4 is a diagram showing an example of weighting settings according to the position of a main subject in an image according to the embodiment;

以下、本発明を、ダンス解析用のアプリケーションプログラムをインストールしたスマートフォンに適用した場合の一実施形態について、図面を参照して詳細に説明する。 An embodiment in which the present invention is applied to a smart phone in which an application program for dance analysis is installed will be described in detail below with reference to the drawings.

図1は、スマートフォン10の電子回路の機能構成を説明するブロック図である。このスマートフォン10において、11は音声を出力するスピーカ、12は音声を入力するマイクロホンであり、共に音声処理部13に接続される。 FIG. 1 is a block diagram illustrating the functional configuration of an electronic circuit of the smartphone 10. As shown in FIG. In this smart phone 10 , 11 is a speaker that outputs audio, and 12 is a microphone that inputs audio, both of which are connected to an audio processing unit 13 .

この音声処理部13は、スマートフォン10により音声の入出力を行なうに当たり、上記マイクロホン12から入力される音声をデジタル化、コードデータ化及び所定のデータ圧縮を施してシステムバスSBへ出力する一方で、デジタル音楽データをシステムバスSBを介して受取り、伸長処理した後にアナログ化した音声信号を生成して上記スピーカ11へ出力し、放音させる。 When the smartphone 10 performs voice input/output, the voice processing unit 13 digitizes the voice input from the microphone 12, converts it into code data, performs predetermined data compression, and outputs it to the system bus SB. Digital music data is received via the system bus SB, decompressed, converted into an analog audio signal, and output to the speaker 11 for sound emission.

プロセッサ14は、このスマートフォン10全体の動作制御を、上記システムバスSBを介して接続されたメインメモリ15及びSSD(Solid State Drive)16を使用して実行する。 The processor 14 controls the overall operation of the smartphone 10 using a main memory 15 and a solid state drive (SSD) 16 connected via the system bus SB.

メインメモリ15は、例えばSDRAMで構成され、プロセッサ14がプログラムを実行する際にSSD16から読み出したアプリケーションプログラムを展開して保持するワークメモリである。SSD16は、不揮発性メモリで構成され、OS(オペレーティングシステム)と、後述するダンス解析プログラム16Aを含む各種アプリケーションプログラム、その他各種固定データやコンテンツ等を格納、記憶するもので、それらの記憶内容は必要により適宜プロセッサ14によってメインメモリ15等へ読出される。 The main memory 15 is, for example, an SDRAM, and is a work memory that develops and holds an application program read from the SSD 16 when the processor 14 executes the program. The SSD 16 consists of a non-volatile memory, and stores and stores an OS (operating system), various application programs including a dance analysis program 16A, which will be described later, and various other fixed data and contents. is read out to the main memory 15 or the like by the processor 14 as appropriate.

なおプロセッサ14は、映像の記録時に、撮影により得られる一連の画像データに対するデータ圧縮を含む動画像ファイル化を行なう一方で、映像の再生時には、記録媒体から読み出されてきた動画像ファイルを上記記録時と逆の手順で順次デコードして伸長して再生表示させる。 During video recording, the processor 14 converts a series of image data obtained by shooting into a moving image file including data compression. The data is sequentially decoded and decompressed in the reverse order of recording, and reproduced and displayed.

また上記システムバスSBにはさらに、表示部17、タッチ入力部18、撮像部19、GPS受信部20、加速度センサ21、ジャイロセンサ22、地磁気センサ23、操作部24、バイブレータ25、無線通信部26、NFC(Near Field Communication)部27、及び外部デバイスインタフェイス(I/F)28と接続される。 The system bus SB further includes a display unit 17, a touch input unit 18, an imaging unit 19, a GPS receiving unit 20, an acceleration sensor 21, a gyro sensor 22, a geomagnetic sensor 23, an operation unit 24, a vibrator 25, and a wireless communication unit 26. , an NFC (Near Field Communication) unit 27 and an external device interface (I/F) 28 .

表示部17は、バックライト付きの例えば対角6インチ程のサイズのカラー液晶パネルとそれらの駆動回路とで構成される。この表示部17に対して、透明電極膜を用いたタッチ入力部18が一体に構成される。このタッチ入力部18は、マルチタッチ操作を含めてユーザのタッチ操作に応じた時系列の座標信号をデジタル化し、タッチ操作信号として上記プロセッサ14へ送出する。 The display unit 17 is composed of, for example, a color liquid crystal panel with a backlight and a diagonal size of about 6 inches, and a drive circuit for them. A touch input unit 18 using a transparent electrode film is integrated with the display unit 17 . The touch input unit 18 digitizes a time-series coordinate signal corresponding to a user's touch operation including a multi-touch operation, and sends it to the processor 14 as a touch operation signal.

撮像部19は、スマートフォン10の筐体の表裏の少なくとも何れかに設けられた撮像部と、それらの撮像部の撮像で得られた画像データを圧縮してファイル化する画像処理部等を有する。 The imaging unit 19 includes an imaging unit provided on at least one of the front and back sides of the housing of the smartphone 10, and an image processing unit that compresses and files image data obtained by imaging by the imaging units.

GPS受信部20は、GPSアンテナ29で受信する、図示しない複数のGPS衛星からの到来電波に基づき、現在位置の3次元座標(緯度、経度、高度)と、現在時刻とを算出し、システムバスSBを介して上記プロセッサ14へ送出する。 The GPS receiver 20 calculates the three-dimensional coordinates (latitude, longitude, altitude) of the current position and the current time based on incoming radio waves from a plurality of GPS satellites (not shown) received by the GPS antenna 29. It is sent to the processor 14 via SB.

加速度センサ21は、互いに直交する3軸方向それぞれの加速度を検出するもので、重力加速度の方向により、このスマートフォン10の姿勢を検出できる。 The acceleration sensor 21 detects acceleration in each of three axial directions orthogonal to each other, and can detect the orientation of the smartphone 10 from the direction of gravitational acceleration.

ジャイロセンサ22は、互いに直交する3軸方向に配置された振動型ジャイロスコープで構成され、上記加速度センサ21、地磁気センサ23の出力と組み合わせて、このスマートフォン10を所持、装着しているユーザの動作を解析して、上記GPSアンテナ29、GPS受信部20からの出力による絶対的な現在位置の認識ができない状態でも、加速度センサ21、地磁気センサ23との協働により自律航法による現在位置の更新動作を実行することができる。 The gyro sensor 22 is composed of vibrating gyroscopes arranged in three mutually orthogonal axial directions. is analyzed, and even if the absolute current position cannot be recognized by the output from the GPS antenna 29 and the GPS receiving unit 20, the current position is updated by autonomous navigation in cooperation with the acceleration sensor 21 and the geomagnetic sensor 23. can be executed.

地磁気センサ23は、互いに直交する3軸方向それぞれの地磁気を検出するもので、磁北の方向に基づいてその時点でこのスマートフォン10を向けている方位が検出できる。 The geomagnetism sensor 23 detects the geomagnetism in each of three mutually orthogonal axial directions, and can detect the azimuth to which the smartphone 10 is directed at that time based on the direction of magnetic north.

操作部24は、このスマートフォン10の筐体側面等に設けられる、電源キーを含むいくつかの操作キーからなり、それらのキー操作に応じたキー操作信号をシステムバスSBを介してプロセッサ14へ送出する。 The operation unit 24 is provided on the side of the housing of the smartphone 10, and is composed of several operation keys including a power key, and transmits key operation signals corresponding to those key operations to the processor 14 via the system bus SB. do.

バイブレータ25は、小型のモータとそのモータの回転軸に偏心して取付けられたウェイトとからなり、モータの回転駆動によりスマートフォン10全体に及ぶ振動を発生させる。 The vibrator 25 is composed of a small motor and a weight eccentrically attached to the rotating shaft of the motor, and generates vibrations extending over the entire smart phone 10 by rotating the motor.

無線通信部26は、アンテナ30~32を用いて、例えば第4世代携帯電話、IEEE802.11a/11b/11g/11nに則った無線LANシステム、及びブルートゥース(登録商標)等による近距離無線通信線にそれぞれ対応して外部の機器と無線通信によるデータの送受を行なう。 The wireless communication unit 26 uses antennas 30 to 32, for example, a 4th generation mobile phone, a wireless LAN system conforming to IEEE802.11a/11b/11g/11n, and a short-range wireless communication line such as Bluetooth (registered trademark). , and transmits and receives data to and from an external device by wireless communication.

NFC部27は、例えばFeliCa(登録商標)規格及びMIFARE(登録商標)規格を用いて、近距離にある外部機器と非接触でデータの送受及び給電動作を行なう。 The NFC unit 27 uses, for example, the FeliCa (registered trademark) standard and the MIFARE (registered trademark) standard to perform data transmission/reception and power supply operation with an external device in a short distance without contact.

外部デバイスインタフェイス28は、ヘッドホンジャック33、マイクロUSB端子34、及びメモリカードスロット35を介して、例えばヘッドホンやイヤホン、USB機器、及びメモリカードをそれぞれ接続または装着可能とする。 The external device interface 28 enables connection or attachment of, for example, headphones, earphones, USB devices, and memory cards via the headphone jack 33, micro USB terminal 34, and memory card slot 35, respectively.

メモリカードスロット35に装着するメモリカードには、後述するダンス解析プログラムで使用する動画像データファイル等を記録し、また記録したデータファイルを読み出すことができる。 A memory card inserted in the memory card slot 35 can record moving image data files and the like used in a dance analysis program, which will be described later, and read out the recorded data files.

次に本実施形態の動作について説明する。
図2は、ダンスを行なう人物の動画を撮影してから、その撮影により得られた動画ファイルにおける上記人物のダンスの採点を行なうまでの一連の処理の流れを示す。
Next, the operation of this embodiment will be described.
FIG. 2 shows the flow of a series of processes from shooting a moving image of a dancing person to scoring the dance of the person in the moving image file obtained by the shooting.

その当初に、ユーザはスマートフォン10を設置、できれば三脚等を用いて固定設置した上で、ダンスを行なう人物の動画による撮影を実行する(ステップS101)。 At the beginning, the user installs the smartphone 10, preferably by fixing it using a tripod or the like, and then shoots a moving image of a dancing person (step S101).

この撮影に先駆けて、例えば表示部17の画面下部において、
「背景画像の四隅がはっきりと写るように画角を設定して下さい」
のような文字ガイドメッセージを併せて重畳表示させるものとして、ユーザに適切な動画を撮影するように促してもよい。
Prior to this shooting, for example, at the bottom of the screen of the display unit 17,
"Set the angle of view so that the four corners of the background image are clearly visible."
The user may be urged to shoot an appropriate moving image by superimposing a character guide message such as .

この動画撮影に関しては、スマートフォン10にインストールしているアプリケーションプログラムであるダンス解析プログラム16Aを使用することなく、通常のカメラモードでの動画撮影であっても良いし、あるいはスマートフォン10外の機器から、既に撮影済みの動画ファイルを取込んで、メモリカードスロット35に装着したメモリカード、あるいはSSD16に記録させるものとしても良い。 This video recording may be performed in a normal camera mode without using the dance analysis program 16A, which is an application program installed in the smartphone 10, or from a device outside the smartphone 10. A moving image file that has already been photographed may be taken in and recorded in the memory card attached to the memory card slot 35 or the SSD 16 .

その後、ダンス解析プログラム16Aを起動していない場合は当該プログラムをあらためて起動した上で、解析を行なう動画ファイルを選択する。 After that, if the dance analysis program 16A has not been started, the program is started again, and then the moving image file to be analyzed is selected.

選択した動画ファイルに対して、プロセッサ14ではまず、ダンスを行なう人物を画像中から切り出して抽出するための背景テンプレート画像を作成する処理を実行する(ステップS102)。 For the selected moving image file, the processor 14 first executes a process of creating a background template image for cutting out and extracting a dancing person from the image (step S102).

図3は、この背景テンプレート画像の作成に関するサブルーチンの処理内容を示すフローチャートである。 FIG. 3 is a flow chart showing the processing contents of a subroutine for creating this background template image.

その当初にプロセッサ14は、今回撮影する動画の一のフレーム(例えば、先頭フレーム)を、基準となる初期の背景画像として設定する。なお、その際、当該一のフレームが「ピンぼけ」状態となっていないか画像認識処理により判別し、「ピンぼけ」状態となっていないフレームを、基準となる初期の背景画像として設定する(ステップS201)。 At the beginning, the processor 14 sets one frame (for example, the first frame) of the moving image to be shot this time as a reference initial background image. At this time, it is determined by image recognition processing whether the one frame is out of focus, and the frame that is not out of focus is set as a reference initial background image (step S201). ).

こうして初期の背景画像が選択されたことを受けて、以後、動画ファイルを構成する個々のフレーム画像を用いた背景テンプレート画像の作成に移行する。 After the initial background image is selected in this way, the background template image is created using the individual frame images that make up the moving image file.

その処理当初にプロセッサ14は、全てのフレーム画像に対する処理を終了したか否かにより、上記背景テンプレート画像の作成を終了したか否かを判断する(ステップS202)。 At the beginning of the process, the processor 14 determines whether or not the background template image has been created by determining whether or not the process for all frame images has been completed (step S202).

ここでまだ終了していないと判断すると(ステップS202のNo)、プロセッサ14は、背景テンプレート画像の作成で参照していないフレーム画像中、時系列で最も先頭側に位置しているものを選択し、デコード対象の画像(以下「対象画像」と称する)として設定する(ステップS203)。 If it is determined that the process has not ended yet (No in step S202), the processor 14 selects the frame image that is not referred to in the creation of the background template image and that is located at the top in time series. , is set as an image to be decoded (hereinafter referred to as "target image") (step S203).

次にプロセッサ14は、それまでの時点で背景テンプレート画像として積算処理された画像を平均化した画像(以下「前回対象画像」と称する)と、今回設定した対象画像の周辺画像範囲、例えばそれぞれ四隅の縦64画素×横64画素の画像ブロックの一致を検証する(ステップS204)。 Next, the processor 14 generates an image obtained by averaging the images that have been integrated as the background template image up to that point (hereinafter referred to as the “previous target image”), and the peripheral image range of the target image set this time, for example, the four corners. 64 pixels long×64 pixels wide image blocks are verified for matching (step S204).

上記前回対象画像は、上記ステップS201で最初に選択した初期の背景画像からの蓄積に基づく画像であるものとする。 The previous target image is assumed to be an image based on accumulation from the initial background image first selected in step S201.

プロセッサ14は上記検証の結果に基づき、予め設定した閾値以下の相違であるか否かにより、一致するか否かを判断する(ステップS205)。 Based on the verification result, the processor 14 determines whether or not the difference is equal to or less than a preset threshold value (step S205).

ここで、前回対象画像と今回設定した対象画像の四隅の画像範囲の一致を検証するのは、ダンスの場合、ダンサーが画像の四隅の位置に移動して踊ることはなく、2つの対象画像の四隅が一致しないと判断した場合は(ステップS205のNo)、例えば画像中の主要被写体に対するオートフォーカス機能による追尾処理等でフレーム画像の背景側の合焦状態が大きく外れて「ピンぼけ」状態となっている場合や、当該フレーム画像の撮影範囲が、そもそも上記初期の背景画像の撮影範囲と異なっている場合などが考えられる。 Here, the matching of the image areas of the four corners of the previous target image and the target image set this time is verified because, in the case of dance, the dancers do not move to the positions of the four corners of the image and dance. If it is determined that the four corners do not match (No in step S205), for example, the background side of the frame image is greatly out of focus due to the tracking processing of the main subject in the image by the autofocus function, etc., resulting in an out-of-focus state. or the photographing range of the frame image may differ from the photographing range of the initial background image.

したがってプロセッサ14は、その時点で設定している対象画像を背景テンプレート画像の作成に用いることはないものとして、次のフレーム画像を設定するべく、再び上記ステップS202からの処理に戻る。 Therefore, the processor 14 assumes that the target image set at that time will not be used for creating the background template image, and returns to the processing from step S202 to set the next frame image.

また上記ステップS205において、2つの対象画像の四隅の相違が予め設定した閾値以下であり、一致したと判断した場合(ステップS205のYes)、次にプロセッサ14は、その対象画像中の主要被写体の位置に応じた画面の背景領域の重み付け設定を行なう(ステップS206)。 If it is determined in step S205 that the difference between the four corners of the two target images is equal to or less than the preset threshold value and they match (Yes in step S205), then the processor 14 A weighting setting is performed for the background area of the screen according to the position (step S206).

ここで、対象画像中の主要被写体の位置に応じた画面の背景領域の重み付け設定を行なうのは、ダンスの場合、それぞれのダンスに応じてダンサーの移動や振り付けが決まっており、一連のダンスの中で、ある時は、ダンスフロアの中央付近にある程度の時間留まって踊り、またある時は、ダンスフロアの左や右端付近に留まって踊ることがある。 Here, the reason why the background area of the screen is weighted according to the position of the main subject in the target image is that in the case of dance, the movements and choreography of the dancers are determined according to each dance, and the movements of the dancers are determined according to the sequence of dances. In some cases, the dancers stay near the center of the dance floor for a certain amount of time while dancing, and other times they dance while staying near the left or right end of the dance floor.

このようなダンス動画から背景テンプレートを作成する場合、特定の場所にある程度の時間留まっているダンサーも背景として含まれてしまうのを防ぐことを目的とする。 When creating a background template from such a dance video, the object is to prevent a dancer who has stayed at a specific place for a certain amount of time from being included in the background.

図4は、画像中の主要被写体MOの位置に応じた重み付け設定の例を示す図である。ここでは、横長の矩形の画像を横方向に4つのエリアに分割するものとして、背景領域を等分に分割し、画面全体における総計値を「200」として、各領域毎に重み付けを行った例を示す。 FIG. 4 is a diagram showing an example of weight setting according to the position of the main subject MO in the image. In this example, a horizontally long rectangular image is divided horizontally into four areas, the background area is equally divided, the total value of the entire screen is set to "200", and each area is weighted. indicates

図4(A)-1は、主要被写体MOが画像中のほぼ中央に留まって踊っている場合を示す。この場合、図4(A)-2に示すように、4つに分割した背景領域中、左右の両端の2つのエリアにそれぞれ重み付け「70」を設定する一方で、中央寄りの2つのエリアにはそれぞれ重み付け「30」を設定している。 FIG. 4(A)-1 shows a case where the main subject MO stays almost in the center of the image and is dancing. In this case, as shown in FIG. 4(A)-2, in the background area divided into four, weighting "70" is set for each of the two areas on the left and right ends, while weighting "70" is set for the two areas near the center. are each set with a weight of "30".

図4(B)-1は、主要被写体MOが画像中のほぼ左端側に留まって踊っている場合を示す。この場合、図4(B)-2に示すように、4つに分割した背景領域中、左端側から順次重み付けを「30」「40」「60」「70」と、右側に位置するほど高くなるように設定している。 FIG. 4(B)-1 shows a case where the main subject MO stays almost on the left end side of the image and is dancing. In this case, as shown in FIG. 4(B)-2, the background area divided into four is sequentially weighted from the left end to "30", "40", "60", and "70". It is set so that

さらに図4(C)-1は、反対に画像中のほぼ右端側に主要被写体MOが位置している場合を示す。この場合、図4(C)-2に示すように、4つに分割した背景領域中、右端側から順次重み付けを「30」「40」「60」「70」と、左側に位置するほど高くなるように設定している。 Further, FIG. 4(C)-1 shows a case where the main subject MO is positioned almost on the right end side of the image. In this case, as shown in FIG. 4(C)-2, weighting is performed sequentially from the right end of the background area divided into four, with "30", "40", "60", and "70". It is set so that

なお、上記図4は、横長の矩形の画像を横方向に4つのエリアに分割するものとして、背景領域を等分に分割した場合について説明したが、このような分割パターンに限らず、予め用意される複数の分割パターンから、スマートフォン10のユーザ自身が、ダンスにおける主要被写体MOの動きに応じた1つの分割パターンを任意に選択できるものとしても良い。 In FIG. 4, the horizontal rectangular image is divided horizontally into four areas, and the background area is equally divided. The user of the smartphone 10 himself/herself may be able to arbitrarily select one division pattern according to the movement of the main subject MO in the dance from among the plurality of division patterns.

その場合、ユーザ自身が画像中の主要被写体MOの動き方を考慮して分割パターンを適切に選択することで、後に画像中から主要被写体MOを切り出して抽出する場合の精度をより高めることができる。 In that case, the user himself/herself can appropriately select the division pattern in consideration of the movement of the main subject MO in the image, so that the accuracy of cutting out and extracting the main subject MO from the image later can be further improved. .

こうして上記図4に示した如く主要被写体の位置に応じた画面の背景領域の重み付け設定を行なった後、プロセッサ14は重み付けした結果に基づいて現在の対象画像を前回対象画像にさらに加算させる積算処理を実行した後(ステップS207)、次のフレーム画像を設定するべく、再び上記ステップS202からの処理に戻る。 After weighting the background area of the screen according to the position of the main subject as shown in FIG. (step S207), the process returns to step S202 to set the next frame image.

こうして上記ステップS202~S207の処理を、動画ファイルを構成するフレーム画像分だけ繰返し実行することで、画像の背景側が鮮明な状態となっているフレーム画像のみを用いて背景テンプレート画像を作成する。
なお、この重み付け背景画像生成法は公知な技術であるため詳細な説明は省略する。
By repeating the processes of steps S202 to S207 for the frame images constituting the moving image file, the background template image is created using only the frame images in which the background side of the image is clear.
Since this weighted background image generation method is a well-known technique, detailed description thereof will be omitted.

そして、動画ファイルを構成する最後のフレーム画像に対する処理を実行した後、上記ステップS202において、背景テンプレート画像の作成を終了したと判断すると(ステップS202のYes)、プロセッサ14は以上で図3のサブルーチンの処理を終了して、上記図2のメインルーチンに復帰する。 Then, after executing the processing for the last frame image that constitutes the moving image file, if it is determined in step S202 that the background template image has been created (Yes in step S202), the processor 14 executes the subroutine of FIG. , and returns to the main routine shown in FIG.

図2において、上記作成した背景のテンプレート画像に基づいて、あらためてダンサーの主要被写体MOを切り出して抽出する処理を、全フレーム画像に対して実行する(ステップS103)。 In FIG. 2, processing for cutting out and extracting the main subject MO of the dancer is again performed on all frame images based on the created background template image (step S103).

その後にプロセッサ14は、抽出したダンサーの主要被写体MOに基づき、予め設定されている採点処理方法に基づいた採点を実行し、採点結果を表示部17にて表示させた上で(ステップS104)、以上でダンス解析プログラム16Aに基づいた上記図2の処理を終了する。 After that, the processor 14 executes scoring based on a preset scoring method based on the extracted main subject MO of the dancer, and after displaying the scoring result on the display unit 17 (step S104), Thus, the processing of FIG. 2 based on the dance analysis program 16A ends.

以上詳述した如く本実施形態によれば、画像中を移動する動体と背景を精度良く切り分けることが可能となる。 As described in detail above, according to this embodiment, it is possible to accurately separate a moving object moving in an image from the background.

また上記実施形態においては、上記図4でも示したように、対象となる画像中での主要被写体MOの位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数の背景領域に分割して、分割した背景領域毎に重み付けを設定するものとしたので、明らかに主要被写体MOが存在しない背景領域が、より重み付けされるものとして背景のテンプレート画像を作成するものとしたので、後に画像中から主要被写体MOを切り出して抽出する場合の精度をより高めることができる。 In the above embodiment, as also shown in FIG. 4, the position of the main subject MO in the target image is recognized, and the target image is divided into a plurality of background areas based on the recognized position of the main subject. Since the weighting is set for each of the divided background areas, the background template image is created assuming that the background area where the main subject MO does not clearly exist is more weighted. It is possible to further improve the accuracy when cutting out and extracting the main subject MO from the image.

なお上記実施形態は、ダンス解析用のアプリケーションプログラムをインストールしたスマートフォンに適用した場合について説明したものであるが、本発明はそのように限定を行なうものではなく、画像中を移動する物体を主要被写体MOとして、背景画像から切り出して抽出するような他の画像処理装置においても、同様に適用することが可能である。 In the above embodiment, the case of applying to a smartphone in which an application program for dance analysis is installed has been explained, but the present invention is not limited to that, and an object moving in an image is used as a main subject. The MO can be similarly applied to other image processing apparatuses that cut out and extract from a background image.

また上記実施形態においては、動画を構成するフレームにおいて「ピンぼけ」状態となっているフレームは、背景テンプレート画像の作成に使わない処理(図3のステップS203~S205)と、対象画像中の主要被写体の位置に応じた画面の背景領域の重み付け設定を行なう処理(図3のステップS206)の両方を行なったが、どちらか一方の処理だけを行なってもよい。 Further, in the above-described embodiment, the frames constituting the moving image that are "out of focus" are not used for creating the background template image (steps S203 to S205 in FIG. 3), and the main subject in the target image is Although both of the weight setting of the background area of the screen according to the position of (step S206 in FIG. 3) are performed, only one of the processes may be performed.

さらに上記実施形態においては、基準となる初期の背景画像の設定(図3のステップS201)は、今回撮影する動画の「ピンぼけ」状態となっていない一のフレーム(例えば、先頭フレーム)を基準となる初期の背景画像としたが、記録されている複数の静止画及び又は動画の中に、今回ダンスを行なうダンスフロアを撮影したファイルが既に存在する場合は、その画像を基準となる初期の背景画像としてもよい。 Furthermore, in the above embodiment, the setting of the initial background image that serves as a reference (step S201 in FIG. 3) is based on one frame (for example, the first frame) of the moving image that is shot this time that is not in the “out of focus” state. However, if a file of the dance floor on which the dance will be performed this time already exists in the multiple recorded still images and/or videos, that image will be used as the reference initial background. It may be an image.

また上記実施形態において、図3のステップS206の、主要被写体位置に応じた画面の背景領域の重み付け設定は、今回のダンスの教師データとなる動画を事前に撮影し、その動画におけるダンサー(教師)の位置に応じた重み付けのテンプレートデータを事前に作成し、このテンプレートデータに基づいて重み付け設定を行なってもよい。 Further, in the above embodiment, the setting of the weighting of the background area of the screen according to the position of the main subject in step S206 of FIG. Weighting template data may be created in advance according to the position of the , and the weighting may be set based on this template data.

さらに上記実施形態においては、ダンスを例に説明したが、ダンスに限らず、フィギュアスケート、体操競技の床運動、チアリーディング等の演技、パフォーマンスなどであってもよい。 Furthermore, in the above-described embodiment, dance was explained as an example, but it is not limited to dance, and acting and performance such as figure skating, floor exercise in gymnastics, and cheerleading may be performed.

また、そのような処理を実行するプログラムを実装する装置に関しても、スマートフォンに限らず、モバイルタイプのパーソナルコンピュータや、動画撮影を行なうムービーカメラ等においても適用することが可能となる。 In addition, the device that implements the program for executing such processing is not limited to smartphones, and can be applied to mobile type personal computers, movie cameras that shoot moving images, and the like.

その他、本願発明は、上記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態は可能な限り適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。更に、上記実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適当な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。 In addition, the present invention is not limited to the above-described embodiments, and can be variously modified in the implementation stage without departing from the scope of the invention. Moreover, each embodiment may be implemented in combination as much as possible, and in that case, the combined effect can be obtained. Furthermore, the above-described embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiments, the problems described in the column of problems to be solved by the invention can be solved, and the effects described in the column of effects of the invention is obtained, the configuration from which this constituent element is deleted can be extracted as an invention.

以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。
[請求項1]
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段と、
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段と、
を備える画像処理装置。
[請求項2]
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定する、請求項1記載の画像処理装置。
[請求項3]
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能とする、請求項2記載の画像処理装置。
[請求項4]
上記判断手段は、動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、予め設定した閾値以下の相違の場合、上記対象画像は背景画像としての信頼性があると判断する、請求項1乃至3の何れか一項記載の画像処理装置。
[請求項5]
上記背景画像作成手段は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、請求項1乃至4の何れか一項記載の画像処理装置。
[請求項6]
上記背景画像作成手段は、重み付け背景画像生成法により背景画像の情報を作成する、請求項1乃至5の何れか一項記載の画像処理装置。
[請求項7]
上記基準となる画像は、上記動画の一のフレームである、請求項1乃至6の何れか一項記載の画像処理装置。
[請求項8]
上記基準となる画像は、「ピンぼけ」状態となっていない画像である、請求項1乃至7の何れか一項記載の画像処理装置。
[請求項9]
上記予め設定した画像位置範囲は、画像の周辺領域である、請求項1乃至8の何れか一項記載の画像処理装置。
[請求項10]
上記予め設定した画像位置範囲は、画像の四隅の領域である、請求項9記載の画像処理装置。
[請求項11]
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断工程と、
上記判断工程で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成工程と、
を有する画像処理方法。
[請求項12]
動画を取扱う装置が内蔵したコンピュータが実行するプログラムであって、上記コンピュータを、
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段、及び
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段、
として機能させるプログラム。
The invention described in the original claims of the present application is appended below.
[Claim 1]
determining means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
An image processing device comprising:
[Claim 2]
The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets weighting for each area as the background image. 2. The image processing apparatus according to claim 1.
[Claim 3]
3. The image processing apparatus according to claim 2, wherein one of a plurality of division patterns prepared in advance can be arbitrarily selected for dividing the plurality of areas.
[Claim 4]
The determination means compares the target image constituting the moving image with the reference image within a preset image position range, and determines that the target image is reliable as a background image if the difference is equal to or less than a preset threshold. 4. The image processing apparatus according to any one of claims 1 to 3, wherein the image processing apparatus determines.
[Claim 5]
The background image creation means recognizes the position of the teacher from a video taken in advance as teacher data, and weights the background image based on template data weighted according to the position of the teacher created in advance. 5. The image processing apparatus according to any one of claims 1 to 4, wherein the image processing apparatus sets .
[Claim 6]
6. The image processing apparatus according to any one of claims 1 to 5, wherein said background image creation means creates background image information by a weighted background image generation method.
[Claim 7]
7. The image processing apparatus according to claim 1, wherein said reference image is one frame of said moving image.
[Claim 8]
8. The image processing apparatus according to any one of claims 1 to 7, wherein the reference image is an image that is not "out of focus".
[Claim 9]
9. The image processing apparatus according to any one of claims 1 to 8, wherein said preset image position range is a peripheral area of an image.
[Claim 10]
10. The image processing apparatus according to claim 9, wherein the preset image position range is four corner areas of the image.
[Claim 11]
a determination step of comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
a background image creation step of creating background image information using a plurality of target images determined to be reliable in the determination step;
An image processing method comprising:
[Claim 12]
A program executed by a computer installed in a moving image handling device, wherein the computer is
a determination means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
A program that acts as a

10…スマートフォン、
11…スピーカ、
12…マイクロホン、
13…音声処理部、
14…プロセッサ、
15…メインメモリ、
16…SSD(Solid State Drive)、
16A…ダンス解析プログラム、
17…表示部、
18…タッチ入力部、
19…撮像部、
20…GPS受信部、
21…加速度センサ、
22…ジャイロセンサ、
23…地磁気センサ、
24…操作部、
25…バイブレータ、
26…無線通信部、
27…NFC部、
28…外部デバイスインタフェイス(I/F)、
29…GPSアンテナ、
30~32…アンテナ、
33…ヘッドホンジャック、
34…マイクロUSB端子、
35…メモリカードスロット、
MO…(画像中の)主要被写体、
SB…システムバス
10 ... smart phone,
11...Speaker,
12... Microphone,
13 ... audio processing unit,
14 processor,
15... main memory,
16 SSD (Solid State Drive),
16A ... dance analysis program,
17 ... display unit,
18 ... touch input section,
19... Imaging unit,
20 ... GPS receiver,
21 ... acceleration sensor,
22 ... gyro sensor,
23 ... geomagnetic sensor,
24 operation unit,
25... vibrator,
26... wireless communication unit,
27 NFC unit,
28 ... external device interface (I/F),
29 ... GPS antenna,
30 to 32...Antenna,
33... headphone jack,
34 ... micro USB terminal,
35... memory card slot,
MO ... main subject (in the image),
SB: system bus

Claims (19)

動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段と、
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段と、
を備え、
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、
像処理装置。
determining means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
with
The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets a weight for each area as a background image. ,
For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
Image processing device.
上記画像位置範囲は、上記動画を構成する対象画像及び上記基準となる画像の一部分の範囲である、請求項1記載の画像処理装置。 2. The image processing apparatus according to claim 1, wherein the image position range is a partial range of the target image forming the moving image and the reference image. 上記判断手段は、動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、予め設定した閾値以下の相違の場合、上記対象画像は背景画像としての信頼性があると判断する、請求項1または2に記載の画像処理装置。 The determination means compares the target image constituting the moving image with the reference image within a preset image position range, and determines that the target image is reliable as a background image if the difference is equal to or less than a preset threshold. 3. The image processing apparatus according to claim 1, wherein the image processing apparatus determines. 動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段と、
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段と、
を備え、
上記背景画像作成手段は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、
像処理装置。
determining means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine the reliability of the target image as a background image;
background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
with
The background image creation means recognizes the position of the teacher from a video taken in advance as teacher data, and weights the background image based on template data weighted according to the position of the teacher created in advance. to set the
Image processing device.
上記背景画像作成手段は、重み付け背景画像生成法により背景画像の情報を作成する、
請求項1乃至の何れか一項記載の画像処理装置。
The background image creation means creates background image information by a weighted background image generation method.
The image processing apparatus according to any one of claims 1 to 4 .
上記基準となる画像は、上記動画の一のフレームである、請求項1乃至の何れか一項記載の画像処理装置。 6. The image processing apparatus according to claim 1 , wherein said reference image is one frame of said moving image. 上記基準となる画像は、「ピンぼけ」状態となっていない画像である、請求項1乃至の何れか一項記載の画像処理装置。 7. The image processing apparatus according to any one of claims 1 to 6 , wherein the reference image is an image that is not "out of focus". 上記予め設定した画像位置範囲は、画像の周辺領域である、請求項1乃至の何れか一項記載の画像処理装置。 8. The image processing apparatus according to any one of claims 1 to 7 , wherein said preset image position range is a peripheral area of an image. 上記予め設定した画像位置範囲は、画像の四隅の領域である、請求項記載の画像処理装置。 9. The image processing apparatus according to claim 8 , wherein the preset image position range is four corner areas of the image. 動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断手段と、
前記判断手段により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成手段と、
を備え、
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、
像処理装置。
By setting any one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images a determination means for determining whether or not there is reliability as a background image for
background image creation means for creating a background image using the plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable by the determination means;
with
The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets a weight for each area as a background image. ,
For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
Image processing device.
動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断手段と、By setting any one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images a determination means for determining whether or not there is reliability as a background image for
前記判断手段により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成手段と、background image creation means for creating a background image using the plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable by the determination means;
を備え、with
上記背景画像作成手段は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、The background image creation means recognizes the position of the teacher from a video taken in advance as teacher data, and weights the background image based on template data weighted according to the position of the teacher created in advance. to set the
画像処理装置。Image processing device.
動画を構成する対象画像の予め設定した画像位置範囲と基準となる画像の予め設定した画像位置範囲が一致する場合は背景画像としての信頼性があると判断する判断工程と、
上記判断工程で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成工程と、
を有し、
上記背景画像作成工程は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、
像処理方法。
a determination step of determining that the background image is reliable when the preset image position range of the target image constituting the moving image and the preset image position range of the reference image match ;
a background image creation step of creating background image information using a plurality of target images determined to be reliable in the determination step;
has
The background image creating step recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets weighting for each area as the background image. ,
For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
Image processing method.
動画を構成する対象画像の予め設定した画像位置範囲と基準となる画像の予め設定した画像位置範囲とが一致する場合は背景画像としての信頼性があると判断する判断工程と、a determination step of determining that the background image is reliable when the preset image position range of the target image constituting the moving image and the preset image position range of the reference image match;
上記判断工程で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成工程と、a background image creation step of creating background image information using a plurality of target images determined to be reliable in the determination step;
を有し、has
上記背景画像作成工程は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、In the background image creation step, the position of the teacher is recognized from a video that is taken as teacher data in advance, and weighted as a background image based on template data that is weighted according to the position of the teacher, which has been created in advance. to set the
画像処理方法。Image processing method.
動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断工程と、By setting any one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images a determination step of determining whether or not the background image is reliable for
前記判断工程により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成工程と、a background image creating step of creating a background image using the plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable in the determining step;
を有し、has
上記背景画像作成工程は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、The background image creating step recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets weighting for each area as the background image. ,
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
画像処理方法。Image processing method.
動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断工程と、By setting any one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images a determination step of determining whether or not the background image is reliable for
前記判断工程により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成工程と、a background image creating step of creating a background image using the plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable in the determining step;
を有し、has
上記背景画像作成工程は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、In the background image creation step, the position of the teacher is recognized from a video that is taken as teacher data in advance, and weighted as a background image based on template data that is weighted according to the position of the teacher, which has been created in advance. to set the
画像処理方法。Image processing method.
動画を取扱う装置が内蔵したコンピュータが実行するプログラムであって、上記コンピュータを、
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段、及び
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段、
として機能させ、
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、
ログラム。
A program executed by a computer installed in a moving image handling device, wherein the computer is
Judgment means for comparing the target image that constitutes the moving image with a reference image within a preset image position range to judge the reliability of the target image as a background image; background image creating means for creating background image information using a plurality of target images;
function as
The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets a weight for each area as a background image. ,
For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
program .
動画を取扱う装置が内蔵したコンピュータが実行するプログラムであって、上記コンピュータを、A program executed by a computer installed in a moving image handling device, wherein the computer is
動画を構成する対象画像を基準となる画像と予め設定した画像位置範囲で比較し、上記対象画像の背景画像としての信頼性を判断する判断手段、及びa determination means for comparing a target image constituting a moving image with a reference image within a preset image position range to determine reliability of the target image as a background image;
上記判断手段で信頼性があると判断した対象画像を複数用いて背景画像の情報を作成する背景画像作成手段、background image creating means for creating background image information using a plurality of target images determined to be reliable by the determining means;
として機能させ、function as
上記背景画像作成手段は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、The background image creation means recognizes the position of the teacher from a video taken in advance as teacher data, and weights the background image based on template data weighted according to the position of the teacher created in advance. to set the
プログラム。program.
動画を取扱う装置が内蔵したコンピュータが実行するプログラムであって、上記コンピュータを、A program executed by a computer installed in a moving image handling device, wherein the computer is
動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断手段、By setting any one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images Determination means for determining whether or not there is reliability as a background image for
前記判断手段により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成手段、background image creating means for creating a background image using a plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable by the determining means;
として機能させ、function as
上記背景画像作成手段は、対象画像中の主要被写体の位置を認識し、認識した主要被写体の位置に基づいて、対象画像を複数のエリアに分割してエリア毎に背景画像としての重み付けを設定し、The background image creating means recognizes the position of the main subject in the target image, divides the target image into a plurality of areas based on the recognized position of the main subject, and sets a weight for each area as a background image. ,
上記複数のエリアの分割は、予め用意された複数の分割パターンから1つを任意に選択可能である、For the division of the plurality of areas, one can be arbitrarily selected from a plurality of division patterns prepared in advance.
プログラム。program.
動画を取扱う装置が内蔵したコンピュータが実行するプログラムであって、上記コンピュータを、A program executed by a computer installed in a moving image handling device, wherein the computer is
動画を構成する複数のフレーム画像の何れかを基準画像に設定するとともに、前記複数のフレーム画像のそれぞれを前記基準画像と予め定められた画像領域で比較することにより、前記複数のフレーム画像のそれぞれに対して背景画像としての信頼性があるか否かを判断する判断手段、By setting one of a plurality of frame images constituting a moving image as a reference image and comparing each of the plurality of frame images with the reference image in a predetermined image area, each of the plurality of frame images Determination means for determining whether or not there is reliability as a background image for
前記判断手段により信頼性があると判断されたフレーム画像が複数あった場合に、当該信頼性があると判断された複数のフレーム画像を用いて背景画像を作成する背景画像作成手段、background image creation means for creating a background image using a plurality of frame images determined to be reliable when there are a plurality of frame images determined to be reliable by the determination means;
として機能させ、function as
上記背景画像作成手段は、事前に撮影された教師データとなる動画から教師の位置を認識し、事前に作成した、前記教師の位置に応じた重み付けのテンプレートデータに基づいて、背景画像としての重み付けを設定する、The background image creation means recognizes the position of the teacher from a video taken in advance as teacher data, and weights the background image based on template data weighted according to the position of the teacher created in advance. to set the
プログラム。program.
JP2018117154A 2018-06-20 2018-06-20 Image processing device, image processing method and program Active JP7192259B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018117154A JP7192259B2 (en) 2018-06-20 2018-06-20 Image processing device, image processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018117154A JP7192259B2 (en) 2018-06-20 2018-06-20 Image processing device, image processing method and program

Publications (3)

Publication Number Publication Date
JP2019219940A JP2019219940A (en) 2019-12-26
JP2019219940A5 JP2019219940A5 (en) 2021-07-26
JP7192259B2 true JP7192259B2 (en) 2022-12-20

Family

ID=69096626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018117154A Active JP7192259B2 (en) 2018-06-20 2018-06-20 Image processing device, image processing method and program

Country Status (1)

Country Link
JP (1) JP7192259B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087662B (en) * 2020-09-10 2021-09-24 北京小糖科技有限责任公司 Method for generating dance combination dance video by mobile terminal and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000261828A (en) 1999-03-04 2000-09-22 Toshiba Corp 3D image generation method
JP2009181259A (en) 2008-01-30 2009-08-13 Sony Corp Image processing apparatus, image processing method, and program
JP2010003177A (en) 2008-06-20 2010-01-07 Secom Co Ltd Image processing device
JP2010067125A (en) 2008-09-12 2010-03-25 Casio Comput Co Ltd Image processing apparatus, method for processing image, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000261828A (en) 1999-03-04 2000-09-22 Toshiba Corp 3D image generation method
JP2009181259A (en) 2008-01-30 2009-08-13 Sony Corp Image processing apparatus, image processing method, and program
JP2010003177A (en) 2008-06-20 2010-01-07 Secom Co Ltd Image processing device
JP2010067125A (en) 2008-09-12 2010-03-25 Casio Comput Co Ltd Image processing apparatus, method for processing image, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小塚 亨,外3名,背景の適応的選択に基づく複数画像系列の統合による移動物体除去に関する検討,電子情報通信学会技術研究報告 Vol.114 No.520,日本,一般社団法人電子情報通信学会,2015年03月12日,第114巻

Also Published As

Publication number Publication date
JP2019219940A (en) 2019-12-26

Similar Documents

Publication Publication Date Title
US11189037B2 (en) Repositioning method and apparatus in camera pose tracking process, device, and storage medium
EP3188467B1 (en) Method for image capturing using unmanned image capturing device and electronic device supporting the same
CN107087101B (en) Apparatus and method for providing dynamic panorama function
US9071724B2 (en) Method and apparatus for providing a video call service
CN112822522B (en) Video playing method, device, equipment and storage medium
KR20170136750A (en) Electronic apparatus and operating method thereof
CN110544280A (en) AR system and method
KR20180073327A (en) Display control method, storage medium and electronic device for displaying image
JP2021520540A (en) Camera positioning methods and devices, terminals and computer programs
US20140351763A1 (en) Apparatus, method and computer readable recording medium for displaying thumbnail image of panoramic photo
KR20180106076A (en) Method for providing different indicator for image based on photographing mode and electronic device thereof
CN108710525A (en) Map methods of exhibiting, device, equipment and storage medium in virtual scene
US12163806B2 (en) Information processing apparatus
CN108449651B (en) Subtitle adding method, device, equipment and storage medium
CN109859102B (en) Special effect display method, device, terminal and storage medium
KR20180064148A (en) Electronic apparatus and controlling method thereof
CN109302632B (en) Method, device, terminal and storage medium for acquiring live video picture
CN110769313B (en) Video processing method and device and storage medium
CN111954058B (en) Image processing method, device, electronic equipment and storage medium
JP2014146989A (en) Image pickup device, image pickup method, and image pickup program
KR20170098820A (en) Display device and control method
US9007508B2 (en) Portable device, photographing method, and program for setting a target region and performing an image capturing operation when a target is detected in the target region
CN114020387A (en) Terminal screen capturing method and device, storage medium and electronic equipment
KR20180043712A (en) Method for displaying an image and an electronic device thereof
CN112637624B (en) Live stream processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210604

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220822

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: 20221108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221121

R150 Certificate of patent or registration of utility model

Ref document number: 7192259

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150