[go: up one dir, main page]

CN105528130B - Control method and device and electronic equipment - Google Patents

Control method and device and electronic equipment Download PDF

Info

Publication number
CN105528130B
CN105528130B CN201410577907.4A CN201410577907A CN105528130B CN 105528130 B CN105528130 B CN 105528130B CN 201410577907 A CN201410577907 A CN 201410577907A CN 105528130 B CN105528130 B CN 105528130B
Authority
CN
China
Prior art keywords
information
contact
preset
mode
parameter information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410577907.4A
Other languages
Chinese (zh)
Other versions
CN105528130A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410577907.4A priority Critical patent/CN105528130B/en
Publication of CN105528130A publication Critical patent/CN105528130A/en
Application granted granted Critical
Publication of CN105528130B publication Critical patent/CN105528130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application provides a control method, which is applied to electronic equipment, wherein the electronic equipment is provided with a touch screen, the touch screen is provided with a virtual keyboard, and the method comprises the following steps: receiving contact information of a user and the electronic equipment, and controlling the input mode of the electronic equipment to be switched from a first mode to a second mode when the contact information meets a preset starting condition; when the input mode is the second mode, correcting the action area of the key in the virtual keyboard according to the touch information of the user on the virtual keyboard, and identifying the touch information; when the input mode is the first mode, only the touch control identification of the user is needed, and the automatic correction of the key is not needed. When the user uses the virtual keyboard, when the contact information meets the starting condition, the first mode and the second mode can be automatically switched without manual control of the user, the user can input information quickly and accurately, the switching mode is quick, the operation mode is simple, and the user experience is improved.

Description

