WO2014173327A1 - Method and device for adjusting a button identification region - Google Patents

Method and device for adjusting a button identification region Download PDF

Info

Publication number
WO2014173327A1
WO2014173327A1 PCT/CN2014/076322 CN2014076322W WO2014173327A1 WO 2014173327 A1 WO2014173327 A1 WO 2014173327A1 CN 2014076322 W CN2014076322 W CN 2014076322W WO 2014173327 A1 WO2014173327 A1 WO 2014173327A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
size
touch screen
button
identification
Prior art date
Application number
PCT/CN2014/076322
Other languages
French (fr)
Chinese (zh)
Inventor
魏雷
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014173327A1 publication Critical patent/WO2014173327A1/en

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/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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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
    • G06F3/04817Interaction 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 using icons
    • 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

Definitions

  • Embodiments of the present invention relate to the field of touch screen technologies, and in particular, to a method and an apparatus for adjusting a button recognition area. Background technique
  • touch screens are increasingly used in various electronic devices, especially handheld devices such as mobile phones. Users can easily control a variety of applications through the touch screen. Limited by the screen size of the electronic device touch screen, the size and number of buttons that various applications provide to the user to manipulate vary greatly. When there are many control buttons, in order to display the entire screen completely, the electronic device will adjust the button very small, and the recognition area of the button will also be reduced, which will easily cause the user to misuse and affect the user experience. Summary of the invention
  • a method and a device for adjusting a button identification area are provided, which can reduce erroneous operations and improve user experience.
  • the embodiment of the present invention discloses the following technical solution:
  • a method for adjusting a button identification area including: acquiring a touch screen area of a user on a touch screen; determining a size of the touch screen area Whether the size of the identification area of the button on the touch screen matches, the identification area of the button is used to determine whether the user clicks the button according to the position of the touch screen area of the user; if not, the identification area of the button is The size is adjusted to match the size of the touch screen area.
  • the determining a size of the touch screen area Whether the size of the identification area of the button on the touch screen matches specifically: calculating a difference between an area of the touch screen area and an area of the identification area of the button; determining whether an absolute value of the difference is greater than or equal to an area a threshold, if the absolute value of the difference is greater than or equal to the area threshold, the size of the touch screen area does not match the size of the identification area of the button, if the absolute value of the difference is less than the area threshold And the size of the touch screen area matches the size of the identification area of the button.
  • the size of the identification area of the button is adjusted to match the size of the touch screen area.
  • the method further includes: adjusting a size of the identification area of the button, such that an absolute value of an area difference between an area of the touch screen area and an identification area of the button is smaller than the area threshold.
  • the determining the size and location of the touch screen area Whether the size of the identification area of the button on the touch screen matches specifically includes: calculating a difference between a longest diagonal line of the touch screen area and a longest diagonal line of the identification area of the button; determining the difference Whether the absolute value of the value is greater than or equal to the length threshold, and if the absolute value of the difference is greater than or equal to the length threshold, the size of the touch screen area does not match the size of the identification area of the button, if the difference is The absolute value of the touch screen is smaller than the length threshold, and the size of the touch screen area matches the size of the identification area of the button.
  • the method includes: adjusting a size of a display area of the button when a size of the touch screen area does not match a size of the identification area of the button, wherein a display area of the button is expanded with an identification area of the button And expanding, and/or the display area of the button is reduced as the recognition area of the button is reduced.
  • the second aspect provides an apparatus for adjusting a button identification area, including: an area obtaining unit that acquires a touch screen area of the user on the touch screen; and a determining unit, configured to determine a size of the touch screen area and a button on the touch screen Whether the size of the identification area matches, and the identification area of the button is used to determine whether the user clicks according to the location of the touch screen area of the user a adjusting unit, configured to: when the determining unit determines that the size of the touch screen area does not match the size of the identification area of the button on the touch screen, adjust the size of the identification area of the button to the touch The size of the screen area matches.
  • the determining unit includes: a calculating subunit, configured to calculate a difference between an area of the touch screen area and an area of the identification area of the button; a subunit, configured to determine whether an absolute value of the difference is greater than or equal to an area threshold, and if an absolute value of the difference is greater than or equal to the area threshold, a size of the touch screen area and an identification area of the button The size does not match, and if the absolute value of the difference is less than the area threshold, the size of the touch screen area matches the size of the identification area of the button.
  • the adjusting unit is specifically configured to adjust a size of the identification area of the button, so that the touch screen is The absolute value of the area difference between the area of the area and the identification area of the button is less than the area threshold.
  • the adjusting unit is further configured to be used when Adjusting the size of the display area of the button when the size of the screen area does not match the size of the identification area of the button, wherein the display area of the button is expanded as the recognition area of the button is enlarged, and/or The display area of the button is reduced as the recognition area of the button is reduced.
  • an electronic device including a touch screen, a memory, and a processor, wherein the memory stores a program, the processor is configured to read the program in the memory, and performs the following steps: acquiring a user a touch panel area on the touch screen; determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen, and the identification area of the button is used to determine whether the user clicks according to the position of the touch screen area of the user Button; if not, the size of the identification area of the button is adjusted to match the size of the touch screen area.
  • the size of the recognition area of the button on the touch screen is adjusted according to the size of the touch screen area on the touch screen, so that the size of the touch screen area matches the button identification area, thereby reducing the user's touch screen, The touch screen area is too large, which causes the wrong operation caused by the button recognition error, thereby improving the user experience.
  • FIG. 1 is a flowchart of a method for adjusting a button recognition area according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for determining whether a size of a touch screen area matches a size of a recognition area of a button on a touch screen according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a determining unit according to an embodiment of the present invention.
  • FIG. 1 a flowchart of a method for adjusting a button identification area according to an embodiment of the present invention is shown.
  • the electronic device in the embodiment of the invention has a touch screen, and when the user uses the electronic device, all or part of the manipulation of the electronic device can be realized by touching the touch screen button. Wherein, when the user clicks on the touch screen, the touch screen area is formed with the touch screen.
  • Each touch screen button has a certain display area on the screen, including the size and position of the display area, and the display area of each touch screen button is different; each touch screen button corresponds to a certain recognition area, and the identification area of the button is used for Judging whether the user clicks the button according to the position of the touch screen area of the user.
  • the touch screen position of the user is located in the recognition area of a button, such as in the identification area of the button "send”, the user is confirmed to click the "send” button.
  • the recognition area of each touch screen button may have different positions and the same size.
  • the button recognition area may be a center of the display area of the button, a circle with a certain length as a radius, and a circle corresponding to the identification area of each button.
  • the size of the button recognition area can be set and changed as needed, and is not fixed.
  • the method for adjusting the button identification area may include: Step 101: Acquire a touch screen area of the user on the touch screen.
  • the electronic device can acquire the contact position of the user on the touch screen, thereby determining the touch screen area of the user on the touch screen.
  • the size of the touch screen area represents the average size of the user's contact area with the touch screen when the user performs a touch operation on the touch screen.
  • the touch screen area formed by different user touches is different in size, such as a thick finger of a man, formed when touched.
  • the touch screen area is larger than the touch screen area formed when the woman touches.
  • the touch screen area formed by the user on the touch screen may be located in the display area of the button on the touch screen, or may be located at other positions on the touch screen.
  • Step 102 Determine whether the size of the touch screen area matches the size of the identification area of the button on the touch screen. After obtaining the touch screen area of the user on the touch screen, obtaining the size of the recognition area of the button currently set in the electronic device, and then determining whether the size of the touch screen area matches the size of the button recognition area, that is, comparing the touch screen area. Whether the size is similar to the size of the button recognition area.
  • a difference between the difference or the diameter between the longest diagonal lines of the touch panel area and the button recognition area may be calculated, wherein the diagonal line may refer to the touch screen area (or the button identification) a line connecting any two points that are not adjacent to each other at the boundary of the area; if the absolute value of the difference is greater than or equal to the preset length threshold, the two areas are considered to be unmatched, and if the absolute value of the difference is less than the preset For the length threshold, the two regions are considered to match. There are many ways to determine whether the two regions match, and they are not listed here.
  • Step 103 Adjust the size of the identification area of the button to match the size of the touch screen area. If the touch screen area is larger than the recognition area of the button, and the difference between the two areas exceeds the threshold, the recognition area of the button may be adjusted to match the size of the button recognition area with the size of the touch screen area.
  • the recognition area of the button may be adjusted to be small, so that the button recognition area matches the size of the touch screen area.
  • the process of the adjustment button identifying the area may be according to the size of the touch screen area according to the ratio of the preset touch screen area size to the size of the button recognition area, and determining the size of the identification area of the button in real time;
  • the size of the spare button recognition area selects a button recognition area that is the closest to the size of the touch screen area as an electronic device.
  • the size of the recognition area of the button on the touch screen is adjusted according to the size of the touch screen area on the touch screen, so that the size of the touch screen area matches the button identification area, thereby reducing the touch screen area of the user.
  • the user's experience is enhanced by the erroneous operation caused by the button recognition error.
  • the process of determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen may include: Step 201: Calculating an area of the touch screen area The difference in the area of the identification area of the button. Step 202: Determine whether an absolute value of the difference is greater than or equal to an area threshold.
  • step 203 Adjust the size of the recognition area of the button so that the absolute value of the area difference between the area of the touch screen area and the identification area of the button is smaller than the area threshold.
  • the identification area of the button may be enlarged, and the area of the area may be increased, thereby The difference between the area of the touch screen area and the area of the identification area of the button is made smaller than the area threshold so that the two areas can match. If the area of the identification area of the button is much larger than the area of the touch screen area, the difference between the two is greater than or equal to the area threshold. At this time, the identification area of the button can be reduced, and the area of the area can be reduced, so that the area of the identification area of the button can be made.
  • the button display area may have a certain relationship with the recognition area of the button.
  • the display area of the button may be expanded with the enlargement of the recognition area of the button, and/or the display area of the button may be
  • the method further includes: adjusting the size of the display area of the button when the size of the touch screen area does not match the size of the identification area of the button.
  • the step of adjusting the display area of the button may be performed simultaneously or sequentially with the step of adjusting the identification area of the button In progress, the order is not limited.
  • the display area of the electronic device is small, it is not suitable to enlarge the display area of the button, or if the button display area is too large to block other display contents of the electronic device, only the identification area of the button may be enlarged;
  • the button display area is not limited, and the display area of the button can be adjusted at the same time when the recognition area of the button is adjusted, for example, the recognition area of the button and the display area of the button are simultaneously enlarged.
  • the size of the identification area of the adjusted button may be further saved, so as to keep the identification area of the adjusted button in the subsequent operation of the user.
  • the method may further include: after receiving the determination instruction, performing the foregoing determination The step of matching the size of the touch screen area with the size of the recognition area of the button on the touch screen for use by a plurality of user operations.
  • the apparatus may include: an area obtaining unit 301 that acquires a touch screen area of the user on the touch screen.
  • the determining unit 302 is configured to determine whether the size of the touch screen area matches the size of the identification area of the button on the touch screen.
  • the adjusting unit 303 is configured to adjust the size of the identification area of the button to the touch when the determining unit 302 determines that the size of the touch screen area does not match the size of the identification area of the button on the touch screen The size of the screen area matches.
  • the device adjusts the size of the recognition area of the button on the touch screen according to the size of the touch screen area of the user on the touch screen, so that the size of the touch screen area matches the button identification area, which reduces the touch screen area when the user touches the screen, etc.
  • the user's experience is enhanced by the misoperation caused by the button recognition error.
  • the determining unit 302 may further include: a calculation subunit 401, configured to calculate a difference between an area of the touch screen area and an area of the identification area of the button; and a determination subunit 402, configured to determine whether an absolute value of the difference value is greater than or equal to an area threshold, if If the absolute value of the difference is greater than or equal to the area threshold, the size of the touch screen area does not match the size of the identification area of the button, and if the absolute value of the difference is smaller than the area threshold, The size of the touch screen area matches the size of the identification area of the button.
  • a calculation subunit 401 configured to calculate a difference between an area of the touch screen area and an area of the identification area of the button
  • a determination subunit 402 configured to determine whether an absolute value of the difference value is greater than or equal to an area threshold, if If the absolute value of the difference is greater than or equal to the area threshold, the size of the touch screen area does not match the size of the identification area of the button, and if the absolute value of
  • the adjusting unit may be specifically configured to adjust a size of the identification area of the button, such that an absolute value of an area difference between an area of the touch screen area and an identification area of the button is smaller than the Area threshold.
  • the adjusting unit is further configured to adjust a size of the display area of the button when the size of the touch screen area does not match the size of the identification area of the button, where the display area of the button is related to the button. The recognition area is enlarged and enlarged, and/or the display area of the button is reduced as the recognition area of the button is reduced.
  • An embodiment of the present invention further provides an electronic device, including a touch screen, a memory, and a processor, wherein the memory stores a program, and the processor is configured to read the program in the memory, and perform the following steps: Determining, by the user, a touch panel area on the touch screen; determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen; if not, adjusting the size of the identification area of the button to The size of the touch screen area matches.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
  • a U disk a mobile hard disk
  • a read-only memory Read-Only Memory
  • RAM random access memory
  • magnetic disk a magnetic disk
  • optical disk and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a method and device for adjusting a button identification region. The method for adjusting a button identification region comprises: obtaining a touch screen region of a user on a touch screen; determining whether a size of the touch screen region matches a size of a button identification region on the touch screen, the button identification region being used for determining, according to the a position of the touch screen region of the user, whether the user clicks a button; and if the size of the touch screen region does not match the size of the button identification region, adjusting the size of the button identification region to match the size of the touch screen region. According to embodiments of the present invention, a size of a button identification region on a touch screen is adjusted according to a size of a touch screen region of the user on the touch screen, so that the size of the touch screen region matches that of the button identification region, and misoperations generated by a button identification error due to the fact that the touch screen region is overlarge when the user touches the screen is reduced, thereby improving the user experience.

