CN110673747B - Input candidate character display method and related device - Google Patents

Input candidate character display method and related device Download PDF

Info

Publication number
CN110673747B
CN110673747B CN201910904827.8A CN201910904827A CN110673747B CN 110673747 B CN110673747 B CN 110673747B CN 201910904827 A CN201910904827 A CN 201910904827A CN 110673747 B CN110673747 B CN 110673747B
Authority
CN
China
Prior art keywords
target
determining
input
axis
inclination angle
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
CN201910904827.8A
Other languages
Chinese (zh)
Other versions
CN110673747A (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.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201910904827.8A priority Critical patent/CN110673747B/en
Publication of CN110673747A publication Critical patent/CN110673747A/en
Application granted granted Critical
Publication of CN110673747B publication Critical patent/CN110673747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

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

Abstract

The embodiment of the application discloses a display method and a device of input candidate characters, wherein the method comprises the following steps: determining the type of one-handed operation of the target object; when the target object is in the symbol input interface, acquiring an inclination angle and a click position of the target object in the input interface; determining a target character area from the input interface according to the single-hand operation type, calculating a plurality of target key probabilities in the target character area according to the inclination angle and the click position, and determining a display sequence of input candidate characters according to the plurality of target key probabilities. The technical scheme that this application provided has the advantage that the accuracy is high.

Description

Input candidate character display method and related device
Technical Field
The present application relates to the field of technologies, and in particular, to a method and a related apparatus for displaying input candidate symbols.
Background
The mobile phone operated by one hand occupies a considerable proportion in the process of using the mobile phone by a user, and the difficulty of the one-hand operation of the user is increased along with the increasing size of the display screen of the smart phone. The difficulty becomes particularly prominent in the character input scene, especially in the 26-key input scene, for some far-end target character areas, the user can hardly get to the characters, and more particularly, accurately clicks the characters, so that the candidate characters on the display screen are not the candidate characters wanted by the user, the character input accuracy is reduced, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a display method and a related device for input candidate characters, which aim to determine the probability of the candidate characters in a candidate character region through the operation habits of a user and determine the display strategy of the candidate characters according to the probability, so that the accuracy of character input is improved, and the display method and the display device have the advantage of improving the user experience.
In a first aspect, a method for presenting input candidates is provided, the method comprising the steps of:
determining the single-hand operation type of the target object;
when the target object is located on a symbol input interface, acquiring an inclination angle and a click position of the target object on the input interface;
determining a target character area from the input interface according to the single-hand operation type, calculating the probability of a plurality of target keys in the target character area according to the inclination angle and the click position, and determining the display sequence of the input candidate characters according to the probability of the plurality of target keys.
In a second aspect, there is provided a device for presenting input candidates, the device comprising:
a determination unit configured to determine a one-handed operation type of the target object;
the acquisition unit is used for acquiring the inclination angle and the click position of the target object on the input interface when the symbol input interface is positioned;
and the display unit is used for determining a target character area from the input interface according to the single-hand operation type, calculating a plurality of target key probabilities in the target character area according to the inclination angle and the click position, and determining a display sequence of the input candidate character according to the plurality of target key probabilities.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, according to the technical scheme provided by the first embodiment of the present application, after the one-hand operation type of the target object is determined, the candidate region of the input interface is determined according to the one-hand operation type, then the probability value of each character of the candidate region is calculated according to the inclination angle and the click position of the user, and the display order of the input candidate character is arranged according to the probability value.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for displaying input candidates according to an embodiment of the present application.
Fig. 1a is a schematic diagram of a candidate region according to a first embodiment of the present application.
Fig. 1b is a schematic diagram of another candidate region according to the first embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for determining a type of one-handed operation according to a second embodiment of the present application.
Fig. 2a is a schematic view of a sliding track provided in the second embodiment of the present application.
Fig. 3 is a schematic flowchart of a probability value calculation method according to an embodiment of the present application.
Fig. 3a is a schematic diagram of probability value parameters provided in the third embodiment of the present application.
Fig. 4 is a schematic structural diagram of a device for presenting input candidate provided in the embodiment of the present application.
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 some, not all, embodiments of the present invention. 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.
Candidate symbols, which generally refer to symbols that can be directly input in an input interface, may be different according to different input interfaces, for example, in an alphabet input interface, the symbols may be alphabets such as "a", "b"; as another example, in a stroke input interface, the symbol may be a stroke; as in the mathematical symbol input interface, the symbol may be a mathematical symbol, such as "+", ", etc.
Candidate words, which generally refer to words or phrases displayed in the input interface, which may differ depending on the input interface, for example, in the english input interface, the words or phrases may be words or phrases such as "hello", "Phrase"; also, for example, in a Chinese input interface, the word or phrase may be a word or group of words, such as "you," I, "" you, and I.
The input interface refers to an interface for inputting characters displayed on a display screen of the terminal, and commonly includes but is not limited to: a 26-key input interface, a symbol input interface, and the like.
The terminal related to the embodiment of the application can comprise various handheld devices, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, augmented reality/virtual reality devices and smart glasses) and computing devices; the handheld device includes but is not limited to: smart phones, tablet computers, PDAs (english: personal digital assistant), and the like.
Example one
An input candidate character display method is provided in the embodiments of the present application, an input interface of an input candidate character in the embodiments of the present application may be a 26-key input interface, and certainly in practical applications, the input interface may also be other types of pages. The method provided by the application is executed by a terminal, and the terminal can comprise: gravity sensors including, but not limited to: a gyroscope. The method is shown in figure 1 and comprises the following steps:
and step S101, the terminal determines the one-hand operation type of the target object.
The type of the one-handed operation in the above steps may specifically include: right-handed operation or left-handed operation. The target object may be a user operating the terminal.
And S102, when the terminal is positioned on a symbol input interface, acquiring the inclination angle and the click position of the target object on the input interface.
The tilt angle in step S102 may be obtained through a detection result of the gravity sensor, and the embodiment of the present application does not limit the specific obtaining method of the tilt angle.
The obtaining manner of obtaining the click position of the target object on the input interface in step S102 may be obtained by obtaining a touch point of the user on the touch display screen, specifically, collecting a touch signal of the touch display screen, and determining a position corresponding to the touch signal as the click position.
Step S103, the terminal determines a target character area from the input interface according to the single-hand operation type, calculates a plurality of target key probabilities in the target character area according to the inclination angle and the click position, and determines a display sequence of input candidate symbols according to the plurality of target key probabilities.
The target character area may be a range of all target keys that may be selected by the target object in the input interface.
The determining, by the terminal, the target character region from the input interface according to the one-handed operation type may specifically include:
if the one-handed operation type is a right-handed operation, the target character region may be determined to be a left region (e.g., a square region shown in fig. 1 a) of the input interface according to the interval of the tilt angle, and if the one-handed operation type is a left-handed operation, the target character region may be determined to be a right region (e.g., a square region shown in fig. 1 b) of the input interface according to the interval of the tilt angle. The relationship between the above-mentioned one-hand operation type, the interval of the inclination angle, and the target character region may be determined by a mapping relationship or a list. This list may be as shown in table 1 below:
TABLE 1
One-handed operation type Interval of inclination angle Target character area
Right hand operation 0-10° Q、W、A、S
Right hand operation -10°-0 O、P、K、L
Optionally, the determining the display order of the input candidate according to the target key probabilities may specifically include:
and combining the input characters with target keys respectively to obtain a plurality of input candidate characters, and determining the display sequence of the plurality of input candidate characters according to the probability of the plurality of target keys and/or the input scene.
The input character may be a character already input by the user in the input interface. Here, the magnitude of the target key probability is taken as an example, and it is assumed that the character that has been input is "ni", and the plurality of characters are "q", "w", "s", "a", respectively; then, the input characters are respectively combined with a plurality of characters to obtain a plurality of input candidate symbols, which may be "niq", "niw", "nis", "nia", and the display sequence of the plurality of input candidate symbols may specifically be the sequence displayed according to the size of the target keystroke probability, and the specific sequence may be: "w", "s", "a", "q". Here, the target key probability and the input scenario are taken as examples, and it is assumed that the probabilities calculated by "q", "w", "s" and "a" are: 0.1, 0.8, 0.3 and 0.2, if the input scene is an english input scene, the display sequence can be specifically as follows: "niw", "nis", "nia", "niq".
In an alternative embodiment, the input candidate character may be displayed according to different input interfaces, for example, in an english input interface, the input candidate character may be directly displayed, in a chinese input interface, the input candidate character may be directly displayed, and of course, candidate words matched with the candidate character may also be displayed. The input scenarios include, but are not limited to: the input interface is located in a scene, such as an English input interface, a Chinese input interface and a symbol input interface.
The following or above segment of characters are taken as an example, and if the input scene where the characters are located is a chinese input interface, a plurality of candidate words can be obtained by matching "niq", "niw", "nis", "nia" according to the historical input word bank, and the candidate words obtained by matching are assumed to be "you go", "you me", "you are", "year", respectively; then, the display sequence corresponding to the multiple candidate words may be determined according to the size of the target key probability, and the display sequence may specifically include: "you me", "you are", "year", "you go".
According to the technical scheme provided by the first embodiment of the application, after the single-hand operation type of the target object is determined, the candidate area of the input interface is determined according to the single-hand operation type, then the probability value of each character of the candidate area is calculated according to the inclination angle and the clicking position of the user, the display sequence of the input candidate character is arranged according to the probability value, and compared with the traditional technical scheme that the position of the character is required to be clicked accurately, the scheme provided by the first embodiment of the application allows the clicking position to have certain deviation, namely the scheme provided by the first embodiment of the application can determine the character which is possibly required by the user according to the inclination angle, the single-hand operation type and the clicking position when the clicking position is in a non-character position, and further arranges the display sequence of the input character according to the probability.
Example two
An embodiment of the present application provides a specific implementation manner of the one-handed operation type in the embodiment one, the technical scheme provided by the embodiment two is implemented by a terminal, and an operation method of the one-handed operation type provided by the embodiment is shown in fig. 2, and includes the following steps:
step S201, the terminal acquires a historical sliding track of a target object;
the number of the historical sliding tracks acquired by the terminal can be 1 or more. The method for acquiring the historical sliding track specifically includes: the touch display screen of the terminal detects an on touch event operated by a finger of a user. And acquiring the track coordinates of the finger operation points of the user by using a getX and getY method of a Motion Event object through a system re-interface on touch Event. Of course, in practical applications, other methods for acquiring the sliding track may also be adopted, and the present application does not limit the specific acquisition manner of the sliding track.
Step S202, the terminal samples at least three points from a historical sliding track, obtains at least three coordinates corresponding to the three points, and determines an axis coordinate according to the at least three coordinates;
the implementation method of step S202 may specifically include: and calculating the center coordinate of the sliding track according to the three coordinates, wherein the center coordinate is the axis coordinate.
An example of actual calculations is described below.
Referring to fig. 2a, fig. 2a is a kth historical sliding trajectory graph acquired by the method provided in step S201, and at least three points of random sampling are assumed to be; A. b, C, obtaining the coordinates of A, B, C can be: (A) x,k ,A y,k )、(B x,k ,B y,k )、(C x,k ,C y,k ) (ii) a The product of the difference obtained by subtracting the square of the coordinate value of the point A from the square of the coordinate value of the point B and the difference of the y-axis coordinate of the point C and the point B is multiplied; the result of dividing the product by 2 times of the first product difference is the axis coordinate Ox, and the first product difference is equal to the difference between the first product of the difference between the x-axis coordinates of the points B and A multiplied by the difference between the y-axis coordinates of the points C and B and the second product of the difference between the x-axis coordinates of the points C and B multiplied by the difference between the y-axis coordinates of the points B and A. The axis coordinate Oy is equal to the result of dividing the second product difference by the first product difference, and the second product difference may be: and the difference between a third product obtained by multiplying the difference between the x-axis coordinate difference of the point B and the point A by the difference between the square of the coordinate of the point C and the square of the coordinate of the point B and a fourth product obtained by multiplying the difference between the x-axis coordinate difference of the point C and the point B by the square of the coordinate of the point B and the square of the coordinate of the point A.
The axis coordinate (O) can be calculated according to the following formula x ,O y )。
Figure BDA0002212965770000061
Figure BDA0002212965770000062
Of course, in practical applications, in order to improve the accuracy of the axis coordinate, the axis coordinate may be determined by calculating a plurality of historical sliding tracks, and assuming that the plurality of historical sliding tracks are n sliding tracks, the axis coordinate may be n sliding track metersThe calculated average value of n axis coordinates, specifically the axis coordinate (O) x ,O y ) The calculation method of (c) is as follows:
Figure BDA0002212965770000071
Figure BDA0002212965770000072
step S203, the terminal determines the one-handed operation type according to the position relationship between the axis coordinate and the historical sliding track.
The implementation method of step S203 may specifically include:
if the axis is positioned on the right side of the historical sliding track, determining that the single-hand operation type is right-hand operation;
and if the axis is positioned on the left side of the historical sliding track, determining that the single-hand operation type is left-hand operation.
The method for determining the type of the one-handed operation may specifically include:
if the historical sliding trajectory is 1, it can be determined in the following manner.
Such as O x -B x,k More than or equal to 0, determining the type of the one-hand operation as the right-hand operation, and otherwise, O x -B x,k If the operation type is less than 0, the single-hand operation type is determined to be left-right operation.
If the historical sliding trajectory is 1, it can be determined in the following manner.
Such as
Figure BDA0002212965770000073
Determining the type of one-handed operation as right-handed operation, and vice versa>
Figure BDA0002212965770000074
And determining the type of the one-hand operation as a left-right operation.
Certainly, in practical application, the coordinates of other points may be used instead of the coordinates of the point B, the coordinates of the point B in this embodiment are the coordinates of the middle point, and the determination of the type of one-handed operation using the coordinates of the point B can be more accurate, and in practical application, the coordinates of the point a or the point C may also be used for determination, or the average value of the coordinates of A, B, C may also be used for determination, and this embodiment is not limited to the specific manner of the determination.
For the basis of the judgment of the single-hand operation type, a large number of historical sliding tracks show that for 2 types of single-hand operation, the first type is left-hand operation, the second type is right-hand operation, the axis coordinate of the target object cannot be in the input interface area based on the holding habit of the target object and the historical sliding tracks, the axis coordinate can be obtained by analyzing massive historical sliding data, if the target object is positioned in the left-hand operation, the position of the sliding track coordinate relative to the axis is determined to be on the right side of the axis, and if the sliding track coordinate relative to the axis is positioned on the left side of the axis, the right-hand operation can be determined. Based on such an analysis, it is possible to determine which type of one-handed operation belongs by the refinement of step S203 described above.
The second embodiment of the application provides a method for determining and implementing a single-hand operation type, and the method supports implementation of the first embodiment.
EXAMPLE III
A third embodiment of the present application provides a specific implementation manner of the target key probability in the first embodiment, the technical solution provided by the third embodiment of the present application is implemented by a terminal, and a calculation method of the target key probability provided by the present embodiment is shown in fig. 3, and includes the following steps:
s301, the terminal acquires a click position of a touch display screen and extracts a click coordinate of the click position;
the click position in step S301 may be determined by collecting touch information of the touch display screen, and the determination manner of the click position and the click coordinate is the same as that of the ordinary touch operation, which is not described herein again.
Step S302, the terminal acquires the axis coordinate of the single-hand operation type and the inclination angle of the terminal;
the tilt angle in step S302 may be obtained by a gravity sensor, which is not described herein again.
The above-mentioned obtaining manner of the axis coordinate may refer to the calculating manner of the axis coordinate in the second embodiment, and is not described herein again.
Step S303, the terminal constructs a first straight line of the axis and the click position, constructs a plurality of straight lines of a plurality of characters and the axis in the target character area, and acquires a plurality of deviation angles between the first straight line and the plurality of straight lines;
the construction manner of the first straight line in step S303 may specifically include: after the terminal determines the axis and the clicking position, the axis and the clicking position are connected by a straight line to obtain a first straight line.
The above-mentioned manner of constructing the plurality of characters and the plurality of straight lines of the axis is different from the type of manner of constructing the first straight line in that another point of the plurality of straight lines is different from the first straight line, the another point is a plurality of character positions, specifically, a center position of the plurality of characters, of course, other positions of the plurality of characters may also be adopted, the positions are not specific, but the positions of the plurality of characters need to be the same, that is, if the positions are taken as the center positions, the plurality of characters are taken as the center positions, and if the positions are taken as the edge positions, the plurality of characters are taken as the edge positions.
Referring to fig. 3a, fig. 3a is a schematic diagram of a first straight line and a plurality of straight lines, as shown in fig. 3a, the first straight line is a straight line from the axis to the click point, the plurality of straight lines is specifically 2, and the 2 straight lines are respectively a straight line between the symbol a and the axis and a straight line between the symbol W and the axis.
Step S304, the terminal acquires a plurality of deviation distances between the click position and the plurality of characters;
the implementation method of the step S304 may specifically include:
determining a plurality of center points of a plurality of characters, and acquiring a plurality of distances between the center points and the click position, wherein the distances are a plurality of deviation distances.
Referring to fig. 3a, in fig. 3a, taking the character "a" as an example, the center point of the character "a" is obtained, and the distance between the center point and the click point is the deviation distance s.
Step S305, the terminal calculates a plurality of target key probabilities corresponding to the plurality of characters according to the plurality of deviation distances, the plurality of deviation angles, and the inclination angle.
The implementation method of the step S305 may specifically include:
Figure BDA0002212965770000091
wherein P is A A probability value that may be point a; the phi may be a tilt angle (also referred to as a compensation angle); the θ may be a deviation angle; s is a deviation distance; alpha can be the weight of the deviation item, beta is the weight of the deviation angle, and alpha and beta are empirical values and can be obtained by training according to a large amount of experimental data.
The second embodiment of the present application provides a specific calculation method of the deviation probability, which supports the implementation of the first embodiment.
Example four
An embodiment of the present application provides a device for presenting input candidate characters, where the device is shown in fig. 4, and includes:
a determining unit 401, configured to determine a type of one-handed operation of the target object;
for a specific implementation manner of determining the type of the one-handed operation by the determining unit 401, reference may be made to the description of the second embodiment, which is not described herein again.
An obtaining unit 402, configured to obtain, when the symbol input interface is located, an inclination angle and a click position of a target object on the input interface;
a display unit 403, configured to determine a target character region from the input interface according to the single-handed operation type, calculate a plurality of target key probabilities in the target character region according to the tilt angle and the click position, and determine a display order of the input candidate symbol according to the plurality of target key probabilities.
The calculation method of the probability of multiple target keys in the presentation unit may refer to the description of the third embodiment, and is not described herein again.
According to the technical scheme provided by the fourth embodiment of the application, after the single-hand operation type of the target object is determined, the candidate area of the input interface is determined according to the single-hand operation type, then the probability value of each character of the candidate area is calculated according to the inclination angle and the clicking position of the user, the display sequence of the input candidate character is arranged according to the probability value, and compared with the traditional technical scheme that the position of the character is required to be clicked accurately, the scheme provided by the fourth embodiment of the application allows the clicking position to have certain deviation, namely the scheme provided by the fourth embodiment of the application can determine the character which is possibly required by the user according to the inclination angle, the single-hand operation type and the clicking position when the clicking position is in a non-character position, and further arranges the display sequence of the input character according to the probability.
In an alternative embodiment of the method according to the invention,
the display unit 403 is specifically configured to combine the input characters with multiple characters to obtain multiple input candidate symbols, and arrange a display sequence of the multiple input candidate symbols according to the target key probabilities.
In an alternative embodiment of the method according to the invention,
the displaying unit 403 is specifically configured to match the input scene or the historical input word library with the candidate characters to obtain a plurality of candidate words matched with the candidate characters, and determine a display sequence of the candidate words according to the target key probabilities and/or the input scene.
In an alternative embodiment of the method according to the invention,
the display unit 403 is specifically configured to construct a first straight line between the axis and the click position, construct multiple characters in the target character region and multiple straight lines between the axis, and obtain multiple deviation angles between the first straight line and the multiple straight lines;
acquiring a plurality of deviation distances between the click position and the plurality of characters;
and calculating to obtain a plurality of target key probabilities corresponding to the characters according to the deviation distances, the deviation angles and the inclination angle.
The determination method of the axis can be referred to the description of the second embodiment, and is not described herein again.
In an alternative embodiment of the method according to the invention,
the determining unit 401 is specifically configured to randomly sample at least three points from a historical sliding track, acquire at least three coordinates corresponding to the at least three points, determine an axis according to the at least three coordinates, and determine the single-hand operation type according to a position relationship between the axis and the historical sliding track.
A determining unit 401, configured to determine that the single-handed operation type is a right-handed operation if the axis is located on the right side of the historical sliding trajectory;
and if the axis is positioned at the left side of the historical sliding track, determining that the single-hand operation type is left-hand operation.
For a specific implementation manner of determining the type of the one-handed operation, reference may be made to the description of the second embodiment, which is not described herein again.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method for presenting input candidates, the method comprising the steps of:
determining the single-hand operation type of the target object;
when the target object is in the symbol input interface, acquiring an inclination angle and a click position of the target object in the input interface;
determining a target character area from the input interface according to the single-hand operation type, calculating a plurality of target key probabilities in the target character area according to the inclination angle and the click position, and determining a display sequence of input candidate symbols according to the plurality of target key probabilities;
the calculating the probabilities of the plurality of target keys in the target character region according to the inclination angle and the click position specifically includes:
constructing a first straight line of the axis and the click position, constructing a plurality of straight lines of a target key and the axis in the target character area, and acquiring a plurality of deviation angles between the first straight line and the plurality of straight lines;
acquiring a plurality of deviation distances between the click position and the target key;
calculating to obtain the target key probabilities according to the deviation distances, the deviation angles and the inclination angle; the method for determining the axis specifically comprises the following steps:
at least three points are randomly sampled from a historical sliding track, at least three coordinates corresponding to the at least three points are obtained, and the axis is determined according to the at least three coordinates.
2. The method of claim 1, wherein the determining the presentation order of the input candidates according to the target key probabilities specifically comprises:
and combining the input characters with characters corresponding to the target keys respectively to obtain a plurality of input candidate symbols, and arranging the display sequence of the plurality of input candidate symbols according to the probability of the plurality of target keys.
3. The method of claim 2, wherein the prioritizing the display of the input candidates according to the probability values comprises:
and matching the input scene or the historical input word bank with the candidate characters to obtain a plurality of candidate words matched with the candidate characters, and determining the display sequence of the candidate words according to the target key probabilities and/or the input scene.
4. The method of claim 1,
the one-handed operation type includes: left-handed operation or right-handed operation.
5. The method according to claim 4, wherein the determining the type of one-handed operation of the target object specifically comprises:
randomly sampling at least three points from a historical sliding track, acquiring at least three coordinates corresponding to the at least three points, determining an axis according to the at least three coordinates, and determining the single-hand operation type according to the position relationship between the axis and the historical sliding track.
6. The method according to claim 4, wherein the determining the type of the one-handed operation according to the position relationship between the axis and the historical sliding track specifically comprises:
if the axis is located on the right side of the historical sliding track, determining that the single-hand operation type is right-hand operation;
and if the axis is positioned at the left side of the historical sliding track, determining that the single-hand operation type is left-hand operation.
7. The method according to claim 1, wherein the determining a target character region from the input interface in accordance with the one-handed operation type specifically comprises:
and determining the range of the target character area according to the single-hand operation type and the inclination angle.
8. A presentation apparatus for input candidates, the apparatus comprising:
a determination unit configured to determine a one-handed operation type of the target object;
the acquisition unit is used for acquiring the inclination angle and the click position of the target object on the input interface when the symbol input interface is positioned;
the display unit is used for determining a target character area from the input interface according to the single-hand operation type, calculating a plurality of target key probabilities in the target character area according to the inclination angle and the click position, and determining a display sequence of the input candidate symbols according to the plurality of target key probabilities;
the calculating the probabilities of the plurality of target keys in the target character region according to the inclination angle and the click position specifically includes:
constructing a first straight line of the axis and the click position, constructing a plurality of straight lines of a target key and the axis in the target character area, and acquiring a plurality of deviation angles between the first straight line and the plurality of straight lines;
acquiring a plurality of deviation distances between the click position and the target key;
calculating to obtain the target key probabilities according to the deviation distances, the deviation angles and the inclination angle; the method for determining the axis specifically comprises the following steps:
at least three points are randomly sampled from a historical sliding track, at least three coordinates corresponding to the at least three points are obtained, and the axis is determined according to the at least three coordinates.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910904827.8A 2019-09-24 2019-09-24 Input candidate character display method and related device Active CN110673747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910904827.8A CN110673747B (en) 2019-09-24 2019-09-24 Input candidate character display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910904827.8A CN110673747B (en) 2019-09-24 2019-09-24 Input candidate character display method and related device

