The method of a kind of electronic equipment and automatic switchover input pattern thereofTechnical field
The present invention relates to information typing field, particularly the method for a kind of electronic equipment and automatic switchover input pattern thereof.
Background technology
Along with the swift and violent development of infotech, the acceleration of 3G industry is merged and the arrival in 3G mobile communication epoch, and portable terminal (such as mobile phone, panel computer) becomes people's indispensable means of communication of living day by day.Especially, the input method of portable terminal is one of the highest terminal software of terminal user's frequency of utilization, and the application software of most of portable terminal all needs to use the input method of portable terminal as the literal input tool.The existing input method system that is used for portable terminal is supported multiple input function, and the terminal user can utilize the input method system of portable terminal to carry out the editor of note, chats and writes p.m.entry etc.
New intelligent human-machine interaction is used and is maked rapid progress.Wherein, handwriting input and keyboard input have just obtained more and more users' approval as two kinds of common interactive modes.The handwriting input mode refers on touch-screen hand-written, and by the recognition system of inside the writing of importing is converted into ASCII character, and shows with the standard letter form.The dummy keyboard input mode is in terminal dummy keyboard to be set, and imports by the selection of style of writing.
In general, when Chinese character was imported, owing to meet the input demand of user's efficient natural more, the user often tended to finish the character input in hand-written mode.When English word was imported, perhaps when the user was not familiar with font and need imports with phonetic, the keyboard input then seemed more convenient.In order to respond user's request better, most smart machine all provides hand-written simultaneously and supplies user's selection with keyboard entry method on the market at present.Under this traditional mode, the user as when using different input pattern, repeat continuous manual setting input pattern in the input process of finishing a string literal.Cause the reduction of whole input efficiency on the one hand easily, owing to need artificial execution pattern to switch, user's the sense of continuity of writing also reduces greatly on the other hand.Therefore, input pattern can not automatically be switched according to user's intention in this system, uses inconvenience, and bigger limitation is arranged.
Summary of the invention
The embodiment of the invention provide a kind of electronic equipment with and the method for automatic switchover input pattern, utilize efficient intelligent automatic switchover input pattern, custom according to the user, realized multiple input pattern coordinate the input, increased whole input efficiency, and user's the sense of continuity of writing improves greatly also.
The embodiment of the invention provides a kind of method of the input pattern that automaticallyes switch on the one hand, is applied on the electronic equipment, and described electronic equipment comprises a touch display screen, may further comprise the steps:
According to the input field of the current cursor place page, determine corresponding first input type of described input field object;
Search input type and input pattern mapping table according to first input type, determine first input pattern corresponding with described first input type;
Show the corresponding operation and control interface of described first input pattern at described touch display screen;
Obtain character by described operation and control interface;
Described character is input to described input field.
Preferably, according to the input field of the current cursor place page, determine first input pattern corresponding with described first input type, specifically comprise:
When determining the input pattern corresponding with described first input type and be the combination of a plurality of input patterns, record the input pattern of each input character correspondence;
Character according to each input switches to corresponding input pattern.
Preferably, search input type and input pattern mapping table according to first input type, determine first input pattern corresponding with described first input type, specifically comprise:
Set in advance input type and input pattern mapping table;
Search the described mapping table that sets in advance according to first input type, determine first input pattern corresponding with described first input type;
At every turn to the operation of the input field of the place page, upgrade described mapping table according to the user;
According to the mapping table after upgrading, determine the input pattern corresponding with described first input type.
The embodiment of the invention also provides a kind of electronic equipment on the other hand, comprises a touch display screen, also comprises:
Determining unit is used for the input field according to the current cursor place page, determines corresponding first input type of described input field object;
Search the unit, be used for searching input type and input pattern mapping table according to first input type, determine first input pattern corresponding with described first input type;
Described touch display screen is used for showing the corresponding operation and control interface of described first input pattern;
Acquiring unit is used for obtaining character by described operation and control interface;
Display unit, the described character that is used for importing is shown to described input field.
Preferably, described determining unit specifically comprises:
Record sub module when determining the input pattern corresponding with described first input type and be the combination of a plurality of input patterns, records the input pattern of each input character correspondence;
Switching submodule switches to corresponding input pattern according to the character of each input.
Preferably, also comprise: default unit and updating block
Described default unit is used for setting in advance input type and input pattern mapping table;
The described unit of searching is also searched the described mapping table that sets in advance for described according to first input type, determines first input pattern corresponding with described first input type;
Described updating block is used for according to the user upgrading described mapping table at every turn to the operation of the input field of the place page;
Described determining unit also is used for determining the input pattern corresponding with described first input type according to the mapping table after upgrading.
The embodiment of the invention also provides a kind of method of the input pattern that automaticallyes switch on the other hand, is applied on the electronic equipment, and described electronic equipment comprises a touch display screen, may further comprise the steps:
Obtain the operation of the input character that the user carries out place page input field at every turn, determine the customary operation of corresponding described input field object;
According to the described customary operation of determining, upgrade setting in advance input type and input pattern mapping table;
Corresponding second input type of input field object according to the current cursor place page is searched described mapping table, determines second input pattern corresponding with described second input type;
Show the corresponding operation and control interface of described second input pattern at described touch display screen;
Obtain character by described operation and control interface;
Described character is input to described input field.
Preferably, the customary operation of corresponding described input field object is determined in described operation of obtaining the input character that the user carries out place page input field at every turn, specifically comprises:
Record is also preserved the user to the number of operations of the input pattern of dissimilar input field objects;
When counting described user when using the number of times of same input pattern to surpass setting threshold to dissimilar input field objects, determine the customary operation of corresponding described input field object.
Preferably, the customary operation of corresponding described input field object is determined in described operation of obtaining the input character that the user carries out place page input field at every turn, specifically comprises:
Supervisory user is to the operation duration of the input pattern of dissimilar input field objects in real time;
When the described user of monitoring uses the duration of same input pattern to surpass setting threshold to dissimilar input field objects, determine the customary operation of corresponding described input field object.
Preferably, the described customary operation of determining corresponding described input field object is specially:
According to setting cycle, according to counting described user to the input pattern use data of dissimilar input field object correspondences and the size of setting threshold, determine the customary operation of corresponding described input field object.
Preferably, the input pattern of corresponding all types of input field objects is set different threshold values and is generated described mapping table.
Preferably, when using a terminal at least two users, corresponding each user arranges a described input type and input pattern mapping table, and corresponding login mode is set;
According to described login mode, confirm login user information;
According to the different user information of confirming, the input pattern of corresponding all types of input field objects upgrades described mapping table.
The embodiment of the invention also provides a kind of electronic equipment on the other hand, comprises a touch display screen, also comprises:
Determining unit is used for obtaining the operation of the input character that the user carries out place page input field at every turn, determines the customary operation of corresponding described input field object;
Updating block is used for according to the described customary operation of determining, upgrades setting in advance input type and input pattern mapping table;
Search the unit, be used for searching described mapping table according to corresponding second input type of input field object of the current cursor place page, determine second input pattern corresponding with described second input type;
Described touch display screen is used for showing the corresponding operation and control interface of described second input pattern;
Acquiring unit is used for obtaining character by described operation and control interface;
Display unit is shown to described input field with the described character of importing.
Preferably, described determining unit specifically comprises:
Logging modle is used for record and preserves the user to the operation of the input pattern of dissimilar input field objects;
Statistical module is used for counting described user uses same input pattern to dissimilar input field objects number of times;
Judge module is used for judging and the described user's who counts number of operations and the size of setting threshold;
Determine submodule, when judging number of operations above setting threshold, determine that submodule is used to determine the customary operation of corresponding described input field object.
Preferably, described determining unit specifically comprises:
Monitoring module is used for real-time supervisory user to the operation duration of the input pattern of dissimilar input field objects;
Judge module is for the size of judgement with described monitor duration and setting threshold;
When judging number of operations above setting threshold, determine that submodule is used to determine the customary operation of corresponding described input field object.
Preferably, described determining unit, according to counting described user to the input pattern use data of dissimilar input field object correspondences and the size of setting threshold, is determined the customary operation of corresponding described input field object at concrete being used for according to setting cycle.
Preferably, described electronic equipment also comprises: unit, authentication unit and updating block are set;
The described unit that arranges is used for corresponding each user a described input type and input pattern mapping table is set, and corresponding login mode is set;
Described authentication unit is used for according to described login mode, confirms login user information;
Described updating block is used for according to the different user information of confirming, the input pattern of corresponding all types of input field objects upgrades described mapping table.
The technical scheme that the embodiment of the invention adopts compared with prior art has the following advantages:
In the embodiment of the invention, according to dissimilar application program input fields, need the content of input different, in system, pre-set the corresponding relation of requests for page input field and input pattern, when carrying out corresponding input, switch to the input pattern that sets in advance; Specifically import demand according to the application program input field, make input and concern corresponding tables.
Further, upgrade the mapping table of input pattern according to user's customary operation, in the process that the user uses, constantly recording user uses the data of input pattern under different scenes, and with the basis of these data as renewal input pattern corresponding relation, as: the user is when using mobile phone or panel computer create message or chat, get used to using handwriting input, so can note and chat interface under the input pattern correspondence be set to handwriting input, when user's create message or chat, automatically switch to handwriting input; And for example: the user by English input pattern, when the mailbox mail is imported, directly switches to English input pattern for the user when basic so when writing addresses of items of mail.
The embodiment of the invention adopts the user is monitored in real time, count the user and when the input field of the different requests for page of operation, adopt different input patterns, thereby determine the customary operation that the user uses the corresponding input pattern of different input fields, further upgrade according to the mapping table of setting Rulemaking, thereby the input pattern when automatically switching into customary operation according to the mapping table after upgrading for the user automatically, need not in user's input field afterwards to carry out the manual switchover input pattern, save time, simple to operate, reduce cost.
Description of drawings
Fig. 1 is the process flow diagram of the embodiment of the invention one method;
Fig. 2 is the process flow diagram of method in the specific embodiment of the invention two;
Fig. 3 utilizes the image synoptic diagram that camera of method processing obtains among the embodiment two;
Fig. 4 is the process flow diagram of measuring distance method in the specific embodiment of the invention three;
Fig. 5 utilizes the image synoptic diagram that two cameras of method processing obtain among the embodiment three;
Fig. 6 is the process flow diagram of measuring distance method in the specific embodiment of the invention four;
Fig. 7 utilizes the image synoptic diagram that two cameras of method processing obtain among the embodiment four;
Fig. 8 is the structural representation of embodiment of the invention image acquisition equipment.
Embodiment
Be described below in conjunction with embodiment and the accompanying drawing method to a kind of electronic equipment provided by the invention and automatic switchover input pattern thereof.
The embodiment of the invention provides a kind of method of the input pattern that automaticallyes switch on the one hand, and as shown in Figure 1, the process flow diagram for method in the present embodiment comprises:
Step 101: according to the input field of the current cursor place page, determine corresponding first input type of described input field object;
Step 102: search input type and input pattern mapping table according to first input type, determine first input pattern corresponding with described first input type;
Step 103: show the corresponding operation and control interface of described first input pattern at described touch display screen;
Step 104: obtain character by described operation and control interface;
Step 105: described character is input to described input field.
Concrete, in electronic equipment, set in advance input type and input pattern mapping table, as following table:
Concrete, when determining the input pattern corresponding with described first input type and be the combination of a plurality of input patterns, record the input pattern of each input character correspondence, switch to corresponding input pattern according to the character of each input.Input field with corresponding password is example, and the object that import (character) is not necessarily just digital or alphabetical, might be both combinations, as: dafaji12g will have the switching of input method several times in this group character string.In this case, in view of the situation, record the input pattern of each input character correspondence in the scheme provided by the invention, by the time the user during number of times input field like this, can carry out the operation of corresponding input method according to user's operation again.
According to the mapping table after upgrading, determine the input pattern corresponding with described first input type, show the corresponding operation and control interface of described first input pattern at described touch display screen, obtain character by described operation and control interface, described character is input to described input field.
As shown in Figure 2, the structural representation for the embodiment of the invention one electronic equipment comprises: atouch display screen 23 also comprises: determiningunit 21,search unit 22, acquiringunit 24,display unit 25; Wherein
Determiningunit 21 is used for the input field according to the current cursor place page, determines corresponding first input type of described input field object;
Search unit 22, be used for searching input type and input pattern mapping table according to first input type, determine first input pattern corresponding with described first input type;
Touch display screen 23 is used for showing the corresponding operation and control interface of described first input pattern;
Acquiringunit 24 is used for obtaining character by described operation and control interface;
Display unit 25, the described character that is used for importing is shown to described input field.
In the electronic equipment that the embodiment of the invention provides, also comprise:default unit 26 and updatingblock 27; Wherein,default unit 26 sets in advance input type and input pattern mapping table;Search unit 22, also search the described mapping table that sets in advance for described according to first input type, determine first input pattern corresponding with described first input type; Updatingblock 27 is used for according to the user upgrading described mapping table at every turn to the operation of the input field of the place page; Determiningunit 21 also is used for determining the input pattern corresponding with described first input type according to the mapping table after upgrading.
As shown in Figure 3, be the schematic flow sheet of the embodiment of the invention two automatic switchover input pattern methods, be applied on the electronic equipment that described electronic equipment comprises a touch display screen, comprising:
Step 301: obtain the operation of the input character that the user carries out place page input field at every turn, determine the customary operation of corresponding described input field object;
Step 302: according to the described customary operation of determining, upgrade setting in advance input type and input pattern mapping table;
Step 303: corresponding second input type of input field object according to the current cursor place page is searched described mapping table, determines second input pattern corresponding with described second input type;
Step 304: show the corresponding operation and control interface of described second input pattern at described touch display screen;
Step 305: obtain character by described operation and control interface;
Step 306: described character is input to described input field.
Concrete, obtain the operation of the input character that the user carries out place page input field at every turn, determine the customary operation of corresponding described input field object, can record same user's operating habit, and go out relation with setting threshold according to its user's habit statistical, shown in setting threshold according to the object type difference of different input fields, arrange also inequality.For example: when note is imported, user's use habit record setting threshold is 80%~90%, when the chat input field, setting threshold is set at 85%~95%, corresponding system comes out the operation statistics of record, and judges the size with setting threshold, while actually employed, surpass setting threshold, then this input pattern is defined as the customary operation pattern.As following table:
According to the mapping table that sets in advance, the user is at the different input windows of different scene application programs as can be seen, need the corresponding different of input, the type difference of input object as required, in system, pre-set above-mentioned corresponding relation, when importing, switch to corresponding input pattern.Further, can also upgrade described mapping table according to the user at every turn to the operation of the input field of the place page; As following table:
| Scene | User's use habit record | Corresponding input pattern |
| The note input | The user used handwriting input 90% above time | Handwriting input mode |
| The chat input | The user used the Chinese keyboard input 95% above time | The input in Chinese pattern |
| Write mail | The user used the QWERTY keyboard input 85% above time | English input pattern |
By last table as can be seen, the user regulates the mapping table of input pattern according to use habit.In the process that the user uses, constantly recording user uses the data of input pattern under different scenes, and with the basis of these data as adjustment input pattern corresponding relation.When using phone or pad create message or chat, get used to using handwriting input as the user, can become handwriting input with note and input pattern under the chat interface are corresponding so, automatically switch to handwriting input at user's create message or when chatting; Write English email when and for example the user is basic when writing mail, when the mailbox mail is imported, directly for the user switches to English input pattern, will tell about the method for two kinds of definite users' customary operation below so.
As shown in Figure 4, determine to may further comprise the steps the schematic flow sheet of method for the embodiment of the invention:
Step 401: record is also preserved the user to the number of operations of the input pattern of dissimilar input field objects;
Step 402: when counting described user when using the number of times of same input pattern to surpass setting threshold to dissimilar input field objects, determine the customary operation of corresponding described input field object.
As shown in Figure 5, determine to may further comprise the steps the schematic flow sheet of method for the embodiment of the invention:
Step 501: supervisory user is to the operation duration of the input pattern of dissimilar input field objects in real time;
Step 502: when the described user of monitoring uses the duration of same input pattern to surpass setting threshold to dissimilar input field objects, determine the customary operation of corresponding described input field object.
Concrete, according to setting cycle, according to counting described user to the input pattern use data of dissimilar input field object correspondences and the size of setting threshold, determine the customary operation of corresponding described input field object; And the input pattern of corresponding all types of input field objects is set different threshold values and is generated described mapping table.
In the ordinary course of things, an electronic equipment may have a plurality of users, for no user different use habits is arranged, and for example the someone likes the software dish, and the someone gets used to handwriting mode.Therefore, corresponding each user arranges a described input type and input pattern mapping table, and corresponding login mode is set; According to described login mode, confirm login user information; According to the different user information of confirming, the input pattern of corresponding all types of input field objects upgrades described mapping table.
For each user opens an account, when changing account be, at first through checking, by the back according to the user for input type and input pattern mapping table, carry out the switching of corresponding input.
Fig. 6 is the structural representation of a kind of electronic equipment in the specific embodiment of the invention two, and this electronic equipment comprises:
Determiningunit 61 is used for obtaining the operation of the input character that the user carries out place page input field at every turn, determines the customary operation of corresponding described input field object;
Updatingblock 62 is used for according to the described customary operation of determining, upgrades setting in advance input type and input pattern mapping table;
Search unit 63, be used for searching described mapping table according to corresponding second input type of input field object of the current cursor place page, determine second input pattern corresponding with described second input type;
Touch display screen 64 is used for showing the corresponding operation and control interface of described second input pattern;
Acquiringunit 65 is used for obtaining character by described operation and control interface;
Display unit 66 is shown to described input field with the described character of importing.
When using same electronic equipment for different user, need obtain the customary operation of corresponding different user, so electronic equipment needs also to determine that to be which user using, so this electronic equipment comprises also:unit 67,authentication unit 68 are set;
Unit 67 is set, is used for corresponding each user a described input type and input pattern mapping table are set, and corresponding login mode is set;
Authentication unit 68 is used for according to described login mode, confirms login user information;
Updatingblock 62 is used for according to the different user information of confirming, the input pattern of corresponding all types of input field objects upgrades described mapping table.
After the user is by checking, can get access to corresponding with it described input type and input pattern mapping table, operating habit according to this user switches corresponding input pattern on the one hand, on the other hand, can also the cycle described input type and input pattern mapping table be upgraded accordingly.This design of electronic devices has more hommization, makes the raising of whole user input efficiency, and the sense of continuity of writing also improves greatly.
As shown in Figure 7, be the structural representation of order unit really of electronic equipment in the embodiment of the invention two, comprise:
Logging modle 71 is used for record and preserves the user to the operation of the input pattern of dissimilar input field objects;
Statistical module 72 is used for counting described user uses same input pattern to dissimilar input field objects number of times;
Judge module 73 is used for judging and the described user's who counts number of operations and the size of setting threshold;
When judging number of operations above setting threshold, determine thatsubmodule 74 is used for determining the customary operation of corresponding described input field object.
As shown in Figure 8, be the another structural representation of order unit really of electronic equipment in the embodiment of the invention two, comprise:
Monitoring module 81 is used for real-time supervisory user to the operation duration of the input pattern of dissimilar input field objects;
Judge module 82 is for the size of judgement with described monitor duration and setting threshold;
When judging number of operations above setting threshold, determine thatsubmodule 83 is used for determining the customary operation of corresponding described input field object.
The present invention compared with prior art has the following advantages:
The embodiment of the invention adopts the user is monitored in real time, count the user and when the input field of the different requests for page of operation, adopt different input patterns, thereby determine the customary operation that the user uses the corresponding input pattern of different input fields, further upgrade according to the mapping table of setting Rulemaking, thereby the input pattern when automatically switching into customary operation according to the mapping table after upgrading for the user automatically, need not in user's input field afterwards to carry out the manual switchover input pattern, save time, simple to operate, reduce cost.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.