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
JP6980493B2 - Information processing equipment, information processing methods and programs - Google Patents
[go: Go Back, main page]

JP6980493B2 - Information processing equipment, information processing methods and programs - Google Patents

Information processing equipment, information processing methods and programs Download PDF

Info

Publication number
JP6980493B2
JP6980493B2 JP2017218362A JP2017218362A JP6980493B2 JP 6980493 B2 JP6980493 B2 JP 6980493B2 JP 2017218362 A JP2017218362 A JP 2017218362A JP 2017218362 A JP2017218362 A JP 2017218362A JP 6980493 B2 JP6980493 B2 JP 6980493B2
Authority
JP
Japan
Prior art keywords
image
image pickup
motion vector
control unit
pickup device
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
JP2017218362A
Other languages
Japanese (ja)
Other versions
JP2019092001A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017218362A priority Critical patent/JP6980493B2/en
Publication of JP2019092001A publication Critical patent/JP2019092001A/en
Application granted granted Critical
Publication of JP6980493B2 publication Critical patent/JP6980493B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

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

近年、デジタル化されたカメラが登場し、フラッシュメモリカード(SDカード、CFカード等)等の記録媒体に、静止画像をJPEG方式、動画像をMPEG2やH.264方式等で符号化して記録再生する製品が登場している。
また、歩行等の移動や、ズーム時の手ぶれ等による撮影の際のゆれが映像を見にくくするために、映像のゆれを補正する方法が提案されている。
例えば、特許文献1では、以下のような技術が開示されている。即ち、レンズ及び撮像センサからなる撮像系で、レンズから入った光を映像信号に変換し、映像信号をモニター装置に表示すると共に、画像ゆれ検知回路へも入力し、一定時間隔てた2枚の画像の相関をとることで画像のゆれの方向と大きさを検知する。そして、画像のゆれを打ち消す方向にレンズ系を駆動することで、ゆれ補正を行う技術である。
また、被写体を追尾して撮影する際にも同様に、撮影映像内の被写体にゆれが発生し、画像を見にくくしてしまうことがある。
このような場合のゆれを補正する技術には、例えば、特許文献2がある。特許文献2には、以下のような技術が開示されている。即ち、被写体を追尾して撮影するときに、画像のゆれを検知する際、画像のゆれの方向と大きさを動きベクトルとして検出する。そして、一定時間の画像の動きベクトルを加算し、加算した動きベクトルを用いて、ゆれを補正する領域を判定して、その領域のゆれを打ち消すようにゆれ補正を行う技術である。
In recent years, digitized cameras have appeared, and still images can be converted to JPEG and moving images can be converted to MPEG2 or H.D. on recording media such as flash memory cards (SD cards, CF cards, etc.). Products that encode and record / reproduce by the 264 method or the like have appeared.
Further, a method of correcting the shaking of the image has been proposed so that the shaking during shooting due to movement such as walking or camera shake during zooming makes it difficult to see the image.
For example, Patent Document 1 discloses the following techniques. That is, in an image pickup system consisting of a lens and an image pickup sensor, the light input from the lens is converted into a video signal, the video signal is displayed on the monitor device, and the video signal is also input to the image shake detection circuit. By correlating the image, the direction and size of the image shake are detected. Then, it is a technique for correcting the shake by driving the lens system in the direction of canceling the shake of the image.
Similarly, when shooting by tracking a subject, the subject in the shot image may be shaken, making it difficult to see the image.
For example, Patent Document 2 is a technique for correcting the fluctuation in such a case. Patent Document 2 discloses the following techniques. That is, when the subject is tracked and photographed, the direction and magnitude of the image shake are detected as a motion vector when the image shake is detected. Then, it is a technique of adding motion vectors of an image for a certain period of time, determining a region for correcting the shake using the added motion vector, and performing the shake correction so as to cancel the shake in the region.

特開昭61−248681号公報Japanese Unexamined Patent Publication No. 61-248681 特許第3199834号公報Japanese Patent No. 3199834

一方、近年、カメラ等の撮像装置の小型化が進み、カメラを人体や、自動車の車内、バイク、自転車等の乗り物等に取り付けて撮影することが行われている。
このような撮影を行った場合、撮像装置で撮影される映像の中に撮像装置を持っている人物自身や、撮像装置が設置された自動車の車内が写り込むことがある。
例えば、自動車に撮像装置を設置した場合、撮影映像の中に車内の一部と、自動車のガラス越しの風景が含まれ、ガラス越しの風景部分は自動車のゆれによってゆれ、車内部分の映像は撮像装置が設置された自動車に対してカメラが振動することでゆれる。したがって、撮影された映像内のこの2つの領域ではそれぞれ別のゆれが生じることとなる。このように、撮像装置により撮影された映像内の複数の領域でそれぞれ異なるゆれが生じる場合がある。
しかし、従来技術では、映像内の複数の領域でそれぞれ異なるゆれが生じる場合、映像を適切に補正することができなかった。
On the other hand, in recent years, the miniaturization of image pickup devices such as cameras has progressed, and cameras have been attached to human bodies, automobiles, motorcycles, bicycles and other vehicles for taking pictures.
When such an image is taken, the person who has the image pickup device or the inside of the automobile in which the image pickup device is installed may be reflected in the image taken by the image pickup device.
For example, when an image pickup device is installed in a car, the captured image includes a part of the inside of the car and the scenery through the glass of the car. The camera shakes due to the vibration of the car in which the device is installed. Therefore, different fluctuations occur in these two regions in the captured image. In this way, different fluctuations may occur in a plurality of regions in the image captured by the image pickup apparatus.
However, in the prior art, when different fluctuations occur in a plurality of regions in an image, the image cannot be properly corrected.

本発明の情報処理装置は、撮像装置を介して撮影される映像から検出された前記映像内の動きを示す情報である動き情報に基づいて、前記映像を複数の領域に分割する分割手段と、前記分割手段により前記映像が分割された前記複数の領域に含まれる領域に対して、前記領域に対応する前記動き情報に基づいて、ゆれを補正する処理を行う補正手段と、を有し、前記分割手段は、前記撮像装置のセンサを介して取得されたゆれ情報と、前記動き情報と、に基づいて、前記映像を、前記複数の領域である前記撮像装置が設置されているオブジェクトが撮影されている領域とその他の領域とに分割するThe information processing apparatus of the present invention includes a dividing means for dividing the video into a plurality of regions based on motion information which is information indicating the motion in the video detected from the video captured by the image pickup device. wherein the dividing means the region in which the image is included in the plurality of regions divided, on the basis of the motion information corresponding to the area, and chromatic correction means performs a process of correcting the shaking, the said The dividing means captures the image and the object in which the image pickup device is installed, which is a plurality of regions, based on the shaking information acquired through the sensor of the image pickup device and the motion information. Divide into the existing area and other areas .

本発明によれば、映像内の複数の領域でそれぞれ異なるゆれが生じる場合に映像を適切に補正することができる。 According to the present invention, it is possible to appropriately correct an image when different fluctuations occur in a plurality of regions in the image.

情報処理装置のハードウェア構成等の一例を示す図である。It is a figure which shows an example of the hardware composition of an information processing apparatus. ゆれ補正処理の一例を説明する図である。It is a figure explaining an example of the shake correction processing. 撮像装置の設置状況等の一例を示す図である。It is a figure which shows an example of the installation situation of the image pickup apparatus. ゆれ補正処理の一例を示すフローチャートである。It is a flowchart which shows an example of the shake correction processing. 動きベクトルの検出処理の一例を説明する図である。It is a figure explaining an example of the motion vector detection processing. 検出された動きベクトル等の一例を示す図である。It is a figure which shows an example of the detected motion vector and the like. 検出されたゆれの波形の一例を示す図である。It is a figure which shows an example of the waveform of the detected shaking. 撮影された映像等の一例を示す図である。It is a figure which shows an example of the photographed image and the like. 動きベクトルの補間処理の一例を説明する図である。It is a figure explaining an example of the interpolation processing of a motion vector. 撮影された映像等の一例を示す図である。It is a figure which shows an example of the photographed image and the like.

以下に、本発明の好ましい実施の形態を、図面に基づいて詳細に説明する。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.

<実施形態1>
図1(a)は、本実施形態の撮像装置100のハードウェア構成の一例を示す図である。撮像装置100は、広角レンズを有する撮影部を含み、撮影部を介した撮影を制御する撮像装置である。撮像装置100は、情報処理装置の一例である。
撮像装置100は、制御部101、メモリ102、記録媒体103、撮影部104、入力I/F105、センサ部106を含む。各要素は、システムバス107を介して、相互に通信可能に接続されている。
制御部101は、撮像装置100を制御するCentral Processing Unit(CPU)、マイクロコンピュータ等の演算装置である。メモリ102は、各種プログラム、各種設定情報等を記憶するRead Only Memory(ROM)等の記憶装置を含む記憶装置である。また、メモリ102は、制御部101のワークエリアやデータの一時的な記憶場所として機能するRandom Access Memory(RAM)等の記憶装置を含む。以下では、メモリ102中で、映像信号を一時的に記憶する部分をフレームメモリとする。
<Embodiment 1>
FIG. 1A is a diagram showing an example of the hardware configuration of the image pickup apparatus 100 of the present embodiment. The image pickup device 100 is an image pickup device that includes a shooting unit having a wide-angle lens and controls shooting through the image pickup unit. The image pickup device 100 is an example of an information processing device.
The image pickup apparatus 100 includes a control unit 101, a memory 102, a recording medium 103, a photographing unit 104, an input I / F 105, and a sensor unit 106. The elements are communicably connected to each other via the system bus 107.
The control unit 101 is an arithmetic unit such as a Central Processing Unit (CPU) or a microcomputer that controls the image pickup device 100. The memory 102 is a storage device including a storage device such as a Read Only Memory (ROM) that stores various programs, various setting information, and the like. Further, the memory 102 includes a storage device such as a Random Access Memory (RAM) that functions as a work area of the control unit 101 and a temporary storage place for data. In the following, the portion of the memory 102 that temporarily stores the video signal is referred to as a frame memory.

記録媒体103は、各種プログラム、各種設定情報、撮像装置100が撮影した映像データ等を記憶する記録媒体である。記録媒体103は、SDメモリカード等のフラッシュメモリ、ハードディスクドライブ(HDD)、ソリッドステートドライブ(SSD)等である。また、本実施形態では、制御部101は、ATA、SDCARD I/F等の公知のインターフェイス(IF)を介して、記録媒体103に対して、データや各種のコマンドを通信する。また、記録媒体103は、記録媒体装着、排出機構により、撮像装置100に対して装着、排出することができるような構成であってもよいし、撮像装置100に内蔵される構成であってもよい。
また、制御部101は、記録媒体103に対してデータ(ファイル)の書き込み、読み込みを行う場合、記録媒体103から、ファイルシステムデータを再生してメモリ102に記憶する。このファイルシステムデータは、記録媒体103に記録されたデータのファイル名やファイルのサイズ、データの記録アドレス等を示すデータであり、ファイルを管理するための管理情報である。そして、制御部101は、読み出したファイルシステムデータに従ってファイルの書き込み、読み読みを制御する。制御部101は、記録媒体103へのファイルの書き込みに応じて、メモリ102に記憶されたファイルシステムデータを更新する。そして、制御部101は、更新したファイルシステムデータを、記録媒体103に記録する。
The recording medium 103 is a recording medium that stores various programs, various setting information, video data captured by the image pickup apparatus 100, and the like. The recording medium 103 is a flash memory such as an SD memory card, a hard disk drive (HDD), a solid state drive (SSD), or the like. Further, in the present embodiment, the control unit 101 communicates data and various commands to the recording medium 103 via a known interface (IF) such as ATA and SDCARD I / F. Further, the recording medium 103 may be configured to be attached to and ejected from the image pickup device 100 by a recording medium attachment / discharge mechanism, or may be configured to be built in the image pickup device 100. good.
Further, when writing / reading data (file) to / from the recording medium 103, the control unit 101 reproduces the file system data from the recording medium 103 and stores it in the memory 102. This file system data is data indicating a file name, a file size, a data recording address, etc. of the data recorded on the recording medium 103, and is management information for managing the file. Then, the control unit 101 controls writing and reading of the file according to the read file system data. The control unit 101 updates the file system data stored in the memory 102 in response to writing the file to the recording medium 103. Then, the control unit 101 records the updated file system data on the recording medium 103.