Publications (2)

Publication Number Publication Date
CN110673747A CN110673747A (en) 2020-01-10
CN110673747B true CN110673747B (en) 2023-04-18

Family

ID=69077477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910904827.8A Active CN110673747B (en) 2019-09-24 2019-09-24 Input candidate character display method and related device

Country Status (1)

Country Link
CN (1) CN110673747B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113311972B (en) * 2021-06-10 2023-06-09 维沃移动通信(杭州)有限公司 Input method and input device
CN114860088A (en) * 2022-05-31 2022-08-05 维沃移动通信(杭州)有限公司 Input method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202101A1 (en) * 2015-06-16 2016-12-22 北京奇虎科技有限公司 Method and device for displaying candidate item based on input method
CN106843737A (en) * 2017-02-13 2017-06-13 北京新美互通科技有限公司 Text entry method, device and terminal device
CN108829674A (en) * 2018-06-08 2018-11-16 Oppo(重庆)智能科技有限公司 Content error correction method and relevant apparatus
CN109918167A (en) * 2019-03-15 2019-06-21 Oppo广东移动通信有限公司 Laying method, device, terminal device, the computer readable storage medium of handle icon

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202101A1 (en) * 2015-06-16 2016-12-22 北京奇虎科技有限公司 Method and device for displaying candidate item based on input method
CN106843737A (en) * 2017-02-13 2017-06-13 北京新美互通科技有限公司 Text entry method, device and terminal device
CN108829674A (en) * 2018-06-08 2018-11-16 Oppo(重庆)智能科技有限公司 Content error correction method and relevant apparatus
CN109918167A (en) * 2019-03-15 2019-06-21 Oppo广东移动通信有限公司 Laying method, device, terminal device, the computer readable storage medium of handle icon

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
触屏手机输入法状态切换键的可用性研究;曾国芬等;《人类工效学》;20151220(第06期);全文 *

