Nothing Special   »   [go: up one dir, main page]

CN118444832A - Touch operation method and electronic equipment - Google Patents

Touch operation method and electronic equipment Download PDF

Info

Publication number
CN118444832A
CN118444832A CN202311138900.8A CN202311138900A CN118444832A CN 118444832 A CN118444832 A CN 118444832A CN 202311138900 A CN202311138900 A CN 202311138900A CN 118444832 A CN118444832 A CN 118444832A
Authority
CN
China
Prior art keywords
interface
pressure
electronic device
target
touch operation
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.)
Granted
Application number
CN202311138900.8A
Other languages
Chinese (zh)
Other versions
CN118444832B (en
Inventor
王石磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311138900.8A priority Critical patent/CN118444832B/en
Publication of CN118444832A publication Critical patent/CN118444832A/en
Application granted granted Critical
Publication of CN118444832B publication Critical patent/CN118444832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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

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)
  • Position Input By Displaying (AREA)

Abstract

本申请公开一种触控操作方法及电子设备,属于终端技术领域,方法包括响应于用户的单手模式触发操作,电子设备进入单手操作模式;在所述电子设备处于单手操作模式时,响应于用户经由压感按键输入的第一触控操作,第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态;在目标可操控项目处于可被选择状态时,响应于用户经由压感按键输入的第二触控操作,处于可被选择状态的目标可操控项目被选中,并且与处于可被选择状态的目标可操纵项目相对应的功能被触发。这样,即使在单手握持电子设备的情况下,也能够通过压感按键操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。

The present application discloses a touch operation method and an electronic device, belonging to the field of terminal technology, the method includes responding to a user's one-handed mode trigger operation, the electronic device entering the one-handed operation mode; when the electronic device is in the one-handed operation mode, in response to a first touch operation input by the user via a pressure-sensitive key, at least one controllable item in the target control area in the first interface is sequentially in a selectable state; when the target controllable item is in a selectable state, in response to a second touch operation input by the user via a pressure-sensitive key, the target controllable item in the selectable state is selected, and the function corresponding to the target controllable item in the selectable state is triggered. In this way, even when the electronic device is held in one hand, each area on the screen can be controlled by the pressure-sensitive key, thereby improving the user's touch experience when holding the electronic device in one hand.

Description

一种触控操作方法及电子设备Touch operation method and electronic device

技术领域Technical Field

本申请属于终端技术领域,尤其涉及一种触控操作方法及电子设备。The present application belongs to the field of terminal technology, and in particular relates to a touch operation method and an electronic device.

背景技术Background technique

随着智能手机等电子设备的发展,电子设备的屏幕尺寸越来越大。用户可以通过触摸屏幕来与电子设备进行交互。大尺寸的屏幕能够带给用户更宽广的操控区域和更舒适的视觉享受,提高用户体验。With the development of electronic devices such as smart phones, the screen size of electronic devices is getting larger and larger. Users can interact with electronic devices by touching the screen. Large-size screens can bring users a wider control area and more comfortable visual enjoyment, improving user experience.

但是,大尺寸的屏幕也给用户带来一些操作上的不便。例如,用户单手握持电子设备时,由于电子设备的屏幕尺寸较大,导致手指通常无法操控到屏幕的所有区域,从而影响用户的操控体验。However, large-size screens also bring some operational inconveniences to users. For example, when a user holds an electronic device in one hand, due to the large screen size of the electronic device, the finger is usually unable to control all areas of the screen, thereby affecting the user's control experience.

因此,如何提高单手握持电子设备时的操控体验是目前亟需解决的技术问题。Therefore, how to improve the control experience when holding an electronic device with one hand is a technical problem that urgently needs to be solved.

发明内容Summary of the invention

本申请提供一种触控操作方法及电子设备,能够解决单手握持电子设备时无法操控到屏幕的所有区域的问题。The present application provides a touch operation method and an electronic device, which can solve the problem that all areas of the screen cannot be controlled when holding the electronic device with one hand.

第一方面,本申请提供一种触控操作方法,所述方法应用于电子设备,所述电子设备包括至少一个压感按键,所述至少一个压感按键用于接收用户输入的触控操作,所述方法包括:所述电子设备显示第一界面,其中所述第一界面包括至少一个可操控项目;响应于用户的单手模式触发操作,所述电子设备进入单手操作模式;在所述电子设备处于单手操作模式时,响应于用户经由所述压感按键输入的第一触控操作,所述第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态;在所述至少一个可操控项目中的目标可操控项目处于可被选择状态时,响应于用户经由所述压感按键输入的第二触控操作,处于可被选择状态的目标可操控项目被选中,并且与所述处于可被选择状态的目标可操纵项目相对应的功能被触发。In a first aspect, the present application provides a touch operation method, which is applied to an electronic device, wherein the electronic device includes at least one pressure-sensitive button, and the at least one pressure-sensitive button is used to receive a touch operation input by a user. The method includes: the electronic device displays a first interface, wherein the first interface includes at least one controllable item; in response to a user's one-handed mode trigger operation, the electronic device enters a one-handed operation mode; when the electronic device is in the one-handed operation mode, in response to a first touch operation input by the user via the pressure-sensitive button, at least one controllable item in a target control area in the first interface is sequentially in a selectable state; when a target controllable item among the at least one controllable item is in a selectable state, in response to a second touch operation input by the user via the pressure-sensitive button, the target controllable item in the selectable state is selected, and a function corresponding to the target controllable item in the selectable state is triggered.

这样,用户可以通过对单手可触控到的压感按键输入不同的触控操作,实现对用户界面中任意区域的内容进行操控。这样,即使在单手握持电子设备的情况下,也能够通过压感按键操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。In this way, the user can input different touch operations on the pressure-sensitive buttons that can be touched by one hand to control the content of any area in the user interface. In this way, even when holding the electronic device with one hand, the pressure-sensitive buttons can be used to control each area on the screen, thereby improving the user's touch experience when holding the electronic device with one hand.

在一种可实现方式中,在响应于用户经由所述压感按键输入的第一触控操作,所述第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态之前,还包括:基于眼动识别算法或者角度识别算法,在所述第一界面中确定所述目标操控区域;基于所述目标操控区域,显示第二界面;所述第二界面中的所述目标操控区域采用第一显示方式显示,所述第二界面中除所述目标操控区域以外的区域采用第二显示方式显示,所述第一显示方式和所述第二显示方式不同。In one implementable manner, in response to a first touch operation input by a user via the pressure-sensitive button, before at least one controllable item in the target control area in the first interface is sequentially in a selectable state, it also includes: determining the target control area in the first interface based on an eye movement recognition algorithm or an angle recognition algorithm; displaying a second interface based on the target control area; displaying the target control area in the second interface using a first display mode, and displaying the area other than the target control area in the second interface using a second display mode, and the first display mode and the second display mode are different.

这样,基于眼动识别算法或者角度识别算法,可以将选择区域范围缩小,从而快速定位到目标可操控项目。In this way, based on the eye movement recognition algorithm or the angle recognition algorithm, the selection area can be narrowed down, thereby quickly locating the target controllable item.

在一种可实现方式中,基于所述眼动识别算法,在所述第一界面中确定所述目标操控区域,包括:在所述电子设备处于单手操作模式时,采集用户面部图像;对所述用户面部图像进行处理,得到所述用户的眼动数据;基于所述眼动数据,在所述第一界面中确定所述目标操控区域。In one implementable manner, based on the eye movement recognition algorithm, the target control area is determined in the first interface, including: when the electronic device is in a one-handed operation mode, collecting a user facial image; processing the user facial image to obtain the user's eye movement data; and based on the eye movement data, determining the target control area in the first interface.

这样,可以在用户注视目标可操控项目时,采集的用户面部图像,并对用户面部图像进行眼动识别处理,确定用户的注视区域,即目标操控区域。In this way, when the user gazes at the target controllable item, the user's facial image can be collected, and eye movement recognition processing can be performed on the user's facial image to determine the user's gaze area, that is, the target control area.

在一种可实现方式中,基于所述角度识别算法,在所述第一界面中确定所述目标操控区域,包括:在所述电子设备处于单手操作模式时,获取所述电子设备的第一角度;在所述电子设备的角度由所述第一角度变化为第二角度,且所述电子设备保持所述第二角度的时长大于第二预设时长的情况下,基于所述第一角度和所述第二角度,确定所述电子设备的倾斜角度;基于所述电子设备的倾斜角度,在所述第一界面中确定所述目标操控区域。In one implementable manner, based on the angle recognition algorithm, the target control area is determined in the first interface, including: when the electronic device is in a one-handed operation mode, obtaining a first angle of the electronic device; when the angle of the electronic device changes from the first angle to a second angle, and the electronic device maintains the second angle for a period longer than a second preset period, determining the tilt angle of the electronic device based on the first angle and the second angle; based on the tilt angle of the electronic device, determining the target control area in the first interface.

用户单手握持电子设备时,电子设备的倾斜角度可以反映用户期望操控的屏幕范围。因此,本申请可以通过角度识别算法,识别用户握持电子设备时,电子设备的倾斜角度,然后基于电子设备的倾斜角度确定用户期望操控的目标操控区域。When a user holds an electronic device with one hand, the tilt angle of the electronic device can reflect the screen range that the user expects to manipulate. Therefore, the present application can use an angle recognition algorithm to recognize the tilt angle of the electronic device when the user holds the electronic device, and then determine the target manipulation area that the user expects to manipulate based on the tilt angle of the electronic device.

在一种可实现方式中,基于所述倾斜角度,在所述第一界面中确定所述目标操控区域,包括:获取多个预设角度与所述电子设备的各显示区域之间的映射关系;基于所述映射关系,确定所述倾斜角度在所述第一界面中对应的所述目标操控区域。In one implementable method, based on the tilt angle, the target control area is determined in the first interface, including: obtaining a mapping relationship between multiple preset angles and each display area of the electronic device; based on the mapping relationship, determining the target control area corresponding to the tilt angle in the first interface.

在一种可实现方式中,所述基于所述目标操控区域,显示第二界面,包括:在所述第二界面以图形框的方式圈定所述目标操控区域;或者,在所述第二界面以所述第一显示样式显示所述目标操控区域内各可操控项目,以所述第二显示样式显示所述第二界面内除所述目标操控区域以外的可操控项目,所述第一显示样式与所述第二显示样式不同。In one implementable manner, displaying a second interface based on the target control area includes: encircling the target control area in a graphic frame on the second interface; or, displaying each controllable item in the target control area in the first display style on the second interface, and displaying the controllable items in the second interface except the target control area in the second display style, wherein the first display style is different from the second display style.

这样,用户可通过屏幕上显示的第二界面,确定目标操控区域所在位置。In this way, the user can determine the location of the target control area through the second interface displayed on the screen.

在一种可实现方式中,所述响应于用户经由所述压感按键输入的第一触控操作,所述第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态,包括:在所述电子设备显示第二界面开始的第一预设时长内,响应于用户经由所述压感按键输入的第一触控操作,所述第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态。In one implementable manner, in response to a first touch operation input by a user via the pressure-sensitive button, at least one controllable item in a target control area in the first interface is sequentially in a selectable state, including: within a first preset time period starting from the start of the electronic device displaying the second interface, in response to a first touch operation input by a user via the pressure-sensitive button, at least one controllable item in the target control area in the first interface is sequentially in a selectable state.

在一种可实现方式中,所述第一触控操作包括滑动操作,所述第二触控操作包括按压操作。In an implementable manner, the first touch operation includes a sliding operation, and the second touch operation includes a pressing operation.

在一种可实现方式中,响应于用户经由所述压感按键输入的第一触控操作,所述第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态,包括:响应于用户经由所述压感按键输入的第一子触控操作,确定光标的起始位置,并且所述光标在所述第一界面沿第一坐标轴移动;其中,当所述光标驻留在所述目标操控区域中的第一可操控项目时,所述第一可操控项目处于可被选择状态;所述第一可操控项目为所述至少一个可操控项目中任意一个可操控项目;和/或,响应于用户经由所述压感按键输入的第二子触控操作,所述光标在所述第一界面沿第二坐标轴移动,所述第一坐标轴与所述第二坐标轴相互垂直;其中,所述第一触控操作包括所述第一子触控操作和/或第二子触控操作。In one implementable manner, in response to a first touch operation input by a user via the pressure-sensitive key, at least one controllable item in a target control area in the first interface is sequentially in a selectable state, including: in response to a first sub-touch operation input by a user via the pressure-sensitive key, determining a starting position of a cursor, and moving the cursor along a first coordinate axis in the first interface; wherein, when the cursor resides on a first controllable item in the target control area, the first controllable item is in a selectable state; the first controllable item is any one of the at least one controllable items; and/or, in response to a second sub-touch operation input by a user via the pressure-sensitive key, the cursor moves along a second coordinate axis in the first interface, and the first coordinate axis and the second coordinate axis are perpendicular to each other; wherein, the first touch operation includes the first sub-touch operation and/or the second sub-touch operation.

这样,通过对压感按键输入不同的触控操作类型,可以控制光标沿X轴和Y轴两个维度走焦,这样,可以通过光标选择用户界面上任意位置的可操控项目。In this way, by inputting different touch operation types to the pressure-sensitive buttons, the cursor can be controlled to move in two dimensions, the X-axis and the Y-axis, so that a controllable item at any position on the user interface can be selected by the cursor.

在一种可实现方式中,所述第一子触控操作包括滑动操作,所述第二子触控操作包括不离手按压操作,所述第二触控操作包括离手操作。In an implementable manner, the first sub-touch operation includes a sliding operation, the second sub-touch operation includes a hands-on pressing operation, and the second touch operation includes a hands-off operation.

在一种可实现方式中,所述光标在所述第一界面沿第二坐标轴移动,包括:获取所述第二子触控操作的压力值;基于所述压力值,确定所述光标在所述第一界面沿第二坐标轴移动的目标移动方向;所述光标在沿所述第二坐标轴的目标移动方向移动。In one possible implementation, the cursor moves along the second coordinate axis on the first interface, including: obtaining the pressure value of the second sub-touch operation; based on the pressure value, determining the target movement direction of the cursor along the second coordinate axis on the first interface; and the cursor moves in the target movement direction along the second coordinate axis.

这样,通过对压感按键施加不同的压力,控制光标在一个坐标轴的两个方向自由移动。这样,即使在单手握持电子设备的情况下,也能够操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。In this way, by applying different pressures to the pressure-sensitive buttons, the cursor can be controlled to move freely in two directions of a coordinate axis. In this way, even when holding the electronic device with one hand, every area on the screen can be controlled, improving the user's touch experience when holding the electronic device with one hand.

在一种可实现方式中,基于所述压力值,确定所述光标在所述第一界面沿第二坐标轴移动的目标移动方向,包括:在所述压力值逐渐增大的情况下,确定所述目标移动方向为所述第二坐标轴的第一方向;在所述压力值逐渐减小的情况下,确定所述目标移动方向为所述第二坐标轴的第二方向;所述第一方向与所述第二方向为相反的两个方向。In one implementable manner, based on the pressure value, the target moving direction of the cursor along the second coordinate axis in the first interface is determined, including: when the pressure value gradually increases, determining the target moving direction to be the first direction of the second coordinate axis; when the pressure value gradually decreases, determining the target moving direction to be the second direction of the second coordinate axis; the first direction and the second direction are two opposite directions.