撮影部104は、レンズ、撮像素子等を含み、周囲の環境を撮影する撮影部である。撮影部104は、撮像素子を介して、レンズから入った光を変換することで映像信号を取得する。本実施形態では、撮影部104は、マイクロフォンを含み、マイクロフォンを介して、周囲の音声信号も取得する。入力I/F105は、電源のオン・オフや映像の記録・再生等を指示するためのハードスイッチ、ハードボタン、タッチパネルの操作部等の入力部との接続に利用されるインターフェースである。本実施形態では、入力部は、撮像装置100に内蔵されていることとするが、外部の装置であることとしてもよい。ユーザは、入力I/F105を介して接続されている入力部を操作することで、撮像装置100の静止画像、動画像の記録及び再生の開始、停止、記録画像の一覧表示等を、撮像装置100に指示することができる。制御部101は、入力I/F105を介して、ユーザによる入力部の操作に基づく入力を受付ける。センサ部106は、ジャイロセンサ、加速度センサ等のセンサを含むセンサ部である。制御部101は、センサ部106により検知された情報に基づいて、撮像装置100の振動を検出する。
制御部101が、メモリ102、記録媒体103等に記憶されたプログラムにしたがって処理を実行することで、図1(b)で後述する撮像装置100の機能、図4で後述するフローチャートの処理等が実現される。
The photographing unit 104 includes a lens, an image sensor, and the like, and is an photographing unit that photographs the surrounding environment. The photographing unit 104 acquires a video signal by converting the light entering from the lens via the image sensor. In the present embodiment, the photographing unit 104 includes a microphone, and also acquires an ambient audio signal via the microphone. The input I / F 105 is an interface used for connecting to an input unit such as a hard switch, a hard button, and an operation unit of a touch panel for instructing power on / off and video recording / playback. In the present embodiment, the input unit is built in the image pickup apparatus 100, but may be an external apparatus. By operating the input unit connected via the input I / F 105, the user can start and stop recording and playback of still images and moving images of the image pickup device 100, display a list of recorded images, and the like. You can instruct 100. The control unit 101 receives an input based on an operation of the input unit by the user via the input I / F 105. The sensor unit 106 is a sensor unit including sensors such as a gyro sensor and an acceleration sensor. The control unit 101 detects the vibration of the image pickup apparatus 100 based on the information detected by the sensor unit 106.
The control unit 101 executes processing according to a program stored in the memory 102, the recording medium 103, etc., so that the function of the image pickup apparatus 100 described later in FIG. 1B, the processing of the flowchart described later in FIG. 4 and the like can be performed. It will be realized.

図1(b)は、撮像装置100の機能構成の一例を示す図である。
撮像装置100は、符号化部110、記録媒体制御部111、ゆれ検出部112、領域判定部113、ゆれ補正部114を含む。
符号化部110は、映像及び音声の符号化・復号化を行う。符号化部110は、映像の記録の際には、撮影部104を介して取得された映像信号や音声信号を、動画像であればH.264、静止画像であればJPEG等の符号化形式に従って符号化して、そのデータ量を軽減させる。
記録媒体制御部111は、記録媒体103に対し、映像信号、音声信号等の各種の情報の書き込み、読み込みを行う。記録媒体制御部111は、映像の記録の際には、メモリ102のフレームメモリに蓄積された映像データや音声データを記録媒体103に記録する。また、記録媒体制御部111は、映像の再生の際には、記録媒体103から映像データや音声データを読み込み、メモリ102に記憶する。また、記録媒体制御部111は、記録媒体103に記録する映像データ、音声データ、各種の情報を、FAT(File Allocation Table)等のファイルシステムに従い、ファイルとして管理する。
FIG. 1B is a diagram showing an example of the functional configuration of the image pickup apparatus 100.
The image pickup apparatus 100 includes a coding unit 110, a recording medium control unit 111, a shake detection unit 112, a region determination unit 113, and a shake correction unit 114.
The coding unit 110 encodes / decodes video and audio. When recording a video, the coding unit 110 may use the video signal or audio signal acquired via the photographing unit 104 in the case of a moving image. 264, if it is a still image, it is encoded according to a coding format such as JPEG to reduce the amount of data.
The recording medium control unit 111 writes and reads various information such as video signals and audio signals to the recording medium 103. When recording video, the recording medium control unit 111 records video data and audio data stored in the frame memory of the memory 102 on the recording medium 103. Further, the recording medium control unit 111 reads video data and audio data from the recording medium 103 and stores them in the memory 102 when the video is reproduced. Further, the recording medium control unit 111 manages video data, audio data, and various information to be recorded on the recording medium 103 as files according to a file system such as FAT (File Allocation Table).

ゆれ検出部112は、センサ部106を介して、撮像装置100のゆれを検出する。ゆれ検出部112は、センサ部106に含まれるセンサの種類に応じて、撮像装置100のゆれを検出することができ、また、ゆれの方向だけでなく、ゆれの大きさも検出できる。
領域判定部113は、メモリ102のフレームメモリに一時的に記憶された複数の映像から動きベクトルを検出し、検出した動きベクトルと、ゆれ検出部112により検出されたゆれ情報と、に基づいて、映像内の領域を分割する。映像から検出された動きベクトルは、映像内の動きを示す動き情報の一例である。
ゆれ補正部114は、領域判定部113により求められた動きベクトルと、ゆれ検出部112により検出されたゆれ情報と、に基づいて映像のゆれを補正する。記録媒体制御部111は、ゆれ補正部114によりゆれ補正された映像信号を、再びメモリ102に記憶する。
ゆれ検出部112、領域判定部113、ゆれ補正部114は、撮像装置100が映像を記録している際には常に動作しており、撮影部104により取得されメモリ102へ記憶された映像をもとに動作する。符号化部110は、ゆれ補正部114によりゆれ補正されメモリ102に記憶された映像を、符号化する。そして、記録媒体制御部111は、符号化された映像を、記録媒体103に記録する。
The shake detection unit 112 detects the shake of the image pickup apparatus 100 via the sensor unit 106. The shake detection unit 112 can detect the shake of the image pickup apparatus 100 according to the type of the sensor included in the sensor unit 106, and can detect not only the direction of the shake but also the magnitude of the shake.
The area determination unit 113 detects a motion vector from a plurality of images temporarily stored in the frame memory of the memory 102, and based on the detected motion vector and the vibration information detected by the vibration detection unit 112, Divide the area in the video. The motion vector detected from the video is an example of motion information indicating the motion in the video.
The shake correction unit 114 corrects the shake of the image based on the motion vector obtained by the area determination unit 113 and the shake information detected by the shake detection unit 112. The recording medium control unit 111 stores the video signal corrected by the shake correction unit 114 in the memory 102 again.
The shake detection unit 112, the area determination unit 113, and the shake correction unit 114 are always in operation when the image pickup apparatus 100 is recording an image, and also include an image acquired by the photographing unit 104 and stored in the memory 102. Works with. The coding unit 110 encodes an image that has been shake-corrected by the shake correction unit 114 and stored in the memory 102. Then, the recording medium control unit 111 records the encoded video on the recording medium 103.

図2は、ゆれ補正処理の一例を説明する図である。
図2(a)の映像200〜202は、撮影部104を介して撮影された映像を示す。映像200〜202は、予め定められた間隔で、時系列上で連続して植木鉢が撮影された映像である。制御部101は、撮影部104を介して、実際に表示部に表示したり記録したりする映像よりも、大きなサイズの映像を撮影できる。以下では、実際に表示部に表示されたり記録されたりする映像よりも、大きなサイズの映像を、未加工映像とする。また、以下では、実際に表示部に表示されたり記録されたりする映像を、加工映像とする。
映像200〜202中の外側の枠(実線)は、撮影部104を介して撮影された未加工映像の範囲を示す。映像200〜202には、映像中で、植木鉢が上下にゆれている様子が示されている。この映像200〜202を、動画として連続して再生すると植木鉢が上下にゆれて、非常に見にくい映像となってしまう。
FIG. 2 is a diagram illustrating an example of the shake correction process.
The images 200 to 202 of FIG. 2A show images taken through the photographing unit 104. The images 200 to 202 are images in which the flowerpots are continuously photographed in chronological order at predetermined intervals. The control unit 101 can shoot an image having a size larger than the image actually displayed or recorded on the display unit via the photographing unit 104. In the following, an image having a size larger than the image actually displayed or recorded on the display unit will be referred to as an unprocessed image. Further, in the following, an image that is actually displayed or recorded on the display unit will be referred to as a processed image.
The outer frame (solid line) in the images 200 to 202 indicates the range of the raw image taken through the photographing unit 104. Images 200 to 202 show that the flowerpot is shaking up and down in the image. If the images 200 to 202 are continuously played as a moving image, the flowerpot will shake up and down, and the image will be very difficult to see.

図2(b)の映像210〜212は、それぞれ、映像200〜202から一部が切り出された加工映像である。映像200〜202の点線の枠線は、切り出し位置を示す。
映像200〜202の点線の枠線の位置を見ると、切り出し位置が、植木鉢のゆれ合せて、ゆれを打ち消すように位置を変えている様子が分かる。
制御部101は、このようにゆれを打ち消すように、未加工映像から映像を切り出すことで、映像210〜212に示されるように、ゆれのない映像を生成できる。
以上が、ゆれ補正処理の一例の概要である。
The images 210 to 212 in FIG. 2B are processed images partially cut out from the images 200 to 202, respectively. The dotted frame of the images 200 to 202 indicates the cutting position.
Looking at the position of the dotted frame line in the images 200 to 202, it can be seen that the cutting position is changed so as to cancel the shaking by the shaking of the flowerpot.
The control unit 101 can generate an image without shaking as shown in the images 210 to 212 by cutting out the image from the raw image so as to cancel the shaking in this way.
The above is an outline of an example of the shake correction process.