Also Published As

Publication number Publication date
CN110673747A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
EP3113114A1 (en) Image processing method and device
DE112013004585B4 (en) Incremental feature-based gesture keyboard decoding
US20170206002A1 (en) User-centric soft keyboard predictive technologies
CN100437739C (en) System and method for continuous stroke word-based text input
KR101825154B1 (en) Overlapped handwriting input method
US8135582B2 (en) Keyboard system and method for global disambiguation from classes with dictionary database from first and last letters
CN102281352B (en) Contact list displaying method and terminal
US8667414B2 (en) Gestural input at a virtual keyboard
CN109358766B (en) Progress display of handwriting input
US20210350122A1 (en) Stroke based control of handwriting input
CN110673747B (en) Input candidate character display method and related device
CN104123012A (en) Gesture keyboard input of non-dictionary character strings using substitute scoring
CN101996029A (en) Handwritten mathematical expression recognition and editing device and method thereof
US9395911B2 (en) Computer input using hand drawn symbols
CN103455262A (en) Pen-based interaction method and system based on mobile computing platform
US20120154298A1 (en) Method for Adjusting Touch Positions of Software Keyboard, Non-Transitory Computer Readable Storage Medium for Storing Thereof and Touch Screen Electrical Device Applying Thereof
TW201201113A (en) Handwriting recognition method and device
US9443493B2 (en) Graph display control apparatus, graph display control method and non-transitory storage medium having stored thereon graph display control program
EP3260955A1 (en) Slide input method and apparatus
EP2891968B1 (en) Soft keyboard with keypress markers
WO2020124442A1 (en) Pushing method and related product
CN105700704A (en) Method and device for inputting characters to mini-size screen
CN114860088A (en) Input method, device, equipment and storage medium
US20150089430A1 (en) Input method and device
KR20150031953A (en) Method for processing data and an electronic device thereof

Legal Events

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