JP6843564B2 - Display control device, its control method and program - Google Patents
Display control device, its control method and program Download PDFInfo
- Publication number
- JP6843564B2 JP6843564B2 JP2016179844A JP2016179844A JP6843564B2 JP 6843564 B2 JP6843564 B2 JP 6843564B2 JP 2016179844 A JP2016179844 A JP 2016179844A JP 2016179844 A JP2016179844 A JP 2016179844A JP 6843564 B2 JP6843564 B2 JP 6843564B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- posture
- image
- displayed
- display device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a three-dimensional [3D] space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
- Studio Devices (AREA)
Description
本発明は、表示制御装置、その制御方法、プログラムおよび記録媒体に関する。特に、装置の姿勢に基づいて行う制御に関する技術である。 The present invention relates to a display control device, a control method thereof, a program, and a recording medium. In particular, it is a technique related to control performed based on the posture of the device.
従来、姿勢検出手段を介して検出された姿勢情報に基づいて制御を行う撮像装置や表示装置が知られている。撮像装置では、測光評価、被写体検出の重み付けに変化を持たせたり、撮影姿勢を画像に関連付けて記録して再生時の回転表示の補助に用いたりしている。また、表示装置では、再生時の姿勢を検出して、画像の表示向きを変更して表示部に表示する。 Conventionally, there are known imaging devices and display devices that perform control based on posture information detected via a posture detecting means. In the image pickup apparatus, the photometric evaluation and the weighting of the subject detection are changed, and the shooting posture is recorded in association with the image and used to assist the rotation display at the time of reproduction. Further, the display device detects the posture at the time of reproduction, changes the display direction of the image, and displays the image on the display unit.
特許文献1には、再生時の装置の姿勢状態と、撮影画像データと共に記録された撮影時姿勢状態とが合致するか否かの結果に基づいて撮影画像データに画像回転処理を行い、撮影画像データを正しい方向で表示する画像処理装置が開示されている。 In Patent Document 1, the photographed image data is subjected to image rotation processing based on the result of whether or not the attitude state of the apparatus at the time of reproduction and the attitude state at the time of photographing recorded together with the photographed image data match, and the photographed image is subjected to image rotation processing. An image processing device that displays data in the correct direction is disclosed.
一方、使用者は装置の姿勢状態に関わらず、使用者が所望する表示向きで画像を閲覧したい場合がある。
特許文献2には、表示部と同じ側に設けられたカメラで使用者の顔画像を撮影して、使用者の顔の向きに合わせ、画像の向きを回転させて表示部に表示する携帯端末装置が開示されている。
特許文献3には、筐体の背面に配置された接触センサにより検知された筐体を保持する手の接触位置と、筐体の姿勢とに基づいて、画像の向きを回転させて表示部に表示する携帯端末が開示されている。
On the other hand, the user may want to view the image in the display orientation desired by the user regardless of the posture state of the device.
Patent Document 2 describes a mobile terminal that captures a user's face image with a camera provided on the same side as the display unit, rotates the orientation of the image according to the orientation of the user's face, and displays the image on the display unit. The device is disclosed.
In Patent Document 3, the orientation of the image is rotated on the display unit based on the contact position of the hand holding the housing detected by the contact sensor arranged on the back surface of the housing and the posture of the housing. The mobile terminal to be displayed is disclosed.
しかしながら、特許文献2に開示された携帯端末装置では、使用者を撮影するためのカメラが必要であると共に、画像を表示するときでもカメラを起動させなければ対応することができない。
また、特許文献3に開示された携帯端末では、特定のパターンで筐体を保持している場合でしか作用せず、様々な筐体の保持態様には対応することができない。
このように従来の技術では、使用者の所望する表示向きに画像に表示させることが容易ではないという問題があった。
However, the mobile terminal device disclosed in Patent Document 2 requires a camera for photographing the user, and even when displaying an image, it cannot be handled unless the camera is activated.
Further, the mobile terminal disclosed in Patent Document 3 works only when the housing is held in a specific pattern, and cannot correspond to various holding modes of the housing.
As described above, the conventional technique has a problem that it is not easy to display the image in the display direction desired by the user.
本発明は、上述したような問題点に鑑みてなされたものであり、使用者の所望する表示向きに表示対象を表示できるようにすることを目的とする。 The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to enable the display target to be displayed in the display direction desired by the user.
本発明は、表示手段と、前記表示手段に表示する表示対象を第1の表示対象から第2の表示対象に切り替える切替指示を受け付ける受付手段と、表示制御装置の姿勢を検出する姿勢検出手段と、前記表示手段に表示された表示対象の向きを前記姿勢検出手段で検出された姿勢に応じて変更するように制御する制御手段であって、前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで前記表示手段に表示するように制御し、前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされていない状態で前記表示制御装置が、第1の姿勢から、前記第1の姿勢と90度異なる第2の姿勢に変化した場合に、前記第1の表示対象を前記第1の向きと90度異なる第2の向きで表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第2の向きで表示するように制御し、前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされた状態で前記表示制御装置が前記第1の姿勢から前記第2の姿勢に変化した場合は、前記第1の表示対象の表示向きを前記第1の向きから変更せず、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで表示するように制御し、その後、特定の操作がされていない状態で前記表示制御装置が前記第2の姿勢から前記第1の姿勢に変化した場合は、前記第2の表示対象を前記第1の向きと90度異なり、前記第2の向きと180度異なる第3の向きで表示するように制御する制御手段とを有することを特徴とする。 The present invention includes a display means, a reception means for receiving a switching instruction for switching a display target to be displayed on the display means from a first display target to a second display target, and a posture detection means for detecting the posture of the display control device. , When the control means for controlling the orientation of the display target displayed on the display means to be changed according to the posture detected by the posture detection means, and the display control device is the first posture. When the first display target is displayed on the display means in the first direction with respect to the display means and the switching instruction is received in that state, the second display target is displayed in the first direction. When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and a specific operation is performed. When the display control device changes from the first posture to the second posture which is 90 degrees different from the first posture in the absence state, the first display target is 90 degrees from the first direction. When the display is performed in a different second direction and the switching instruction is received in that state, the second display target is controlled to be displayed in the second direction, and the display control device is in the first posture. In this case, the first display target is displayed on the display means in the first direction with respect to the display means, and the display control device changes from the first posture to the second posture in a state where a specific operation is performed. If the display direction of the first display target is not changed from the first direction and the switching instruction is received in that state, the second display target is displayed in the first direction. After that, when the display control device changes from the second posture to the first posture in a state where no specific operation is performed, the second display target is changed to the first posture. It is characterized by having a control means for controlling so as to display in a third orientation which is 90 degrees different from the orientation and 180 degrees different from the second orientation.
本発明によれば、使用者の所望する表示向きに表示対象を表示させることができる。 According to the present invention, the display target can be displayed in the display direction desired by the user.
以下、本発明に係る実施形態について図面に基づいて詳細に説明する。本実施形態では、表示制御装置を表示装置に適用する場合について説明する。ここで、表示装置は使用者が携帯可能な装置であって、例えばスマートフォン等の携帯電話端末である。
(第1の実施形態)
図1(a)は、表示装置100の概略構成を示す図である。
表示装置100は、制御部101、電源スイッチ102、センサ103、画像表示ボタン104、操作スイッチ105、メモリ106、記録媒体107、表示部108、タッチパネル109等を有する。
Hereinafter, embodiments according to the present invention will be described in detail with reference to the drawings. In this embodiment, a case where the display control device is applied to the display device will be described. Here, the display device is a device that can be carried by the user, and is, for example, a mobile phone terminal such as a smartphone.
(First Embodiment)
FIG. 1A is a diagram showing a schematic configuration of a display device 100.
The display device 100 includes a control unit 101, a power switch 102, a sensor 103, an image display button 104, an operation switch 105, a memory 106, a recording medium 107, a display unit 108, a touch panel 109, and the like.
制御部101は、例えばCPU(中央演算処理装置)であって、表示装置100全体を制御する。電源スイッチ102は、表示装置100の電源をオンにしたり、オフにしたりする場合に使用者により押下される。センサ103は、例えば加速度センサ、ジャイロセンサおよび地磁気センサの少なくとも何れか一つであって、表示装置100の姿勢を出力する。ここでは、センサ103は、表示装置100の縦横姿勢を出力したり、表示部108の表示面が上向きまたは下向きであるかを出力したりする。画像表示ボタン104は、表示部108に画像やメニュー画面を表示する場合に使用者により押下される。操作スイッチ105は、各種設定をする場合に使用者により押下される。 The control unit 101 is, for example, a CPU (Central Processing Unit) and controls the entire display device 100. The power switch 102 is pressed by the user when the power of the display device 100 is turned on or off. The sensor 103 is, for example, at least one of an acceleration sensor, a gyro sensor, and a geomagnetic sensor, and outputs the posture of the display device 100. Here, the sensor 103 outputs the vertical / horizontal posture of the display device 100, and outputs whether the display surface of the display unit 108 faces upward or downward. The image display button 104 is pressed by the user when displaying an image or a menu screen on the display unit 108. The operation switch 105 is pressed by the user when making various settings.
メモリ106は、例えばRAM等の揮発性メモリであって、表示する画像データ、文字、図形等を一時的に記憶したり、制御部101の演算結果を一時的に記憶したりする。記録媒体107は、例えば半導体メモリ等の不揮発性メモリであって、制御に必要なデータやプログラムを記録したり、画像データを記録したりする。記録媒体107は、記録部の一例であり、具体的にはEEPROM、フラッシュROMを用いることができる。なお、記録媒体107は、表示装置100に対して着脱可能であってもよい。表示部108は、例えばTFTであって、画像やメニュー画面等を表示する。 The memory 106 is, for example, a volatile memory such as a RAM, which temporarily stores image data, characters, figures, and the like to be displayed, and temporarily stores the calculation result of the control unit 101. The recording medium 107 is, for example, a non-volatile memory such as a semiconductor memory, and records data and programs necessary for control, and records image data. The recording medium 107 is an example of a recording unit, and specifically, an EEPROM and a flash ROM can be used. The recording medium 107 may be detachable from the display device 100. The display unit 108 is, for example, a TFT for displaying an image, a menu screen, or the like.
タッチパネル109は、表示部108の表示面上に配置され、使用者の指やペン等による表示部108に対する接触あるいは接近を検知する。タッチパネル109は、例えば抵抗膜方式や静電容量方式、表面弾性波方式、赤外線方式、電磁誘導方式、画像認識方式、光センサ方式等の様々な方式のうち何れかの方式を用いることができる。方式によって、タッチパネル109に対する接触があったことでタッチがあったと検知する方式や、タッチパネル109に対する指やペンの接近があったことでタッチがあったと検知する方式があるが、何れの方式であってもよい。 The touch panel 109 is arranged on the display surface of the display unit 108, and detects contact or approach to the display unit 108 by a user's finger, a pen, or the like. As the touch panel 109, any one of various methods such as a resistance film method, a capacitance method, a surface acoustic wave method, an infrared ray method, an electromagnetic induction method, an image recognition method, and an optical sensor method can be used. Depending on the method, there are a method of detecting that there is a touch due to contact with the touch panel 109 and a method of detecting that there is a touch due to the approach of a finger or a pen to the touch panel 109. You may.
制御部101は、タッチパネル109を介して使用者による以下の(a)〜(e)の操作および状態を判定する。
(a)タッチパネル109にタッチしていなかった指やペンが新たにタッチパネル109にタッチしたこと。すなわち、タッチの開始(タッチダウン(Touch−Down)と称する)。
(b)タッチパネル109を指やペンでタッチしている状態であること(タッチオン(Touch−On)と称する)。
(c)タッチパネル109を指やペンでタッチしたまま移動していること(タッチムーブ(Touch−Move)と称する)。
(d)タッチパネル109へタッチしていた指やペンを離したこと、すなわちタッチの終了(タッチアップ(Touch−Up)あるいはタッチの解除と称する)。
(e)タッチパネル109に何もタッチしていない状態であること(タッチオフ(Touch−Off)と称する)。
The control unit 101 determines the following operations and states (a) to (e) by the user via the touch panel 109.
(A) A finger or pen that has not touched the touch panel 109 newly touches the touch panel 109. That is, the start of touch (referred to as Touch-Down).
(B) The touch panel 109 is in a state of being touched with a finger or a pen (referred to as touch-on).
(C) The touch panel 109 is moved while being touched with a finger or a pen (referred to as Touch-Move).
(D) The finger or pen touching the touch panel 109 is released, that is, the end of the touch (referred to as touch-up or release of the touch).
(E) The touch panel 109 is not touched (referred to as touch-off).
上述した(a)〜(e)の操作および状態や、タッチパネル109上に指やペンがタッチしている座標位置は、内部バスを通じて制御部101に通知される。制御部101は、通知された情報に基づいてタッチパネル109上における使用者の操作を判定する。
なお、制御部101は、タッチダウンを検出すると、同時にタッチオンも検出する。また、制御部101は、タッチダウンの後、タッチアップを検出しない限り、通常はタッチオンを検出し続ける。また、制御部101は、タッチムーブを検出している状態では、タッチオンも検出する。また、制御部101は、タッチオンを検出していても、座標位置が移動していなければタッチムーブを検出しない。さらに、制御部101は、タッチしていた全ての指やペンのタッチアップを検出した後は、タッチオフを検出する。
The above-mentioned operations and states (a) to (e) and the coordinate position where the finger or pen is touching on the touch panel 109 are notified to the control unit 101 via the internal bus. The control unit 101 determines the operation of the user on the touch panel 109 based on the notified information.
When the control unit 101 detects a touchdown, it also detects a touch-on. Further, after the touchdown, the control unit 101 normally continues to detect the touch-on unless the touch-up is detected. The control unit 101 also detects touch-on while detecting touch move. Further, even if the control unit 101 detects the touch-on, the control unit 101 does not detect the touch move unless the coordinate position has moved. Further, the control unit 101 detects the touch-off after detecting the touch-up of all the fingers and pens that have been touched.
タッチムーブについて、制御部101は、タッチパネル109上で移動する指やペンの移動方向についても、座標位置の変化に基づいて、タッチパネル109上の垂直成分・水平成分毎に判定できる。また、制御部101は、タッチパネル109上をタッチダウンから一定のタッチムーブを経てタッチアップを検出したとき、ストロークを描いたと判定する。素早くストロークを描く操作をフリックと呼ぶ。フリックは、タッチパネル109上に指をタッチしたままある程度の距離だけ素早く動かして、そのまま離すといった操作であり、言い換えればタッチパネル109上を指ではじくように素早くなぞる操作である。制御部101は、所定距離以上を所定速度以上でタッチムーブしたことを検出し、そのままタッチアップ(タッチの解除)を検出すると、フリックが行なわれたと判定する。また、制御部101は、所定距離以上を所定速度未満でタッチムーブしたことを検出した場合には、ドラッグが行なわれたと判定する。 Regarding the touch move, the control unit 101 can also determine the moving direction of the finger or pen moving on the touch panel 109 for each vertical component and horizontal component on the touch panel 109 based on the change in the coordinate position. Further, when the control unit 101 detects a touch-up on the touch panel 109 after a constant touch move from the touch-down, it determines that the stroke has been drawn. The operation of drawing a stroke quickly is called flicking. Flicking is an operation of quickly moving a finger on the touch panel 109 by a certain distance and then releasing it as it is, in other words, an operation of quickly tracing the touch panel 109 as if flicking it with a finger. The control unit 101 detects that a touch move has been performed over a predetermined distance at a predetermined speed or higher, and detects a touch-up (release of touch) as it is, and determines that a flick has been performed. Further, when the control unit 101 detects that the touch move is performed over a predetermined distance at a speed lower than the predetermined speed, the control unit 101 determines that the drag has been performed.
図1(b)は、表示装置100の外観構成を示す図である。なお、図1(a)で上述した構成部材には同一の符号を付して、その説明を適宜省略する。
表示装置100は、中央に長方形の表示部108が位置し、表示部108の表示面のタッチを検出できるようにタッチパネル109が配置される。また、表示装置100は、右側に電源スイッチ102が配置され、表示部108の下側に操作スイッチ105が配置される。
また、表示装置100自体は外形が長辺と短辺からなる縦に長い長方形である。また、表示部108も同様に外形が長辺と短辺からなる長方形である。典型的には、図1(b)に示す表示装置100の姿勢を縦姿勢といい、図1(b)に示す状態から90°回転させた姿勢を横姿勢という。本実施形態では、表示装置100が縦姿勢の場合に正位置であるものとする。
FIG. 1B is a diagram showing an external configuration of the display device 100. The above-described components in FIG. 1A are designated by the same reference numerals, and the description thereof will be omitted as appropriate.
In the display device 100, a rectangular display unit 108 is located at the center, and a touch panel 109 is arranged so that a touch on the display surface of the display unit 108 can be detected. Further, in the display device 100, the power switch 102 is arranged on the right side, and the operation switch 105 is arranged on the lower side of the display unit 108.
Further, the display device 100 itself is a vertically long rectangle whose outer shape is composed of a long side and a short side. Similarly, the display unit 108 is also a rectangle whose outer shape is composed of a long side and a short side. Typically, the posture of the display device 100 shown in FIG. 1B is referred to as a vertical posture, and the posture rotated by 90 ° from the state shown in FIG. 1B is referred to as a horizontal posture. In the present embodiment, it is assumed that the display device 100 is in the normal position when it is in the vertical posture.
次に、センサ103が表示装置100の姿勢を出力する動作について説明する。ここでは、センサ103が3軸加速度センサである場合について説明する。
センサ103は、X軸、Y軸、Z軸の3つを出力する。ここでは、X軸が表示面と平行であって、かつ表示装置100の外形の短辺と平行な軸である。また、Y軸は表示面と平行であって、かつ表示装置100の外形の長辺と平行な軸である。また、Z軸は表示面と直交する軸、すなわちX軸およびY軸に直交する軸である。
Next, the operation in which the sensor 103 outputs the posture of the display device 100 will be described. Here, a case where the sensor 103 is a 3-axis acceleration sensor will be described.
The sensor 103 outputs three axes, the X-axis, the Y-axis, and the Z-axis. Here, the X-axis is parallel to the display surface and parallel to the short side of the outer shape of the display device 100. Further, the Y-axis is an axis parallel to the display surface and parallel to the long side of the outer shape of the display device 100. The Z-axis is an axis orthogonal to the display surface, that is, an axis orthogonal to the X-axis and the Y-axis.
図2は、センサ103の動作を説明するための図である。図2では、表示装置100の姿勢を変化させたときのセンサ103の出力を示している。ここでは、X軸、Y軸、Z軸を破線矢印で示し、破線矢印の長さが重力に対する最大レベルである「1」に設定されている。一方、センサ103のX軸、Y軸、Z軸の各出力は実線矢印で示し、実線矢印の長さが出力値に相当する。制御部101はセンサ103からの出力値に基づいて、表示装置100の姿勢を検出する。 FIG. 2 is a diagram for explaining the operation of the sensor 103. FIG. 2 shows the output of the sensor 103 when the posture of the display device 100 is changed. Here, the X-axis, Y-axis, and Z-axis are indicated by dashed arrows, and the length of the dashed arrows is set to "1", which is the maximum level with respect to gravity. On the other hand, each output of the X-axis, Y-axis, and Z-axis of the sensor 103 is indicated by a solid arrow, and the length of the solid arrow corresponds to the output value. The control unit 101 detects the posture of the display device 100 based on the output value from the sensor 103.
図2(a)は、表示装置100を縦姿勢にしたときのセンサ103の出力を示す図である。図2(a)に示すように、表示装置100が縦姿勢の場合にはY軸の出力値は略「−1」である。一方、X軸およびZ軸の出力値は略「0」である。制御部101はX軸〜Z軸の出力値から表示装置100が縦姿勢であると判定する。
図2(b)は、表示装置100の表示部108の表示面を下向きにしたときのセンサ103の出力を示す図である。図2(b)に示すように、表示面が下向きの場合にはZ軸の出力値が略「−1」である。一方、X軸およびY軸の出力値は略「0」である。なお、表示面が上向きの場合にはZ軸の出力値は略「1」となる。
図2(c)は、表示装置100を横姿勢(電源スイッチ102を下向き)にしたときのセンサ103の出力を示す図である。図2(c)に示すように、表示装置100が横姿勢の場合にはX軸の出力値が略「1」である。一方、Y軸およびZ軸の出力値は「0」に近い値である。制御部101はX軸〜Z軸の出力値から表示装置100が横姿勢であると判定する。なお、電源スイッチ102が上向きの場合にはX軸の出力値は略「−1」となる。
FIG. 2A is a diagram showing the output of the sensor 103 when the display device 100 is in the vertical posture. As shown in FIG. 2A, when the display device 100 is in the vertical posture, the output value on the Y-axis is approximately “-1”. On the other hand, the output values of the X-axis and the Z-axis are approximately "0". The control unit 101 determines that the display device 100 is in the vertical posture from the output values of the X-axis to the Z-axis.
FIG. 2B is a diagram showing the output of the sensor 103 when the display surface of the display unit 108 of the display device 100 is turned downward. As shown in FIG. 2B, when the display surface faces downward, the output value of the Z axis is approximately “-1”. On the other hand, the output values of the X-axis and the Y-axis are approximately "0". When the display surface is facing upward, the output value of the Z axis is approximately "1".
FIG. 2C is a diagram showing the output of the sensor 103 when the display device 100 is in the horizontal posture (the power switch 102 is downward). As shown in FIG. 2C, when the display device 100 is in the horizontal posture, the output value on the X-axis is approximately “1”. On the other hand, the output values of the Y-axis and the Z-axis are close to "0". The control unit 101 determines that the display device 100 is in the horizontal posture from the output values of the X-axis to the Z-axis. When the power switch 102 points upward, the output value of the X-axis is approximately "-1".
次に、表示装置100の表示制御について図3のフローチャートを参照して説明する。図3に示すフローチャートは、制御部101が記録媒体107に記録されたプログラムをメモリ106に展開して実行することで実現される。また、図3のフローチャートは、記録媒体107に記録された画像を表示部108に表示する指示に応じて開始される。なお、本実施形態では、記録媒体107に記録された複数の画像のうち一つの画像を表示する場合について説明する。 Next, the display control of the display device 100 will be described with reference to the flowchart of FIG. The flowchart shown in FIG. 3 is realized by the control unit 101 expanding the program recorded on the recording medium 107 into the memory 106 and executing the program. Further, the flowchart of FIG. 3 is started in response to an instruction to display the image recorded on the recording medium 107 on the display unit 108. In this embodiment, a case where one of a plurality of images recorded on the recording medium 107 is displayed will be described.
S301では、制御部101はセンサ103の出力に基づいて表示装置100の姿勢を検出する。この処理は、姿勢検出手段による処理の一例に対応する。ここでは、制御部101は表示装置100が縦姿勢であるか横姿勢であるかを検出し、検出した姿勢に応じた姿勢フラグaphvを姿勢情報としてメモリ106に記憶する。
具体的には、制御部101はセンサ103によるY軸の出力値の絶対値がX軸の出力値の絶対値よりも大きい場合、表示装置100が縦姿勢であると判定する。この場合、制御部101は姿勢フラグaphvを、縦姿勢であることを示す「0」にしてメモリ106に記憶する。
一方、制御部101は、センサ103によるY軸の出力値の絶対値がX軸の出力値の絶対値よりも小さい場合、表示装置100が横姿勢であると判定する。この場合、制御部101は姿勢フラグaphvを、横姿勢であることを示す「1」にしてメモリ106に記憶する。
In S301, the control unit 101 detects the posture of the display device 100 based on the output of the sensor 103. This process corresponds to an example of the process by the posture detecting means. Here, the control unit 101 detects whether the display device 100 is in the vertical posture or the horizontal posture, and stores the posture flag aphv corresponding to the detected posture in the memory 106 as posture information.
Specifically, when the absolute value of the Y-axis output value by the sensor 103 is larger than the absolute value of the X-axis output value, the control unit 101 determines that the display device 100 is in the vertical posture. In this case, the control unit 101 sets the posture flag aphv to “0” indicating that the posture is vertical, and stores the posture flag in the memory 106.
On the other hand, when the absolute value of the Y-axis output value by the sensor 103 is smaller than the absolute value of the X-axis output value, the control unit 101 determines that the display device 100 is in the horizontal posture. In this case, the control unit 101 sets the posture flag aphv to "1" indicating that the posture is horizontal, and stores the posture flag in the memory 106.
S302では、制御部101は記録媒体107から、表示する画像を読み出しメモリ106に記憶すると共に、画像に関連付けられた画像情報(属性情報)を読み出す。ここでは、制御部101は読み出した画像情報に含まれる縦横情報(姿勢情報)が縦方向であるか横方向であるかを検出する。次に、制御部101は縦横情報に応じた縦横表示フラグimghvをメモリ106に記憶する。
具体的には、制御部101は縦横情報が縦方向である場合、縦横表示フラグimghvを「0」にして記憶する。一方、制御部101は縦横情報が横方向である場合、縦横表示フラグimghvを「1」にして記憶する。ここで、図4(a)に示すように画像が横を向いている場合には横方向の縦横情報が関連付けられ、図5(a)に示すように画像が縦を向いている場合には縦方向の縦横情報が関連付けられている。
In S302, the control unit 101 reads out the image to be displayed from the recording medium 107 in the reading memory 106, and also reads out the image information (attribute information) associated with the image. Here, the control unit 101 detects whether the vertical / horizontal information (posture information) included in the read image information is in the vertical direction or the horizontal direction. Next, the control unit 101 stores the vertical / horizontal display flag imghv according to the vertical / horizontal information in the memory 106.
Specifically, when the vertical / horizontal information is in the vertical direction, the control unit 101 sets the vertical / horizontal display flag imghv to “0” and stores the information. On the other hand, when the vertical / horizontal information is in the horizontal direction, the control unit 101 sets the vertical / horizontal display flag imghv to “1” and stores the information. Here, when the image is oriented horizontally as shown in FIG. 4 (a), the vertical and horizontal information in the horizontal direction is associated, and when the image is oriented vertically as shown in FIG. 5 (a), the vertical and horizontal information in the horizontal direction is associated. Vertical and horizontal information is associated.
S303では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とを比較して同一であるか否かを判定する。値が異なる場合にはS304に進み、同一の場合にはS305に進む。
S304では、制御部101は画像の表示向きを変更するために画像を90°回転させてメモリ106に記憶する。例えば、制御部101は画像データを90°回転させるように演算することで、画像を90°回転させることができる。なお、時計回りに90°回転させるか、反時計回りに90°回転させるかは、センサ103で検出している表示装置100の姿勢に応じて異なる。すなわち、正位置に対して表示装置100が時計回りに90°回転する方向であれば画像データを反時計回りに90°回転させ、正位置に対して表示装置100が反時計回りに90°回転する方向であれば画像データを時計回りに90°回転させる。以下、90°回転という場合は、このように表示装置100の姿勢に応じて異なるものとする。
In S303, the control unit 101 compares the value of the posture flag aphv with the value of the vertical / horizontal display flag imghv, and determines whether or not they are the same. If the values are different, the process proceeds to S304, and if they are the same, the process proceeds to S305.
In S304, the control unit 101 rotates the image by 90 ° and stores it in the memory 106 in order to change the display orientation of the image. For example, the control unit 101 can rotate the image by 90 ° by calculating to rotate the image data by 90 °. Whether to rotate 90 ° clockwise or 90 ° counterclockwise depends on the posture of the display device 100 detected by the sensor 103. That is, if the display device 100 rotates 90 ° clockwise with respect to the normal position, the image data is rotated 90 ° counterclockwise, and the display device 100 rotates 90 ° counterclockwise with respect to the normal position. If the direction is to be used, the image data is rotated 90 ° clockwise. Hereinafter, the case of 90 ° rotation is assumed to be different depending on the posture of the display device 100 in this way.
S305では、制御部101はメモリ106に記憶した画像を表示部108に表示する。
ここで、具体的にS301〜S305の処理を経て、表示部108に表示される画像について説明する。
In S305, the control unit 101 displays the image stored in the memory 106 on the display unit 108.
Here, the image displayed on the display unit 108 after the specific processes S301 to S305 will be described.
図4(a)は、横方向の縦横情報が関連付けられた画像である。
まず、図4(b)に示すように表示装置100が横姿勢であるとする。この場合、S301では、制御部101は表示装置100が横姿勢であることを検出し、姿勢フラグaphvを「1」にして記憶する。S302では、制御部101は図4(a)の画像の縦横情報が横方向であることを検出し、縦横表示フラグimghvを「1」にして記憶する。S303では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とが同一であると判定し、S305に進む。S305では、制御部101は画像を回転させることなく、方向を合わせるようにそのまま表示部108に表示する。したがって、図4(b)に示すように、横姿勢である表示装置100に対して、横方向の画像が表示される。
FIG. 4A is an image associated with vertical and horizontal information in the horizontal direction.
First, it is assumed that the display device 100 is in the horizontal posture as shown in FIG. 4 (b). In this case, in S301, the control unit 101 detects that the display device 100 is in the horizontal posture, sets the posture flag aphv to "1", and stores the display device 100. In S302, the control unit 101 detects that the vertical / horizontal information of the image of FIG. 4A is in the horizontal direction, sets the vertical / horizontal display flag imghv to “1”, and stores the information. In S303, the control unit 101 determines that the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are the same, and proceeds to S305. In S305, the control unit 101 displays the image on the display unit 108 as it is so as to match the direction without rotating the image. Therefore, as shown in FIG. 4B, an image in the horizontal direction is displayed on the display device 100 in the horizontal posture.
次に、図4(c)に示すように表示装置100が縦姿勢であるとする。この場合、S301では、制御部101は表示装置100が縦姿勢であることを検出し、姿勢フラグaphvを「0」にして記憶する。S302では、制御部101は図4(a)の画像の縦横情報が横方向であることを検出し、縦横表示フラグimghvを「1」にして記憶する。S303では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とが異なると判定し、S304に進む。S304では、制御部101は画像を90°回転させ、S305では制御部101は回転させた画像を表示部108に表示する。したがって、図4(c)に示すように、縦姿勢である表示装置100に対して、横方向の画像が図4(b)と比べて90°回転させた画像として表示される。
このように、表示装置100が縦姿勢および横姿勢の何れであっても、使用者が所望する表示向きに画像が表示される。
Next, it is assumed that the display device 100 is in the vertical posture as shown in FIG. 4 (c). In this case, in S301, the control unit 101 detects that the display device 100 is in the vertical posture, sets the posture flag aphv to “0”, and stores the display device 100. In S302, the control unit 101 detects that the vertical / horizontal information of the image of FIG. 4A is in the horizontal direction, sets the vertical / horizontal display flag imghv to “1”, and stores the information. In S303, the control unit 101 determines that the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are different, and proceeds to S304. In S304, the control unit 101 rotates the image by 90 °, and in S305, the control unit 101 displays the rotated image on the display unit 108. Therefore, as shown in FIG. 4 (c), the image in the horizontal direction is displayed as an image rotated by 90 ° as compared with FIG. 4 (b) with respect to the display device 100 in the vertical posture.
In this way, the image is displayed in the display orientation desired by the user regardless of whether the display device 100 is in the vertical posture or the horizontal posture.
一方、図5(a)は縦横情報として本来、図4(a)のように横方向であるはずが、誤って縦方向が関連付けられた画像である。
まず、図5(b)に示すように表示装置100が縦姿勢であるとする。この場合、S301、S302を経て、S303では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とが共に「0」で同一であると判定し、S305に進む。S305では、制御部101は画像を回転させることなく、方向を合わせるようにそのまま表示部108に表示する。したがって、図5(b)に示すように、縦姿勢である表示装置100に対して、縦方向の画像が表示される。
On the other hand, FIG. 5A is an image in which the vertical and horizontal directions are erroneously associated with each other, although the vertical and horizontal information should originally be in the horizontal direction as shown in FIG. 4A.
First, it is assumed that the display device 100 is in the vertical posture as shown in FIG. 5 (b). In this case, through S301 and S302, in S303, the control unit 101 determines that the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are both "0" and the same, and proceeds to S305. In S305, the control unit 101 displays the image on the display unit 108 as it is so as to match the direction without rotating the image. Therefore, as shown in FIG. 5B, an image in the vertical direction is displayed on the display device 100 in the vertical posture.
次に、図5(c)に示すように表示装置100が横姿勢であるとする。この場合、S301、S302を経て、S303では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とが異なると判定し、S304に進む。S304では制御部101は画像を90°回転させ、S305では制御部101は回転させた画像を表示部108に表示する。したがって、図5(c)に示すように、横姿勢である表示装置100に対して、縦方向の画像が図5(b)と比べて90°回転させた画像として表示される。
このように、画像に誤った縦横情報が関連付けられているために、表示装置100が縦姿勢または横姿勢であっても、使用者が所望する表示向きに画像が表示されない。
Next, it is assumed that the display device 100 is in the horizontal posture as shown in FIG. 5 (c). In this case, after passing through S301 and S302, in S303, the control unit 101 determines that the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are different, and proceeds to S304. In S304, the control unit 101 rotates the image by 90 °, and in S305, the control unit 101 displays the rotated image on the display unit 108. Therefore, as shown in FIG. 5 (c), the image in the vertical direction is displayed as an image rotated by 90 ° as compared with FIG. 5 (b) with respect to the display device 100 in the horizontal posture.
As described above, since the image is associated with erroneous vertical and horizontal information, the image is not displayed in the display orientation desired by the user even if the display device 100 is in the vertical or horizontal posture.
次に、図3のフローチャートのS306以降において、制御部101は使用者が所望する表示向きの画像になるように表示を制御する。S306以降の処理では、時間と共に表示装置100の姿勢に変化がないかを監視し続け、ループを繰り返す。
S306では、制御部101は姿勢フラグaphvの値を、過去の表示装置100の姿勢を示す過去姿勢フラグaphvoldに代入する。
S307では、制御部101は表示装置100の姿勢を検出して、検出した姿勢に応じた姿勢フラグaphvに逐次、更新する。
Next, in S306 and subsequent steps of the flowchart of FIG. 3, the control unit 101 controls the display so that the image has the display orientation desired by the user. In the processing after S306, it continues to monitor whether the posture of the display device 100 changes with time, and repeats the loop.
In S306, the control unit 101 substitutes the value of the posture flag aphv into the past posture flag aphold indicating the posture of the past display device 100.
In S307, the control unit 101 detects the posture of the display device 100 and sequentially updates the posture flag aphv according to the detected posture.
S308では、制御部101は表示装置100の姿勢が変化したか否かを判定する。具体的には、制御部101は過去姿勢フラグaphvoldと姿勢フラグaphvとの値を比較して同一であるか否かを判定する。値が同一の場合にはS316に進み、制御部101は表示を継続するか否かを判定し、継続する場合にはS306に戻り、画像の表示を継続する。一方、値が異なる場合、すなわち表示装置100が縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢に変化した場合にはS309に進む。 In S308, the control unit 101 determines whether or not the posture of the display device 100 has changed. Specifically, the control unit 101 compares the values of the past attitude flag aphold and the attitude flag aphv and determines whether or not they are the same. If the values are the same, the process proceeds to S316, the control unit 101 determines whether or not to continue the display, and if it continues, returns to S306 to continue displaying the image. On the other hand, when the values are different, that is, when the display device 100 changes from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture, the process proceeds to S309.
S309では、制御部101はタッチパネル109の状態を検出する。具体的には、制御部101はタッチパネル109からの通知に基づいてタッチオン、タッチオフ等を検出する。この処理は、タッチ検出手段による処理の一例に対応する。制御部101はタッチオンを検出した場合には変数tchを「1」とし、タッチオンでない(タッチオフ)の場合には変数tchを「0」として、メモリ106に記憶する。なお、制御部101がタッチオンを検出したということは、以前にタッチダウンを検出しており、S308において姿勢の変化を判定するときにはタッチされた状態であった、すなわち、姿勢の変化前からタッチされたままであったことを示している。 In S309, the control unit 101 detects the state of the touch panel 109. Specifically, the control unit 101 detects touch-on, touch-off, and the like based on the notification from the touch panel 109. This process corresponds to an example of the process by the touch detection means. When the control unit 101 detects touch-on, the variable tch is set to "1", and when it is not touch-on (touch-off), the variable tch is set to "0" and stored in the memory 106. The fact that the control unit 101 detected the touch-on means that the touchdown was detected before, and it was in the touched state when determining the change in the posture in S308, that is, it was touched before the change in the posture. It shows that it remained.
S310では、制御部101はタッチオンを検出しているか否かを判定する。具体的には、制御部101は変数tchが「1」であるか否かを判定する。すなわち、ここでは、表示装置100が縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢に変化したときにタッチパネル109に対してタッチオンが行われているか否かが判定される。タッチオンを検出している場合にはS311に進み、タッチオンを検出していない場合にはS313に進む。 In S310, the control unit 101 determines whether or not touch-on is detected. Specifically, the control unit 101 determines whether or not the variable tch is "1". That is, here, it is determined whether or not the touch panel 109 is touched on when the display device 100 changes from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture. If touch-on is detected, the process proceeds to S311. If touch-on is not detected, the process proceeds to S313.
S311では、制御部101は画像の縦横情報を変更する。具体的には、制御部101はメモリ106に記憶した、画像の縦横表示フラグimghvが「1」であれば「0」にし、縦横表示フラグimghvが「0」であれば「1」にする。
S312では、制御部101は変更した縦横表示フラグimghvを更新して、メモリ106に記憶する。
S313では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とを比較して同一であるか否かを判定する。異なる場合にはS314に進み、同一の場合にはS315に進む。なお、S312からS313に進んだ場合には、縦横表示フラグimghvの値はS311において変更された縦横表示フラグである。
S314では、制御部101は画像の表示向きを変更するために画像を90°回転させてメモリ106に記憶する。
In S311 the control unit 101 changes the vertical and horizontal information of the image. Specifically, the control unit 101 sets “0” if the vertical / horizontal display flag imghv of the image stored in the memory 106 is “1”, and sets it to “1” if the vertical / horizontal display flag imghv is “0”.
In S312, the control unit 101 updates the changed vertical / horizontal display flag imghv and stores it in the memory 106.
In S313, the control unit 101 compares the value of the posture flag aphv with the value of the vertical / horizontal display flag imghv, and determines whether or not they are the same. If they are different, the process proceeds to S314, and if they are the same, the process proceeds to S315. In the case of proceeding from S312 to S313, the value of the vertical / horizontal display flag imghv is the vertical / horizontal display flag changed in S311.
In S314, the control unit 101 rotates the image by 90 ° and stores it in the memory 106 in order to change the display orientation of the image.
S315では、制御部101はメモリ106に記憶した画像を表示部108に表示する。この処理は、制御手段による処理の一例に対応する。
S316では、制御部101は表示を継続するか否かを判定する。具体的には、制御部101は使用者による画像表示ボタン104を介した操作により、画像を表示しない指示を受け付けたか否かを判定する。表示を継続する場合にはS306に進み、表示を継続しない場合にはS317に進む。
In S315, the control unit 101 displays the image stored in the memory 106 on the display unit 108. This process corresponds to an example of process by the control means.
In S316, the control unit 101 determines whether or not to continue the display. Specifically, the control unit 101 determines whether or not an instruction not to display an image has been received by an operation by the user via the image display button 104. If the display is to be continued, the process proceeds to S306, and if the display is not to be continued, the process proceeds to S317.
ここで、姿勢の変化を検出したときにタッチオンを検出している場合と、検出していない場合とについて説明する。
制御部101が表示装置100の姿勢の変化を検出したときにタッチオンを検出していない場合にはS306〜S310を経て、S313、S314、S315に進む。この場合、表示装置100の姿勢の変化に応じて表示装置100に対する画像の表示向きが変更して表示される。
一方、制御部101が表示装置100の姿勢の変化を検出したときにタッチオンを検出している場合にはS306〜S310、S311、S312を経て、S313、S315に進む。この場合、表示装置100の姿勢の変化に応じて表示装置100に対する画像の表示向きが変更されないように表示される。
Here, a case where the touch-on is detected when the change in the posture is detected and a case where the touch-on is not detected will be described.
If the control unit 101 does not detect the touch-on when the change in the posture of the display device 100 is detected, the process proceeds to S313, S314, and S315 via S306 to S310. In this case, the display orientation of the image with respect to the display device 100 is changed and displayed according to the change in the posture of the display device 100.
On the other hand, if touch-on is detected when the control unit 101 detects a change in the posture of the display device 100, the process proceeds to S313 and S315 via S306 to S310, S311 and S312. In this case, the display orientation of the image with respect to the display device 100 is not changed according to the change in the posture of the display device 100.
ここで、具体的にS306〜S310、S311、S312を経て、S313、S315の処理を経て、表示部108に表示される画像の一例について説明する。
図6(a)は、上述した図5(b)と同じ状態である。すなわち、図5(b)に示す画像は、誤って縦方向の縦横情報が関連付けられた画像であり、使用者の所望する表示向きに画像が表示されていない。なお、誤った縦横情報が関連付けられた画像に限られず、縦横情報自体が関連付けられていない画像であってもよい。
ここで、S305によって表示部108に画像が表示された状態では、メモリ106には姿勢フラグaphvが「0」、縦横表示フラグimghvが「0」として記憶されている。このまま、表示装置100の姿勢が変化しない場合には、S306において過去姿勢フラグaphvoldに「0」が記憶されるので、S308の姿勢変化の判定においてS316に進むために、画像の表示向きは変更されない。
Here, an example of an image displayed on the display unit 108 will be specifically described through the processes of S306 to S310, S311 and S312, and the processes of S313 and S315.
FIG. 6A is the same state as in FIG. 5B described above. That is, the image shown in FIG. 5B is an image in which vertical and horizontal information in the vertical direction is erroneously associated with the image, and the image is not displayed in the display direction desired by the user. The image is not limited to the image to which the incorrect vertical / horizontal information is associated, and may be an image to which the vertical / horizontal information itself is not associated.
Here, in the state where the image is displayed on the display unit 108 by S305, the posture flag aphv is stored as “0” and the vertical / horizontal display flag imghv is stored as “0” in the memory 106. If the posture of the display device 100 does not change as it is, “0” is stored in the past posture flag aphvolt in S306, so that the display orientation of the image is not changed in order to proceed to S316 in the determination of the posture change in S308. ..
一方、図6(b)、図6(c)、図6(d)に示すように、使用者がタッチパネル109をタッチしたまま、表示装置100を縦姿勢から横姿勢に変化させたものとする。この場合、S307では、制御部101は姿勢フラグaphvを「0」から「1」に更新する。S308では、制御部101は過去姿勢フラグaphvoldと姿勢フラグaphvとの値が異なると判定することから、S309に進む。S309では、制御部101は使用者によるタッチパネル109のタッチオンを検出することから変数tchを「1」にする。S310では、制御部101は変数tchが「1」であると判定することから、S311に進む。S311、S312では、制御部101は縦横表示フラグimghvを「0」から「1」にすることで縦横情報を変更し、メモリ106に更新する。 On the other hand, as shown in FIGS. 6 (b), 6 (c), and 6 (d), it is assumed that the display device 100 is changed from the vertical posture to the horizontal posture while the user touches the touch panel 109. .. In this case, in S307, the control unit 101 updates the attitude flag aphv from "0" to "1". In S308, since the control unit 101 determines that the values of the past attitude flag aphold and the attitude flag aphv are different, the process proceeds to S309. In S309, the control unit 101 detects the touch-on of the touch panel 109 by the user, so that the variable tch is set to “1”. In S310, the control unit 101 determines that the variable tch is "1", so the process proceeds to S311. In S311 and S312, the control unit 101 changes the vertical and horizontal information by changing the vertical and horizontal display flag imghv from "0" to "1", and updates the memory 106.
S313では、制御部101はそれぞれ変更された、姿勢フラグaphvが「1」、縦横表示フラグimghvが「1」であり、値が同一であると判定することから、S315に進む。S315では、制御部101は横姿勢の表示装置100に対して方向をあわせるように横方向の画像を表示する。すなわち、図6(b)の画像と図6(d)の画像とを比べると、表示装置100に対する画像の表示向きは変更されない。したがって、誤った縦横情報が関連付けられた画像であっても、使用者がタッチパネル109をタッチオンしながら表示装置100を縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢に変化させることで、使用者の所望する表示向きに画像を表示される。 In S313, the control unit 101 determines that the attitude flag aphv is "1" and the vertical / horizontal display flag imghv is "1", and the values are the same, so the process proceeds to S315. In S315, the control unit 101 displays a horizontal image so as to align the direction with respect to the horizontal posture display device 100. That is, when the image of FIG. 6B and the image of FIG. 6D are compared, the display orientation of the image with respect to the display device 100 is not changed. Therefore, even if the image is associated with erroneous vertical and horizontal information, the user changes the display device 100 from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture while touching on the touch panel 109. The image is displayed in the desired display orientation.
次に、図6(e)に示すように、使用者がタッチパネル109から指を放し、タッチオフを検出した場合を想定する。図6(d)の状態から使用者がタッチパネル109から指を放し(タッチアップし)、図6(e)に示す通り姿勢で表示装置100を保持した場合、表示装置100の姿勢はタッチアップ前から変わらない。この場合には、S316からS306,S307を経由して、S308でYesと判定され、S316へと進むループをする。従って回転処理を行うS314は経由しないため、制御部101は図6(e)に示すように、図6(d)の画像の表示向きを維持したまま表示し、画像の表示向きを変更しない。その後使用者がタッチパネル109をタッチせずに、表示装置100の姿勢を変更するように保持の仕方を変更した場合は、S308でNoと判定される。使用者はタッチパネル109をタッチしていないのでS310では、制御部101はタッチオンを検出していないと判定し、S313に進む。ここでは、縦横表示フラグimghvの値は更新されたまま、つまり「1」のままであり、aphvは姿勢変化があったため「0」であることから、S313において制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とが同一でないと判定する。したがって、S314を経由し、S315では、制御部101は図4(c)のように表示される。このように、タッチして表示装置100を回転させてタッチを離した後は、表示装置100が縦姿勢および横姿勢の何れであっても、使用者が所望する表示向きに画像が表示される。
なお、ここでは、誤った縦横情報の画像を表示する場合について説明したが、正しい縦横情報の画像でも、同様に処理される。また、S306〜S315の処理において、表示装置100の姿勢の変化を伴わずに、使用者がタッチパネル109を単にタッチしたに過ぎない場合には、S308からS309に進まないために、画像の表示向きの制御は行われない。
Next, as shown in FIG. 6E, it is assumed that the user releases the finger from the touch panel 109 and detects the touch-off. When the user releases (touches up) the touch panel 109 from the state of FIG. 6 (d) and holds the display device 100 in the posture as shown in FIG. 6 (e), the posture of the display device 100 is before touch-up. It doesn't change from. In this case, it is determined to be Yes in S308 via S316 to S306 and S307, and a loop is performed to proceed to S316. Therefore, since S314 that performs the rotation process is not passed through, the control unit 101 displays the image while maintaining the display orientation of the image of FIG. 6 (d) as shown in FIG. 6 (e), and does not change the display orientation of the image. After that, when the user changes the holding method so as to change the posture of the display device 100 without touching the touch panel 109, it is determined as No in S308. Since the user has not touched the touch panel 109, in S310, the control unit 101 determines that the touch-on has not been detected, and proceeds to S313. Here, the value of the vertical / horizontal display flag imghv remains updated, that is, "1", and the aphv is "0" because the posture has changed. Therefore, in S313, the control unit 101 has the value of the posture flag aphv. It is determined that the values of the vertical and horizontal display flags imghv are not the same. Therefore, via S314, in S315, the control unit 101 is displayed as shown in FIG. 4 (c). In this way, after the display device 100 is touched to rotate the display device 100 and the touch is released, the image is displayed in the display direction desired by the user regardless of whether the display device 100 is in the vertical posture or the horizontal posture. ..
Although the case of displaying an image with incorrect vertical and horizontal information has been described here, the same processing is performed for an image with correct vertical and horizontal information. Further, in the processing of S306 to S315, when the user merely touches the touch panel 109 without changing the posture of the display device 100, the process does not proceed from S308 to S309, so that the image display orientation. Is not controlled.
図3のフローチャートに戻り、S317では、制御部101は画像の縦横情報を記録するかを使用者に確認するための確認画面を表示部108に表示する。具体的には、図6(f)に示すように、制御部101は画像に重畳させて「画像の縦横情報を切替えて保存しますか?」のメッセージと、ダイアログボックス等の選択肢を表示する。
S318では、制御部101は画像の縦横情報を記録媒体107に記録するか否かを判定する。具体的には、制御部101は画像の縦横情報を保存する旨の選択肢が選択されるか、保存しない旨の選択肢が選択されるかを判定する。使用者により記録することが選択された場合にはS319に進み、記録しないことが選択されない場合にはS320に進む。
Returning to the flowchart of FIG. 3, in S317, the control unit 101 displays a confirmation screen on the display unit 108 for confirming with the user whether to record the vertical and horizontal information of the image. Specifically, as shown in FIG. 6 (f), the control unit 101 superimposes the image on the image and displays a message "Do you want to switch and save the vertical and horizontal information of the image?" And options such as a dialog box. ..
In S318, the control unit 101 determines whether or not to record the vertical and horizontal information of the image on the recording medium 107. Specifically, the control unit 101 determines whether the option of saving the vertical and horizontal information of the image is selected or the option of not saving the image is selected. If recording is selected by the user, the process proceeds to S319, and if not recording is not selected, the process proceeds to S320.
S319では、制御部101はメモリ106に記憶している縦横情報を画像に関連付けて記録媒体107に記録する。より詳しくは、画像ファイルの属性情報として記録されている画像の縦横情報(姿勢情報、ローテーション情報、角度情報)を、メモリ106に記憶している縦横情報に基づいて更新して記録する。なお、画像ファイルに記録された画像の向きと、属性情報に含まれる姿勢情報の対応関係が変更されれば良いので、画像ファイルの属性情報の記録を変更することなく、画像自体をメモリ106に記憶している縦横情報に基づいて回転処理して記録しても良い(すなわち記録された画像自体の向きを変更する)。なお、既に記録された画像の姿勢情報を更新する、あるいは記録された画像の向きを変更するのではなく(すなわち上書きではなく)、新たに姿勢情報を変更した画像ファイル、または画像の記録向きを変更した画像ファイルを作成して記録しても良い。例えば、図6(f)に示す表示例において、使用者が縦横情報を記録することを選択した場合には、制御部101は画像自体を横方向にすると共に横方向の縦横情報を関連付けて記録媒体107に記録する。したがって、次回、同一の画像を表示するために図3のフローチャートを開始した場合には、S302において画像に関連付けられた画像情報として横方向の縦横情報が読み出される。そのため、S305では当初から図4(b)あるいは図4(c)のように表示される。
一方、図6(f)に示す表示例において、使用者が縦横情報を記録しないことが選択された場合には、S319の処理が省略されることから、画像は縦方向のままであり縦方向の縦横情報が関連付けて記録されたままである。したがって、次回、同一の画像を表示するために図3のフローチャートを開始した場合には、S302において画像に関連付けられた画像情報として縦方向の縦横情報が読み出される。そのため、S305では図5(b)あるいは図5(c)のように表示される。
In S319, the control unit 101 associates the vertical and horizontal information stored in the memory 106 with the image and records it on the recording medium 107. More specifically, the vertical and horizontal information (posture information, rotation information, angle information) of the image recorded as the attribute information of the image file is updated and recorded based on the vertical and horizontal information stored in the memory 106. Since it is sufficient to change the correspondence between the orientation of the image recorded in the image file and the attitude information included in the attribute information, the image itself is stored in the memory 106 without changing the recording of the attribute information of the image file. The image may be rotated and recorded based on the stored vertical and horizontal information (that is, the orientation of the recorded image itself is changed). In addition, instead of updating the posture information of the already recorded image or changing the orientation of the recorded image (that is, not overwriting), the image file in which the posture information is newly changed, or the recording orientation of the image is changed. You may create and record the modified image file. For example, in the display example shown in FIG. 6 (f), when the user selects to record the vertical and horizontal information, the control unit 101 sets the image itself in the horizontal direction and records the vertical and horizontal information in association with each other. Record on medium 107. Therefore, when the flowchart of FIG. 3 is started next time to display the same image, the vertical and horizontal information in the horizontal direction is read out as the image information associated with the image in S302. Therefore, in S305, it is displayed as shown in FIG. 4 (b) or FIG. 4 (c) from the beginning.
On the other hand, in the display example shown in FIG. 6 (f), when the user selects not to record the vertical and horizontal information, the processing of S319 is omitted, so that the image remains in the vertical direction and is in the vertical direction. The vertical and horizontal information of is still recorded in association with each other. Therefore, when the flowchart of FIG. 3 is started next time to display the same image, the vertical and horizontal information in the vertical direction is read out as the image information associated with the image in S302. Therefore, in S305, it is displayed as shown in FIG. 5 (b) or FIG. 5 (c).
最後に、S320では、制御部101は表示部108をオフすることで、図3のフローチャートを終了する。
このように、使用者はタッチパネル109をタッチオンした状態で表示装置100の姿勢を変化させることで、制御部101は表示装置100の姿勢と、表示部108に対する画像の表示向きとの対応関係を、表示装置100の姿勢の変化前後で変更する。したがって、使用者の所望する向きに画像を表示させることができる。また、タッチパネル109をタッチオンした状態で、表示装置100の姿勢を変化させる操作は、直感的で分かり易いことから、表示装置100の操作性を向上させることができる。
Finally, in S320, the control unit 101 ends the flowchart of FIG. 3 by turning off the display unit 108.
In this way, the user changes the posture of the display device 100 while the touch panel 109 is touched on, so that the control unit 101 determines the correspondence between the posture of the display device 100 and the display orientation of the image with respect to the display unit 108. The change is made before and after the change in the posture of the display device 100. Therefore, the image can be displayed in the direction desired by the user. Further, since the operation of changing the posture of the display device 100 while the touch panel 109 is touched on is intuitive and easy to understand, the operability of the display device 100 can be improved.
また、本実施形態では、画像に関連付けられた縦横情報を変更することで表示部108に表示された画像のみを対象にして画像の表示向きを制御する。したがって、複数の画像が記録されている場合でも表示された画像以外の他の画像まで縦横情報が変更されることを防止することができる。 Further, in the present embodiment, the display orientation of the image is controlled only for the image displayed on the display unit 108 by changing the vertical and horizontal information associated with the image. Therefore, even when a plurality of images are recorded, it is possible to prevent the vertical and horizontal information from being changed to images other than the displayed image.
なお、上述したS317〜S319の処理は省略してもよい。この場合、S311において画像の縦横情報を変更したとしても、次回、同一の画像を表示するためにS302に進んだ場合には、画像に関連付けられた縦横情報として、変更する前の縦横情報が読み出される。
また、上述したS317〜S319の処理は、S311およびS312を経由した場合のみ行うことができる。この場合、画像の縦横情報を変更した場合のみ、画像の縦横情報を切替えて保存するか否かが使用者に確認される。したがって、表示装置100の操作性を向上させることができる。
The above-mentioned processes S317 to S319 may be omitted. In this case, even if the vertical and horizontal information of the image is changed in S311, the vertical and horizontal information before the change is read out as the vertical and horizontal information associated with the image when the next time the process proceeds to S302 to display the same image. Is done.
Further, the above-mentioned processes S317 to S319 can be performed only when passing through S311 and S312. In this case, only when the vertical and horizontal information of the image is changed, the user is asked whether or not to switch and save the vertical and horizontal information of the image. Therefore, the operability of the display device 100 can be improved.
また、S316では、表示を継続するか否かを判定する場合について説明したが、この場合に限られず、使用者がタッチパネル109に対してフリックをして、画像送りを指示したか否かを判定してもよい。画像送りとは、記録媒体107に複数の画像が撮影日時等の順番で記録されている場合に、順番にしたがって次の画像に遷移することをいう。画像送りが指示された場合にはS317に進み、画像送りが指示されない場合にはS306に戻るようにしてもよい。したがって、画像送りが指示された場合に、S317において、制御部101は画像送り前の画像の縦横情報を記録するかを使用者に確認する。 Further, in S316, the case of determining whether or not to continue the display has been described, but the present invention is not limited to this case, and it is determined whether or not the user flicks the touch panel 109 to instruct the image feed. You may. Image feed means that when a plurality of images are recorded on the recording medium 107 in the order of shooting date and time, the transition to the next image is performed according to the order. If the image feed is instructed, the process may proceed to S317, and if the image feed is not instructed, the process may return to S306. Therefore, when the image feed is instructed, in S317, the control unit 101 asks the user whether to record the vertical and horizontal information of the image before the image feed.
(第2の実施形態)
次に、第2の実施形態の表示制御について図7のフローチャートを参照して説明する。第1の実施形態では、S310において制御部101がタッチオンを検出している場合に、S311での縦横情報を変更する処理に進む場合について説明した。本実施形態では、タッチアップを検出した場合にS311に進む場合について説明する。図7に示すフローチャートは、制御部101が記録媒体107に記録されたプログラムをメモリ106に展開して実行することで実現される。なお、図7のフローチャートは、第1の実施形態で説明した図3のフローチャートのS307〜S310の処理を、S701〜S705の処理に変更したものである。したがって、図7のフローチャートのうち、図3のフローチャートと同一の処理は、同一のステップ番号を付して、その説明を省略する。
(Second embodiment)
Next, the display control of the second embodiment will be described with reference to the flowchart of FIG. In the first embodiment, when the control unit 101 has detected the touch-on in S310, the case where the process proceeds to the process of changing the vertical / horizontal information in S311 has been described. In the present embodiment, the case where the process proceeds to S311 when the touch-up is detected will be described. The flowchart shown in FIG. 7 is realized by the control unit 101 expanding the program recorded on the recording medium 107 into the memory 106 and executing the program. Note that the flowchart of FIG. 7 is obtained by changing the processes of S307 to S310 of the flowchart of FIG. 3 described in the first embodiment to the processes of S701 to S705. Therefore, among the flowcharts of FIG. 7, the same processes as those of the flowchart of FIG. 3 are given the same step numbers, and the description thereof will be omitted.
S701では、制御部101はタッチパネル109からの通知に基づいてタッチダウンがあったか否かを判定する。タッチダウンがあった場合にはS702に進み、タッチダウンがない場合にはS313に進む。S313以降の処理は、第1の実施形態と同様である。 In S701, the control unit 101 determines whether or not there is a touchdown based on the notification from the touch panel 109. If there is a touchdown, the process proceeds to S702, and if there is no touchdown, the process proceeds to S313. The processing after S313 is the same as that of the first embodiment.
S702では、制御部101は表示装置100の姿勢を検出して、S701のタッチダウン前と比べて姿勢に変化、すなわち縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢への変化があったか否かを判定する。具体的には、制御部101はタッチダウン前である過去姿勢フラグaphvoldの値とタッチダウン時である姿勢フラグaphvとの値を比較して同一であるか否かを判定する。値が異なる場合、すなわち姿勢が変化した場合にはS703に進む。一方、値が同一の場合、すなわち姿勢が変化していない場合にはS704に進む。 In S702, the control unit 101 detects the posture of the display device 100 and changes the posture as compared with that before the touchdown of S701, that is, whether or not there is a change from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture. To judge. Specifically, the control unit 101 compares the value of the past posture flag aphold before the touchdown with the value of the posture flag aphv at the time of touchdown, and determines whether or not they are the same. If the values are different, that is, if the posture changes, the process proceeds to S703. On the other hand, if the values are the same, that is, if the posture has not changed, the process proceeds to S704.
S703では、制御部101はタッチパネル109からの通知に基づいてタッチアップがあったか否かを判定する。タッチアップがない場合には表示装置100の姿勢が変化する可能性があるためにS702に戻る。タッチアップがあった場合にはS311に進む。すなわち、S311に進む場合とは、タッチパネル109に対するタッチダウンの前後で、表示装置100が縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢に変化した場合である。S311以降の処理は、第1の実施形態と同様である。
S704でも、制御部101はタッチパネル109からの通知に基づいてタッチアップがあったか否かを判定する。タッチアップがない場合には表示装置100の姿勢が変化する可能性があるためにS702に戻る。タッチアップがあった場合にはS705に進む。すなわち、S705に進む場合とは、タッチパネル109に対するタッチダウンの前後で、表示装置100の姿勢に変化がない場合であり、通常のタッチ動作である。
したがって、S705では、制御部101はタッチに応じた処理を行う。なお、タッチに応じた処理についての詳細な説明は省略するが、例えば、タッチされていた位置の表示アイテムに割り当てられた機能を実行する等がある。
In S703, the control unit 101 determines whether or not there is a touch-up based on the notification from the touch panel 109. If there is no touch-up, the posture of the display device 100 may change, so the process returns to S702. If there is a touch-up, the process proceeds to S311. That is, the case of proceeding to S311 is a case where the display device 100 changes from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture before and after the touchdown to the touch panel 109. The processing after S311 is the same as that of the first embodiment.
Also in S704, the control unit 101 determines whether or not there is a touch-up based on the notification from the touch panel 109. If there is no touch-up, the posture of the display device 100 may change, so the process returns to S702. If there is a touch-up, the process proceeds to S705. That is, the case of proceeding to S705 is a case where the posture of the display device 100 does not change before and after the touchdown with respect to the touch panel 109, which is a normal touch operation.
Therefore, in S705, the control unit 101 performs a process corresponding to the touch. Although detailed description of the process corresponding to the touch is omitted, for example, the function assigned to the display item at the touched position may be executed.
このように、本実施形態によれば、タッチアップがされるまで表示装置100の姿勢が変化するか否かを判定し、タッチアップが検出されたときを基準として次の処理に移行する。したがって、使用者がタッチアップして次の処理に移行するまで、表示装置100は表示装置100の姿勢に応じた表示制御を省略することができる。 As described above, according to the present embodiment, it is determined whether or not the posture of the display device 100 changes until the touch-up is performed, and the process proceeds to the next process based on the time when the touch-up is detected. Therefore, the display device 100 can omit the display control according to the posture of the display device 100 until the user touches up and shifts to the next process.
(第3の実施形態)
次に、第3の実施形態の表示制御について図8のフローチャートを参照して説明する。図8に示すフローチャートは、制御部101が記録媒体107に記録されたプログラムをメモリ106に展開して実行することで実現される。第1および第2の実施形態では、画像に関連付けられた縦横情報を変更することで画像の表示向きを制御する場合について説明した。本実施形態では、縦横情報を変更することなく画像の表示向きを制御する場合について説明する。本実施形態では、例えば使用者が寝転んで、表示部108に表示された画像を閲覧する場合に用いられる。なお、図8のフローチャートは、第2の実施形態で説明した図7のフローチャートにS801を追加すると共に、S311〜S315の処理をS802〜S808の処理に変えたものである。したがって、図8のフローチャートのうち、図7のフローチャートと同一の処理は、同一のステップ番号を付して、その説明を省略する。
(Third Embodiment)
Next, the display control of the third embodiment will be described with reference to the flowchart of FIG. The flowchart shown in FIG. 8 is realized by the control unit 101 expanding the program recorded on the recording medium 107 into the memory 106 and executing the program. In the first and second embodiments, a case where the display orientation of the image is controlled by changing the vertical and horizontal information associated with the image has been described. In the present embodiment, a case where the display orientation of the image is controlled without changing the vertical and horizontal information will be described. In the present embodiment, for example, it is used when the user lies down and browses the image displayed on the display unit 108. In the flowchart of FIG. 8, S801 is added to the flowchart of FIG. 7 described in the second embodiment, and the processing of S311 to S315 is changed to the processing of S802 to S808. Therefore, among the flowcharts of FIG. 8, the same processes as those of the flowchart of FIG. 7 are given the same step numbers, and the description thereof will be omitted.
まず、図9を参照して、本実施形態の表示装置100の使用例について説明する。
図9(a)は、使用者が寝転んだ状態で表示装置100の表示部108に表示された画像を閲覧している状態を示す図である。使用者が寝転んで画像を閲覧する場合、表示装置100は使用者によって傾けられた状態になる。このとき、制御部101は表示装置100が縦姿勢であることを検出するが、使用者の視線の相対値からみると画像を90°回転して表示することが好ましい状態である。本実施形態では、表示装置100の姿勢と、表示部108に対する画像の表示向きとの対応関係を変更する変更情報に基づいて画像を表示する。以下、具体的に説明する。
First, an example of using the display device 100 of the present embodiment will be described with reference to FIG.
FIG. 9A is a diagram showing a state in which the user is viewing the image displayed on the display unit 108 of the display device 100 while lying down. When the user lays down and browses the image, the display device 100 is in a tilted state by the user. At this time, the control unit 101 detects that the display device 100 is in the vertical posture, but it is preferable that the image is rotated by 90 ° and displayed in view of the relative value of the line of sight of the user. In the present embodiment, the image is displayed based on the change information that changes the correspondence between the posture of the display device 100 and the display orientation of the image with respect to the display unit 108. Hereinafter, a specific description will be given.
S801では、制御部101は変更情報としての変更フラグRを初期化するために0を代入し、メモリ106に記憶する。ここで、変更フラグRとは、表示装置100の姿勢と、表示部108に対する画像の表示向きとの対応関係を変更するか否かを示すフラグである。
S303〜S705までの処理は、第1および第2の実施形態と同様である。
S703では、制御部101はタッチパネル109からの通知に基づいてタッチアップがあったか否かを判定し、タッチアップがあった場合にはS802に進む。すなわち、S802に進む場合とは、タッチパネル109に対するタッチダウンの前後で表示装置100が縦姿勢から横姿勢、あるいは、横姿勢から縦姿勢に変化した場合である。
In S801, the control unit 101 substitutes 0 in order to initialize the change flag R as change information, and stores it in the memory 106. Here, the change flag R is a flag indicating whether or not to change the correspondence between the posture of the display device 100 and the display orientation of the image with respect to the display unit 108.
The processes from S303 to S705 are the same as those in the first and second embodiments.
In S703, the control unit 101 determines whether or not there is a touch-up based on the notification from the touch panel 109, and if there is a touch-up, proceeds to S802. That is, the case of proceeding to S802 is a case where the display device 100 changes from the vertical posture to the horizontal posture or from the horizontal posture to the vertical posture before and after the touchdown with respect to the touch panel 109.
S802では、制御部101はメモリ106に記憶した変更フラグRを反転させる。具体的には、制御部101はメモリ106に記憶した、変更フラグRが「0」であれば「1」にし、変更フラグRが「1」であれば「0」にして、メモリ106に記憶する。
S803では、制御部101は姿勢フラグaphvの値と縦横表示フラグimghvの値とを比較して同一であるか否かを判定する。値が同一の場合にはS804に進み、異なる場合にはS806に進む。
In S802, the control unit 101 inverts the change flag R stored in the memory 106. Specifically, the control unit 101 stores the change flag R in the memory 106 as "1" if the change flag R is "0", sets it as "0" if the change flag R is "1", and stores it in the memory 106. To do.
In S803, the control unit 101 compares the value of the posture flag aphv with the value of the vertical / horizontal display flag imghv and determines whether or not they are the same. If the values are the same, the process proceeds to S804, and if they are different, the process proceeds to S806.
S804では、制御部101は変更フラグRが「0」であるか否かを判定する。「1」の場合にはS805に進み、制御部101は画像の表示向きを変更するために画像を90°回転させてメモリ106に記憶する。一方、「0」の場合には画像を回転させる処理を行わず、S808に進む。すなわち、変更フラグRが「1」の場合には、姿勢フラグaphvの値と縦横表示フラグimghvの値とが同一であっても、画像を90°回転させて表示する。 In S804, the control unit 101 determines whether or not the change flag R is “0”. In the case of "1", the process proceeds to S805, and the control unit 101 rotates the image by 90 ° and stores it in the memory 106 in order to change the display direction of the image. On the other hand, in the case of "0", the process of rotating the image is not performed, and the process proceeds to S808. That is, when the change flag R is "1", even if the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are the same, the image is rotated by 90 ° and displayed.
S806でも同様に、制御部101は変更フラグRが「0」であるか否かを判定する。「0」の場合にはS807に進み、上述したS304と同様に、制御部101は画像の表示向きを変更するために画像を90°回転させてメモリ106に記憶する。一方、「1」の場合には、制御部101は画像を回転させる処理を行わず、S808に進む。すなわち、変更フラグRが「1」の場合には、姿勢フラグaphvの値と縦横表示フラグimghvの値とが異なっていても、画像を回転させる処理を行わない。 Similarly in S806, the control unit 101 determines whether or not the change flag R is “0”. In the case of "0", the process proceeds to S807, and similarly to S304 described above, the control unit 101 rotates the image by 90 ° and stores it in the memory 106 in order to change the display direction of the image. On the other hand, in the case of "1", the control unit 101 does not perform the process of rotating the image, and proceeds to S808. That is, when the change flag R is "1", even if the value of the posture flag aphv and the value of the vertical / horizontal display flag imghv are different, the process of rotating the image is not performed.
S808では、制御部101はメモリ106に記憶した画像を表示部108に表示する。ここで、図9(b)および図9(c)を参照して、図4(a)の画像を表示する場合について説明する。図9(b)および図9(c)では、表示装置100の姿勢が縦姿勢として検出される。 In S808, the control unit 101 displays the image stored in the memory 106 on the display unit 108. Here, a case where the image of FIG. 4A is displayed will be described with reference to FIGS. 9B and 9C. In FIGS. 9B and 9C, the posture of the display device 100 is detected as the vertical posture.
まず、図9(b)は、S701においてタッチパネル109に対するタッチダウンがないと判定された後に、S802を経由せず(変更フラグRの値が「0」のまま)、S803に進んだ場合の表示例である。すなわち、S803では、制御部101は姿勢フラグaphvが「0」、縦横表示フラグimghvが「1」であり、値が異なるために、S806に進む。S806では、制御部101は変更フラグRの値が「0」であるために、画像を90°回転する。したがって、図9(b)に示すように、画像は図4(c)と同様の表示向きに表示される。この場合、図9(a)に示すように使用者が寝転んでいる場合には、使用者の視線(図9(b)に示す破線)と画像の表示向きが合わない。 First, FIG. 9B is a table when the process proceeds to S803 without going through S802 (the value of the change flag R remains “0”) after it is determined in S701 that there is no touchdown to the touch panel 109. It is an example. That is, in S803, the control unit 101 proceeds to S806 because the attitude flag aphv is “0” and the vertical / horizontal display flag imghv is “1” and the values are different. In S806, the control unit 101 rotates the image by 90 ° because the value of the change flag R is “0”. Therefore, as shown in FIG. 9B, the image is displayed in the same display orientation as in FIG. 4C. In this case, when the user is lying down as shown in FIG. 9A, the line of sight of the user (broken line shown in FIG. 9B) and the display orientation of the image do not match.
一方、図9(c)は、例えば、使用者が寝転んで表示装置100が横姿勢から縦姿勢に変化するときに、タッチパネル109に対するタッチダウンがあり、S802を経由して(変更フラグRの値が「1」に反転)、S803に進んだ場合の表示例である。すなわち、S803では、制御部101は姿勢フラグaphvが「0」、縦横表示フラグimghvが「1」であり、値が異なるために、S806に進む。S806では、制御部101は変更フラグRの値が「1」であるために、制御部101は画像を回転させない。したがって、図9(c)に示すように、画像は図4(b)と同様の表示向きに表示される。この場合、図9(a)に示すように使用者が寝転んでいる場合には、使用者の視線(図9(c)に示す破線)と画像が合っており、使用者の所望する表示向きと一致する。 On the other hand, in FIG. 9C, for example, when the user lies down and the display device 100 changes from the horizontal posture to the vertical posture, there is a touchdown to the touch panel 109, and the value of the change flag R is passed through S802. Is inverted to "1"), and is a display example when the process proceeds to S803. That is, in S803, the control unit 101 proceeds to S806 because the attitude flag aphv is “0” and the vertical / horizontal display flag imghv is “1” and the values are different. In S806, the control unit 101 does not rotate the image because the value of the change flag R is "1". Therefore, as shown in FIG. 9 (c), the image is displayed in the same display orientation as in FIG. 4 (b). In this case, when the user is lying down as shown in FIG. 9 (a), the line of sight of the user (broken line shown in FIG. 9 (c)) matches the image, and the display orientation desired by the user. Matches with.
その後、S316では、制御部101は表示を継続するか否かを判定し、継続する場合には、S306に戻り、上述した処理を繰り返す。なお、S316において表示が継続される場合には、再びS306、S701、S702、S703を経由してS802に進まない限り、変更フラグRの値は「1」のままである。したがって、画像を継続して表示している間に、使用者がタッチパネル109に対してフリックをして、画像送りを指示した場合には、制御部101は維持された変更フラグRの値に応じて画像を表示する。
ここで、例えば、図9(c)に示す状態から、使用者が図9(d)の矢印のようにフリックしたものとする。制御部101はフリックに応じて次の順番の画像を遷移して表示部108に表示する。この処理は、遷移手段による処理の一例に対応する。この場合でも、制御部101は変更フラグRの値を維持した状態で、S803〜S808の処理にしたがって画像を表示する。したがって、画像送りをした場合であっても、表示される画像は使用者の所望する表示向きと一致する。
After that, in S316, the control unit 101 determines whether or not to continue the display, and if it continues, returns to S306 and repeats the above-described processing. If the display is continued in S316, the value of the change flag R remains "1" unless the process proceeds to S802 via S306, S701, S702, and S703 again. Therefore, when the user flicks the touch panel 109 to instruct the image feed while the image is continuously displayed, the control unit 101 responds to the value of the maintained change flag R. To display the image.
Here, for example, it is assumed that the user flicks from the state shown in FIG. 9 (c) as shown by the arrow in FIG. 9 (d). The control unit 101 transitions the images in the next order according to the flick and displays them on the display unit 108. This process corresponds to an example of process by the transition means. Even in this case, the control unit 101 displays the image according to the processes of S803 to S808 while maintaining the value of the change flag R. Therefore, even when the image is fed, the displayed image matches the display orientation desired by the user.
また、同様に、S316において表示が継続される場合には、再びS802に進まない限り、変更フラグRの値は「1」のままである。したがって、使用者がタッチパネル109や操作スイッチ105を介して画像の表示を設定するための設定画面(メニュー画面)の表示を指示した場合には、制御部101は維持された変更フラグRの値に応じた設定画面に遷移する。
ここで、例えば、図9(c)に示す状態から、使用者が操作スイッチ105を介して設定画面の表示を指示したものとする。この場合、図9(e)に示すように、制御部101は変更フラグRの値を維持した状態で、設定画面を表示する。したがって、設定画面を表示した場合であっても、設定画面は使用者の所望する表示向きと一致する。
Similarly, when the display is continued in S316, the value of the change flag R remains "1" unless the process proceeds to S802 again. Therefore, when the user instructs the display of the setting screen (menu screen) for setting the display of the image via the touch panel 109 or the operation switch 105, the control unit 101 sets the value of the maintained change flag R to the value. Transit to the corresponding setting screen.
Here, for example, it is assumed that the user has instructed the display of the setting screen via the operation switch 105 from the state shown in FIG. 9C. In this case, as shown in FIG. 9E, the control unit 101 displays the setting screen while maintaining the value of the change flag R. Therefore, even when the setting screen is displayed, the setting screen matches the display orientation desired by the user.
このように、使用者はタッチパネル109をタッチオンした状態で表示装置100の姿勢を変化させることで、制御部101は表示装置100の姿勢と、表示部108に対する画像の表示向きとの対応関係を姿勢の変化前後で変更する。したがって、使用者の所望する向きに画像を表示させることができる。 In this way, the user changes the posture of the display device 100 while the touch panel 109 is touched on, so that the control unit 101 changes the posture of the display device 100 and the correspondence relationship between the posture of the display device 100 and the image display direction with respect to the display unit 108. Change before and after the change of. Therefore, the image can be displayed in the direction desired by the user.
また、本実施形態では、制御部101は、画像に関連付けられた縦横情報を変更するのではなく、変更情報に基づいて画像の表示向きを変更する。このように処理することで、制御部101は、検出している表示装置100の姿勢とは異なる姿勢であるかのように制御する。したがって、現時点で表示されている画像(第1の画像)のみに限られず、画像送りした次の異なる画像(第2の画像)や、設定画面を表示する場合であっても、使用者の所望する表示向きと一致させることができる。 Further, in the present embodiment, the control unit 101 does not change the vertical and horizontal information associated with the image, but changes the display orientation of the image based on the change information. By processing in this way, the control unit 101 controls the posture as if it is different from the posture of the detected display device 100. Therefore, the user's desire is not limited to the image currently displayed (first image), but even when the next different image (second image) to which the image has been sent or the setting screen is displayed. It can be matched with the display orientation.
また、本実施形態では、表示装置100の姿勢と異なる姿勢であるかのように表示することで、例えば使用者が寝転んで画像を閲覧する場合でも、使用者の所望する表示向きに画像を表示させることができる。なお、制御部101はセンサ103を介して表示装置100の表示面が下向きではないことを検出した場合には、使用者が寝転んだ状態から起き上がった状態になり、寝転びが終了したと判定できる。この場合、S316において表示が継続されている場合であっても、制御部101は変更フラグRを初期化する。したがって、寝転びが終了した場合でも、画像を使用者の所望する表示向きと一致させることができる。 Further, in the present embodiment, by displaying the image as if the posture is different from the posture of the display device 100, the image is displayed in the display direction desired by the user even when the user lies down and browses the image. Can be made to. When the control unit 101 detects that the display surface of the display device 100 is not downward through the sensor 103, the user changes from lying down to getting up, and it can be determined that the lying down is completed. In this case, the control unit 101 initializes the change flag R even when the display is continued in S316. Therefore, even when the laying down is completed, the image can be matched with the display orientation desired by the user.
(第4の実施形態)
次に、第4の実施形態の表示制御について、図10と図11を参照して説明する。本実施形態では、例えば使用者が寝転んで閲覧する場合に、寝転んだ状態から表示部108に表示されるコンテンツに合わせて表示装置100を回転させた場合に、より適切な向きでの表示を行う例を説明する。より具体的には、使用者が正立して表示装置100を見ている場合と、寝転んで見ている場合とで、基準となる表示装置の姿勢(基準姿勢)を変える。寝転んで見ている場合にも、使用者の右目が重力方向下側となる寝転び姿勢と、使用者の左目が重力方向下側となる2パターンがあるので、これらはそれぞれ別の基準姿勢を設ける。基準姿勢を変える操作としては、上述した第1の実施形態〜第3の実施形態のように、タッチしたまま表示装置100を回転させる操作により行うものとする。ただし、基準姿勢を変える操作はこれに限らなくても良い。基準姿勢別に、表示装置100の向きに合わせて表示部108に表示されるコンテンツ(画像など)の表示向きを自動回転する。
(Fourth Embodiment)
Next, the display control of the fourth embodiment will be described with reference to FIGS. 10 and 11. In the present embodiment, for example, when the user lays down and browses, when the display device 100 is rotated according to the content displayed on the display unit 108 from the lie down state, the display is performed in a more appropriate orientation. An example will be described. More specifically, the posture (reference posture) of the reference display device is changed depending on whether the user is looking upright at the display device 100 or lying down. Even when lying down, there are two patterns, one in which the user's right eye is on the lower side in the direction of gravity and the other in which the user's left eye is on the lower side in the direction of gravity. .. The operation of changing the reference posture is performed by rotating the display device 100 while touching it, as in the first to third embodiments described above. However, the operation of changing the reference posture is not limited to this. The display orientation of the content (image, etc.) displayed on the display unit 108 is automatically rotated according to the orientation of the display device 100 for each reference posture.
図11は、本実施形態における、各基準姿勢における表示装置100の姿勢別の表示例、コンテンツの回転角度(表示向き)を示す表である。
行1100の各列には、表示装置100の4種類の姿勢のそれぞれの定義を示す。行1100に示す通り、制御部101は、センサ103の出力に基づいて表示装置100の姿勢が、以下の4つの姿勢のいずれであるか(いずれに最も近い姿勢であるか、いずれの姿勢範囲に収まるか)を判別可能である。
・正姿勢(姿勢1):表示装置100の表示面の上部が重力方向上側を向く姿勢。
・右上縦姿勢(姿勢2):表示装置100の表示面の上部が正立して対面する使用者から見て右側を向く方向。正姿勢と比べて、表示面に垂直な軸を中心として表示装置100が右回り(時計回り)に90度回転された姿勢。
・逆さ姿勢(姿勢3)表示装置100の表示面の上部が重力方向下側を向く姿勢。正姿勢と比べて、表示面に垂直な軸を中心として表示装置100が180度回転された姿勢。正姿勢と上下逆さまの姿勢。
・左上縦姿勢(姿勢4):表示装置100の表示面の上部が正立して対面する使用者から見て左側を向く方向。正姿勢と比べて、表示面に垂直な軸を中心として表示装置100が右回り/時計回りに270度(左回り/反時計回りに90度)回転された姿勢。
FIG. 11 is a table showing display examples and content rotation angles (display directions) for each posture of the display device 100 in each reference posture in the present embodiment.
Each column of row 1100 shows the definition of each of the four postures of the display device 100. As shown in line 1100, the control unit 101 determines which of the following four postures the posture of the display device 100 is based on the output of the sensor 103 (which posture is the closest to which posture range). Whether it fits) can be determined.
Positive posture (posture 1): A posture in which the upper part of the display surface of the display device 100 faces upward in the direction of gravity.
-Upper right vertical posture (posture 2): A direction in which the upper part of the display surface of the display device 100 faces upright and faces the right side when viewed from the user. A posture in which the display device 100 is rotated 90 degrees clockwise (clockwise) around an axis perpendicular to the display surface as compared with the normal posture.
Upside-down posture (posture 3) A posture in which the upper part of the display surface of the display device 100 faces downward in the direction of gravity. A posture in which the display device 100 is rotated 180 degrees around an axis perpendicular to the display surface as compared with the normal posture. Positive posture and upside down posture.
-Upper left vertical posture (posture 4): A direction in which the upper part of the display surface of the display device 100 faces upright and faces the left side when viewed from the user. A posture in which the display device 100 is rotated clockwise / clockwise by 270 degrees (counterclockwise / counterclockwise 90 degrees) with respect to an axis perpendicular to the display surface as compared with the normal posture.
行1101の各列には、基準姿勢が正姿勢(姿勢1)である場合に、検出されている姿勢が上記の姿勢1〜4の各状態における表示例を示している。基準姿勢が正姿勢(姿勢1)である場合は、想定利用場面として、使用者が正立(顔の上部が重力方向上向き、顔の下部(あご)が重力方向下向きとなる姿勢)した状態で表示部108を視聴している状況を想定している。行1101に図示したとおり、正立したユーザーが見易いように、表示装置100が上述の4つの姿勢のいずれとなっても、表示対象(コンテンツ)の上部が重力方向上向きとなる向きで表示されるよう、表示装置100の姿勢に応じて自動的に表示向きが回転される。 Each column of row 1101 shows a display example in which the detected posture is in each of the above-mentioned postures 1 to 4 when the reference posture is the normal posture (posture 1). When the reference posture is the normal posture (posture 1), the user is in an upright position (the upper part of the face is upward in the direction of gravity and the lower part of the face (chin) is downward in the direction of gravity). It is assumed that the display unit 108 is being viewed. As illustrated in line 1101, the display device 100 is displayed in a direction in which the upper part of the display target (content) faces upward in the direction of gravity regardless of the above four postures so that an upright user can easily see the display device 100. The display orientation is automatically rotated according to the posture of the display device 100.
行1102の各列には、基準姿勢が右上縦姿勢(姿勢2)である場合に、検出されている姿勢が上記の姿勢1〜4の各状態における表示例を示している。基準姿勢が右上縦姿勢(姿勢2)である場合は、想定利用場面として、使用者の右目が重力方向下側となる寝転び姿勢で、使用者が表示部108を視聴している状況を想定している。行1102に図示したとおり、表示装置100の姿勢に応じて自動的に表示向きが回転される。すなわち、右目が重力方向下側となる寝転び姿勢である使用者が見易いように、表示装置100が上述の4つの姿勢のいずれとなっても、表示対象(コンテンツ)の向かって右側が重力方向下向きとなる向きで表示される。 Each column of row 1102 shows a display example in which the detected posture is in each of the above-mentioned postures 1 to 4 when the reference posture is the upper right vertical posture (posture 2). When the reference posture is the upper right vertical posture (posture 2), it is assumed that the user is watching the display unit 108 in the lying posture in which the user's right eye is on the lower side in the direction of gravity as the assumed usage scene. ing. As illustrated in line 1102, the display orientation is automatically rotated according to the posture of the display device 100. That is, in order to make it easier for the user to lie down with the right eye on the lower side in the direction of gravity, the right side of the display target (content) faces downward in the direction of gravity regardless of the above four postures. It is displayed in the direction of.
行1103の各列には、基準姿勢が逆さ姿勢(姿勢3)である場合に、検出されている姿勢が上記の姿勢1〜4の各状態における表示例を示している。行1103に図示したとおり、表示装置100の姿勢に応じて自動的に表示向きが回転される。すなわち、表示装置100が上述の4つの姿勢のいずれとなっても、表示対象(コンテンツ)の上側が重力方向下向き(上下逆さま)となる向きで表示される。ただし、このような表示が好適である利用場面は想定されないため、本実施形態では、基準姿勢を逆さ姿勢(姿勢3)に設定することはしない(行1103の表示例のような表示は行わない)。ただし、行1103の表示例のような表示が好適であることが想定できる利用場面がある場合には、この限りではなく、行1103の表示例のような表示を行ってもよいことは言うまでもない。 Each column of row 1103 shows a display example in which the detected posture is in each of the above-mentioned postures 1 to 4 when the reference posture is the upside-down posture (posture 3). As illustrated in line 1103, the display orientation is automatically rotated according to the posture of the display device 100. That is, regardless of the above-mentioned four postures of the display device 100, the display is displayed in a direction in which the upper side of the display target (content) is downward in the direction of gravity (upside down). However, since it is not assumed that such a display is suitable for use, the reference posture is not set to the upside-down posture (posture 3) in the present embodiment (the display as in the display example of line 1103 is not performed). ). However, it goes without saying that if there is a usage situation in which it can be assumed that the display such as the display example of line 1103 is suitable, the display such as the display example of line 1103 may be performed without this limitation. ..
行1104の各列には、基準姿勢が左上縦姿勢(姿勢4)である場合に、検出されている姿勢が上記の姿勢1〜4の各状態における表示例を示している。基準姿勢が左上縦姿勢(姿勢4)である場合は、想定利用場面として、使用者の左目が重力方向下側となる寝転び姿勢で、使用者が表示部108を視聴している状況を想定している。行1104に図示したとおり、表示装置100の姿勢に応じて自動的に表示向きが回転される。すなわち、左目が重力方向下側となる寝転び姿勢である使用者が見易いように、表示装置100が上述の4つの姿勢のいずれとなっても、表示対象(コンテンツ)の向かって左側が重力方向下向きとなる向きで表示される。 Each column of row 1104 shows a display example in which the detected posture is in each of the above-mentioned postures 1 to 4 when the reference posture is the upper left vertical posture (posture 4). When the reference posture is the upper left vertical posture (posture 4), it is assumed that the user is viewing the display unit 108 in a lying posture in which the user's left eye is on the lower side in the direction of gravity as an assumed usage scene. ing. As illustrated in line 1104, the display orientation is automatically rotated according to the posture of the display device 100. That is, in order to make it easier for the user to lie down with the left eye on the lower side in the direction of gravity, the left side of the display target (content) faces downward in the direction of gravity regardless of the above four postures. It is displayed in the direction of.
図10に、図11の各表示例のような自動回転表示を実現するためのフローチャートを示す。図10のフローチャートは、制御部101が記録媒体107に記録されたプログラムをメモリ106に展開して実行することで実現される。
S1001では、制御部101は、メモリ106に保持した変更フラグRを初期化して0にする。これにより、表示処理を開始した際(本処理を実行するためのソフトウェアを起動した際、あるいは、表示装置100の電源をオンにした際)に、基準となる姿勢は正姿勢(姿勢1)に初期化される。
FIG. 10 shows a flowchart for realizing an automatic rotation display as in each display example of FIG. The flowchart of FIG. 10 is realized by the control unit 101 expanding the program recorded on the recording medium 107 into the memory 106 and executing the program.
In S1001, the control unit 101 initializes the change flag R held in the memory 106 to 0. As a result, when the display process is started (when the software for executing this process is started or when the power of the display device 100 is turned on), the reference posture becomes the normal posture (posture 1). It is initialized.
S1002では、制御部101は、表示すべき表示対象(画像、文書など)の縦横情報を読み出す。この処理は、上述したS302の処理と同様の処理である。なお、表示対象の縦横情報を反映せずに表示する場合は、この処理を省いても良い。また、表示対象が、Webページなどの、縦横情報の付与されていない種別の表示対象である場合にはこの処理を省いても良い。 In S1002, the control unit 101 reads out the vertical and horizontal information of the display target (image, document, etc.) to be displayed. This process is the same as the process of S302 described above. When displaying without reflecting the vertical and horizontal information of the display target, this process may be omitted. Further, when the display target is a display target of a type such as a Web page to which vertical and horizontal information is not given, this process may be omitted.
S1003では、制御部101は、センサ103の出力に基づいて表示装置100の姿勢を検出する。上述した姿勢1〜4のうち何れであるかを示す情報を、現在の姿勢を示す変数aphvの値としてシステムメモリ52に保持する。
S1004では、制御部101は、変更フラグRの値に沿って、現在姿勢aphvに合わせた向きで、表示対象を表示部108に表示する。初期状態では変数R=0であるので、図11の行1101に示す4つの表示例のうち、現在姿勢aphvに合わせた向き(表示対象の回転角度)で表示を行う。すなわち、現在姿勢aphvが姿勢1である場合は表示対象を回転せずに表示する。現在姿勢aphvが姿勢2である場合は表示対象を時計回りに270度回転して表示する。現在姿勢aphvが姿勢3である場合には表示対象を180度回転して逆さまに表示する。現在姿勢aphvが姿勢4である場合には表示対象を時計回りに90度回転して表示する。
In S1003, the control unit 101 detects the posture of the display device 100 based on the output of the sensor 103. Information indicating which of the above-mentioned postures 1 to 4 is used is held in the system memory 52 as the value of the variable aphv indicating the current posture.
In S1004, the control unit 101 displays the display target on the display unit 108 in the direction according to the current posture aphv along the value of the change flag R. Since the variable R = 0 in the initial state, the display is performed in the direction (rotation angle of the display target) according to the current posture aphv among the four display examples shown in line 1101 of FIG. That is, when the current posture aphv is the posture 1, the display target is displayed without rotating. When the current posture aphv is the posture 2, the display target is rotated clockwise by 270 degrees and displayed. When the current posture aphv is the posture 3, the display target is rotated 180 degrees and displayed upside down. When the current posture aphv is the posture 4, the display target is rotated 90 degrees clockwise to be displayed.
S1005では、制御部101は、システムメモリ52に保持した、少なくとも1周期分前(直前)における表示装置100の姿勢を示す変数aphvoldとして、現在姿勢aphvの値を記憶する。すなわち、現在姿勢aphvを過去の姿勢としてシステムメモリ52に保存する。
S1006では、制御部101は、タッチダウンがあったか否かを判定する。タッチダウンがあったと判定した場合はS1007に進み、そうでない場合はS1021に進む。
In S1005, the control unit 101 stores the value of the current posture aphv as a variable aphfold holding in the system memory 52 indicating the posture of the display device 100 at least one cycle before (immediately before). That is, the current posture aphv is stored in the system memory 52 as the past posture.
In S1006, the control unit 101 determines whether or not there is a touchdown. If it is determined that there is a touchdown, the process proceeds to S1007, and if not, the process proceeds to S1021.
S1007では、制御部101は、センサ103の出力に基づいて表示装置100の姿勢を検出する。この処理はS1003の処理と同様である。また、S1007は、タッチ中における表示装置100の姿勢を検出する処理である。
S1008では、制御部101は、タッチダウンされる前の表示装置100の姿勢を示すaphvoldと比べて、タッチ中の現在姿勢aphvが変化したか否かを判定する。すなわち、タッチが開始された後、タッチが継続している間に表示装置100の姿勢に変化があったか否かを判定する。変化があった場合にはS1011に進み、そうでない場合はS1009に進む。
In S1007, the control unit 101 detects the posture of the display device 100 based on the output of the sensor 103. This process is the same as the process of S1003. Further, S1007 is a process of detecting the posture of the display device 100 during touching.
In S1008, the control unit 101 determines whether or not the current posture aphv during touching has changed as compared with the aphbold indicating the posture of the display device 100 before being touched down. That is, after the touch is started, it is determined whether or not the posture of the display device 100 has changed while the touch continues. If there is a change, the process proceeds to S1011. If not, the process proceeds to S1009.
S1009では、制御部101は、タッチアップがあったか否かを判定する。タッチアップがあった場合はS1010に進み、タッチアップに応じた処理を行う。この処理は、上述したS705と同様の処理である。タッチアップが無かった場合はS1007に進んで処理を繰り返す。
S1011では、制御部101は、タッチアップがあったか否かを判定する。タッチアップがあった場合はS1012に進み、そうでない場合にはS1007に進んで処理を繰り返す。
In S1009, the control unit 101 determines whether or not there is a touch-up. If there is a touch-up, the process proceeds to S1010 and processing is performed according to the touch-up. This process is the same as that of S705 described above. If there is no touch-up, the process proceeds to S1007 and the process is repeated.
In S1011, the control unit 101 determines whether or not there is a touch-up. If there is a touch-up, the process proceeds to S1012, and if not, the process proceeds to S1007 and the process is repeated.
S1012,S1014,S1016,S1018では、制御部101は、S1011でタッチアップを検知する直前に検知してした姿勢を示す現在姿勢aphvが、姿勢1〜姿勢4のいずれであるかを判定する。なお、S1011でタッチアップを検知した直後に改めて表示装置100の姿勢を検知し直した上でS1012,S1014,S1016,S1018の処理を行ってもよい。いずれにしても、タッチアップの際の姿勢(タッチしたまま姿勢が変化し、姿勢変化後にタッチが解除された際の姿勢)を判定する処理となる。
姿勢1であると判定された場合はS1013で変更フラグR=0として記憶する。
姿勢2であると判定された場合はS1015で変更フラグR=1として記憶する。
姿勢3であると判定された場合はS1017で変更フラグR=0として記憶する。これは、使用者が表示装置100を意図的に逆さまにして、使用者自身も逆さまの向きから表示装置100を閲覧するという状況は想定しにくいためである。表示装置100が逆さまであっても、使用者自身も逆さまの向きから表示装置100を閲覧しているわけではないと想定して、正姿勢の場合と同じR=0とする。すなわち、図11に示したR=2の場合の表示は行わない。言い方をかえると、R=1または3の場合にタッチしたまま表示装置100を回転させて逆さまにし、タッチを離すことで、基準姿勢Rをリセットして0とすることができる。なお、姿勢3である場合に、R=0とする代わりに、R=2としても良いことは言うまでも無い。
姿勢4であると判定された場合はS1019で変更フラグR=3として記憶する。
In S1012, S1014, S1016, and S1018, the control unit 101 determines which of the postures 1 to 4 is the current posture aphv indicating the posture detected immediately before the touch-up is detected in S1011. Immediately after the touch-up is detected in S1011, the posture of the display device 100 may be detected again, and then the processes of S1012, S1014, S1016, and S1018 may be performed. In any case, it is a process of determining the posture at the time of touch-up (the posture when the posture changes while being touched and the touch is released after the posture change).
If it is determined that the posture is 1, the change flag R = 0 is stored in S1013.
If it is determined that the posture is 2, the change flag R = 1 is stored in S1015.
If it is determined that the posture is 3, the change flag R = 0 is stored in S1017. This is because it is difficult to assume a situation in which the user intentionally turns the display device 100 upside down and the user himself / herself browses the display device 100 from the upside-down direction. Even if the display device 100 is upside down, it is assumed that the user himself / herself is not viewing the display device 100 from the upside down direction, and R = 0 is set as in the case of the normal posture. That is, the display when R = 2 shown in FIG. 11 is not performed. In other words, when R = 1 or 3, the display device 100 is rotated and turned upside down while being touched, and the reference posture R can be reset to 0 by releasing the touch. Needless to say, when the posture is 3, R = 2 may be set instead of R = 0.
If it is determined that the posture is 4, the change flag R = 3 is stored in S1019.
S1020では、制御部101は、S1012〜S1019の処理の要因となった姿勢を、過去の姿勢を示す変数aphvoldとして記憶する。
S1021では、制御部101は、改めてセンサ103の出力に基づいて表示装置100の姿勢を検出する。この処理はS1003の処理と同様である。
S1022では、制御部101は、過去姿勢aphvoldと現在姿勢aphvを比較することにより、表示装置100に姿勢変化があったか否か(タッチしていない状態での姿勢変化があったか否か)を判定する。姿勢変化が無かった場合はS1023に進む。姿勢変化があった場合にはS1004に進み、変更フラグRの値と、現在姿勢aphvに合わせた向きとなるように、表示部108に表示された表示対象の向きを変更(回転)する。すなわち、タッチしたまま表示装置100を回転させて基準となる姿勢(変数R)を変更した場合にも、表示対象の表示向きは固定されない。その後の表示装置100の姿勢の変化と、基準となる姿勢とに従って回転して表示される。各変数Rの値、各姿勢毎の表示向きは、図11に示した通りである。これによって、例えばR=1の状態とすれば、図11の行1102の想定利用場面に図示したように横たわった状態で表示装置100を閲覧する使用者にとっては、表示装置100をどの向きに回転させても、横たわったまま表示対象を見易い向きで見られる。反対向きに横たわった場合も、変更フラグをR=3として行1101とは異なる姿勢を基準姿勢とすれば、表示装置100の姿勢に合わせて行1104に示すように表示されるため、反対向きに横たわったまま表示対象を見易い向きで見られる。
In S1020, the control unit 101 stores the posture that caused the processing of S1012 to S1019 as a variable aphfold indicating the past posture.
In S1021, the control unit 101 again detects the posture of the display device 100 based on the output of the sensor 103. This process is the same as the process of S1003.
In S1022, the control unit 101 determines whether or not the display device 100 has a posture change (whether or not there has been a posture change in a non-touched state) by comparing the past posture aphvolve with the current posture aphv. If there is no change in posture, the process proceeds to S1023. If there is a change in posture, the process proceeds to S1004, and the direction of the display target displayed on the display unit 108 is changed (rotated) so as to match the value of the change flag R and the current posture aphv. That is, even when the display device 100 is rotated while touching to change the reference posture (variable R), the display orientation of the display target is not fixed. It is rotated and displayed according to the subsequent change in the posture of the display device 100 and the reference posture. The value of each variable R and the display orientation for each posture are as shown in FIG. As a result, for example, assuming that R = 1, the display device 100 is rotated in which direction for the user who browses the display device 100 while lying down as shown in the assumed usage scene of line 1102 in FIG. Even if you let it lie down, you can see the display target in an easy-to-see direction. Even when lying in the opposite direction, if the change flag is set to R = 3 and the posture different from that of line 1101 is set as the reference posture, the display is displayed as shown in line 1104 according to the posture of the display device 100. You can see the display target in an easy-to-see orientation while lying down.
S1023では、制御部101は、表示部108に表示すべき表示対象の変更指示(切替指示)があったか否かを判定する(切替指示を受付ける)。変更指示は、例えば、撮影画像を閲覧していた場合では、表示部108に表示する画像を別の画像に切り替える画像送りの操作による変更指示である。あるいは、スライドショー処理による、一定時間の経過による自動的な切り替え変更指示である。また、Webページなどの閲覧であれば、別のページの表示、別のウインドウで表示しているページの表示などの指示である。表示対象の変更指示がない場合はS1024に進み、表示対象の変更指示があった場合はS1002に進む。S1002に進んだ場合は、切替後の表示対象に関して、縦横情報を読み出し、S1003、S1004を経て、切替後の表示対象を、現在の変更フラグRの値と、現在の表示装置100の姿勢aphvに合わせた向きで表示部108に表示する。これにより、例えばR=1の状態とすれば、横たわった状態で表示装置100を閲覧する使用者にとっては、表示対象を切り替えた場合にも、横たわったまま切り替え後の表示対象を見易い向きで見ることができる。 In S1023, the control unit 101 determines whether or not there is a change instruction (switching instruction) of the display target to be displayed on the display unit 108 (accepts the switching instruction). The change instruction is, for example, a change instruction by an image feed operation for switching the image displayed on the display unit 108 to another image when the captured image is being browsed. Alternatively, it is an automatic switching change instruction after a lapse of a certain period of time by slide show processing. Further, in the case of browsing a Web page or the like, it is an instruction to display another page, display a page displayed in another window, or the like. If there is no instruction to change the display target, the process proceeds to S1024, and if there is an instruction to change the display target, the process proceeds to S1002. When the process proceeds to S1002, the vertical and horizontal information is read about the display target after switching, and the display target after switching is changed to the value of the current change flag R and the posture aphv of the current display device 100 through S1003 and S1004. It is displayed on the display unit 108 in the matched orientation. As a result, for example, if R = 1, the user who browses the display device 100 while lying down can easily see the display target after switching while lying down even when the display target is switched. be able to.
S1024では、制御部101は、図10の表示処理を終了させる指示があったか否かを判定する。図10の表示処理を終了させる指示には、表示装置100の電源オフ、表示処理を実行するためのソフトウェアのシャットダウン(終了)、オートディスプレイオフ(所定時間無操作が続くと自動的に表示部108の表示を終了、消灯する処理)などが含まれる。また、オートパワーオフ(所定時間無操作が続くと自動的に表示装置100の電源をオフとする処理)などが含まれる。これにより、使用者が、寝転んだ状態で表示対象が見易いように変更フラグRを変更させた後、立ちあがるなどとして寝転んだ状態とは異なる姿勢とした場合、一旦表示部108の表示を終了させてから再開させるだけで変更フラグをリセットできる。すなわち、表示装置100を再起動させたり、表示処理を行うソフトウェアを再起動させることで、混乱なく変更フラグRをリセットすることができる。 In S1024, the control unit 101 determines whether or not there is an instruction to end the display process of FIG. The instructions for terminating the display process of FIG. 10 include turning off the power of the display device 100, shutting down (terminating) the software for executing the display process, and turning off the auto display (automatically display unit 108 if no operation continues for a predetermined time). Processing to end and turn off the display of), etc. are included. Further, auto power off (a process of automatically turning off the power of the display device 100 when no operation continues for a predetermined time) and the like are included. As a result, if the user changes the change flag R so that the display target can be easily seen while lying down, and then stands up and takes a different posture from the lying down state, the display of the display unit 108 is temporarily terminated. You can reset the change flag just by restarting from. That is, the change flag R can be reset without confusion by restarting the display device 100 or restarting the software that performs the display process.
S1024で図10の表示処理を終了させる指示が無かった場合はS1005に戻って処理を繰り返すことで、変更フラグRに基づいた表示を継続する。S1024で図10の表示処理を終了させる指示があった場合は処理を終了する。この後再度画像表示処理を再開すると、変更フラグはリセットされ、正姿勢を基準姿勢とした表示制御が行われる。 If there is no instruction to end the display process of FIG. 10 in S1024, the process returns to S1005 and the process is repeated to continue the display based on the change flag R. When instructed in S1024 to end the display process of FIG. 10, the process is terminated. After that, when the image display process is restarted again, the change flag is reset and the display control is performed with the normal posture as the reference posture.
図12(a)〜図12(f)は、上述の表示処理を行った場合の表示例である。
図12(a)は、基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢1だった場合の画像1201の表示例であり、図11の行1102の1列目の表示例(画像回転角度90度)と同じ表示例である。基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢1であることから、画像1201は、上述のS1004の処理によって、表示部108に対して時計回りに90度回転した向きで表示されている。
12 (a) to 12 (f) are display examples when the above-mentioned display processing is performed.
FIG. 12A is a display example of the image 1201 when the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 1, and is the first column of the row 1102 in FIG. This is the same display example as the display example (image rotation angle 90 degrees). Since the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 1, the image 1201 is rotated 90 degrees clockwise with respect to the display unit 108 by the above-mentioned processing of S1004. It is displayed in the orientation.
図12(c)は、図12(a)の状態から、図12(b)の状態を経て表示装置100の姿勢を姿勢2に変更した場合の表示例であり、図11の行1102の2列目の表示例(画像回転角度0度)と同じ表示例である。基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢2であることから、画像1201は、前述のS1004の処理によって、表示部108に対して回転しない向きで表示されている。すなわち、図12(c)では、画像1201は、図12(a)での表示向きから反時計回りに90度回転した表示向きで表示される。 FIG. 12 (c) is a display example in which the posture of the display device 100 is changed from the state of FIG. 12 (a) to the posture 2 through the state of FIG. 12 (b). This is the same display example as the display example of the column (image rotation angle 0 degree). Since the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 2, the image 1201 is displayed in a direction that does not rotate with respect to the display unit 108 by the process of S1004 described above. There is. That is, in FIG. 12 (c), the image 1201 is displayed in a display direction rotated 90 degrees counterclockwise from the display direction in FIG. 12 (a).
図12(d)は、基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢1だった場合の画像1202の表示例である。基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢1であることから、画像1202は、上述のS1004の処理によって、表示部108に対して時計回りに90度回転した向きで表示されている。図12(a)の表示状態から、表示対象の変更指示が行われると、上述のS1023でYesとなり、S1004で、表示部108に対して時計回りに90度回転した向きで表示される。すなわち、表示対象の切替前の図12(a)の画像1201と、表示対象の切替後の図12(b)の画像1202は、どちらも同じく時計回りに90度回転した向きで表示される。 FIG. 12D is a display example of the image 1202 when the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 1. Since the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 1, the image 1202 is rotated 90 degrees clockwise with respect to the display unit 108 by the above-mentioned processing of S1004. It is displayed in the orientation. When an instruction to change the display target is given from the display state of FIG. 12A, the result is Yes in S1023 described above, and the display is displayed in S1004 in a direction rotated 90 degrees clockwise with respect to the display unit 108. That is, both the image 1201 of FIG. 12A before switching the display target and the image 1202 of FIG. 12B after switching the display target are displayed in the same direction rotated 90 degrees clockwise.
図12(f)は、図12(d)の状態から、図12(e)の状態を経て表示装置100の姿勢を姿勢2に変更した場合の表示例である。基準姿勢が姿勢2(R=1)であり、かつ、表示装置100が姿勢2であることから、画像1202は、上述のS1004の処理によって、表示部108に対して回転しない向きで表示される。すなわち、図12(f)では、画像1202は、図12(d)での表示向きから反時計回りに90度回転した表示向きで表示される。また、図12(c)の表示状態から、画像1202への表示対象の変更指示が行われた場合にも、図12(f)の表示状態となる。すなわち、表示対象の変更指示によって上述のS1023でYesとなり、S1004で、表示部108に対して回転しない向きで表示される。すなわち、表示対象の切替前の図12(c)の画像1201と、表示対象の切替後の図12(f)の画像1202は、どちらも同じく表示部108に対して回転しない向きで表示される。 FIG. 12 (f) is a display example in which the posture of the display device 100 is changed to the posture 2 from the state of FIG. 12 (d) through the state of FIG. 12 (e). Since the reference posture is the posture 2 (R = 1) and the display device 100 is the posture 2, the image 1202 is displayed in a direction that does not rotate with respect to the display unit 108 by the above-mentioned processing of S1004. .. That is, in FIG. 12 (f), the image 1202 is displayed in a display direction rotated 90 degrees counterclockwise from the display direction in FIG. 12 (d). Further, even when an instruction to change the display target to the image 1202 is given from the display state of FIG. 12 (c), the display state of FIG. 12 (f) is obtained. That is, according to the instruction to change the display target, Yes is set in S1023 described above, and in S1004, the display unit 108 is displayed in a non-rotating direction. That is, both the image 1201 of FIG. 12 (c) before the display target is switched and the image 1202 of FIG. 12 (f) after the display target is switched are displayed in the same non-rotating direction with respect to the display unit 108. ..
上述の表示処理によれば、図11の行1101の1列目に示したように、基準姿勢が正姿勢であり、表示装置100が姿勢1である場合は、画像を表示部108に対して回転せずに表示する。図11の行1101の1列目に示した表示状態から、タッチ(特定の操作)されることなく、姿勢2に変化したことが検知されると、図11の行1101の2列目のように、画像を270度(反時計回りに90度)回転した向き自動回転して表示する。
一方、図11の行1101の1列目に示した表示状態から、タッチしたまま表示装置100を回転させる操作を伴って姿勢1から姿勢2に変化したことが検知されても、図11の行1102の2列目に示した通り、画像の表示向きを0度から変更しない。この時、基準姿勢Rは0から1に変更される。図11の行1102の2列目に示した状態から、タッチされることなく、姿勢2から姿勢1に変化したことが検知されると、図11の行1102の1列目に示したように、画像を時計回りに90度回転した向きに自動回転して表示する。図11の行1102の1列目の画像の表示向きは、図11の行1101の2列目に示した画像の表示向きとは180度異なる向きである。
According to the above-mentioned display processing, as shown in the first column of the row 1101 of FIG. 11, when the reference posture is the normal posture and the display device 100 is the posture 1, the image is displayed on the display unit 108. Display without rotating. When it is detected that the display state is changed to the posture 2 without being touched (specific operation) from the display state shown in the first column of the row 1101 of FIG. 11, it is as shown in the second column of the row 1101 of FIG. In addition, the image is automatically rotated and displayed in the direction rotated by 270 degrees (90 degrees counterclockwise).
On the other hand, even if it is detected that the display state shown in the first column of the row 1101 of FIG. 11 has changed from the posture 1 to the posture 2 with the operation of rotating the display device 100 while touching the row 1101, the row of FIG. As shown in the second column of 1102, the display orientation of the image is not changed from 0 degrees. At this time, the reference posture R is changed from 0 to 1. When it is detected that the posture 2 has changed to the posture 1 without being touched from the state shown in the second column of the row 1102 of FIG. 11, as shown in the first column of the row 1102 of FIG. , The image is automatically rotated and displayed in the direction rotated 90 degrees clockwise. The display orientation of the image in the first column of row 1102 in FIG. 11 is 180 degrees different from the display orientation of the image shown in the second column of row 1101 in FIG.
なお、図10の処理では、変更フラグを表示処理の起動時にリセットする例を説明したが、これに限るものではない。表示処理を再起動することなく、基準姿勢をリセットするための使用者からの操作を受け付けて基準姿勢をリセット(R=0、基準姿勢を正姿勢に設定する)してもよい。例えば、タッチパネルに対するトリプルタップ(所定時間内にタッチダウンとタッチアップを3回繰り返す操作)や、タッチパネルに対して、例えば円などの所定の軌跡を描くようなジェスチャー操作を受け付けた場合にリセットするようにしても良い。また、基準姿勢のリセットを受け付けるためのリセットアイコン(表示アイテム)を表示し、リセットアイコンに対するタッチ操作があった場合にリセットするようにしても良い。更に、表示装置100を2回以上強く振る操作(複数回振る操作)や、表示装置100の縦横の向きを短い時間内に連続して2回以上切り替える操作(複数回切り替える操作)によってリセットするようにしても良い。例えば、センサ103に含まれる加速度センサで、絶対値がそれぞれ所定値以上である正方向の加速度及び負方向の加速度よりなる1組の加速度を所定時間内に2回連続して検出した場合に、制御部101は2回強く振る操作があったと判定する。また例えば、センサ103で、表示装置100の姿勢が縦姿勢から横姿勢(1回目の縦横の向きの変化)に変わり、横姿勢から縦姿勢(2回目の縦横の向きの変化)に変わる変化を所定時間内に検出した場合に、制御部101は表示装置100の縦横の向きを短い時間内に連続して2回切り替える操作があったと判定する。
さらに、上述の例では、タッチパネル109をタッチオンした状態で表示装置100の姿勢を変化させるという特定の操作を行うことで、基準姿勢の設定を変更する(変更フラグRを変更する)例を説明したが、これに限るものではない。設定メニュー画面に表示される、基準姿勢を切り替える設定項目を操作することによって基準姿勢を変更しても良い。また、タッチパネル109の周辺部分から中央部分に向かうタッチムーブ操作によって表示されるドロワーに表示される、基準姿勢を切り替えるためのアイコンをタップすることによって切り替えても良い。また、表示装置100の縦横の向きの変化を検知した場合に、画像などの表示対象を回転して表示するとともに、基準姿勢を切り替えるためのアイコンを出現させて所定時間表示し、所定時間内にそのアイコンに対するタップ操作があった場合に切り替えても良い。
In the process of FIG. 10, an example of resetting the change flag at the start of the display process has been described, but the present invention is not limited to this. The reference posture may be reset (R = 0, the reference posture is set to the normal posture) by accepting an operation from the user for resetting the reference posture without restarting the display process. For example, it should be reset when a triple tap on the touch panel (an operation of repeating touchdown and touchup three times within a predetermined time) or a gesture operation such as drawing a predetermined trajectory such as a circle is received on the touch panel. You can do it. Further, a reset icon (display item) for accepting the reset of the reference posture may be displayed, and the reset may be performed when there is a touch operation on the reset icon. Further, the display device 100 is reset by a strong shaking operation twice or more (a multiple shaking operation) or an operation of continuously switching the vertical and horizontal orientations of the display device 100 twice or more within a short time (multiple switching operation). You can do it. For example, when the acceleration sensor included in the sensor 103 continuously detects a set of accelerations consisting of positive accelerations and negative accelerations whose absolute values are equal to or greater than a predetermined value twice within a predetermined time. The control unit 101 determines that the operation of shaking strongly twice has been performed. Further, for example, in the sensor 103, the posture of the display device 100 changes from the vertical posture to the horizontal posture (the first change in the vertical and horizontal orientation), and changes from the horizontal posture to the vertical posture (the second change in the vertical and horizontal orientation). If it is detected within a predetermined time, the control unit 101 determines that the operation of switching the vertical and horizontal directions of the display device 100 twice in succession within a short time has been performed.
Further, in the above-mentioned example, an example of changing the setting of the reference posture (changing the change flag R) by performing a specific operation of changing the posture of the display device 100 while the touch panel 109 is touched on has been described. However, it is not limited to this. The reference posture may be changed by operating the setting item for switching the reference posture displayed on the setting menu screen. Alternatively, the touch panel 109 may be switched by tapping the icon for switching the reference posture displayed on the drawer displayed by the touch move operation from the peripheral portion to the central portion. Further, when a change in the vertical and horizontal orientations of the display device 100 is detected, a display target such as an image is rotated and displayed, and an icon for switching the reference posture is displayed and displayed for a predetermined time within a predetermined time. It may be switched when there is a tap operation on the icon.
以上、本発明の好ましい実施形態について説明したが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。更に、上述した各実施形態は本発明の一実施形態を示すものにすぎず、各実施形態を適宜組み合わせることも可能である。 Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these specific embodiments, and various embodiments within the scope of the gist of the present invention are also included in the present invention. Further, each of the above-described embodiments is merely an embodiment of the present invention, and each embodiment can be combined as appropriate.
上述した各実施形態では、制御部101は、表示装置100の上向き下向き、および、表示装置100の縦横姿勢の検出を、1つのセンサ103を介して行う場合について説明した。しかしながら、この場合に限られず、上向き下向き、および、縦横姿勢の検出を、それぞれ別々のセンサを介して行ってもよい。
上述した各実施形態では、上向き下向きの検出を連続値で出力されるセンサを介して検出する場合について説明したが、Z軸方向については閾値zthを判定することができれば良く、2値を判定するような部材(手段)を用いてもよい。
上述した各実施形態では、電源スイッチ102、操作スイッチ105等を所定の位置に配置する場合について説明したが、この場合に限られない。すなわち、電源スイッチ102、操作スイッチ105等は、表示装置100の何れの位置であってもよく、例えば、表示部108に表示されタッチパネル109を介して操作するスイッチであってもよい。
In each of the above-described embodiments, the control unit 101 has described the case where the display device 100 detects the upward and downward directions and the vertical and horizontal postures of the display device 100 via one sensor 103. However, the present invention is not limited to this case, and the upward and downward and vertical / horizontal postures may be detected via separate sensors.
In each of the above-described embodiments, the case where the upward and downward detection is detected via the sensor output as a continuous value has been described, but in the Z-axis direction, it is sufficient if the threshold value zth can be determined, and the binary value is determined. Such members (means) may be used.
In each of the above-described embodiments, the case where the power switch 102, the operation switch 105, and the like are arranged at predetermined positions has been described, but the present invention is not limited to this case. That is, the power switch 102, the operation switch 105, and the like may be at any position of the display device 100, and may be, for example, a switch displayed on the display unit 108 and operated via the touch panel 109.
上述した各実施形態では、表示装置100を携帯電話端末に適用する場合について説明したが、この場合に限られず、表示部108の表示を制御する機器であれば適用することができる。すなわち、本発明は、表示部108の表示を制御できる、デジタルカメラ等の撮像装置、タブレット端末、PDA、携帯型の画像ビューワ、デジタルフォトフレーム、音楽プレーヤー、ゲーム機、電子ブックリーダー等に適用可能である。
上述した各実施形態では、静止画の場合について説明したが、動画であっても同様に処理することができる。
In each of the above-described embodiments, the case where the display device 100 is applied to the mobile phone terminal has been described, but the present invention is not limited to this case, and any device that controls the display of the display unit 108 can be applied. That is, the present invention can be applied to an image pickup device such as a digital camera, a tablet terminal, a PDA, a portable image viewer, a digital photo frame, a music player, a game machine, an electronic book reader, etc., which can control the display of the display unit 108. Is.
In each of the above-described embodiments, the case of a still image has been described, but even a moving image can be processed in the same manner.
上述した各実施形態において、制御部101はタッチパネル109を介してタッチダウンあるいはタッチオンを検出した場合、タッチしたまま回転させることで表示装置100に対する画像の表示向きを維持できる旨のガイド表示を表示部108に表示してもよい。なお、制御部101の制御は1つのハードウェアが行ってもよいし、複数のハードウェアが処理を分担することで、装置全体の制御を行ってもよい。 In each of the above-described embodiments, when the control unit 101 detects touchdown or touch-on via the touch panel 109, the control unit 101 displays a guide display indicating that the display orientation of the image with respect to the display device 100 can be maintained by rotating while touching. It may be displayed on 108. The control unit 101 may be controlled by one hardware, or the entire device may be controlled by sharing the processing among a plurality of hardware.
(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
100:表示装置(表示制御装置) 101:制御部 102:電源スイッチ 103:センサ 104:画像表示ボタン 105:操作スイッチ 106:メモリ 107:記録媒体 108:表示部 109:タッチパネル 100: Display device (display control device) 101: Control unit 102: Power switch 103: Sensor 104: Image display button 105: Operation switch 106: Memory 107: Recording medium 108: Display unit 109: Touch panel
Claims (5)
前記表示手段に表示する表示対象を第1の表示対象から第2の表示対象に切り替える切替指示を受け付ける受付手段と、
表示制御装置の姿勢を検出する姿勢検出手段と、
前記表示手段に表示された表示対象の向きを前記姿勢検出手段で検出された姿勢に応じて変更するように制御する制御手段であって、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで前記表示手段に表示するように制御し、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされていない状態で前記表示制御装置が、第1の姿勢から、前記第1の姿勢と90度異なる第2の姿勢に変化した場合に、前記第1の表示対象を前記第1の向きと90度異なる第2の向きで表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第2の向きで表示するように制御し、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされた状態で前記表示制御装置が前記第1の姿勢から前記第2の姿勢に変化した場合は、前記第1の表示対象の表示向きを前記第1の向きから変更せず、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで表示するように制御し、その後、特定の操作がされていない状態で前記表示制御装置が前記第2の姿勢から前記第1の姿勢に変化した場合は、前記第2の表示対象を前記第1の向きと90度異なり、前記第2の向きと180度異なる第3の向きで表示するように制御する制御手段と
を有することを特徴とする表示制御装置。 Display means and
A receiving means for receiving a switching instruction for switching the display target to be displayed on the display means from the first display target to the second display target, and
Posture detection means for detecting the posture of the display control device,
A control means for controlling the orientation of a display target displayed on the display means so as to change according to the posture detected by the posture detection means.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and when the switching instruction is received in that state, the second display means is received. Is controlled so as to be displayed on the display means in the first direction.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and the display control device is in a state where no specific operation is performed. However, when the posture changes from the first posture to the second posture which is 90 degrees different from the first posture, the first display target is displayed in the second direction which is 90 degrees different from the first direction. When the switching instruction is received in that state, the second display target is controlled to be displayed in the second direction.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and the display control device is in a state where a specific operation is performed. When the first posture is changed to the second posture, the display direction of the first display target is not changed from the first direction, and when the switching instruction is received in that state, the second position is received. When the display target is controlled to be displayed in the first orientation, and then the display control device changes from the second posture to the first posture in a state where no specific operation is performed. A display control device comprising: a control means for controlling the second display object to be displayed in a third direction which is 90 degrees different from the first direction and 180 degrees different from the second direction. ..
前記特定の操作は、前記表示手段に対するタッチ操作であることを特徴とする請求項1に記載の表示制御装置。 The display means is a touch panel.
The display control device according to claim 1, wherein the specific operation is a touch operation on the display means.
前記表示手段に表示する表示対象を第1の表示対象から第2の表示対象に切り替える切替指示を受け付ける受付ステップと、
前記表示制御装置の姿勢を検出する姿勢検出ステップと、
前記表示手段に表示された表示対象の向きを前記姿勢検出ステップで検出された姿勢に応じて変更するように制御する制御ステップであって、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで前記表示手段に表示するように制御し、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされていない状態で前記表示制御装置が、第1の姿勢から、前記第1の姿勢と90度異なる第2の姿勢に変化した場合に、前記第1の表示対象を前記第1の向きと90度異なる第2の向きで表示し、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第2の向きで表示するように制御し、
前記表示制御装置が第1の姿勢である場合に、前記第1の表示対象を前記表示手段に対する第1の向きで前記表示手段に表示し、特定の操作がされた状態で前記表示制御装置が前記第1の姿勢から前記第2の姿勢に変化した場合は、前記第1の表示対象の表示向きを前記第1の向きから変更せず、その状態で前記切替指示を受け付けると、前記第2の表示対象を前記第1の向きで表示するように制御し、その後、特定の操作がされていない状態で前記表示制御装置が前記第2の姿勢から前記第1の姿勢に変化した場合は、前記第2の表示対象を前記第1の向きと90度異なり、前記第2の向きと180度異なる第3の向きで表示するように制御する制御ステップと
を有することを特徴とする表示制御装置の制御方法。 A control method for a display control device having a display means.
A reception step for receiving a switching instruction for switching the display target to be displayed on the display means from the first display target to the second display target, and
A posture detection step for detecting the posture of the display control device, and
A control step for controlling the orientation of the display target displayed on the display means so as to change the orientation according to the posture detected in the posture detection step.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and when the switching instruction is received in that state, the second display means is received. Is controlled so as to be displayed on the display means in the first direction.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and the display control device is in a state where no specific operation is performed. However, when the posture changes from the first posture to the second posture which is 90 degrees different from the first posture, the first display target is displayed in the second direction which is 90 degrees different from the first direction. When the switching instruction is received in that state, the second display target is controlled to be displayed in the second direction.
When the display control device is in the first posture, the first display target is displayed on the display means in the first direction with respect to the display means, and the display control device is in a state where a specific operation is performed. When the first posture is changed to the second posture, the display direction of the first display target is not changed from the first direction, and when the switching instruction is received in that state, the second position is received. When the display target is controlled to be displayed in the first orientation, and then the display control device changes from the second posture to the first posture in a state where no specific operation is performed. A display control device comprising a control step for controlling the second display object to be displayed in a third direction which is 90 degrees different from the first direction and 180 degrees different from the second direction. Control method.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/284,289 US10552946B2 (en) | 2015-10-05 | 2016-10-03 | Display control apparatus and method for controlling the same based on orientation |
| KR1020160128066A KR102138233B1 (en) | 2015-10-05 | 2016-10-05 | Display control apparatus and method for controlling the same |
| CN201610878456.7A CN107025049B (en) | 2015-10-05 | 2016-10-08 | Display control apparatus and control method thereof |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015197896 | 2015-10-05 | ||
| JP2015197896 | 2015-10-05 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017073127A JP2017073127A (en) | 2017-04-13 |
| JP6843564B2 true JP6843564B2 (en) | 2021-03-17 |
Family
ID=58537345
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016179844A Active JP6843564B2 (en) | 2015-10-05 | 2016-09-14 | Display control device, its control method and program |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP6843564B2 (en) |
| KR (1) | KR102138233B1 (en) |
| CN (1) | CN107025049B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109743511B (en) * | 2019-01-03 | 2021-04-20 | 苏州佳世达光电有限公司 | Method and system for automatically adjusting display direction of playing picture |
| JP7539852B2 (en) * | 2021-04-21 | 2024-08-26 | パナソニックホールディングス株式会社 | Time Switch |
| CN115421619B (en) * | 2021-05-31 | 2026-03-24 | 华为技术有限公司 | A window display method and an electronic device |
| CN115167616B (en) * | 2022-06-07 | 2023-05-30 | 荣耀终端有限公司 | Display control method and device |
| CN121411642A (en) * | 2024-07-26 | 2026-01-27 | 广东美的环境电器制造有限公司 | Display switching method, device, heating equipment and storage medium |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9348455B2 (en) * | 2011-02-21 | 2016-05-24 | Nec Corporation | Display apparatus, display control method, and program |
| JP5972629B2 (en) * | 2012-03-27 | 2016-08-17 | 京セラ株式会社 | Apparatus, method, and program |
| US9779481B2 (en) * | 2012-08-24 | 2017-10-03 | Ntt Docomo, Inc. | Device and program for controlling direction of displayed image |
| EP2975607A4 (en) * | 2013-03-14 | 2016-08-03 | Nec Corp | Display control device, information device, display control method, and recording medium |
| TWI631506B (en) * | 2013-04-29 | 2018-08-01 | 群邁通訊股份有限公司 | Method and system for whirling view on screen |
| CN103257777B (en) * | 2013-05-14 | 2016-06-01 | 深圳市汇顶科技股份有限公司 | The control method of touch-screen state and touch-screen, portable touch terminal |
| CN104252302A (en) * | 2013-06-26 | 2014-12-31 | 富泰华工业(深圳)有限公司 | Self-adaptive image adjusting system and method |
| JP2015026297A (en) * | 2013-07-29 | 2015-02-05 | 京セラ株式会社 | Portable terminal, and display direction control program and method |
| CN104461335A (en) * | 2013-09-25 | 2015-03-25 | 联想(北京)有限公司 | Data processing method and electronic instrument |
| CN104598136B (en) * | 2013-10-31 | 2018-07-31 | 纬创资通(昆山)有限公司 | The display picture spinning solution of mobile device and mobile device |
| CN104902078B (en) * | 2015-04-29 | 2018-08-17 | 深圳市万普拉斯科技有限公司 | The control method and system and mobile terminal of screen rotation in mobile terminal |
-
2016
- 2016-09-14 JP JP2016179844A patent/JP6843564B2/en active Active
- 2016-10-05 KR KR1020160128066A patent/KR102138233B1/en active Active
- 2016-10-08 CN CN201610878456.7A patent/CN107025049B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN107025049A (en) | 2017-08-08 |
| JP2017073127A (en) | 2017-04-13 |
| KR20170040763A (en) | 2017-04-13 |
| KR102138233B1 (en) | 2020-07-27 |
| CN107025049B (en) | 2020-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10552946B2 (en) | Display control apparatus and method for controlling the same based on orientation | |
| CN203250304U (en) | Information processing apparatus | |
| KR101233562B1 (en) | Gui applications for use with 3d remote controller | |
| JP6843564B2 (en) | Display control device, its control method and program | |
| CN102804258B (en) | Image processing device, image processing method and program | |
| JP5295839B2 (en) | Information processing apparatus, focus movement control method, and focus movement control program | |
| US20120284671A1 (en) | Systems and methods for interface mangement | |
| US10979700B2 (en) | Display control apparatus and control method | |
| EP2897354A1 (en) | Method for setting image capture conditions and electronic device performing the same | |
| JP5966665B2 (en) | Information processing apparatus, information processing method, and recording medium | |
| JP7080711B2 (en) | Electronic devices, control methods, programs, and storage media for electronic devices | |
| US11036287B2 (en) | Electronic device, control method for electronic device, and non-transitory computer readable medium | |
| JP2020017215A (en) | Electronic device, control program, and display control method | |
| JP2019096182A (en) | Electronic device, display method, and program | |
| JP7034856B2 (en) | Electronic devices, control programs and display control methods | |
| US9438807B2 (en) | Image pickup apparatus having touch panel, image processing method, and storage medium | |
| JP6573389B2 (en) | Display control apparatus and control method thereof | |
| JP6362110B2 (en) | Display control device, control method therefor, program, and recording medium | |
| JP2021099643A (en) | Electronic device and method for controlling the same | |
| JP6269738B2 (en) | Information processing apparatus, information processing method, and recording medium | |
| JP2019096305A (en) | Electronic apparatus and control method, program, and recording medium thereof | |
| WO2019102885A1 (en) | Electronic device with changeable image display section | |
| CN114968063A (en) | Display method, device, electronic device and storage medium of virtual keyboard | |
| JP2021128234A (en) | Electronic apparatus and control method for the same | |
| JP2016110349A (en) | Information processing device, control method therefor, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190822 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200615 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200623 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200721 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200825 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201008 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210126 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210224 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6843564 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |