JP2006211378A - Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program - Google Patents

Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program Download PDF

Info

Publication number
JP2006211378A
JP2006211378A JP2005021672A JP2005021672A JP2006211378A JP 2006211378 A JP2006211378 A JP 2006211378A JP 2005021672 A JP2005021672 A JP 2005021672A JP 2005021672 A JP2005021672 A JP 2005021672A JP 2006211378 A JP2006211378 A JP 2006211378A
Authority
JP
Japan
Prior art keywords
image
vertical
moving image
horizontal
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005021672A
Other languages
Japanese (ja)
Inventor
Yoshiki Ishige
善樹 石毛
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 JP2005021672A priority Critical patent/JP2006211378A/en
Publication of JP2006211378A publication Critical patent/JP2006211378A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reproduce a series of motion pictures so as to be easily viewed by aligning their horizontal directions with an actual horizontal direction at all the time regardless of a photographing angle in motion picture photographing. <P>SOLUTION: In an electronic camera 100 according to the present invention, when photographing each frame image constructing a moving image, the state of inclining a case of the electronic camera 100 is detected by an aspect sensor 19, and an aspect flag indicative of the detected inclination state is recorded in association with each of the frame images of the moving image. Furthermore, when reproducing a motion picture, the frame images are rotated based on the aspect flag corresponding to each of the frame images, so that the frame images are reproduced after correcting their horizontal directions. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、動画像を撮影し記録するとともに記録された動画像を表示画面上に再生する動画記録再生装置、動画像を撮影し記録する動画記録装置、動画像を表示画面上に再生する動画再生装置、及びプログラムに関する。   The present invention relates to a moving image recording / reproducing apparatus that captures and records a moving image and reproduces the recorded moving image on a display screen, a moving image recording apparatus that captures and records the moving image, and a moving image that reproduces the moving image on the display screen. The present invention relates to a playback device and a program.

従来、静止画像を撮影し記録する画像記録装置において、カメラ部を収納する筐体の姿勢を検出するカメラ姿勢検出手段と、ディスプレイ部を収納する筐体の姿勢を検出する表示姿勢検出手段を備え、カメラ姿勢検出手段により検出された姿勢に応じて表示すべき画像データの天方向を定めるとともに、表示姿勢検出手段により検出された姿勢に応じて、表示すべき画像データの天方向がディスプレイ部の筐体の天方向と一致するように画像データを表示する技術が知られている(例えば、特許文献1参照)。
特開2004−15367号公報
2. Description of the Related Art Conventionally, an image recording apparatus that captures and records a still image includes a camera attitude detection unit that detects the attitude of a housing that houses a camera unit, and a display attitude detection unit that detects the attitude of a housing that houses a display unit. The top direction of the image data to be displayed is determined according to the posture detected by the camera posture detection means, and the top direction of the image data to be displayed is determined by the display unit according to the posture detected by the display posture detection means. A technique for displaying image data so as to coincide with the top direction of the housing is known (for example, see Patent Document 1).
JP 2004-15367 A

ところで、動画を撮影、記録し再生する動画記録再生装置においては、静止画像のように1枚毎の画像の構図(例えば、縦長画像、横長画像等)を明確に定めて瞬時に撮影するものとは異なり、ある程度の時間をかけて一連の動画像の撮影を行うものである。そのため、一連の動画像の撮影中に動画記録再生装置が傾斜し、撮影角度が変化することがあり得るが、撮影中に撮影角度が変化した動画像をモニタで再生すると、部分的に画像の水平方向位置が実際の水平方向に対して傾いて表示されることがあり、見づらいといった問題があった。   By the way, in a moving image recording / reproducing apparatus that shoots, records and reproduces a moving image, the composition of each image (for example, a vertically long image, a horizontally long image, etc.) is clearly defined and instantaneously shot like a still image. In contrast, it takes a certain amount of time to shoot a series of moving images. For this reason, the moving image recording / playback device may tilt during shooting of a series of moving images and the shooting angle may change, but if a moving image with a changed shooting angle during shooting is played back on a monitor, the image will be partially In some cases, the horizontal position is displayed with an inclination relative to the actual horizontal direction, which is difficult to see.

本発明の課題は、動画撮影時の撮影角度に関係なく、常に一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することを可能とすることである。   SUMMARY OF THE INVENTION An object of the present invention is to make it possible to always reproduce a series of moving images in an easy-to-view manner by matching the horizontal position of a series of moving images with the actual horizontal direction regardless of the shooting angle at the time of moving image shooting.

上記課題を解決するため、請求項1に記載の発明は、
動画像を撮影する撮影手段と、この撮像手段により撮影された動画像を記録する動画記録手段と、前記撮影された動画像を表示画面上に再生する再生手段とを備えた動画記録再生装置において、
前記動画記録再生装置の傾斜状態を検出する傾斜検出手段を備え、
前記動画記録手段は、前記動画像を構成する各フレーム画像の撮影時に前記傾斜検出手段により検出された該装置の傾斜状態を示す傾斜情報を前記各フレーム画像に対応付けて記録し、
前記再生手段は、前記各フレーム画像に対応する傾斜情報に基づいて、前記各フレーム画像を回転させることにより前記各フレーム画像の水平方向位置を補正して再生することを特徴としている。
In order to solve the above-mentioned problem, the invention described in claim 1
In a moving picture recording / reproducing apparatus comprising photographing means for photographing moving images, moving picture recording means for recording moving pictures taken by the imaging means, and reproducing means for reproducing the photographed moving images on a display screen ,
Inclination detecting means for detecting the inclination state of the moving image recording / reproducing apparatus,
The moving image recording means records the tilt information indicating the tilt state of the apparatus detected by the tilt detection means at the time of shooting each frame image constituting the moving image in association with each frame image;
The reproduction means is characterized in that the horizontal position of each frame image is corrected and reproduced by rotating each frame image based on inclination information corresponding to each frame image.

請求項7に記載の発明は、
動画像を撮影する撮影手段と、この撮影手段により撮影された動画像を記録する動画記録手段とを備えた動画記録装置において、
前記動画記録装置の傾斜状態を検出する傾斜検出手段を備え、
前記動画記録手段は、前記動画像を構成する各フレーム画像の撮影時に前記傾斜検出手段により検出された該装置の傾斜状態に基づいて、前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して記録することを特徴としている。
The invention described in claim 7
In a moving picture recording apparatus comprising a photographing means for photographing a moving image and a moving picture recording means for recording a moving image photographed by the photographing means,
Inclination detecting means for detecting the inclination state of the moving image recording apparatus,
The moving image recording means rotates each frame image based on the inclination state of the apparatus detected by the inclination detection means at the time of shooting each frame image constituting the moving image, thereby allowing each of the frame images in the frame image to be rotated. It is characterized by correcting and recording the horizontal position.

請求項9に記載の発明は、
動画像を再生する再生手段を備えた動画再生装置において、
前記再生手段は、前記動画像を構成する各フレーム画像に、そのフレーム画像の撮影時の動画記録装置の傾斜状態を示す傾斜情報が対応付けられている場合に、前記傾斜情報に基づいて前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して再生することを特徴としている。
The invention according to claim 9 is:
In a video playback device provided with playback means for playing back moving images,
The reproduction means, when the frame information constituting the moving image is associated with inclination information indicating the inclination state of the moving image recording apparatus at the time of capturing the frame image, based on the inclination information. It is characterized in that the horizontal position in each frame image is corrected and reproduced by rotating the frame image.

請求項1、13に記載の発明によれば、動画記録再生装置において、動画像を構成する各フレーム画像の撮影時に、当該動画記録再生装置の傾斜状態を検出し、検出された傾斜状態を示す傾斜情報を動画像の各フレーム画像に対応付けて記録し、動画再生時に、各フレーム画像に対応する傾斜情報に基づいて各フレーム画像を回転させることにより各フレーム画像の水平方向位置を補正して再生する。従って、動画撮影時の撮影角度に関係なく常に一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   According to the first and thirteenth aspects of the present invention, in the moving image recording / reproducing device, when each frame image constituting the moving image is captured, the inclination state of the moving image recording / reproducing device is detected, and the detected inclination state is indicated. The tilt information is recorded in association with each frame image of the moving image, and the horizontal position of each frame image is corrected by rotating each frame image based on the tilt information corresponding to each frame image when playing back a moving image. Reproduce. Therefore, regardless of the shooting angle at the time of moving image shooting, the horizontal position of a series of moving images can always be reproduced in an easy-to-view manner according to the actual horizontal direction.

請求項2に記載の発明によれば、動画再生時に、回転させたフレーム画像から表示画面のアスペクト比で切り出せる最大矩形の画像を切り出し、切り出した画像を表示画面のサイズに拡大して表示画面上に再生するので、画像を回転させることにより表示画面上に画像が表示されない部分が生じるということがなくなり、動画像を見やすく再生することが可能となる。   According to the second aspect of the present invention, when a moving image is reproduced, a maximum rectangular image that can be cut out with the aspect ratio of the display screen is cut out from the rotated frame image, and the cut-out image is enlarged to the size of the display screen. Since the image is reproduced above, there is no occurrence of a portion where the image is not displayed on the display screen by rotating the image, and the moving image can be reproduced in an easy-to-view manner.

請求項3に記載の発明によれば、傾斜検出手段として動画記録再生装置の傾斜状態を縦又は横で検出する縦横センサを利用した場合に、動画再生時に、縦横の状態が変化する時点より予め設定された基準時間前に再生するフレーム画像から回転を開始し、縦横の状態が変化する時点のフレーム画像までの各フレーム画像の回転角度を段階的に変化させて再生を行うので、縦横センサを用いた場合であっても、一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   According to the third aspect of the present invention, when a vertical / horizontal sensor that detects the inclination state of the moving image recording / reproducing apparatus in the vertical or horizontal direction is used as the inclination detecting unit, the time and the horizontal state change in advance when the moving image is reproduced. Rotation starts from the frame image to be played before the set reference time, and playback is performed by gradually changing the rotation angle of each frame image up to the frame image at the time when the vertical and horizontal state changes. Even if it is used, the horizontal position of a series of moving images can be reproduced in an easy-to-view manner according to the actual horizontal direction.

請求項4に記載の発明によれば、動画再生時に、こまかいぶれではなく、確実に動画記録再生装置の縦横の状態が変化した場合にのみ、画像の向きの変更を行うことができるので、効率的に画像の水平方向位置の補正を行うことが可能となる。   According to the fourth aspect of the present invention, the direction of the image can be changed only when the vertical / horizontal state of the moving image recording / playback apparatus is surely changed, not during the playback of the moving image. Thus, it is possible to correct the horizontal position of the image.

請求項5に記載の発明によれば、動画再生時に、こまかいぶれではなく、確実に動画記録再生装置の傾斜状態が変化した場合にのみ、画像の向きの変更を行うことができるので、効率的に水平方向位置の補正を行うことが可能となる。   According to the fifth aspect of the present invention, the direction of the image can be changed only when the tilt state of the moving image recording / reproducing device is changed reliably, not during the reproduction of the moving image, but with a slight blur. It is possible to correct the horizontal position.

請求項6に記載の発明によれば、動画記録再生装置の傾斜状態の変化を角度で検出することができるので、精度良く一連の動画像の水平方向位置の補正を行うことが可能となる。   According to the sixth aspect of the present invention, since the change in the tilt state of the moving picture recording / reproducing apparatus can be detected by the angle, it is possible to accurately correct the horizontal position of a series of moving images.

請求項7、14に記載の発明によれば、動画記録装置において、動画像を構成する各フレーム画像の撮影時に、該動画記録装置の傾斜状態を検出し、検出された該装置の傾斜状態に基づいて、各フレーム画像を回転させることにより各フレーム画像中の水平方向位置を補正して記録する。従って、動画像を再生する再生装置が画像の回転に対応していなくても、動画撮影時の撮影角度に関係なく、常に一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   According to the seventh and fourteenth aspects of the present invention, in the moving image recording device, the tilt state of the moving image recording device is detected when each frame image constituting the moving image is captured, and the detected tilt state of the device is determined. Based on the rotation, the horizontal position in each frame image is corrected and recorded by rotating each frame image. Therefore, even if a playback device that plays back moving images does not support image rotation, the horizontal position of a series of moving images is always played back in an easy-to-view manner regardless of the shooting angle during movie shooting. It becomes possible to do.

請求項8に記載の発明によれば、動画再生時に、こまかいぶれではなく、確実に動画記録装置の縦横の状態が変化した場合にのみ、画像の向きの変更を行うことができるので、効率的に水平方向位置の補正を行うことが可能となる。   According to the eighth aspect of the present invention, the direction of the image can be changed only when the vertical / horizontal state of the video recording apparatus is changed reliably, not when the video is played back, and when the video is played back. It is possible to correct the horizontal position.

請求項9、15に記載の発明によれば、動画再生装置において、動画像を構成する各フレーム画像に、そのフレーム画像の撮影時の動画記録装置の傾斜状態を示す傾斜情報が対応付けられている場合に、傾斜情報に基づいて各フレーム画像を回転させることにより各フレーム画像中の水平方向位置を補正して再生する。従って、動画撮影時の撮影角度に関係なく常に一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   According to the ninth and fifteenth aspects of the present invention, in the moving image reproducing apparatus, each frame image constituting the moving image is associated with inclination information indicating the inclination state of the moving image recording apparatus at the time of shooting the frame image. If it is, the horizontal position in each frame image is corrected by rotating each frame image based on the tilt information and reproduced. Therefore, regardless of the shooting angle at the time of moving image shooting, the horizontal position of a series of moving images can always be reproduced in an easy-to-view manner according to the actual horizontal direction.