在一种可实现方式中,所述至少一个压感按键包括第一压感按键和第二压感按键,所述第一压感按键和第二压感按键相对设置于所述电子设备的两侧;所述确定光标的起始位置,包括:确定接收所述第一子触控操作的压感按键;在接收所述第一子触控操作的压感按键为第一压感按键的情况下,确定所述光标的起始位置为远离所述第一压感按键的位置;在接收所述第一子触控操作的压感按键为第二压感按键的情况下,确定所述光标的起始位置为远离所述第二压感按键的位置。In one implementable embodiment, the at least one pressure-sensitive button includes a first pressure-sensitive button and a second pressure-sensitive button, and the first pressure-sensitive button and the second pressure-sensitive button are relatively arranged on two sides of the electronic device; determining the starting position of the cursor includes: determining the pressure-sensitive button that receives the first sub-touch operation; when the pressure-sensitive button that receives the first sub-touch operation is the first pressure-sensitive button, determining the starting position of the cursor to be a position away from the first pressure-sensitive button; when the pressure-sensitive button that receives the first sub-touch operation is the second pressure-sensitive button, determining the starting position of the cursor to be a position away from the second pressure-sensitive button.

这样,基于用户握持电子设备的左右手,判断光标的最优起始位置,以使光标从该最优起始位置走焦,能够尽快选中目标可操控项目。In this way, the optimal starting position of the cursor is determined based on the left and right hands of the user holding the electronic device, so that the cursor is focused from the optimal starting position and the target controllable item can be selected as quickly as possible.

在一种可实现方式中,所述响应于用户的单手模式触发操作,所述电子设备进入单手操作模式,包括:响应于用户经由所述压感按键输入的第三触控操作,所述电子设备进入所述单手操作模式;或者,响应于用户经由所述第一界面上单手操作模式控件输入的点击操作,进入所述单手操作模式;其中,所述第三触控操作为单次按压操作或者两次按压操作,其中,所述两次按压操作的时间间隔小于预设时间间隔。In one implementable manner, in response to a user's one-handed mode trigger operation, the electronic device enters the one-handed operation mode, including: in response to a third touch operation input by the user via the pressure-sensitive button, the electronic device enters the one-handed operation mode; or, in response to a click operation input by the user via the one-handed operation mode control on the first interface, the electronic device enters the one-handed operation mode; wherein the third touch operation is a single press operation or a double press operation, and wherein the time interval between the two press operations is less than a preset time interval.

这样,可以通过多种方式,触发启动单手模式。In this way, the one-handed mode can be triggered in a variety of ways.

在一种可实现方式中,所述目标可操控项目处于可被选择状态时的显示样式与所述第一界面中除所述目标可操控项目以外的其他可操控项目的显示样式不同。In an implementable manner, a display style of the target controllable item when it is in a selectable state is different from a display style of other controllable items in the first interface except the target controllable item.

这样,用户可以基于用户界面中各可操控项目的显示样式,确定当前处于可被选择状态的可操控项目。In this way, the user can determine the controllable items that are currently in a selectable state based on the display styles of the controllable items in the user interface.

在一种可实现方式中,所述显示样式包括高亮显示样式、悬浮显示样式、动态显示样式、放大显示样式和缩小显示样式。In an implementable manner, the display styles include a highlight display style, a suspended display style, a dynamic display style, an enlarged display style, and a reduced display style.

在一种可实现方式中,所述可操控项目包括控件和链接。In one achievable manner, the manipulable items include controls and links.

第二方面,本申请提供一种触控操作方法,所述方法应用于电子设备,所述电子设备包括压感按键,所述压感按键用于接收用户输入的触控操作,所述方法包括:所述电子设备显示第一界面;在响应于用户经由压感按键输入的第四触控操作,接收到可缩放通知信息的情况下,在所述第一界面中确定目标缩放区域;其中,所述可缩放通知信息用于通知所述第一界面包括可缩放内容;在所述目标缩放区域中确定对所述可缩放内容进行缩放操作的缩放焦点;响应于用户经由压感按键输入的第五触控操作,基于所述缩放焦点,对所述可缩放内容进行缩放操作。In a second aspect, the present application provides a touch operation method, which is applied to an electronic device, wherein the electronic device includes a pressure-sensitive button, and the pressure-sensitive button is used to receive a touch operation input by a user. The method includes: the electronic device displays a first interface; in response to a fourth touch operation input by the user via the pressure-sensitive button, upon receiving a zoomable notification message, determining a target zoom area in the first interface; wherein the zoomable notification message is used to notify that the first interface includes zoomable content; determining a zoom focus for zooming the zoomable content in the target zoom area; and in response to a fifth touch operation input by the user via the pressure-sensitive button, zooming the zoomable content based on the zoom focus.

这样,如果用户界面包括可缩放内容,则可以基于眼动识别算法或者角度识别算法,确定目标缩放区域。进一步的在目标缩放区域中确定缩放焦点。这样,可以通过对压感按键输入的向上滑动操作或向下滑动操作,实现基于缩放焦点,对可缩放内容进行缩放操作。这样,即使在单手握持电子设备的情况下,也能够实现对屏幕上每个区域进行缩放的功能,提高用户在单手握持电子设备时的触控体验。In this way, if the user interface includes scalable content, the target zoom area can be determined based on the eye movement recognition algorithm or the angle recognition algorithm. The zoom focus is further determined in the target zoom area. In this way, the zoomable content can be zoomed based on the zoom focus by sliding up or sliding down on the pressure-sensitive key input. In this way, even when the electronic device is held in one hand, the function of zooming each area on the screen can be realized, thereby improving the user's touch experience when holding the electronic device in one hand.

在一种可实现方式中,在所述目标缩放区域中确定对所述可缩放内容进行缩放操作的缩放焦点,包括:将所述目标缩放区域的中心确定为对所述可缩放内容进行缩放操作的缩放焦点。In an implementable manner, determining a zoom focus for zooming the zoomable content in the target zoom area includes: determining a center of the target zoom area as the zoom focus for zooming the zoomable content.

在一种可实现方式中,响应于用户经由压感按键输入的第五触控操作,基于所述缩放焦点,对所述可缩放内容进行缩放操作,包括:在所述第五触控操作为向上滑动操作的情况下,基于所述缩放焦点,对所述可缩放内容进行放大操作;在所述第五触控操作为向下滑动操作的情况下,基于所述缩放焦点,对所述可缩放内容进行缩小操作;或者,在所述第五触控操作为向下滑动操作的情况下,基于所述缩放焦点,对所述可缩放内容进行放大操作;在所述第五触控操作为向上滑动操作的情况下,基于所述缩放焦点,对所述可缩放内容进行缩小操作。In one implementable manner, in response to a fifth touch operation input by the user via a pressure-sensitive key, a zoom operation is performed on the zoomable content based on the zoom focus, including: when the fifth touch operation is an upward sliding operation, based on the zoom focus, a zoomable content is enlarged based on the zoom focus; when the fifth touch operation is a downward sliding operation, a zoomable content is reduced based on the zoom focus; or, when the fifth touch operation is a downward sliding operation, a zoomable content is enlarged based on the zoom focus; when the fifth touch operation is an upward sliding operation, a zoomable content is reduced based on the zoom focus.

在一种可实现方式中,响应于用户经由压感按键输入的第五触控操作,基于所述缩放焦点,对所述可缩放内容进行缩放操作之后,还包括:显示对所述可缩放内容进行缩放操作之后的第三界面,所述第三界面包括至少一个可操控项目;响应于用户经由所述压感按键输入的第一触控操作,所述第三界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态;在所述至少一个可操控项目中的目标可操控项目处于可被选择状态时,响应于用户对所述压感按键输入的第二触控操作,处于可被选择状态的目标可操控项目被选中,并且与所述处于可被选择状态的目标可操纵项目相对应的功能被触发。In one implementable manner, in response to a fifth touch operation input by a user via a pressure-sensitive key, after performing a zoom operation on the zoomable content based on the zoom focus, the further comprising: displaying a third interface after the zoom operation on the zoomable content, the third interface comprising at least one controllable item; in response to a first touch operation input by a user via the pressure-sensitive key, at least one controllable item in a target control area in the third interface is sequentially in a selectable state; when a target controllable item among the at least one controllable item is in a selectable state, in response to a second touch operation input by the user to the pressure-sensitive key, the target controllable item in the selectable state is selected, and a function corresponding to the target controllable item in the selectable state is triggered.

第三方面,本申请提供一种电子设备,所述电子设备包括存储器和处理器;所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,使所述电子设备执行如第一方面或第二方面中任一项所述的方法。In a third aspect, the present application provides an electronic device, comprising a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes a method as described in any one of the first aspect or the second aspect.

第四方面,本申请提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得计算机执行如第一方面或第二方面中任一项所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program or instructions is stored in the computer-readable storage medium, and when the computer program or instructions are run on a computer, the computer executes a method as described in any one of the first aspect or the second aspect.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将结合附图对实施例或现有技术中的技术方案作简单地介绍,显而易见地,各附图仅示出了本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些实施例获得其他实施例。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments or the technical solutions in the prior art will be briefly introduced below in conjunction with the accompanying drawings. Obviously, the accompanying drawings only show some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without paying creative work.

图1为本申请实施例提供的一种触控操作的应用场景示意图;FIG1 is a schematic diagram of an application scenario of a touch operation provided by an embodiment of the present application;

图2为本申请实施例提供的一种电子设备的硬件结构示意图;FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

图3为本申请实施例提供的一种电子设备的软件框架图;FIG3 is a software framework diagram of an electronic device provided in an embodiment of the present application;

图4为本申请实施例提供的又一种电子设备的硬件结构示意图;FIG4 is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application;

图5为本申请实施例一提供的一种触控操作方法的工作流程示意图;FIG5 is a schematic diagram of a workflow of a touch operation method provided in Embodiment 1 of the present application;

图6A为本申请实施例提供的一种包括注视区域的用户界面示例图;FIG6A is an example diagram of a user interface including a gaze area provided in an embodiment of the present application;

图6B为本申请实施例提供的又一种包括注视区域的用户界面示例图;FIG6B is another example diagram of a user interface including a gaze area provided in an embodiment of the present application;

图7为本申请实施例一提供的一种执行走焦操作对应的用户界面示例图;FIG7 is an example diagram of a user interface corresponding to a focus-shifting operation provided in Embodiment 1 of the present application;

图8为本申请实施例二提供的一种触控操作方法的工作流程示意图;FIG8 is a schematic diagram of a workflow of a touch operation method provided in Embodiment 2 of the present application;

图9为本申请实施例三提供的一种触控操作方法的工作流程示意图;FIG9 is a schematic diagram of a workflow of a touch operation method provided in Embodiment 3 of the present application;

图10A为本申请实施例三提供的一种执行走焦操作对应的用户界面示例图;FIG10A is an example diagram of a user interface corresponding to a focus-shifting operation provided in Embodiment 3 of the present application;

图10B为本申请实施例三提供的又一种执行走焦操作对应的用户界面示例图;FIG10B is an example diagram of a user interface corresponding to another focus-shifting operation provided in Embodiment 3 of the present application;

图11为本申请实施例四提供的一种触控操作方法的工作流程图示意图;FIG11 is a schematic diagram of a workflow diagram of a touch operation method provided in Embodiment 4 of the present application;

图12为本申请实施例四提供的执行缩放操作对应的用户界面示例图;FIG12 is an example diagram of a user interface corresponding to a zoom operation provided in Embodiment 4 of the present application;

图13为本申请实施例提供的一种触控操作方法的工作流程图示意图;FIG13 is a schematic diagram of a workflow diagram of a touch operation method provided in an embodiment of the present application;

图14为本申请实施例提供的又一种触控操作方法的工作流程图示意图。FIG. 14 is a schematic diagram of a workflow diagram of another touch operation method provided in an embodiment of the present application.

具体实施方式Detailed ways

随着智能手机等电子设备的发展,电子设备的屏幕尺寸越来越大。大尺寸的屏幕能够带给用户更宽广的操控区域和更舒适的视觉享受,提高用户体验。但是,大尺寸的屏幕也给用户带来一些操作上的不便。例如,用户单手握持电子设备时,由于电子设备的屏幕尺寸较大,导致手指通常无法操控到屏幕的所有区域,从而影响用户的操控体验。With the development of electronic devices such as smart phones, the screen size of electronic devices is getting larger and larger. Large screens can provide users with a wider control area and more comfortable visual enjoyment, improving user experience. However, large screens also bring some operational inconveniences to users. For example, when a user holds an electronic device with one hand, due to the large screen size of the electronic device, the fingers usually cannot control all areas of the screen, thus affecting the user's control experience.

示例性的,如图1所示,用户单手握持电子设备100时,手指能够较好地触控到显示区域3,但是,手指却很难触控到显示区域1、显示区域2和显示区域4。For example, as shown in FIG. 1 , when a user holds the electronic device 100 in one hand, the finger can touch the display area 3 well, but it is difficult for the finger to touch the display area 1 , the display area 2 , and the display area 4 .

为解决上述问题,本申请实施例提供一种触控操作方法,该方法应用于具有压感按键的电子设备。该方法在进入单手操作模式后,如果检测到用户对压感按键的第一触控操作,则控制电子设备的用户界面中可操控项目依次处于可被选择状态;如果在目标可操控项目处于可被选择状态时,响应于检测到对压感按键的第二触控操作,选中目标可操控项目,并触发目标可操控项目对应的功能。这样,用户可以通过对单手可触控到的压感按键输入不同的触控操作,实现对用户界面中任意区域的内容进行操控,提高用户单手握持电子设备时的操控体验。To solve the above problems, an embodiment of the present application provides a touch operation method, which is applied to an electronic device with a pressure-sensitive button. After entering the one-handed operation mode, if the method detects a first touch operation of the user on the pressure-sensitive button, the controllable items in the user interface of the electronic device are controlled to be in a selectable state in sequence; if the target controllable item is in a selectable state, in response to detecting a second touch operation on the pressure-sensitive button, the target controllable item is selected, and the function corresponding to the target controllable item is triggered. In this way, the user can input different touch operations on the pressure-sensitive buttons that can be touched by one hand to realize the control of the content of any area in the user interface, thereby improving the user's control experience when holding the electronic device with one hand.

本申请实施例中电子设备可以是有触控屏且具备压感按键的设备,包括但不限于智能手机、平板电脑、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、上网本、个人数字助理(personal digital assistant,PDA)、人工智能(Artificial Intelligence,AI)终端等终端设备。本申请实施例对电子设备的具体类型不作任何限制。In the embodiments of the present application, the electronic device may be a device with a touch screen and pressure-sensitive buttons, including but not limited to smart phones, tablet computers, wearable devices, augmented reality (AR)/virtual reality (VR) devices, netbooks, personal digital assistants (PDA), artificial intelligence (AI) terminals, and other terminal devices. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