図3は、撮像装置100の設置状況等の一例を示す図である。
図3(a)は、自動車のダッシュボードの中央に撮像装置100が設置された状況を示す。図3(a)の例では、ダッシュボードの向こう側のガラス越しに車外の風景が広がっている。本実施形態では、撮像装置100は、自動車に設置されることとする。以下では、撮像装置100が設置された自動車を、設置自動車とする。
図3(b)は、図3(a)の状況で撮像装置100が撮影する映像の一例である。撮像装置100は、撮影部104に広角レンズを含み、撮像装置100が設置されたダッシュボードが映り込んだ映像を撮影することとなる。
FIG. 3 is a diagram showing an example of the installation status of the image pickup apparatus 100.
FIG. 3A shows a situation in which the image pickup device 100 is installed in the center of the dashboard of an automobile. In the example of FIG. 3A, the scenery outside the vehicle spreads through the glass on the other side of the dashboard. In the present embodiment, the image pickup device 100 is installed in an automobile. In the following, the vehicle in which the image pickup device 100 is installed will be referred to as an installed vehicle.
FIG. 3B is an example of an image taken by the image pickup apparatus 100 in the situation of FIG. 3A. The image pickup apparatus 100 includes a wide-angle lens in the photographing unit 104, and captures an image on which a dashboard on which the image pickup apparatus 100 is installed is reflected.

以下では、図4を用いて、本実施形態の撮像装置100の処理について説明する。
図4は、ゆれ補正処理の一例を示すフローチャートである。
撮像装置100の電源がオンになると、図4の処理が開始される。
S401において、制御部101は、撮影部104、符号化部110を介して、映像を撮影し、撮影した映像のデータである未加工映像の映像データを取得し、取得した映像データをフレームメモリに記憶する。また、制御部101は、加工映像のサイズの映像(例えば、全ピクセルのピクセル値が0の映像)を生成する。制御部101は、この生成した映像内のピクセル値を変更することで、加工映像を生成する。以下では、この生成された映像を、原映像とする。また、制御部101は、予め定められた間隔Δtで周期的に映像データを撮影し、撮影した未加工映像の映像データをフレームメモリに記憶し続けている。S401でフレームメモリに記憶された映像データは、時刻tにおける映像のデータである映像データ(t)であるとする。
Hereinafter, the processing of the image pickup apparatus 100 of the present embodiment will be described with reference to FIG.
FIG. 4 is a flowchart showing an example of the shake correction process.
When the power of the image pickup apparatus 100 is turned on, the process of FIG. 4 is started.
In S401, the control unit 101 shoots an image via the photographing unit 104 and the coding unit 110, acquires the image data of the unprocessed image which is the data of the photographed image, and stores the acquired image data in the frame memory. Remember. Further, the control unit 101 generates an image of the size of the processed image (for example, an image in which the pixel value of all pixels is 0). The control unit 101 generates a processed image by changing the pixel value in the generated image. In the following, this generated video will be referred to as the original video. Further, the control unit 101 periodically shoots video data at a predetermined interval Δt, and continues to store the video data of the shot raw video in the frame memory. It is assumed that the video data stored in the frame memory in S401 is the video data (t) which is the video data at the time t.

S402において、制御部101は、S401でメモリ102に記憶された映像のデータに基づいて、動きベクトルを検出する。図5(a)は、S402での制御部101による動きベクトル検出処理の一例を説明する図である。また、映像データ(t)よりもnフレーム前の映像(時刻(t−nΔt)における映像データ)を、映像データ(t−nΔt)とする。図5(a)に示すように、制御部101は、映像データ(t)と、フレームメモリに記録された時刻(t−Δt)の映像データ(時刻tの映像データの1フレーム前の映像データ)と、を比較することで、動きベクトルを検出する。制御部101は、例えば、映像を予め定められた複数のブロックに分割し、分割したブロックごとにマッチングをとって、各ブロックが動いた方向と大きさを求める方法等の公知の技術を用いて、動きベクトルを検出する。制御部101は、例えば、映像データ(t)と、映像データ(t−Δt)と、における各ブロックのマッチングをとることで、動きベクトルを検出する。
図6(a)に、S402で検出された動きベクトルの一例を示す。図6(a)中の矢印それぞれが、動きベクトルである。矢印の向きと大きさは、それぞれは、ゆれの向きと大きさを示す。
In S402, the control unit 101 detects a motion vector based on the video data stored in the memory 102 in S401. FIG. 5A is a diagram illustrating an example of motion vector detection processing by the control unit 101 in S402. Further, the video (video data at the time (tnΔt)) n frames before the video data (t) is referred to as video data (tnΔt). As shown in FIG. 5A, the control unit 101 has video data (t) and video data at the time (t−Δt) recorded in the frame memory (video data one frame before the video data at time t). ) And, to detect the motion vector. The control unit 101 uses a known technique such as a method of dividing an image into a plurality of predetermined blocks, matching each divided block, and obtaining the direction and size of each block. , Detect motion vector. The control unit 101 detects a motion vector by matching each block in, for example, the video data (t) and the video data (t−Δt).
FIG. 6A shows an example of the motion vector detected in S402. Each arrow in FIG. 6A is a motion vector. The direction and size of the arrows indicate the direction and size of the shake, respectively.

S403において、制御部101は、センサ部106、ゆれ検出部112を介して、設置自動車に対する撮像装置100のゆれを検出する。本実施形態では、制御部101は、撮像装置100の設置自動車の底面に対して垂直方向のゆれを検出する。制御部101は、検出したゆれの情報をゆれ情報としてメモリ102に記憶する。
図7(a)に、S403で検出されたゆれを示すグラフを示す。図7(a)のグラフの縦軸は、ゆれの大きさを示し、横軸は、時間を示す。
S404において、制御部101は、S402で検出した動きベクトルと、S403で検出した設置自動車に対する撮像装置のゆれを示すゆれ情報と、に基づいて、領域判定部113を介して、映像内の領域を複数の領域に分割する。
S402で検出された動きベクトルは、図6(a)に示される動きベクトルであるとする。S404で検出されたゆれを示すゆれ情報は、図7(a)のグラフが示すゆれの情報であるとする。本実施形態では、制御部101は、S403で設置自動車の底面に対して垂直方向のゆれのみを検出することとしたが、設置自動車の底面に対して水平方向等、他の方向のゆれを検出することとしてもよい。
In S403, the control unit 101 detects the vibration of the image pickup device 100 with respect to the installed vehicle via the sensor unit 106 and the vibration detection unit 112. In the present embodiment, the control unit 101 detects the shaking in the direction perpendicular to the bottom surface of the vehicle in which the image pickup device 100 is installed. The control unit 101 stores the detected shaking information in the memory 102 as shaking information.
FIG. 7A shows a graph showing the shaking detected in S403. The vertical axis of the graph of FIG. 7A shows the magnitude of the shaking, and the horizontal axis shows the time.
In S404, the control unit 101 determines the region in the image via the region determination unit 113 based on the motion vector detected in S402 and the fluctuation information indicating the fluctuation of the image pickup device with respect to the installed vehicle detected in S403. Divide into multiple areas.
It is assumed that the motion vector detected in S402 is the motion vector shown in FIG. 6A. It is assumed that the shaking information indicating the shaking detected in S404 is the shaking information shown by the graph of FIG. 7 (a). In the present embodiment, the control unit 101 determines that the S403 detects only the shaking in the direction perpendicular to the bottom surface of the installed vehicle, but detects the shaking in other directions such as the horizontal direction with respect to the bottom surface of the installed vehicle. You may do it.

S402では、動きベクトルの検出に、図5(a)で示したように時刻t−Δtと時刻tとにおける映像データが用いられる。そのため、制御部101は、S403で検出されたゆれのうち、時刻t−Δtと時刻tとにおけるゆれと、映像データ(t)と映像データ(t−Δt)とから求められた動きベクトルと、を比較することとなる。制御部101は、図7(a)のグラフにおける時刻t−Δt〜tまでの期間内におけるゆれの変化から設置自動車の底面に対して垂直方向のゆれの向きと大きさとを検出する。
また、撮像装置100は、設置自動車に設置されている。そのため、撮像装置100が撮影した映像上における設置自動車の部分における動きベクトルの大きさ及び向きは、設置自動車に対する撮像装置100のゆれの大きさ及び向きと対応関係にあると仮定できる。即ち、撮像装置100がある方向にゆれると、撮像装置100が撮影する映像内での設置自動車の領域は、その逆方向にゆれる。また、撮像装置100がある距離だけゆれると、撮像装置100が撮影する映像内での設置自動車の領域は、その距離に応じた距離ゆれることとなる。
そこで、本実施形態では、制御部101は、映像中で、撮像装置100と対応するゆれが生じている部分を、設置自動車が撮影されている部分として決定し、その他の部分を、車外の風景が撮影されている部分として決定する。
In S402, the video data at the time t−Δt and the time t is used for the detection of the motion vector as shown in FIG. 5 (a). Therefore, among the fluctuations detected in S403, the control unit 101 determines the fluctuations at the time t−Δt and the time t, the motion vector obtained from the video data (t) and the video data (t−Δt), and the motion vector. Will be compared. The control unit 101 detects the direction and magnitude of the sway in the direction perpendicular to the bottom surface of the installed vehicle from the change in the sway within the period from time t−Δt to t in the graph of FIG. 7A.
Further, the image pickup device 100 is installed in the installed vehicle. Therefore, it can be assumed that the size and direction of the motion vector in the portion of the installed vehicle on the image captured by the image pickup device 100 correspond to the size and direction of the shaking of the image pickup device 100 with respect to the installed vehicle. That is, when the image pickup device 100 swings in a certain direction, the area of the installed vehicle in the image captured by the image pickup device 100 swings in the opposite direction. Further, when the image pickup device 100 is shaken by a certain distance, the area of the installed vehicle in the image captured by the image pickup device 100 is shaken by a distance corresponding to the distance.
Therefore, in the present embodiment, the control unit 101 determines the portion of the image in which the shaking corresponding to the image pickup device 100 is generated as the portion where the installed vehicle is photographed, and the other portion is the scenery outside the vehicle. Is determined as the part being photographed.

制御部101は、例えば、撮像装置100により撮影された映像を、予め定められた複数のブロックに分割して、分割したブロックごとに、そのブロック内の動きベクトルが、撮像装置100のゆれと、対応するか否かを判定する。
この複数のブロックそれぞれの形状、サイズは任意の形状、サイズでよいが、領域を分割するのに十分なサイズであることが望ましい。この複数のブロックとしては、例えば、映像の全領域を、n×n(n:任意の自然数)の矩形領域に分割した各ブロック等がある。
制御部101は、例えば、ブロックごとに、領域判定部113を介して、以下のような処理を行う。即ち、制御部101は、ブロック内の動きベクトルの向きと、撮像装置100のゆれの向きと、が反対であるか否かを判定し、反対でないと判定した場合、ブロック内の動きベクトルと、撮像装置100のゆれと、が対応しないと判定する。
For example, the control unit 101 divides the image captured by the image pickup apparatus 100 into a plurality of predetermined blocks, and the motion vector in the divided blocks is the fluctuation of the image pickup apparatus 100. Determine if it corresponds.
The shape and size of each of the plurality of blocks may be any shape and size, but it is desirable that the size is sufficient to divide the area. As the plurality of blocks, for example, there are blocks in which the entire area of the video is divided into rectangular areas of n × n (n: an arbitrary natural number).
For example, the control unit 101 performs the following processing for each block via the area determination unit 113. That is, the control unit 101 determines whether or not the direction of the motion vector in the block and the direction of the shaking of the image pickup apparatus 100 are opposite, and if it is determined that they are not opposite, the motion vector in the block and the motion vector 101 are determined. It is determined that the shaking of the image pickup apparatus 100 does not correspond.

また、制御部101は、ブロック内の動きベクトルの向きと、撮像装置100のゆれの向きと、が反対であると判定した場合、以下の処理を行う。即ち、制御部101は、ブロック内の動きベクトルの大きさと、設置自動車に対する撮像装置100のゆれの大きさに予め定められた値を乗じた値と、の差分が予め定められた閾値以下であるか否かを判定する処理を行う。この予め定められた値は、実際の設置自動車に対する撮像装置100の単位距離のゆれに対する、撮像装置100により撮影された映像内でのゆれの距離の割合を示す値である。制御部101は、この差分が予め定められた閾値より大きいと判定した場合、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応しないと判定する。また、制御部101は、この差分が予め定められた閾値以下であると判定した場合、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応すると判定する。
そして、制御部101は、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応すると判定したブロックそれぞれが示す領域を、設置自動車が撮影された領域である領域Bとして決定する。また、制御部101は、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応しないと判定したブロックそれぞれが示す領域を、車外の風景が撮影された領域である領域Aとして決定する。
S404の処理により、制御部101は、撮像装置100により撮影された映像内の領域を、領域Aと領域Bとに分割する。図6(b)に、映像が領域Aと領域Bとに分割された様子の一例を示す。
Further, when the control unit 101 determines that the direction of the motion vector in the block and the direction of the shaking of the image pickup apparatus 100 are opposite to each other, the control unit 101 performs the following processing. That is, the control unit 101 has a difference between the magnitude of the motion vector in the block and the value obtained by multiplying the magnitude of the shaking of the image pickup device 100 with respect to the installed vehicle by a predetermined value, which is equal to or less than a predetermined threshold value. Performs the process of determining whether or not. This predetermined value is a value indicating the ratio of the fluctuation distance in the image captured by the image pickup device 100 to the fluctuation of the unit distance of the image pickup device 100 with respect to the actual installed vehicle. When the control unit 101 determines that this difference is larger than a predetermined threshold value, the control unit 101 determines that the motion vector in the block and the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle do not correspond to each other. Further, when the control unit 101 determines that this difference is equal to or less than a predetermined threshold value, the control unit 101 determines that the motion vector in the block corresponds to the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle.
Then, the control unit 101 determines the region indicated by each of the blocks determined to correspond to the motion vector in the block and the fluctuation of the image pickup device 100 with respect to the installed vehicle as the region B in which the installed vehicle is photographed. .. Further, the control unit 101 sets the area indicated by each of the blocks determined not to correspond to the motion vector in the block and the shaking of the image pickup device 100 with respect to the installed vehicle as the area A in which the scenery outside the vehicle is photographed. decide.
By the process of S404, the control unit 101 divides the region in the image captured by the image pickup apparatus 100 into the region A and the region B. FIG. 6B shows an example of how the image is divided into a region A and a region B.

S405において、制御部101は、ゆれ補正部114を介して、領域Aに対するゆれの補正処理を行う。本実施形態では、未加工映像である映像データ内の領域には、予め加工映像とするための部分(図2(a)の映像200における点線の矩形領域)が定められているとする。制御部101は、例えば、以下のような処理を行うことで、領域Aに対するゆれの補正処理を行う。即ち、制御部101は、S401でフレームメモリに記憶した未加工映像である映像データ(t)内の領域Aにおいて、加工映像となる領域として予め定められた領域に含まれる領域を特定する。制御部101は、映像データ(t)内の特定した領域を、映像データ(t)内で、S402で領域Aについて検出した動きベクトルが示す方向にその動きベクトルが示す距離だけ移動させた領域を、ゆれが補正された加工映像内の領域Aとなる領域として特定する。そして、制御部101は、S401で生成した原映像中の領域Aに対応する領域について、各ピクセルのピクセル値を、特定した領域の画像と同様の値とする。
S406において、制御部101は、ゆれ補正部114を介して、領域Bに対するゆれの補正処理を行う。制御部101は、例えば、以下のような処理を行うことで、領域Bに対するゆれの補正処理を行う。即ち、制御部101は、S401でフレームメモリに記憶した未加工映像である映像データ(t)内の領域Bにおいて、加工映像となる領域として予め定められた領域に含まれる領域を特定する。制御部101は、映像データ(t)内の特定した領域を映像データ(t)内で、S402で領域Bについて検出した動きベクトルが示す方向にその動きベクトルが示す距離だけ移動させた領域を、ゆれが補正された加工映像内の領域Bとなる領域として特定する。そして、制御部101は、S401で生成した原映像中の領域Bに対応する領域について、角ピクセル値を、特定した領域の画像と同様の値とする。
In S405, the control unit 101 performs the vibration correction processing for the region A via the vibration correction unit 114. In the present embodiment, it is assumed that a portion (a dotted rectangular area in the image 200 of FIG. 2A) for making a processed image is defined in advance in the area in the image data which is an unprocessed image. For example, the control unit 101 performs the following processing to correct the fluctuation of the region A. That is, the control unit 101 specifies an area included in a predetermined area as a processed image in the area A in the image data (t) which is the unprocessed image stored in the frame memory in S401. The control unit 101 moves the specified region in the video data (t) by the distance indicated by the motion vector in the direction indicated by the motion vector detected in the region A in S402 in the video data (t). , It is specified as a region A in the processed image in which the shaking is corrected. Then, the control unit 101 sets the pixel value of each pixel to the same value as the image in the specified area for the area corresponding to the area A in the original image generated in S401.
In S406, the control unit 101 performs the vibration correction processing for the region B via the vibration correction unit 114. For example, the control unit 101 performs the following processing to correct the fluctuation of the region B. That is, the control unit 101 specifies an area included in a predetermined area as a processed image in the area B in the image data (t) which is the unprocessed image stored in the frame memory in S401. The control unit 101 moves the specified region in the video data (t) in the video data (t) by the distance indicated by the motion vector in the direction indicated by the motion vector detected for the region B in S402. It is specified as a region B in the processed image in which the shaking is corrected. Then, the control unit 101 sets the angular pixel value to the same value as the image in the specified region for the region corresponding to the region B in the original video generated in S401.

S405〜S406の処理により、S401で生成された原映像は、ゆれが補正された加工映像となっている。制御部101は、このゆれが補正された加工映像を、メモリ102、記録媒体103に記憶する。
本実施形態では、制御部101は、S405の処理の後に、S406の処理を実行した。しかし、制御部101は、S406の処理の後に、S405の処理を実行してもよいし、S405の処理とS406の処理とを並行して実行することとしてもよい。
また、制御部101は、領域Aと領域Bとのうち、指定された方のみに対して、ゆれを補正する処理を行うこととしてもよい。例えば、制御部101は、領域Bのゆれ補正の量を0とする(ゆれ補正を行わないことと等価)ことで、撮像装置100により撮影された設置自動車の部分(ダッシュボード部分)がゆれており、車外の風景がゆれていない映像を生成できる。これにより、撮像装置100は、臨場感のある映像を生成できるといった効果を奏することができる。
S407において、制御部101は、撮像装置100の電源がOFFにされたか否かを判定する。制御部101は、撮像装置100の電源がOFFにされたと判定した場合、図4の処理を終了し、撮像装置100の電源がOFFにされていないと判定した場合、S401の処理に進む。
The original image generated in S401 by the processing of S405 to S406 is a processed image in which the shaking is corrected. The control unit 101 stores the processed image corrected for this shaking in the memory 102 and the recording medium 103.
In the present embodiment, the control unit 101 executes the process of S406 after the process of S405. However, the control unit 101 may execute the process of S405 after the process of S406, or may execute the process of S405 and the process of S406 in parallel.
Further, the control unit 101 may perform a process of correcting the shaking only on the designated one of the area A and the area B. For example, the control unit 101 sets the amount of the shake correction in the area B to 0 (equivalent to not performing the shake correction), so that the portion (dashboard portion) of the installed vehicle photographed by the image pickup apparatus 100 is shaken. It is possible to generate an image in which the scenery outside the car is not shaken. As a result, the image pickup apparatus 100 can produce an effect of being able to generate a realistic image.
In S407, the control unit 101 determines whether or not the power of the image pickup apparatus 100 has been turned off. When the control unit 101 determines that the power of the image pickup apparatus 100 has been turned off, the process of FIG. 4 is terminated, and when it is determined that the power supply of the image pickup apparatus 100 has not been turned off, the process proceeds to the process of S401.

以上、本実施形態では、撮像装置100は、撮像装置100により撮影された映像から動きベクトルを検出し、センサ部106を介して撮像装置100の設置自動車に対するゆれ情報を検出した。撮像装置100は、検出した動きベクトルとゆれ情報とに基づいて、撮像装置100により撮影された映像内の各ブロックの領域を領域A、Bの何れであるかを判定した。そして、撮像装置100は、領域A、Bそれぞれに対して、その領域に対応する補正処理を行った。これにより、撮像装置100は、映像内の複数の領域でそれぞれ異なるゆれが生じる場合、映像を適切に補正することができる。 As described above, in the present embodiment, the image pickup device 100 detects the motion vector from the image captured by the image pickup device 100, and detects the shaking information for the vehicle on which the image pickup device 100 is installed via the sensor unit 106. The image pickup apparatus 100 determines whether the region of each block in the image captured by the image pickup apparatus 100 is a region A or B based on the detected motion vector and the fluctuation information. Then, the image pickup apparatus 100 performs correction processing corresponding to each of the regions A and B. As a result, the image pickup apparatus 100 can appropriately correct the image when different fluctuations occur in a plurality of regions in the image.

<実施形態2>
実施形態1では、撮像装置100は、撮像装置100の設置自動車に対するゆれを検出した。本実施形態では、撮像装置100は、センサ部106、ゆれ検出部112を介して、撮像装置100の設置自動車に対するゆれと、設置自動車のゆれと、を検出する。
本実施形態の撮像装置100のハードウェア構成と機能構成とは、実施形態1と同様である。また、撮像装置100の処理は、図4に示す処理と同様であるが、S403〜S404の処理が実施形態1と異なる。
<Embodiment 2>
In the first embodiment, the image pickup device 100 detects the shaking of the image pickup device 100 with respect to the installed vehicle. In the present embodiment, the image pickup device 100 detects the shake of the image pickup device 100 with respect to the installed vehicle and the shake of the installed vehicle via the sensor unit 106 and the shake detection unit 112.
The hardware configuration and functional configuration of the image pickup apparatus 100 of the present embodiment are the same as those of the first embodiment. Further, the processing of the image pickup apparatus 100 is the same as the processing shown in FIG. 4, but the processing of S403 to S404 is different from that of the first embodiment.

本実施形態では、撮像装置100は、S403で、撮像装置100の設置自動車に対するゆれと、このゆれよりもより低周波なゆれである設置自動車自体のゆれを検出する。設置自動車自体のゆれは、撮像装置100により撮影された映像内では、ガラス越しの車外の風景部分のゆれとして見えることとなる。
本実施形態では、このように撮像装置100が複数のゆれを検出した場合の処理について実施形態1と異なる点について説明する。
制御部101は、S403で、センサ部106、ゆれ検出部112を介して、設置自動車に対する撮像装置100のゆれ、設置自動車自体のゆれを検出する。本実施形態では、制御部101は、設置自動車の底面に対して垂直方向の撮像装置100のゆれ、設置自動車の底面に対して垂直方向の設置自動車のゆれを検出する。制御部101は、検出した撮像装置100、設置自動車のゆれの情報をゆれ情報としてメモリ102に記憶する。
図7(b)に、本実施形態のS403で検出されたゆれの一例を示すグラフを示す。図7(b)のグラフの縦軸は、ゆれの大きさを示し、横軸は、時間を示す。図7(b)には、比較的低周波のゆれと、比較的高周波のゆれと、が重畳された波形が示されている。ここで、比較的低周波のゆれは、設置自動車自体のゆれであり、比較的高周波のゆれは、撮像装置100の設置自動車に対するゆれであると仮定する。
In the present embodiment, the image pickup apparatus 100 detects, in S403, the shaking of the image pickup device 100 with respect to the installed vehicle and the shaking of the installed vehicle itself, which is a vibration having a lower frequency than this shaking. The shaking of the installed vehicle itself can be seen as the shaking of the landscape portion outside the vehicle through the glass in the image taken by the image pickup device 100.
In the present embodiment, the processing when the image pickup apparatus 100 detects a plurality of shakings will be described as being different from the first embodiment.
The control unit 101 detects the vibration of the image pickup device 100 with respect to the installed vehicle and the vibration of the installed vehicle itself in S403 via the sensor unit 106 and the vibration detection unit 112. In the present embodiment, the control unit 101 detects the shaking of the image pickup device 100 in the direction perpendicular to the bottom surface of the installed vehicle and the shaking of the installed vehicle in the direction perpendicular to the bottom surface of the installed vehicle. The control unit 101 stores the detected information on the shaking of the image pickup device 100 and the installed vehicle in the memory 102 as the shaking information.
FIG. 7B shows a graph showing an example of the shaking detected in S403 of the present embodiment. The vertical axis of the graph of FIG. 7B shows the magnitude of the shaking, and the horizontal axis shows the time. FIG. 7B shows a waveform in which relatively low frequency fluctuations and relatively high frequency fluctuations are superimposed. Here, it is assumed that the relatively low frequency sway is the sway of the installed vehicle itself, and the relatively high frequency sway is the sway of the image pickup device 100 with respect to the installed vehicle.

制御部101は、例えば、検出したゆれの波形データを、フーリエ変換することで、周波数領域のデータに変換する。そして、制御部101は、変換したデータのうち、予め定められた閾値以上の周波数のデータを、フーリエ逆変換することで、設置自動車に対する撮像装置100のゆれを示すゆれのデータを取得する。また、制御部101は、変換したデータのうち、予め定められた閾値未満の周波数のデータを、フーリエ逆変換することで、設置自動車自体のゆれを示すゆれのデータを取得する。これにより、制御部101は、図7(b)のゆれのデータを、設置自動車に対する撮像装置100のゆれのデータと、設置自動車自体のゆれのデータと、に分離できる。
図7(c)に、分離された設置自動車に対する撮像装置100のゆれの一例を示すグラフを示す。図7(c)のゆれは、図7(a)と同様のゆれである。また、図7(d)に、分離された設置自動車自体のゆれの一例を示すグラフを示す。図7(d)のゆれは、図6の領域Aのゆれに対応するゆれと仮定できる。
The control unit 101, for example, converts the detected waveform data of the fluctuation into data in the frequency domain by performing a Fourier transform. Then, the control unit 101 acquires the fluctuation data indicating the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle by performing inverse Fourier transformation of the data having a frequency equal to or higher than a predetermined threshold value among the converted data. Further, the control unit 101 acquires the fluctuation data indicating the fluctuation of the installed vehicle itself by performing the inverse Fourier transformation of the data having a frequency less than a predetermined threshold value among the converted data. As a result, the control unit 101 can separate the shaking data of FIG. 7B into the shaking data of the image pickup device 100 with respect to the installed vehicle and the shaking data of the installed vehicle itself.
FIG. 7C shows a graph showing an example of the shaking of the image pickup apparatus 100 with respect to the separated installed vehicle. The shaking of FIG. 7 (c) is the same as that of FIG. 7 (a). Further, FIG. 7 (d) shows a graph showing an example of the shaking of the separated installed vehicle itself. The sway in FIG. 7 (d) can be assumed to correspond to the sway in region A in FIG.

また、本実施形態では、制御部101は、S404で、S402で検出した動きベクトルと、S403で検出したゆれを示すゆれ情報と、に基づいて、領域判定部113を介して、映像内の領域を複数の領域に分割する。
より具体的には、制御部101は、例えば、撮像装置100により撮影された映像を、予め定められた複数のブロックに分割する。そして、制御部101は、分割したブロックごとに、そのブロック内の動きベクトルが、設置自動車に対する撮像装置100のゆれ又は設置自動車自体のゆれと、対応するか否かを判定する。
制御部101は、例えば、ブロックごとに、領域判定部113を介して、以下のような処理を行う。即ち、制御部101は、ブロック内の動きベクトルの向きと、設置自動車に対する撮像装置100のゆれの向きと、が反対であるか否かを判定する。そして、制御部101は、反対でないと判定した場合、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応しないと判定する。
また、制御部101は、ブロック内の動きベクトルの向きと、設置自動車に対する撮像装置100のゆれの向きと、が反対であると判定した場合、以下の処理を行う。即ち、制御部101は、ブロック内の動きベクトルの大きさと、設置自動車に対する撮像装置100のゆれの大きさに予め定められた値を乗じた値と、の差分が予め定められた閾値以下であるか否かを判定する処理を行う。制御部101は、この差分が予め定められた閾値より大きいと判定した場合、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応しないと判定する。また、制御部101は、この差分が予め定められた閾値以下であると判定した場合、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応すると判定する。
Further, in the present embodiment, the control unit 101 passes through the region determination unit 113 based on the motion vector detected in S402 in S404 and the vibration information indicating the vibration detected in S403, and the region in the image. Is divided into multiple areas.
More specifically, the control unit 101 divides, for example, an image captured by the image pickup apparatus 100 into a plurality of predetermined blocks. Then, the control unit 101 determines, for each divided block, whether or not the motion vector in the block corresponds to the shaking of the image pickup apparatus 100 with respect to the installed vehicle or the shaking of the installed vehicle itself.
For example, the control unit 101 performs the following processing for each block via the area determination unit 113. That is, the control unit 101 determines whether or not the direction of the motion vector in the block and the direction of the shaking of the image pickup device 100 with respect to the installed vehicle are opposite to each other. Then, when it is determined that the control unit 101 is not the opposite, it is determined that the motion vector in the block and the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle do not correspond to each other.
Further, when the control unit 101 determines that the direction of the motion vector in the block and the direction of the shaking of the image pickup apparatus 100 with respect to the installed vehicle are opposite, the control unit 101 performs the following processing. That is, the control unit 101 has a difference between the magnitude of the motion vector in the block and the value obtained by multiplying the magnitude of the shaking of the image pickup device 100 with respect to the installed vehicle by a predetermined value, which is equal to or less than a predetermined threshold value. Performs the process of determining whether or not. When the control unit 101 determines that this difference is larger than a predetermined threshold value, the control unit 101 determines that the motion vector in the block and the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle do not correspond to each other. Further, when the control unit 101 determines that this difference is equal to or less than a predetermined threshold value, the control unit 101 determines that the motion vector in the block corresponds to the fluctuation of the image pickup apparatus 100 with respect to the installed vehicle.

また、制御部101は、例えば、ブロックごとに、領域判定部113を介して、以下のような処理を行う。即ち、制御部101は、ブロック内の動きベクトルの向きと、設置自動車自体のゆれの向きと、が反対であるか否かを判定し、反対でないと判定した場合、ブロック内の動きベクトルと、設置自動車自体のゆれと、が対応しないと判定する。
また、制御部101は、ブロック内の動きベクトルの向きと、設置自動車自体のゆれの向きと、が反対であると判定した場合、以下の処理を行う。即ち、制御部101は、ブロック内の動きベクトルの大きさと、設置自動車自体のゆれの大きさに予め定められた値を乗じた値と、の差分が予め定められた閾値以下であるか否かを判定する処理を行う。制御部101は、この差分が予め定められた閾値より大きいと判定した場合、ブロック内の動きベクトルと、設置自動車自体のゆれと、が対応しないと判定する。また、制御部101は、この差分が予め定められた閾値以下であると判定した場合、ブロック内の動きベクトルと、設置自動車自体のゆれと、が対応すると判定する。
そして、制御部101は、ブロック内の動きベクトルと、設置自動車に対する撮像装置100のゆれと、が対応すると判定したブロックそれぞれが示す領域を、設置自動車が撮影された領域である領域Bとして決定する。また、制御部101は、ブロック内の動きベクトルと、設置自動車自体のゆれと、が対応すると判定したブロックそれぞれが示す領域を、車外の風景が撮影された領域である領域Aとして決定する。
Further, the control unit 101 performs the following processing for each block, for example, via the area determination unit 113. That is, the control unit 101 determines whether or not the direction of the motion vector in the block and the direction of the shaking of the installed vehicle itself are opposite, and if it is determined that they are not opposite, the motion vector in the block and the motion vector 101 are determined. It is determined that the shaking of the installed vehicle itself does not correspond.
Further, when the control unit 101 determines that the direction of the motion vector in the block and the direction of the shaking of the installed vehicle itself are opposite to each other, the control unit 101 performs the following processing. That is, whether or not the difference between the magnitude of the motion vector in the block and the value obtained by multiplying the magnitude of the shaking of the installed vehicle itself by a predetermined value is equal to or less than the predetermined threshold value. Is performed. When the control unit 101 determines that this difference is larger than a predetermined threshold value, the control unit 101 determines that the motion vector in the block and the fluctuation of the installed vehicle itself do not correspond to each other. Further, when the control unit 101 determines that this difference is equal to or less than a predetermined threshold value, the control unit 101 determines that the motion vector in the block corresponds to the fluctuation of the installed vehicle itself.
Then, the control unit 101 determines the region indicated by each of the blocks determined to correspond to the motion vector in the block and the fluctuation of the image pickup device 100 with respect to the installed vehicle as the region B in which the installed vehicle is photographed. .. Further, the control unit 101 determines a region indicated by each of the blocks determined to correspond to the motion vector in the block and the shaking of the installed vehicle itself as the region A in which the scenery outside the vehicle is photographed.

以上、本実施形態の処理により、撮像装置100は、撮像装置100により撮影された映像内の領域を、より適切に、分割できる。これにより、撮像装置100は、より適切にゆれの補正を行うことができる。 As described above, by the process of this embodiment, the image pickup apparatus 100 can more appropriately divide the region in the image captured by the image pickup apparatus 100. As a result, the image pickup apparatus 100 can more appropriately correct the shaking.