Description

电子设备拍摄方法及装置和电子设备  Electronic device shooting method and device and electronic device
本申请要求于 2013年 04月 27 日提交中国专利局、 申请号为 201310152293. 0、 名称为 "一种按钮识别区域的调整方法及装置" 的中国专利申请的优先权, 其全部内 容通过引用结合在本申请中。 This application claims priority to Chinese Patent Application No. 201310152293. 0, entitled "Adjustment Method and Apparatus for a Button Identification Area" on April 27, 2013, the entire contents of which are incorporated by reference. In this application.
技术领域 Technical field
本发明实施例涉及触摸屏技术领域, 特别是涉及一种按钮识别区域的调整方法及 装置。 背景技术  Embodiments of the present invention relate to the field of touch screen technologies, and in particular, to a method and an apparatus for adjusting a button recognition area. Background technique
目前, 触摸屏越来越多的应用在各种电子设备中, 尤其是手持设备, 如手机等。 用户可以很方便地通过触摸屏操控各种应用。 受限于电子设备触摸屏的屏幕大小, 各种应用提供给用户操控的按钮大小和数量 差异很大。 当操控按钮很多时, 为了整屏显示完全, 电子设备会将按钮调整的很小, 按钮的识别区域也随之减小, 这样极易造成用户误操作, 影响用户体验。 发明内容  At present, touch screens are increasingly used in various electronic devices, especially handheld devices such as mobile phones. Users can easily control a variety of applications through the touch screen. Limited by the screen size of the electronic device touch screen, the size and number of buttons that various applications provide to the user to manipulate vary greatly. When there are many control buttons, in order to display the entire screen completely, the electronic device will adjust the button very small, and the recognition area of the button will also be reduced, which will easily cause the user to misuse and affect the user experience. Summary of the invention
本发明实施例中提供了一种按钮识别区域的调整方法及装置, 能够减少误操作, 提升用户体验。 为了解决上述技术问题, 本发明实施例公开了如下技术方案: 第一方面, 提供一种按钮识别区域的调整方法, 包括: 获取用户在触摸屏上的触屏区域; 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹配, 所述 按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述按钮; 若不匹配, 则将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配。 结合上述第一方面, 在第一种可能的实现方式中, 所述判断所述触屏区域的大小 与所述触摸屏上按钮的识别区域的大小是否匹配, 具体包括: 计算所述触屏区域的面积与所述按钮的识别区域的面积的差值; 判断所述差值的绝对值是否大于等于面积阈值,若所述差值的绝对值大于等于所述 面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小不匹配, 若所述差值 的绝对值小于所述面积阈值,则所述触屏区域的大小与所述按钮的识别区域的大小匹配。 结合上述第一方面, 和 /或第一种可能的实现方式, 在第二种可能的实现方式中, 所述将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配, 具体包括: 调整所述按钮的识别区域的大小, 使所述触屏区域的面积与所述按钮的识别区域 的面积差值的绝对值小于所述面积阈值。 结合上述第一方面,和 /或第一种可能的实现方式,和 /或第二种可能的实现方式, 在第三种可能的实现方式中, 所述判断所述触屏区域的大小与所述触摸屏上按钮的识 别区域的大小是否匹配, 具体包括: 计算所述触屏区域的最长对角线与所述按钮的识别区域的最长对角线之间的差值; 判断所述差值的绝对值是否大于等于长度阈值, 若所述差值的绝对值大于等于所 述长度阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小不匹配, 若所述差 值的绝对值小于所述长度阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小 匹配。 结合上述第一方面,和 /或第一种可能的实现方式,和 /或第二种可能的实现方式, 和 /或第三种可能的实现方式, 在第四种可能的实现方式中, 还包括: 当所述触屏区域的大小与所述按钮的识别区域的大小不匹配时, 调整所述按钮的 显示区域的大小, 其中, 所述按钮的显示区域随所述按钮的识别区域的扩大而扩大, 和 /或所述按钮的显示区域随所述按钮的识别区域的缩小而缩小。 第二方面, 提供一种按钮识别区域的调整装置, 包括: 区域获取单元, 获取用户在触摸屏上的触屏区域; 判断单元, 用于判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小 是否匹配, 所述按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述 按钮; 调整单元, 用于当所述判断单元判断所述触屏区域的大小与所述触摸屏上按钮的 识别区域的大小不匹配时, 将所述按钮的识别区域的大小调整至与所述触屏区域的大 小相匹配。 结合上述第二方面, 在第一种可能的实现方式中, 所述判断单元包括: 计算子单元, 用于计算所述触屏区域的面积与所述按钮的识别区域的面积的差值; 判断子单元, 用于判断所述差值的绝对值是否大于等于面积阈值, 若所述差值的 绝对值大于等于所述面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小 不匹配, 若所述差值的绝对值小于所述面积阈值, 则所述触屏区域的大小与所述按钮 的识别区域的大小匹配。 结合上述第二方面, 和 /或第一种可能的实现方式, 在第二种可能的实现方式中, 所述调整单元, 具体用于调整所述按钮的识别区域的大小, 使所述触屏区域的面积与 所述按钮的识别区域的面积差值的绝对值小于所述面积阈值。 结合上述第二方面,和 /或第一种可能的实现方式,和 /或第二种可能的实现方式, 在第三种可能的实现方式中, 所述调整单元, 还用于当所述触屏区域的大小与所述按 钮的识别区域的大小不匹配时, 调整所述按钮的显示区域的大小, 其中, 所述按钮的 显示区域随所述按钮的识别区域的扩大而扩大, 和 /或所述按钮的显示区域随所述按钮 的识别区域的缩小而缩小。 第三方面, 提供一种电子设备, 包括触摸屏、 存储器和处理器, 所述存储器中存 储有一段程序, 所述处理器用于读取所述存储器中的所述程序, 执行以下步骤: 获取用户在触摸屏上的触屏区域; 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹配, 所述 按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述按钮; 若不匹配, 则将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配。 本发明实施例通过根据用户在触摸屏上的触屏区域大小调整触摸屏上的按钮的识 别区域大小, 以使得触屏区域大小与按钮识别区域相匹配, 减少了用户触屏时, 由于 触屏区域过大等导致按钮识别错误所产生的误操作, 从而提升了用户体验。 附图说明 In the embodiment of the present invention, a method and a device for adjusting a button identification area are provided, which can reduce erroneous operations and improve user experience. In order to solve the above technical problem, the embodiment of the present invention discloses the following technical solution: In a first aspect, a method for adjusting a button identification area is provided, including: acquiring a touch screen area of a user on a touch screen; determining a size of the touch screen area Whether the size of the identification area of the button on the touch screen matches, the identification area of the button is used to determine whether the user clicks the button according to the position of the touch screen area of the user; if not, the identification area of the button is The size is adjusted to match the size of the touch screen area. In combination with the foregoing first aspect, in a first possible implementation, the determining a size of the touch screen area Whether the size of the identification area of the button on the touch screen matches, specifically: calculating a difference between an area of the touch screen area and an area of the identification area of the button; determining whether an absolute value of the difference is greater than or equal to an area a threshold, if the absolute value of the difference is greater than or equal to the area threshold, the size of the touch screen area does not match the size of the identification area of the button, if the absolute value of the difference is less than the area threshold And the size of the touch screen area matches the size of the identification area of the button. With the first aspect, and/or the first possible implementation, in a second possible implementation, the size of the identification area of the button is adjusted to match the size of the touch screen area. Specifically, the method further includes: adjusting a size of the identification area of the button, such that an absolute value of an area difference between an area of the touch screen area and an identification area of the button is smaller than the area threshold. With reference to the foregoing first aspect, and/or the first possible implementation manner, and/or the second possible implementation manner, in a third possible implementation manner, the determining the size and location of the touch screen area Whether the size of the identification area of the button on the touch screen matches, specifically includes: calculating a difference between a longest diagonal line of the touch screen area and a longest diagonal line of the identification area of the button; determining the difference Whether the absolute value of the value is greater than or equal to the length threshold, and if the absolute value of the difference is greater than or equal to the length threshold, the size of the touch screen area does not match the size of the identification area of the button, if the difference is The absolute value of the touch screen is smaller than the length threshold, and the size of the touch screen area matches the size of the identification area of the button. In combination with the first aspect, and/or the first possible implementation, and/or the second possible implementation, and/or the third possible implementation, in a fourth possible implementation, The method includes: adjusting a size of a display area of the button when a size of the touch screen area does not match a size of the identification area of the button, wherein a display area of the button is expanded with an identification area of the button And expanding, and/or the display area of the button is reduced as the recognition area of the button is reduced. The second aspect provides an apparatus for adjusting a button identification area, including: an area obtaining unit that acquires a touch screen area of the user on the touch screen; and a determining unit, configured to determine a size of the touch screen area and a button on the touch screen Whether the size of the identification area matches, and the identification area of the button is used to determine whether the user clicks according to the location of the touch screen area of the user a adjusting unit, configured to: when the determining unit determines that the size of the touch screen area does not match the size of the identification area of the button on the touch screen, adjust the size of the identification area of the button to the touch The size of the screen area matches. With reference to the foregoing second aspect, in a first possible implementation, the determining unit includes: a calculating subunit, configured to calculate a difference between an area of the touch screen area and an area of the identification area of the button; a subunit, configured to determine whether an absolute value of the difference is greater than or equal to an area threshold, and if an absolute value of the difference is greater than or equal to the area threshold, a size of the touch screen area and an identification area of the button The size does not match, and if the absolute value of the difference is less than the area threshold, the size of the touch screen area matches the size of the identification area of the button. With reference to the foregoing second aspect, and/or the first possible implementation manner, in a second possible implementation manner, the adjusting unit is specifically configured to adjust a size of the identification area of the button, so that the touch screen is The absolute value of the area difference between the area of the area and the identification area of the button is less than the area threshold. With reference to the foregoing second aspect, and/or the first possible implementation manner, and/or the second possible implementation manner, in a third possible implementation manner, the adjusting unit is further configured to be used when Adjusting the size of the display area of the button when the size of the screen area does not match the size of the identification area of the button, wherein the display area of the button is expanded as the recognition area of the button is enlarged, and/or The display area of the button is reduced as the recognition area of the button is reduced. In a third aspect, an electronic device is provided, including a touch screen, a memory, and a processor, wherein the memory stores a program, the processor is configured to read the program in the memory, and performs the following steps: acquiring a user a touch panel area on the touch screen; determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen, and the identification area of the button is used to determine whether the user clicks according to the position of the touch screen area of the user Button; if not, the size of the identification area of the button is adjusted to match the size of the touch screen area. In the embodiment of the present invention, the size of the recognition area of the button on the touch screen is adjusted according to the size of the touch screen area on the touch screen, so that the size of the touch screen area matches the button identification area, thereby reducing the user's touch screen, The touch screen area is too large, which causes the wrong operation caused by the button recognition error, thereby improving the user experience. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 对于本领域普通技术人 员而言, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明实施例一种按钮识别区域的调整方法流程图; 图 2为本发明实施例中判断触屏区域的大小与触摸屏上按钮的识别区域的大小是否 匹配的方法流程图; 图 3为本发明实施例一种按钮识别区域的调整装置的结构示意图; 图 4为本发明实施例中判断单元的结构示意图。 具体实施方式  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it will be apparent to those skilled in the art that In other words, other drawings can be obtained based on these drawings without paying creative labor. 1 is a flowchart of a method for adjusting a button recognition area according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for determining whether a size of a touch screen area matches a size of a recognition area of a button on a touch screen according to an embodiment of the present invention; A schematic structural diagram of an apparatus for adjusting a button identification area according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of a determining unit according to an embodiment of the present invention. detailed description
为了使本技术领域的人员更好地理解本发明实施例中的技术方案, 并使本发明实 施例的上述目的、 特征和优点能够更加明显易懂, 下面结合附图对本发明实施例中技 术方案作进一步详细的说明。 参见图 1, 为本发明实施例一种按钮识别区域的调整方法流程图。 本发明实施例中的电子设备具有触摸屏, 用户在使用该电子设备时, 可以通过点 触触摸屏按钮实现对该电子设备的全部或部分操控。 其中, 用户在点击触摸屏时会与 触摸屏形成触屏区域。 每个触摸屏按钮在屏幕上具有其一定的显示区域, 包括显示区 域的大小和位置, 每个触摸屏按钮的显示区域均不相同; 每个触摸屏按钮都对应一定 的识别区域, 按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击该按钮, 当用户的触屏位置位于某一按钮的识别区域内时, 如位于按钮"发送"的识别区域内, 则确认该用户点击 "发送" 按钮。 每个触摸屏按钮的识别区域可以位置不同, 大小相 同, 例如按钮识别区域可以是以按钮的显示区域的中心位置为圆心, 以一定长度为半 径的圆, 各按钮的识别区域所对应的圆的大小相同。 按钮识别区域的大小可以根据需 要设定和变化, 并非固定不变。 在本实施例中, 按钮识别区域的调整方法可以包括: 步骤 101, 获取用户在触摸屏上的触屏区域。 该电子设备可以获取用户在触摸屏上的触点位置, 进而确定用户在触摸屏上的触屏区 域。 该触屏区域的大小代表用户在触摸屏上进行点触操作时用户与触摸屏接触区域的平均 大小, 不同用户点触形成的该触屏区域大小不一, 例如男士手指较粗, 点触时形成的触屏 区域大于女士点触时形成的触屏区域。 用户在触摸屏上形成的该触屏区域可以位于触摸屏 上按钮的显示区域, 也可以位于触摸屏上的其他位置。 步骤 102, 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹 配。 在获得用户在触摸屏上的触屏区域后, 获取该电子设备中当前设置的按钮的识别 区域的大小, 然后判断触屏区域的大小与按钮识别区域的大小是否匹配, 也即比较触 屏区域的大小是否与按钮识别区域的大小近似。 具体的, 可以计算触屏区域与按钮识别区域两区域的最长对角线之间的差值或直 径之间的差值, 其中, 对角线可以是指构成该触屏区域 (或按钮识别区域) 的边界的 各点中非相邻的任意两点间的连线; 如果差值的绝对值大于等于预设长度阈值, 则认 为两区域不匹配, 若差值的绝对值小于该预设长度阈值, 则认为两区域相匹配。 该确 定两区域是否匹配的方法很多, 此处不再一一列举。 若触屏区域的大小与按钮的识别区域的大小匹配,则无需调整当前的按钮识别区域 的大小; 若触屏区域的大小与按钮的识别区域的大小不匹配, 则执行下一步骤。 步骤 103, 将所述按钮的识别区域的大小调整至于所述触屏区域的大小相匹配。 若触屏区域比按钮的识别区域大, 且两区域大小相差超过阈值, 则可以将按钮的 识别区域调大, 以使按钮识别区域与触屏区域的大小相匹配。 若按钮的识别区域比触 屏区域大, 且两区域大小相差超过阈值, 则可以将按钮的识别区域调小, 以使按钮识 别区域与触屏区域的大小相匹配, 当然, 该情况下一般不会引起误操作, 因此也可以 不对按钮的识别区域进行调整。 该调整按钮识别区域的过程可以是根据触屏区域的大小按照预设的触屏区域大小 与按钮识别区域大小的比例关系, 实时确定按钮的识别区域的大小; 也可以是在预设 的多个备用的按钮识别区域的大小, 选择一个与触屏区域大小最接近的作为电子设备 的按钮识别区域。 本发明实施例通过根据用户在触摸屏上的触屏区域大小调整触摸屏上的按钮的识 别区域大小, 以使得触屏区域大小与按钮识别区域相匹配, 减少了用户触屏时, 由于 触屏区域过大等导致按钮识别错误所产生的误操作, 从而提升了用户体验。 在本发明的另一实施例中, 如图 2所示, 该判断触屏区域的大小与触摸屏上按钮的 识别区域的大小是否匹配的过程, 可以包括: 步骤 201, 计算触屏区域的面积与按钮的识别区域的面积的差值。 步骤 202, 判断该差值的绝对值是否大于等于面积阈值。 若触屏区域的面积与按钮识别区域的面积之差的绝对值大于等于面积阈值, 则可 确定触屏区域的大小与按钮的识别区域的大小不匹配, 此时执行步骤 203。 若差值的绝对值小于面积阈值, 则可确定触屏区域的大小与按钮的识别区域的大 小匹配, 此时无需调整按钮识别区域。 其中, 面积阈值为预设值, 具体数值可以根据需要确定, 此处不做限定。 步骤 203, 调整按钮的识别区域的大小, 使触屏区域的面积与按钮的识别区域的面 积差值的绝对值小于面积阈值。 若触屏区域面积远大于按钮的识别区域的面积, 两者的差值大于等于面积阈值, 则极易造成用户的误操作, 此时可以扩大按钮的识别区域, 增大其区域面积, 从而可 以使得触屏区域的面积与按钮的识别区域的面积的差值小于该面积阈值, 使得两区域 可以相匹配。 若按钮的识别区域面积远大于触屏区域的面积, 两者的差值大于等于面 积阈值, 此时也可以缩小按钮的识别区域, 减小其区域面积, 从而可以使得按钮的识 别区域的面积与触屏区域的面积的差值小于该面积阈值, 使得两区域可以相匹配。 在本发明的另一实施例中, 按钮显示区域可以与按钮的识别区域具有一定的关联 关系, 例如, 按钮的显示区域可以随按钮的识别区域的扩大而扩大, 和 /或按钮的显示 区域可以随按钮的识别区域的缩小而缩小, 当触屏区域的大小与按钮的识别区域的大小 不匹配时, 该方法还可以包括: 调整按钮的显示区域的大小。 该调整按钮的显示区域的步骤可以与调整按钮的识别区域的步骤同时进行或先后 进行, 先后顺序不做限定。 若电子设备的显示区域较小, 不适宜扩大按钮的显示区域时, 或者为了避免按钮 显示区域过大而遮挡电子设备的其他显示内容时, 可以只扩大按钮的识别区域即可; 若电子设备的按钮显示区域不受限制, 也可以在调整按钮的识别区域时, 同时调整按 钮的显示区域, 例如同时扩大按钮的识别区域, 以及按钮的显示区域。 在本发明的另一实施例中, 在调整按钮的识别区域后, 还可以进一步保存调整后 的按钮的识别区域大小, 以便于在该用户的后续操作中一直保持该调整后的按钮的识 别区域的大小, 而避免重复判断用户的触屏区域的大小与触摸屏上按钮的识别区域的大 小是否匹配, 以及重复执行按钮识别区域的调整动作。 在本发明的另一实施例中, 当电子设备应用于多用户场景中时, 在获取用户在触 摸屏上的触屏区域之前或之后, 还可以包括: 在接收到判断指令后, 再执行上述判断 触屏区域的大小与触摸屏上的按钮的识别区域的大小是否匹配的步骤, 以便于多个用 户操作使用。 以上是对本发明方法实施例的描述, 下面对实现上述方法的装置进行介绍。 参见图 3, 为本发明实施例一种按钮识别区域的调整装置的结构示意图。 该装置可以包括: 区域获取单元 301, 获取用户在触摸屏上的触屏区域。 判断单元 302,用于判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大 小是否匹配。 调整单元 303,用于当所述判断单元 302判断所述触屏区域的大小与所述触摸屏上 按钮的识别区域的大小不匹配时, 将所述按钮的识别区域的大小调整至与所述触屏区 域的大小相匹配。 该装置通过根据用户在触摸屏上的触屏区域大小调整触摸屏上的按钮的识别区域 大小, 以使得触屏区域大小与按钮识别区域相匹配, 减少了用户触屏时, 由于触屏区 域过大等导致按钮识别错误所产生的误操作, 从而提升了用户体验。 在本发明的另一实施例中, 如图 4所示, 该判断单元 302又可以进一步包括: 计算子单元 401,用于计算所述触屏区域的面积与所述按钮的识别区域的面积的差 值; 判断子单元 402, 用于判断所述差值的绝对值是否大于等于面积阈值, 若所述差值 的绝对值大于等于所述面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大 小不匹配, 若所述差值的绝对值小于所述面积阈值, 则所述触屏区域的大小与所述按 钮的识别区域的大小匹配。 在另一实施例中, 该调整单元, 具体可以用于调整所述按钮的识别区域的大小, 使所述触屏区域的面积与所述按钮的识别区域的面积差值的绝对值小于所述面积阈值。 调整单元, 还可以用于当所述触屏区域的大小与所述按钮的识别区域的大小不匹配 时, 调整所述按钮的显示区域的大小, 其中, 所述按钮的显示区域随所述按钮的识别 区域的扩大而扩大, 和 /或所述按钮的显示区域随所述按钮的识别区域的缩小而缩小。 本发明实施例还提供了一种电子设备, 包括触摸屏、 存储器和处理器, 所述存储 器中存储有一段程序,所述处理器用于读取所述存储器中的所述程序,执行以下步骤: 获取用户在触摸屏上的触屏区域; 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹配; 若不匹配, 则将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。 这些功 能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设计约束条件。 专 业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实 现不应认为超出本发明的范围。 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 在本申请所提供的几个实施例中, 应该理解到, 所揭露的***、 装置和方法, 可 以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所 述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如 多个单元或组件可以结合或者可以集成到另一个***, 或一些特征可以忽略, 或不执 行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些 接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显 示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到 多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例 方案的目的。 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以 是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以 存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或 者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出 来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算机设 备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor ) 执行本发 明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(丽, Read-Only Memory ) ^随机存取存储器(RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任 何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述以权利要求的保 护范围为准。 The above described objects, features, and advantages of the embodiments of the present invention will become more apparent and understood. Give further details. Referring to FIG. 1, a flowchart of a method for adjusting a button identification area according to an embodiment of the present invention is shown. The electronic device in the embodiment of the invention has a touch screen, and when the user uses the electronic device, all or part of the manipulation of the electronic device can be realized by touching the touch screen button. Wherein, when the user clicks on the touch screen, the touch screen area is formed with the touch screen. Each touch screen button has a certain display area on the screen, including the size and position of the display area, and the display area of each touch screen button is different; each touch screen button corresponds to a certain recognition area, and the identification area of the button is used for Judging whether the user clicks the button according to the position of the touch screen area of the user. When the touch screen position of the user is located in the recognition area of a button, such as in the identification area of the button "send", the user is confirmed to click the "send" button. . The recognition area of each touch screen button may have different positions and the same size. For example, the button recognition area may be a center of the display area of the button, a circle with a certain length as a radius, and a circle corresponding to the identification area of each button. the same. The size of the button recognition area can be set and changed as needed, and is not fixed. In this embodiment, the method for adjusting the button identification area may include: Step 101: Acquire a touch screen area of the user on the touch screen. The electronic device can acquire the contact position of the user on the touch screen, thereby determining the touch screen area of the user on the touch screen. The size of the touch screen area represents the average size of the user's contact area with the touch screen when the user performs a touch operation on the touch screen. The touch screen area formed by different user touches is different in size, such as a thick finger of a man, formed when touched. The touch screen area is larger than the touch screen area formed when the woman touches. The touch screen area formed by the user on the touch screen may be located in the display area of the button on the touch screen, or may be located at other positions on the touch screen. Step 102: Determine whether the size of the touch screen area matches the size of the identification area of the button on the touch screen. After obtaining the touch screen area of the user on the touch screen, obtaining the size of the recognition area of the button currently set in the electronic device, and then determining whether the size of the touch screen area matches the size of the button recognition area, that is, comparing the touch screen area. Whether the size is similar to the size of the button recognition area. Specifically, a difference between the difference or the diameter between the longest diagonal lines of the touch panel area and the button recognition area may be calculated, wherein the diagonal line may refer to the touch screen area (or the button identification) a line connecting any two points that are not adjacent to each other at the boundary of the area; if the absolute value of the difference is greater than or equal to the preset length threshold, the two areas are considered to be unmatched, and if the absolute value of the difference is less than the preset For the length threshold, the two regions are considered to match. There are many ways to determine whether the two regions match, and they are not listed here. If the size of the touch screen area matches the size of the recognition area of the button, it is not necessary to adjust the size of the current button recognition area; if the size of the touch screen area does not match the size of the identification area of the button, the next step is performed. Step 103: Adjust the size of the identification area of the button to match the size of the touch screen area. If the touch screen area is larger than the recognition area of the button, and the difference between the two areas exceeds the threshold, the recognition area of the button may be adjusted to match the size of the button recognition area with the size of the touch screen area. If the recognition area of the button is larger than the touch screen area, and the difference between the two areas exceeds the threshold, the recognition area of the button may be adjusted to be small, so that the button recognition area matches the size of the touch screen area. Of course, in this case, generally not This can cause an erroneous operation, so it is not necessary to adjust the recognition area of the button. The process of the adjustment button identifying the area may be according to the size of the touch screen area according to the ratio of the preset touch screen area size to the size of the button recognition area, and determining the size of the identification area of the button in real time; The size of the spare button recognition area selects a button recognition area that is the closest to the size of the touch screen area as an electronic device. In the embodiment of the present invention, the size of the recognition area of the button on the touch screen is adjusted according to the size of the touch screen area on the touch screen, so that the size of the touch screen area matches the button identification area, thereby reducing the touch screen area of the user. The user's experience is enhanced by the erroneous operation caused by the button recognition error. In another embodiment of the present invention, as shown in FIG. 2, the process of determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen may include: Step 201: Calculating an area of the touch screen area The difference in the area of the identification area of the button. Step 202: Determine whether an absolute value of the difference is greater than or equal to an area threshold. If the absolute value of the difference between the area of the touch screen area and the area of the button recognition area is greater than or equal to the area threshold, it may be determined that the size of the touch screen area does not match the size of the identification area of the button, and step 203 is performed. If the absolute value of the difference is less than the area threshold, it can be determined that the size of the touch screen area matches the size of the identification area of the button, and there is no need to adjust the button recognition area. The area threshold is a preset value, and the specific value may be determined according to requirements, and is not limited herein. Step 203: Adjust the size of the recognition area of the button so that the absolute value of the area difference between the area of the touch screen area and the identification area of the button is smaller than the area threshold. If the area of the touch screen area is much larger than the area of the identification area of the button, the difference between the two is greater than or equal to the area threshold, which may easily cause the user to operate incorrectly. At this time, the identification area of the button may be enlarged, and the area of the area may be increased, thereby The difference between the area of the touch screen area and the area of the identification area of the button is made smaller than the area threshold so that the two areas can match. If the area of the identification area of the button is much larger than the area of the touch screen area, the difference between the two is greater than or equal to the area threshold. At this time, the identification area of the button can be reduced, and the area of the area can be reduced, so that the area of the identification area of the button can be made. The difference in area of the touch screen area is less than the area threshold so that the two areas can match. In another embodiment of the present invention, the button display area may have a certain relationship with the recognition area of the button. For example, the display area of the button may be expanded with the enlargement of the recognition area of the button, and/or the display area of the button may be The method further includes: adjusting the size of the display area of the button when the size of the touch screen area does not match the size of the identification area of the button. The step of adjusting the display area of the button may be performed simultaneously or sequentially with the step of adjusting the identification area of the button In progress, the order is not limited. If the display area of the electronic device is small, it is not suitable to enlarge the display area of the button, or if the button display area is too large to block other display contents of the electronic device, only the identification area of the button may be enlarged; The button display area is not limited, and the display area of the button can be adjusted at the same time when the recognition area of the button is adjusted, for example, the recognition area of the button and the display area of the button are simultaneously enlarged. In another embodiment of the present invention, after the identification area of the button is adjusted, the size of the identification area of the adjusted button may be further saved, so as to keep the identification area of the adjusted button in the subsequent operation of the user. The size is avoided to repeatedly determine whether the size of the touch panel area of the user matches the size of the recognition area of the button on the touch screen, and the adjustment action of the button recognition area is repeatedly performed. In another embodiment of the present invention, when the electronic device is applied to the multi-user scene, before or after the user obtains the touch screen area on the touch screen, the method may further include: after receiving the determination instruction, performing the foregoing determination The step of matching the size of the touch screen area with the size of the recognition area of the button on the touch screen for use by a plurality of user operations. The above is a description of the embodiment of the method of the present invention. The apparatus for implementing the above method will be described below. Referring to FIG. 3, it is a schematic structural diagram of an apparatus for adjusting a button recognition area according to an embodiment of the present invention. The apparatus may include: an area obtaining unit 301 that acquires a touch screen area of the user on the touch screen. The determining unit 302 is configured to determine whether the size of the touch screen area matches the size of the identification area of the button on the touch screen. The adjusting unit 303 is configured to adjust the size of the identification area of the button to the touch when the determining unit 302 determines that the size of the touch screen area does not match the size of the identification area of the button on the touch screen The size of the screen area matches. The device adjusts the size of the recognition area of the button on the touch screen according to the size of the touch screen area of the user on the touch screen, so that the size of the touch screen area matches the button identification area, which reduces the touch screen area when the user touches the screen, etc. The user's experience is enhanced by the misoperation caused by the button recognition error. In another embodiment of the present invention, as shown in FIG. 4, the determining unit 302 may further include: a calculation subunit 401, configured to calculate a difference between an area of the touch screen area and an area of the identification area of the button; and a determination subunit 402, configured to determine whether an absolute value of the difference value is greater than or equal to an area threshold, if If the absolute value of the difference is greater than or equal to the area threshold, the size of the touch screen area does not match the size of the identification area of the button, and if the absolute value of the difference is smaller than the area threshold, The size of the touch screen area matches the size of the identification area of the button. In another embodiment, the adjusting unit may be specifically configured to adjust a size of the identification area of the button, such that an absolute value of an area difference between an area of the touch screen area and an identification area of the button is smaller than the Area threshold. The adjusting unit is further configured to adjust a size of the display area of the button when the size of the touch screen area does not match the size of the identification area of the button, where the display area of the button is related to the button The recognition area is enlarged and enlarged, and/or the display area of the button is reduced as the recognition area of the button is reduced. An embodiment of the present invention further provides an electronic device, including a touch screen, a memory, and a processor, wherein the memory stores a program, and the processor is configured to read the program in the memory, and perform the following steps: Determining, by the user, a touch panel area on the touch screen; determining whether the size of the touch screen area matches the size of the identification area of the button on the touch screen; if not, adjusting the size of the identification area of the button to The size of the touch screen area matches. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or 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 solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention. A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented Row. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

利 要 求 书 demand for profit
1、 一种按钮识别区域的调整方法, 其特征在于, 包括: 获取用户在触摸屏上的触屏区域; 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹配, 其中, 所述按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述按钮; 若不匹配, 则将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配。 1. A method for adjusting the button recognition area, characterized by: obtaining the user's touch screen area on the touch screen; determining whether the size of the touch screen area matches the size of the button recognition area on the touch screen, wherein , the identification area of the button is used to determine whether the user clicks the button based on the position of the user's touch screen area; if it does not match, the size of the identification area of the button is adjusted to match the size of the touch screen area. .
2、 根据权利要求 1所述的方法, 其特征在于, 所述判断所述触屏区域的大小与所 述触摸屏上按钮的识别区域的大小是否匹配, 具体包括: 计算所述触屏区域的面积与所述按钮的识别区域的面积的差值; 判断所述差值的绝对值是否大于等于面积阈值, 若所述差值的绝对值大于等于所 述面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小不匹配, 若所述差 值的绝对值小于所述面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小 匹配。 2. The method according to claim 1, wherein the determining whether the size of the touch screen area matches the size of the identification area of buttons on the touch screen specifically includes: calculating the area of the touch screen area. The difference with the area of the identification area of the button; determine whether the absolute value of the difference is greater than or equal to the area threshold. If the absolute value of the difference is greater than or equal to the area threshold, then the size of the touch screen area If the size of the touch screen area does not match the size of the identification area of the button, if the absolute value of the difference is less than the area threshold, then the size of the touch screen area matches the size of the identification area of the button.
3、 根据权利要求 2所述的方法, 其特征在于, 所述将所述按钮的识别区域的大小 调整至与所述触屏区域的大小相匹配, 具体包括: 调整所述按钮的识别区域的大小, 使所述触屏区域的面积与所述按钮的识别区域 的面积差值的绝对值小于所述面积阈值。 3. The method according to claim 2, wherein adjusting the size of the identification area of the button to match the size of the touch screen area specifically includes: adjusting the size of the identification area of the button. The size is such that the absolute value of the difference between the area of the touch screen area and the area of the identification area of the button is smaller than the area threshold.
4、 根据权利要求 1所述的方法, 其特征在于, 所述判断所述触屏区域的大小与所 述触摸屏上按钮的识别区域的大小是否匹配, 具体包括: 计算所述触屏区域的最长对角线与所述按钮的识别区域的最长对角线之间的差值; 判断所述差值的绝对值是否大于等于长度阈值, 若所述差值的绝对值大于等于所 述长度阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小不匹配, 若所述差 值的绝对值小于所述长度阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小 匹配。 4. The method according to claim 1, wherein the determining whether the size of the touch screen area matches the size of the identification area of buttons on the touch screen specifically includes: calculating the maximum size of the touch screen area. The difference between the long diagonal and the longest diagonal of the identification area of the button; determine whether the absolute value of the difference is greater than or equal to the length threshold, if the absolute value of the difference is greater than or equal to If the length threshold is the length threshold, then the size of the touch screen area does not match the size of the identification area of the button. If the absolute value of the difference is less than the length threshold, then the size of the touch screen area does not match the size of the button. The size of the recognition area matches.
5、 根据权利要求 1至 4中任意一项所述的方法, 其特征在于, 还包括: 当所述触屏区域的大小与所述按钮的识别区域的大小不匹配时, 调整所述按钮的 显示区域的大小, 其中, 所述按钮的显示区域随所述按钮的识别区域的扩大而扩大, 和 /或所述按钮的显示区域随所述按钮的识别区域的缩小而缩小。 5. The method according to any one of claims 1 to 4, further comprising: when the size of the touch screen area does not match the size of the identification area of the button, adjusting the size of the button. The size of the display area, wherein the display area of the button expands as the recognition area of the button expands, and/or the display area of the button shrinks as the recognition area of the button shrinks.
6、 一种按钮识别区域的调整装置, 其特征在于, 包括: 区域获取单元, 获取用户在触摸屏上的触屏区域; 判断单元, 用于判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小 是否匹配, 所述按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述 按钮; 调整单元, 用于当所述判断单元判断所述触屏区域的大小与所述触摸屏上按钮的 识别区域的大小不匹配时, 将所述按钮的识别区域的大小调整至与所述触屏区域的大 小相匹配。 6. A device for adjusting the button identification area, characterized by comprising: an area acquisition unit to acquire the user's touch screen area on the touch screen; a judgment unit for judging the size of the touch screen area and the size of the buttons on the touch screen Whether the size of the recognition area matches, the recognition area of the button is used to determine whether the user clicks the button according to the position of the user's touch screen area; an adjustment unit, used when the determination unit determines whether the size of the touch screen area matches the size of the touch screen area. When the size of the identification area of the button on the touch screen does not match, the size of the identification area of the button is adjusted to match the size of the touch screen area.
7、 根据权利要求 6所述的装置, 其特征在于, 所述判断单元包括: 计算子单元, 用于计算所述触屏区域的面积与所述按钮的识别区域的面积的差值; 判断子单元, 用于判断所述差值的绝对值是否大于等于面积阈值, 若所述差值的 绝对值大于等于所述面积阈值, 则所述触屏区域的大小与所述按钮的识别区域的大小 不匹配, 若所述差值的绝对值小于所述面积阈值, 则所述触屏区域的大小与所述按钮 的识别区域的大小匹配。 7. The device according to claim 6, characterized in that the judgment unit includes: a calculation sub-unit, used to calculate the difference between the area of the touch screen area and the area of the button identification area; Unit, used to determine whether the absolute value of the difference is greater than or equal to the area threshold. If the absolute value of the difference is greater than or equal to the area threshold, then the size of the touch screen area is equal to the size of the identification area of the button. If there is no match, if the absolute value of the difference is less than the area threshold, then the size of the touch screen area matches the size of the identification area of the button.
8、 根据权利要求 7所述的装置, 其特征在于, 所述调整单元, 具体用于调整所述按钮的识别区域的大小, 使所述触屏区域的面 积与所述按钮的识别区域的面积差值的绝对值小于所述面积阈值。 8. The device according to claim 7, wherein the adjustment unit is specifically used to adjust the size of the identification area of the button so that the area of the touch screen area is equal to the area of the identification area of the button. The absolute value of the difference is less than the area threshold.
9、 根据权利要求 6至 8中任意一项所述的装置, 其特征在于, 所述调整单元, 还用于当所述触屏区域的大小与所述按钮的识别区域的大小不匹 配时, 调整所述按钮的显示区域的大小, 其中, 所述按钮的显示区域随所述按钮的识 别区域的扩大而扩大, 和 /或所述按钮的显示区域随所述按钮的识别区域的缩小而缩小。 9. The device according to any one of claims 6 to 8, characterized in that, the adjustment unit is also used to adjust when the size of the touch screen area does not match the size of the identification area of the button. Adjust the size of the display area of the button, wherein the display area of the button expands as the recognition area of the button expands, and/or the display area of the button shrinks as the recognition area of the button shrinks .
10、 一种电子设备, 其特征在于, 包括触摸屏、 存储器和处理器, 所述存储器中 存储有一段程序, 所述处理器用于读取所述存储器中的所述程序, 执行以下步骤: 获取用户在触摸屏上的触屏区域; 判断所述触屏区域的大小与所述触摸屏上按钮的识别区域的大小是否匹配, 所述 按钮的识别区域用于根据用户触屏区域的位置判断用户是否点击所述按钮; 若不匹配, 则将所述按钮的识别区域的大小调整至与所述触屏区域的大小相匹配。 10. An electronic device, characterized in that it includes a touch screen, a memory and a processor. A program is stored in the memory, and the processor is used to read the program in the memory and perform the following steps: Obtain the user The touch screen area on the touch screen; Determine whether the size of the touch screen area matches the size of the identification area of the button on the touch screen. The identification area of the button is used to determine whether the user clicks the button based on the position of the user's touch screen area. If there is no match, adjust the size of the recognition area of the button to match the size of the touch screen area.
PCT/CN2014/076322 2013-04-27 2014-04-28 Method and device for adjusting a button identification region WO2014173327A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310152293.0A CN103246475B (en) 2013-04-27 2013-04-27 A kind of method of adjustment of button identification area and device
CN201310152293.0 2013-04-27

Publications (1)

Publication Number Publication Date
WO2014173327A1 true WO2014173327A1 (en) 2014-10-30

Family

ID=48926014

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076322 WO2014173327A1 (en) 2013-04-27 2014-04-28 Method and device for adjusting a button identification region

Country Status (2)

Country Link
CN (1) CN103246475B (en)
WO (1) WO2014173327A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246475B (en) * 2013-04-27 2016-03-09 华为终端有限公司 A kind of method of adjustment of button identification area and device
CN104598112B (en) * 2015-01-23 2019-01-18 小米科技有限责任公司 Button interaction method and apparatus
CN107229892A (en) * 2016-03-24 2017-10-03 阿里巴巴集团控股有限公司 A kind of identification method of adjustment and equipment based on face recognition products
CN107103304A (en) * 2017-04-28 2017-08-29 维沃移动通信有限公司 The display methods and mobile terminal in a kind of fingerprint recognition region
CN109857316A (en) * 2017-11-30 2019-06-07 佳能株式会社 The adjustment based on prediction at tangible interface
CN108614653A (en) * 2018-03-18 2018-10-02 平安科技(深圳)有限公司 The adaptive method, apparatus of button, mobile terminal and storage medium
CN110764678A (en) * 2019-10-25 2020-02-07 广州视源电子科技股份有限公司 Method, equipment and device for processing abnormal touch of touch screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650626A (en) * 2008-08-13 2010-02-17 鸿富锦精密工业(深圳)有限公司 Touch panel operation method
CN101937302A (en) * 2009-06-29 2011-01-05 台均科技(深圳)有限公司 Method and device for inputting position information and displaying information matching
CN102147702A (en) * 2010-02-05 2011-08-10 三星电子株式会社 Method and apparatus for selecting hyperlinks
CN102760033A (en) * 2012-03-19 2012-10-31 联想(北京)有限公司 Electronic device and display processing method thereof
CN103246475A (en) * 2013-04-27 2013-08-14 华为终端有限公司 Method and device for adjusting button identification area

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2284653A1 (en) * 2009-08-14 2011-02-16 Research In Motion Limited Electronic device with touch-sensitive display and method of facilitating input at the electronic device
KR101678213B1 (en) * 2010-02-11 2016-11-29 엘지전자 주식회사 An apparatus for user interface by detecting increase or decrease of touch area and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650626A (en) * 2008-08-13 2010-02-17 鸿富锦精密工业(深圳)有限公司 Touch panel operation method
CN101937302A (en) * 2009-06-29 2011-01-05 台均科技(深圳)有限公司 Method and device for inputting position information and displaying information matching
CN102147702A (en) * 2010-02-05 2011-08-10 三星电子株式会社 Method and apparatus for selecting hyperlinks
CN102760033A (en) * 2012-03-19 2012-10-31 联想(北京)有限公司 Electronic device and display processing method thereof
CN103246475A (en) * 2013-04-27 2013-08-14 华为终端有限公司 Method and device for adjusting button identification area

Also Published As

Publication number Publication date
CN103246475A (en) 2013-08-14
CN103246475B (en) 2016-03-09

Similar Documents

Publication Publication Date Title
WO2014173327A1 (en) Method and device for adjusting a button identification region
CN107193479B (en) Information processing method, device, electronic equipment and storage medium
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
JP6529659B2 (en) Information processing method, terminal and computer storage medium
US20190212916A1 (en) Touch screen-based control method and apparatus
WO2017088131A1 (en) Method and apparatus for rapidly dividing screen, electronic device, display interface and storage medium
WO2015109816A1 (en) Terminal screen shot method and terminal
US9612736B2 (en) User interface method and apparatus using successive touches
CN106951163B (en) Display control method and device
CN105159505B (en) A kind of interface operation method and terminal
WO2018196699A1 (en) Method for displaying fingerprint recognition region, and mobile terminal
WO2018107903A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
WO2017032016A1 (en) Interface operating method and electronic terminal
WO2014032431A1 (en) Terminal device and method for quickly starting program
US20130201118A1 (en) Method for touch processing and mobile terminal
US11546457B2 (en) Electronic device and method of operating electronic device in virtual reality
CN106445118B (en) Virtual reality exchange method and device
CN109428969A (en) Edge touch control method, device and the computer readable storage medium of double screen terminal
CN108920066B (en) Touch screen sliding adjustment method and device and touch equipment
US20120262405A1 (en) Method and mobile terminal for processing touch input
WO2013167084A2 (en) Intelligent terminal with built-in screenshot function and implementation method thereof
WO2017161824A1 (en) Method and device for controlling terminal
WO2019192498A1 (en) Window split screen display method, device and equipment
US20150109210A1 (en) Control method, and input device of touch screen terminal
TW202145206A (en) Method for turning on single-handed operation mode, terminal and computer storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14787883

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14787883

Country of ref document: EP

Kind code of ref document: A1