Control method and device and electronic equipment
Technical Field
The invention relates to the field of electronic equipment, in particular to a control method and device and electronic equipment.
Background
With the development of touch screen technology, touch screens are widely used in various electronic devices, and the adoption of virtual keyboards has also become widespread.
When a user operates in the virtual keyboard, because the user does not have a tactile feeling similar to the edge of the solid key, the contact position of the user is easy to deviate from the action area of the key, so that some pressing operations of the user are identified incorrectly.
In the prior art, in order to avoid recognition errors caused by deviation of a user contact position from an action region of a key, an automatic correction mode is applied to an electronic device with a virtual keyboard, and a user can set and start the automatic correction mode by himself to perform automatic correction so as to ensure that key operation of the user is accurately recognized.
However, by adopting the setting mode, the user needs to manually set and start the mode when starting the virtual keyboard, the setting process is complicated, and the user experience is poor.
Disclosure of Invention
In view of this, the present invention provides a control method, which solves the problems in the prior art that the user needs to manually set and start the automatic correction mode in the virtual keyboard process, the operation process is complicated, and the user experience is poor.
In order to achieve the purpose, the invention provides the following technical scheme:
a control method is applied to an electronic device with a touch screen, wherein a virtual keyboard is arranged in the touch screen, and the method comprises the following steps:
receiving contact information of a user and the electronic equipment;
judging whether the contact information meets a preset starting condition or not;
if yes, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode;
when the input mode of the electronic equipment is a first mode, identifying the received touch information of the user on the virtual keyboard; and when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information.
In the foregoing method, preferably, a sensor is further disposed in the electronic device, and the receiving contact information of the user and the electronic device, and determining whether the contact information meets a preset starting condition includes:
acquiring detection data of the sensor, wherein the detection data is a contact area value of a user and a palm rest position in the electronic equipment;
comparing the contact area value with a preset first area threshold value;
when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition;
otherwise, the contact information does not meet the preset starting condition.
In the above method, preferably, when the contact information is touch information generated by a user operating the touch screen, the determining whether the contact information satisfies a preset starting condition includes:
analyzing the touch information to obtain parameter information carried in the touch information;
and judging whether the parameter information meets a preset starting condition or not.
In the above method, preferably, when the contact information is gesture information, the determining whether the parameter information satisfies a preset starting condition includes:
acquiring historical parameter information, wherein the historical parameter information is obtained by analyzing gesture information received within a preset time range;
matching and comparing the historical parameter information with the current parameter information to generate a matching result;
when the matching result shows that the historical parameter information is not matched with the current parameter information, judging that a preset starting condition is met;
and when the matching result shows that the historical parameter information is matched with the current parameter information, judging that the preset starting condition is not met.
In the above method, preferably, when the parameter information includes a contact area and a pressure value, the matching and comparing the historical parameter information with the current parameter information, and generating a matching result includes:
according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information;
according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information;
comparing the first matching degree with a preset matching threshold value and generating a comparison result;
when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information;
otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
In the foregoing method, preferably, when the touch information carries a contact position coordinate, the determining whether the parameter information satisfies a preset starting condition includes:
acquiring the range of an action area of each key in the touch keyboard;
comparing the contact position coordinates with the range of the action area of the key;
when the contact position coordinates coincide with the action area ranges of at least two keys, judging that the contact information meets a preset starting condition;
otherwise, judging that the contact information does not meet the preset starting condition.
In the above method, preferably, after the contact position coordinates coincide with the range of the action areas of at least two keys, the method further includes:
adding 1 to a count value of a counter preset in the electronic equipment;
judging whether the count value is larger than a preset value or not;
if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter;
otherwise, executing the step of receiving the contact information of the user and the electronic equipment.
Preferably, the method further includes, after receiving the contact information of the user with the electronic device, the step of:
judging whether the contact information meets a preset closing condition or not;
and if so, switching the input mode of the electronic equipment from the second mode to the first mode.
A control device is applied to an electronic device with a touch screen, wherein a virtual keyboard is arranged in the touch screen, and the device comprises:
the receiving module is used for receiving contact information of a user and the electronic equipment;
the first judgment module is used for judging whether the contact information meets a preset starting condition or not;
the first control module is used for controlling the input mode of the electronic equipment to be switched from a first mode to a second mode when the contact information meets a preset starting condition;
when the input mode of the electronic equipment is a first mode, identifying the received touch information of the user on the virtual keyboard; and when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information.
The above device, preferably, the electronic device is further provided with a sensor,
the receiving module is specifically used for acquiring detection data of the sensor, wherein the detection data is a contact area value between a user and a palm rest position in the electronic equipment;
the first judging module is specifically used for comparing the contact area value with a preset first area threshold value; when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition.
In the foregoing apparatus, preferably, when the contact information is touch information generated by a user operating the touch screen, the first determining module includes:
the analysis unit is used for analyzing the touch information to obtain parameter information carried in the touch information;
and the first judgment unit is used for judging whether the parameter information meets a preset starting condition or not.
In the above apparatus, preferably, when the contact information is gesture information, the first determining unit includes:
the first acquisition subunit is used for acquiring historical parameter information, wherein the historical parameter information is obtained by analyzing gesture information received within a preset time range;
the matching subunit is used for matching and comparing the historical parameter information with the current parameter information to generate a matching result; when the matching result shows that the historical parameter information is not matched with the current parameter information, judging that a preset starting condition is met; and when the matching result shows that the historical parameter information is matched with the current parameter information, judging that the preset starting condition is not met.
In the above apparatus, preferably, when the parameter information includes a contact area and a pressure value, the matching subunit is specifically configured to:
according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information;
according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information;
comparing the first matching degree with a preset matching threshold value and generating a comparison result;
when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information;
otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
In the foregoing apparatus, preferably, when the touch information carries a contact position coordinate, the first determining unit includes:
the second acquisition subunit is used for acquiring the range of the action area of each key in the touch keyboard;
the comparison subunit is used for comparing the contact position coordinates with the action area range of the key; when the contact position coordinates coincide with the action area ranges of at least two keys, judging that the contact information meets a preset starting condition; otherwise, judging that the contact information does not meet the preset starting condition.
In the above apparatus, preferably, the first determining unit further includes:
the counting subunit is used for adding 1 to the counting value of a counter preset in the electronic equipment;
the judging subunit is used for judging whether the counting value is larger than a preset value or not; if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter; otherwise, executing the step of receiving the contact information of the user and the electronic equipment.
The above apparatus preferably further comprises:
the second judgment module is used for judging whether the contact information meets a preset closing condition;
and the second control module is used for switching the input mode of the electronic equipment from the second mode to the first mode if the input mode is met.
An electronic device having a touch screen and a control apparatus as claimed in any one of the above;
wherein, a virtual keyboard is arranged in the touch screen.
As can be seen from the foregoing technical solutions, compared with the prior art, the present invention provides a control method applied to an electronic device, where the electronic device has a touch screen, and the touch screen is provided with a virtual keyboard, and the method includes: receiving contact information of a user and the electronic equipment, judging whether a preset starting condition is met or not according to the contact information, and controlling the input mode of the electronic equipment to be switched from a first mode to a second mode when the preset starting condition is met; when the input mode of the electronic equipment is the second mode, according to the touch information of the user on the virtual keyboard, correcting the action area of the keys in the virtual keyboard, identifying the touch information, generating corresponding response content and the like, and when the input mode of the electronic equipment is the first mode, only identifying the touch of the user without automatically correcting the keys. By adopting the method, when the contact information meets the starting condition in the process of using the virtual keyboard, the user can automatically switch to the second mode, the first mode and the second mode can be automatically switched without manual control of the user, the user can input information quickly and accurately, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Drawings
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a control method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a control method according to embodiment 2 of the present invention;
fig. 3 is a schematic diagram of an electronic device held by two hands of a user according to an embodiment 2 of a control method provided by the present invention;
fig. 4 is a flowchart of a control method according to embodiment 3 of the present invention;
fig. 5 is a flowchart of a control method according to embodiment 4 of the present invention;
fig. 6 is a schematic diagram of an electronic device held by two hands of a user according to an embodiment 4 of a control method provided in the present invention;
fig. 7 is a flowchart of a control method according to embodiment 5 of the present invention;
fig. 8 is a first schematic view of a touch keyboard in a squared figure distribution manner according to an embodiment 5 of a control method provided in the present invention;
fig. 9 is a second schematic diagram of a touch keyboard in a squared figure distribution manner in embodiment 5 of a control method provided in the present invention;
fig. 10 is a flowchart of an embodiment 6 of a control method according to the present invention;
fig. 11 is a flowchart of embodiment 7 of a control method according to the present invention;
fig. 12 is a schematic structural diagram of an embodiment 1 of a control device provided in the present invention;
fig. 13 is a schematic structural diagram of a control device in accordance with embodiment 2 of the present invention;
fig. 14 is a schematic structural diagram of an embodiment 3 of a control device provided in the present invention;
fig. 15 is a schematic structural diagram of an embodiment 4 of a control device provided in the present invention;
fig. 16 is a schematic structural diagram of an embodiment 5 of a control device provided in the present invention;
fig. 17 is a schematic structural diagram of an embodiment 6 of a control device provided in the present invention;
fig. 18 is a schematic structural diagram of a control device according to embodiment 7 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a control method according to embodiment 1 of the present invention, where the method is applied to an electronic device, and the electronic device may specifically be an electronic device such as a desktop, a notebook, a tablet computer, a mobile phone, a smart television, a smart watch, and a wearable device, and the electronic device has a touch screen. The touch screen is provided with a virtual keyboard, specifically, the virtual keyboard can be a Sudoku keyboard, a QWERT keyboard, or a virtual keyboard in other arrangement forms.
The method can be realized by the following steps:
step S101: receiving contact information of a user and the electronic equipment;
the method comprises the steps of generating corresponding contact information by a user contacting the electronic equipment, receiving the contact information, determining a contact mode and the like of the user and the electronic equipment according to the contact information, and judging whether a preset starting condition is met or not in a subsequent process.
The contact type between the user and the electronic device may be contact between the user and the electronic device main body, or contact between the user and a touch screen of the electronic device.
Specifically, the contact information may include: contact position, contact area, contact pressure, and other parameters related to contact.
Step S102: judging whether the contact information meets a preset starting condition or not;
wherein, a starting condition is preset, and the starting condition is a condition for starting the second mode.
It should be noted that different starting conditions may be provided for different contact types, and in the subsequent embodiment, whether the corresponding starting conditions are met is determined according to different contact types for detailed description, which is not described in detail in this embodiment.
Specifically, whether the contact information meets the condition required for starting the second mode or not is judged according to the starting condition, and if yes, the input mode of the electronic equipment is required to be switched from the first mode to the second mode; otherwise, the input mode of the electronic equipment is maintained to maintain the current first mode.
When the input mode of the electronic equipment is the first mode, the information processor in the electronic equipment directly identifies the received touch information of the virtual keyboard from the user, and does not automatically correct the action area of the key in the virtual keyboard in real time.
It should be noted that, when the input mode of the electronic device is the first mode, correspondingly, the user may adopt a single-finger operation mode, and since only one finger is used, the user has a good degree of control over the contact point of the finger and the touch screen, and the problem of deviation from the action area of the key is not likely to occur, the action area of the key of the virtual keyboard does not need to be automatically corrected, and the user can also use the virtual keyboard to input information quickly, efficiently and accurately.
Step S103: and if so, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode.
And when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information.
It should be noted that, when the contact information satisfies the preset starting condition, it is known that the touch information of the user indicates the input mode of the user or the mode of holding the electronic device, which results in poor control degree of the contact action between the finger and the touch screen by the user and easily causes a problem of deviating from the action area of the key.
It should be noted that, in the prior art, a user determines according to a self condition and manually turns on the second mode, however, when the second mode is turned on, even if the user accurately touches an action region of a key, the electronic device may also correct according to the second mode, which results in large power consumption of the electronic device.
In summary, in the control method provided in this embodiment, contact information of a user and the electronic device is received, and whether a preset starting condition is met is determined according to the contact information, and when the preset starting condition is met, an input mode of the electronic device is controlled to be switched from a first mode to a second mode; when the input mode of the electronic equipment is the second mode, according to the touch information of the user on the virtual keyboard, correcting the action area of the keys in the virtual keyboard, identifying the touch information, generating corresponding response content and the like, and when the input mode of the electronic equipment is the first mode, only identifying the touch of the user without automatically correcting the keys. By adopting the method, when the contact information meets the starting condition in the process of using the virtual keyboard, the user can automatically switch to the second mode, the first mode and the second mode can be automatically switched without manual control of the user, the user can input information quickly and accurately, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Fig. 2 is a flowchart of embodiment 2 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S201: acquiring detection data of the sensor, wherein the detection data is a contact area value of a user and a palm rest position in the electronic equipment;
the electronic equipment is provided with a sensor, and the sensor is used for detecting the contact area of a user and the electronic equipment.
The palm rest is arranged according to the size, shape and other conditions of the electronic equipment, and the palm rest of different electronic equipment can be different.
Specifically, when the palm rest is a part of the touch screen, the sensor may be a sensor in the touch screen, and detection data of the sensor in the touch screen may be directly obtained, where the detection data is a contact area generated when a user contacts the touch screen; when the palm support is adjacent to the touch screen, a special sensor is arranged at the palm support position to detect the contact area at the palm support position.
The region corresponding to the contact area may be a continuous one-piece region, or may be two or more pieces of regions.
Specifically, when there are a plurality of contact regions, the contact areas of the respective regions are summed to obtain a total contact area value, and the total contact area value is compared in the subsequent step S202.
Step S202: comparing the contact area value with a preset first area threshold value;
it should be noted that, when the user holds the electronic device with both hands and presses the virtual keyboard to input information with both hands simultaneously, the contact area between the user and the palm rest of the electronic device is large, and accordingly, whether the user holds the electronic device with both hands is determined.
The first area threshold value is the minimum value of the contact area between the electronic device and the user when the user holds the electronic device.
Specifically, the contact area is compared with a preset first area threshold, and when the contact area value is larger than the first area threshold, it can be judged that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition.
In specific implementation, the contact area between the user and the electronic device can be set, and the sensor can also simultaneously acquire the position information of the contact area so as to judge whether the position of the contact area meets the preset position of the user for holding the electronic device by two hands, and if so, the contact information is judged to meet the preset starting condition.
It should be noted that, the comparison between the contact area and the first area threshold and the comparison between the contact position and the preset position may be both used as a way of determining whether the contact information satisfies the preset starting condition, and the two ways may be used separately or in combination, which is not limited in the present application.
Fig. 3 is a schematic diagram of an electronic device with a user's two-hand holding mode, in which two hands of a user are in contact with an area a 302 and an area B303 of an electronic device 301, the areas within the dotted line frame are the area a and the area B, respectively, the contact area value is the sum of the area a and the area of the area B, and the sum of the areas is compared with a first area threshold, so as to determine whether the contact information satisfies a preset activation condition.
Step S203: when the contact area value is larger than the first area threshold value, the contact information can be judged to meet the preset starting condition, and the input mode of the electronic equipment is controlled to be switched from the first mode to the second mode.
Step S203 is the same as step S103 in embodiment 1, and this embodiment is not described again.
In summary, in the control method provided in this embodiment, a sensor is further disposed in the electronic device, and the sensor detects a contact area value between the user and the palm rest position of the electronic device, when the detected contact area is larger than a preset first threshold, it may be determined that the contact information meets a preset starting condition, a second mode is started, an action region of a key in the virtual keyboard is corrected according to touch information of the user on the virtual keyboard, and the touch information is identified, and corresponding response content is generated. By adopting the method, when the contact information meets the starting condition in the process of using the virtual keyboard, the user can automatically switch to the second mode, the first mode and the second mode can be automatically switched without manual control of the user, the user can input information quickly and accurately, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Fig. 4 is a flowchart of embodiment 3 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S401: receiving contact information of a user and the electronic equipment;
step S401 is the same as step S101 in embodiment 1, and this embodiment is not described again.
Step S402: analyzing the touch information to obtain parameter information carried in the touch information;
the touch information is touch information generated according to the operation of a user on the touch screen.
Wherein, the parameter information of the touch information comprises: time parameter, pressure value, contact position, contact range and other various touch related information.
And the pressure value, the contact position, the contact range and the like represent gestures of the user for performing touch operation.
It should be noted that, different touch manners and corresponding touch information have different parameter values.
Step S403: judging whether the parameter information meets a preset starting condition or not;
the touch information carries the parameter information, and whether the parameter information meets a preset starting condition is judged.
The starting condition is set with corresponding information, such as a time interval between two touch operations, a pressure value threshold range, a contact position range, a contact area range, and the like, and the following embodiments will be explained in detail, which is not detailed in the present embodiment.
Step S404: and if so, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode.
Step S404 is the same as step S103 in embodiment 1, and this embodiment is not described again.
In summary, in the control method provided in this embodiment, when the contact information is touch information generated by a user operating the touch screen, the determining whether the contact information satisfies a preset starting condition includes: analyzing the touch information to obtain parameter information carried in the touch information; and judging whether the parameter information meets a preset starting condition or not. And when the parameter information carried in the touch information meets the preset starting condition, starting a second mode, correcting the action area of the key in the virtual keyboard according to the touch information of the user on the virtual keyboard, identifying the touch information, generating corresponding response content and the like. By adopting the method, when the contact information meets the starting condition in the process of using the virtual keyboard, the user can automatically switch to the second mode, the first mode and the second mode can be automatically switched without manual control of the user, the user can input information quickly and accurately, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Wherein the contact information may be gesture information.
Fig. 5 is a flowchart of embodiment 4 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S501: receiving contact information of a user and the electronic equipment;
step S502: analyzing the touch information to obtain parameter information carried in the touch information;
steps S501 to 502 are the same as steps S401 to 402 in embodiment 3, and this embodiment is not described again.
Step S503: acquiring historical parameter information;
the historical parameter information is parameter information obtained by analyzing gesture information received within a preset time range;
the historical parameter information is contact information received in the last time or a preset time range before the last time, the contact information is gesture information, and the gesture information can represent a gesture when a user clicks a virtual key once.
It should be noted that the historical parameter information is parameter information corresponding to a plurality of historical input gestures, so as to improve the accuracy of subsequently judging whether the contact information meets the preset starting condition.
Step S504: matching and comparing the historical parameter information with the current parameter information to generate a matching result;
it should be noted that, in a current period of operation time, when a user uses the same finger to click a virtual key to input information, the gesture for clicking the virtual key should be the same, and when the user uses both hands to hold the electronic device, the user may use a plurality of fingers to alternately click a virtual keyboard, the gesture for clicking the virtual keyboard is different, and the specific parameter information obtained through the gesture information analysis is determined.
Specifically, historical parameter information representing a gesture input by a user before is matched and compared with current parameter information input at this time, and a matching result is generated.
When the matching result shows that the historical parameter information is not matched with the current parameter information, the user can be known to adopt non-single-finger operation, the condition that the action area of the key cannot be accurately contacted easily occurs, and the condition that the preset starting condition is met is judged; and when the matching result shows that the historical parameter information is matched with the current parameter information, the user adopts single-finger operation, generally can accurately contact the action area of the key, and then judges that the preset starting condition is not met.
In a specific implementation, when the parameter information includes the contact area and the pressure value, it may be determined whether the preset starting condition is satisfied by comparing the contact area with the pressure value.
Specifically, the step S504 may include: according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information; according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information; comparing the first matching degree with a preset matching threshold value and generating a comparison result; when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information; otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
Fig. 6 is a schematic diagram of an electronic device with a two-hand holding manner, where a user holds the electronic device 601 with two hands, and two thumbs click a touch screen to input information, where a region C602 and a region E603 are contact regions clicked by the left thumb, a region D604 is a contact region clicked by the right thumb, and the left and right thumbs have different clicking forces, so that the pressure in the contact information is different, and the contact areas corresponding to the different finger clicks are also different.
Step S505: and when the matching result shows that the historical parameter information is not matched with the current parameter information, judging that a preset starting condition is met, and controlling the input mode of the electronic equipment to be switched from a first mode to a second mode.
Step S505 is the same as step S404 in embodiment 3, and is not described again in this embodiment.
In summary, in the control method provided in this embodiment, when the contact information is gesture information, the operation mode of the user is determined according to the current gesture information and the historical parameter information of the user, and then it is determined whether a preset starting condition is met, and when the preset starting condition is met, the input mode of the electronic device is controlled to be switched from the first mode to the second mode. By adopting the method, whether the operation is non-single-finger operation or not is judged only by comparing the received gesture information with the historical gesture information, the judgment that the contact information meets the preset starting condition can be realized without a large amount of data processing, the judgment process is simple and rapid, the switching mode is rapid, the operation mode is simple, and the user experience is improved.
The touch information can carry the coordinates of the touch position.
Fig. 7 is a flowchart of embodiment 5 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S701: receiving contact information of a user and the electronic equipment;
step S702: analyzing the touch information to obtain parameter information carried in the touch information;
steps S701 to 702 are the same as steps S401 to 402 in embodiment 3, and this embodiment is not described again.
Step S703: acquiring the range of an action area of each key in the touch keyboard;
each key in the touch keyboard has a corresponding action area range.
Specifically, the action area range can be divided in a coordinate mode for marking, and other modes can be adopted for marking quickly.
Fig. 8 is a first schematic diagram of a touch keyboard in a grid-squared distribution mode, where each key is closely adjacent to another key, and the range of the active area of any key is the range of the key display frame.
Fig. 9 is a second schematic diagram of a touch keyboard in a grid-squared distribution manner, where each key in the touch keyboard is spaced by a certain distance, and the range of the action area of any key is greater than the range of the key display frame, for example, the range 902 of the action area of the key 901 where the number 1 is located is shown as a dotted line, and is greater than the range of the key 901.
Step S704: comparing the contact position coordinates with the action area range of the key, and determining whether the contact information meets a preset starting condition according to a comparison result;
the touch information carries a touch position coordinate, wherein the touch position coordinate represents a coordinate of a touch area, but not a touch point, which is a coordinate range of a touch area.
Specifically, comparing the coordinates with the range of the action area of the key in the touch keyboard, the key covered (or related) by the coordinates of the touch position can be determined, and the number of the key can be 1, 2, or even 3 or 4.
Specifically, when the contact position coordinates coincide with the action area ranges of the at least two keys, the user cannot accurately contact the action areas of the keys, the contact information is judged to meet the preset starting condition, and the action area of the virtual keyboard needs to be automatically corrected so as to match the input of the user; otherwise, the user can accurately contact the action area of the key and judge that the contact information does not meet the preset starting condition.
Step S705: and if so, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode.
Step S705 is the same as step S404 in embodiment 3, and is not described again in this embodiment.
In summary, in the control method provided in this embodiment, a contact position coordinate is determined according to touch information, the contact position coordinate is compared with an action area range of each key in a touch keyboard, and when the contact position coordinate coincides with the action area ranges of at least two keys, it is determined that the contact information satisfies a preset starting condition; the input mode of the electronic equipment is controlled to be switched from the first mode to the second mode, and by adopting the method, the contact information can be judged to meet the preset starting condition only by comparing the key action area of the touch keyboard with the contact position coordinate of the touch information without a large amount of data processing, so that the judgment process is simple and rapid, the switching mode is rapid, the operation mode is simple, and the user experience is improved.
Fig. 10 is a flowchart of embodiment 6 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S1001: receiving contact information of a user and the electronic equipment;
step S1002: analyzing the touch information to obtain parameter information carried in the touch information;
step S1003: acquiring the range of an action area of each key in the touch keyboard;
step S1004: comparing the contact position coordinates with the range of the action area of the key;
steps S1001 to 1002 are the same as steps S701 to 704 in embodiment 5, and this embodiment is not described again.
Step S1004: when the contact position coordinates coincide with the action area ranges of at least two keys, adding 1 to a count value of a counter preset in the electronic equipment;
in order to prevent the electronic device from being switched to the second mode quickly due to the contact deviation which happens occasionally, a certain tolerance is required.
The electronic equipment is provided with a counter, and once the contact position coordinates coincide with the action area ranges of at least two keys, the counting value of the counter is increased by 1.
Step S1005: when the count value is larger than a preset value, judging that the contact information meets a preset starting condition, and resetting the counter;
the preset value may be set according to actual conditions, for example, when the electronic device is expected to have higher input accuracy, a smaller value, for example, 3, may be set, and when the electronic device is expected to have lower power consumption, a larger value, for example, 10, may be set.
Specifically, when the count value is greater than the preset value, it may be determined that the action region of the key cannot be accurately touched for a plurality of times, and it is determined that the contact information satisfies the preset starting condition, at this time, step S1006 is executed, the input mode of the electronic device is switched to the second mode, and the action region of the virtual keyboard is automatically corrected to match the input of the user.
When the count value is not greater than the preset value, the contact information does not meet the preset starting condition, the step S1001 is returned, the contact information of the user and the electronic device is received, and the subsequent comparison is performed.
Step S1006: controlling the input mode of the electronic equipment to be switched from a first mode to a second mode;
step S1006 is the same as step S705 in embodiment 5, and details are not repeated in this embodiment.
In summary, in the control method provided in this embodiment, after the contact position coordinate coincides with the range of the action areas of the at least two keys, the method further includes: adding 1 to a count value of a counter preset in the electronic equipment; judging whether the count value is larger than a preset value or not; if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter; otherwise, executing the step of receiving the contact information of the user and the electronic equipment. By adopting the method, only when the condition that the action region of the key cannot be accurately contacted for a plurality of times occurs, the contact information can be judged to meet the preset starting condition, then the input mode of the electronic equipment is switched to the second mode, and the action region of the virtual keyboard is automatically corrected so as to be matched with the input of a user. The situation that a user can not accurately contact the action area of the key once at a time is prevented, the first mode which saves power consumption of the electronic equipment is switched into the second mode, the power consumption of the electronic equipment is reduced, and meanwhile, the user experience is guaranteed.
Fig. 11 is a flowchart of embodiment 7 of a control method provided by the present invention, and the method can be implemented by the following steps:
step S1101: receiving contact information of a user and the electronic equipment;
step S1102: judging whether the contact information meets a preset starting condition or not;
step S1103: if yes, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode;
steps S1101 to 1103 are the same as steps S101 to 103 in embodiment 1, and this embodiment is not described again.
Step S1104: judging whether the contact information meets a preset closing condition or not;
the preset turning-off condition refers to a condition for turning off the second mode, and the turning-off condition corresponds to the starting condition in the foregoing several embodiments.
Specifically, the contact area value of the palm rest position in the electronic device and the user can be compared with a preset contact area value, and when the contact area value is not greater than the preset contact area value, it can be determined that the contact information meets a preset closing condition;
or, the historical parameter information of the touch keyboard by the user can be matched and compared with the current parameter information to generate a matching result, and when the matching result indicates that the user adopts single-finger operation, the contact information can be judged to meet the preset closing condition;
or, the contact position coordinate in the touch information can be compared with the action area range of the key; in the middle preset time period, if the condition that the contact position coordinate is not overlapped with the action area ranges of the at least two keys occurs, the contact information can be judged to meet the preset closing condition.
Of course, the manner of determining whether the contact information satisfies the preset closing condition is not limited to the above-mentioned several manners, and in the specific implementation, other various closing conditions may be provided, which is not described in detail in this embodiment,
step S1105: and if so, switching the input mode of the electronic equipment from the second mode to the first mode.
When the input mode of the electronic equipment is in the second mode, the action area of the keys in the virtual keyboard is automatically corrected according to the touch information, and the touch information is identified to have larger power consumption, so that when the contact information meets the preset closing condition, namely, a user can always accurately contact the action area of the keys, the input mode of the electronic equipment is switched to the first mode with lower power consumption, and the power consumption of the electronic equipment is reduced while the user can quickly and accurately input information.
It should be noted that, the step S1104 and the step S1102 may be executed simultaneously, or may be automatically determined according to the current operation mode of the electronic device, and if the current operation mode is the first mode, the step S1102 is directly executed; if the current mode is the second mode, step S1104 may be directly performed, and steps S1102-1103 are not performed, so as to reduce the data processing amount of the electronic device.
In summary, in the control method provided in this embodiment, after receiving the contact information of the user and the electronic device, the method further includes: judging whether the contact information meets a preset closing condition or not; and if so, switching the input mode of the electronic equipment from the second mode to the first mode. By adopting the method, when the contact information meets the preset closing condition, the input mode of the electronic equipment is switched to the first mode with lower power consumption, so that the power consumption of the electronic equipment is reduced while the user can input the information quickly and accurately.
The control method is described in detail in the embodiment provided by the invention, and the control method of the invention can be realized by adopting various forms of control devices, so that the invention also provides a control device, and the detailed description is given below for specific embodiments.
Fig. 12 shows a schematic structural diagram of an embodiment 1 of the control device provided in the present application, where the control device is applied to an electronic device, and the electronic device may specifically be an electronic device such as a desktop, a notebook, a tablet computer, a mobile phone, a smart television, a smart watch, and a wearable device, and the electronic device has a touch screen. The touch screen is provided with a virtual keyboard, specifically, the virtual keyboard can be a Sudoku keyboard, a QWERT keyboard, or a virtual keyboard in other arrangement forms.
The device may include the following structure: a receiving module 1201, a first judging module 1202 and a first control module 1203;
the receiving module 1201 is used for receiving contact information of a user and the electronic device;
the receiving module 1201 receives the contact information, and may determine, according to the contact information, a contact manner between the user and the electronic device, so as to determine whether a preset starting condition is met.
The contact type between the user and the electronic device may be contact between the user and the electronic device main body, or contact between the user and a touch screen of the electronic device.
Specifically, the contact information may include: contact position, contact area, contact pressure, and other parameters related to contact.
The first determining module 1202 is configured to determine whether the contact information meets a preset starting condition;
wherein, a starting condition is preset, and the starting condition is a condition for starting the second mode.
It should be noted that different starting conditions may be provided for different contact types, and in the subsequent embodiment, whether the corresponding starting conditions are met is determined according to different contact types for detailed description, which is not described in detail in this embodiment.
Specifically, the first determining module 1202 determines whether the contact information meets a condition required for starting the second mode according to the starting condition, and if so, it is known that the input mode of the electronic device needs to be switched from the first mode to the second mode; otherwise, the input mode of the electronic equipment is maintained to maintain the current first mode.
When the input mode of the electronic equipment is the first mode, the information processor in the electronic equipment directly identifies the received touch information of the virtual keyboard from the user, and does not automatically correct the action area of the key in the virtual keyboard in real time.
It should be noted that, when the input mode of the electronic device is the first mode, correspondingly, the user may adopt a single-finger operation mode, and since only one finger is used, the user has a good degree of control over the contact point of the finger and the touch screen, and the problem of deviation from the action area of the key is not likely to occur, the action area of the key of the virtual keyboard does not need to be automatically corrected, and the user can also use the virtual keyboard to input information quickly, efficiently and accurately.
The first control module 1203 is configured to control an input mode of the electronic device to be switched from a first mode to a second mode when the contact information meets a preset starting condition;
and when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information.
It should be noted that, when the contact information satisfies the preset starting condition, it is known that the touch information of the user indicates the input mode of the user or the mode of holding the electronic device, which results in poor control degree of the contact action between the finger and the touch screen by the user and easily causes a problem of deviating from the action area of the key.
It should be noted that, in the prior art, a user determines according to a self condition and manually turns on the second mode, however, when the second mode is turned on, even if the user accurately touches an action region of a key, the electronic device may also correct according to the second mode, which results in large power consumption of the electronic device.
In summary, the control apparatus provided in this embodiment receives contact information of a user and the electronic device, and determines whether a preset starting condition is met according to the contact information, and when the preset starting condition is met, controls an input mode of the electronic device to switch from a first mode to a second mode; when the input mode of the electronic equipment is the second mode, according to the touch information of the user on the virtual keyboard, correcting the action area of the keys in the virtual keyboard, identifying the touch information, generating corresponding response content and the like, and when the input mode of the electronic equipment is the first mode, only identifying the touch of the user without automatically correcting the keys. By adopting the device, when the user uses the virtual keyboard and the contact information meets the starting condition, the first mode and the second mode can be automatically switched without manual control of the user, the user can quickly and accurately input information, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Referring to fig. 13, a schematic structural diagram of embodiment 2 of a control device provided by the present application is shown, where the device may include the following structures: a receiving module 1301, a first judging module 1302 and a first control module 1303;
the structure and function of the first control module 1303 are the same as those of embodiment 1, and are not described again in this embodiment.
The receiving module 1301 is specifically configured to acquire detection data of the sensor, where the detection data is a contact area value between a user and a palm rest position in the electronic device;
the electronic equipment is provided with a sensor, and the sensor is used for detecting the contact area of a user and the electronic equipment.
The palm rest is arranged according to the size, shape and other conditions of the electronic equipment, and the palm rest of different electronic equipment can be different.
Specifically, when the palm rest is a part of the touch screen, the sensor may be a sensor in the touch screen, and detection data of the sensor in the touch screen may be directly obtained, where the detection data is a contact area generated when a user contacts the touch screen; when the palm support is adjacent to the touch screen, a special sensor is arranged at the palm support position to detect the contact area at the palm support position.
The region corresponding to the contact area may be a continuous one-piece region, or may be two or more pieces of regions.
Specifically, when there are a plurality of contact regions, the contact areas of the respective regions are summed to obtain a total contact area value, and the total contact area value is compared in the subsequent step S202.
The first determining module 1303 is specifically configured to compare the contact area value with a preset first area threshold; when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition.
It should be noted that, when the user holds the electronic device with both hands and presses the virtual keyboard to input information with both hands simultaneously, the contact area between the user and the palm rest of the electronic device is large, and the first determining module 1303 determines whether the user holds the electronic device with both hands.
The first area threshold value is the minimum value of the contact area between the electronic device and the user when the user holds the electronic device.
Specifically, the contact area is compared with a preset first area threshold, and when the contact area value is larger than the first area threshold, it can be judged that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition.
In specific implementation, the contact area between the user and the electronic device can be set, and the sensor can also simultaneously acquire the position information of the contact area so as to judge whether the position of the contact area meets the preset position of the user for holding the electronic device by two hands, and if so, the contact information is judged to meet the preset starting condition.
It should be noted that, the comparison between the contact area and the first area threshold and the comparison between the contact position and the preset position may be both used as a way of determining whether the contact information satisfies the preset starting condition, and the two ways may be used separately or in combination, which is not limited in the present application.
Fig. 3 is a schematic diagram of an electronic device with a user's two-hand holding mode, in which two hands of a user are in contact with an area a 302 and an area B303 of an electronic device 301, the areas within the dotted line frame are the area a and the area B, respectively, the contact area value is the sum of the area a and the area of the area B, and the sum of the areas is compared with a first area threshold, so as to determine whether the contact information satisfies a preset activation condition.
In summary, in the control apparatus provided in this embodiment, a sensor is further disposed in the electronic device, and the sensor detects a contact area value between the user and the palm rest position of the electronic device, when the detected contact area is larger than a preset first threshold, it may be determined that the contact information meets a preset starting condition, a second mode is started, an action region of a key in the virtual keyboard is corrected according to touch information of the user on the virtual keyboard, and the touch information is identified, and corresponding response content is generated. By adopting the device, when the user uses the virtual keyboard and the contact information meets the starting condition, the first mode and the second mode can be automatically switched without manual control of the user, the user can quickly and accurately input information, the switching mode is quick, the operation mode is simple, and the user experience is improved.
Referring to fig. 14, a schematic structural diagram of embodiment 3 of a control device provided by the present application is shown, where the device may include the following structures: a receiving module 1401, a first judging module 1402 and a first control module 1403;
the first determining module 1402 includes: an analyzing unit 1404 and a first judging unit 1405.
The structure and function of the first control module 1403 are the same as those of the corresponding structure in embodiment 1, and this embodiment is not described again.
The analyzing unit 1404 is configured to analyze the touch information to obtain parameter information carried in the touch information;
the touch information is touch information generated according to the operation of a user on the touch screen.
Wherein, the parameter information of the touch information comprises: time parameter, pressure value, contact position, contact range and other various touch related information.
And the pressure value, the contact position, the contact range and the like represent gestures of the user for performing touch operation.
It should be noted that, different touch manners and corresponding touch information have different parameter values.
The first determining unit 1405 is configured to determine whether the parameter information satisfies a preset starting condition.
The touch information carries the parameter information, and the first determining unit 1405 determines whether the parameter information satisfies a preset starting condition.
The starting condition is set with corresponding information, such as a time interval between two touch operations, a pressure value threshold range, a contact position range, a contact area range, and the like, and the following embodiments will be explained in detail, which is not detailed in the present embodiment.
In summary, in the control device provided in this embodiment, when the contact information is touch information generated by the user operating the touch screen, the determining whether the contact information satisfies a preset starting condition includes: analyzing the touch information to obtain parameter information carried in the touch information; and judging whether the parameter information meets a preset starting condition or not. And when the parameter information carried in the touch information meets the preset starting condition, starting a second mode, correcting the action area of the key in the virtual keyboard according to the touch information of the user on the virtual keyboard, identifying the touch information, generating corresponding response content and the like. By adopting the device, when the user uses the virtual keyboard and the contact information meets the starting condition, the first mode and the second mode can be automatically switched without manual control of the user, the user can quickly and accurately input information, the switching mode is quick, the operation mode is simple, and the user experience is improved.
As shown in fig. 15, a schematic structural diagram of a first determining unit in embodiment 4 of a control device provided by the present application is shown, and the control device may include the following structures: the device comprises a receiving module, a first judging module and a first control module;
wherein, this first judgement module includes: an analysis unit and a first judgment unit.
Wherein, this first judgement unit includes: a first acquisition sub-unit 1501 and a matching sub-unit 1502;
the structures and functions of the receiving module, the first control module, and the analyzing unit are the same as those of embodiment 3, and are not described again in this embodiment.
The first obtaining subunit 1501 is configured to obtain historical parameter information, where the historical parameter information is obtained by analyzing gesture information received within a preset time range;
the historical parameter information is contact information received in the last time or a preset time range before the last time, the contact information is gesture information, and the gesture information can represent a gesture when a user clicks a virtual key once.
It should be noted that the historical parameter information is parameter information corresponding to a plurality of historical input gestures, so as to improve the accuracy of subsequently judging whether the contact information meets the preset starting condition.
The matching subunit 1502 is configured to perform matching comparison on the historical parameter information and the current parameter information, and generate a matching result; when the matching result shows that the historical parameter information is not matched with the current parameter information, judging that a preset starting condition is met; and when the matching result shows that the historical parameter information is matched with the current parameter information, judging that the preset starting condition is not met.
It should be noted that, in a current period of operation time, when a user uses the same finger to click a virtual key to input information, the gesture for clicking the virtual key should be the same, and when the user uses both hands to hold the electronic device, the user may use a plurality of fingers to alternately click a virtual keyboard, the gesture for clicking the virtual keyboard is different, and the specific parameter information obtained through the gesture information analysis is determined.
Specifically, the matching subunit 1502 matches and compares the historical parameter information representing the gesture input by the user before with the current parameter information input this time, and generates a matching result.
When the matching result shows that the historical parameter information is not matched with the current parameter information, the user can be known to adopt non-single-finger operation, the condition that the action area of the key cannot be accurately contacted easily occurs, and the condition that the preset starting condition is met is judged; and when the matching result shows that the historical parameter information is matched with the current parameter information, the user adopts single-finger operation, generally can accurately contact the action area of the key, and then judges that the preset starting condition is not met.
In a specific implementation, when the parameter information includes the contact area and the pressure value, it may be determined whether the preset starting condition is satisfied by comparing the contact area with the pressure value.
Specifically, the matching subunit 1502 is specifically configured to: according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information; according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information; comparing the first matching degree with a preset matching threshold value and generating a comparison result; when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information; otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
Fig. 6 is a schematic diagram of an electronic device with a two-hand holding manner, where a user holds the electronic device 601 with two hands, and two thumbs click a touch screen to input information, where a region C602 and a region E603 are contact regions clicked by the left thumb, a region D604 is a contact region clicked by the right thumb, and the left and right thumbs have different clicking forces, so that the pressure in the contact information is different, and the contact areas corresponding to the different finger clicks are also different.
In summary, in the control apparatus provided in this embodiment, when the contact information is gesture information, the operation mode of the user is determined according to the current gesture information and the historical parameter information of the user, and then it is determined whether a preset starting condition is met, and when the preset starting condition is met, the input mode of the electronic device is controlled to be switched from the first mode to the second mode. By adopting the device, whether non-single-finger operation is required to be judged only by comparing the received gesture information with the historical gesture information, the judgment that the contact information meets the preset starting condition can be realized without a large amount of data processing, the judgment process is simple and rapid, the switching mode is rapid, the operation mode is simple, and the user experience is improved.
The touch information can carry the coordinates of the touch position.
As shown in fig. 16, a schematic structural diagram of a first determining unit in embodiment 5 of a control device provided by the present application is shown, and the control device may include the following structures: the device comprises a receiving module, a first judging module and a first control module;
wherein, this first judgement module includes: an analysis unit and a first judgment unit.
Wherein, this first judgement unit includes: a second acquisition subunit 1601 and a comparison subunit 1602;
the structures and functions of the receiving module, the first control module, and the analyzing unit are the same as those of embodiment 3, and are not described again in this embodiment.
The second obtaining subunit 1601 is configured to obtain an action area range of each key in the touch keyboard;
each key in the touch keyboard has a corresponding action area range.
Specifically, the action area range can be divided in a coordinate mode for marking, and other modes can be adopted for marking quickly.
Fig. 8 is a first schematic diagram of a touch keyboard in a grid-squared distribution mode, where each key is closely adjacent to another key, and the range of the active area of any key is the range of the key display frame.
Fig. 9 is a second schematic diagram of a touch keyboard in a grid-squared distribution manner, where each key in the touch keyboard is spaced by a certain distance, and the range of the action area of any key is greater than the range of the key display frame, for example, the range 902 of the action area of the key 901 where the number 1 is located is shown as a dotted line, and is greater than the range of the key 901.
The comparison subunit 1602, configured to compare the contact position coordinate with an action area range of the key; when the contact position coordinates coincide with the action area ranges of at least two keys, judging that the contact information meets a preset starting condition; otherwise, judging that the contact information does not meet the preset starting condition.
The touch information carries a touch position coordinate, wherein the touch position coordinate represents a coordinate of a touch area, but not a touch point, which is a coordinate range of a touch area.
Specifically, the comparison subunit 1602 compares the coordinates with the range of the action area of the key in the touch keyboard, and can determine the key covered (or related) by the contact position coordinates, where the number of the key may be 1, 2, or even 3 or 4.
Specifically, when the contact position coordinates coincide with the action area ranges of the at least two keys, the user cannot accurately contact the action areas of the keys, the contact information is judged to meet the preset starting condition, and the action area of the virtual keyboard needs to be automatically corrected so as to match the input of the user; otherwise, the user can accurately contact the action area of the key and judge that the contact information does not meet the preset starting condition.
In summary, in the control device provided in this embodiment, a contact position coordinate is determined according to touch information, the contact position coordinate is compared with an action area range of each key in a touch keyboard, and when the contact position coordinate coincides with the action area ranges of at least two keys, it is determined that the contact information satisfies a preset starting condition; the input mode of the electronic equipment is controlled to be switched from the first mode to the second mode, the device is adopted, only the key action area of the touch keyboard is required to be compared with the contact position coordinate of the touch information, the judgment that the contact information meets the preset starting condition can be realized without a large amount of data processing, the judgment process is simple and rapid, the switching mode is rapid, the operation mode is simple, and the user experience is improved.
As shown in fig. 17, a schematic structural diagram of a first determining unit in embodiment 6 of a control device provided by the present application is shown, and the control device may include the following structures: the device comprises a receiving module, a first judging module and a first control module;
wherein, this first judgement module includes: an analysis unit and a first judgment unit.
Wherein, this first judgement unit includes: a second fetch subunit 1701, a compare subunit 1702, a count subunit 1703, and a judge subunit 1704;
the structures and functions of the receiving module, the first control module, the analyzing unit, the second obtaining subunit and the comparing subunit are consistent with those of embodiment 5, and are not described in detail in this embodiment.
The counting subunit 1703 is configured to add 1 to a count value of a counter preset in the electronic device;
in order to prevent the electronic device from being switched to the second mode quickly due to the contact deviation which happens occasionally, a certain tolerance is required.
The electronic equipment is provided with a counter, and once the contact position coordinates coincide with the action area ranges of at least two keys, the counting value of the counter is increased by 1.
The judging subunit 1704 is configured to judge whether the count value is greater than a preset value; if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter; otherwise, executing the step of receiving the contact information of the user and the electronic equipment.
The preset value may be set according to actual conditions, for example, when the electronic device is expected to have higher input accuracy, a smaller value, for example, 3, may be set, and when the electronic device is expected to have lower power consumption, a larger value, for example, 10, may be set.
Specifically, when the judgment subunit 1704 judges that the count value is greater than the preset value, it may judge that the condition that the action region of the key cannot be accurately contacted for multiple times occurs, and judge that the contact information meets the preset starting condition, at this time, the first control module is triggered, the input mode of the electronic device is switched to the second mode, and the action region of the virtual keyboard is automatically corrected to match the input of the user.
When the judgment subunit 1704 judges that the count value is not greater than the preset value, the contact information does not meet the preset starting condition, the triggering receiving module returns, the contact information of the user and the electronic device continues to be received, and subsequent comparison is performed.
In summary, in the control device provided in this embodiment, after the contact position coordinate coincides with the range of the action areas of the at least two keys, the control device further includes: adding 1 to a count value of a counter preset in the electronic equipment; judging whether the count value is larger than a preset value or not; if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter; otherwise, executing the step of receiving the contact information of the user and the electronic equipment. By adopting the device, only when the condition that the action region of the key cannot be accurately contacted occurs for a plurality of times, the contact information can be judged to meet the preset starting condition, then the input mode of the electronic equipment is switched to the second mode, and the action region of the virtual keyboard is automatically corrected so as to match the input of a user. The situation that a user can not accurately contact the action area of the key once at a time is prevented, the first mode which saves power consumption of the electronic equipment is switched into the second mode, the power consumption of the electronic equipment is reduced, and meanwhile, the user experience is guaranteed.
Referring to fig. 18, a schematic structural diagram of embodiment 7 of a control device provided by the present application is shown, and the control device may include the following structures: a receiving module 1801, a first determining module 1802, a first control module 1803, a second determining module 1804, and a second control module 1805;
the structures and functions of the receiving module 1801, the first determining module 1802, and the first control module 1803 are the same as those of the corresponding structure in embodiment 1, and are not described in detail in this embodiment.
The second judging module 1804 is configured to judge whether the contact information meets a preset closing condition;
the preset turning-off condition refers to a condition for turning off the second mode, and the turning-off condition corresponds to the starting condition in the foregoing several embodiments.
Specifically, the contact area value of the palm rest position in the electronic device and the user can be compared with a preset contact area value, and when the contact area value is not greater than the preset contact area value, it can be determined that the contact information meets a preset closing condition;
or, the historical parameter information of the touch keyboard by the user can be matched and compared with the current parameter information to generate a matching result, and when the matching result indicates that the user adopts single-finger operation, the contact information can be judged to meet the preset closing condition;
or, the contact position coordinate in the touch information can be compared with the action area range of the key; in the middle preset time period, if the condition that the contact position coordinate is not overlapped with the action area ranges of the at least two keys occurs, the contact information can be judged to meet the preset closing condition.
Of course, the manner of determining whether the contact information satisfies the preset closing condition is not limited to the above-mentioned several manners, and in the specific implementation, other various closing conditions may be provided, which is not described in detail in this embodiment,
the second control module 1805 is configured to, if the input mode of the electronic device is satisfied, switch the input mode of the electronic device from the second mode to the first mode.
When the input mode of the electronic equipment is in the second mode, the action area of the keys in the virtual keyboard is automatically corrected according to the touch information, and the touch information is identified to have larger power consumption, so that when the contact information meets the preset closing condition, namely, a user can always accurately contact the action area of the keys, the input mode of the electronic equipment is switched to the first mode with lower power consumption, and the power consumption of the electronic equipment is reduced while the user can quickly and accurately input information.
It should be noted that the first determining module 1802 and the second determining module 1804 may execute actions simultaneously, or may automatically determine according to the current operating mode of the electronic device, and if the current operating mode is the first mode, directly trigger the first determining module 1802; if the current mode is the second mode, the second determining module 1804 may be directly triggered, and the first determining module 1802 and the first control module 1803 may not be triggered, so as to reduce the data processing amount of the electronic device.
In summary, the control device provided in this embodiment further includes: judging whether the contact information meets a preset closing condition or not; and if so, switching the input mode of the electronic equipment from the second mode to the first mode. By adopting the device, when the contact information meets the preset closing condition, the input mode of the electronic equipment is switched to the first mode with lower power consumption, so that the power consumption of the electronic equipment is reduced while the user can input the information quickly and accurately.
Corresponding to the embodiment of the control device provided by the application, the application also provides an electronic device, which is provided with a touch screen and the control device provided by any one of the embodiments;
wherein, a virtual keyboard is arranged in the touch screen.
Wherein, this controlling means includes: the functions of each constituent module of the control device are consistent with those of the corresponding structure in the above-mentioned one control device embodiment, and are not described in detail in this embodiment.
Preferably, the electronic device is further provided with a sensor, and the receiving module is specifically configured to acquire detection data of the sensor, where the detection data is a contact area value between a user and a palm rest position in the electronic device; the first judging module is specifically used for comparing the contact area value with a preset first area threshold value; when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition.
Preferably, when the contact information is touch information generated by a user operating the touch screen, the first determining module includes: the functions of the analysis unit and the first determination unit, and the functions of each constituent module of the control device are consistent with the functions of the corresponding structures in the above-mentioned one control device embodiment, which is not described in detail in this embodiment.
Preferably, when the contact information is gesture information, the first determining unit includes: the functions of each component module of the control device are consistent with those of the corresponding structure in the above-mentioned control device embodiment, and are not described in detail in this embodiment.
Preferably, when the parameter information includes a contact area and a pressure value, the matching subunit is specifically configured to: according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information; according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information; comparing the first matching degree with a preset matching threshold value and generating a comparison result; when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information; otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
Preferably, when the touch information carries a contact position coordinate, the first determining unit includes: the functions of each constituent module of the control device are consistent with those of the corresponding structure in the above-mentioned control device embodiment, and are not described in detail in this embodiment.
Preferably, the first judging unit further includes: the functions of each component module of the control device are consistent with those of the corresponding structure in the above-mentioned control device embodiment, and are not described again in this embodiment.
Preferably, the method further comprises the following steps: the functions of each component module of the control device are consistent with those of the corresponding structure in the above-mentioned one control device embodiment, and are not described in detail in this embodiment.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing detailed description is directed to a control method, a control device, and an electronic device provided by the present application, and specific examples are applied in the present application to explain the principles and embodiments of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A control method is applied to an electronic device with a touch screen, wherein a virtual keyboard is arranged in the touch screen, and the method comprises the following steps:
receiving contact information of a user and the electronic equipment;
judging whether the contact information meets a preset starting condition or not;
if yes, controlling the input mode of the electronic equipment to be switched from the first mode to the second mode;
when the input mode of the electronic equipment is a first mode, identifying the received touch information of the user on the virtual keyboard; when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information;
the electronic equipment is further provided with a sensor, and then the receiving of the contact information of the user and the electronic equipment and the judgment of whether the contact information meets the preset starting condition comprise:
acquiring detection data of the sensor, wherein the detection data is a contact area value between a user and a palm rest position in the electronic equipment, and the palm rest position comprises a part of a touch screen or a touch adjacent position;
comparing the contact area value with a preset first area threshold value;
when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition;
otherwise, the contact information does not meet the preset starting condition;
when the contact information is touch information generated by the operation of the touch screen by the user, the judging whether the contact information meets a preset starting condition includes:
analyzing the touch information to obtain parameter information carried in the touch information;
judging whether the parameter information meets a preset starting condition or not;
when the contact information is gesture information, the determining whether the parameter information meets a preset starting condition includes:
acquiring historical parameter information, wherein the historical parameter information is obtained by analyzing gesture information received within a preset time range;
matching and comparing the historical parameter information with the current parameter information to generate a matching result;
when the matching result shows that the historical parameter information is not matched with the current parameter information, representing that a user adopts non-single-finger operation, and judging that a preset starting condition is met;
and when the matching result shows that the historical parameter information is matched with the current parameter information, representing that the user adopts single-finger operation, and judging that the preset starting condition is not met.
2. The method of claim 1, wherein when the parameter information includes a contact area and a pressure value, the matching and comparing the historical parameter information with current parameter information, and generating a matching result includes:
according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information;
according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information;
comparing the first matching degree with a preset matching threshold value and generating a comparison result;
when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information;
otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
3. The method according to claim 1, wherein when the touch information carries a contact position coordinate, the determining whether the parameter information satisfies a preset starting condition includes:
acquiring the range of an action area of each key in a touch keyboard;
comparing the contact position coordinates with the range of the action area of the key;
when the contact position coordinates coincide with the action area ranges of at least two keys, judging that the contact information meets a preset starting condition;
otherwise, judging that the contact information does not meet the preset starting condition.
4. The method of claim 3, wherein after the contact location coordinates coincide with the active area areas of at least two keys, further comprising:
adding 1 to a count value of a counter preset in the electronic equipment;
judging whether the count value is larger than a preset value or not;
if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter;
otherwise, executing the step of receiving the contact information of the user and the electronic equipment.
5. The method of claim 1, wherein after receiving contact information of a user with the electronic device, the method further comprises:
judging whether the contact information meets a preset closing condition or not;
and if so, switching the input mode of the electronic equipment from the second mode to the first mode.
6. A control device is applied to an electronic device with a touch screen, wherein a virtual keyboard is arranged in the touch screen, and the device comprises:
the receiving module is used for receiving contact information of a user and the electronic equipment;
the first judgment module is used for judging whether the contact information meets a preset starting condition or not;
the first control module is used for controlling the input mode of the electronic equipment to be switched from a first mode to a second mode when the contact information meets a preset starting condition;
when the input mode of the electronic equipment is a first mode, identifying the received touch information of the user on the virtual keyboard; when the input mode of the electronic equipment is a second mode, automatically correcting the action area of the key in the virtual keyboard according to the touch information, and identifying the touch information;
wherein, the electronic equipment is also provided with a sensor,
the receiving module is specifically used for acquiring detection data of the sensor, wherein the detection data is a contact area value between a user and a palm rest position in the electronic equipment;
the first judging module is specifically used for comparing the contact area value with a preset first area threshold value; when the contact area value is larger than the first area threshold value, judging that the contact information meets a preset starting condition; otherwise, the contact information does not meet the preset starting condition;
when the contact information is touch information generated by a user operating the touch screen, the first determining module includes:
the analysis unit is used for analyzing the touch information to obtain parameter information carried in the touch information;
the first judging unit is used for judging whether the parameter information meets a preset starting condition or not;
wherein, when the contact information is gesture information, the first determining unit includes:
the first acquisition subunit is used for acquiring historical parameter information, wherein the historical parameter information is obtained by analyzing gesture information received within a preset time range;
the matching subunit is used for matching and comparing the historical parameter information with the current parameter information to generate a matching result; when the matching result shows that the historical parameter information is not matched with the current parameter information, representing that a user adopts non-single-finger operation, and judging that a preset starting condition is met; and when the matching result shows that the historical parameter information is matched with the current parameter information, representing that the user adopts single-finger operation, and judging that the preset starting condition is not met.
7. The apparatus according to claim 6, wherein when the parameter information comprises a contact area and a pressure value, the matching subunit is specifically configured to:
according to a preset matching degree calculation rule, respectively calculating the matching degree of the contact area and the pressure value of the historical parameter information and the current parameter information;
according to a preset weighting calculation rule, carrying out weighting calculation on the matching degree of the contact area and the matching degree of the pressure value to obtain a first matching degree, wherein the first matching degree is the matching degree of the historical parameter information and the current parameter information;
comparing the first matching degree with a preset matching threshold value and generating a comparison result;
when the comparison result shows that the first matching degree is greater than a preset matching threshold value, the matching result shows that the historical parameter information is matched with the current parameter information;
otherwise, the matching result shows that the historical parameter information is not matched with the current parameter information.
8. The apparatus according to claim 6, wherein when the touch information carries a contact position coordinate, the first determining unit includes:
the second acquisition subunit is used for acquiring the range of the action area of each key in the touch keyboard;
the comparison subunit is used for comparing the contact position coordinates with the action area range of the key; when the contact position coordinates coincide with the action area ranges of at least two keys, judging that the contact information meets a preset starting condition; otherwise, judging that the contact information does not meet the preset starting condition.
9. The apparatus according to claim 8, wherein the first determining unit further comprises:
the counting subunit is used for adding 1 to the counting value of a counter preset in the electronic equipment;
the judging subunit is used for judging whether the counting value is larger than a preset value or not; if the touch information is larger than the preset touch information, judging that the touch information meets a preset starting condition, and clearing the counter; otherwise, executing the step of receiving the contact information of the user and the electronic equipment.
10. The apparatus of claim 6, further comprising:
the second judgment module is used for judging whether the contact information meets a preset closing condition;
and the second control module is used for switching the input mode of the electronic equipment from the second mode to the first mode if the input mode is met.
11. An electronic device, characterized in that the electronic device has a touch screen and a control device according to any one of claims 6-10;
wherein, a virtual keyboard is arranged in the touch screen.
CN201410577907.4A 2014-10-24 2014-10-24 Control method and device and electronic equipment Active CN105528130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410577907.4A CN105528130B (en) 2014-10-24 2014-10-24 Control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410577907.4A CN105528130B (en) 2014-10-24 2014-10-24 Control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105528130A CN105528130A (en) 2016-04-27
CN105528130B true CN105528130B (en) 2020-07-24