<実施形態3>
本実施形態では、撮像装置100が時系列上で予め定められた間隔(Δt)で撮影された3以上の複数の映像の比較により検出される複数の動きベクトルに基づいて、撮影された映像の領域を分割し、分割した領域ごとにゆれを補正する処理について説明する。
本実施形態の撮像装置100のハードウェア構成と機能構成とは、実施形態1と同様である。また、撮像装置100の処理は、図4に示す処理と同様であるが、S402、S404の処理が実施形態1と異なる。
<Embodiment 3>
In the present embodiment, the image captured image is based on a plurality of motion vectors detected by comparison of a plurality of images captured by the image pickup apparatus 100 at predetermined intervals (Δt) in time series. A process of dividing an area and correcting the fluctuation for each divided area will be described.
The hardware configuration and functional configuration of the image pickup apparatus 100 of the present embodiment are the same as those of the first embodiment. The processing of the image pickup apparatus 100 is the same as the processing shown in FIG. 4, but the processing of S402 and S404 is different from that of the first embodiment.

図8(a)には、設置自動車内に乗車している人が動いて、手等が映像に映り込んだ状況が示されている。例えば、図8(a)で手が上に動いたときに検出される動きベクトルは、図8(b)に示されるようになる。図8(b)の矢印801は、設置自動車に乗車している人の手の動きによって検出された上向きの動きベクトルである。矢印801の動きベクトルは、映像中で設置自動車が撮影されている領域における他の動きベクトルとは向きが異なっていることが分かる。この際、実施形態1と同様にS404の領域判定処理が行われると、矢印801の動きベクトルに対応する領域は、ゆれ情報と動きベクトルが異なるため、領域Bと見なされなくなり、領域Aと判定されてしまう。
この状態でゆれの補正処理が行われると、矢印801の動きベクトルに対応する領域は、領域Aとしてゆれが補正されてしまうため、正しく補正されず、違和感のある映像となってしまう。また、矢印801の動きベクトルに対応する領域は、設置自動車内にいる人の領域であり、ダッシュボード等の車内の一部が映り込んでいるものと同等の領域として、領域Bと判別してゆれ補正する方が望ましい。
矢印801の動きベクトルが他の領域Bにおける動きベクトルと一致しない期間は、手が動いている期間という一時的な期間となる。一方、手が動いていないときはダッシュボードと同様に他の領域Bと同じようなゆれが発生する。そのため、その際の領域Bに対応する動きベクトルは、図6(a)に示すように全て同じ動きベクトルとなる。
そこで、本実施形態では、撮像装置100は、一時的に動きベクトルが変動した領域があった際に、その領域を、変動前の動きベクトルに対応する領域として判定する処理を行う。
FIG. 8A shows a situation in which a person in the installed vehicle moves and his / her hand or the like is reflected in the image. For example, the motion vector detected when the hand moves upward in FIG. 8 (a) is shown in FIG. 8 (b). The arrow 801 in FIG. 8B is an upward motion vector detected by the movement of the hand of a person in the installed vehicle. It can be seen that the motion vector of the arrow 801 has a different direction from the other motion vectors in the area where the installed vehicle is photographed in the image. At this time, when the area determination process of S404 is performed as in the first embodiment, the area corresponding to the motion vector of the arrow 801 is not regarded as the area B because the shaking information and the motion vector are different, and is determined as the area A. Will be done.
If the vibration correction process is performed in this state, the region corresponding to the motion vector of the arrow 801 will be corrected as the region A, so that the image will not be corrected correctly and the image will have a sense of discomfort. Further, the area corresponding to the motion vector of the arrow 801 is the area of the person in the installed vehicle, and is determined to be the area B as the area equivalent to the area in which a part of the vehicle such as the dashboard is reflected. It is desirable to correct the shaking.
The period in which the motion vector of the arrow 801 does not match the motion vector in the other region B is a temporary period in which the hand is moving. On the other hand, when the hand is not moving, the same shaking as in the other area B occurs as in the dashboard. Therefore, the motion vectors corresponding to the region B at that time are all the same motion vector as shown in FIG. 6A.
Therefore, in the present embodiment, when there is a region where the motion vector temporarily fluctuates, the image pickup apparatus 100 performs a process of determining the region as a region corresponding to the motion vector before the fluctuation.

図5(b)は、本実施形態におけるS402での制御部101による動きベクトル検出処理の一例を説明する図である。
S401の処理において映像データ(t)が取得されたとする。また、S402の処理の時点でフレームメモリ内に、映像データ(t)、映像データ(t―Δt)、・・・、〜、映像データ(t―(n−1)Δt)、映像データ(t―nΔt)のn+1個の映像データが記憶されているとする。nは、予め定められた2以上の整数であるとする
制御部101は、S402で、フレームメモリに記憶されている映像データ(t−kΔt)と映像データ(t−(k+1)Δt)と(0<=k<=n−1 k∈Z)から、映像データ(t−kΔt)における動きベクトルを検出する。以下では、映像データ(t−kΔt)と映像データ(t−(k+1)Δt)とから検出された動きベクトルを、動きベクトル(t−kΔt)とする。制御部101は、この処理を、kの値が{0、1、2、・・・、n−2、n−1}のそれぞれである場合について、行うことで、n個の動きベクトル(動きベクトル(t)〜動きベクトル(t−(n−1)Δt)を検出する。これにより、制御部101は、時刻tにおける動きベクトルだけでなく、過去n−1個の動きベクトルを取得したこととなる。即ち、制御部101は、時刻t以前のn個の動きベクトルを取得したこととなる。
FIG. 5B is a diagram illustrating an example of motion vector detection processing by the control unit 101 in S402 in the present embodiment.
It is assumed that the video data (t) is acquired in the process of S401. Further, at the time of processing S402, the video data (t), the video data (t—Δt), ..., ~, The video data (t— (n-1) Δt), and the video data (t) are stored in the frame memory. It is assumed that n + 1 video data of −nΔt) are stored. It is assumed that n is a predetermined integer of 2 or more. The control unit 101 is S402, and the video data (t−kΔt), the video data (t− (k + 1) Δt), and ( From 0 <= k <= n-1 k ∈ Z), the motion vector in the video data (t−kΔt) is detected. In the following, the motion vector detected from the video data (t−kΔt) and the video data (t− (k + 1) Δt) will be referred to as a motion vector (t−kΔt). The control unit 101 performs this process for each of the cases where the value of k is {0, 1, 2, ..., N-2, n-1}, so that n motion vectors (motions) are performed. The vector (t) to the motion vector (t- (n-1) Δt) is detected. As a result, the control unit 101 has acquired not only the motion vector at time t but also the past n-1 motion vectors. That is, the control unit 101 has acquired n motion vectors before the time t.

制御部101は、S404で映像内に予め設定された複数のブロックそれぞれについて、S402で取得された複数の動きベクトルに基づいて、そのブロックの領域を判定する。
制御部101は、例えば、ある時点におけるあるブロックに対応する動きベクトルが、予め定められた期間の間、同じ方向を向き、予め定められた閾値以下の大きさの変動しか起こしていない場合、以下の処理を行う。即ち、制御部101は、その動きベクトルを、その時点に置けるそのブロックに対応する最終的な動きベクトルとして決定する。また、制御部101は、その動きベクトルが、予め定められた期間の間、同じ方向を向き、予め定められた閾値以下の大きさの変動しか起こしていないわけではない場合、その動きベクトルを、最終的な動きベクトルとして決定しない。
この予め定められた期間を、th1とする。本実施形態では、th1を、3Δtとする。この場合、制御部101は、あるブロックに対応する動きベクトル(t)、動きベクトル(t−Δt)、動きベクトル(t−2Δt)、動きベクトル(t−3Δt)をフレームメから取得する。動きベクトル(t−Δt)、動きベクトル(t−2Δt)、動きベクトル(t−3Δt)は、それぞれ、向き、大きさが同じ動きベクトルであるとする。そして、制御部101は、動きベクトル(t)と、動きベクトル(t−Δt)〜(t−3Δt)と、の向きが一致するか否かを判定する。
The control unit 101 determines the area of each of the plurality of blocks preset in the video in S404 based on the plurality of motion vectors acquired in S402.
For example, when the motion vector corresponding to a certain block at a certain time point is oriented in the same direction for a predetermined period and causes a fluctuation of a magnitude equal to or less than a predetermined threshold value, the control unit 101 is described as follows. Process. That is, the control unit 101 determines the motion vector as the final motion vector corresponding to the block that can be placed at that time point. Further, when the motion vector is oriented in the same direction for a predetermined period and causes only a fluctuation of a magnitude equal to or less than a predetermined threshold value, the control unit 101 sets the motion vector. Not determined as the final motion vector.
This predetermined period is defined as th1. In this embodiment, th1 is 3Δt. In this case, the control unit 101 acquires a motion vector (t), a motion vector (t−Δt), a motion vector (t-2Δt), and a motion vector (t-3Δt) corresponding to a certain block from the frame. It is assumed that the motion vector (t−Δt), the motion vector (t-2Δt), and the motion vector (t-3Δt) are motion vectors having the same direction and magnitude, respectively. Then, the control unit 101 determines whether or not the directions of the motion vector (t) and the motion vectors (t−Δt) to (t-3Δt) match.

制御部101は、動きベクトル(t)と、動きベクトル(t−Δt)〜(t−3Δt)と、の向きが一致しないと判定した場合、動きベクトル(t)を最終的な動きベクトルとして決定せずに、以下の処理を行う。即ち、制御部101は、例えば、動きベクトル(t−Δt)〜(t−3Δt)の平均の動きベクトルを取得し、取得した動きベクトルを、時刻tにおけるそのブロックの最終的な動きベクトルとして決定する。
制御部101は、動きベクトル(t)と、動きベクトル(t−Δt)〜(t−3Δt)と、の向きが一致すると判定した場合、以下の処理を行う。即ち、制御部101は、動きベクトル(t)の大きさと、動きベクトル(t−Δt)〜(t−3Δt)の大きさの平均値と、の差分が、予め定められた閾値以下であるか否かを判定する。制御部101は、この差分が、予め定められた閾値以下であると判定した場合、動きベクトル(t)を、時刻tにおけるそのブロックの最終的な動きベクトルとして決定する。制御部101は、この差分が、予め定められた閾値よりも大きいと判定した場合、動きベクトル(t)を最終的な動きベクトルとして決定せずに、以下の処理を行う。即ち、制御部101は、例えば、動きベクトル(t−Δt)〜(t−3Δt)の平均の動きベクトルを取得し、取得した動きベクトルを、時刻tにおけるそのブロックの最終的な動きベクトルとして決定する。
When the control unit 101 determines that the directions of the motion vector (t) and the motion vectors (t−Δt) to (t-3Δt) do not match, the motion vector (t) is determined as the final motion vector. Without doing, perform the following processing. That is, the control unit 101 acquires, for example, the average motion vector of the motion vectors (t−Δt) to (t-3Δt), and determines the acquired motion vector as the final motion vector of the block at time t. do.
When the control unit 101 determines that the directions of the motion vector (t) and the motion vectors (t−Δt) to (t-3Δt) match, the control unit 101 performs the following processing. That is, whether the difference between the magnitude of the motion vector (t) and the average value of the magnitudes of the motion vectors (t−Δt) to (t-3Δt) of the control unit 101 is equal to or less than a predetermined threshold value. Judge whether or not. When the control unit 101 determines that this difference is equal to or less than a predetermined threshold value, the control unit 101 determines the motion vector (t) as the final motion vector of the block at time t. When the control unit 101 determines that this difference is larger than a predetermined threshold value, the control unit 101 performs the following processing without determining the motion vector (t) as the final motion vector. That is, the control unit 101 acquires, for example, the average motion vector of the motion vectors (t−Δt) to (t-3Δt), and determines the acquired motion vector as the final motion vector of the block at time t. do.