請求項10に記載の発明によれば、動画再生時に、回転させたフレーム画像から表示画面のアスペクト比で切り出せる最大矩形の画像を切り出し、切り出した画像を表示画面のサイズに拡大して表示画面上に再生するので、画像を回転させることにより表示画面上に画像が表示されない部分が生じるということがなくなり、動画像を見やすく再生することが可能となる。   According to the tenth aspect of the present invention, when reproducing a moving image, a maximum rectangular image that can be cut out from the rotated frame image with the aspect ratio of the display screen is cut out, and the cut-out image is enlarged to the size of the display screen. Since the image is reproduced above, there is no occurrence of a portion where the image is not displayed on the display screen by rotating the image, and the moving image can be reproduced in an easy-to-view manner.

請求項11に記載の発明によれば、動画再生時に、縦横情報が変化する時点より予め設定された基準時間前に再生するフレーム画像から回転を開始し、縦横情報が変化する時点のフレーム画像までの各フレーム画像の回転角度を段階的に変化させて再生を行うので、縦横センサを用いた場合であっても、一連の動画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   According to the eleventh aspect of the present invention, at the time of moving image reproduction, rotation is started from a frame image reproduced before a reference time set in advance from a time point when the vertical and horizontal information changes, and until a frame image at a time point when the vertical and horizontal information changes. Since the playback is performed by changing the rotation angle of each frame image step by step, even if a vertical and horizontal sensor is used, the horizontal position of a series of moving images can be reproduced in an easy-to-view manner according to the actual horizontal direction. Is possible.

請求項12に記載の発明によれば、動画再生時に、こまかいぶれではなく、確実に画像の縦横の向きの状態が変化した場合にのみ画像の向きの変更を行うことができるので、効率的に水平方向位置の補正を行うことが可能となる。   According to the twelfth aspect of the present invention, the direction of the image can be changed only when the state of the vertical / horizontal orientation of the image is changed reliably, not during the playback of the moving image. It is possible to correct the horizontal position.

以下、図を参照して本発明の実施形態1〜5について詳細に説明する。実施形態1〜3は、傾斜検出手段として縦横センサを用いた実施形態であり、実施形態4及び5は、傾斜検出手段として角度センサを用いた実施形態である。   Hereinafter, embodiments 1 to 5 of the present invention will be described in detail with reference to the drawings. The first to third embodiments are embodiments in which a vertical / horizontal sensor is used as the tilt detection means, and the fourth and fifth embodiments are embodiments in which an angle sensor is used as the tilt detection means.

(実施形態1)
まず、実施形態1の構成を説明する。
図1は、動画記録再生装置100(以下、電子カメラ100と称する)の機能的構成を示すブロック図である。図1に示すように、電子カメラ100は、CPU11、入力部12、RAM13、伝送制御部14、表示部15、撮像部16、記録部17、記録媒体駆動部18、縦横センサ19、タイマ20等を備えて構成されており、各部はバス21により接続されている。
(Embodiment 1)
First, the configuration of the first embodiment will be described.
FIG. 1 is a block diagram showing a functional configuration of a moving image recording / reproducing apparatus 100 (hereinafter referred to as an electronic camera 100). As shown in FIG. 1, an electronic camera 100 includes a CPU 11, an input unit 12, a RAM 13, a transmission control unit 14, a display unit 15, an imaging unit 16, a recording unit 17, a recording medium driving unit 18, a vertical / horizontal sensor 19, a timer 20, and the like. Each part is connected by a bus 21.

CPU11は、記録部17に記憶されているシステムプログラムを読み出し、RAM13内に形成されたワークエリアに展開し、該システムプログラムに従って各部を制御する。また、CPU11は、記録部17に記憶されている動画記録処理Aプログラム、動画再生処理Aプログラムを始めとする各種処理プログラムを読み出してワークエリアに展開し、後述する動画記録処理A、動画再生処理A(図5、図8参照)を始めとする各種処理を実行する。   The CPU 11 reads out the system program stored in the recording unit 17, develops it in a work area formed in the RAM 13, and controls each unit according to the system program. Further, the CPU 11 reads out various processing programs including the moving image recording processing A program and the moving image reproduction processing A program stored in the recording unit 17 and develops them in the work area, and later described moving image recording processing A and moving image reproduction processing. Various processes including A (see FIGS. 5 and 8) are executed.

入力部12は、動画の撮影及び記録(録画)の開始及び終了を指示するための録画スイッチ121、記録部17の撮影画像記録領域171又は記録媒体18aに記録された動画ファイルの再生を指示するための再生スイッチ122を有しており、各スイッチ操作に応じた操作信号をCPU11に出力する。また、入力部12は、上述した録画スイッチ121、再生スイッチ122の他に、電源のON/OFFを切り換える電源キー、各種メニュー項目を表示させる「メニュー」キー、画像ファイルや各種詳細モードの選択、メニュー選択項目の指定等のために上下左右各方向を指示するための十字キー、この十字キーの中央部に配置され、その時点で選択されている内容を指示設定する「セット」キー等を備え、その各キー操作に応じた操作信号をCPU11に出力する。   The input unit 12 instructs the recording switch 121 for instructing the start and end of moving image shooting and recording (recording), the reproduction of the moving image file recorded in the captured image recording area 171 of the recording unit 17 or the recording medium 18a. A reproduction switch 122 for outputting the operation signal corresponding to each switch operation to the CPU 11. In addition to the recording switch 121 and the playback switch 122 described above, the input unit 12 includes a power key for switching the power ON / OFF, a “menu” key for displaying various menu items, selection of an image file and various detailed modes, For specifying menu selection items, etc., equipped with a cross key for instructing the up, down, left, and right directions, and a “set” key that is placed at the center of the cross key and indicates the currently selected item. Then, an operation signal corresponding to each key operation is output to the CPU 11.

RAM13は、CPU11によって実行される各種プログラム及びこれらプログラムに係るデータを一時的に記憶するワークエリアを形成する。また、RAM13は、撮像部16により取り込まれたフレーム画像の画像データを一時的に格納する画像一時格納領域131、縦横センサ19からの検出情報を一時的に格納する縦横状態格納部132、各フレーム画像のフレームNO.と縦横フラグとを対応付けて格納するヘッダ情報領域133を有している。   The RAM 13 forms a work area for temporarily storing various programs executed by the CPU 11 and data related to these programs. The RAM 13 also includes an image temporary storage area 131 for temporarily storing image data of a frame image captured by the imaging unit 16, a vertical / horizontal state storage unit 132 for temporarily storing detection information from the vertical / horizontal sensor 19, and each frame. Image frame No. And a header information area 133 for storing the vertical and horizontal flags in association with each other.

伝送制御部14は、通信用ケーブル等により外部の電子機器、例えば、パーソナルコンピュータ等と接続され、データの送受信を制御する。なお、外部機器との接続は、赤外線や無線等の無線接続であってもよい。   The transmission control unit 14 is connected to an external electronic device such as a personal computer via a communication cable or the like, and controls data transmission / reception. The connection with the external device may be a wireless connection such as infrared or wireless.

表示部15は、LCD(Liquid Crystal Display)等のモニタにより構成され、CPU11から入力される表示信号の指示に従って、録画中の画像の表示画面上への表示、撮影された動画像の表示画面上への表示等を行う。   The display unit 15 is configured by a monitor such as an LCD (Liquid Crystal Display), and in accordance with an instruction of a display signal input from the CPU 11, an image being recorded is displayed on the display screen, and a captured moving image is displayed on the display screen. Display on the screen.

図2は、動画像を撮影する撮影手段としての撮像部16の詳細構成を示す図である。ここで、図2を参照して撮像部16について説明する。
レンズ(撮像レンズ)31を通過した被写体像は絞り機構32を介してCCD(Charge Coupled Diode)33上に結像される。レンズ31及び絞り機構32は、光学系駆動部34によって、焦点合わせのためにレンズ位置が移動され、また、適切な露出となるように絞り量が制御される。このレンズ31の移動や絞り機構32の絞りは、測距センサや光量センサを含むセンサ部35によって検出された検出値がバス21を介してCPU11に出力され、CPU11で検出値に基づいて演算されたレンズ31の移動量や絞り機構32の絞り量を示す信号が光学系駆動部34に出力されることによって駆動がなされるものである。
FIG. 2 is a diagram illustrating a detailed configuration of the imaging unit 16 as an imaging unit that captures a moving image. Here, the imaging unit 16 will be described with reference to FIG.
The subject image that has passed through the lens (imaging lens) 31 is formed on a CCD (Charge Coupled Diode) 33 via a diaphragm mechanism 32. In the lens 31 and the diaphragm mechanism 32, the lens position is moved for focusing by the optical system driving unit 34, and the diaphragm amount is controlled so as to achieve appropriate exposure. For the movement of the lens 31 and the diaphragm mechanism 32, detection values detected by a sensor unit 35 including a distance measuring sensor and a light amount sensor are output to the CPU 11 via the bus 21, and are calculated based on the detection values by the CPU 11. Driving is performed by outputting a signal indicating the amount of movement of the lens 31 and the amount of aperture of the aperture mechanism 32 to the optical system drive unit 34.

CCD33に被写体が結像されると、CCD33には入射光量に応じた電荷が蓄積され、この電荷は駆動回路36から与えられる駆動パルス信号によって一定時間毎に読み出され、アナログ処理回路37に出力される。アナログ処理回路37は、色分離やゲイン調整、ホワイトバランスなどの各種処理が行われ、処理された信号はA/D変換回路38を介してデジタル画像データ(以下、画像データと称する)としてバッファレジスタ39に記憶される。この画像データは、動画像を構成するフレーム画像の画像データである。   When the subject is imaged on the CCD 33, charges corresponding to the amount of incident light are accumulated in the CCD 33, and the charges are read at regular intervals by a drive pulse signal supplied from the drive circuit 36 and output to the analog processing circuit 37. Is done. The analog processing circuit 37 performs various processes such as color separation, gain adjustment, and white balance, and the processed signal is buffered as digital image data (hereinafter referred to as image data) via the A / D conversion circuit 38. 39. This image data is image data of a frame image constituting a moving image.

バッファレジスタ39に記憶された画像データは、CPU11からの制御信号に基づいて、信号処理回路40において輝度信号及び色差信号に変換され、表示部15に表示される。また、信号処理回路40において処理された画像データは、CPU11からの制御信号に基づいて、圧縮伸張回路41において圧縮され、バス21を介して図1に示すRAM13の画像一時格納領域131に順次格納され、一連の動画像の撮影が終了すると、RAM13の画像一時格納領域131に格納された一連のフレーム画像の画像データは1の動画ファイルとして記録部17の撮影画像記録領域171もしくは記録媒体18aに記録される。   The image data stored in the buffer register 39 is converted into a luminance signal and a color difference signal by the signal processing circuit 40 based on a control signal from the CPU 11 and displayed on the display unit 15. The image data processed in the signal processing circuit 40 is compressed in the compression / decompression circuit 41 based on a control signal from the CPU 11 and sequentially stored in the temporary image storage area 131 of the RAM 13 shown in FIG. When a series of moving images are captured, the image data of the series of frame images stored in the image temporary storage area 131 of the RAM 13 is stored as one moving image file in the captured image recording area 171 or the recording medium 18a. To be recorded.

図1に戻り、記録部17は、フラッシュメモリなどの不揮発メモリ等により構成され、電子カメラ100に対応するシステムプログラム、及び該システムプログラム上で実行可能な動画記録処理Aプログラム、動画再生処理Aプログラムを始めとする各種処理プログラム、アプリケーションプログラム及びこれらのプログラムで処理されたデータ等を記録する。   Returning to FIG. 1, the recording unit 17 includes a non-volatile memory such as a flash memory and the like, a system program corresponding to the electronic camera 100, and a moving image recording process A program and a moving image reproduction process A program that can be executed on the system program And various processing programs, application programs, and data processed by these programs are recorded.

この記録部17は、撮影された動画ファイルを記録するための、撮影画像記録領域171を有する。   The recording unit 17 has a captured image recording area 171 for recording a captured moving image file.

記録媒体駆動部18は、装着された記録媒体18aに対して動画ファイル等のデータを記録したり、既に記録されているデータを読み出して再生したりするための駆動回路である。装着される記録媒体18aとしては、スマートメディア(登録商標)、メモリースティック(登録商標)、コンパクトフラッシュ(登録商標)、SDカード、PCカード、ICカード、MO(magneto-optic)等の各種記録媒体を用いることができ、これらの各種記録媒体の何れか又は複数の記録媒体に応じた記録媒体駆動部18が設けられている。   The recording medium driving unit 18 is a driving circuit for recording data such as a moving image file on the mounted recording medium 18a, and reading and reproducing already recorded data. As the recording medium 18a to be mounted, various recording media such as smart media (registered trademark), memory stick (registered trademark), compact flash (registered trademark), SD card, PC card, IC card, and MO (magneto-optic) are available. A recording medium driving unit 18 corresponding to any one or a plurality of recording media can be used.

縦横センサ19は、電子カメラ100に内蔵されたセンサであり、電子カメラ100の筐体の縦横状態(筐体が横向き状態であるか又は縦向き状態であるか)を検出し、その検出情報をCPU11に出力するものである。横向きとは、通常撮影時の姿勢で電子カメラ100を構えた時の、表示部15の表示画面が横長になる向き(図3(a)に示す向き)である。縦向きとは、撮影時に表示画面が縦長になる向き(図3(b)に示す向き)である。縦横センサ19としては、例えば、2つの電極をもつ円柱部材に導電性液体が注入され、電子カメラ100の筐体の縦横状態の変化に応じて円柱部材の縦横状態が変化することによる導電性液体の電極への接触の変化を検出することにより、電子カメラ100の筐体の縦横状態を検出するもの等を用いることができる(例えば、特開平11−174814号公報参照)。   The vertical / horizontal sensor 19 is a sensor built in the electronic camera 100, detects the vertical / horizontal state of the casing of the electronic camera 100 (whether the casing is in a horizontal orientation or a vertical orientation), and detects the detection information. This is output to the CPU 11. The landscape orientation is an orientation (the orientation shown in FIG. 3A) in which the display screen of the display unit 15 is landscape when the electronic camera 100 is held in a normal photographing posture. The portrait orientation is the orientation (the orientation shown in FIG. 3B) in which the display screen becomes vertically long when shooting. As the vertical / horizontal sensor 19, for example, a conductive liquid is injected into a cylindrical member having two electrodes, and the vertical / horizontal state of the cylindrical member changes according to the vertical / horizontal state change of the casing of the electronic camera 100. It is possible to use a device that detects the vertical / horizontal state of the casing of the electronic camera 100 by detecting a change in contact with the electrode (for example, see Japanese Patent Application Laid-Open No. 11-174814).

なお、電子カメラ100の筐体は、横向き状態を基準状態としており、動画再生時においても図3(a)に示す横向き状態で画像が鑑賞されるものとして再生が行われる。そのため、図4(a)に示すように縦向き状態で撮影が行われたフレーム画像を回転せずにそのまま表示すると、図4(b)に示すように、その水平方向位置を実際の水平方向に合わせて表示したとき(図4(a))に比べ、その水平方向位置が反時計回りに90度ずれて表示される。   Note that the housing of the electronic camera 100 is in the horizontal state as a reference state, and reproduction is performed as if the image is viewed in the horizontal state shown in FIG. For this reason, when a frame image shot in a portrait orientation as shown in FIG. 4 (a) is displayed as it is without being rotated, its horizontal position is changed to an actual horizontal direction as shown in FIG. 4 (b). The horizontal position is displayed by being shifted by 90 degrees counterclockwise as compared with the case (FIG. 4A).

タイマ20は、CPU11からの指示に応じて計時を行う。   The timer 20 measures time according to an instruction from the CPU 11.

次に、実施形態1の動作について説明する。
図5は、電子カメラ100のCPU11により実行される動画記録処理Aを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画記録処理Aプログラムとの協働によるソフトウエア処理により実現される処理であり、録画スイッチ121が押下され録画開始が指示された際に実行される処理である。
Next, the operation of the first embodiment will be described.
FIG. 5 is a flowchart showing the moving image recording process A executed by the CPU 11 of the electronic camera 100. This processing is realized by software processing in cooperation with the CPU 11 and the moving image recording processing A program stored in the recording unit 17, and is executed when the recording switch 121 is pressed to start recording. Process.

録画開始が指示されると、撮像部16においてフレーム画像の取り込みが行われ、取り込まれたフレーム画像の画像データがRAM13の画像一時格納領域131に格納される(ステップS1)。取り込まれた画像データが1フレーム目の画像データである場合(ステップS2;YES)、縦横センサ19からの検出情報が取得され、この検出情報が電子カメラ100の筐体の1フレーム目の撮影時の傾斜状態としてRAM13の縦横状態格納部132に格納され(ステップS3)、検出情報に基づき、取り込まれた画像データに縦横フラグ(縦横情報)がセットされる(ステップS4)。具体的には、取り込まれた画像データのフレームNO.に、電子カメラ100の傾斜状態としての縦横状態を示す縦横フラグが対応付けられRAM13のヘッダ情報領域133に格納され、処理はステップS13に移行する。   When the start of recording is instructed, a frame image is captured by the imaging unit 16, and the image data of the captured frame image is stored in the image temporary storage area 131 of the RAM 13 (step S1). When the captured image data is the image data of the first frame (step S2; YES), the detection information from the vertical / horizontal sensor 19 is acquired, and this detection information is obtained when the first frame of the casing of the electronic camera 100 is captured. Is stored in the vertical / horizontal state storage unit 132 of the RAM 13 (step S3), and based on the detection information, a vertical / horizontal flag (vertical / horizontal information) is set in the captured image data (step S4). Specifically, the frame number of the captured image data. The vertical and horizontal flags indicating the vertical and horizontal states as the tilt state of the electronic camera 100 are associated with each other and stored in the header information area 133 of the RAM 13, and the process proceeds to step S13.

図6に、縦横センサ19から出力される検出情報、縦横フラグ及び電子カメラ100の縦横状態の関係を示す。図6に示すように、電子カメラ100が縦向き状態であるとき、縦横センサ19から出力される検出情報は「1」であり、縦横フラグは「1」が格納される。電子カメラ100が横向き状態であるとき、縦横センサから出力される検出情報は「0」であり、縦横フラグは「0」が格納される。   FIG. 6 shows the relationship between the detection information output from the vertical / horizontal sensor 19, the vertical / horizontal flag, and the vertical / horizontal state of the electronic camera 100. As shown in FIG. 6, when the electronic camera 100 is in the vertical orientation, the detection information output from the vertical / horizontal sensor 19 is “1” and the vertical / horizontal flag is “1”. When the electronic camera 100 is in the horizontal orientation, the detection information output from the vertical / horizontal sensor is “0”, and the vertical / horizontal flag stores “0”.

1フレーム目以外の画像データの取り込みが行われると(ステップS2;NO)、縦横センサ19からの検出情報が取得され(ステップS5)、取得された検出情報と縦横状態格納部132に格納されている検出情報との比較により、電子カメラ100の傾斜状態が、直前に検出された傾斜状態から変化したか否かが判断される(ステップS6)。電子カメラ100の筐体の傾斜状態が変化したと判断された場合(ステップS6;YES)、タイマ20による計時が開始され(ステップS7)、縦横センサ19からの新たな検出情報が縦横状態格納部132に格納され(ステップS8)、処理はステップS13に移行する。   When image data other than the first frame is taken in (step S2; NO), detection information from the vertical / horizontal sensor 19 is acquired (step S5) and stored in the acquired detection information and vertical / horizontal state storage unit 132. By comparison with the detected information, it is determined whether or not the tilt state of the electronic camera 100 has changed from the tilt state detected immediately before (step S6). When it is determined that the tilt state of the housing of the electronic camera 100 has changed (step S6; YES), the timer 20 starts timekeeping (step S7), and new detection information from the vertical and horizontal sensor 19 is stored in the vertical and horizontal state storage unit. 132 (step S8), and the process proceeds to step S13.

一方、電子カメラ100の傾斜状態が変化していないと判断された場合(ステップS6;NO)、現在タイマ20は計時中であるか否かが判断され、計時中であると判断された場合(ステップS9;YES)、タイマ20の計時結果に基づき電子カメラ100の傾斜状態が変化してから予め設定された基準時間が経過したか否かが判断され、予め基準時間が経過したと判断された場合(ステップS10;YES)、タイマ20の計時が停止され(ステップS11)、ステップS1で取り込まれたフレーム画像の画像データに、縦横状態格納部132に格納された検出情報に基づいて電子カメラ100の傾斜状態の縦横を示す縦横フラグがセットされ(ステップS12)、処理はステップS13に移行する。   On the other hand, when it is determined that the tilt state of the electronic camera 100 has not changed (step S6; NO), it is determined whether or not the timer 20 is currently measuring time and when it is determined that time is being measured ( Step S9; YES), it is determined whether or not a preset reference time has elapsed since the tilt state of the electronic camera 100 has changed based on the time measurement result of the timer 20, and it is determined that the reference time has passed in advance. If so (step S10; YES), the timer 20 stops counting (step S11), and the electronic camera 100 is based on the detection information stored in the vertical / horizontal state storage unit 132 in the image data of the frame image captured in step S1. A vertical / horizontal flag indicating the vertical / horizontal state of the tilt state is set (step S12), and the process proceeds to step S13.

一方、ステップS9において現在タイマ20が計時中ではないと判断された場合(ステップS9;NO)、又は、ステップS10において予め設定された基準時間が経過していないと判断された場合(ステップS10;NO)、処理はステップS13に移行する。   On the other hand, if it is determined in step S9 that the timer 20 is not currently counting (step S9; NO), or if it is determined in step S10 that a preset reference time has not elapsed (step S10; NO), the process proceeds to step S13.

録画スイッチ121が押下され録画停止が指示されるまで、ステップS1〜S12の処理が繰り返し実行される。ステップS1におけるフレーム画像の取り込みは、一定の時間間隔で行われる。録画スイッチ121が押下され録画停止が指示されると(ステップS13;YES)、画像一時格納領域131に格納された一連の画像データ及びヘッダ情報領域133に格納された各画像データに対応付けられた縦横フラグが1の動画ファイルとして記録部17の撮影画像記録領域171もしくは記録媒体18aに記録され(ステップS14)、本処理は終了する。   Until the recording switch 121 is pressed and an instruction to stop recording is given, the processes of steps S1 to S12 are repeatedly executed. In step S1, the frame image is captured at regular time intervals. When the recording switch 121 is pressed and an instruction to stop recording is given (step S13; YES), it is associated with a series of image data stored in the temporary image storage area 131 and each image data stored in the header information area 133. The moving image file with the vertical / horizontal flag set to 1 is recorded in the captured image recording area 171 or the recording medium 18a of the recording unit 17 (step S14), and this process ends.

図7は、図5のステップS14で撮影画像記録領域171もしくは記録媒体18aに記録される動画ファイルのデータ格納例を示す図である。図7(a)に示すように、記録される動画ファイルはヘッダ情報及びフレームNO.1〜Nのフレーム画像の画像データにより構成される。図7(b)は、ヘッダ情報のデータ格納例を示す図である。ヘッダ情報においては、図7(b)に示すように、動画ファイルを構成する各フレームNO.に、そのフレーム画像の撮影時の縦横フラグが対応付けて格納されている。これにより、各フレーム画像と縦横フラグが対応付けられる。   FIG. 7 is a diagram showing a data storage example of the moving image file recorded in the captured image recording area 171 or the recording medium 18a in step S14 of FIG. As shown in FIG. 7A, the recorded moving image file includes header information and a frame number. 1 to N frame image data. FIG. 7B is a diagram illustrating a data storage example of header information. In the header information, as shown in FIG. 7B, each frame NO. In addition, the vertical and horizontal flags at the time of shooting the frame image are stored in association with each other. Thereby, each frame image is associated with the vertical and horizontal flags.

上述の動画記録処理Aによれば、一連の動画像を撮影し、撮影時の電子カメラ100の筐体の傾斜状態の変化に応じた縦横フラグを、一連の動画像を構成する各フレーム画像の画像データに対応付けて記録する。従って、一連の動画像の撮影時に電子カメラ100の傾斜状態が変化した場合、これを当該装置又は他の再生装置で認識することが可能となる。また、縦横フラグは、傾斜状態の変化から基準時間が経過した場合にのみセットされるので、こまかいぶれではなく、確実に傾斜状態が変化した場合にのみ、その傾斜状態の変化を当該装置又は他の再生装置で認識することが可能となる。   According to the moving image recording process A described above, a series of moving images is shot, and the vertical and horizontal flags corresponding to the change in the tilt state of the casing of the electronic camera 100 at the time of shooting are set for each frame image constituting the series of moving images. Records in association with image data. Therefore, if the tilt state of the electronic camera 100 changes during the shooting of a series of moving images, this can be recognized by the device or another playback device. Also, the vertical / horizontal flag is set only when the reference time has elapsed since the change in the tilt state. Can be recognized by the playback device.

次に、上述の動画記録処理Aにおいて記録された動画ファイルを再生する際に実行される動画再生処理Aについて説明する。図8は、電子カメラ100のCPU11により実行される動画再生処理Aを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画再生処理Aプログラムとの協働によるソフトウエア処理により実現される処理であり、動画ファイルが指定され再生スイッチ122が押下されて再生開始が指示された際に実行される処理である。なお、以降に示す動画再生処理(動画再生処理A〜C)において、再生時における各フレーム画像の表示時間は一定となるように制御されている。   Next, the moving image reproduction process A executed when reproducing the moving image file recorded in the above-described moving image recording process A will be described. FIG. 8 is a flowchart showing the moving image reproduction process A executed by the CPU 11 of the electronic camera 100. This process is a process realized by software processing in cooperation with the CPU 11 and the moving image reproduction processing A program stored in the recording unit 17, and a reproduction is started when a moving image file is designated and the reproduction switch 122 is pressed. This process is executed when instructed. In the moving image reproduction process (moving image reproduction processes A to C) described below, the display time of each frame image during reproduction is controlled to be constant.

まず、再生対象の動画ファイルのうち、表示対象のフレーム画像の画像データがRAM13のワークエリアに読み出され(ステップS21)、読み出された画像データに対応する縦横フラグが参照され、当該画像データが縦向き状態で撮影された画像であるか否かが判断される。当該画像データが縦向き状態で撮影された画像ではないと判断された場合は(ステップS22;NO)、処理はステップS26に移行し、表示部15の表示画面上に表示され、処理はステップS27に移行する。   First, image data of a frame image to be displayed is read out to a work area of the RAM 13 from the moving image file to be reproduced (step S21), and the vertical and horizontal flags corresponding to the read image data are referred to. It is determined whether or not is an image taken in a portrait orientation. If it is determined that the image data is not an image photographed in the portrait orientation (step S22; NO), the process proceeds to step S26 and is displayed on the display screen of the display unit 15, and the process is step S27. Migrate to

一方、読み出された画像データが縦向き状態で撮影された画像であると判断された場合(ステップS22;YES)、当該画像データが時計回りに90度回転され(ステップS23)、回転後の画像データから表示部15の表示画面のアスペクト比の最大矩形の画像データの切り出しが行われ(ステップS24)、切り出された画像データが表示画面の大きさに拡大される(ステップS25)。そして、拡大された画像データが表示画面上に表示され(ステップS26)、処理はステップS27に移行する。図9に、読み出されたフレーム画像の画像データに対するステップS23〜S25の処理過程を模式的に示す。   On the other hand, when it is determined that the read image data is an image photographed in the portrait orientation (step S22; YES), the image data is rotated 90 degrees clockwise (step S23), and the image data after the rotation is rotated. The image data having the maximum aspect ratio of the display screen of the display unit 15 is cut out from the image data (step S24), and the cut out image data is enlarged to the size of the display screen (step S25). The enlarged image data is displayed on the display screen (step S26), and the process proceeds to step S27. FIG. 9 schematically shows the process of steps S23 to S25 for the image data of the read frame image.

ステップS27において、表示された画像データが再生対象の動画ファイルにおける最終のフレーム画像であるか否かが判断され、最終のフレーム画像でなければ(ステップS27;NO)、処理はステップS21に戻り、ステップS21以降の処理が繰り返し実行される。表示された画像データが再生対象の動画ファイルにおける最終のフレーム画像である場合は(ステップS27;YES)、再生が停止され(ステップS28)、本処理は終了する。   In step S27, it is determined whether or not the displayed image data is the last frame image in the moving image file to be reproduced. If it is not the last frame image (step S27; NO), the process returns to step S21. The processing after step S21 is repeatedly executed. If the displayed image data is the final frame image in the moving image file to be played back (step S27; YES), playback is stopped (step S28), and this process ends.

上述の動画再生処理Aによれば、一連の動画ファイルにおいて、電子カメラ100が縦向き状態で撮影されたことを示す縦横フラグが対応している箇所においては、そのままの向きで横向きの表示画面に表示を行うと表示画像の水平方向位置が実際の水平方向に合わず、見づらい画像となるため、縦向き状態の傾斜状態で撮影された箇所の画像データを回転させて表示画像の水平方向位置を実際の水平方向に合わせることにより、一連の動画像を見やすく再生することが可能となる。また、回転した画像から表示画面のアスペクト比の最大矩形の画像を切り出し、切り出した画像を表示画面の大きさに拡大して表示することにより、表示画面上に画像が表示されない部分がなくなり、回転を行った箇所の画像についても見やすく再生することが可能となる。   According to the above-described moving image reproduction process A, in a series of moving image files, in a portion corresponding to a vertical / horizontal flag indicating that the electronic camera 100 was shot in the vertical orientation, the display screen is in the horizontal orientation with the same orientation. When displayed, the horizontal position of the displayed image does not match the actual horizontal direction and the image is difficult to see.Therefore, the image data of the location shot in the tilted state of the vertical orientation is rotated to adjust the horizontal position of the displayed image. By adjusting to the actual horizontal direction, a series of moving images can be easily reproduced. In addition, by cutting out the image with the maximum aspect ratio of the display screen from the rotated image and displaying the cut-out image enlarged to the size of the display screen, there is no part where the image is not displayed on the display screen. It is also possible to reproduce the image of the place where the image is performed in an easy-to-see manner.

(実施形態2)
次に、本発明の実施形態2について説明する。
本実施形態2の構成については、図1、2で説明した電子カメラ100と同様であるのでその説明は省略する。
また、実施形態2の記録動作についても、上述の動画記録処理Aと同様であるのでその説明は省略する。
(Embodiment 2)
Next, Embodiment 2 of the present invention will be described.
Since the configuration of the second embodiment is the same as that of the electronic camera 100 described with reference to FIGS.
Also, the recording operation of the second embodiment is the same as the moving image recording process A described above, and therefore the description thereof is omitted.

以下、実施形態2における画像の再生動作について説明する。
図10は、電子カメラ100のCPU11により実行される動画再生処理Bを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画再生処理Bプログラムとの協働によるソフトウエア処理により実現される処理であり、動画ファイルが指定され再生スイッチ122が押下されて再生開始が指示された際に実行される処理である。
Hereinafter, an image reproduction operation according to the second embodiment will be described.
FIG. 10 is a flowchart showing the moving image reproduction process B executed by the CPU 11 of the electronic camera 100. This processing is realized by software processing in cooperation with the CPU 11 and the moving image reproduction processing B program stored in the recording unit 17, and the reproduction is started when the moving image file is designated and the reproduction switch 122 is pressed. This process is executed when instructed.

なお、本実施形態2においても、動画像の再生時には、表示画面が横長になる向き(図3(a)の向き)で再生されるものとする。   In the second embodiment as well, when a moving image is reproduced, it is assumed that the display screen is reproduced in a landscape orientation (the orientation of FIG. 3A).

まず、再生対象の動画ファイルのうち、表示対象のフレーム画像の画像データがRAM13のワークエリアに読み出され(ステップS31)、読み出された画像データに対応する縦横フラグが参照され、当該画像データが縦向き状態で撮影された画像であるか否かが判断される。当該画像データが縦向き状態で撮影された画像ではないと判断された場合は(ステップS32;NO)、表示部15の表示画面上に表示され(ステップS34)、処理はステップS35に移行する。   First, image data of a frame image to be displayed is read out to a work area of the RAM 13 in a moving image file to be reproduced (step S31), and a vertical / horizontal flag corresponding to the read image data is referred to. It is determined whether or not is an image taken in a portrait orientation. When it is determined that the image data is not an image photographed in the portrait orientation (step S32; NO), the image data is displayed on the display screen of the display unit 15 (step S34), and the process proceeds to step S35.

一方、読み出されたフレーム画像の画像データが縦向き状態で撮影された画像であると判断された場合(ステップS32;YES)、当該画像データが時計回りに90度回転され(ステップS33)、回転された画像データが表示部15の表示画面上に表示され(ステップS34)、処理はステップS35に移行する。   On the other hand, when it is determined that the image data of the read frame image is an image taken in the portrait orientation (step S32; YES), the image data is rotated 90 degrees clockwise (step S33). The rotated image data is displayed on the display screen of the display unit 15 (step S34), and the process proceeds to step S35.

ステップS35においては、次に縦横フラグの内容が変化する画像データが検索され(ステップS35)、縦横フラグの内容が横向き状態から縦向き状態に変化する場合は(ステップS36;YES)、ステップS35で検索された画像データより予め設定されたフレーム数(n+1(nは正の整数)フレーム)前の画像データまでがRAM13のワークエリアに読み出され、順次表示部15の表示画面上に表示される(ステップS37)。縦横フラグの内容が縦向き状態から横向き向き状態に変化する場合は(ステップS36;NO)、ステップS35で検索された画像データより予め設定されたフレーム数(n+1(nは正の整数)フレーム)前の画像データまでがRAM13のワークエリアに読み出され、順次時計回りに90度回転され、表示部15の表示画面上に表示される(ステップS38)。なお、次に縦横フラグが変化する画像データまでの枚数Pがnに満たない場合は、ステップS36による画像データの読み出しは行われない。   In step S35, image data in which the content of the vertical / horizontal flag changes next is searched (step S35). If the content of the vertical / horizontal flag changes from the horizontal state to the vertical state (step S36; YES), in step S35. The image data up to a preset number of frames (n + 1 (n is a positive integer) frame) ahead of the retrieved image data is read out to the work area of the RAM 13 and sequentially displayed on the display screen of the display unit 15. (Step S37). When the content of the vertical / horizontal flag changes from the vertical orientation to the horizontal orientation (step S36; NO), the number of frames set in advance from the image data searched in step S35 (n + 1 (n is a positive integer) frame) The previous image data is read out to the work area of the RAM 13 and is sequentially rotated 90 degrees clockwise and displayed on the display screen of the display unit 15 (step S38). If the number P of images up to the next time when the vertical and horizontal flags change is less than n, the image data is not read out in step S36.

次いで、次に表示対象となるフレーム画像の画像データがRAM13のワークエリアに読み出され(ステップS39)、読み出されたフレーム画像から次に縦横フラグが変化するフレーム画像までの枚数(フレーム数)に基づき画像の回転角度が決定され、決定された回転角度で回転処理が施される(ステップS40)。決定される回転角度は、縦横フラグが変化するnフレーム(n>PのときはPフレーム)前の画像データから縦横フラグの内容が変化する画像データにかけて、画像毎に一定の割合で段階的に変化する。例えば、縦横フラグが横向きを示すフラグから縦向きを示すフラグに変化する場合、回転を開始した時点の画像データ(縦横フラグが変化するnフレーム前(n>PのときはPフレーム前)の画像データ)を1として画像データの読み出し枚数Mをカウントした場合、画像毎の回転角度は、時計回りに(90/n+1)×M度(n>Pのときは(90/P+1)×M度)に決定される。   Next, the image data of the next frame image to be displayed is read into the work area of the RAM 13 (step S39), and the number of frames (number of frames) from the read frame image to the frame image where the vertical / horizontal flag changes next. Based on the above, the rotation angle of the image is determined, and rotation processing is performed at the determined rotation angle (step S40). The determined rotation angle is stepwise at a constant rate for each image from the image data before n frames (P frame when n> P) when the vertical / horizontal flag changes to the image data where the content of the vertical / horizontal flag changes. Change. For example, when the vertical / horizontal flag changes from a horizontal flag to a vertical flag, the image data at the time when the rotation is started (the image before n frames before the vertical / horizontal flag changes (when n> P, before the P frame) (Data) is 1, and when the number M of read image data is counted, the rotation angle for each image is clockwise (90 / n + 1) × M degrees (when n> P, (90 / P + 1) × M degrees). To be determined.

回転後、画像データは表示部15の表示画面上に表示される(ステップS41)。
表示された画像データに対応する縦横フラグの内容が変化するまで、ステップS39〜41の処理が繰り返し実行される。表示された画像データに対応する縦横フラグの内容が変化した場合(ステップS42;YES)、処理はステップS43に移行し、表示された画像データが再生対象の動画ファイルにおける最終の画像データがあるか否かが判断され、最終の画像データでなければ(ステップS43;NO)、処理はステップS35に戻り、ステップS35以降の処理が繰り返し実行される。表示された画像データが再生対象の動画ファイルにおける最終の画像データである場合は(ステップS43;YES)、再生が停止され(ステップS44)、本処理は終了する。
After the rotation, the image data is displayed on the display screen of the display unit 15 (step S41).
The processes in steps S39 to S41 are repeatedly executed until the contents of the vertical / horizontal flag corresponding to the displayed image data change. If the content of the vertical / horizontal flag corresponding to the displayed image data has changed (step S42; YES), the process proceeds to step S43, and whether the displayed image data includes the final image data in the moving image file to be reproduced. If it is determined that the image data is not the final image data (step S43; NO), the process returns to step S35, and the processes after step S35 are repeatedly executed. When the displayed image data is the final image data in the moving image file to be played back (step S43; YES), playback is stopped (step S44), and this process ends.

図11は、動画ファイルの各フレーム画像と、この動画ファイルを上述の動画再生処理Bを実行して再生した際の再生画像を模式的に示す図である。図10(a)は、動画ファイルの各フレーム画像及び各フレーム画像に対応する縦横フラグの内容を示す図、図10(b)は、図10(a)の動画ファイルを、動画再生処理Bを実行して再生する際に回転させる回転角度及び再生画像を示す図である。   FIG. 11 is a diagram schematically illustrating each frame image of a moving image file and a reproduction image when the moving image file is reproduced by executing the above-described moving image reproduction process B. FIG. 10A is a diagram showing the contents of each frame image and the vertical / horizontal flag corresponding to each frame image in the moving image file. FIG. 10B is a diagram showing the moving image file shown in FIG. It is a figure which shows the rotation angle and reproduction image which are rotated when performing and reproducing | regenerating.

縦横センサ19は、電子カメラ100の筐体が縦向き状態か又は横向き状態であるかの検出情報を出力するものであるが、所定角度以上筐体が回転した場合に縦又は横を示す検出情報が切り換えられる。即ち、縦横センサ19で縦横の切り換えが検出される前の段階で筐体は除々に回転している。例えば、図11(a)に示す動画ファイルにおいては、1フレーム目の画像データは縦横フラグに横を示すフラグが対応付けられており、7フレーム目の画像データで縦を示すフラグが対応付けられているが、実際には、7フレーム目の画像データで縦/横が切り換えられるまでにおいても電子カメラ100の筐体の傾斜、即ち、撮影角度は変化しており、画像の水平方向位置も変化している。上述の動画再生処理Bにおいては、次に縦横フラグが変化する画像データからnフレーム前の画像データから、言いかえれば、次に縦横フラグが変化より予め設定された基準時間前に再生するフレーム画像から回転を開始し、縦横フラグが変化する時点のフレーム画像までの各フレーム画像の回転角度を段階的に変化させて回転させて表示するので、図10(b)に示すように、画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   The vertical / horizontal sensor 19 outputs detection information indicating whether the casing of the electronic camera 100 is in a vertical state or a horizontal state, and detection information indicating vertical or horizontal when the casing is rotated by a predetermined angle or more. Is switched. In other words, the casing is gradually rotated before the vertical / horizontal sensor 19 detects the vertical / horizontal switching. For example, in the moving image file shown in FIG. 11A, the image data of the first frame is associated with the vertical and horizontal flags with the horizontal flag, and the image data of the seventh frame is associated with the vertical flag. However, actually, the tilt of the housing of the electronic camera 100, that is, the shooting angle is changed and the horizontal position of the image is also changed until the vertical / horizontal switching is performed with the image data of the seventh frame. is doing. In the above-described moving image reproduction process B, the frame image to be reproduced from the image data n frames before the next image data in which the vertical / horizontal flag changes, in other words, the next time before the reference time set in advance from the change in the vertical / horizontal flag. Since the rotation angle of each frame image up to the frame image at the time when the vertical / horizontal flag changes is changed in stages and rotated, the image is displayed horizontally as shown in FIG. It becomes possible to reproduce the image in an easy-to-view manner by matching the direction position with the actual horizontal direction.

(実施形態3)
次に、本発明の実施形態3について説明する。
上記実施形態1、2においては、撮影時に、一連の動画ファイルを構成する各画像データが電子カメラ100の筐体を縦向き状態にして撮影されたか又は横向き状態で撮影されたかを示す縦横フラグを対応付けて記憶し、動画再生時に、縦横フラグに基づいてフレーム画像を回転処理することにより、画像の水平方向位置を実際の水平方向に合わせて見やすく再生できるようにした。本実施形態3は、撮影時に縦横センサ19からの検出情報に基づいてフレーム画像を回転させて記録することにより、電子カメラ100又は他の再生装置が画像の回転処理に対応していない場合であっても見やすく再生することを可能とするものである。
(Embodiment 3)
Next, a third embodiment of the present invention will be described.
In the first and second embodiments, the vertical / horizontal flag indicating whether each piece of image data constituting a series of moving image files was shot with the casing of the electronic camera 100 in the vertical state or in the horizontal state at the time of shooting. By storing them in association with each other and rotating the frame image based on the vertical / horizontal flag during moving image reproduction, the horizontal position of the image can be reproduced in an easy-to-view manner in accordance with the actual horizontal direction. The third embodiment is a case where the electronic camera 100 or another playback device does not support image rotation processing by rotating and recording a frame image based on detection information from the vertical / horizontal sensor 19 during shooting. Even if it is easy to see, it can be reproduced.

本実施形態3の構成については、図1、2で説明した電子カメラ100と同様であるのでその説明は省略する。   Since the configuration of the third embodiment is the same as that of the electronic camera 100 described with reference to FIGS.

次に、実施形態3の動作について説明する。
図12は、電子カメラ100のCPU11により実行される動画記録処理Bを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画記録処理Bプログラムとの協働によるソフトウエア処理により実現される処理であり、録画スイッチ121が押下され録画開始が指示された際に実行される処理である。
Next, the operation of the third embodiment will be described.
FIG. 12 is a flowchart showing the moving image recording process B executed by the CPU 11 of the electronic camera 100. This processing is realized by software processing in cooperation with the CPU 11 and the moving image recording processing B program stored in the recording unit 17, and is executed when the recording switch 121 is pressed to start recording. Process.

録画開始が指示されると、撮像部16においてフレーム画像の画像データの取り込みが行われ、RAM13の画像一時格納領域131に格納される(ステップS51)。取り込まれた画像データが1フレーム目である場合は(ステップS52;YES)、縦横センサ19からの検出情報が取得され、RAM13の縦横状態格納部132に格納される(ステップS53)。また、縦横センサ19からの検出情報に基づき取り込まれた画像データが縦向き状態で撮影されたか横向き状態で撮影されたかが判断され、縦向き状態で撮影された画像データである場合(ステップS54;YES)、RAM13のワークエリアに当該画像データが読み出されて時計回りに90度回転処理され(ステップS55)、回転後の画像データから表示画面のアスペクト比に応じて画像の切り出しが行われ、更に切り出し前の画像データサイズまで画像が拡大され(ステップS56)、画像一時格納領域131の対応する画像データが処理された画像データに置き換えられ(ステップ57)、処理はステップS69に移行する。
一方、ステップS54において、取り込まれた画像データが縦向き状態で撮影された画像データではないと判断された場合(ステップS54;NO)、処理はステップS69に移行する。
When the start of recording is instructed, the image data of the frame image is captured by the imaging unit 16 and stored in the temporary image storage area 131 of the RAM 13 (step S51). When the captured image data is the first frame (step S52; YES), detection information from the vertical / horizontal sensor 19 is acquired and stored in the vertical / horizontal state storage unit 132 of the RAM 13 (step S53). In addition, it is determined whether the image data captured based on the detection information from the vertical / horizontal sensor 19 is captured in the vertical state or the horizontal direction, and is image data captured in the vertical direction (step S54; YES). ), The image data is read into the work area of the RAM 13 and rotated 90 degrees clockwise (step S55), and the image is cut out from the rotated image data according to the aspect ratio of the display screen. The image is enlarged to the size of the image data before cutting (step S56), the corresponding image data in the image temporary storage area 131 is replaced with the processed image data (step 57), and the process proceeds to step S69.
On the other hand, if it is determined in step S54 that the captured image data is not image data captured in the portrait orientation (step S54; NO), the process proceeds to step S69.

撮像部16において取り込まれた画像データが1フレーム目のフレーム画像ではない場合は(ステップS52;NO)、処理はステップS58に移行し、縦横センサ19からの検出情報が取得され、取得された検出情報と縦横状態格納部132に格納されている検出情報との比較により、画像取り込み時の電子カメラ100の傾斜状態が、直前に検出された傾斜状態から変化したか否かが判断される(ステップS59)。電子カメラ100の傾斜状態が変化したと判断された場合(ステップS59;YES)、タイマ20による計時が開始され(ステップS60)、縦横センサ19からの検出情報が縦横状態格納部132に格納され(ステップS61)、処理はステップS69に移行する。   If the image data captured by the imaging unit 16 is not the first frame image (step S52; NO), the process proceeds to step S58, and detection information from the vertical / horizontal sensor 19 is acquired and the acquired detection is performed. By comparing the information with the detection information stored in the vertical / horizontal state storage unit 132, it is determined whether or not the tilt state of the electronic camera 100 at the time of image capture has changed from the tilt state detected immediately before (step). S59). When it is determined that the tilt state of the electronic camera 100 has changed (step S59; YES), the time measurement by the timer 20 is started (step S60), and the detection information from the vertical / horizontal sensor 19 is stored in the vertical / horizontal state storage unit 132 ( In step S61), the process proceeds to step S69.

一方、ステップS59において、電子カメラ100の傾斜状態が変化していないと判断された場合(ステップS59;NO)、現在タイマ20は計時中であるか否かが判断され、計時中であると判断された場合(ステップS62;YES)、タイマ20の計時結果に基づき電子カメラ100の傾斜状態が変化してから予め設定された基準時間が経過したか否かが判断され、予め設定された基準時間が経過したと判断された場合(ステップS63;YES)、タイマ20の計時が停止される(ステップS64)。次いで、縦横状態格納部132に格納されている検出情報に基づき、取り込まれた画像データが縦向き状態で撮影されたか横向き状態で撮影されたかが判断され、縦向き状態で撮影された画像データであると判断された場合(ステップS65;YES)、RAM13のワークエリアに当該画像データが読み出されて時計回りに90度回転され(ステップS66)、回転後の画像データから表示画面のアスペクト比に応じて画像の切り出しが行われ、更に切り出し前の画像データサイズまで画像が拡大され(ステップS67)、画像一時格納領域131の対応する画像データが処理された画像データに置き換えられ(ステップ68)、処理はステップS69に移行する。   On the other hand, when it is determined in step S59 that the tilt state of the electronic camera 100 has not changed (step S59; NO), it is determined whether or not the timer 20 is currently measuring time, and it is determined that time is being measured. If it is determined (step S62; YES), it is determined whether or not a preset reference time has elapsed since the tilt state of the electronic camera 100 has changed based on the time measurement result of the timer 20, and a preset reference time is determined. Is determined to have elapsed (step S63; YES), the timer 20 stops counting (step S64). Next, based on the detection information stored in the vertical / horizontal state storage unit 132, it is determined whether the captured image data was shot in the vertical state or the horizontal direction, and is image data shot in the vertical state. (Step S65; YES), the image data is read into the work area of the RAM 13 and rotated clockwise by 90 degrees (step S66), and the rotated image data is used in accordance with the aspect ratio of the display screen. The image is cut out, further enlarged to the image data size before cutting out (step S67), and the corresponding image data in the temporary image storage area 131 is replaced with the processed image data (step 68). Proceeds to step S69.

一方、ステップS62において現在タイマ20が計時中ではないと判断された場合(ステップS62;NO)、ステップS63において予め設定された基準時間が経過していないと判断された場合(ステップS63;NO)、又は、ステップS65において縦向きで撮影された画像データではないと判断された場合(ステップS65;NO)、処理はステップS69に移行する。   On the other hand, if it is determined in step S62 that the timer 20 is not currently counting (step S62; NO), if it is determined in step S63 that a preset reference time has not elapsed (step S63; NO) Alternatively, if it is determined in step S65 that the image data is not photographed vertically (step S65; NO), the process proceeds to step S69.

録画スイッチ121が押下され録画停止が指示されるまで、ステップS51〜S68の処理が繰り返し実行される。ステップS51におけるフレーム画像の取り込みは、一定の時間間隔で行われる。録画スイッチ121が押下され録画停止が指示されると(ステップS69;YES)、RAM13の画像一時格納領域131に格納された一連のフレーム画像の画像データは1の動画ファイルとして記録部17の撮影画像記録領域171もしくは記録媒体18aに記録され(ステップS70)、本処理は終了する。   Until the recording switch 121 is pressed and recording stop is instructed, the processes of steps S51 to S68 are repeatedly executed. The capture of the frame image in step S51 is performed at regular time intervals. When the recording switch 121 is pressed and recording is instructed (step S69; YES), the image data of the series of frame images stored in the image temporary storage area 131 of the RAM 13 is taken as one moving image file and is taken by the recording unit 17. Recording is performed in the recording area 171 or the recording medium 18a (step S70), and this process ends.

上述の動画記録処理Bによれば、撮影時に縦横センサ19からの検出情報に基づいて画像を回転させて記録するので、電子カメラ100又は他の再生装置が画像の回転処理に対応していない場合であっても、画像データをそのまま再生すれば画像の水平方向位置を実際の水平方向位置に合わせることができ一連の動画像を見やすく再生することが可能となる。また、電子カメラ100の傾斜状態の変化しても、基準時間が経過するまでその傾斜状態が持続しなければ画像の向きの変更は行わないので、こまかいぶれではなく、確実に傾斜状態が変化した場合にのみ、画像の向きの変更を行うことができ、効率的に水平方向位置の補正を行うことが可能となる。また、回転した画像データから表示画面のアスペクト比の最大矩形の画像を切り出し、切り出した画像をもとの画像データの大きさに拡大して記録することで、電子カメラ200で再生を行った際に、表示画面上に画像が表示されない部分がなくなり、より一層見やすく再生することが可能となる。   According to the moving image recording process B described above, the image is rotated and recorded based on the detection information from the vertical / horizontal sensor 19 at the time of shooting, and therefore the electronic camera 100 or other playback device does not support the image rotation process. Even so, if the image data is reproduced as it is, the horizontal position of the image can be matched with the actual horizontal position, and a series of moving images can be easily reproduced. Even if the tilt state of the electronic camera 100 changes, the orientation of the image is not changed unless the tilt state continues until the reference time elapses. Only in this case, the orientation of the image can be changed, and the horizontal position can be efficiently corrected. In addition, when the image with the maximum aspect ratio of the display screen is cut out from the rotated image data, and the cut-out image is enlarged and recorded to the size of the original image data, so that the electronic camera 200 reproduces the image. In addition, there is no portion where no image is displayed on the display screen, and it is possible to reproduce the image more easily.

(実施形態4)
次に、本発明の実施形態4について説明する。
図13は、動画記録再生装置200(以下、電子カメラ200と称する)の機能的構成を示すブロック図である。
図13に示すように、電子カメラ200は、図1、2で説明した電子カメラ100の縦横センサ19に替えて角度センサ22を備えて構成されている。その他は図1、2で説明した電子カメラ100と同様である。
(Embodiment 4)
Next, a fourth embodiment of the present invention will be described.
FIG. 13 is a block diagram showing a functional configuration of a moving image recording / reproducing apparatus 200 (hereinafter referred to as an electronic camera 200).
As shown in FIG. 13, the electronic camera 200 includes an angle sensor 22 instead of the vertical / horizontal sensor 19 of the electronic camera 100 described with reference to FIGS. Others are the same as those of the electronic camera 100 described with reference to FIGS.

角度センサ22は、電子カメラ200に内蔵されたセンサであり、重力の方向を検出することにより電子カメラ200の筐体の回転による角度変化を検出し、回転角度に応じた電圧値を検出情報としてCPU11に出力する。本実施の形態においては、角度センサ22は、通常撮影時の姿勢で電子カメラ200を構えた時の表示部15の表示画面が横長になる向きの状態(図3(a)に示す状態)を0度の基準状態として検出し、この基準状態からの電子カメラ200の筐体の時計回りの回転角度に応じた出力電圧を出力するものとする。   The angle sensor 22 is a sensor built in the electronic camera 200, detects an angle change due to rotation of the casing of the electronic camera 200 by detecting the direction of gravity, and uses a voltage value corresponding to the rotation angle as detection information. It outputs to CPU11. In the present embodiment, the angle sensor 22 is in a state in which the display screen of the display unit 15 is horizontally long when the electronic camera 200 is held in a normal shooting posture (the state shown in FIG. 3A). It is assumed that a reference state of 0 degrees is detected, and an output voltage corresponding to the clockwise rotation angle of the casing of the electronic camera 200 from this reference state is output.

次に、実施形態4の動作について説明する。
図14は、電子カメラ200のCPU11により実行される動画記録処理Cを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画記録処理Cプログラムとの協働によるソフトウエア処理により実現される処理であり、録画スイッチ121が押下され録画開始が指示された際に実行される処理である。
Next, the operation of the fourth embodiment will be described.
FIG. 14 is a flowchart showing the moving image recording process C executed by the CPU 11 of the electronic camera 200. This processing is realized by software processing in cooperation with the CPU 11 and the moving image recording processing C program stored in the recording unit 17, and is executed when the recording switch 121 is pressed to start recording. Process.