下面以电子设备100为智能手机为例,对电子设备100的硬件结构进行示例性说明。The following takes the electronic device 100 as a smart phone as an example to exemplarily illustrate the hardware structure of the electronic device 100.

如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diodes,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。电子设备100中可以设置多个扬声器170A,例如,可以在电子设备100的顶部设置一个扬声器170A,还可以在底部设置一个扬声器170A等。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A. A plurality of speakers 170A can be provided in the electronic device 100. For example, a speaker 170A can be provided on the top of the electronic device 100, and a speaker 170A can also be provided on the bottom, and so on.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。在一些实施例中,也可以将扬声器170A和受话器170B设置为一个部件,本申请对此不进行限制。The receiver 170B, also called a "receiver", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear. In some embodiments, the speaker 170A and the receiver 170B can also be set as one component, which is not limited in this application.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

图3是本申请实施例的电子设备100的软件结构框图。FIG. 3 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 3 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

2D图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

下面对本申请实施例的触控操作方法进行详细说明。The touch operation method of the embodiment of the present application is described in detail below.

本申请实施例提供的触控操作方法,可以应用于具有压感按键的电子设备。首先对本申请实施例中压感按键进行说明。The touch operation method provided in the embodiment of the present application can be applied to an electronic device with a pressure-sensitive button. First, the pressure-sensitive button in the embodiment of the present application is described.

如图4所示,电子设备100上设置有触控式按键,也可称为压感按键190A。其中,压感按键190A可以设置在单手握持电子设备时,手指能够触控到的位置。例如,压感按键190A可以位于电子设备100的侧面、与音量键相同的位置。As shown in FIG4 , a touch-sensitive button, also called a pressure-sensitive button 190A, is provided on the electronic device 100. The pressure-sensitive button 190A can be provided at a position that can be touched by a finger when the electronic device is held in one hand. For example, the pressure-sensitive button 190A can be located on the side of the electronic device 100, at the same position as the volume button.

本申请实施例中,电子设备100可以包括一个或者多个压感按键190A。例如,可以包括两个压感按键190A。如果电子设备100包括两个压感按键190A,可以将两个压感按键190A分别设置在电子设备100的相对的两个侧面。这样,用户左手单手握持电子设备时,可以触控位于电子设备左侧的压感按键190A;用户右手单手握持电子设备时,可以触控位于电子设备右侧的压感按键190A。In the embodiment of the present application, the electronic device 100 may include one or more pressure-sensitive buttons 190A. For example, two pressure-sensitive buttons 190A may be included. If the electronic device 100 includes two pressure-sensitive buttons 190A, the two pressure-sensitive buttons 190A may be respectively arranged on two opposite sides of the electronic device 100. In this way, when the user holds the electronic device with one hand in the left hand, the pressure-sensitive button 190A located on the left side of the electronic device can be touched; when the user holds the electronic device with one hand in the right hand, the pressure-sensitive button 190A located on the right side of the electronic device can be touched.

当手指触控压感按键190A时,压感按键190A能够识别出手指触控压感按键190A的压力、位置、时长等触控信息,并能够基于触控信息,确定触控操作类型。When a finger touches the pressure-sensitive key 190A, the pressure-sensitive key 190A can identify touch information such as the pressure, position, and duration of the finger touching the pressure-sensitive key 190A, and can determine the type of touch operation based on the touch information.

示例性的,本申请实施例中触控操作类型可以包括:按压操作、滑动操作、不离手按压操作和离手操作。Exemplarily, the touch operation types in the embodiments of the present application may include: a press operation, a slide operation, a press operation without releasing the hand, and a release operation.

按压操作是指作用于相同触控位置较短时间的触控操作。也就是说,手指触控压感按键190A后,快速离开压感按键190A。其中,手指停留在压感按键190A的时长小于按压时长阈值。A pressing operation refers to a touch operation that acts on the same touch position for a short time. That is, after the finger touches the pressure-sensitive key 190A, it quickly leaves the pressure-sensitive key 190A. The time the finger stays on the pressure-sensitive key 190A is less than the pressing time threshold.

按压操作又可以根据触控压感按键190A的触控压力的大小,分为多个按压操作类型。例如,可以将触控压力值F满足F<F1的按压操作称为轻触按压操作;将触控压力值F满足F1≤F<F2的按压操作称为轻按按压操作;将触控压力值F满足F2≤F的按压操作称为重按按压操作。其中,0≤F1<F2。The pressing operation can be divided into multiple pressing operation types according to the size of the touch pressure of the touch pressure-sensitive key 190A. For example, the pressing operation where the touch pressure value F satisfies F<F1 can be called a light touch pressing operation; the pressing operation where the touch pressure value F satisfies F1≤F<F2 can be called a light press pressing operation; and the pressing operation where the touch pressure value F satisfies F2≤F can be called a heavy press pressing operation. Among them, 0≤F1<F2.

滑动操作是指手指触控压感按键190A,并在压感按键190A上产生位移大于或等于移动阈值的操作。滑动操作又可以分为向上滑动操作和向下滑动操作。其中,向上滑动操作是指手指由下向上在压感按键190A上滑动,向下滑动操作是指手指由上向下在压感按键190A上滑动。The sliding operation refers to an operation in which a finger touches the pressure-sensitive key 190A and generates a displacement on the pressure-sensitive key 190A that is greater than or equal to the movement threshold. The sliding operation can be divided into an upward sliding operation and a downward sliding operation. Among them, the upward sliding operation refers to the finger sliding on the pressure-sensitive key 190A from bottom to top, and the downward sliding operation refers to the finger sliding on the pressure-sensitive key 190A from top to bottom.

不离手按压操作是指作用于相同触控位置较长时间的触控操作。也就是说,手指触控压感按键190A后,持续对压感按键190A施压一段时间,并未离开压感按键190A。其中,手指停留在压感按键190A的时长大于或者等于按压时长阈值。The continuous pressing operation refers to a touch operation that acts on the same touch position for a long time. That is, after the finger touches the pressure-sensitive key 190A, it continues to press the pressure-sensitive key 190A for a period of time without leaving the pressure-sensitive key 190A. The time that the finger stays on the pressure-sensitive key 190A is greater than or equal to the pressing time threshold.

离手操作是指手指完成按压操作或滑动操作等触控操作后,离开压感按键190A的操作。The hand-off operation refers to the operation in which the finger leaves the pressure-sensitive button 190A after completing a touch operation such as a pressing operation or a sliding operation.

需要说明的是,上述仅以触控操作类型可以包括:按压操作、不离手按压操作、滑动操作和离手操作为例进行示例性说明,并不表示对触控操作类型的限定,实际应用中,可以根据应用场景,设计更多的操作类型。It should be noted that the above description only uses the examples that the touch operation types may include: press operation, press operation without releasing the hand, slide operation and release operation, and does not represent a limitation on the touch operation types. In actual applications, more operation types can be designed according to the application scenarios.

还需要说明的是,上述仅以按压操作包括轻触按压操作、轻按按压操作和重按按压操作为例进行示例性说明,实际应用中,可以根据实际应用场景,将压力值划分为更多的压力等级,从而设计更多的操作类型。It should also be noted that the above only uses the pressing operation including light touch pressing operation, light press pressing operation and hard press pressing operation as an example for illustrative explanation. In actual applications, the pressure value can be divided into more pressure levels according to the actual application scenario, so as to design more operation types.

下面结合附图对本申请实施例提供的触控操作方法进行说明。The touch operation method provided in the embodiment of the present application is described below with reference to the accompanying drawings.

实施例一Embodiment 1

图5为本申请实施例一提供的一种触控操作方法的流程图。如图5所示,该方法可以包括以下步骤:FIG5 is a flow chart of a touch operation method provided in Embodiment 1 of the present application. As shown in FIG5 , the method may include the following steps:

S201,检测电子设备的屏幕状态是否为亮屏状态。S201, detecting whether the screen status of the electronic device is in a bright screen status.

电子设备的屏幕状态包括亮屏状态和熄屏状态。The screen status of an electronic device includes a screen-on status and a screen-off status.

在一些实施例中,检测电子设备的屏幕状态,可以采用下述方式实现:由于屏幕可以响应于应用程序框架(Framework)层发送的屏幕点亮指令点亮屏幕,使电子设备的屏幕状态为亮屏状态。基于此,本申请实施例可以检测电子设备的屏幕是否接收到屏幕点亮指令,在检测到电子设备的屏幕接收到屏幕点亮指令的情况下,确定屏幕状态为亮屏状态。在没有检测到电子设备的屏幕接收到屏幕点亮指令的情况下,确定屏幕状态为熄屏状态。In some embodiments, the screen state of the electronic device can be detected in the following manner: since the screen can light up the screen in response to the screen lighting instruction sent by the application framework layer, the screen state of the electronic device is the screen-on state. Based on this, the embodiment of the present application can detect whether the screen of the electronic device receives the screen lighting instruction, and when it is detected that the screen of the electronic device receives the screen lighting instruction, the screen state is determined to be the screen-on state. When it is not detected that the screen of the electronic device receives the screen lighting instruction, the screen state is determined to be the screen-off state.

需要说明的是,上述实施例仅以检测电子设备的屏幕是否接收到屏幕点亮指令为例进行示例性说明,并不表示对检测电子设备的屏幕状态的方法的限定。例如,也可以检测电子设备的其他能够表征电子设备的屏幕状态的参数或指令。It should be noted that the above embodiment is only illustrative of detecting whether the screen of an electronic device receives a screen lighting instruction, and does not limit the method of detecting the screen state of the electronic device. For example, other parameters or instructions of the electronic device that can characterize the screen state of the electronic device can also be detected.

S202,在屏幕状态为亮屏状态的情况下,确定是否检测到用户对压感按键的轻触按压操作。S202: When the screen is in the on state, determine whether a light touch and press operation of a pressure-sensitive key by a user is detected.

在屏幕状态为亮屏状态的情况下,电子设备的屏幕上显示用户界面,用户界面上可以包括一个或者多个应用程序控件、链接等可操控项目。When the screen is in the bright screen state, a user interface is displayed on the screen of the electronic device, and the user interface may include one or more controllable items such as application controls and links.

如果当前期望触控的屏幕区域为单手握持电子设备时无法触控到的区域,则用户可以对压感按键进行轻触按压操作,以触发进入单手操作模式。在单手操作模式下,用户可以通过对压感按键输入不同的触控操作,实现对屏幕区域的控制。If the screen area currently desired to be touched is an area that cannot be touched when holding the electronic device with one hand, the user can lightly touch and press the pressure-sensitive button to trigger the one-hand operation mode. In the one-hand operation mode, the user can control the screen area by inputting different touch operations on the pressure-sensitive button.

这样,如果电子设备检测到对压感按键的轻触按压操作,则进入单手操作模式,进一步执行以下步骤203;否则,不会触发执行以下步骤203,以降低电子设备的功耗。In this way, if the electronic device detects a light touch and press operation on the pressure-sensitive key, it enters the one-handed operation mode and further executes the following step 203; otherwise, the following step 203 will not be triggered to reduce the power consumption of the electronic device.

S203,在检测到用户对压感按键的轻触按压操作的情况下,启动眼动识别功能,并基于利用眼动识别功能中的眼动识别算法确定用户的注视区域。S203: when a light touch and press operation of the user on the pressure-sensitive button is detected, an eye movement recognition function is started, and an eye movement recognition algorithm in the eye movement recognition function is used to determine a gaze area of the user.

示例性的,如图1所示,当用户右手单手操作电子设备,并想要操控显示区域1中某个可操控项目时,由于手指无法触控到显示区域1。这种情况下,用户可以轻触压感按键,以触发启动眼动识别功能,并运行眼动识别功能中的眼动识别算法。轻触压感按键后,用户可以注视想要操控的可操控项目,这样,电子设备可以基于眼动识别算法,识别到包括用户想要操控的可操控项目的注视区域。For example, as shown in FIG1 , when a user operates an electronic device with one hand in the right hand and wants to control a controllable item in display area 1, the finger cannot touch display area 1. In this case, the user can lightly touch the pressure-sensitive button to trigger the eye movement recognition function and run the eye movement recognition algorithm in the eye movement recognition function. After lightly touching the pressure-sensitive button, the user can look at the controllable item that the user wants to control, so that the electronic device can identify the gaze area including the controllable item that the user wants to control based on the eye movement recognition algorithm.

眼动识别算法是一种通过电子设备的摄像装置追踪用户的眼球移动进而分析用户的注视区域来实现人机交互的技术。Eye movement recognition algorithm is a technology that tracks the user's eye movements through the camera device of an electronic device and then analyzes the user's gaze area to achieve human-computer interaction.

在一种可实现方式中,基于眼动识别算法确定用户的注视区域可以采用下述方式实现:响应于检测到用户对压感按键的轻触按压操作,电子设备的摄像装置采集用户面部的待识别图像,并通过眼动识别算法对该待识别图像进行眼动识别处理,从而得到用户当前的眼动数据;基于用户当前的眼动数据,可以预测用户的注视区域。其中,注视区域为用户想要触控的屏幕区域。In one possible implementation, determining the user's gaze area based on the eye movement recognition algorithm can be implemented in the following manner: in response to detecting the user's light touch and press operation on the pressure-sensitive button, the camera device of the electronic device captures the image to be recognized of the user's face, and performs eye movement recognition processing on the image to be recognized through the eye movement recognition algorithm, thereby obtaining the user's current eye movement data; based on the user's current eye movement data, the user's gaze area can be predicted. The gaze area is the screen area that the user wants to touch.

需要说明的是,本申请实施例中眼动识别算法可以是相关技术中任一种眼动识别算法。例如,眼动识别算法可以是预先训练好的眼动识别模型,这样,摄像装置采集用户面部的待识别图像后,将待识别图像输入眼动识别模型即可得到用户的注视区域。It should be noted that the eye movement recognition algorithm in the embodiment of the present application can be any eye movement recognition algorithm in the related art. For example, the eye movement recognition algorithm can be a pre-trained eye movement recognition model, so that after the camera device captures the image to be recognized of the user's face, the image to be recognized is input into the eye movement recognition model to obtain the user's gaze area.

还需要说明的是,本申请实施例中注视区域的尺寸可以与眼动识别算法的精度有关。如果眼动识别算法的精度较高,那么识别的注视区域的尺寸可能比较小。如果眼动识别算法的精度较差,那么识别的注视区域的尺寸可能比较大。例如,一些眼动识别算法,可以直接将注视区域定位到仅包括目标可操控项目的区域。再例如,一些眼动识别算法,可以将注视区域定位到包括多个可操控项目的区域(如,注视区域为电子设备的屏幕的总面积的十六分之一)。这样,注视区域可以覆盖用户界面上一块区域内容,从而减小在屏幕上选择目标可操控项目的范围。It should also be noted that the size of the gaze area in the embodiment of the present application may be related to the accuracy of the eye movement recognition algorithm. If the accuracy of the eye movement recognition algorithm is high, the size of the identified gaze area may be relatively small. If the accuracy of the eye movement recognition algorithm is poor, the size of the identified gaze area may be relatively large. For example, some eye movement recognition algorithms can directly locate the gaze area to an area that only includes target controllable items. For another example, some eye movement recognition algorithms can locate the gaze area to an area that includes multiple controllable items (e.g., the gaze area is one sixteenth of the total area of the screen of the electronic device). In this way, the gaze area can cover an area of content on the user interface, thereby reducing the range of selecting target controllable items on the screen.

