CN109426405A - Display methods and display device in portable terminal - Google Patents
Display methods and display device in portable terminal Download PDFInfo
- Publication number
- CN109426405A CN109426405A CN201710748729.0A CN201710748729A CN109426405A CN 109426405 A CN109426405 A CN 109426405A CN 201710748729 A CN201710748729 A CN 201710748729A CN 109426405 A CN109426405 A CN 109426405A
- Authority
- CN
- China
- Prior art keywords
- portable terminal
- page
- motion vector
- predetermined
- axis
- 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.)
- Withdrawn
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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- 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/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
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)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子技术领域,更具体地讲,涉及一种便携式终端中的显示方法和显示装置。The present invention relates to the field of electronic technology, and more particularly, to a display method and a display device in a portable terminal.
背景技术Background technique
目前便携式终端中在对文本文档或画图进行查看/编辑操作的过程中,由于便携式终端屏幕大小的限制,通常需要放大查看/编辑的文本文档或画图的页面。在这种情况下,部分页面处于屏幕的显示区域之外,此时,当用户想要查看/编辑屏幕的显示区域之外的页面时,一般是根据用户手指在屏幕上的滑动操作来控制页面的移动(如图1和图2所示)。Currently, in the process of viewing/editing a text document or drawing in a portable terminal, due to the limitation of the screen size of the portable terminal, it is usually necessary to enlarge the page of the text document or drawing to be viewed/edited. In this case, some pages are outside the display area of the screen. At this time, when the user wants to view/edit the page outside the display area of the screen, the page is generally controlled according to the sliding operation of the user's finger on the screen. movement (as shown in Figures 1 and 2).
上述根据用户手指在屏幕上的滑动操作来控制页面移动的方式,一方面,要求用户手指按下后不能离开屏幕,这样很容易改变光标位置,或者造成误操作;另一方面,这种操作对于显示区域会造成遮挡,影响用户在移动过程中观察在显示区域内的页面内容。The above-mentioned method of controlling the page movement according to the sliding operation of the user's finger on the screen, on the one hand, requires the user's finger to be unable to leave the screen after pressing, which is easy to change the cursor position, or cause misoperation; The display area will cause occlusion, which affects the user's observation of the page content in the display area during the movement.
发明内容SUMMARY OF THE INVENTION
本发明的示例性实施例的目的在于提供一种便携式终端中的显示方法和显示装置,能够通过体感操作来控制在便携式终端屏幕上显示的页面进行运动,有效避免了在移动页面的过程中的误操作,并且在移动页面的过程中不遮挡在屏幕上显示的页面的内容。The purpose of the exemplary embodiments of the present invention is to provide a display method and a display device in a portable terminal, which can control the movement of a page displayed on the screen of the portable terminal through a somatosensory operation, and effectively avoid the process of moving the page. Misoperation, and does not block the content of the page displayed on the screen during the process of moving the page.
根据本发明示例性实施例的一方面,提供一种便携式终端中的显示方法,包括:在预定显示模式下,检测便携式终端的第一运动矢量;基于所述便携式终端的第一运动矢量计算在便携式终端的屏幕上当前显示的页面的第二运动矢量;在屏幕上根据计算的第二运动矢量控制所述页面进行运动。According to an aspect of an exemplary embodiment of the present invention, there is provided a display method in a portable terminal, comprising: in a predetermined display mode, detecting a first motion vector of the portable terminal; The second motion vector of the page currently displayed on the screen of the portable terminal; the page is controlled to move on the screen according to the calculated second motion vector.
可选地,所述显示方法可还包括:当所述便携式终端处于预定状态时,控制便携式终端进入预定显示模式。Optionally, the display method may further include: when the portable terminal is in a predetermined state, controlling the portable terminal to enter a predetermined display mode.
可选地,所述预定状态可包括便携式终端在预定方向上不存在平移。Optionally, the predetermined state may include that there is no translation of the portable terminal in the predetermined direction.
可选地,所述预定方向可为重力方向。Optionally, the predetermined direction may be the direction of gravity.
可选地,控制便携式终端进入预定显示模式的步骤可包括:当所述便携式终端处于所述预定状态时,如果便携式终端的前置距离传感器检测到位于便携式终端前方的对象与便携式终端之间的距离小于预定值和/或所述页面为预定页面,则控制便携式终端进入预定显示模式。Optionally, the step of controlling the portable terminal to enter a predetermined display mode may include: when the portable terminal is in the predetermined state, if a front distance sensor of the portable terminal detects a distance between an object located in front of the portable terminal and the portable terminal; If the distance is less than a predetermined value and/or the page is a predetermined page, the portable terminal is controlled to enter a predetermined display mode.
可选地,所述预定页面可包括用于编辑和/或浏览的页面。Optionally, the predetermined pages may include pages for editing and/or browsing.
可选地,第二运动矢量的方向可与第一运动矢量的方向相反。Alternatively, the direction of the second motion vector may be opposite to the direction of the first motion vector.
可选地,第一运动矢量和第二运动矢量可均包括移动矢量,移动矢量可包括沿X轴方向上的移动距离和沿Y轴方向上的移动距离,所述X轴和Y轴可为在所述便携式终端的屏幕的平面上的相互垂直的轴,其中,在屏幕上根据计算的第二运动矢量控制所述页面进行运动的步骤可包括:根据第二运动矢量包括的移动矢量控制所述页面沿X轴方向上和/或沿Y轴方向上移动。Optionally, both the first motion vector and the second motion vector may include a movement vector, and the movement vector may include a movement distance along the X-axis direction and a movement distance along the Y-axis direction, and the X-axis and the Y-axis may be mutually perpendicular axes on the plane of the screen of the portable terminal, wherein the step of controlling the page to move on the screen according to the calculated second motion vector may include: controlling all the The page moves in the X-axis direction and/or in the Y-axis direction.
可选地,基于所述便携式终端的第一运动矢量计算所述页面的第二运动矢量的步骤可包括:根据第一运动矢量与预定位移系数的乘积获得第二运动矢量。Optionally, the step of calculating the second motion vector of the page based on the first motion vector of the portable terminal may include: obtaining the second motion vector according to the product of the first motion vector and a predetermined displacement coefficient.
可选地,第一运动矢量和第二运动矢量可均还包括旋转矢量,旋转矢量可包括绕Z轴的旋转角度,所述Z轴可为与所述便携式终端的屏幕的平面垂直的轴,所述预定方向为Z轴的方向,其中,在屏幕上根据计算的第二运动矢量控制所述页面进行运动的步骤可包括:根据第二运动矢量包括的旋转矢量控制所述页面绕Z轴旋转。Optionally, both the first motion vector and the second motion vector may further include a rotation vector, and the rotation vector may include a rotation angle around a Z axis, and the Z axis may be an axis perpendicular to the plane of the screen of the portable terminal, The predetermined direction is the direction of the Z axis, wherein the step of controlling the page to move on the screen according to the calculated second motion vector may include: controlling the page to rotate around the Z axis according to the rotation vector included in the second motion vector .
可选地,便携式终端在预定方向上不存在平移表示便携式终端在所述预定方向上的平移量在设定范围内,旋转矢量可还包括绕X轴的旋转角度和绕Y轴的旋转角度,其中,所述显示方法可还包括:当便携式终端在所述预定方向上的平移量在设定范围内时,如果第一运动矢量包括的绕X轴的旋转角度小于第一预定旋转矢量且绕Y轴的旋转角度小于第二预定旋转矢量,则控制便携式终端执行相应操作。Optionally, the absence of translation of the portable terminal in the predetermined direction indicates that the amount of translation of the portable terminal in the predetermined direction is within a set range, and the rotation vector may further include a rotation angle around the X axis and a rotation angle around the Y axis, Wherein, the display method may further include: when the translation amount of the portable terminal in the predetermined direction is within a set range, if the rotation angle around the X axis included in the first motion vector is smaller than the first predetermined rotation vector and The rotation angle of the Y axis is smaller than the second predetermined rotation vector, and the portable terminal is controlled to perform corresponding operations.
可选地,所述相应操作可包括显示与所述页面相关联的菜单。Optionally, the corresponding operation may include displaying a menu associated with the page.
可选地,所述显示方法可还包括:当所述便携式终端不处于预定状态时,控制便携式终端退出预定显示模式。Optionally, the display method may further include: when the portable terminal is not in a predetermined state, controlling the portable terminal to exit a predetermined display mode.
可选地,所述显示方法可还包括:当所述页面被运动到所述页面的边缘与所述屏幕的边界重合时,以预定方式提示用户。Optionally, the display method may further include: prompting the user in a predetermined manner when the page is moved until the edge of the page coincides with the boundary of the screen.
可选地,所述预定方式可包括以下项中的至少一项:显示提示信息、语音提示、将所述页面的与屏幕的边界重合的边缘进行突出显示。Optionally, the predetermined manner may include at least one of the following items: displaying prompt information, voice prompt, and highlighting the edge of the page that coincides with the border of the screen.
可选地,所述显示方法可还包括:检测在屏幕上执行的预定操作;响应于所述预定操作,锁定所述页面,其中,当所述页面处于锁定状态时,不检测便携式终端的第一运动矢量或者在屏幕上不根据第二运动矢量控制所述页面进行运动。Optionally, the display method may further include: detecting a predetermined operation performed on the screen; in response to the predetermined operation, locking the page, wherein when the page is in a locked state, the first page of the portable terminal is not detected. A motion vector or on the screen does not control the page to move according to the second motion vector.
根据本发明示例性实施例的另一方面,提供一种便携式终端中的显示装置,包括:传感器;处理器,被配置为:在预定显示模式下,经由传感器检测便携式终端的第一运动矢量,基于所述便携式终端的第一运动矢量计算在便携式终端的屏幕上当前显示的页面的第二运动矢量;显示器,在处理器控制下在屏幕上根据计算的第二运动矢量控制所述页面进行运动。According to another aspect of an exemplary embodiment of the present invention, there is provided a display device in a portable terminal, comprising: a sensor; a processor configured to: detect a first motion vector of the portable terminal via the sensor in a predetermined display mode, Calculate the second motion vector of the page currently displayed on the screen of the portable terminal based on the first motion vector of the portable terminal; the display, under the control of the processor, controls the page to move on the screen according to the calculated second motion vector .
可选地,处理器可还被配置为:当所述便携式终端处于预定状态时,控制便携式终端进入预定显示模式。Optionally, the processor may be further configured to: when the portable terminal is in a predetermined state, control the portable terminal to enter a predetermined display mode.
可选地,所述预定状态可包括便携式终端在预定方向上不存在平移。Optionally, the predetermined state may include that there is no translation of the portable terminal in the predetermined direction.
可选地,所述预定方向可为重力方向。Optionally, the predetermined direction may be the direction of gravity.
可选地,控制便携式终端进入预定显示模式的处理可包括:当所述便携式终端处于所述预定状态时,如果便携式终端的前置距离传感器检测到位于便携式终端前方的对象与便携式终端之间的距离小于预定值和/或所述页面为预定页面,则处理器控制便携式终端进入预定显示模式。Optionally, the process of controlling the portable terminal to enter a predetermined display mode may include: when the portable terminal is in the predetermined state, if a front distance sensor of the portable terminal detects an object located in front of the portable terminal and the portable terminal; If the distance is less than a predetermined value and/or the page is a predetermined page, the processor controls the portable terminal to enter a predetermined display mode.
可选地,所述预定页面可包括用于编辑和/或浏览的页面。Optionally, the predetermined pages may include pages for editing and/or browsing.
可选地,第二运动矢量的方向可与第一运动矢量的方向相反。Alternatively, the direction of the second motion vector may be opposite to the direction of the first motion vector.
可选地,第一运动矢量和第二运动矢量可均包括移动矢量,移动矢量可包括沿X轴方向上的移动距离和沿Y轴方向上的移动距离,所述X轴和Y轴可为在所述便携式终端的屏幕的平面上的相互垂直的轴,其中,处理器可控制显示器根据第二运动矢量包括的移动矢量控制所述页面沿X轴方向上和/或沿Y轴方向上移动。Optionally, both the first motion vector and the second motion vector may include a movement vector, and the movement vector may include a movement distance along the X-axis direction and a movement distance along the Y-axis direction, and the X-axis and the Y-axis may be mutually perpendicular axes on the plane of the screen of the portable terminal, wherein the processor may control the display to control the page to move along the X-axis direction and/or along the Y-axis direction according to the movement vector included in the second movement vector .
可选地,基于所述便携式终端的第一运动矢量计算所述页面的第二运动矢量的处理可包括:根据第一运动矢量与预定位移系数的乘积获得第二运动矢量。Optionally, the process of calculating the second motion vector of the page based on the first motion vector of the portable terminal may include: obtaining the second motion vector according to the product of the first motion vector and a predetermined displacement coefficient.
可选地,第一运动矢量和第二运动矢量可均还包括旋转矢量,旋转矢量可包括绕Z轴的旋转角度,所述Z轴可为与所述便携式终端的屏幕的平面垂直的轴,所述预定方向为Z轴的方向,其中,处理器可控制显示器根据第二运动矢量包括的旋转矢量控制所述页面绕Z轴旋转。Optionally, both the first motion vector and the second motion vector may further include a rotation vector, and the rotation vector may include a rotation angle around a Z axis, and the Z axis may be an axis perpendicular to the plane of the screen of the portable terminal, The predetermined direction is the direction of the Z axis, wherein the processor may control the display to control the page to rotate around the Z axis according to the rotation vector included in the second motion vector.
可选地,便携式终端在预定方向上不存在平移表示便携式终端在所述预定方向上的平移量在设定范围内,旋转矢量可还包括绕X轴的旋转角度和绕Y轴的旋转角度,其中,当便携式终端在所述预定方向上的平移量在设定范围内时,如果第一运动矢量包括的绕X轴的旋转角度小于第一预定旋转矢量且绕Y轴的旋转角度小于第二预定旋转矢量,则处理器可控制便携式终端执行相应操作。Optionally, the absence of translation of the portable terminal in the predetermined direction indicates that the amount of translation of the portable terminal in the predetermined direction is within a set range, and the rotation vector may further include a rotation angle around the X axis and a rotation angle around the Y axis, Wherein, when the translation amount of the portable terminal in the predetermined direction is within the set range, if the rotation angle around the X axis included in the first motion vector is smaller than the first predetermined rotation vector and the rotation angle around the Y axis is smaller than the second the predetermined rotation vector, the processor can control the portable terminal to perform corresponding operations.
可选地,所述相应操作可包括显示与所述页面相关联的菜单。Optionally, the corresponding operation may include displaying a menu associated with the page.
可选地,处理器可还被配置为:当所述便携式终端不处于预定状态时,控制便携式终端退出预定显示模式。Optionally, the processor may be further configured to: control the portable terminal to exit a predetermined display mode when the portable terminal is not in a predetermined state.
可选地,当所述页面被运动到所述页面的边缘与所述屏幕的边界重合时,处理器可控制显示器以预定方式提示用户。Optionally, when the page is moved until the edge of the page coincides with the boundary of the screen, the processor may control the display to prompt the user in a predetermined manner.
可选地,所述预定方式可包括以下项中的至少一项:显示提示信息、语音提示、将所述页面的与屏幕的边界重合的边缘进行突出显示。Optionally, the predetermined manner may include at least one of the following items: displaying prompt information, voice prompt, and highlighting the edge of the page that coincides with the border of the screen.
可选地,所述显示装置可还包括:输入接口,其中,处理器还被配置为:经由输入接口检测在屏幕上执行的预定操作,并响应于所述预定操作,锁定所述页面,其中,当所述页面处于锁定状态时,处理器控制传感器不检测便携式终端的第一运动矢量或者处理器控制显示器在屏幕上不根据第二运动矢量控制所述页面进行运动。Optionally, the display device may further include: an input interface, wherein the processor is further configured to: detect a predetermined operation performed on the screen via the input interface, and lock the page in response to the predetermined operation, wherein , when the page is in a locked state, the processor controls the sensor not to detect the first motion vector of the portable terminal or the processor controls the display not to control the page to move on the screen according to the second motion vector.
根据本发明示例性实施例的再一方面,提供一种计算机可读存储介质,存储有当被处理器执行时使得处理器执行上述的便携式终端中的显示方法的程序指令。According to yet another aspect of an exemplary embodiment of the present invention, there is provided a computer-readable storage medium storing program instructions that, when executed by a processor, cause the processor to execute the above-described display method in a portable terminal.
采用本发明示例性实施例的所述便携式终端中的显示方法和显示装置,能够通过体感操作来控制在便携式终端屏幕上显示的页面进行运动。Using the display method and display device in the portable terminal according to the exemplary embodiments of the present invention, it is possible to control the movement of the page displayed on the screen of the portable terminal through the somatosensory operation.
附图说明Description of drawings
通过下面结合示例性地示出实施例的附图进行的详细描述,本发明示例性实施例的上述和其它目的、特点和优点将会变得更加清楚,其中:The above and other objects, features and advantages of the exemplary embodiments of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, wherein:
图1和图2示出现有的通过在屏幕上的触摸滑动操作来控制页面移动的示意图;Fig. 1 and Fig. 2 show the existing schematic diagrams of controlling page movement through the touch sliding operation on the screen;
图3示出根据本发明示例性实施例的便携式终端中的显示方法的流程图;FIG. 3 shows a flowchart of a display method in a portable terminal according to an exemplary embodiment of the present invention;
图4示出根据本发明示例性实施例的控制页面沿X轴方向上和/或沿Y轴方向上移动的示例图;FIG. 4 shows an exemplary diagram of a control page moving along the X-axis direction and/or along the Y-axis direction according to an exemplary embodiment of the present invention;
图5和图6示出根据本发明示例性实施例的控制页面绕Z轴旋转的示例图;FIG. 5 and FIG. 6 illustrate example diagrams of controlling the rotation of the page around the Z-axis according to an exemplary embodiment of the present invention;
图7示出根据本发明示例性实施例的当页面的边缘与屏幕的边界重合时以预定方式提示用户的示例图;FIG. 7 shows an example diagram of prompting the user in a predetermined manner when the edge of the page coincides with the boundary of the screen according to an exemplary embodiment of the present invention;
图8示出根据本发明示例性实施例的锁定页面的示例图;FIG. 8 shows an exemplary diagram of a locked page according to an exemplary embodiment of the present invention;
图9示出根据本发明示例性实施例的便携式终端中的显示设备的结构图。9 illustrates a structural diagram of a display device in a portable terminal according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
现在,将参照附图更充分地描述不同的示例实施例,其中,一些示例性实施例在附图中示出。Various example embodiments will now be described more fully with reference to the accompanying drawings, in which some example embodiments are shown.
图3示出根据本发明示例性实施例的便携式终端中的显示方法的流程图。作为示例,所述便携式终端可为智能手机、平板电脑、个人数字助理、游戏机、多媒体播放器等具有显示屏幕并具备体感功能的电子设备。FIG. 3 shows a flowchart of a display method in a portable terminal according to an exemplary embodiment of the present invention. As an example, the portable terminal may be an electronic device with a display screen and a somatosensory function, such as a smart phone, a tablet computer, a personal digital assistant, a game console, and a multimedia player.
参照图1,在步骤S10中,在预定显示模式下,检测便携式终端的第一运动矢量。应理解,这里是基于用户对便携式终端的移动来使得便携式终端产生第一运动矢量,不需要用户触摸便携式终端的屏幕。Referring to FIG. 1, in step S10, in a predetermined display mode, a first motion vector of the portable terminal is detected. It should be understood that the portable terminal is caused to generate the first motion vector based on the movement of the portable terminal by the user, and the user does not need to touch the screen of the portable terminal.
优选地,根据本发明示例性实施例的便携式终端中的显示方法可还包括:控制便携式终端进入预定显示模式的步骤。例如,可通过手动/自动方式控制便携式终端进入预定显示模式。下面介绍通过自动方式控制便携式终端进入预定显示模式的两种情况。Preferably, the display method in a portable terminal according to an exemplary embodiment of the present invention may further include: a step of controlling the portable terminal to enter a predetermined display mode. For example, the portable terminal can be controlled to enter a predetermined display mode in a manual/automatic manner. Two cases in which the portable terminal is controlled to enter the predetermined display mode by automatic means are described below.
一种情况,当所述便携式终端处于预定状态时,控制便携式终端进入预定显示模式。优选地,当所述便携式终端处于预定状态且持续预定时间时,控制便携式终端进入预定显示模式。In one case, when the portable terminal is in a predetermined state, the portable terminal is controlled to enter a predetermined display mode. Preferably, when the portable terminal is in a predetermined state for a predetermined time, the portable terminal is controlled to enter a predetermined display mode.
这里,所述预定状态可包括便携式终端在预定方向上不存在平移。例如,当便携式终端在重力方向上不存在平移时,可控制便携式终端进入预定显示模式。Here, the predetermined state may include that there is no translation of the portable terminal in a predetermined direction. For example, when there is no translation of the portable terminal in the direction of gravity, the portable terminal may be controlled to enter a predetermined display mode.
这里,便携式终端在所述预定方向上不存在平移可被理解为便携式终端被平放在与所述预定方向垂直的预定平面上。此时,便携式终端的屏幕与该预定平面平行。例如,当便携式终端被平放在水平面上时,所述预定方向为重力方向。应该理解,基于便携式终端被平放的预定平面,所述预定方向可以是与该预定平面垂直的各种方向。Here, the absence of translation of the portable terminal in the predetermined direction may be understood as the fact that the portable terminal is laid flat on a predetermined plane perpendicular to the predetermined direction. At this time, the screen of the portable terminal is parallel to the predetermined plane. For example, when the portable terminal is laid flat on a horizontal surface, the predetermined direction is the direction of gravity. It should be understood that, based on a predetermined plane on which the portable terminal is laid flat, the predetermined direction may be various directions perpendicular to the predetermined plane.
另一种情况,当便携式终端处于预定状态时,如果便携式终端的前置距离传感器检测到位于便携式终端前方的对象与便携式终端之间的距离小于预定值和/或所述页面为预定页面,则控制便携式终端进入预定显示模式。优选地,在所述页面为预定页面的基础上,当所述页面处于被放大状态(即,页面的面积大于所述屏幕的面积)时,控制便携式终端进入预定显示模式。In another case, when the portable terminal is in a predetermined state, if the front distance sensor of the portable terminal detects that the distance between an object located in front of the portable terminal and the portable terminal is less than a predetermined value and/or the page is a predetermined page, then The portable terminal is controlled to enter a predetermined display mode. Preferably, on the basis that the page is a predetermined page, when the page is in an enlarged state (ie, the area of the page is larger than the area of the screen), the portable terminal is controlled to enter a predetermined display mode.
作为示例,所述预定页面可包括用于编辑和/或浏览的页面。例如,网页浏览页面、图片浏览页面、图纸浏览页面、文档(文本、表格等)编辑页面、图像编辑页面等。As an example, the predetermined pages may include pages for editing and/or browsing. For example, a web browsing page, a picture browsing page, a drawing browsing page, a document (text, table, etc.) editing page, an image editing page, and the like.
优选地,当所述便携式终端不处于预定状态时,可控制便携式终端退出预定显示模式。例如,当便携式终端在预定方向上存在平移时,控制便携式终端退出预定显示模式。作为示例,当便携式终端被从预定平面拿起时,预定显示模式自动被关闭。Preferably, when the portable terminal is not in the predetermined state, the portable terminal can be controlled to exit the predetermined display mode. For example, when the portable terminal is translated in a predetermined direction, the portable terminal is controlled to exit the predetermined display mode. As an example, when the portable terminal is picked up from a predetermined plane, the predetermined display mode is automatically turned off.
作为示例,可通过便携式终端中设置的传感器来检测便携式终端的第一运动矢量。第一运动矢量可包括移动矢量和/或旋转矢量,即,便携式终端沿相互垂直的X轴、Y轴和Z轴的移动矢量和/或绕所述三个轴的旋转矢量。这里,所述X轴和Y轴为在便携式终端的屏幕的平面上的相互垂直的轴,Z轴为与显示屏幕的平面垂直的轴。此时,所述预定方向与Z轴方向一致。As an example, the first motion vector of the portable terminal may be detected by a sensor provided in the portable terminal. The first motion vector may include a movement vector and/or a rotation vector, ie, a movement vector of the portable terminal along mutually perpendicular X, Y and Z axes and/or a rotation vector around the three axes. Here, the X axis and the Y axis are mutually perpendicular axes on the plane of the screen of the portable terminal, and the Z axis is the axis perpendicular to the plane of the display screen. At this time, the predetermined direction coincides with the Z-axis direction.
在此情况下,便携式终端中设置的传感器可包括加速度传感器、陀螺仪和/或地磁传感器。In this case, the sensors provided in the portable terminal may include an acceleration sensor, a gyroscope and/or a geomagnetic sensor.
这里,加速度传感器可通过感测便携式终端的加速度来确定便携式终端的移动矢量,即通过感测便携式终端沿相互垂直的X轴、Y轴和Z轴的移动加速度来获得便携式终端沿所述三个轴的移动速度和/或移动距离。为此,加速度传感器可以是多轴(例如,三轴或二轴,但不限于此)加速度传感器或是由多个(例如,3个或2个,但不限于此)加速度计组成的加速度传感器。Here, the acceleration sensor may determine the movement vector of the portable terminal by sensing the acceleration of the portable terminal, that is, by sensing the movement acceleration of the portable terminal along the mutually perpendicular X-axis, Y-axis and Z-axis to obtain the portable terminal along the three axes The speed and/or distance of movement of the axis. To this end, the acceleration sensor may be a multi-axis (eg, three-axis or two-axis, but not limited to) acceleration sensor or an acceleration sensor composed of multiple (eg, three or two, but not limited to) accelerometers .
陀螺仪和地磁传感器可用于确定便携式终端的姿态。具体来说,陀螺仪可通过感测便携式终端绕所述X轴、Y轴和Z轴旋转的旋转加速度来确定便携式终端的姿态,即,便携式终端绕所述三个轴的旋转速度和/或旋转角度。为此,陀螺仪可以是多轴(例如,三轴或二轴,但不限于此)陀螺仪或是由多个(例如,3个或2个,但不限于此)陀螺仪计组成的陀螺仪组。地磁传感器通过感测地磁方向来确定便携式终端的姿态。例如,当通过地磁传感器感测到便携式终端在重力方向上不存在平移时,控制便携式终端进入预定显示模式。A gyroscope and a geomagnetic sensor can be used to determine the attitude of the portable terminal. Specifically, the gyroscope may determine the attitude of the portable terminal by sensing the rotational acceleration of the portable terminal around the X-axis, Y-axis and Z-axis, that is, the rotation speed of the portable terminal around the three axes and/or Rotation angle. To this end, the gyroscope may be a multi-axis (eg, three or two, but not limited to) gyroscope or a gyroscope composed of multiple (eg, three or two, but not limited) gyroscopes instrument group. The geomagnetic sensor determines the attitude of the portable terminal by sensing the direction of the geomagnetic field. For example, when it is sensed by the geomagnetic sensor that there is no translation of the portable terminal in the direction of gravity, the portable terminal is controlled to enter a predetermined display mode.
应理解,检测到的便携式终端的第一运动矢量是在便携式终端保持在预定方向上不存在平移的前提下,感测到的便携式终端沿相互垂直的X轴、Y轴和Z轴的移动矢量和/或绕所述三个轴的旋转矢量。也就是说,当便携式终端处于预定显示模式下时,便携式终端即保持在预定方向上不存在平移。当便携式终端在预定方向上存在平移时,控制便携式终端退出预定显示模式。It should be understood that the detected first motion vector of the portable terminal is the sensed movement vector of the portable terminal along the mutually perpendicular X-axis, Y-axis and Z-axis under the premise that the portable terminal is kept in a predetermined direction without translation. and/or rotation vectors around the three axes. That is, when the portable terminal is in the predetermined display mode, the portable terminal maintains no translation in the predetermined direction. When the portable terminal is translated in a predetermined direction, the portable terminal is controlled to exit the predetermined display mode.
除此之外,优选地,当便携式终端处于匀速移动时,可利用便携式终端的摄像头获取的图像来确定便携式终端的第一运动矢量。Besides, preferably, when the portable terminal is moving at a constant speed, the first motion vector of the portable terminal can be determined by using an image acquired by a camera of the portable terminal.
例如,可通过便携式终端的摄像头获取预定动作前后的图像,这里,所述预定动作可为用于控制终端移动以产生第一运动矢量的动作,基于获取的图像来确定第一运动矢量。应理解,基于获取的图像来确定便携式终端的运动矢量的方法为本领域的公知常识,本发明对此部分内容不再赘述。可通过将摄像头获取的图像与上述各传感器采集的数据相结合来提高检测第一运动矢量的精度。For example, images before and after a predetermined action may be acquired through the camera of the portable terminal, where the predetermined action may be an action for controlling the terminal to move to generate a first motion vector, and the first motion vector is determined based on the acquired images. It should be understood that the method for determining the motion vector of the portable terminal based on the acquired image is a common knowledge in the art, and this part of the content will not be repeated in the present invention. The accuracy of detecting the first motion vector can be improved by combining the image obtained by the camera with the data collected by each of the above sensors.
在步骤S20中,基于所述便携式终端的第一运动矢量计算在便携式终端的屏幕上当前显示的页面的第二运动矢量。例如,第二运动矢量的方向与第一运动矢量的方向相反。In step S20, a second motion vector of the page currently displayed on the screen of the portable terminal is calculated based on the first motion vector of the portable terminal. For example, the direction of the second motion vector is opposite to the direction of the first motion vector.
这里,第二运动矢量可包括移动矢量和/或旋转矢量,即,页面沿上述的X轴、Y轴和Z轴方向的移动矢量(可包括移动加速度、移动速度和移动距离中的至少一个)和/或页面绕上述的X轴、Y轴和Z轴的旋转矢量(可包括旋转加速度、旋转速度以及旋转角度中的至少一个)。Here, the second motion vector may include a movement vector and/or a rotation vector, that is, the movement vector of the page along the above-mentioned X-axis, Y-axis and Z-axis directions (which may include at least one of movement acceleration, movement speed and movement distance) And/or the rotation vector of the page around the above-mentioned X-axis, Y-axis and Z-axis (which may include at least one of rotation acceleration, rotation speed and rotation angle).
作为示例,可仅考虑便携式终端沿X轴和Y轴方向的移动矢量(例如,移动距离)和便携式终端绕Z轴的旋转矢量(例如,旋转角度),来计算屏幕上当前显示的页面的第二运动矢量。此时,页面的第二运动矢量将包括页面沿X轴和Y轴的移动距离和绕Z轴的旋转角度。As an example, only the movement vectors (eg, movement distance) of the portable terminal along the X-axis and Y-axis directions and the rotation vector (eg, rotation angle) of the portable terminal around the Z-axis may be considered to calculate the first page of the page currently displayed on the screen. Two motion vectors. At this time, the second motion vector of the page will include the moving distance of the page along the X and Y axes and the rotation angle around the Z axis.
优选地,可根据第一运动矢量与预定位移系数的乘积获得第二运动矢量。这里,预定位移系数可根据经验值来设定,也可基于用户的操作来调整预定位移系数的大小。Preferably, the second motion vector can be obtained according to the product of the first motion vector and a predetermined displacement coefficient. Here, the predetermined displacement coefficient may be set according to an empirical value, and the size of the predetermined displacement coefficient may also be adjusted based on a user's operation.
在步骤S30中,在屏幕上根据计算的第二运动矢量控制所述页面进行运动。In step S30, the page is controlled to move according to the calculated second motion vector on the screen.
针对第一运动矢量和第二运动矢量均包括移动矢量的情况,可根据第二运动矢量包括的移动矢量控制所述页面沿X轴方向上和/或沿Y轴方向上移动。例如,控制页面沿X轴和/或Y轴运动第二运动矢量包括的沿X轴方向上和/或沿Y轴方向上的移动距离。In the case where both the first motion vector and the second motion vector include movement vectors, the page may be controlled to move along the X-axis direction and/or along the Y-axis direction according to the movement vectors included in the second motion vector. For example, the control page moves along the X-axis and/or the Y-axis along the X-axis direction and/or the Y-axis direction included by the second motion vector.
图4示出根据本发明示例性实施例的控制页面沿X轴方向上和/或沿Y轴方向上移动的示例图。FIG. 4 shows an example diagram of a control page moving in the X-axis direction and/or in the Y-axis direction according to an exemplary embodiment of the present invention.
如图4所示,在本示例中,假设便携式终端被平放在预定桌面(即,水平桌面A)上的位置M处,此时便携式终端在重力方向上不存在平移,即,便携式终端处于预定状态,且在便携式终端的屏幕上当前显示的页面为用于查看/编辑图像的页面,则便携式终端处于预定显示模式下。在此情况下,当便携式终端在水平桌面A上从位置M处被移动到位置P处时,检测到便携式终端在该水平桌面A上的第一运动矢量(沿X轴方向上和/或沿Y轴方向上的移动矢量),计算在屏幕上当前显示的页面的第二运动矢量,并根据第二运动矢量控制页面沿X轴方向上和/或沿Y轴方向上移动。As shown in FIG. 4 , in this example, it is assumed that the portable terminal is placed at the position M on the predetermined desktop (ie, the horizontal desktop A), and at this time, there is no translation of the portable terminal in the direction of gravity, that is, the portable terminal is in the position M. A predetermined state, and the page currently displayed on the screen of the portable terminal is a page for viewing/editing an image, the portable terminal is in a predetermined display mode. In this case, when the portable terminal is moved from position M to position P on the horizontal tabletop A, a first motion vector of the portable terminal on the horizontal tabletop A (in the X-axis direction and/or along the horizontal tabletop A) is detected. Movement vector in the Y-axis direction), calculate the second motion vector of the page currently displayed on the screen, and control the page to move along the X-axis direction and/or along the Y-axis direction according to the second motion vector.
应理解,在便携式终端的屏幕上当前显示的页面为包含该页面的全部内容的页面,该页面的面积可大于、等于或小于便携式终端的屏幕的面积。当页面的面积大于屏幕的面积时,在屏幕上当前显示的页面并非是指仅在屏幕上被显示出来的部分页面。例如,以图4为例,在屏幕上当前显示的页面应为图4中用于查看/编辑图像的完整页面,包含在屏幕上被显示出来的部分和未被显示出来的部分。It should be understood that the page currently displayed on the screen of the portable terminal is a page including the entire content of the page, and the area of the page may be greater than, equal to or smaller than the area of the screen of the portable terminal. When the area of the page is larger than the area of the screen, the page currently displayed on the screen does not refer to only a part of the page displayed on the screen. For example, taking FIG. 4 as an example, the page currently displayed on the screen should be the complete page for viewing/editing the image in FIG. 4, including the part displayed on the screen and the part not displayed.
这里,由于便携式终端是在水平桌面A上运动,能够在控制便携式终端动作的过程中保持了便携式终端在预定方向上不存在平移,使得用户对便携式终端的动作较容易控制,并且也能够使对便携式终端的第一运动矢量的检测更为准确。Here, since the portable terminal moves on the horizontal desktop A, the portable terminal can be kept free of translation in a predetermined direction during the process of controlling the actions of the portable terminal, which makes it easier for the user to control the actions of the portable terminal, and also enables the user to control the actions of the portable terminal. The detection of the first motion vector of the portable terminal is more accurate.
针对第一运动矢量和第二运动矢量均还包括绕Z轴的旋转角度的情况,可根据第二运动矢量包括的旋转矢量控制页面绕Z轴旋转。例如,控制页面绕Z轴旋转第二运动矢量包括的绕Z轴旋转的旋转角度。In the case where both the first motion vector and the second motion vector further include a rotation angle around the Z axis, the page can be controlled to rotate around the Z axis according to the rotation vector included in the second motion vector. For example, the rotation angle of the rotation around the Z axis included in the rotation of the second motion vector around the Z axis of the control page.
图5和图6示出根据本发明示例性实施例的控制页面绕Z轴旋转的示例图。5 and 6 illustrate example diagrams of controlling the rotation of the page around the Z axis according to an exemplary embodiment of the present invention.
如图5所示,在本示例中,假设便携式终端被平放在水平桌面A上,此时便携式终端在重力方向上不存在平移,即,便携式终端处于预定状态,且在便携式终端的屏幕上当前显示的页面为用于查看/编辑图像的页面,则便携式终端处于预定显示模式下。在此情况下,当检测到便携式终端在该水平桌面A上的第一运动矢量(绕Z轴的旋转矢量)时,计算在屏幕上当前显示的页面的第二运动矢量,并根据第二运动矢量控制页面绕Z轴旋转(如图6所示)。As shown in FIG. 5 , in this example, it is assumed that the portable terminal is laid flat on the horizontal desktop A, and there is no translation of the portable terminal in the direction of gravity at this time, that is, the portable terminal is in a predetermined state, and the portable terminal is on the screen of the portable terminal. The currently displayed page is a page for viewing/editing images, and the portable terminal is in a predetermined display mode. In this case, when the first motion vector (rotation vector around the Z axis) of the portable terminal on the horizontal desktop A is detected, the second motion vector of the page currently displayed on the screen is calculated, and according to the second motion vector The vector control page rotates around the Z axis (as shown in Figure 6).
优选地,根据本发明示例性实施例的便携式终端中的显示方法可还包括:当在屏幕上当前显示的页面被运动到所述页面的边缘与所述屏幕的边界重合时,以预定方式提示用户。作为示例,所述预定方式可包括以下项中的至少一项:显示提示信息、语音提示、将所述页面的与屏幕的边界重合的边缘进行突出显示。Preferably, the display method in a portable terminal according to an exemplary embodiment of the present invention may further include: when the page currently displayed on the screen is moved to the point where the edge of the page coincides with the boundary of the screen, prompting in a predetermined manner user. As an example, the predetermined manner may include at least one of the following items: displaying prompt information, voice prompt, and highlighting the edge of the page that coincides with the border of the screen.
图7示出根据本发明示例性实施例的当页面的边缘与屏幕的边界重合时以预定方式提示用户的示例图。FIG. 7 illustrates an example diagram of prompting the user in a predetermined manner when the edge of the page coincides with the boundary of the screen according to an exemplary embodiment of the present invention.
如图7所示,例如,当便携式终端被从水平桌面A上的位置M处移动至位置P处时,如果页面的边缘与屏幕的边界重合,则可控制页面不根据第二运动矢量进行运动(即,控制页面不向屏幕的所述边界进行运动),并将该页面的与屏幕的边界重合的边缘(例如,页面的上侧边缘和右侧边缘)进行突出显示,以提示用户页面无法运动。As shown in FIG. 7 , for example, when the portable terminal is moved from the position M on the horizontal desktop A to the position P, if the edge of the page coincides with the boundary of the screen, the controllable page does not move according to the second motion vector (ie, control the page not to move toward the boundary of the screen), and highlight the edges of the page that coincide with the boundary of the screen (for example, the upper and right edges of the page) to remind the user that the page cannot be sports.
此外,优选地,根据本发明示例性实施例的便携式终端中的显示方法可还包括:检测在屏幕上执行的预定操作;响应于所述预定操作,锁定所述页面。当所述页面处于锁定状态时,不检测便携式终端的第一运动矢量或者在屏幕上不根据第二运动矢量控制所述页面进行运动。Furthermore, preferably, the display method in the portable terminal according to the exemplary embodiment of the present invention may further include: detecting a predetermined operation performed on the screen; and locking the page in response to the predetermined operation. When the page is in a locked state, the first motion vector of the portable terminal is not detected or the page is not controlled to move on the screen according to the second motion vector.
图8示出根据本发明示例性实施例的锁定页面的示例图。FIG. 8 shows an example diagram of a locked page according to an example embodiment of the present invention.
如图8所示,当便携式终端已被移动到水平桌面A的边缘(如水平桌面A上的位置P处)时,对于仍需要继续向水平桌面A的所述边缘进行移动的情况,如果检测到在屏幕上执行的预定操作,例如,该预定操作可包括触摸操作,在该预定操作持续期间锁定在屏幕上当前显示的页面,此时,则不检测便携式终端的第一运动矢量或者在屏幕上不根据第二运动矢量控制所述页面进行运动,即,在水平桌面A上移动便携式终端(如,从水平桌面A上的位置P处移动至位置M处)时,在屏幕上当前显示的页面不运动。用户可通过上述方式调整便携式终端在水平桌面A上的方向和位置,以便于后续的操作。当该预定操作结束时(例如,用户手指离开屏幕时),取消对页面的锁定。As shown in FIG. 8 , when the portable terminal has been moved to the edge of the horizontal desktop A (such as the position P on the horizontal desktop A), for the situation that it still needs to continue to move to the edge of the horizontal desktop A, if the detection To a predetermined operation performed on the screen, for example, the predetermined operation may include a touch operation, during which the predetermined operation continues to lock the page currently displayed on the screen, at this time, the first motion vector of the portable terminal is not detected or the screen is not detected. The page is not controlled to move according to the second motion vector, that is, when the portable terminal is moved on the horizontal desktop A (for example, moved from the position P to the position M on the horizontal desktop A), the currently displayed on the screen The page does not move. The user can adjust the direction and position of the portable terminal on the horizontal desktop A in the above manner to facilitate subsequent operations. When the predetermined operation ends (eg, when the user's finger leaves the screen), the page is unlocked.
应理解,在本发明示例性实施例的便携式终端中的显示方法中,除可根据便携式终端的第一运动矢量控制页面运动之外,还可根据便携式终端的第一运动矢量控制终端执行相应操作。优选地,在便携式终端处于预定显示模式时,控制便携式终端不进入锁屏状态,以便于根据便携式终端的第一运动矢量控制终端执行相应操作。It should be understood that, in the display method in the portable terminal according to the exemplary embodiment of the present invention, in addition to controlling the page movement according to the first motion vector of the portable terminal, the terminal can also be controlled to perform corresponding operations according to the first motion vector of the portable terminal . Preferably, when the portable terminal is in a predetermined display mode, the portable terminal is controlled not to enter a lock screen state, so as to control the terminal to perform corresponding operations according to the first motion vector of the portable terminal.
应理解,在本发明的一个示例性实施例中,便携式终端在预定方向上不存在平移可指便携式终端在预定方向上的平移量为零。然而,本发明不限于此,便携式终端在预定方向上不存在平移还可指便携式终端在预定方向上的平移量在设定范围内。It should be understood that, in an exemplary embodiment of the present invention, the absence of translation of the portable terminal in the predetermined direction may mean that the amount of translation of the portable terminal in the predetermined direction is zero. However, the present invention is not limited thereto, and the absence of translation of the portable terminal in the predetermined direction may also mean that the amount of translation of the portable terminal in the predetermined direction is within a set range.
在此情况下,根据本发明示例性实施例的便携式终端中的显示方法可还包括:当便携式终端在预定方向(即,Z轴)上的平移量在设定范围内时,如果第一运动矢量包括的绕X轴的旋转角度小于第一预定旋转矢量且绕Y轴的旋转角度小于第二预定旋转矢量,则控制终端执行相应操作。作为示例,所述相应操作可包括显示与所述页面相关联的菜单。例如,可控制在便携式终端屏幕上显示与该页面对应的工具栏、菜单栏、快捷窗口等。In this case, the display method in the portable terminal according to an exemplary embodiment of the present invention may further include: when the translation amount of the portable terminal in a predetermined direction (ie, the Z axis) is within a set range, if the first movement The rotation angle around the X axis included in the vector is smaller than the first predetermined rotation vector and the rotation angle around the Y axis is smaller than the second predetermined rotation vector, and the control terminal performs the corresponding operation. As an example, the corresponding operation may include displaying a menu associated with the page. For example, a toolbar, a menu bar, a shortcut window, etc. corresponding to the page can be controlled to be displayed on the screen of the portable terminal.
图9示出根据本发明示例性实施例的便携式终端中的显示设备的结构图。作为示例,所述便携式终端可为智能手机、平板电脑、个人数字助理、游戏机、多媒体播放器等具有显示屏幕并具备体感功能的电子设备。9 illustrates a structural diagram of a display device in a portable terminal according to an exemplary embodiment of the present invention. As an example, the portable terminal may be an electronic device with a display screen and a somatosensory function, such as a smart phone, a tablet computer, a personal digital assistant, a game console, and a multimedia player.
如图9所示,根据本发明示例性实施例的便携式终端中的显示装置包括传感器10、处理器20和显示器30。As shown in FIG. 9 , a display device in a portable terminal according to an exemplary embodiment of the present invention includes a sensor 10 , a processor 20 and a display 30 .
具体说来,处理器20被配置为在预定显示模式下,通过传感器10检测便携式终端的第一运动矢量。应理解,这里是基于用户对便携式终端的移动来使得便携式终端产生第一运动矢量,不需要用户触摸便携式终端的屏幕。Specifically, the processor 20 is configured to detect the first motion vector of the portable terminal through the sensor 10 in a predetermined display mode. It should be understood that the portable terminal is caused to generate the first motion vector based on the movement of the portable terminal by the user, and the user does not need to touch the screen of the portable terminal.
优选地,处理器20可还被配置为:控制便携式终端进入预定显示模式。例如,处理器20可通过手动/自动方式控制便携式终端进入预定显示模式。下面介绍处理器20通过自动方式控制便携式终端进入预定显示模式的两种情况。Preferably, the processor 20 may be further configured to: control the portable terminal to enter a predetermined display mode. For example, the processor 20 may control the portable terminal to enter a predetermined display mode in a manual/automatic manner. Two cases in which the processor 20 controls the portable terminal to enter the predetermined display mode in an automatic manner are described below.
一种情况,当所述便携式终端处于预定状态时,处理器20控制便携式终端进入预定显示模式。优选地,当所述便携式终端处于预定状态且持续预定时间时,处理器20控制便携式终端进入预定显示模式。In one case, when the portable terminal is in a predetermined state, the processor 20 controls the portable terminal to enter a predetermined display mode. Preferably, when the portable terminal is in a predetermined state for a predetermined time, the processor 20 controls the portable terminal to enter a predetermined display mode.
这里,所述预定状态可包括便携式终端在预定方向上不存在平移。作为示例,所述预定方向可为重力方向。例如,当便携式终端在重力方向上不存在平移时,处理器20可控制便携式终端进入预定显示模式。Here, the predetermined state may include that there is no translation of the portable terminal in a predetermined direction. As an example, the predetermined direction may be the direction of gravity. For example, when there is no translation of the portable terminal in the direction of gravity, the processor 20 may control the portable terminal to enter a predetermined display mode.
这里,便携式终端在所述预定方向上不存在平移可被理解为便携式终端被平放在与所述预定方向垂直的预定平面上。此时,便携式终端的屏幕与该预定平面平行。例如,当便携式终端被平放在水平面上时,所述预定方向为重力方向。应该理解,基于便携式终端被平放的预定平面,所述预定方向可以是与该预定平面垂直的各种方向。Here, the absence of translation of the portable terminal in the predetermined direction may be understood as the fact that the portable terminal is laid flat on a predetermined plane perpendicular to the predetermined direction. At this time, the screen of the portable terminal is parallel to the predetermined plane. For example, when the portable terminal is laid flat on a horizontal surface, the predetermined direction is the direction of gravity. It should be understood that, based on a predetermined plane on which the portable terminal is laid flat, the predetermined direction may be various directions perpendicular to the predetermined plane.
另一种情况,当便携式终端处于预定状态时,如果便携式终端的前置距离传感器检测到位于便携式终端前方的对象与便携式终端之间的距离小于预定值和/或所述页面为预定页面,则处理器20控制便携式终端进入预定显示模式。优选地,在所述页面为预定页面的基础上,当所述页面处于被放大状态(即,页面的面积大于所述屏幕的面积)时,处理器20控制便携式终端进入预定显示模式。In another case, when the portable terminal is in a predetermined state, if the front distance sensor of the portable terminal detects that the distance between an object located in front of the portable terminal and the portable terminal is less than a predetermined value and/or the page is a predetermined page, then The processor 20 controls the portable terminal to enter a predetermined display mode. Preferably, on the basis that the page is a predetermined page, when the page is in an enlarged state (ie, the area of the page is larger than the area of the screen), the processor 20 controls the portable terminal to enter a predetermined display mode.
作为示例,所述预定页面可包括用于编辑和/或浏览的页面。例如,网页浏览页面、图片浏览页面、图纸浏览页面、文档(文本、表格等)编辑页面、图像编辑页面等。As an example, the predetermined pages may include pages for editing and/or browsing. For example, a web browsing page, a picture browsing page, a drawing browsing page, a document (text, table, etc.) editing page, an image editing page, and the like.
优选地,当所述便携式终端不处于预定状态时,处理器20可控制便携式终端退出预定显示模式。例如,当便携式终端在预定方向上存在平移时,处理器20可控制便携式终端退出预定显示模式。Preferably, when the portable terminal is not in the predetermined state, the processor 20 may control the portable terminal to exit the predetermined display mode. For example, when the portable terminal is translated in a predetermined direction, the processor 20 may control the portable terminal to exit the predetermined display mode.
作为示例,第一运动矢量可包括移动矢量和/或旋转矢量,即,便携式终端沿相互垂直的X轴、Y轴和Z轴的移动矢量和/或绕所述三个轴的旋转矢量。这里,所述X轴和Y轴为在便携式终端的屏幕的平面上的相互垂直的轴,Z轴为与显示屏幕的平面垂直的轴。优选地,所述预定方向与Z轴方向一致,所述X轴和Y轴为所述预定平面上的相互垂直的轴。As an example, the first motion vector may include a movement vector and/or a rotation vector, ie, a movement vector of the portable terminal along mutually perpendicular X, Y and Z axes and/or a rotation vector around the three axes. Here, the X axis and the Y axis are mutually perpendicular axes on the plane of the screen of the portable terminal, and the Z axis is the axis perpendicular to the plane of the display screen. Preferably, the predetermined direction is consistent with the Z-axis direction, and the X-axis and the Y-axis are mutually perpendicular axes on the predetermined plane.
在此情况下,传感器10可包括加速度传感器、陀螺仪和/或地磁传感器。In this case, the sensor 10 may include an acceleration sensor, a gyroscope and/or a geomagnetic sensor.
这里,加速度传感器可通过感测便携式终端的加速度来确定便携式终端的移动矢量,即通过感测便携式终端沿相互垂直的X轴、Y轴和Z轴的移动加速度来获得便携式终端沿所述三个轴的移动速度和/或移动距离。为此,加速度传感器可以是多轴(例如,三轴或二轴,但不限于此)加速度传感器或是由多个(例如,3个或2个,但不限于此)加速度计组成的加速度传感器。Here, the acceleration sensor may determine the movement vector of the portable terminal by sensing the acceleration of the portable terminal, that is, by sensing the movement acceleration of the portable terminal along the mutually perpendicular X-axis, Y-axis and Z-axis to obtain the portable terminal along the three axes The speed and/or distance of movement of the axis. To this end, the acceleration sensor may be a multi-axis (eg, three-axis or two-axis, but not limited to) acceleration sensor or an acceleration sensor composed of multiple (eg, three or two, but not limited to) accelerometers .
陀螺仪和地磁传感器可用于确定便携式终端的姿态。具体来说,陀螺仪可通过感测便携式终端绕所述X轴、Y轴和Z轴旋转的旋转加速度来确定便携式终端的姿态,即,便携式终端绕所述三个轴的旋转速度和/或旋转角度。为此,陀螺仪可以是多轴(例如,三轴或二轴,但不限于此)陀螺仪或是由多个(例如,3个或2个,但不限于此)陀螺仪计组成的陀螺仪组。地磁传感器通过感测地磁方向来确定便携式终端的姿态。例如,当通过地磁传感器感测到便携式终端在重力方向上不存在平移时,处理器20控制便携式终端进入预定显示模式。A gyroscope and a geomagnetic sensor can be used to determine the attitude of the portable terminal. Specifically, the gyroscope may determine the attitude of the portable terminal by sensing the rotational acceleration of the portable terminal around the X-axis, Y-axis and Z-axis, that is, the rotation speed of the portable terminal around the three axes and/or Rotation angle. To this end, the gyroscope may be a multi-axis (eg, three or two, but not limited to) gyroscope or a gyroscope composed of multiple (eg, three or two, but not limited) gyroscopes instrument group. The geomagnetic sensor determines the attitude of the portable terminal by sensing the direction of the geomagnetic field. For example, when it is sensed by the geomagnetic sensor that there is no translation of the portable terminal in the direction of gravity, the processor 20 controls the portable terminal to enter a predetermined display mode.
应理解,传感器10检测到的便携式终端的第一运动矢量是在便携式终端保持在预定方向上不存在平移的前提下,感测到的便携式终端沿相互垂直的X轴、Y轴和Z轴的移动矢量和/或绕所述三个轴的旋转矢量。也就是说,当便携式终端处于预定显示模式下时,便携式终端即保持在预定方向上不存在平移。It should be understood that the first motion vector of the portable terminal detected by the sensor 10 is the sensed movement of the portable terminal along the mutually perpendicular X-axis, Y-axis and Z-axis under the premise that the portable terminal is kept in a predetermined direction without translation. Movement vector and/or rotation vector about the three axes. That is, when the portable terminal is in the predetermined display mode, the portable terminal maintains no translation in the predetermined direction.
处理器20还被配置为:基于所述便携式终端的第一运动矢量计算在便携式终端的屏幕上当前显示的页面的第二运动矢量。例如,第二运动矢量的方向与第一运动矢量的方向相反。The processor 20 is further configured to calculate a second motion vector of the page currently displayed on the screen of the portable terminal based on the first motion vector of the portable terminal. For example, the direction of the second motion vector is opposite to the direction of the first motion vector.
这里,第二运动矢量可包括移动矢量和/或旋转矢量,即,页面沿上述的X轴、Y轴和Z轴方向的移动矢量(可包括移动加速度、移动速度和移动距离中的至少一个)和/或页面绕上述的X轴、Y轴和Z轴的旋转矢量(可包括旋转加速度、旋转速度以及旋转角度中的至少一个)。Here, the second motion vector may include a movement vector and/or a rotation vector, that is, the movement vector of the page along the above-mentioned X-axis, Y-axis and Z-axis directions (which may include at least one of movement acceleration, movement speed and movement distance) And/or the rotation vector of the page around the above-mentioned X-axis, Y-axis and Z-axis (which may include at least one of rotation acceleration, rotation speed and rotation angle).
作为示例,处理器20可仅考虑便携式终端沿X轴和Y轴方向的移动矢量(例如,移动距离)和便携式终端绕Z轴的旋转矢量(例如,旋转角度),来计算屏幕上当前显示的页面的第二运动矢量。此时,页面的第二运动矢量将包括页面沿X轴和Y轴的移动距离和绕Z轴的旋转角度。As an example, the processor 20 may only consider the movement vectors (eg, the movement distance) of the portable terminal along the X-axis and Y-axis directions and the rotation vector (eg, the rotation angle) of the portable terminal around the Z-axis, to calculate the current display on the screen. The second motion vector of the page. At this time, the second motion vector of the page will include the moving distance of the page along the X and Y axes and the rotation angle around the Z axis.
优选地,处理器20可根据第一运动矢量与预定位移系数的乘积获得第二运动矢量。这里,预定位移系数可根据经验值来设定,也可基于用户的操作来调整预定位移系数的大小。Preferably, the processor 20 can obtain the second motion vector according to the product of the first motion vector and a predetermined displacement coefficient. Here, the predetermined displacement coefficient may be set according to an empirical value, and the size of the predetermined displacement coefficient may also be adjusted based on a user's operation.
显示器30在处理器20的控制下在屏幕上根据计算的第二运动矢量控制所述页面进行运动。The display 30 controls the page to move on the screen according to the calculated second motion vector under the control of the processor 20 .
针对第一运动矢量和第二运动矢量均包括移动矢量的情况,处理器20可控制显示器30根据第二运动矢量包括的移动矢量控制所述页面沿X轴方向上和/或沿Y轴方向上移动。例如,处理器20控制显示器30控制页面沿X轴和/或Y轴运动第二运动矢量包括的沿X轴方向上和/或沿Y轴方向上的移动距离。In the case where both the first motion vector and the second motion vector include movement vectors, the processor 20 may control the display 30 to control the page along the X-axis direction and/or along the Y-axis direction according to the movement vectors included in the second motion vector move. For example, the processor 20 controls the display 30 to control the moving distance along the X axis and/or along the Y axis included by the second motion vector moving the page along the X axis and/or the Y axis.
针对第一运动矢量和第二运动矢量均还包括绕Z轴的旋转角度的情况,处理器20可控制显示器30根据第二运动矢量包括的旋转矢量控制页面绕Z轴旋转。例如,处理器20控制显示器30在屏幕上控制页面绕Z轴旋转第二运动矢量包括的绕Z轴旋转的旋转角度。In the case where both the first motion vector and the second motion vector further include a rotation angle around the Z axis, the processor 20 may control the display 30 to control the page to rotate around the Z axis according to the rotation vector included in the second motion vector. For example, the processor 20 controls the display 30 to control the rotation angle of the page around the Z axis included by the second motion vector to rotate around the Z axis on the screen.
优选地,当在屏幕上当前显示的页面被运动到所述页面的边缘与所述屏幕的边界重合时,处理器20可控制显示器30以预定方式提示用户。作为示例,所述预定方式可包括以下项中的至少一项:显示提示信息、语音提示、将所述页面的与屏幕的边界重合的边缘进行突出显示。Preferably, when the page currently displayed on the screen is moved to the point where the edge of the page coincides with the boundary of the screen, the processor 20 can control the display 30 to prompt the user in a predetermined manner. As an example, the predetermined manner may include at least one of the following items: displaying prompt information, voice prompt, and highlighting the edge of the page that coincides with the border of the screen.
此外,优选地,根据本发明示例性实施例的便携式终端中的显示装置可还包括:输入接口,处理器20通过输入接口检测在屏幕上执行的预定操作,并响应于所述预定操作,锁定所述页面。当所述页面处于锁定状态时,处理器20控制传感器10不检测便携式终端的第一运动矢量或者控制显示器30在屏幕上不根据第二运动矢量控制所述页面进行运动。In addition, preferably, the display device in the portable terminal according to the exemplary embodiment of the present invention may further include: an input interface through which the processor 20 detects a predetermined operation performed on the screen, and locks the lock in response to the predetermined operation said page. When the page is in the locked state, the processor 20 controls the sensor 10 not to detect the first motion vector of the portable terminal or controls the display 30 not to control the page to move on the screen according to the second motion vector.
应理解,在本发明示例性实施例的便携式终端中的显示装置中,除可根据便携式终端的第一运动矢量控制页面运动之外,处理器20还可根据便携式终端的第一运动矢量控制终端执行相应操作。优选地,在便携式终端处于预定显示模式时,处理器20控制便携式终端不进入锁屏状态,以便于根据便携式终端的第一运动矢量控制终端执行相应操作。It should be understood that, in the display device in the portable terminal according to the exemplary embodiment of the present invention, in addition to controlling the page movement according to the first motion vector of the portable terminal, the processor 20 may also control the terminal according to the first motion vector of the portable terminal Take the appropriate action. Preferably, when the portable terminal is in a predetermined display mode, the processor 20 controls the portable terminal not to enter a lock screen state, so as to control the terminal to perform corresponding operations according to the first motion vector of the portable terminal.
应理解,在本发明示例性实施例中,便携式终端在预定方向上不存在平移可指便携式终端在预定方向上的平移量为零。然而,本发明不限于此,便携式终端在预定方向上不存在平移还可指便携式终端在预定方向上的平移量在设定范围内。It should be understood that, in the exemplary embodiment of the present invention, the absence of translation of the portable terminal in the predetermined direction may mean that the amount of translation of the portable terminal in the predetermined direction is zero. However, the present invention is not limited thereto, and the absence of translation of the portable terminal in the predetermined direction may also mean that the amount of translation of the portable terminal in the predetermined direction is within a set range.
例如,当便携式终端在预定方向上的平移量在设定范围内时,如果第一运动矢量包括的绕X轴的旋转角度小于第一预定旋转矢量且绕Y轴的旋转角度小于第二预定旋转矢量,则处理器20控制终端执行相应操作。作为示例,所述相应操作可包括显示与所述页面相关联的菜单。例如,处理器20可控制在便携式终端屏幕上显示与该页面对应的工具栏、菜单栏、快捷窗口等。For example, when the translation amount of the portable terminal in the predetermined direction is within the set range, if the rotation angle around the X axis included in the first motion vector is smaller than the first predetermined rotation vector and the rotation angle around the Y axis is smaller than the second predetermined rotation vector, the processor 20 controls the terminal to perform corresponding operations. As an example, the corresponding operation may include displaying a menu associated with the page. For example, the processor 20 may control to display a toolbar, a menu bar, a shortcut window, etc. corresponding to the page on the screen of the portable terminal.
根据本发明的示例性实施例还提供一种计算机可读存储介质。该计算机可读存储介质存储有当被处理器执行时使得处理器执行上述便携式终端中的显示方法的程序指令。该计算机可读记录介质是可存储由计算机系统读出的数据的任意数据存储装置。计算机可读记录介质的示例包括:只读存储器、随机存取存储器、只读光盘、磁带、软盘、光数据存储装置和载波(诸如经有线或无线传输路径通过互联网的数据传输)。计算机可读记录介质也可分布于连接网络的计算机系统,从而计算机可读代码以分布式存储和执行。此外,完成本发明的功能程序、代码和代码段可容易地被与本发明相关的领域的普通程序员在本发明的范围之内解释。Exemplary embodiments according to the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores program instructions that, when executed by the processor, cause the processor to execute the above-described display method in the portable terminal. The computer-readable recording medium is any data storage device that can store data read by a computer system. Examples of the computer-readable recording medium include read-only memory, random-access memory, optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet via wired or wireless transmission paths). The computer-readable recording medium can also be distributed over network coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion. In addition, functional programs, codes and code segments for accomplishing the present invention can be easily construed by programmers of ordinary skill in the art to which the present invention pertains within the scope of the present invention.
采用本发明示例性实施例的所述便携式终端中的显示方法和显示装置,能够通过体感操作来控制在便携式终端屏幕上显示的页面进行运动,更符合用户的使用习惯。Using the display method and display device in the portable terminal according to the exemplary embodiments of the present invention, the page displayed on the screen of the portable terminal can be controlled to move through somatosensory operation, which is more in line with the user's usage habits.
此外,采用根据本发明示例性实施例的所述便携式终端中的显示方法和设备,通过体感操作来控制页面运动,并非是通过用户在屏幕上的触摸操作来控制页面运动,从而能够有效防止在控制页面移动过程中的误操作,并且还可在控制页面移动过程中避免对页面的显示内容的遮挡。In addition, using the display method and device in the portable terminal according to the exemplary embodiment of the present invention, the page movement is controlled by the somatosensory operation, not by the user's touch operation on the screen, so that the page movement can be effectively prevented. Misoperations in the process of page movement are controlled, and the occlusion of the displayed content of the page can also be avoided in the process of controlling the page movement.
此外,采用根据本发明示例性实施例的所述便携式终端中的显示方法和设备,在控制页面移动过程中保持便携式终端在预定方向上不存在平移,例如,当便携式终端被平放在水平桌面上时,用户在该水平桌面上移动便携式终端时便携式终端在重力方向上不会产生平移,使得用户在水平桌面上移动便携式终端的动作较容易控制。In addition, with the display method and device in the portable terminal according to the exemplary embodiments of the present invention, the portable terminal is kept free of translation in a predetermined direction during the movement of the control page, for example, when the portable terminal is placed flat on a horizontal desktop When the user moves the portable terminal on the horizontal desktop, the portable terminal will not translate in the direction of gravity, so that the user's action of moving the portable terminal on the horizontal desktop is easier to control.
此外,根据本发明示例性实施例的便携式终端中的显示方法可以被实现为计算机可读记录介质中的计算机代码。本领域技术人员可以根据对上述方法的描述来实现所述计算机代码。当所述计算机代码在计算机中被执行时实现本发明的上述方法。Also, the display method in the portable terminal according to the exemplary embodiment of the present invention can be implemented as computer codes in a computer-readable recording medium. Those skilled in the art can implement the computer code according to the description of the above method. The above-described method of the present invention is implemented when the computer code is executed in a computer.
尽管已经参照其示例性实施例具体显示和描述了本发明,但是本领域的技术人员应该理解,在不脱离权利要求所限定的本发明的精神和范围的情况下,可以对其进行形式和细节上的各种改变。Although the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that form and detail may be made therein without departing from the spirit and scope of the invention as defined in the claims various changes on.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710748729.0A CN109426405A (en) | 2017-08-28 | 2017-08-28 | Display methods and display device in portable terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710748729.0A CN109426405A (en) | 2017-08-28 | 2017-08-28 | Display methods and display device in portable terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109426405A true CN109426405A (en) | 2019-03-05 |
Family
ID=65502388
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710748729.0A Withdrawn CN109426405A (en) | 2017-08-28 | 2017-08-28 | Display methods and display device in portable terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109426405A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112015500A (en) * | 2019-05-31 | 2020-12-01 | 北京搜狗科技发展有限公司 | Data processing method and device and data processing device |
| WO2021012128A1 (en) * | 2019-07-19 | 2021-01-28 | 京东方科技集团股份有限公司 | Mobile terminal-based image display apparatus and method, medium, and electronic device |
-
2017
- 2017-08-28 CN CN201710748729.0A patent/CN109426405A/en not_active Withdrawn
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112015500A (en) * | 2019-05-31 | 2020-12-01 | 北京搜狗科技发展有限公司 | Data processing method and device and data processing device |
| WO2021012128A1 (en) * | 2019-07-19 | 2021-01-28 | 京东方科技集团股份有限公司 | Mobile terminal-based image display apparatus and method, medium, and electronic device |
| CN112534388A (en) * | 2019-07-19 | 2021-03-19 | 京东方科技集团股份有限公司 | Image display device, method, medium and electronic device based on mobile terminal |
| US11328693B2 (en) | 2019-07-19 | 2022-05-10 | Boe Technology Group Co., Ltd. | Image display device, method, medium and electronic device based on mobile terminal |
| CN112534388B (en) * | 2019-07-19 | 2025-01-10 | 京东方科技集团股份有限公司 | Image display device, method, medium and electronic device based on mobile terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11175726B2 (en) | Gesture actions for interface elements | |
| US10635191B2 (en) | Information processing apparatus, program, and control method | |
| US9213436B2 (en) | Fingertip location for gesture input | |
| US10031586B2 (en) | Motion-based gestures for a computing device | |
| US20120036485A1 (en) | Motion Driven User Interface | |
| JP5951781B2 (en) | Multidimensional interface | |
| CN102804258B (en) | Image processing device, image processing method and program | |
| WO2009104062A2 (en) | Selecting a layout | |
| US9400572B2 (en) | System and method to assist reaching screen content | |
| JP2014053794A (en) | Information processing program, information processing apparatus, information processing system, and information processing method | |
| US9400575B1 (en) | Finger detection for element selection | |
| US9665249B1 (en) | Approaches for controlling a computing device based on head movement | |
| CN115516418A (en) | Method and system for processing gestures detected on a display of a foldable device | |
| WO2016165420A1 (en) | Picture display method on mobile terminal and corresponding mobile terminal | |
| JP6843564B2 (en) | Display control device, its control method and program | |
| US20150309681A1 (en) | Depth-based mode switching for touchless gestural interfaces | |
| US9146631B1 (en) | Determining which hand is holding a device | |
| US9898183B1 (en) | Motions for object rendering and selection | |
| CN109426405A (en) | Display methods and display device in portable terminal | |
| US11372533B2 (en) | Display method and display device in portable terminal | |
| US10585485B1 (en) | Controlling content zoom level based on user head movement | |
| CN109753146B (en) | A method for starting an application on a mobile terminal and the mobile terminal | |
| JP2019096182A (en) | Electronic device, display method, and program | |
| JP5475163B2 (en) | Data acquisition device, data acquisition system, data acquisition device control method, and program | |
| JP5247907B1 (en) | Data acquisition device, data acquisition system, data acquisition device control method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190305 |