録画開始が指示されると、撮像部16においてフレーム画像の画像データの取り込みが行われ、RAM13の画像一時格納領域131に格納される(ステップS81)。次いで、角度センサ22からの検出情報が参照され、取り込まれた画像データに電子カメラ200の筐体の基準状態からの傾斜角度を示す角度情報が対応付けられる(ステップS82)。具体的には、取り込まれた画像データに対応するフレームNO.に、角度センサ22からの検出情報に応じた角度情報が対応付けられRAM13のヘッダ情報領域133に格納される。   When the start of recording is instructed, the image data of the frame image is captured by the imaging unit 16 and stored in the temporary image storage area 131 of the RAM 13 (step S81). Next, detection information from the angle sensor 22 is referred to, and angle information indicating an inclination angle from the reference state of the casing of the electronic camera 200 is associated with the captured image data (step S82). Specifically, the frame No. corresponding to the captured image data. In addition, the angle information corresponding to the detection information from the angle sensor 22 is associated and stored in the header information area 133 of the RAM 13.

録画スイッチ121が押下され録画停止が指示されるまで、ステップS81〜S82の処理が繰り返し実行される。ステップS81におけるフレーム画像の取り込みは、一定の時間間隔で行われる。録画スイッチ121が押下され録画停止が指示されると(ステップS83;YES)、RAM13に格納された一連の画像データ及び対応する角度情報が1の動画ファイルとして記録部17の撮影画像記録領域171もしくは記録媒体18aに記録され(ステップS84)、本処理は終了する。   Until the recording switch 121 is pressed and an instruction to stop recording is given, the processes of steps S81 to S82 are repeatedly executed. The capturing of the frame image in step S81 is performed at regular time intervals. When the recording switch 121 is pressed and a recording stop is instructed (step S83; YES), a series of image data stored in the RAM 13 and the corresponding angle information as one moving image file are recorded in the captured image recording area 171 of the recording unit 17 or Recording is performed on the recording medium 18a (step S84), and this process ends.

図14のステップS84で記録される動画ファイルは、図示しないが、図7に示す動画ファイルの縦横フラグに替えて、各画像データ撮影時の電子カメラ200の筐体の角度情報がその画像データに対応付けて記憶されている。   The moving image file recorded in step S84 in FIG. 14 is not shown, but instead of the vertical and horizontal flags of the moving image file shown in FIG. 7, the angle information of the housing of the electronic camera 200 at the time of shooting each image data is included in the image data. It is stored in association.

上述の動画記録処理Cによれば、一連の動画像を撮影し、撮影時の電子カメラ200の筐体の傾斜角度の変化に応じた角度情報を、一連の動画像を構成する各フレーム画像の画像データに対応付けて記録する。従って、一連の動画像の撮影時に電子カメラ200の傾斜角度、即ち撮影角度が変化した場合、これを当該装置又は他の再生装置で認識することが可能となる。   According to the above-described moving image recording process C, a series of moving images are shot, and angle information corresponding to a change in the tilt angle of the housing of the electronic camera 200 at the time of shooting is used for each frame image constituting the series of moving images. Records in association with image data. Accordingly, when the tilt angle of the electronic camera 200, that is, the shooting angle changes during the shooting of a series of moving images, this can be recognized by the device or another playback device.

次に、上述の動画記録処理Cにおいて記録された動画ファイルを再生する際に実行される動画再生処理Cについて説明する。図15は、電子カメラ200のCPU11により実行される動画再生処理Cを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画再生処理Cプログラムとの協働によるソフトウエア処理により実現される処理であり、動画ファイルが指定され再生スイッチ122が押下されて再生開始が指示された際に実行される処理である。   Next, the moving image reproduction process C executed when reproducing the moving image file recorded in the above-described moving image recording process C will be described. FIG. 15 is a flowchart showing the moving image reproduction process C executed by the CPU 11 of the electronic camera 200. This processing is realized by software processing in cooperation with the CPU 11 and the moving image reproduction processing C program stored in the recording unit 17, and the reproduction is started when the moving image file is designated and the reproduction switch 122 is pressed. This process is executed when instructed.

なお、本実施の形態において、動画像の再生時には、表示画面が横長になる向き(図3(a)の向き)で再生されるものとする。   In the present embodiment, when a moving image is reproduced, it is assumed that the display screen is reproduced in a landscape orientation (the orientation of FIG. 3A).

まず、再生対象の動画ファイルのうち、表示対象のフレーム画像の画像データがRAM13のワークエリアに読み出され(ステップS91)、読み出された画像データに対応する角度情報が参照され、角度情報に基づいて、当該画像データが回転処理される(ステップS92)。本実施の形態においては、画像データが時計回りに角度情報で示される回転角度で回転される。   First, image data of a frame image to be displayed is read out from the movie file to be reproduced into the work area of the RAM 13 (step S91), and angle information corresponding to the read image data is referred to. Based on this, the image data is rotated (step S92). In the present embodiment, the image data is rotated clockwise at a rotation angle indicated by the angle information.

次いで、回転後の画像データから表示部15の表示画面のアスペクト比の最大矩形の画像データの切り出しが行われ(ステップS93)、切り出された画像データが表示画面の大きさに拡大される(ステップS94)。そして、拡大された画像データが表示画面上に表示され(ステップS95)、処理はステップS96に移行する。   Next, the image data with the maximum aspect ratio of the display screen of the display unit 15 is cut out from the rotated image data (step S93), and the cut out image data is enlarged to the size of the display screen (step S93). S94). Then, the enlarged image data is displayed on the display screen (step S95), and the process proceeds to step S96.

ステップS96において、表示された画像データが再生対象の動画ファイルにおける最終のフレーム画像の画像データがあるか否かが判断され、最終のフレーム画像の画像データでなければ(ステップS96;NO)、処理はステップS91に戻り、ステップS91以降の処理が繰り返し実行される。表示された画像データが再生対象の動画ファイルにおける最終のフレーム画像の画像データである場合は(ステップS96;YES)、再生が停止され(ステップS97)、本処理は終了する。   In step S96, it is determined whether or not the displayed image data includes image data of the final frame image in the moving image file to be reproduced. If it is not the image data of the final frame image (step S96; NO), processing is performed. Returns to step S91, and the processing after step S91 is repeatedly executed. When the displayed image data is the image data of the last frame image in the moving image file to be reproduced (step S96; YES), the reproduction is stopped (step S97), and this process ends.

上述の画像再生処理Cによれば、一連の動画ファイルにおいて、撮影時の電子カメラ200の撮影角度に応じて、一連の動画像を構成する各フレーム画像の画像データを回転させて再生を行うので、画像の水平方向位置を実際の水平方向に合わせることができ、一連の動画像を見やすく再生することが可能となる。また、回転した画像データから表示画面のアスペクト比の最大矩形の画像を切り出し、切り出した画像を表示画面の大きさに拡大して表示することにより、表示画面上に画像が表示されない部分がなくなり、回転を行った箇所の画像についても見やすく再生することが可能となる。   According to the image reproduction process C described above, in a series of moving image files, the image data of each frame image constituting a series of moving images is rotated and reproduced according to the shooting angle of the electronic camera 200 at the time of shooting. The horizontal position of the image can be adjusted to the actual horizontal direction, and a series of moving images can be easily reproduced. In addition, by cutting out the image with the maximum aspect ratio of the display screen from the rotated image data, and expanding the displayed image to the size of the display screen, there is no part where the image is not displayed on the display screen. It is also possible to reproduce the image of the rotated part in an easy-to-view manner.

(実施形態5)
次に、本発明の実施形態5について説明する。
上記実施形態4においては、一連の動画ファイルを構成する各フレーム画像の画像データに、撮影時の電子カメラ200の筐体の傾斜角度、即ち撮影角度を示す角度情報を対応付けて記録し、動画再生時に、角度情報に基づいて画像を回転処理することにより、画像の水平方向位置を実際の水平方向と合わせて見やすく再生できるようにした。本実施形態5は、撮影時に角度センサ22からの角度情報に基づいて画像を回転させて記録することにより、電子カメラ200又は他の再生装置が画像の回転処理に対応していない場合であっても見やすく再生することを可能とするものである。
(Embodiment 5)
Next, a fifth embodiment of the present invention will be described.
In Embodiment 4, the image data of each frame image constituting a series of moving image files is recorded in association with the tilt angle of the housing of the electronic camera 200 at the time of shooting, that is, angle information indicating the shooting angle. At the time of reproduction, the image is rotated based on the angle information, so that the horizontal position of the image can be reproduced in an easy-to-view manner along with the actual horizontal direction. The fifth embodiment is a case where the electronic camera 200 or another playback device does not support image rotation processing by rotating and recording an image based on angle information from the angle sensor 22 at the time of shooting. It is also possible to reproduce the video in an easy-to-read manner.

本実施形態5の構成については、上述の実施形態4で説明したのと同様であるのでその説明は省略する。   Since the configuration of the fifth embodiment is the same as that described in the fourth embodiment, the description thereof is omitted.

以下、実施形態5の動作について説明する。
図16は、電子カメラ200のCPU11により実行される動画記録処理Dを示すフローチャートである。当該処理は、CPU11と記録部17に記憶されている動画記録処理Dプログラムとの協働によるソフトウエア処理により実現される処理であり、録画スイッチ121が押下され録画開始が指示された際に実行される処理である。
Hereinafter, the operation of the fifth embodiment will be described.
FIG. 16 is a flowchart showing the moving image recording process D executed by the CPU 11 of the electronic camera 200. This processing is realized by software processing in cooperation with the CPU 11 and the moving image recording processing D program stored in the recording unit 17, and is executed when the recording switch 121 is pressed to start recording. Process.

録画開始が指示されると、撮像部16においてフレーム画像の画像データの取り込みが行われ、RAM13の画像一時格納領域131に格納される(ステップS101)。次いで、取り込まれた画像データがRAM13のワークエリアに読み出されるとともに、角度センサ22の検出情報が参照され、取り込まれた画像データが検出情報に基づいて回転処理される(ステップS102)。具体的には、角度センサ22により検出された角度の回転角度で時計回りに回転処理される。回転後、回転処理された画像データから表示部15の表示画面のアスペクト比の最大矩形の画像データの切り出しが行われ(ステップS103)、更に切り出された画像データが切り出し前の画像データサイズまで拡大され(ステップS104)、画像一時格納領域131の対応する画像データがワークエリアにおいて処理された画像データに置き換えられ(ステップS105)、処理はステップS106に移行する。   When the start of recording is instructed, the image data of the frame image is captured by the imaging unit 16 and stored in the temporary image storage area 131 of the RAM 13 (step S101). Next, the captured image data is read out to the work area of the RAM 13, and the detection information of the angle sensor 22 is referred to, and the captured image data is rotated based on the detection information (step S102). Specifically, the rotation processing is performed clockwise at the rotation angle detected by the angle sensor 22. After the rotation, the image data of the maximum rectangular aspect ratio of the display screen of the display unit 15 is cut out from the rotated image data (step S103), and the cut out image data is enlarged to the image data size before the cut out. In step S104, the corresponding image data in the temporary image storage area 131 is replaced with the image data processed in the work area (step S105), and the process proceeds to step S106.

録画スイッチ121が押下され録画停止が指示されるまで、ステップS101〜S105の処理が繰り返し実行される。ステップS101におけるフレーム画像の取り込みは、一定の時間間隔で行われる。録画スイッチ121が押下され録画停止が指示されると(ステップS106;YES)、RAM13の画像一時格納領域131に格納された一連のフレーム画像の画像データが1の動画ファイルとして記録部17の撮影画像記録領域171もしくは記録媒体18aに記録され(ステップS107)、本処理は終了する。   Until the recording switch 121 is pressed and the recording stop is instructed, the processes of steps S101 to S105 are repeatedly executed. The frame image capture in step S101 is performed at regular time intervals. When the recording switch 121 is pressed and an instruction to stop recording is given (step S106; YES), a series of frame image image data stored in the image temporary storage area 131 of the RAM 13 is taken as one moving image file and the captured image of the recording unit 17 is recorded. Recording is performed in the recording area 171 or the recording medium 18a (step S107), and this process ends.

上述の動画記録処理Dによれば、撮影時に角度センサ20により検出された電子機器200の筐体の傾斜角度、即ち、撮影角度に基づいて、各フレーム画像の画像データを回転処理し、回転された画像データを記録するので、電子カメラ200又は他の再生装置が画像の回転処理に対応していない場合であっても、画像データをそのまま再生すれば画像の水平方向位置を実際の水平方向に合わせることができ一連の動画像を見やすく再生することが可能となる。また、回転した画像データから表示画面のアスペクト比の最大矩形の画像を切り出し、切り出した画像をもとの画像データの大きさに拡大して記録するので、電子カメラ200で再生を行った際に、表示画面上に画像が表示されない部分がなくなり、見やすく再生することが可能となる。   According to the moving image recording process D described above, the image data of each frame image is rotated and rotated based on the tilt angle of the casing of the electronic device 200 detected by the angle sensor 20 at the time of shooting, that is, the shooting angle. Since the recorded image data is recorded, even if the electronic camera 200 or another playback device does not support image rotation processing, if the image data is played back as it is, the horizontal position of the image is set to the actual horizontal direction. A series of moving images can be easily reproduced and reproduced. In addition, since the image with the maximum aspect ratio of the display screen is cut out from the rotated image data, and the cut-out image is enlarged and recorded to the size of the original image data, the reproduction is performed with the electronic camera 200. Thus, there is no portion where no image is displayed on the display screen, and playback can be easily performed.