S204,在电子设备的用户界面锁定注视区域。S204: Lock the gaze area on the user interface of the electronic device.

确定注视区域后,在电子设备的用户界面锁定注视区域,以使用户能够将注视区域与用户界面中其他区域加以区分。After the gaze area is determined, the gaze area is locked in the user interface of the electronic device so that the user can distinguish the gaze area from other areas in the user interface.

本申请实施例对在电子设备的用户界面锁定注视区域的具体实现方式不进行限定,只要能够将注视区域与用户界面中其他区域加以区分即可。The embodiments of the present application do not limit the specific implementation method of locking the gaze area in the user interface of the electronic device, as long as the gaze area can be distinguished from other areas in the user interface.

在一种可实现方式中,可以在用户界面以图形框的方式圈定注视区域。这样,用户可以基于显示的用户界面,确定图形框所框定的区域即为注视区域。如图6A所示,注视区域包括时钟控件、日历控件、文件管理控件和计算器控件。In one possible implementation, the fixation area can be enclosed in a graphical frame on the user interface. In this way, the user can determine that the area enclosed by the graphical frame is the fixation area based on the displayed user interface. As shown in FIG6A , the fixation area includes a clock control, a calendar control, a file management control, and a calculator control.

在一种可实现方式中,也可以在用户界面以第一显示样式显示注视区域内的可操控项目,以第二显示样式显示用户界面内除注视区域以外其他区域的可操控项目;第一显示样式与第二显示样式不同。其中,可操控项目的显示样式可以包括为高亮显示样式、悬浮显示样式、动态显示样式、放大显示样式、缩小显示样式等。只要能把注视区域中的可操控项目与其他项目区分开即可,本申请对显示样式的具体形式不做限定。In one possible implementation, the controllable items in the gaze area may be displayed in a first display style in the user interface, and the controllable items in other areas of the user interface except the gaze area may be displayed in a second display style; the first display style is different from the second display style. The display style of the controllable items may include a highlight display style, a suspended display style, a dynamic display style, an enlarged display style, a reduced display style, etc. As long as the controllable items in the gaze area can be distinguished from other items, this application does not limit the specific form of the display style.

示例性的,如图6B所示,可以将注视区域内的时钟控件、日历控件、文件管理控件和计算器控件放大显示,并保持其他区域的应用程序控件的尺寸不变。这样,用户可以基于用户界面的显示,确定注视区域所在位置。For example, as shown in Fig. 6B, the clock control, calendar control, file management control and calculator control in the fixation area can be enlarged and displayed, and the size of the application controls in other areas can be kept unchanged. In this way, the user can determine the location of the fixation area based on the display of the user interface.

S205,确定是否在预设时长内检测到用户对压感按键的滑动操作。S205: Determine whether a sliding operation of the user on the pressure-sensitive key is detected within a preset time period.

其中,预设时长是指电子设备锁定注视区域开始的预设时长内。如果在预设时长内检测到用户对压感按键的滑动操作,则执行以下步骤S206;否则,结束此次流程。The preset duration refers to the preset duration from when the electronic device locks the gaze area. If a sliding operation of the user on the pressure-sensitive key is detected within the preset duration, the following step S206 is executed; otherwise, the process ends.

S206,在预设时长内检测到用户对压感按键的滑动操作的情况下,在注视区域中各可操控项目上执行走焦操作,以使注视区域中各可操控项目依次处于可被选择状态。S206: When a sliding operation of the user on the pressure-sensitive button is detected within a preset time period, a focus operation is performed on each controllable item in the gaze area, so that each controllable item in the gaze area is sequentially in a selectable state.

在用户界面锁定注视区域后,用户可以通过对压感按键执行滑动操作,触发在注视区域中各可操控项目上的走焦操作。其中,走焦操作是指控制注视区域中各可操控项目依次处于可被选择状态。After the user interface locks the gaze area, the user can perform a sliding operation on the pressure-sensitive button to trigger a focus-shifting operation on each controllable item in the gaze area. The focus-shifting operation refers to controlling each controllable item in the gaze area to be in a selectable state in turn.

本申请实施例对在注视区域中各可操控项目上走焦操作的具体实现方式不进行限定。例如,可以对压感按键输入一次滑动操作后,自动按照预设起始位置和预设路径,在注视区域中各可操控项目上执行走焦操作。再例如,也可以通过对压感按键输入多次滑动操作,实现在注视区域中各可操控项目上执行走焦操作。其中,每输入一次滑动操作后,改变一次处于可被选择状态的可操控项目。The embodiments of the present application do not limit the specific implementation method of the focus operation on each controllable item in the gaze area. For example, after a sliding operation is input to a pressure-sensitive button, a focus operation is automatically performed on each controllable item in the gaze area according to a preset starting position and a preset path. For another example, the focus operation can also be performed on each controllable item in the gaze area by inputting multiple sliding operations to the pressure-sensitive button. Among them, each time a sliding operation is input, the controllable item in the selectable state is changed once.

示例性的,如果在用户界面锁定注视区域后,预设时长内检测到对压感按键的滑动操作,则可以生成一个光标(光标可以在用户界面上显示,也可以不在用户界面上显示)。然后,光标依次在注视区域内各可操控项目上驻留预设驻留时长。其中,光标所驻留的可操控项目的状态为可被选择状态。For example, if a sliding operation on a pressure-sensitive key is detected within a preset time after the user interface locks the gaze area, a cursor may be generated (the cursor may or may not be displayed on the user interface). Then, the cursor resides on each controllable item in the gaze area for a preset residence time. The state of the controllable item where the cursor resides is a selectable state.

其中,可操控项目处于可被选择状态时的显示样式与用户界面中其他可操控项目的显示样式不同。例如,当前处于可被选择状态的可操控项目(当前光标所驻留的可操控项目)以悬浮显示样式、动态显示样式等方式在用户界面显示,以将当前处于可被选择状态的可操控项目与其他未处于可被选择状态的可操控项目区分。The display style of the controllable item when it is in a selectable state is different from the display style of other controllable items in the user interface. For example, the controllable item currently in a selectable state (the controllable item where the cursor currently resides) is displayed in the user interface in a suspended display style, a dynamic display style, etc., to distinguish the controllable item currently in a selectable state from other controllable items that are not in a selectable state.

这样,用户可以基于用户界面,确定当前处于可被选择状态的可操控项目是否为用户希望操控的项目。如果处于可被选择状态的可操控项目为用户希望操控的项目(即目标可操控项目),则用户可以对压感按键执行轻按按压操作,以选中该目标可操控项目。选中目标可操控项目后,走焦操作停止。如果处于可被选择状态的可操控项目不是目标可操控项目,则继续执行走焦操作,直至处于可被选择状态的可操控项目为目标可操控项目,用户对压感按键执行轻按按压操作,以选定该目标可操控项目,并触发目标可操控项目对应的功能。In this way, the user can determine whether the controllable item currently in the selectable state is the item that the user wants to control based on the user interface. If the controllable item in the selectable state is the item that the user wants to control (i.e., the target controllable item), the user can perform a light press operation on the pressure-sensitive button to select the target controllable item. After the target controllable item is selected, the focus operation stops. If the controllable item in the selectable state is not the target controllable item, the focus operation continues until the controllable item in the selectable state is the target controllable item, and the user performs a light press operation on the pressure-sensitive button to select the target controllable item and trigger the function corresponding to the target controllable item.

S207,在目标可操控项目处于可被选择状态时,响应于检测到用户对压感按键的轻按按压操作,选中目标可操控项目,并触发目标可操控项目对应的功能。S207 , when the target controllable item is in a selectable state, in response to detecting a light pressing operation of the user on the pressure-sensitive key, selecting the target controllable item and triggering a function corresponding to the target controllable item.

本申请实施例中,选中目标可操控项目的操作,相当于在触控屏上点击该目标可操控项目的操作。也就是说,在选中目标可操控项目后,即触发执行该目标可操控项目对应的功能。例如,目标可操控项目为应用程序控件,则选定该应用程序控件后,用户界面切换至该应用程序的主界面。再例如,目标可操控项目为音乐播放链接,则选定该音乐播放链接后,用户界面切换至音乐播放界面或者直接播放该音乐播放链接对应的音乐。In the embodiment of the present application, the operation of selecting the target controllable item is equivalent to the operation of clicking the target controllable item on the touch screen. That is to say, after the target controllable item is selected, the function corresponding to the target controllable item is triggered to execute. For example, if the target controllable item is an application control, then after the application control is selected, the user interface switches to the main interface of the application. For another example, if the target controllable item is a music playback link, then after the music playback link is selected, the user interface switches to the music playback interface or directly plays the music corresponding to the music playback link.

示例性的,如图7所示,假设当前用户界面为电子设备的主界面,如图7中(a)所示,用户界面上显示的注视区域内包括四个应用程序对应的控件,四个控件分别为时钟控件、文件管理控件、计算器控件和日历控件。这样,如图7中(a)所示,用户通过压感按键输入滑动操作后,生成光标,并且光标驻留在时钟控件上,表示当前时钟控件为可被选择的控件。如图7中(b)所示,光标在时钟控件上驻留预设驻留时长内,如果没有检测到用户输入的轻按按压操作,则表明用户没有选中时钟控件,这样,光标移动至文件管理控件。同样的,如图7中(c)所示,光标在文件管理控件上驻留预设驻留时长内,如果没有检测到用户输入的轻按按压操作,则光标继续移动至计算器控件。假设用户期望的操作为打开电子设备的计算器,则在光标继续移动至计算器控件,计算器控件处于可被选择状态时,用户可以通过压感按键输入轻按按压操作。这样,如图7中(d)所示,电子设备检测到用户输入的轻按按压操作后,选中当前处于可被选择状态的计算器控件,并将用户界面切换至计算器的主界面。Exemplarily, as shown in FIG7, assuming that the current user interface is the main interface of the electronic device, as shown in FIG7 (a), the gaze area displayed on the user interface includes controls corresponding to four applications, and the four controls are a clock control, a file management control, a calculator control, and a calendar control. Thus, as shown in FIG7 (a), after the user inputs a sliding operation through a pressure-sensitive key, a cursor is generated, and the cursor resides on the clock control, indicating that the current clock control is a selectable control. As shown in FIG7 (b), the cursor resides on the clock control within a preset dwell time, and if no light press operation input by the user is detected, it indicates that the user has not selected the clock control, and thus the cursor moves to the file management control. Similarly, as shown in FIG7 (c), the cursor resides on the file management control within a preset dwell time, and if no light press operation input by the user is detected, the cursor continues to move to the calculator control. Assuming that the user's desired operation is to open the calculator of the electronic device, when the cursor continues to move to the calculator control and the calculator control is in a selectable state, the user can input a light press operation through a pressure-sensitive key. In this way, as shown in (d) of FIG. 7 , after the electronic device detects the light pressing operation input by the user, it selects the calculator control that is currently in a selectable state and switches the user interface to the main interface of the calculator.

可见,本申请实施例一提供的触控操作方法,先基于眼动识别算法,将操控范围定位到注视区域。然后,通过对压感按键输入滑动操作,控制注视区域中各可操控项目依次处于可被选择状态。当目标可操控项目处于可被选择状态时,通过对压感按键输入轻按按压操作,选定目标可操控项目,并触发目标可操控项目对应的功能。这样,即使在单手握持电子设备的情况下,也能够操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。It can be seen that the touch operation method provided in the first embodiment of the present application first locates the control range to the gaze area based on the eye movement recognition algorithm. Then, by inputting a sliding operation on the pressure-sensitive button, each controllable item in the gaze area is controlled to be in a selectable state in turn. When the target controllable item is in a selectable state, the target controllable item is selected by inputting a light press operation on the pressure-sensitive button, and the function corresponding to the target controllable item is triggered. In this way, even when holding the electronic device with one hand, every area on the screen can be controlled, thereby improving the user's touch experience when holding the electronic device with one hand.

实施例二Embodiment 2

图8为本申请实施例二提供的一种触控操作方法的流程图。如图8所示,该方法可以包括以下步骤:FIG8 is a flow chart of a touch operation method provided in Embodiment 2 of the present application. As shown in FIG8 , the method may include the following steps:

S301,检测电子设备的屏幕状态是否为亮屏状态。S301, detecting whether the screen status of the electronic device is in a bright screen status.

S302,在屏幕状态为亮屏状态的情况下,确定是否检测到用户对压感按键的轻触按压操作。S302: When the screen is in the on state, determine whether a light touch and press operation of a pressure-sensitive key by a user is detected.

其中,步骤S301可以参见实施例一中对步骤S201的描述,步骤S302可以参见实施例一中对步骤S202的描述,此处不再赘述。Among them, step S301 can refer to the description of step S201 in embodiment 1, and step S302 can refer to the description of step S202 in embodiment 1, which will not be repeated here.

S303,在检测到用户对压感按键的轻触按压操作的情况下,启动角度识别功能,并基于利用角度识别功能中的角度识别算法确定目标操控区域。S303: When a light touch and press operation of the pressure-sensitive button by the user is detected, an angle recognition function is started, and a target control area is determined based on an angle recognition algorithm in the angle recognition function.

用户单手握持电子设备时,电子设备的倾斜角度可以与用户期望操控的屏幕范围相关联。因此,本申请实施例二可以通过角度识别算法,识别用户握持电子设备时,电子设备的倾斜角度,然后基于电子设备的倾斜角度确定用户期望操控的目标操控区域。When a user holds an electronic device with one hand, the tilt angle of the electronic device can be associated with the screen range that the user expects to manipulate. Therefore, the second embodiment of the present application can use an angle recognition algorithm to recognize the tilt angle of the electronic device when the user holds the electronic device, and then determine the target manipulation area that the user expects to manipulate based on the tilt angle of the electronic device.