図9は、本実施形態のS404の処理の一例を説明する図である。上段には、あるブロックに対応するS402で検出された動きベクトルの時系列上の遷移が示される。図9の上段には、時刻tで、動きベクトルの向きが、それまでの時刻における動きベクトルの向きから変動した様子が示される。図9の矢印901は、時刻tにおける動きベクトルを示す。例えば、図8で説明したように、人物の手の動き等が起こったと仮定できる。
図9の下段には、本実施形態のS404の処理により、矢印901が示す動きベクトルの代わりに、例えば、動きベクトル(t−Δt)〜(t−3Δt)の平均の動きベクトルが、最終的な動きベクトルとして決定された様子が示される。
FIG. 9 is a diagram illustrating an example of the processing of S404 of the present embodiment. The upper part shows the time-series transition of the motion vector detected by S402 corresponding to a certain block. The upper part of FIG. 9 shows how the direction of the motion vector fluctuates from the direction of the motion vector at the time up to that time at time t. Arrow 901 in FIG. 9 indicates a motion vector at time t. For example, as described with reference to FIG. 8, it can be assumed that the movement of a person's hand or the like has occurred.
In the lower part of FIG. 9, for example, the average motion vector of the motion vectors (t−Δt) to (t-3Δt) is finally displayed instead of the motion vector indicated by the arrow 901 by the processing of S404 of the present embodiment. It is shown that it is determined as a motion vector.

また、制御部101は、例えば、複数のブロックそれぞれについて、S402で取得されたn個の動きベクトルの平均を、最終的なそのブロックにおける動きベクトルとして決定してもよい。
また、制御部101は、例えば、複数のブロックそれぞれについて、S402で取得されたn個の動きベクトルの中間値を、最終的なそのブロックにおける動きベクトルとして決定してもよい。
また、制御部101は、例えば、複数のブロックそれぞれについて、S402で取得されたn個の動きベクトルそれぞれの向きを特定し、最も多くの動きベクトルの向きとなった方向を特定する。そして、制御部101は、S402で取得されたn個の動きベクトルのうち、特定した向きを向いている動きベクトルを特定し、特定した動きベクトルの平均の動きベクトルを、最終的なそのブロックにおける動きベクトルとして決定してもよい。
そして、制御部101は、決定した最終的な動きベクトルに基づいて、実施形態1と同様の処理で、各ブロックの領域の判定を行う。
Further, the control unit 101 may determine, for example, the average of the n motion vectors acquired in S402 for each of the plurality of blocks as the final motion vector in the block.
Further, for example, the control unit 101 may determine the intermediate value of the n motion vectors acquired in S402 as the final motion vector in the block for each of the plurality of blocks.
Further, the control unit 101 specifies, for example, the direction of each of the n motion vectors acquired in S402 for each of the plurality of blocks, and specifies the direction in which the most motion vectors are oriented. Then, the control unit 101 identifies a motion vector facing the specified direction from the n motion vectors acquired in S402, and sets the average motion vector of the specified motion vector in the final block. It may be determined as a motion vector.
Then, the control unit 101 determines the region of each block by the same processing as in the first embodiment based on the determined final motion vector.

以上、本実施形態の処理により、撮像装置100は、映像内に一時的なゆれが発生した場合でも、より安定して映像内のゆれを補正することができる。 As described above, by the processing of the present embodiment, the image pickup apparatus 100 can correct the shaking in the image more stably even if the shaking occurs temporarily in the image.

<実施形態4>
本実施形態では、撮像装置100が、バイク、自転車等に設置された場合の撮像装置100の処理について説明する。
本実施形態の撮像装置100のハードウェア構成と機能構成とは、実施形態1と同様である。また、撮像装置100の処理は、図4に示す処理と同様であるが、S403の処理が実施形態1〜3と異なる。
バイク、自転車等の特徴として、カーブを曲がる際に、車体が傾くことがあげられる。
図10(a)はバイク、自転車等のタイヤの側面に撮像装置100が設置された場合に、撮像装置100により撮影された撮影映像の一例を示す図である。図10(a)の例では、タイヤ1000の一部を含んで背景が撮影される。この場合、実施形態1と同様のS404の処理が行われると、タイヤの部分が領域Bと判定され、それ以外の部分が領域Aと判定されることとなる。本実施形態では、制御部101は、S403で、バイク、自転車等の底面に対して垂直方向のバイク、自転車等に対する撮像装置100のゆれを検出する。また、制御部101は、S403で、バイク、自転車等の底面に対して垂直方向のバイク、自転車等自体のゆれも検出してもよい。
<Embodiment 4>
In this embodiment, the processing of the image pickup device 100 when the image pickup device 100 is installed on a motorcycle, a bicycle, or the like will be described.
The hardware configuration and functional configuration of the image pickup apparatus 100 of the present embodiment are the same as those of the first embodiment. The processing of the image pickup apparatus 100 is the same as the processing shown in FIG. 4, but the processing of S403 is different from that of the first to third embodiments.
One of the characteristics of motorcycles and bicycles is that the vehicle body tilts when turning a curve.
FIG. 10A is a diagram showing an example of a photographed image taken by the image pickup device 100 when the image pickup device 100 is installed on the side surface of a tire of a motorcycle, a bicycle, or the like. In the example of FIG. 10A, the background is photographed including a part of the tire 1000. In this case, when the same processing of S404 as in the first embodiment is performed, the tire portion is determined to be the region B, and the other portions are determined to be the region A. In the present embodiment, the control unit 101 detects, in S403, the shaking of the image pickup device 100 with respect to the motorcycle, the bicycle, etc. in the direction perpendicular to the bottom surface of the motorcycle, the bicycle, or the like. Further, the control unit 101 may detect the shaking of the motorcycle, the bicycle, etc. in the direction perpendicular to the bottom surface of the motorcycle, the bicycle, etc. by S403.

図10(b)は、バイク、自転車等がカーブを曲がる際に、車体が傾いた場合に撮像装置100により撮影された映像の一例を示す図である。撮像装置100は、車両に設置されているため、映像内でのタイヤ1000の位置は変わらない。また、車両と併せて撮像装置100も傾くため、背景部分の映像は傾いた映像となる。この場合にS402の処理で、撮像装置100により撮影された映像から検出される動きベクトルは、図10(c)のようになる。一方、センサ部106に含まれるセンサの種類によっては、S403で取得されるゆれ情報には、回転方向のゆれ情報が含まれる場合がある。その場合、撮像装置100と撮像装置100が設置されているバイクや自転車の車両とは固定されているため、回転方向のゆれ情報は領域Bを判定する上では不要な情報である。また、この不要な情報を用いて、領域Bを判定すると誤った判定を行う原因となる可能性がある。
そこで、制御部101は、S403で、回転方向を除く方向その他の方向という予め定められた種類のゆれ情報は検出し、検出したゆれ情報に基づいて、撮像装置100により撮影された映像内の各ブロックの領域を判定することとする。
FIG. 10B is a diagram showing an example of an image taken by the image pickup apparatus 100 when the vehicle body is tilted when a motorcycle, a bicycle, or the like turns a curve. Since the image pickup device 100 is installed in the vehicle, the position of the tire 1000 in the image does not change. Further, since the image pickup device 100 is tilted together with the vehicle, the image of the background portion is a tilted image. In this case, the motion vector detected from the image captured by the image pickup apparatus 100 by the process of S402 is as shown in FIG. 10 (c). On the other hand, depending on the type of sensor included in the sensor unit 106, the fluctuation information acquired by S403 may include fluctuation information in the rotation direction. In that case, since the image pickup device 100 and the vehicle of the motorcycle or bicycle on which the image pickup device 100 is installed are fixed, the fluctuation information in the rotation direction is unnecessary information for determining the region B. Further, if the region B is determined using this unnecessary information, it may cause an erroneous determination.
Therefore, the control unit 101 detects predetermined types of shaking information such as directions other than the rotation direction and other directions in S403, and based on the detected shaking information, each of the images in the image captured by the image pickup apparatus 100. The area of the block will be determined.

以上、本実施形態では、撮像装置100は、回転方向を除く方向のように、予め定められた種類のゆれのみを検出し、検出したゆれ情報を撮像装置100により撮影された映像内の領域の分割に利用することとした。これにより、撮像装置100は、領域を、誤って判定する可能性を低減できる。 As described above, in the present embodiment, the image pickup apparatus 100 detects only a predetermined type of shake such as a direction other than the rotation direction, and the detected shake information is the region in the image captured by the image pickup device 100. I decided to use it for division. As a result, the image pickup apparatus 100 can reduce the possibility of erroneously determining the region.

<その他の実施形態>
実施形態1〜4では、撮像装置100は、自動車やバイクに設置されることとした。しかし、撮像装置100は、電車、船、ドローン、エレベータ、ビル、人、動物等の他のオブジェクトに設置されることとしてもよい。
実施形態1〜4では、撮像装置100が、撮像装置100により撮影された映像内のゆれを補正する処理を実行することとした。しかし、撮像装置100により撮影された映像を取得した撮像装置100と異なる情報処理装置が、撮像装置100により撮影された映像内のゆれを補正する処理を実行することとしてもよい。例えば、撮像装置100と接続する情報処理装置(例えば、パーソナルコンピュータ、自動車搭載型のコンピュータ、サーバ装置等)が、撮像装置100により撮影された映像内のゆれを補正する処理を実行することとしてもよい。その場合、その情報処理装置は、撮像装置100から撮像装置100により撮影された映像を取得し、取得した映像に基づいて、図4の処理を実行することとなる。即ち、その情報処理装置の制御部が、その情報処理装置の記録媒体に記憶されたプログラムにしたがって処理を実行することで、図1(b)の機能、図4の処理等が実現されることとなる。
<Other embodiments>
In the first to fourth embodiments, the image pickup device 100 is installed in an automobile or a motorcycle. However, the image pickup device 100 may be installed on other objects such as trains, ships, drones, elevators, buildings, people, and animals.
In the first to fourth embodiments, the image pickup apparatus 100 is determined to execute a process of correcting the fluctuation in the image captured by the image pickup apparatus 100. However, an information processing device different from the image pickup device 100 that has acquired the image captured by the image pickup device 100 may execute a process of correcting the fluctuation in the image captured by the image pickup device 100. For example, an information processing device (for example, a personal computer, a computer mounted on a car, a server device, etc.) connected to the image pickup device 100 may execute a process of correcting a shake in an image captured by the image pickup device 100. good. In that case, the information processing device acquires the image captured by the image pickup device 100 from the image pickup device 100, and executes the process of FIG. 4 based on the acquired image. That is, the control unit of the information processing apparatus executes the processing according to the program stored in the recording medium of the information processing apparatus, whereby the function of FIG. 1B, the processing of FIG. 4 and the like are realized. It becomes.