以上説明したように、電子カメラ100、200によれば、動画像の撮影時に電子カメラの筐体が基準状態に対して傾斜しても、動画像を再生する際に、画像の水平方向位置を実際の水平方向に合わせて見やすく再生することが可能となる。   As described above, according to the electronic cameras 100 and 200, when a moving image is reproduced, even if the casing of the electronic camera is tilted with respect to the reference state when the moving image is captured, the horizontal position of the image is set. It becomes possible to reproduce the video in an easy-to-view manner according to the actual horizontal direction.

なお、上記実施の形態における記述内容は、本発明に係る電子カメラ100、200の好適な一例であり、これに限定されるものではない。   In addition, the description content in the said embodiment is a suitable example of the electronic cameras 100 and 200 which concern on this invention, and is not limited to this.

例えば、上記実施の形態においては、動画像を撮影し記録する動画記録装置及び記録された動画像を再生する動画再生装置が一体となっている動画記録再生装置を例にとり説明したが、これらは別体となっていてもよく、動画記録装置において上述の動画記録処理を実施して記録された画像データを、別体の動画再生装置において上述の動画再生処理を実施して再生してもよい。   For example, in the above embodiment, a moving image recording apparatus that captures and records a moving image and a moving image recording apparatus that reproduces the recorded moving image are described as an example. The image data recorded by performing the above moving image recording process in the moving image recording apparatus may be reproduced by performing the above moving image reproduction process in a separate moving image reproducing apparatus. .

また、上記実施形態1、3においては、撮影時の電子カメラの筐体の縦横状態が変化したと認識された画像データのみに縦横フラグをセットする場合を例にとり説明したが、各画像データに対して縦横フラグをセットしてもよい。   In the first and third embodiments, the case where the vertical / horizontal flag is set only for image data recognized as having changed the vertical / horizontal state of the casing of the electronic camera at the time of shooting has been described as an example. On the other hand, a vertical / horizontal flag may be set.

また、上記実施形態1〜5においては、表示画面を横向きにして動画が再生されるものとしたが、縦向きにして再生する場合についても、本発明を適用することが可能である。   In the first to fifth embodiments, the moving image is reproduced with the display screen in the horizontal direction. However, the present invention can also be applied to the case where the moving image is reproduced in the vertical direction.

また、上記実施形態1〜3においては、動画記録処理において縦横センサ19からの検出情報が変化してから予め設定された基準時間その縦横状態が持続した場合に、その変化を縦横フラグに反映させることにより、こまかいぶれではなく、確実に縦横状態が変化した場合にのみ、画像の向きの変更を行うことを可能としたが、動画記録処理において縦横センサ19からの検出情報が変化する毎に縦横フラグを変化させてフレーム画像に対応付けて記録するようにし、動画再生装置において、縦横フラグの内容から、縦横状態が変化してから予め設定された基準時間内にもとの縦横状態に戻ることが示されている場合には、その縦横状態の変化に応じた回転角度の変更は行わないようにしてもよい。これにより、上述の実施形態1〜3と同様に、こまかいぶれではなく、確実に傾斜状態が変化した場合にのみ、画像の向きの変更を行うことが可能となり、効率的に画像の水平方向位置の補正を行うことが可能となる。   In the first to third embodiments, when the vertical / horizontal state is maintained for a preset reference time after the detection information from the vertical / horizontal sensor 19 is changed in the moving image recording process, the change is reflected in the vertical / horizontal flag. As a result, the orientation of the image can be changed only when the vertical / horizontal state is surely changed instead of a slight blur. However, every time the detection information from the vertical / horizontal sensor 19 changes in the moving image recording process, the vertical / horizontal direction is changed. The flag is changed so as to be recorded in association with the frame image. In the video playback device, the vertical / horizontal state is restored within the preset reference time after the vertical / horizontal state is changed from the content of the vertical / horizontal flag. Is indicated, the rotation angle may not be changed in accordance with the change in the vertical and horizontal states. Accordingly, as in the first to third embodiments, it is possible to change the orientation of the image only when the tilt state is surely changed, not the slight blurring, and the horizontal position of the image can be efficiently performed. Can be corrected.

また、上記実施の形態においては、動画ファイルのヘッダ情報において、フレームNO.に傾斜情報としての縦横フラグや角度情報を対応付けて記録することとしたが、撮影開始時からの経過時間に縦横フラグや角度情報を対応付けて記録するようにしてもよい。   In the above embodiment, in the header information of the moving image file, the frame No. The vertical and horizontal flags and the angle information as the tilt information are recorded in association with each other. However, the vertical and horizontal flags and the angle information may be recorded in association with the elapsed time from the start of photographing.

また、縦横センサ19として角度センサを用い、検出された回転角度が予め設定された基準角度を超えた場合に、電子カメラ100、200側で縦横状態の切り換えを認識するようにしてもよい。また、このとき、縦向きの状態から横向きの状態に切り換える場合と、横向きから縦向きに切り換える場合とで切り換える基準角度を変更するようにしてもよい。例えば、横向き状態を0度の基準状態とし、縦向き状態を90度として検出する場合、横向きから縦向きへの切り換えは回転角度が70度を超えた場合に検出し、縦向きから横向きへ戻すときの切り換えは、回転角度が30度を下回った場合に検出するようにする。これにより、こまかなぶれではなく、確実に縦横状態が変化した場合に、その変化を検出することが可能となる。   In addition, an angle sensor may be used as the vertical / horizontal sensor 19, and when the detected rotation angle exceeds a preset reference angle, the switching between the vertical and horizontal states may be recognized on the electronic cameras 100 and 200 side. At this time, the reference angle to be switched may be changed between when switching from the portrait orientation to the landscape orientation and when switching from landscape orientation to portrait orientation. For example, when the horizontal state is detected as a reference state of 0 degrees and the vertical state is detected as 90 degrees, switching from the horizontal direction to the vertical direction is detected when the rotation angle exceeds 70 degrees, and the vertical direction is returned to the horizontal direction. The change of time is detected when the rotation angle is less than 30 degrees. As a result, it is possible to detect the change when the vertical and horizontal states have been changed with certainty instead of a slight blur.

その他、電子カメラ100、200の細部構成及び細部動作に関しても、本発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of the electronic cameras 100 and 200 can be changed as appropriate without departing from the spirit of the present invention.

本発明に係る電子カメラ100の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the electronic camera 100 which concerns on this invention. 図1の撮像部16の詳細構成を示す図である。It is a figure which shows the detailed structure of the imaging part 16 of FIG. (a)は電子カメラ100、200の筐体を横向きにした状態を示す図、(b)は電子カメラ100、200の筐体を縦向きにした状態を示す図である。(A) is a figure which shows the state which turned the housing | casing of the electronic camera 100,200 sideways, (b) is a figure which shows the state which turned the housing | casing of the electronic camera 100,200 vertically. (a)は電子カメラ100、200の筐体を縦向きにした状態で撮影したときの撮影時の状態を示す図、(b)は(a)の状態で撮影したフレーム画像を図3(a)の横向き状態で再生した状態を示す図である。(A) is a figure which shows the state at the time of imaging | photography when image | photographing in the state which held the housing | casing of the electronic cameras 100 and 200 vertically, (b) is a frame image image | photographed in the state of (a). It is a figure which shows the state reproduced | regenerated in the horizontal state of (). 図1のCPU11により実行される動画記録処理Aを示すフローチャートである。It is a flowchart which shows the moving image recording process A performed by CPU11 of FIG. 縦横センサ19から出力される検出情報、縦横フラグ及び電子カメラ100の縦横状態の関係を示す図である。3 is a diagram illustrating a relationship between detection information output from a vertical / horizontal sensor 19, vertical / horizontal flags, and vertical / horizontal states of the electronic camera 100. FIG. (a)は、図5のステップS14で撮影画像記録領域171もしくは記録媒体18aに記録される動画ファイルのデータ格納例を示す図、(b)は、(a)のヘッダ情報の一例を示す図である。(A) is a figure which shows the example of data storage of the moving image file recorded on the picked-up image recording area 171 or the recording medium 18a by step S14 of FIG. 5, (b) is a figure which shows an example of the header information of (a). It is. 図1のCPU11により実行される動画再生処理Aを示すフローチャートである。It is a flowchart which shows the moving image reproduction process A performed by CPU11 of FIG. 図8のステップS23〜S25の処理過程を模式的に示す図である。It is a figure which shows typically the process of step S23-S25 of FIG. 図1のCPU11により実行される動画再生処理Bを示すフローチャートである。It is a flowchart which shows the moving image reproduction process B performed by CPU11 of FIG. 動画ファイルの各フレーム画像と、この動画ファイルを図10に示す動画再生処理Bを実行して再生した際の再生画像を模式的に示す図である。It is a figure which shows typically the reproduction | regeneration image at the time of reproducing each frame image of a moving image file, and this moving image file performing the moving image reproduction process B shown in FIG. 図1のCPU11により実行される動画記録処理Bを示すフローチャートである。It is a flowchart which shows the moving image recording process B performed by CPU11 of FIG. 本発明に係る電子カメラ200の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the electronic camera 200 which concerns on this invention. 図13のCPU11により実行される動画記録処理Cを示すフローチャートである。It is a flowchart which shows the moving image recording process C performed by CPU11 of FIG. 図13のCPU11により実行される動画再生処理Cを示すフローチャートである。It is a flowchart which shows the moving image reproduction process C performed by CPU11 of FIG. 図13のCPU11により実行される動画記録処理Dを示すフローチャートである。It is a flowchart which shows the moving image recording process D performed by CPU11 of FIG.

符号の説明Explanation of symbols

100、200 電子カメラ
11 CPU
12 入力部
121 録画スイッチ
122 再生スイッチ
13 RAM
131 画像一時格納領域
132 縦横状態格納部
133 ヘッダ情報領域
14 伝送制御部
15 表示部
16 撮像部
17 記録部
171 撮像画像記録領域
18 記録媒体駆動部
18a 記録媒体
19 縦横センサ
20 タイマ
21 バス
22 角度センサ
100, 200 Electronic camera 11 CPU
12 Input unit 121 Recording switch 122 Playback switch 13 RAM
131 Image temporary storage area 132 Vertical / horizontal state storage section 133 Header information area 14 Transmission control section 15 Display section 16 Imaging section 17 Recording section 171 Captured image recording area 18 Recording medium drive section 18a Recording medium 19 Vertical / horizontal sensor 20 Timer 21 Bus 22 Angle sensor

Claims (15)