在一种可实现方式中,基于角度识别算法确定目标操控区域,可以采用下述方式实现:在检测到对压感按键的轻触按压操作后,启动眼动识别功能,并运行眼动识别功能中的眼动识别算法。眼动识别算法具体可以包括:获取电子设备的第一角度。用户对压感按键输入轻触按压操作后,改变握持手机的姿态,改变后的姿态为期望触控到操控区域对应的握姿。这样,电子设备可以检测到用户改变握姿后,电子设备的第二角度。其中,电子设备的第二角度与第一角度不同,且电子设备保持第二角度的时长大于预设时长。也就是说,第一角度为用户倾斜电子设备前,电子设备的角度;第二角度为用户倾斜电子设备后,电子设备的角度。这样,基于第一角度和第二角度,可以确定电子设备的倾斜角度。最后,可以基于电子设备的倾斜角度,确定目标操控区域。例如,可以先获取多个预设角度与电子设备的各显示区域之间的映射关系;基于映射关系,确定上述倾斜角度对应的目标操控区域。In one possible implementation, the target control area is determined based on the angle recognition algorithm, which can be implemented in the following manner: after detecting a light touch and press operation on a pressure-sensitive button, the eye movement recognition function is started, and the eye movement recognition algorithm in the eye movement recognition function is run. The eye movement recognition algorithm can specifically include: obtaining a first angle of the electronic device. After the user inputs a light touch and press operation on the pressure-sensitive button, the user changes the posture of holding the mobile phone, and the changed posture is the holding posture corresponding to the desired touch control area. In this way, the electronic device can detect the second angle of the electronic device after the user changes the holding posture. Among them, the second angle of the electronic device is different from the first angle, and the duration of the electronic device maintaining the second angle is greater than the preset duration. That is, the first angle is the angle of the electronic device before the user tilts the electronic device; the second angle is the angle of the electronic device after the user tilts the electronic device. In this way, based on the first angle and the second angle, the tilt angle of the electronic device can be determined. Finally, the target control area can be determined based on the tilt angle of the electronic device. For example, the mapping relationship between multiple preset angles and each display area of the electronic device can be first obtained; based on the mapping relationship, the target control area corresponding to the above tilt angle is determined.

本申请实施例中,可以利用电子设备中的惯性测量单元(inertial measurementunit,IMU)检测电子设备的角度。IMU可以使用加速度计和陀螺仪来测量电子设备的三轴姿态角。这样,两次获取的角度均包括三轴姿态角。对应的,电子设备的倾斜角度也为三轴姿态角。即倾斜角度包括电子设备在X轴方向的倾斜角度、在Y方向的倾斜角度以及在Z轴方向的倾斜角度。In an embodiment of the present application, an inertial measurement unit (IMU) in an electronic device can be used to detect the angle of the electronic device. The IMU can use an accelerometer and a gyroscope to measure the three-axis attitude angle of the electronic device. In this way, the angles obtained twice include the three-axis attitude angle. Correspondingly, the tilt angle of the electronic device is also the three-axis attitude angle. That is, the tilt angle includes the tilt angle of the electronic device in the X-axis direction, the tilt angle in the Y direction, and the tilt angle in the Z-axis direction.

本申请实施例可以通过模拟用户单手握持电子设备时,对屏幕不同显示区域进行操作时的姿态,预先建立倾斜角度与显示区域之间的对应关系。示例性的,电子设备的倾斜角度为(α1,β1,γ1)时,对应的显示区域为电子设备的左上角区域。电子设备的倾斜角度为(α2,β2,γ2)时,对应的显示区域为电子设备的右上角区域。其中,α1和α2表示相对于X轴的倾斜角度,β1和β2表示相对于Y轴的倾斜角度,γ1和γ2表示相对于Z轴的倾斜角度。The embodiment of the present application can pre-establish the correspondence between the tilt angle and the display area by simulating the posture of the user when operating different display areas of the screen when holding the electronic device with one hand. Exemplarily, when the tilt angle of the electronic device is (α1, β1, γ1), the corresponding display area is the upper left corner area of the electronic device. When the tilt angle of the electronic device is (α2, β2, γ2), the corresponding display area is the upper right corner area of the electronic device. Among them, α1 and α2 represent the tilt angles relative to the X-axis, β1 and β2 represent the tilt angles relative to the Y-axis, and γ1 and γ2 represent the tilt angles relative to the Z-axis.

这样,计算得到电子设备的倾斜角度后,可以基于倾斜角度与显示区域之间的对应关系,确定当前计算得到的倾斜角度对应的显示区域。In this way, after the tilt angle of the electronic device is calculated, the display area corresponding to the currently calculated tilt angle can be determined based on the corresponding relationship between the tilt angle and the display area.

S304,在电子设备的用户界面锁定目标操控区域。S304, locking the target control area in the user interface of the electronic device.

S305,确定是否在预设时长内检测到用户对压感按键的滑动操作。S305: Determine whether a sliding operation of the user on the pressure-sensitive key is detected within a preset time period.

S306,在预设时长内检测到用户对压感按键的滑动操作的情况下,在目标操控区域中各可操控项目上执行走焦操作,以使目标操控区域中各可操控项目依次处于可被选择状态。S306: When a sliding operation of the user on the pressure-sensitive button is detected within a preset time period, a focus operation is performed on each controllable item in the target control area, so that each controllable item in the target control area is in a selectable state in turn.

S307,在目标可操控项目处于可被选择状态时,响应于检测到用户对压感按键的轻按按压操作,选中目标可操控项目,并触发目标可操控项目对应的功能。S307 , when the target controllable item is in a selectable state, in response to detecting a light pressing operation of the user on the pressure-sensitive key, selecting the target controllable item and triggering a function corresponding to the target controllable item.

本申请实施例二中目标操控区域相当于实施例一中的注视区域。其中,步骤S304可以参见实施例一中对步骤S204的描述,步骤S305可以参见实施例一中对步骤S205的描述,步骤S306可以参见实施例一中对步骤S206的描述,步骤S307可以参见实施例一中对步骤S706的描述,此处不再赘述。The target control area in the second embodiment of the present application is equivalent to the gaze area in the first embodiment. Among them, step S304 can refer to the description of step S204 in the first embodiment, step S305 can refer to the description of step S205 in the first embodiment, step S306 can refer to the description of step S206 in the first embodiment, and step S307 can refer to the description of step S706 in the first embodiment, which will not be repeated here.

可见,本申请实施例二提供的触控操作方法,先基于角度识别算法,将操控范围定位到目标操控区域。然后,通过对压感按键输入滑动操作,控制目标操控区域中各可操控项目依次处于可被选择状态。当目标可操控项目处于可被选择状态时,通过对压感按键输入轻按按压操作,选定目标可操控项目,并触发目标可操控项目对应的功能。这样,即使在单手握持电子设备的情况下,也能够操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。It can be seen that the touch operation method provided in the second embodiment of the present application first locates the control range to the target control area based on the angle recognition algorithm. Then, by inputting a sliding operation on the pressure-sensitive button, each controllable item in the target control area is controlled to be in a selectable state in turn. When the target controllable item is in a selectable state, the target controllable item is selected by inputting a light press operation on the pressure-sensitive button, and the function corresponding to the target controllable item is triggered. In this way, even when holding the electronic device with one hand, every area on the screen can be controlled, thereby improving the user's touch experience when holding the electronic device with one hand.

实施例三Embodiment 3

图9为本申请实施例三提供的一种触控操作方法的流程图。如图9所示,该方法可以包括以下步骤:FIG9 is a flow chart of a touch operation method provided in Embodiment 3 of the present application. As shown in FIG9 , the method may include the following steps:

S401,检测电子设备的屏幕状态是否为亮屏状态。S401, detecting whether the screen status of the electronic device is in a bright screen status.

S402,在屏幕状态为亮屏状态的情况下,确定是否进入单手操作模式。S402: When the screen is in the on state, determine whether to enter the one-handed operation mode.

用户可以通过快捷键方式进入单手操作模式,例如,用户可以通过快速点击两次压感按键的方式进入单手操作模式。这样,如果电子设备检测到用户输入两次按压操作,且两次按压操作的时间间隔小于预设时间间隔,则进入单手操作模式,即可以执行以下步骤S403。The user can enter the one-handed operation mode by using a shortcut key, for example, the user can enter the one-handed operation mode by quickly clicking the pressure-sensitive key twice. In this way, if the electronic device detects that the user inputs two press operations, and the time interval between the two press operations is less than the preset time interval, the one-handed operation mode is entered, that is, the following step S403 can be executed.

再例如,用户也可以通过点击用户界面上“单手操作模式”控件的方式,进入单手操作模式。其中,“单手操作模式”控件位于用户界面上用户单手能够触控到的区域。For another example, the user can also enter the one-handed operation mode by clicking a "one-handed operation mode" control on the user interface, wherein the "one-handed operation mode" control is located in an area on the user interface that can be touched by the user with one hand.

如果进入单手操作模式,则执行以下步骤S403。If the one-handed operation mode is entered, the following step S403 is performed.

S403,进入单手操作模式后,确定是否检测到用户对压感按键的滑动操作。S403: After entering the one-handed operation mode, determine whether a sliding operation of the user on the pressure-sensitive key is detected.

S404,在检测到用户对压感按键的滑动操作的情况下,确定光标的起始位置,并控制光标在用户界面沿第一坐标轴移动(即沿第一坐标轴在用户界面中各可操控项目上执行走焦操作),以使位于第一坐标轴上的各可操控项目依次处于可被选择状态。S404, when a sliding operation of the user on the pressure-sensitive button is detected, the starting position of the cursor is determined, and the cursor is controlled to move along the first coordinate axis in the user interface (i.e., a focus operation is performed on each controllable item in the user interface along the first coordinate axis), so that each controllable item located on the first coordinate axis is in a selectable state in turn.

如果目标可操控项目不在当前走焦的第一坐标轴上,则执行以下步骤S405至S406。如果目标可操控项目在当前走焦的第一坐标轴上,则执行以下步骤S407。If the target controllable item is not on the first coordinate axis that is currently out of focus, the following steps S405 to S406 are performed. If the target controllable item is on the first coordinate axis that is currently out of focus, the following step S407 is performed.

S405,在检测到对压感按键的不离手按压操作的情况下,控制光标在用户界面沿第二坐标轴移动(即沿第二坐标轴在用户界面中各可操控项目上执行走焦操作),以使位于第二坐标轴上的各可操控项目依次处于可被选择状态。S405, when a continuous pressing operation on the pressure-sensitive button is detected, the cursor is controlled to move along the second coordinate axis in the user interface (i.e., a focus operation is performed on each controllable item in the user interface along the second coordinate axis), so that each controllable item located on the second coordinate axis is in a selectable state in turn.

S406,在目标可操控项目处于可被选择状态时,响应于检测到离手操作,选中目标可操控项目,并触发目标可操控项目对应的功能。S406 , when the target controllable item is in a selectable state, in response to detecting a hand-off operation, selecting the target controllable item and triggering a function corresponding to the target controllable item.

S407,在目标可操控项目处于可被选择状态时,响应于检测到对压感按键的轻按按压操作,选中目标可操控项目,并触发目标可操控项目对应的功能。S407 , when the target controllable item is in a selectable state, in response to detecting a light pressing operation on the pressure-sensitive key, selecting the target controllable item and triggering a function corresponding to the target controllable item.

进入单手操作模式后,用户可以通过对压感按键输入滑动操作,触发光标从预设的起始位置开始沿第一坐标轴在用户界面中各可操控项目上执行走焦操作。After entering the one-handed operation mode, the user can input a sliding operation on the pressure-sensitive button to trigger the cursor to perform a focus operation on each controllable item in the user interface along the first coordinate axis starting from a preset starting position.

在一些实施例中,光标可以从预设的起始位置,按照预设路径,自动沿第一坐标轴在用户界面中各可操控项目上执行走焦操作。In some embodiments, the cursor can automatically perform a focus operation on each controllable item in the user interface along the first coordinate axis from a preset starting position according to a preset path.

在一些实施例中,也可以通过对压感按键输入向上滑动操作或者向下滑动操作,控制光标可以从预设的起始位置,沿第一坐标轴向上走焦或者沿第一坐标轴向下走焦。例如,如果电子设备检测到用户输入的向上滑动操作,则控制光标沿第一坐标轴向上走焦;如果电子设备检测到用户输入的向下滑动操作,则控制光标沿第一坐标轴向下走焦。In some embodiments, the cursor can be controlled to move from a preset starting position to an upward or downward movement along the first coordinate axis by inputting an upward sliding operation or a downward sliding operation on the pressure-sensitive key. For example, if the electronic device detects an upward sliding operation input by the user, the cursor is controlled to move upward movement along the first coordinate axis; if the electronic device detects a downward sliding operation input by the user, the cursor is controlled to move downward movement along the first coordinate axis.

在光标沿第一坐标轴移动的过程中,用户可以对压感按键输入两种触控操作。When the cursor moves along the first coordinate axis, the user can input two touch operations on the pressure-sensitive button.

第一种:如果目标可操控项目为当前第一坐标轴走焦路径上的一个可操控项目,则当光标移动到位于第一坐标轴上的目标可操控项目时,用户可以轻触按压压感按键,以选中该目标可操控项目。The first type: if the target controllable item is a controllable item on the current focus path of the first coordinate axis, when the cursor moves to the target controllable item on the first coordinate axis, the user can lightly touch and press the pressure-sensitive button to select the target controllable item.

第二种:如果目标可操控项目不在当前第一坐标轴走焦路径上,则当光标移动到目标可操控项目所在行时,用户可以不离手按压感压按键,以触发在第二坐标轴上走焦。当光标移动到位于第二坐标轴上的目标可操控项目时,用户可以抬起手指,离开压感按键,以选中该目标可操控项目。The second method: If the target controllable item is not on the current focus path of the first coordinate axis, when the cursor moves to the row where the target controllable item is located, the user can press the pressure-sensitive button without releasing the finger to trigger focus on the second coordinate axis. When the cursor moves to the target controllable item on the second coordinate axis, the user can lift his finger and leave the pressure-sensitive button to select the target controllable item.

第一坐标轴可以是电子设备的屏幕的X轴或者Y轴。如果第一坐标轴为X轴,则第二坐标轴为Y轴;如果第一坐标轴为Y轴,则第二坐标轴为X轴。The first coordinate axis may be the X axis or the Y axis of the screen of the electronic device. If the first coordinate axis is the X axis, the second coordinate axis is the Y axis; if the first coordinate axis is the Y axis, the second coordinate axis is the X axis.

示例性的,如图10A所示,以走焦的起始位置为左上角位置,第一坐标轴为Y轴,目标可操控项目为电子邮件控件为例。响应于检测到用户输入的滑动操作,生成光标,并且光标停留在时钟控件上,时钟控件处于可被选择状态。如果光标在时钟控件上驻留预设驻留时长内,没有检测到用户输入的按压操作,则表明用户没有选定时钟控件。这样,光标沿Y轴移动至下一个控件,如文件管理控件。依此类推,当光标沿Y轴移动至电子邮件控件时,用户可以轻按按压压感按键,以选中光标所驻留的电子邮件控件。这样,电子设备接收到用户输入的轻触按压操作后,停止在Y轴上走焦,并选中电子邮件控件。Exemplarily, as shown in FIG10A , the starting position of the out-of-focus is the upper left corner position, the first coordinate axis is the Y axis, and the target controllable item is an email control. In response to detecting a sliding operation input by the user, a cursor is generated, and the cursor stays on the clock control, and the clock control is in a selectable state. If the cursor resides on the clock control within a preset dwell time and no pressing operation input by the user is detected, it indicates that the user has not selected the clock control. In this way, the cursor moves along the Y axis to the next control, such as a file management control. Similarly, when the cursor moves along the Y axis to the email control, the user can tap the pressure-sensitive button to select the email control where the cursor resides. In this way, after the electronic device receives the light touch and press operation input by the user, it stops focusing on the Y axis and selects the email control.

又一示例性的,结合图10A和10B所示,以走焦的起始位置为左上角位置,第一坐标轴为Y轴,第二坐标轴为X轴,目标可操控项目为天气控件为例。如图10A所示,当光标沿Y轴移动至天气控件所在行(即光标驻留在电子邮件控件时)时,用户可以不离手按压感压按键,停止光标在Y轴上移动,并通过控制对感压按键的按压压力的方式,控制光标在X轴上的移动方向,直至光标沿X轴移动至天气控件时,用户抬起手指,使手指离开感压按键,以选中天气控件。As another example, in combination with FIGS. 10A and 10B , the starting position of the focus is the upper left corner, the first coordinate axis is the Y axis, the second coordinate axis is the X axis, and the target controllable item is the weather control. As shown in FIG. 10A , when the cursor moves along the Y axis to the row where the weather control is located (i.e., when the cursor resides in the email control), the user can press the pressure-sensitive button without letting go to stop the cursor from moving on the Y axis, and control the direction of movement of the cursor on the X axis by controlling the pressing pressure on the pressure-sensitive button, until the cursor moves along the X axis to the weather control, and the user lifts his finger to remove the finger from the pressure-sensitive button to select the weather control.

本申请实施例中,在不离手按压操作时,电子设备可以检测压感按键的压力值,并基于压力值,控制光标沿X轴的正向或负向移动。例如,随着按压压力的逐渐增大,光标沿X轴的正向移动,即由左向右移动;随着按压压力的逐渐减弱,光标沿X轴负向移动,即由右向左移动。再例如,也可以建立压力值与光标在X轴上位置之间的映射关系,这样,检测到压力值后,可以基于压力值与光标在X轴上位置之间的映射关系,确定当前压力值对应的光标位置,进而将光标移动至该位置。In an embodiment of the present application, when the pressing operation is performed without removing the hand, the electronic device can detect the pressure value of the pressure-sensitive button, and based on the pressure value, control the cursor to move in the positive or negative direction along the X-axis. For example, as the pressing pressure gradually increases, the cursor moves in the positive direction of the X-axis, that is, from left to right; as the pressing pressure gradually weakens, the cursor moves in the negative direction of the X-axis, that is, from right to left. For another example, a mapping relationship between the pressure value and the position of the cursor on the X-axis can also be established. In this way, after the pressure value is detected, the cursor position corresponding to the current pressure value can be determined based on the mapping relationship between the pressure value and the position of the cursor on the X-axis, and the cursor can be moved to that position.

示例性的,如图10B所示,以目标可操控项目为天气控件为例,当光标沿Y轴移动至天气控件所在行后,用户不离手按压压感按键,并逐渐增加按压强度。这样,电子设备检测到用户输入的不离手按压操作后,基于检测到的按压压力,光标沿X轴正向移动,直至光标移动至天气按键,用户抬起手指,使手指离开感压按键,以选定天气控件。For example, as shown in FIG10B , taking the target controllable item as the weather control as an example, when the cursor moves along the Y axis to the row where the weather control is located, the user keeps pressing the pressure-sensitive button and gradually increases the pressing strength. In this way, after the electronic device detects the user's hands-free pressing operation, based on the detected pressing pressure, the cursor moves forward along the X axis until the cursor moves to the weather button, and the user lifts his finger and leaves the pressure-sensitive button to select the weather control.

需要说明的是,上述以检测到离手操作后,即选中目标可操控项目为例进行示例性说明,并不表示对此处的限定。例如,也可以在检测到离手操作后,先锁定目标可操控项目,停止光标移动。然后,用户再通过轻按压感按键一次,选中目标可操控项目。这样,可以减少误触的可能。It should be noted that the above description is based on the example of selecting the target controllable item after detecting the hand-off operation, which does not represent a limitation here. For example, after detecting the hand-off operation, the target controllable item can be locked first and the cursor movement can be stopped. Then, the user selects the target controllable item by lightly pressing the pressure-sensitive button once. In this way, the possibility of accidental touch can be reduced.

其中,走焦的起始位置可以是用户界面上任意位置,本申请实施例对此不进行限定。The starting position of the focus loss may be any position on the user interface, and this embodiment of the present application does not limit this.

在一些实施例中,考虑到用户单手握持电子设备时,通常无法触控到屏幕的边缘区域。因此,可以将走焦的起始位置设置在屏幕的左上角、右上角、左下角、右下角、左边缘中心位置、右边缘中心位置、上边缘中心位置或下边缘中心位置等位置。具体的,可以通过坐标的方式表示走焦的起始位置,例如,走焦的起始位置为(x1,y1),其中,x1表示在屏幕的X轴上的坐标点,y1表示在屏幕的Y轴上的坐标点。In some embodiments, considering that the user cannot usually touch the edge area of the screen when holding the electronic device with one hand, the starting position of the out-of-focus may be set at the upper left corner, upper right corner, lower left corner, lower right corner, left edge center, right edge center, upper edge center or lower edge center of the screen. Specifically, the starting position of the out-of-focus may be represented by coordinates, for example, the starting position of the out-of-focus is (x1, y1), where x1 represents the coordinate point on the X-axis of the screen, and y1 represents the coordinate point on the Y-axis of the screen.

在一些实施例中,考虑到左手单手操作和右手单手操作,对应的可触控范围不同。因此,可以先识别用户左手握持电子设备还是右手握持电子设备。然后,基于识别结果,确定走焦的起始位置。In some embodiments, considering that the left-handed operation and the right-handed operation have different corresponding touchable ranges, it is possible to first identify whether the user is holding the electronic device with the left hand or the right hand, and then determine the starting position of the focus deviation based on the identification result.

示例性的,如果识别到用户是通过左侧的压感按键输入的触控操作,则可以确定用户左手握持电子设备;如果识别到用户是通过右侧的压感按键输入的触控操作,则可以确定用户右手握持电子设备。For example, if it is recognized that the user inputs the touch operation through the pressure-sensitive button on the left, it can be determined that the user is holding the electronic device with his left hand; if it is recognized that the user inputs the touch operation through the pressure-sensitive button on the right, it can be determined that the user is holding the electronic device with his right hand.

对应的,如果识别到用户左手握持电子设备,则可以将走焦的起始位置确定为靠近屏幕右侧的位置,例如,走焦的起始位置为屏幕右上角、右下角或者右边缘中心位置。如果识别到用户右手握持电子设备,则可以将走焦的起始位置确定为靠近屏幕左侧的位置,例如,走焦的起始位置为屏幕左上角、左下角或者左边缘中心位置。Correspondingly, if it is recognized that the user is holding the electronic device with his left hand, the starting position of the focus loss can be determined as a position close to the right side of the screen, for example, the starting position of the focus loss is the upper right corner, the lower right corner, or the center of the right edge of the screen. If it is recognized that the user is holding the electronic device with his right hand, the starting position of the focus loss can be determined as a position close to the left side of the screen, for example, the starting position of the focus loss is the upper left corner, the lower left corner, or the center of the left edge of the screen.

需要说明的是,本申请实施例三执行走焦操作时,各可操控项目对应的显示状态可以参照实施例一的描述,此处不再赘述。It should be noted that when the focus operation is performed in the third embodiment of the present application, the display status corresponding to each controllable item can refer to the description of the first embodiment, and will not be repeated here.

可见,本申请实施例三提供的触控操作方法,通过对压感按键输入不同的触控操作类型,可以控制光标沿X轴和Y轴两个维度走焦,这样,可以通过光标选择用户界面上任意位置的可操控项目。另外,还可以通过对压感按键施加不同的压力,控制光标在一个坐标轴的两个方向自由移动。这样,即使在单手握持电子设备的情况下,也能够操控到屏幕上每个区域,提高用户在单手握持电子设备时的触控体验。It can be seen that the touch operation method provided in the third embodiment of the present application can control the cursor to move in two dimensions, the X-axis and the Y-axis, by inputting different touch operation types to the pressure-sensitive buttons. In this way, the cursor can be used to select a controllable item at any position on the user interface. In addition, the cursor can be controlled to move freely in two directions of a coordinate axis by applying different pressures to the pressure-sensitive buttons. In this way, even when holding the electronic device with one hand, every area on the screen can be controlled, thereby improving the user's touch experience when holding the electronic device with one hand.

实施例四Embodiment 4

图11为本申请实施例四提供的一种触控操作方法的流程图。如图11所示,该方法可以包括以下步骤:FIG11 is a flow chart of a touch operation method provided in Embodiment 4 of the present application. As shown in FIG11 , the method may include the following steps:

S501,检测电子设备的屏幕状态是否为亮屏状态。S501, detecting whether the screen status of the electronic device is in a bright screen status.

S502,在屏幕状态为亮屏状态的情况下,确定是否检测到用户对压感按键的滑动操作。S502: When the screen is in the on state, determine whether a sliding operation of a user on a pressure-sensitive key is detected.

S503,在检测到用户对压感按键的滑动操作的情况下,确定是否接收到可缩放通知信息。S503: When a sliding operation of the user on the pressure-sensitive key is detected, determine whether scalable notification information is received.

本申请实施例中,在检测到用户对压感按键的滑动操作后,内核层会基于滑动操作生成对应的报点事件,并将报点事件上报至应用层。这样,应用层接收到报点事件后,可以判断当前用户界面是否包括可缩放内容。In the embodiment of the present application, after detecting the user's sliding operation on the pressure-sensitive key, the kernel layer generates a corresponding point reporting event based on the sliding operation, and reports the point reporting event to the application layer. In this way, after receiving the point reporting event, the application layer can determine whether the current user interface includes scalable content.

如果应用层确定当前用户界面包括可缩放内容,则应用层可以按照缩放操作响应滑动操作。对应的,应用层可以向系统发送可缩放通知信息,以通知当前用户界面包括可缩放内容,即可以对当前用户界面执行缩放操作。如果应用层确定当前用户界面不包括可缩放内容,则应用层不会按照缩放操作响应滑动操作。对应的,应用层不会发送可缩放通知信息。If the application layer determines that the current user interface includes scalable content, the application layer can respond to the sliding operation according to the zoom operation. Correspondingly, the application layer can send a zoomable notification message to the system to notify that the current user interface includes scalable content, that is, a zoom operation can be performed on the current user interface. If the application layer determines that the current user interface does not include scalable content, the application layer will not respond to the sliding operation according to the zoom operation. Correspondingly, the application layer will not send a zoomable notification message.

这样,如果接收到可缩放通知信息,则执行以下步骤S504;否则,此次流程结束。In this way, if the scalable notification information is received, the following step S504 is executed; otherwise, the process ends.

其中,可缩放内容是指能够在用户界面对其进行放大或者缩小的内容,如图像、地图等。The scalable content refers to the content that can be enlarged or reduced in the user interface, such as images, maps, etc.

S504,在接收到可缩放通知信息的情况下,在用户界面确定目标缩放区域。S504: When the zoomable notification information is received, determine a target zoom area in the user interface.

目标缩放区域是指用户期望对可缩放内容进行缩放操作的位置。The target zoom area refers to the location where the user expects to perform a zoom operation on the zoomable content.

本申请实施例中,可以基于眼动识别算法或者角度识别算法,确定目标缩放区域。In the embodiment of the present application, the target zoom area may be determined based on an eye movement recognition algorithm or an angle recognition algorithm.

其中,基于眼动识别算法,确定目标缩放区域的方法可以参见实施例一的描述。基于角度识别算法,确定目标缩放区域的方法可以参见实施例二的描述,此处不再赘述。The method for determining the target zoom area based on the eye movement recognition algorithm can refer to the description of embodiment 1. The method for determining the target zoom area based on the angle recognition algorithm can refer to the description of embodiment 2, which will not be repeated here.

S505,在目标缩放区域中确定对可缩放内容进行缩放操作的缩放焦点。S505: Determine a zoom focus for performing a zoom operation on the zoomable content in the target zoom area.

缩放焦点为目标缩放区域中任意一个点,例如,缩放焦点可以是目标缩放区域的中心点。The zoom focus is any point in the target zoom area. For example, the zoom focus may be the center point of the target zoom area.

S506,确定是否检测到用户对压感按键的向上滑动操作。S506: Determine whether an upward sliding operation of the user on the pressure-sensitive key is detected.

S507,在检测到用户对压感按键的向上滑动操作的情况下,基于缩放焦点对可缩放内容进行放大操作。S507: When an upward sliding operation of the user on the pressure-sensitive key is detected, a zooming operation is performed on the zoomable content based on the zoom focus.

S508,在没有检测到用户对压感按键的向上滑动操作的情况下,确定是否检测到用户对压感按键的向下滑动操作。S508: When no upward sliding operation of the user on the pressure-sensitive key is detected, determine whether a downward sliding operation of the user on the pressure-sensitive key is detected.

S509,在检测到用户对压感按键的向下滑动操作的情况下,基于缩放焦点对可缩放内容进行缩小操作。S509: When a downward sliding operation of the user on the pressure-sensitive key is detected, a zoom-out operation is performed on the zoomable content based on the zoom focus.

示例性的,如图12中(a)所示,在用户界面确定目标缩放区域(图12中(a)中矩形虚线框区域),并将目标缩放区域的中心作为缩放焦点。如图12中(b)所示,基于缩放焦点,对用户界面进行放大操作后,用户界面对缩放焦点周围的内容进行放大显示。For example, as shown in FIG12(a), the user interface determines the target zoom area (the area in the rectangular dashed box in FIG12(a)), and the center of the target zoom area is used as the zoom focus. As shown in FIG12(b), based on the zoom focus, after the user interface is zoomed in, the user interface zooms in and displays the content around the zoom focus.

在一些实施例中,基于缩放焦点,对可缩放内容进行缩放操作之后,如果用户界面上包括可操控项目,则可以进一步通过对压感按键输入不同的触控操作,选中用户界面中目标可操控项目,并触发目标可操控项目对应的功能。In some embodiments, after performing a zoom operation on the zoomable content based on the zoom focus, if the user interface includes controllable items, different touch operations can be further input to the pressure-sensitive keys to select the target controllable item in the user interface and trigger the function corresponding to the target controllable item.

其中,通过对压感按键输入不同的触控操作,选中用户界面中目标可操控项目的方法具体可以参见实施例一、实施例二和实施例三的描述,此处不再赘述。The method of selecting a target controllable item in the user interface by inputting different touch operations to the pressure-sensitive buttons can be specifically described in the first, second and third embodiments, which will not be described again here.

需要说明的是,上述实施仅以先判断是否检测到向上滑动操作为例进行示例性说明,也可以先判断是否检测到向下滑动操作,本申请实施例对此不进行限定。It should be noted that the above implementation is only illustrative of the example of first determining whether an upward sliding operation is detected. It is also possible to first determine whether a downward sliding operation is detected. The embodiment of the present application is not limited to this.