実施形態1〜4では、撮像装置100は、センサ部106、ゆれ検出部112を介して検出されたゆれに基づいて、撮像装置100により撮影された映像内の領域を複数の領域に分割した。しかし、制御部101は、例えば、センサ部106、ゆれ検出部112を介して検出されたゆれを用いずに、以下のようにして、撮像装置100により撮影された映像内の領域を複数の領域に分割してもよい。即ち、制御部101は、例えば、S402で、予め定められた複数のブロックごとに検出された複数の動きベクトルを、ベクトルの向きと大きさとに基づいて、k−means法、最短距離法、最長距離法、ウォード法等の手法を用いて、クラスタリングする。そして、制御部101は、同一のクラスタに属する動きベクトルに対応するブロックが示す領域を、同一のゆれが生じている領域として特定することで、撮像装置100により撮影された映像内の領域を複数の領域に分割してもよい。その場合、制御部101は、S405〜406で、各領域に対応する動きベクトルに基づいて、ゆれを補正する処理を実行する。
この場合、制御部101は、この複数の動きベクトルを、3以上の複数のクラスタにクラスタリングしてもよい。それにより、制御部101は、撮像装置100により撮影された映像内の領域を3以上の領域に分割することができる。これにより、撮像装置100により撮影された映像内に3以上の異なるゆれが生じる場合であっても、撮像装置100は、適切にゆれを補正することができる。
In the first to fourth embodiments, the image pickup apparatus 100 divides the region in the image captured by the image pickup apparatus 100 into a plurality of regions based on the shake detected via the sensor unit 106 and the shake detection unit 112. However, the control unit 101 does not use, for example, the vibration detected via the sensor unit 106 and the vibration detection unit 112, and the region in the image captured by the image pickup apparatus 100 is divided into a plurality of regions as follows. It may be divided into. That is, for example, the control unit 101 uses the k-means method, the shortest distance method, and the longest method to obtain a plurality of motion vectors detected for each of a plurality of predetermined blocks in S402 based on the direction and magnitude of the vectors. Clustering is performed using methods such as the distance method and the Ward method. Then, the control unit 101 identifies a region indicated by a block corresponding to a motion vector belonging to the same cluster as a region in which the same shaking occurs, so that a plurality of regions in the image captured by the image pickup apparatus 100 can be obtained. It may be divided into areas of. In that case, the control unit 101 executes a process of correcting the fluctuation in S405 to 406 based on the motion vector corresponding to each region.
In this case, the control unit 101 may cluster the plurality of motion vectors into a plurality of clusters of three or more. As a result, the control unit 101 can divide the region in the image captured by the image pickup apparatus 100 into three or more regions. As a result, even when three or more different shakes occur in the image captured by the image pickup device 100, the image pickup device 100 can appropriately correct the shakes.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
例えば、上述した撮像装置100の機能構成の一部又は全てをハードウェアとして撮像装置100に実装してもよい。
以上、本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではない。上述した各実施形態を任意に組み合わせてもよい。
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
For example, a part or all of the functional configuration of the image pickup device 100 described above may be mounted on the image pickup device 100 as hardware.
Although the preferred embodiment of the present invention has been described in detail above, the present invention is not limited to the specific embodiment. Each of the above-described embodiments may be arbitrarily combined.

100 撮像装置
101 制御部
104 撮影部
100 Imaging device 101 Control unit 104 Imaging unit

Claims (8)

撮像装置を介して撮影される映像から検出された前記映像内の動きを示す情報である動き情報に基づいて、前記映像を複数の領域に分割する分割手段と、
前記分割手段により前記映像が分割された前記複数の領域に含まれる領域に対して、前記領域に対応する前記動き情報に基づいて、ゆれを補正する処理を行う補正手段と、
を有し、
前記分割手段は、前記撮像装置のセンサを介して取得されたゆれ情報と、前記動き情報と、に基づいて、前記映像を、前記複数の領域である前記撮像装置が設置されているオブジェクトが撮影されている領域とその他の領域とに分割する情報処理装置。
A dividing means for dividing the image into a plurality of areas based on the motion information which is information indicating the motion in the image detected from the image taken through the image pickup apparatus.
A correction means that performs a process of correcting a shake based on the motion information corresponding to the region for a region included in the plurality of regions in which the image is divided by the division means.
Have a,
The dividing means captures the image by the object in which the image pickup device is installed, which is a plurality of regions, based on the shaking information acquired through the sensor of the image pickup device and the motion information. An information processing device that divides an area into other areas.
前記分割手段は、前記動き情報である動きベクトルに基づいて、前記映像を複数の領域に分割し、
前記補正手段は、前記分割手段により前記映像が分割された前記複数の領域に含まれる領域に対して、前記領域に対応する前記動きベクトルに基づいて、ゆれを補正する処理を行う請求項1記載の情報処理装置。
The dividing means divides the video into a plurality of regions based on the motion vector which is the motion information.
The first aspect of the present invention, wherein the correction means corrects a shake of a region included in the plurality of regions in which the image is divided by the division means based on the motion vector corresponding to the region. Information processing equipment.
前記分割手段は、前記動きベクトルの方向と大きさとに基づいて、前記映像を複数の領域に分割し、
前記補正手段は、前記分割手段により前記映像が分割された前記複数の領域に含まれる領域に対して、前記領域に対応する前記動きベクトルの方向と大きさとに基づいて、ゆれを補正する処理を行う請求項2記載の情報処理装置。
The dividing means divides the video into a plurality of regions based on the direction and magnitude of the motion vector.
The correction means corrects a region included in the plurality of regions in which the image is divided by the division means, based on the direction and magnitude of the motion vector corresponding to the region. The information processing apparatus according to claim 2.
前記分割手段は、予め定められた種類のゆれに関する情報である前記ゆれ情報と、前記動き情報と、に基づいて、前記映像を、前記複数の領域である前記撮像装置が設置されているオブジェクトが撮影されている領域とその他の領域とに分割する請求項1乃至3何れか1項記載の情報処理装置。 The dividing means is based on the shaking information, which is information about a predetermined type of shaking, and the motion information, and the moving image is displayed by an object in which the image pickup device, which is a plurality of regions, is installed. The information processing apparatus according to any one of claims 1 to 3, wherein the area is divided into a photographed area and another area. 前記補正手段は、前記分割手段により前記映像が分割された前記複数の領域に含まれる指定された領域に対して、前記領域に対応する前記動き情報に基づいて、ゆれを補正する処理を行う請求項1乃至何れか1項記載の情報処理装置。 The correction means is claimed to perform a process of correcting a shake of a designated area included in the plurality of areas in which the image is divided by the dividing means, based on the motion information corresponding to the area. Item 4. The information processing apparatus according to any one of Items 1 to 4. 前記分割手段は、前記映像と前記映像よりも過去に前記撮像装置を介して撮影された複数の映像とに基づいて取得された複数の前記動き情報に基づいて、前記映像を前記複数の領域に分割する請求項1乃至何れか1項記載の情報処理装置。 The dividing means divides the video into the plurality of regions based on a plurality of motion information acquired based on the video and a plurality of videos captured via the image pickup device in the past. The information processing apparatus according to any one of claims 1 to 5. 情報処理装置が実行する情報処理方法であって、
撮像装置を介して撮影される映像から検出された前記映像内の動きを示す情報である動き情報に基づいて、前記映像を複数の領域に分割する分割ステップと、
前記分割ステップで前記映像が分割された前記複数の領域に含まれる領域に対して、前記領域に対応する前記動き情報に基づいて、ゆれを補正する処理を行う補正ステップと、
を含み、
前記分割ステップにおいて、前記撮像装置のセンサを介して取得されたゆれ情報と、前記動き情報と、に基づいて、前記映像が、前記複数の領域である前記撮像装置が設置されているオブジェクトが撮影されている領域とその他の領域とに分割される情報処理方法。
It is an information processing method executed by an information processing device.
A division step of dividing the image into a plurality of areas based on the motion information, which is information indicating the motion in the image detected from the image taken through the image pickup device, and
A correction step of performing a process of correcting a shake based on the motion information corresponding to the region for a region included in the plurality of regions in which the video is divided in the division step.
Including
In the division step, the image is captured by the object in which the image pickup device is installed, which is a plurality of regions, based on the shaking information acquired through the sensor of the image pickup device and the motion information. An information processing method that is divided into an area that is used and other areas.
コンピュータを、請求項1乃至6何れか1項記載の情報処理装置の各手段として、機能させるためのプログラム。 A program for making a computer function as each means of the information processing apparatus according to any one of claims 1 to 6.
JP2017218362A 2017-11-13 2017-11-13 Information processing equipment, information processing methods and programs Active JP6980493B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017218362A JP6980493B2 (en) 2017-11-13 2017-11-13 Information processing equipment, information processing methods and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017218362A JP6980493B2 (en) 2017-11-13 2017-11-13 Information processing equipment, information processing methods and programs

Publications (2)

Publication Number Publication Date
JP2019092001A JP2019092001A (en) 2019-06-13
JP6980493B2 true JP6980493B2 (en) 2021-12-15

Family

ID=66836672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017218362A Active JP6980493B2 (en) 2017-11-13 2017-11-13 Information processing equipment, information processing methods and programs

Country Status (1)

Country Link
JP (1) JP6980493B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022195312A1 (en) * 2021-03-18 2022-09-22 日産自動車株式会社 Image processing device and image processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009071759A (en) * 2007-09-18 2009-04-02 Victor Co Of Japan Ltd Camera shake correction system

Also Published As

Publication number Publication date
JP2019092001A (en) 2019-06-13

Similar Documents

Publication Publication Date Title
US9646652B2 (en) Scene and activity identification in video summary generation based on motion detected in a video
JP5510484B2 (en) Movie shooting device, digest reproduction setting device, digest reproduction setting method, and program
US20170351922A1 (en) On-Camera Video Capture, Classification, and Processing
US20100188511A1 (en) Imaging apparatus, subject tracking method and storage medium
JP4759524B2 (en) Electronic camera shake correction method and apparatus, electronic camera shake correction program, and imaging apparatus
JP2012151796A (en) Image processing device, image processing method, and program
KR20190092279A (en) Image processing apparatus, image processing method, and storage medium
JP2017017447A5 (en)
KR20140014138A (en) Processes and devices for recording and reproducing multimedia contents using dynamic metadata
JPWO2015098110A1 (en) Imaging apparatus, imaging system, and imaging method
JP6980493B2 (en) Information processing equipment, information processing methods and programs
JP2013239796A (en) Image processing device
TWI504240B (en) Video processing method, video displaying method and device therefor
CN103548338B (en) Picture pick-up device and method, picture reproducer and method
JP6290949B2 (en) Photo cluster detection and compression
JP2005348178A (en) Movie recording / reproducing apparatus, image display method, and program
JP2024107916A (en) Information processing device, control method for information processing device, and program
WO2015104780A1 (en) Image pickup apparatus
JP2005328279A (en) Recording device
JP2009284411A (en) Imaging apparatus
NL2011771C2 (en) Method and apparatus for acquiring images.
JP2014171110A (en) Image reproduction device, control method thereof, and control program
JP2017063276A (en) Video display device, video display method, and program
JP2011101161A (en) Imaging device, control method of the same, reproducing device, and program
JP2010193026A (en) Image reproducing apparatus, image reproducing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210513

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211117

R151 Written notification of patent or utility model registration

Ref document number: 6980493

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151