動画像を撮影する撮影手段と、この撮像手段により撮影された動画像を記録する動画記録手段と、前記撮影された動画像を表示画面上に再生する再生手段とを備えた動画記録再生装置において、
前記動画記録再生装置の傾斜状態を検出する傾斜検出手段を備え、
前記動画記録手段は、前記動画像を構成する各フレーム画像の撮影時に前記傾斜検出手段により検出された該装置の傾斜状態を示す傾斜情報を前記各フレーム画像に対応付けて記録し、
前記再生手段は、前記各フレーム画像に対応する傾斜情報に基づいて、前記各フレーム画像を回転させることにより前記各フレーム画像の水平方向位置を補正して再生することを特徴とする動画記録再生装置。
In a moving picture recording / reproducing apparatus comprising photographing means for photographing moving images, moving picture recording means for recording moving pictures taken by the imaging means, and reproducing means for reproducing the photographed moving images on a display screen ,
Inclination detecting means for detecting the inclination state of the moving image recording / reproducing apparatus,
The moving image recording means records the tilt information indicating the tilt state of the device detected by the tilt detection means at the time of photographing each frame image constituting the moving image in association with each frame image,
The moving image recording / reproducing apparatus, wherein the reproduction means reproduces the frame image by correcting the horizontal position of the frame image by rotating the frame image based on the tilt information corresponding to the frame image. .
前記再生手段は、前記回転させたフレーム画像から前記表示画面のアスペクト比で切り出せる最大矩形の画像を切り出し、前記切り出した画像を前記表示画面のサイズに拡大して前記表示画面上に再生することを特徴とする請求項1に記載の動画記録再生装置。   The playback means cuts out a maximum rectangular image that can be cut out from the rotated frame image at an aspect ratio of the display screen, enlarges the cut-out image to the size of the display screen, and plays it on the display screen. The moving image recording / reproducing apparatus according to claim 1. 前記傾斜検出手段は、該装置の傾斜状態を縦又は横で検出する縦横センサであり、
前記傾斜情報は、該装置の縦横を示す縦横情報であり、
前記再生手段は、前記縦横情報が変化する時点より予め設定された基準時間前に再生するフレーム画像から回転を開始し、前記縦横情報が変化する時点のフレーム画像までの各フレーム画像の回転角度を段階的に変化させることを特徴とする請求項1又は2に記載の動画記録再生装置。
The tilt detection means is a vertical / horizontal sensor that detects the tilt state of the device vertically or horizontally,
The tilt information is vertical and horizontal information indicating the vertical and horizontal directions of the device,
The reproduction means starts rotation from a frame image to be reproduced before a reference time set in advance from the time when the aspect information changes, and sets the rotation angle of each frame image up to the frame image at the time when the aspect information changes. The moving image recording / reproducing apparatus according to claim 1, wherein the moving image recording / reproducing apparatus is changed stepwise.
前記傾斜検出手段は、該装置の傾斜状態を縦又は横で検出する縦横センサであり、
前記傾斜情報は、該装置の縦横を示す縦横情報であり、
前記動画記録手段は、前記縦横センサから検出された該装置の縦横の状態が変化してから予め設定された基準時間内にもとの縦横状態に戻った場合には、その間に撮影されたフレーム画像に対応付ける前記縦横情報の内容を変更しないことを特徴とする請求項1又は2に記載の動画記録再生装置。
The tilt detection means is a vertical / horizontal sensor that detects the tilt state of the device vertically or horizontally,
The tilt information is vertical and horizontal information indicating the vertical and horizontal directions of the device,
The moving image recording means, when the vertical / horizontal state of the apparatus detected by the vertical / horizontal sensor changes and returns to the original vertical / horizontal state within a preset reference time, the frame shot during that time The moving image recording / reproducing apparatus according to claim 1 or 2, wherein the content of the vertical / horizontal information associated with an image is not changed.
前記傾斜検出手段は、該装置の傾斜状態を縦又は横で検出する縦横センサであり、
前記傾斜情報は、該装置の縦横を示す縦横情報であり、
前記再生手段は、前記縦横情報の内容が、該装置の縦横状態が変化してから予め設定された基準時間内にもとの縦横状態に戻ったことを示している場合には、その縦横状態の変化に応じた回転角度の変更は行わないことを特徴とする請求項1又は2に記載動画記録再生装置。
The tilt detection means is a vertical / horizontal sensor that detects the tilt state of the device vertically or horizontally,
The tilt information is vertical and horizontal information indicating the vertical and horizontal directions of the device,
When the content of the vertical / horizontal information indicates that the vertical / horizontal state of the apparatus has returned to the original vertical / horizontal state within a preset reference time after the change of the vertical / horizontal state, 3. The moving image recording / reproducing apparatus according to claim 1, wherein the rotation angle is not changed in accordance with the change of the moving image.
前記傾斜検出手段は、該装置の傾きを角度で検出する角度センサであることを特徴とする請求項1又は2に記載の動画記録再生装置。   The moving image recording / reproducing apparatus according to claim 1, wherein the inclination detecting unit is an angle sensor that detects an inclination of the apparatus by an angle. 動画像を撮影する撮影手段と、この撮影手段により撮影された動画像を記録する動画記録手段とを備えた動画記録装置において、
前記動画記録装置の傾斜状態を検出する傾斜検出手段を備え、
前記動画記録手段は、前記動画像を構成する各フレーム画像の撮影時に前記傾斜検出手段により検出された該装置の傾斜状態に基づいて、前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して記録することを特徴とする動画記録装置。
In a moving picture recording apparatus comprising a photographing means for photographing a moving image and a moving picture recording means for recording a moving image photographed by the photographing means,
Inclination detecting means for detecting the inclination state of the moving image recording apparatus,
The moving image recording means rotates each frame image based on the inclination state of the device detected by the inclination detection means at the time of photographing each frame image constituting the moving image, thereby allowing each of the frame images in the frame image to be rotated. A moving image recording apparatus, wherein a horizontal position is corrected and recorded.
前記傾斜検出手段は、該装置の傾きを縦又は横で検出する縦横センサであり、
前記傾斜情報は、該装置の縦横を示す縦横情報であり、
前記動画記録手段は、前記縦横センサから検出された前記動画記録装置の縦横の状態が変化してから予め設定された基準時間内にもとの縦横状態に戻った場合には、その縦横状態の変化に応じた回転角度の変更は行わないことを特徴とする請求項7に記載の動画記録装置。
The tilt detection means is a vertical / horizontal sensor that detects the tilt of the apparatus in the vertical or horizontal direction,
The tilt information is vertical and horizontal information indicating the vertical and horizontal directions of the device,
The moving image recording means, when the vertical and horizontal state of the moving image recording apparatus detected by the vertical and horizontal sensor changes and returns to the original vertical and horizontal state within a preset reference time, The moving image recording apparatus according to claim 7, wherein the rotation angle is not changed according to the change.
動画像を表示画面上に再生する再生手段を備えた動画再生装置において、
前記再生手段は、前記動画像を構成する各フレーム画像に、そのフレーム画像の撮影時の動画記録装置の傾斜状態を示す傾斜情報が対応付けられている場合に、前記傾斜情報に基づいて前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して再生することを特徴とする動画再生装置。
In a moving image playback apparatus provided with playback means for playing back a moving image on a display screen,
The reproduction means, when the frame information constituting the moving image is associated with inclination information indicating the inclination state of the moving image recording apparatus at the time of capturing the frame image, based on the inclination information. An apparatus for reproducing a moving image, wherein a frame image is rotated to correct a horizontal position in each frame image for reproduction.
前記再生手段は、前記回転させたフレーム画像から前記表示画面のアスペクト比で切り出せる最大矩形の画像を切り出し、前記切り出した画像を前記表示画面のサイズに拡大して前記表示画面上に再生することを特徴とする請求項9に記載の動画再生装置。   The playback means cuts out a maximum rectangular image that can be cut out from the rotated frame image at an aspect ratio of the display screen, enlarges the cut-out image to the size of the display screen, and plays it on the display screen. The moving image reproducing apparatus according to claim 9. 前記傾斜情報は、前記動画記録装置の傾斜状態の縦又は横で示す縦横情報であり、
前記再生手段は、前記縦横情報が変化する時点より予め設定された基準時間前に再生するフレーム画像から回転を開始し、前記縦横情報が変化する時点のフレーム画像までの各フレーム画像の回転角度を段階的に変化させることを特徴とする請求項9又は10に記載の動画再生装置。
The tilt information is vertical / horizontal information indicating the vertical or horizontal of the tilt state of the video recording device,
The reproduction means starts rotation from a frame image to be reproduced before a reference time set in advance from the time when the aspect information changes, and sets the rotation angle of each frame image up to the frame image at the time when the aspect information changes. The moving image reproducing apparatus according to claim 9, wherein the moving image reproducing apparatus is changed step by step.
前記傾斜情報は、前記動画記録装置の傾斜状態を縦又は横で示す縦横情報であり、
前記再生手段は、前記縦横情報の内容が、前記縦横状態が変化してから予め設定された基準時間内にもとの縦横状態に戻ることを示している場合には、その縦横状態の変化に応じた回転角度の変更は行わないことを特徴とする請求項9又は10に記載の動画再生装置。
The tilt information is vertical / horizontal information indicating the tilt state of the moving image recording apparatus vertically or horizontally,
When the content of the vertical / horizontal information indicates that the vertical / horizontal state returns to the original vertical / horizontal state within a preset reference time after the vertical / horizontal state changes, the reproduction means changes to the vertical / horizontal state. 11. The moving image reproducing apparatus according to claim 9 or 10, wherein the rotation angle is not changed in response.
動画像を撮影して記録し、この記録された動画像を表示画面上に再生する動画記録再生装置を制御するためのコンピュータに、
動画像を構成する各フレーム画像の撮影時に、前記動画記録再生装置の筐体の傾斜状態を検出し、この検出された該装置の傾斜状態を示す傾斜情報を前記各フレーム画像に対応付けて記録する機能と、
前記各フレーム画像に対応する傾斜情報に基づいて前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して再生する機能と、
を実現させるためのプログラム。
A computer for controlling a moving image recording / playback apparatus that shoots and records a moving image and plays back the recorded moving image on a display screen.
At the time of shooting each frame image constituting the moving image, the tilt state of the casing of the moving image recording / reproducing apparatus is detected, and the tilt information indicating the detected tilt state of the apparatus is recorded in association with each frame image. Function to
A function of correcting and reproducing the horizontal position in each frame image by rotating each frame image based on the tilt information corresponding to each frame image;
A program to realize
動画像を撮影し記録する動画記録装置を制御するためのコンピュータに、
前記動画像を構成する各フレーム画像の撮影時に前記動画記録装置の筐体の傾斜状態を検出し、この検出された該装置の傾斜状態に基づいて前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して記録する機能を実現させるためのプログラム。
In a computer for controlling a video recording device that captures and records moving images,
The frame state is detected by detecting the tilt state of the casing of the moving image recording apparatus at the time of capturing the frame images constituting the moving image, and rotating the frame images based on the detected tilt state of the apparatus. A program for realizing a function of correcting and recording a horizontal position in an image.
動画像を表示画面上に再生する動画再生装置を制御するためのコンピュータに、
動画像を構成する各フレーム画像に、そのフレーム画像の撮影時の動画記録装置の傾斜状態を示す傾斜情報が対応付けられている場合に、前記傾斜情報に基づいて前記各フレーム画像を回転させることにより前記各フレーム画像中の水平方向位置を補正して再生する機能を実現させるためのプログラム。
A computer for controlling a video playback device that plays back moving images on a display screen.
When each frame image constituting the moving image is associated with inclination information indicating an inclination state of the moving image recording apparatus at the time of shooting the frame image, each frame image is rotated based on the inclination information. A program for realizing a function of correcting and reproducing the horizontal position in each frame image.
JP2005021672A 2005-01-28 2005-01-28 Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program Pending JP2006211378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005021672A JP2006211378A (en) 2005-01-28 2005-01-28 Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005021672A JP2006211378A (en) 2005-01-28 2005-01-28 Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program

Publications (1)

Publication Number Publication Date
JP2006211378A true JP2006211378A (en) 2006-08-10

Family

ID=36967732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005021672A Pending JP2006211378A (en) 2005-01-28 2005-01-28 Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program

Country Status (1)

Country Link
JP (1) JP2006211378A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8199207B2 (en) 2009-03-27 2012-06-12 Casio Computer Co., Ltd. Image recording apparatus, image tilt correction method, and recording medium storing image tilt correction program
JP2014042279A (en) * 2013-09-26 2014-03-06 Olympus Imaging Corp Display device, imaging system, display method, and display program
JP2014110556A (en) * 2012-12-03 2014-06-12 Canon Inc Video reproduction apparatus and control method thereof
US8830261B2 (en) 2011-03-25 2014-09-09 Brother Kogyo Kabushiki Kaisha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
JP2014230006A (en) * 2013-05-20 2014-12-08 オリンパス株式会社 Apparatus, system and method for imaging, and program
JP2015500580A (en) * 2011-11-28 2015-01-05 エーティーアイ・テクノロジーズ・ユーエルシーAti Technologies Ulc Method and apparatus for correcting video frame rotation
JP2017163611A (en) * 2017-06-12 2017-09-14 パナソニックIpマネジメント株式会社 Imaging apparatus
JP2018067964A (en) * 2014-05-15 2018-04-26 株式会社リコー File
US10498954B2 (en) 2014-07-29 2019-12-03 Panasonic Intellectual Property Management Co., Ltd. Imaging device which obtains still images from captured video

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8199207B2 (en) 2009-03-27 2012-06-12 Casio Computer Co., Ltd. Image recording apparatus, image tilt correction method, and recording medium storing image tilt correction program
US10146744B2 (en) 2011-03-25 2018-12-04 Brother Kogyo Kabushiki Kaisha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
US8830261B2 (en) 2011-03-25 2014-09-09 Brother Kogyo Kabushiki Kaisha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
US10528648B2 (en) 2011-03-25 2020-01-07 Brother Kogyo Kabushiki Kaisha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
US10706214B2 (en) 2011-03-25 2020-07-07 Brother Kogyo Kabushiki Kiasha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
US11106857B2 (en) 2011-03-25 2021-08-31 Brother Kogyo Kabushiki Kaisha Computer readable recording medium, information processing terminal device, and control method of information processing terminal device
JP2015500580A (en) * 2011-11-28 2015-01-05 エーティーアイ・テクノロジーズ・ユーエルシーAti Technologies Ulc Method and apparatus for correcting video frame rotation
JP2014110556A (en) * 2012-12-03 2014-06-12 Canon Inc Video reproduction apparatus and control method thereof
JP2014230006A (en) * 2013-05-20 2014-12-08 オリンパス株式会社 Apparatus, system and method for imaging, and program
US9210278B2 (en) 2013-05-20 2015-12-08 Olympus Corporation Image capturing device, image capturing system, image capturing method, and program device
JP2014042279A (en) * 2013-09-26 2014-03-06 Olympus Imaging Corp Display device, imaging system, display method, and display program
JP2018067964A (en) * 2014-05-15 2018-04-26 株式会社リコー File
US10498954B2 (en) 2014-07-29 2019-12-03 Panasonic Intellectual Property Management Co., Ltd. Imaging device which obtains still images from captured video
JP2017163611A (en) * 2017-06-12 2017-09-14 パナソニックIpマネジメント株式会社 Imaging apparatus

Similar Documents

Publication Publication Date Title
US8390717B2 (en) Imaging device, display control device, display device, printing control device, and printing device
JP4005098B2 (en) Imaging device, product package and semiconductor integrated circuit
JP4441882B2 (en) Imaging device, display control method, program
JP2006211378A (en) Motion picture recording and reproducing apparatus, motion picture recording apparatus, motion picture reproducing apparatus and program
EP2282313A1 (en) Image pickup apparatus, image pickup method, playback control apparatus, playback control method, and program
JP4479829B2 (en) Imaging apparatus and imaging method
TWI459126B (en) Image processing device capable of generating a wide-range image, image processing method and recording medium
US8854480B2 (en) Display control device, imaging device, and printing device
JP2007258989A (en) Digital camera, composition corrector, and composition correcting method
US20160330372A1 (en) Imaging device
JP2009225027A (en) Imaging apparatus, imaging control method, and program
JP2007049484A (en) Digital camera
KR20060102673A (en) Apparatus and method for photographing during video recording
JP3859459B2 (en) Imaging device
JP5126392B2 (en) REPRODUCTION CONTROL DEVICE, REPRODUCTION CONTROL METHOD, AND PROGRAM
US20110221914A1 (en) Electronic camera
JP4974829B2 (en) Imaging device
JP2011160412A (en) Imaging apparatus
JP2004248171A (en) Moving image recorder, moving image reproduction device, and moving image recording and reproducing device
JP2008005427A (en) Imaging apparatus and imaging method, and program
JP2012151708A (en) Imaging device
JP5228660B2 (en) Imaging device
JP2005236484A (en) Camera device and program
JP2008065851A (en) Information processing apparatus and recording medium
JP2008048152A (en) Moving picture processing apparatus, moving picture photographing apparatus and moving picture photographing program