可见,本申请实施例四提供的触控操作方法,如果接收到可缩放通知信息,则可以基于眼动识别算法或者角度识别算法,确定目标缩放区域。进一步的在目标缩放区域中确定缩放焦点。这样,可以通过对压感按键输入的向上滑动操作或向下滑动操作,实现基于缩放焦点,对可缩放内容进行缩放操作。这样,即使在单手握持电子设备的情况下,也能够实现对屏幕上每个区域进行缩放的功能,提高用户在单手握持电子设备时的触控体验。It can be seen that the touch operation method provided in the fourth embodiment of the present application, if receiving zoomable notification information, can determine the target zoom area based on the eye movement recognition algorithm or the angle recognition algorithm. Further determine the zoom focus in the target zoom area. In this way, the zoomable content can be zoomed based on the zoom focus by sliding up or sliding down on the pressure-sensitive button input. In this way, even when the electronic device is held in one hand, the function of zooming each area on the screen can be realized, thereby improving the user's touch experience when holding the electronic device in one hand.

综上,如图13所示,本申请实施例提供的触控操作可以包括以下步骤:In summary, as shown in FIG13 , the touch operation provided in the embodiment of the present application may include the following steps:

S601,电子设备显示第一界面,第一界面包括至少一个可操控项目。S601, the electronic device displays a first interface, where the first interface includes at least one controllable item.

当电子设备的屏幕状态为亮屏状态时,电子设备显示第一界面。其中,亮屏状态检测方法可以参见实施例一的描述,此处不再赘述。When the screen state of the electronic device is the screen-on state, the electronic device displays the first interface. The screen-on state detection method can refer to the description of the first embodiment, which will not be repeated here.

S602,响应于用户的单手模式触发操作,电子设备进入单手操作模式。S602: In response to a one-handed mode triggering operation by a user, the electronic device enters a one-handed operation mode.

本申请实施例对单手模式触发操作的具体形式不进行限定。例如,可以是实施例一中的轻触按压操作;也可以是实施例三中的快捷键方式或者点击用户界面上“单手操作模式”控件的方式。The specific form of the one-handed mode triggering operation is not limited in the present application embodiment. For example, it can be a light touch and press operation in the first embodiment; it can also be a shortcut key method in the third embodiment or a method of clicking the "one-handed operation mode" control on the user interface.

S603,在所述电子设备处于单手操作模式时,响应于用户经由压感按键输入的第一触控操作,第一界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态。S603: When the electronic device is in a one-handed operation mode, in response to a first touch operation input by a user via a pressure-sensitive key, at least one controllable item in a target control area in the first interface is sequentially in a selectable state.

在一种可实现方式中,可以先基于眼动识别算法或者角度识别算法,在第一界面中确定目标操控区域;然后,基于目标操控区域,显示第二界面;最后,响应于用户经由压感按键输入的第一触控操作,第二界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态。其中,第二界面中的目标操控区域采用第一显示方式显示,第二界面中除目标操控区域以外的区域采用第二显示方式显示,第一显示方式和第二显示方式不同。In one possible implementation, the target control area can be determined in the first interface based on an eye movement recognition algorithm or an angle recognition algorithm; then, based on the target control area, the second interface is displayed; finally, in response to the first touch operation input by the user via a pressure-sensitive key, at least one controllable item in the target control area in the second interface is sequentially in a selectable state. The target control area in the second interface is displayed in a first display mode, and the area other than the target control area in the second interface is displayed in a second display mode, and the first display mode and the second display mode are different.

在一种可实现方式中,基于眼动识别算法,在第一界面中确定目标操控区域,可以包括:在电子设备处于单手操作模式时,采集用户面部图像;对用户面部图像进行处理,得到用户的眼动数据;基于眼动数据,在第一界面中确定目标操控区域。In one implementable manner, determining a target control area in a first interface based on an eye movement recognition algorithm may include: when the electronic device is in a one-handed operation mode, capturing a user's facial image; processing the user's facial image to obtain the user's eye movement data; and determining a target control area in the first interface based on the eye movement data.

在一种可实现方式中,基于角度识别算法,在第一界面中确定目标操控区域,可以包括:在电子设备处于单手操作模式时,获取电子设备的第一角度;在电子设备的角度由第一角度变化为第二角度,且电子设备保持第二角度的时长大于第二预设时长的情况下,基于第一角度和第二角度,确定电子设备的倾斜角度;基于电子设备的倾斜角度,在第一界面中确定目标操控区域。In one implementable manner, determining a target control area in a first interface based on an angle recognition algorithm may include: when the electronic device is in a one-handed operation mode, acquiring a first angle of the electronic device; when the angle of the electronic device changes from a first angle to a second angle, and the time length for which the electronic device maintains the second angle is greater than a second preset time length, determining a tilt angle of the electronic device based on the first angle and the second angle; and determining a target control area in the first interface based on the tilt angle of the electronic device.

在一种可实现方式中,基于倾斜角度,在第一界面中确定目标操控区域,可以包括:获取多个预设角度与电子设备的各显示区域之间的映射关系;基于映射关系,确定倾斜角度在第一界面中对应的目标操控区域。In one implementable manner, determining a target control area in a first interface based on a tilt angle may include: obtaining a mapping relationship between multiple preset angles and each display area of the electronic device; and determining a target control area corresponding to the tilt angle in the first interface based on the mapping relationship.

在一种可实现方式中,基于目标操控区域,显示第二界面,可以包括:在第二界面以图形框的方式圈定目标操控区域;或者,在第二界面以第一显示样式显示目标操控区域内各可操控项目,以第二显示样式显示第二界面内除目标操控区域以外的可操控项目,第一显示样式与第二显示样式不同。In one implementable manner, displaying a second interface based on a target control area may include: encircling the target control area in a graphic frame on the second interface; or, displaying each controllable item in the target control area in a first display style on the second interface, and displaying controllable items other than the target control area in the second interface in a second display style, the first display style being different from the second display style.

在一种可实现方式中,第一触控操作可以包括滑动操作,第二触控操作可以包括按压操作。应理解,第一触控操作和第二触控操作也可以采用其他类型的触控操作。In an implementable manner, the first touch operation may include a sliding operation, and the second touch operation may include a pressing operation. It should be understood that the first touch operation and the second touch operation may also adopt other types of touch operations.

以上可实现方式可以参见实施例一和实施例二的描述,此处不再赘述。The above implementation methods can be referred to the description of Embodiment 1 and Embodiment 2, which will not be repeated here.

在一种可实现方式中,第一触控操作可以包括第一子触控操作和/或第二子触控操作。响应于用户经由压感按键输入的第一子触控操作,确定光标的起始位置,并且光标在第一界面沿第一坐标轴移动;其中,当光标驻留在目标操控区域中的第一可操控项目时,第一可操控项目处于可被选择状态;第一可操控项目为至少一个可操控项目中任意一个可操控项目;和/或,响应于用户经由压感按键输入的第二子触控操作,光标在第一界面沿第二坐标轴移动,第一坐标轴与第二坐标轴相互垂直。In one possible implementation, the first touch operation may include a first sub-touch operation and/or a second sub-touch operation. In response to the first sub-touch operation input by the user via the pressure-sensitive key, the starting position of the cursor is determined, and the cursor moves along the first coordinate axis on the first interface; wherein, when the cursor resides on the first controllable item in the target control area, the first controllable item is in a selectable state; the first controllable item is any one of the at least one controllable item; and/or, in response to the second sub-touch operation input by the user via the pressure-sensitive key, the cursor moves along the second coordinate axis on the first interface, and the first coordinate axis and the second coordinate axis are perpendicular to each other.

在一种可实现方式中,第一子触控操作包括滑动操作,第二子触控操作包括不离手按压操作,第二触控操作包括离手操作。应理解,第一子触控操作、第二子触控操作和第二触控操作也可以采用其他类型的触控操作。In one implementation, the first sub-touch operation includes a sliding operation, the second sub-touch operation includes a press operation without releasing the hand, and the second touch operation includes a release operation. It should be understood that the first sub-touch operation, the second sub-touch operation, and the second touch operation may also use other types of touch operations.

在一种可实现方式中,控制光标在第一界面沿第二坐标轴移动,可以包括:获取第二子触控操作的压力值;基于压力值,确定光标在第一界面沿第二坐标轴移动的目标移动方向;光标在沿第二坐标轴的目标移动方向移动。In one implementable manner, controlling the cursor to move along the second coordinate axis on the first interface may include: obtaining a pressure value of a second sub-touch operation; determining a target movement direction of the cursor along the second coordinate axis on the first interface based on the pressure value; and moving the cursor in the target movement direction along the second coordinate axis.

在一种可实现方式中,基于压力值,确定光标在第一界面沿第二坐标轴移动的目标移动方向,可以包括:在压力值逐渐增大的情况下,确定目标移动方向为第二坐标轴的第一方向;在压力值逐渐减小的情况下,确定目标移动方向为第二坐标轴的第二方向;第一方向与第二方向为相反的两个方向。In one implementable manner, determining a target moving direction of a cursor moving along a second coordinate axis on a first interface based on a pressure value may include: when the pressure value gradually increases, determining the target moving direction to be a first direction of the second coordinate axis; when the pressure value gradually decreases, determining the target moving direction to be a second direction of the second coordinate axis; the first direction and the second direction are two opposite directions.

在一种可实现方式中,电子设备包括第一压感按键和第二压感按键,第一压感按键和第二压感按键相对设置于电子设备的两侧;确定光标的起始位置,包括:确定接收第一子触控操作的压感按键;在接收第一子触控操作的压感按键为第一压感按键的情况下,确定光标的起始位置为远离第一压感按键的位置;在接收第一子触控操作的压感按键为第二压感按键的情况下,确定光标的起始位置为远离第二压感按键的位置。In one implementable manner, the electronic device includes a first pressure-sensitive button and a second pressure-sensitive button, and the first pressure-sensitive button and the second pressure-sensitive button are relatively arranged on two sides of the electronic device; determining the starting position of the cursor includes: determining the pressure-sensitive button that receives the first sub-touch operation; when the pressure-sensitive button that receives the first sub-touch operation is the first pressure-sensitive button, determining the starting position of the cursor to be a position away from the first pressure-sensitive button; when the pressure-sensitive button that receives the first sub-touch operation is the second pressure-sensitive button, determining the starting position of the cursor to be a position away from the second pressure-sensitive button.

上述可实现方式可以参见实施例三的描述,此处不再赘述。The above-mentioned implementation method can be referred to the description of Embodiment 3, which will not be repeated here.

S604,在至少一个可操控项目中的目标可操控项目处于可被选择状态时,响应于用户经由压感按键输入的第二触控操作,处于可被选择状态的目标可操控项目被选中,并且与所述处于可被选择状态的目标可操纵项目相对应的功能被触发。S604, when a target controllable item among at least one controllable item is in a selectable state, in response to a second touch operation input by the user via the pressure-sensitive key, the target controllable item in the selectable state is selected, and a function corresponding to the target controllable item in the selectable state is triggered.

步骤S604可以参见实施例一、实施例二和实施例三的描述,此处不再赘述。For step S604, please refer to the description of Embodiment 1, Embodiment 2 and Embodiment 3, which will not be described again here.

需要说明的是,对于实施例一,目标可操控项目是指注视区域。对应实施例三,目标可操控项目是指整个用户界面。It should be noted that, for the first embodiment, the target controllable item refers to the gaze area, while for the third embodiment, the target controllable item refers to the entire user interface.

还需要说明的是,本申请实施例中第一触控操作、第二触控操作、第一子触控操作、第二子触控操作、第三触控操作可以是任一种可操控操作,并不限于上述实施例一、实施例二和实施例三所示例的触控操作类型。It should also be noted that in the embodiments of the present application, the first touch operation, the second touch operation, the first sub-touch operation, the second sub-touch operation, and the third touch operation can be any controllable operation, and are not limited to the touch operation types exemplified in the above-mentioned embodiments one, two, and three.

图14为本申请实施例提供的又一种触控操作的流程图。如图14所示,该方法可以包括以下步骤:FIG14 is a flow chart of another touch operation provided by an embodiment of the present application. As shown in FIG14 , the method may include the following steps:

S701,电子设备显示第一界面。S701, the electronic device displays a first interface.

S702,在响应于用户经由压感按键输入的第四触控操作,接收到可缩放通知信息的情况下,在所述第一界面中确定目标缩放区域;其中,所述可缩放通知信息用于通知所述第一界面包括可缩放内容。S702, in response to a fourth touch operation input by the user via a pressure-sensitive key, when zoomable notification information is received, determining a target zoom area in the first interface; wherein the zoomable notification information is used to notify that the first interface includes zoomable content.

S703,在目标缩放区域中确定对可缩放内容进行缩放操作的缩放焦点。S703: Determine a zoom focus for performing a zoom operation on the zoomable content in the target zoom area.

S704,响应于用户经由压感按键输入的第五触控操作,基于缩放焦点,对可缩放内容进行缩放操作。S704: In response to a fifth touch operation input by the user via the pressure-sensitive key, a zoom operation is performed on the zoomable content based on the zoom focus.

在一种可实现方式中,在第五触控操作为向上滑动操作的情况下,基于缩放焦点,对可缩放内容进行放大操作;在第五触控操作为向下滑动操作的情况下,基于缩放焦点,对可缩放内容进行缩小操作;或者,在第五触控操作为向下滑动操作的情况下,基于缩放焦点,对可缩放内容进行放大操作;在第五触控操作为向上滑动操作的情况下,基于缩放焦点,对可缩放内容进行缩小操作。In one possible implementation, when the fifth touch operation is an upward swipe operation, the zoomable content is enlarged based on the zoom focus; when the fifth touch operation is a downward swipe operation, the zoomable content is reduced based on the zoom focus; or, when the fifth touch operation is a downward swipe operation, the zoomable content is enlarged based on the zoom focus; when the fifth touch operation is an upward swipe operation, the zoomable content is reduced based on the zoom focus.

在一种可实现方式中,显示对可缩放内容进行缩放操作之后的第三界面,第三界面包括至少一个可操控项目;响应于用户经由压感按键输入的第一触控操作,第三界面中的目标操控区域中的至少一个可操控项目依次处于可被选择状态;在至少一个可操控项目中的目标可操控项目处于可被选择状态时,响应于用户经由压感按键输入的第二触控操作,处于可被选择状态的目标可操控项目被选中,并且与所述处于可被选择状态的目标可操纵项目相对应的功能被触发。以上步骤S701至步骤S704可以参见实施例四的描述,此处不再赘述。In one achievable manner, a third interface is displayed after a zoom operation is performed on the zoomable content, and the third interface includes at least one controllable item; in response to a first touch operation input by a user via a pressure-sensitive key, at least one controllable item in a target control area in the third interface is sequentially in a selectable state; when a target controllable item in at least one controllable item is in a selectable state, in response to a second touch operation input by a user via a pressure-sensitive key, the target controllable item in a selectable state is selected, and a function corresponding to the target controllable item in a selectable state is triggered. The above steps S701 to S704 can refer to the description of the fourth embodiment, and will not be repeated here.

本文中描述的各个方法实施例可以为独立的方案,也可以根据内在逻辑进行组合,这些方案都落入本申请的保护范围中。The various method embodiments described in this document may be independent solutions or may be combined according to internal logic, and these solutions all fall within the protection scope of this application.

可以理解的是,上述各个方法实施例中,由电子设备实现的方法和操作,也可以由可用于电子设备的部件(例如芯片或者电路)实现。It can be understood that, in the above-mentioned various method embodiments, the methods and operations implemented by the electronic device can also be implemented by components (such as chips or circuits) that can be used in the electronic device.

上述实施例对本申请提供的触控操作方法进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行每一个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above embodiments introduce the touch operation method provided by the present application. It is understandable that, in order to implement the above functions, the electronic device includes a hardware structure and/or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

应注意,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(doubledata rateSDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(directrambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

根据本申请实施例提供的方法,本申请实施例还提供一种计算机程序产品,该计算机程序产品包括:计算机程序或指令,当该计算机程序或指令在计算机上运行时,使得该计算机执行方法实施例中任意一个实施例的方法。According to the method provided in the embodiments of the present application, the embodiments of the present application also provide a computer program product, which includes: a computer program or instructions, when the computer program or instructions are run on a computer, the computer executes the method of any one of the embodiments of the method.

根据本申请实施例提供的方法,本申请实施例还提供一种计算机存储介质,该计算机存储介质存储有计算机程序或指令,当该计算机程序或指令在计算机上运行时,使得该计算机执行方法实施例中任意一个实施例的方法。According to the method provided by the embodiments of the present application, the embodiments of the present application also provide a computer storage medium, which stores a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method of any one of the embodiments of the method.

根据本申请实施例提供的方法,本申请实施例还提供一种电子设备,包括存储器和处理器;所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,使所述电子设备执行方法实施例中任意一个实施例的方法。According to the method provided by an embodiment of the present application, an embodiment of the present application also provides an electronic device, including a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method of any one of the embodiments of the method embodiment.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

上述本申请实施例提供的计算机存储介质、计算机程序产品、电子设备均用于执行上文所提供的方法,因此,其所能达到的有益效果可参考上文所提供的方法对应的有益效果,在此不再赘述。The computer storage medium, computer program product, and electronic device provided in the above-mentioned embodiments of the present application are all used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the method provided above, and will not be repeated here.

应理解,在本申请的各个实施例中,各步骤的执行顺序应以其功能和内在逻辑确定,各步骤序号的大小并不意味着执行顺序的先后,不对实施例的实施过程构成限定。It should be understood that in each embodiment of the present application, the execution order of each step should be determined by its function and internal logic, and the size of the sequence number of each step does not mean the order of execution and does not limit the implementation process of the embodiment.

本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置、计算机存储介质、计算机程序产品、电子设备的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, computer storage medium, computer program product, and electronic device, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

以上所述的本申请实施方式并不构成对本申请保护范围的限定。The above-described embodiments of the present application do not constitute a limitation on the protection scope of the present application.

Claims (23)

1. A touch operation method, wherein the method is applied to an electronic device, the electronic device includes at least one pressure-sensitive key, the at least one pressure-sensitive key is used for receiving a touch operation input by a user, and the method includes:
The electronic device displays a first interface, wherein the first interface includes at least one steerable item;
responding to a single-hand mode triggering operation of a user, and enabling the electronic equipment to enter a single-hand operation mode;
When the electronic equipment is in a single-hand operation mode, responding to a first touch operation input by a user through the pressure sensing key, wherein at least one controllable item in a target control area in the first interface is in a selectable state in sequence;
When a target steerable item in the at least one steerable item is in a selectable state, responding to a second touch operation input by a user through the pressure sensing key, the target steerable item in the selectable state is selected, and a function corresponding to the target steerable item in the selectable state is triggered.
2. The method of claim 1, wherein before at least one steerable item in a target steering region in the first interface is in turn in a selectable state in response to a first touch operation by a user via the pressure sensitive key input, the method further comprises:
determining the target manipulation area in the first interface based on an eye movement recognition algorithm or an angle recognition algorithm;
Displaying a second interface based on the target manipulation area; the target control area in the second interface is displayed in a first display mode, the area except the target control area in the second interface is displayed in a second display mode, and the first display mode and the second display mode are different.
3. The method of claim 2, wherein determining the target manipulation region in the first interface based on the eye movement recognition algorithm comprises:
Acquiring a user face image when the electronic equipment is in a single-hand operation mode;
processing the facial image of the user to obtain eye movement data of the user;
the target manipulation area is determined in the first interface based on the eye movement data.
4. The method of claim 2, wherein determining the target manipulation region in the first interface based on the angle recognition algorithm comprises:
acquiring a first angle of the electronic equipment when the electronic equipment is in a single-hand operation mode;
Determining an inclination angle of the electronic device based on the first angle and the second angle under the condition that the angle of the electronic device is changed from the first angle to the second angle and the time period of the electronic device for keeping the second angle is longer than a second preset time period;
and determining the target control area in the first interface based on the inclination angle of the electronic equipment.
5. The method of claim 4, wherein determining the target manipulation region in the first interface based on the tilt angle comprises:
Obtaining mapping relations between a plurality of preset angles and each display area of the electronic equipment;
and determining the target control area corresponding to the inclination angle in the first interface based on the mapping relation.
6. The method of any of claims 2-5, wherein the displaying a second interface based on the target manipulation area comprises:
defining the target control area on the second interface in a graphic frame mode; or alternatively
And displaying controllable items in the target control area on the second interface in the first display mode, and displaying controllable items except the target control area in the second interface in the second display mode, wherein the first display mode is different from the second display mode.
7. The method of any of claims 2-5, wherein the at least one steerable item in the target steering region in the first interface is in turn in a selectable state in response to a first touch operation by a user via the pressure sensitive key input, comprising:
And in a first preset time period when the electronic equipment starts to display the second interface, responding to a first touch operation input by a user through the pressure-sensitive key, wherein at least one controllable item in a target control area in the first interface is in a selectable state in sequence.
8. The method of claim 1, wherein the first touch operation comprises a sliding operation and the second touch operation comprises a pressing operation.
9. The method of claim 1, wherein in response to a first touch operation by a user via the pressure sensitive key input, at least one steerable item in a target steering region in the first interface is sequentially in a selectable state, comprising:
Determining a starting position of a cursor in response to a first sub-touch operation input by a user through the pressure-sensitive key, and moving the cursor along a first coordinate axis on the first interface; wherein when the cursor resides in a first steerable item in the target steering region, the first steerable item is in a selectable state; the first controllable item is any controllable item in the at least one controllable item; and/or the number of the groups of groups,
Responding to a second sub-touch operation input by a user through the pressure-sensitive key, wherein the cursor moves along a second coordinate axis on the first interface, and the first coordinate axis is perpendicular to the second coordinate axis;
The first touch operation includes the first sub-touch operation and/or the second sub-touch operation.
10. The method of claim 9, wherein the first sub-touch operation comprises a sliding operation, the second sub-touch operation comprises a no-hands-off press operation, and the second touch operation comprises a hands-off operation.
11. The method of claim 9, wherein the cursor moves along a second coordinate axis at the first interface, comprising:
Acquiring a pressure value of the second sub-touch operation;
determining a target moving direction of the cursor along a second coordinate axis on the basis of the pressure value;
The cursor moves in a target movement direction along the second coordinate axis.
12. The method of claim 11, wherein determining a target movement direction of the cursor moving along a second coordinate axis at the first interface based on the pressure value comprises:
Under the condition that the pressure value is gradually increased, determining the target moving direction as a first direction of the second coordinate axis;
Under the condition that the pressure value gradually decreases, determining the target moving direction as a second direction of the second coordinate axis; the first direction and the second direction are opposite directions.
13. The method of claim 9, wherein the at least one pressure sensitive key comprises a first pressure sensitive key and a second pressure sensitive key, the first pressure sensitive key and the second pressure sensitive key being disposed opposite sides of the electronic device; the determining the starting position of the cursor comprises the following steps:
determining a pressure-sensitive key for receiving the first sub-touch operation;
Under the condition that the pressure-sensitive key receiving the first sub-touch operation is a first pressure-sensitive key, determining that the initial position of the cursor is a position far away from the first pressure-sensitive key;
and under the condition that the pressure-sensitive key receiving the first sub-touch operation is a second pressure-sensitive key, determining that the initial position of the cursor is a position far away from the second pressure-sensitive key.
14. The method of claim 1, wherein the electronic device enters a one-handed mode of operation in response to a one-handed mode trigger operation by a user, comprising:
Responding to a third touch operation input by a user through the pressure sensing key, and enabling the electronic equipment to enter the single-hand operation mode; or alternatively
Responding to click operation input by a user through a single-hand operation mode control on the first interface, and entering a single-hand operation mode;
The third touch operation is a single pressing operation or two pressing operations, wherein the time interval of the two pressing operations is smaller than a preset time interval.
15. The method of claim 1, wherein the display style of the target steerable item when in the selectable state is different from the display style of other steerable items in the first interface than the target steerable item.
16. The method of claim 15, wherein the display patterns comprise a highlighting pattern, a hovering pattern, a dynamic display pattern, a magnifying display pattern, and a shrinking display pattern.
17. The method of claim 1, wherein the controllable items comprise controls and links.
18. A touch operation method, wherein the method is applied to an electronic device, the electronic device includes a pressure-sensitive key, the pressure-sensitive key is used for receiving a touch operation input by a user, and the method includes:
The electronic equipment displays a first interface;
determining a target zoom area in the first interface in case of receiving the zoomable notification information in response to a fourth touch operation input by the user via the pressure-sensitive key; wherein the scalable notification information is used to notify that the first interface includes scalable content;
determining a zoom focus for performing a zoom operation on the scalable content in the target zoom region;
And responding to a fifth touch operation input by a user through the pressure sensing key, and performing scaling operation on the scalable content based on the scaling focus.
19. The method of claim 18, wherein determining a zoom focus in the target zoom region for a zoom operation on the scalable content comprises:
And determining the center of the target scaling area as a scaling focus for scaling the scalable content.
20. The method of claim 18, wherein in response to a fifth touch operation entered by a user via a pressure sensitive key, scaling the scalable content based on the scaling focus comprises:
Performing an enlargement operation on the scalable content based on the zoom focus in a case where the fifth touch operation is an upward sliding operation; performing a zoom-out operation on the scalable content based on the zoom focus in a case where the fifth touch operation is a slide-down operation; or alternatively
Performing an enlargement operation on the scalable content based on the zoom focus in a case where the fifth touch operation is a downward sliding operation; and in the case that the fifth touch operation is an upward sliding operation, performing a zoom-out operation on the scalable content based on the zoom focus.
21. The method of claim 18, wherein, in response to a fifth touch operation input by the user via the pressure sensitive key, after performing a zoom operation on the scalable content based on the zoom focus, further comprising:
Displaying a third interface after performing a zoom operation on the zoomable content, the third interface comprising at least one controllable item;
Responding to a first touch operation input by a user through the pressure sensitive key, wherein at least one controllable item in a target control area in the third interface is in a selectable state in sequence;
When a target steerable item in the at least one steerable item is in a selectable state, responding to a second touch operation input by a user through the pressure sensing key, the target steerable item in the selectable state is selected, and a function corresponding to the target steerable item in the selectable state is triggered.
22. An electronic device comprising a memory and a processor; the memory is coupled to the processor; the memory is for storing computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-21.
23. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions, which when run on a computer, cause the computer to perform the method of any of claims 1-21.
CN202311138900.8A 2023-09-04 2023-09-04 Touch operation method and electronic device Active CN118444832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311138900.8A CN118444832B (en) 2023-09-04 2023-09-04 Touch operation method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311138900.8A CN118444832B (en) 2023-09-04 2023-09-04 Touch operation method and electronic device

Publications (2)

Publication Number Publication Date
CN118444832A true CN118444832A (en) 2024-08-06
CN118444832B CN118444832B (en) 2025-02-14

Family

ID=92327034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311138900.8A Active CN118444832B (en) 2023-09-04 2023-09-04 Touch operation method and electronic device

Country Status (1)

Country Link
CN (1) CN118444832B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094533A (en) * 2015-06-30 2015-11-25 努比亚技术有限公司 Method and mobile terminal for entering single-hand mode based on multi-functional key
CN105389104A (en) * 2015-07-14 2016-03-09 魅族科技(中国)有限公司 Application interface control controlling method and related equipment
CN113552994A (en) * 2020-04-23 2021-10-26 华为技术有限公司 Touch operation method and device
WO2022207821A1 (en) * 2021-03-31 2022-10-06 Legind Von Bergen Holding Aps A method for integrated gaze interaction with a virtual environment, a data processing system, and computer program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094533A (en) * 2015-06-30 2015-11-25 努比亚技术有限公司 Method and mobile terminal for entering single-hand mode based on multi-functional key
CN105389104A (en) * 2015-07-14 2016-03-09 魅族科技(中国)有限公司 Application interface control controlling method and related equipment
CN113552994A (en) * 2020-04-23 2021-10-26 华为技术有限公司 Touch operation method and device
US20230075464A1 (en) * 2020-04-23 2023-03-09 Dongping Wu Touch Operation Method and Device
WO2022207821A1 (en) * 2021-03-31 2022-10-06 Legind Von Bergen Holding Aps A method for integrated gaze interaction with a virtual environment, a data processing system, and computer program

Also Published As

Publication number Publication date
CN118444832B (en) 2025-02-14

Similar Documents

Publication Publication Date Title
JP7391102B2 (en) Gesture processing methods and devices
CN110489043B (en) Management method and related device for floating window
JP7081048B2 (en) System navigation bar display method, system navigation bar control method, graphical user interface, and electronic devices
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
CN113325941B (en) Under-screen fingerprint display method and electronic device
WO2021036571A1 (en) Desktop editing method and electronic device
CN115484380B (en) Shooting method, graphical user interface and electronic equipment
WO2021000881A1 (en) Screen splitting method and electronic device
CN113986070B (en) A quick viewing method and electronic device for an application card
CN110559645B (en) An application operation method and electronic device
WO2021063098A1 (en) Touch screen response method, and electronic device
WO2022068819A1 (en) Interface display method and related apparatus
CN110633043A (en) Split screen processing method and terminal equipment
WO2020037469A1 (en) Interface display method and electronic device
WO2021082815A1 (en) Display element display method and electronic device
CN116048358B (en) Control methods and related devices for suspended balls
CN112698756A (en) Display method of user interface and electronic equipment
CN113934330A (en) Screen capturing method and electronic equipment
CN114077365A (en) Split screen display method and electronic equipment
CN112068907A (en) Interface display method and electronic equipment
CN112449101A (en) Shooting method and electronic equipment
CN113961115B (en) Object editing method, electronic device, medium, and program product
EP4421602A1 (en) Management method for application card, electronic device, and storage medium
US12204741B2 (en) Screenshot method and related device
CN116991274A (en) A method for handling exceptions in scrolling effects and electronic equipment

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
GR01 Patent grant
CB02 Change of applicant information

Country or region after: China

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Terminal Co.,Ltd.

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Applicant before: Honor Device Co.,Ltd.

Country or region before: China