Family

ID=55770393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410577907.4A Active CN105528130B (en) 2014-10-24 2014-10-24 Control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105528130B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855785A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A method, device and mobile terminal for realizing anti-mistouch screen when holding with both hands
CN107087219B (en) * 2017-02-22 2018-04-10 罗普特(厦门)科技集团有限公司 Human body posture recognition device
CN109213344B (en) * 2017-06-29 2020-10-30 上海耕岩智能科技有限公司 Contact recognition method and device for foldable display screen
CN108021239B (en) * 2017-12-04 2024-05-14 合肥联宝信息技术有限公司 Key switching method and electronic equipment
CN110471547A (en) * 2019-07-09 2019-11-19 陈威 Control mode switch method, apparatus, equipment and the readable medium of touch keyboard
CN110312225B (en) * 2019-07-30 2022-06-03 平顶山学院 Wireless sensor hardware device
CN111352566B (en) * 2020-02-27 2022-02-22 维沃移动通信有限公司 Parameter adjusting method and electronic equipment
CN111782083B (en) * 2020-06-30 2025-01-21 北京小米移动软件有限公司 Content input method, device, touch input device and storage medium
CN111857497B (en) * 2020-06-30 2021-08-13 维沃移动通信有限公司 Operation prompt method and electronic device
CN112312177B (en) * 2020-10-27 2022-09-20 Oppo广东移动通信有限公司 Working mode switching method and device, display equipment and readable storage medium
CN112925571A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device
CN113050834B (en) * 2021-03-26 2023-07-21 联想(北京)有限公司 Information processing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060026830A (en) * 2004-09-21 2006-03-24 송정헌 Portable keypad system
CN101571783A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Method for realizing input of soft keyboard character by small touch screen
CN102422246A (en) * 2009-06-16 2012-04-18 英特尔公司 Adaptive virtual keyboard for handheld devices
CN103064629A (en) * 2013-01-30 2013-04-24 龙凡 Portable electronic equipment and method capable of dynamically regulating graphical controls
CN103543853A (en) * 2011-11-30 2014-01-29 英特尔公司 Self-adaptive virtual keyboard for handheld device
CN104049877A (en) * 2013-03-12 2014-09-17 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164135B (en) * 2011-12-14 2016-01-27 联想(北京)有限公司 A kind of electronic equipment unlock method and device, electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060026830A (en) * 2004-09-21 2006-03-24 송정헌 Portable keypad system
CN101571783A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Method for realizing input of soft keyboard character by small touch screen
CN102422246A (en) * 2009-06-16 2012-04-18 英特尔公司 Adaptive virtual keyboard for handheld devices
CN103543853A (en) * 2011-11-30 2014-01-29 英特尔公司 Self-adaptive virtual keyboard for handheld device
CN103064629A (en) * 2013-01-30 2013-04-24 龙凡 Portable electronic equipment and method capable of dynamically regulating graphical controls
CN104049877A (en) * 2013-03-12 2014-09-17 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN105528130A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN105528130B (en) Control method and device and electronic equipment
US9377871B2 (en) System and methods for determining keyboard input in the presence of multiple contact points
US9965044B2 (en) Information processing method, apparatus, and device
CN105824559B (en) False touch recognition and processing method and electronic equipment
CN106775084B (en) A kind of false-touch prevention method, device and mobile terminal of touch screen
US20150149968A1 (en) Touch device and control method thereof
US20130207935A1 (en) Touch panel device
WO2018107903A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
US20120007816A1 (en) Input Control Method and Electronic Device for a Software Keyboard
CN106775405A (en) Method and device for preventing false touch on touch screen of mobile terminal, and mobile terminal
CN105487809A (en) Terminal control method and device
US20170185287A1 (en) Adapting a virtual keyboard in the presence of static contact events
CN105630370A (en) Slide touch operation method and apparatus for terminal, and terminal
CN105867916A (en) Terminal control method and device
CN105892927A (en) Mobile terminal control method and device
CN105426091B (en) Method and terminal for controlling black screen gesture processing
CN106681636A (en) A method, device and mobile terminal for preventing false touches
CN107450820B (en) Interface control method and mobile terminal
CN104407793B (en) Touch signal processing method and equipment
CN105511758B (en) Information processing method and electronic equipment
CN104049896B (en) A kind of display methods and device
CN106681640B (en) Screen display control method of a mobile terminal and mobile terminal
CN107390996B (en) Handling method and mobile terminal for false touch of power button
CN106095322B (en) Control method and electronic equipment
US9720513B2 (en) Apparatus and method for receiving a key input

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant