CN107479822B - Information input method and terminal - Google Patents

Information input method and terminal Download PDF

Info

Publication number
CN107479822B
CN107479822B CN201710805508.2A CN201710805508A CN107479822B CN 107479822 B CN107479822 B CN 107479822B CN 201710805508 A CN201710805508 A CN 201710805508A CN 107479822 B CN107479822 B CN 107479822B
Authority
CN
China
Prior art keywords
keyboard
virtual keyboard
terminal
target
character type
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
CN201710805508.2A
Other languages
Chinese (zh)
Other versions
CN107479822A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710805508.2A priority Critical patent/CN107479822B/en
Publication of CN107479822A publication Critical patent/CN107479822A/en
Application granted granted Critical
Publication of CN107479822B publication Critical patent/CN107479822B/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/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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The invention relates to the technical field of communication, and provides an information input method and a terminal, which aim to solve the problem that the existing terminal has a complicated information input mode. The information input method comprises the following steps: detecting target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.

Description

Information input method and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information input method and a terminal.
Background
At present, a terminal of a touch screen usually inputs information through a virtual keyboard, and the touch screen has the advantages of convenience in operation, high efficiency and the like. The virtual keyboard content of the terminal mainly comprises types of a numeric keyboard, an English keyboard, a pinyin keyboard, a symbolic keyboard and the like, and a user can switch the keyboard into different keyboard types according to the information input requirement. However, when a user needs to input information including a plurality of characters, for example, a number, a chinese character, a symbol, and the like, the user needs to switch between a plurality of keyboards to input information.
Therefore, the existing terminal has a complicated information input mode.
Disclosure of Invention
The embodiment of the invention provides an information input method and a terminal, aiming at solving the problem that the existing terminal has a complicated information input mode.
In a first aspect, an embodiment of the present invention provides an information input method, including:
detecting selected target content in a display interface of the terminal;
identifying a target character type to which the target content belongs;
generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal;
receiving information input through the virtual keyboard.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the detection module is used for detecting the selected target content in the display interface of the terminal;
the identification module is used for identifying the target character type to which the target content detected by the detection module belongs;
the generating module is used for generating a virtual keyboard containing the characters of the target character types identified by the identifying module and displaying the virtual keyboard on a screen of the terminal;
and the receiving module is used for receiving the information input by the virtual keyboard generated by the generating module.
In a third aspect, an embodiment of the present invention further provides a terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the information input method as described above when executing the computer program.
In the embodiment of the invention, target content in a display interface of the terminal is detected; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of an information input method provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of a virtual keyboard displayed on a terminal according to an embodiment of the present invention;
FIG. 3 is a second flowchart of an information input method according to an embodiment of the present invention;
fig. 4 is one of the structural diagrams of a terminal provided in the embodiment of the present invention;
fig. 5 is a structural diagram of a detection module in the terminal according to the embodiment of the present invention;
fig. 6 is a second structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a third structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a fourth structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a fifth structural diagram of a terminal according to an embodiment of the present invention;
fig. 10 is a sixth structural diagram of a terminal according to an embodiment 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 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.
Referring to fig. 1, fig. 1 is a flowchart of an information input method provided by an embodiment of the present invention, and the method is applied to a terminal. As shown in fig. 1, the information input method includes the steps of:
step 101, detecting target content in a display interface of the terminal.
The display interface of the terminal can be understood as an interface for displaying information on a screen of the terminal, and the terminal can detect target content in the display interface. The target content may comprise characters, wherein characters may be understood as letters, numbers, words, symbols, etc. used in a computer. E.g., 98,%, a, etc.
Optionally, before the step of detecting the target content in the display interface of the terminal, the method further includes: acquiring a target application program corresponding to the content to be input of the virtual keyboard; and acquiring a first character type in the database of the target application program, wherein characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters contained in the database of the target application program is greater than a preset number.
In this embodiment, the content to be input may be understood as content input through the virtual keyboard, and in a specific implementation, a target application program corresponding to the content to be input may be determined by a position of information to be input indicated by an input cursor. The database of the target application program stores characters input through the virtual keyboard, and the number of the characters stored in the database can represent the number of the characters input through the virtual keyboard. When a certain character type contains more characters, it can be stated that more characters of the character type are input in the target application program.
The terminal can determine the character type to which each character stored in the database belongs, and acquire the number of characters included in each character type. For example, the number of numerals entered through the virtual keyboard is acquired. When the number of the characters included in the first character type is larger than the preset number, the number of the characters of the first character type input by the user through the virtual keyboard is large, and the first character type can be obtained.
Therefore, the character type of the character with a large input number can be obtained according to the use record of the user on the virtual keyboard. Therefore, after the character type displayed in the target application program of the current content to be input is determined, the first character type is further determined, the requirement of a user can be further determined, the switching times of the user on the virtual keyboard are reduced, and the user operation is more convenient.
It is noted that this step may also be performed after step 102 and before step 103.
And 102, identifying the target character type of the target content.
In this step, according to the detected target content, a character type to which the target content belongs, i.e., a target character type, may be determined. For example, the character type to which the character "a" belongs is a letter. In particular implementation, the terminal may also identify a specific type among character types to which the target content belongs. For example, the target contents "+" and "-" belong to mathematical operation symbols in the symbol character type.
Step 103, generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal.
In this step, a virtual keyboard is generated that contains characters of the target character type and characters of the first character type.
The virtual keyboard may be a keyboard for inputting information displayed on a screen of the terminal, and information may be input by operating keys in the virtual keyboard. And displaying the characters of the target character type and the characters of the character type corresponding to the characters with a large input number in the virtual keyboard, so that a user can input information through the virtual keyboard. The shape and size of the virtual keyboard may be adapted according to the content within the virtual keyboard.
In addition, when the target character type and the first character type are the same character type, the terminal may display characters of either character type within the virtual keyboard. For example, when the target character type and the first character type are both numbers, the numbers may be displayed within the virtual keyboard. When the target character type and the first character type are different types of character types, the target character type and the first character type may be simultaneously displayed within the virtual keyboard. For example, the target character type is a number and the first character type is a letter, and the number and the letter can be displayed simultaneously in the virtual keyboard.
Therefore, the content displayed by the keyboard is determined based on the use record of the virtual keyboard by the user and the content displayed in the application program inputting the content, so that the switching times of the virtual keyboard by the user can be reduced, and the operation of the user is more convenient.
For example, as shown in fig. 2, fig. 2 is a schematic view of a virtual keyboard. The virtual keyboard contains character types such as numbers and symbols. The user may enter information contained within the keyboard via the virtual keyboard. Therefore, a user does not need to input information after switching the keyboard, and the operation is convenient and fast.
And 104, receiving the information input through the virtual keyboard.
In this step, the user can operate the virtual keyboard to input information, and the terminal can receive the input information.
Optionally, the virtual keyboard includes a first keyboard and a second keyboard, where a character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched; after the step of receiving information input through the virtual keyboard, the method further comprises: acquiring a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard; acquiring the total number of the first key pressing times and the second key pressing times; calculating a first ratio of the first key pressing times to the total number of the keys, or calculating a second ratio of the second key pressing times to the total number of the keys; and if the first ratio is smaller than a first preset value or the second ratio is larger than a second preset value, adding the content in the second keyboard into the first keyboard.
In this embodiment, as shown in fig. 2, the virtual keyboard may include an information input area 21 and a switching area 22 for switching display contents of the keyboard, and after the switching area is operated, the information input area may be controlled to display different information. The terminal may obtain the first key pressing times of the first keyboard, and if the ratio of the first key pressing times to the total key pressing times is smaller than a first preset value, for example, 95%, or the ratio of the second key pressing times to the total key pressing times is greater than a second preset value, for example, 5%, it may be stated that after the user switches the virtual keyboard, the information input through the switched keyboard is more, and the usage rate of the virtual keyboard generated by the terminal is lower. The terminal can add the content with more information input in the switched keyboard into the first keyboard, and add the information input through the virtual keyboard into the database, so that the data in the database can be continuously optimized. For example, as shown in fig. 2, if the terminal switches the content displayed on the keyboard to english and then inputs a large number of english alphabets, the terminal may display the english alphabets on the virtual keyboard. Therefore, the terminal can acquire the record of the information input by the user through the virtual keyboard and display the content in the virtual keyboard according to the record. The user can input information according to the displayed virtual keyboard without switching operation, so that the convenience of operation can be improved, and the input efficiency is improved.
In this embodiment of the present invention, the terminal may be: computers, Mobile phones, Tablet personal computers (Tablet personal computers), Laptop computers (Laptop computers), Personal Digital Assistants (PDAs), Internet devices (MIDs), Wearable devices (Wearable devices), and the like.
The information input method of the embodiment of the invention detects the target content in the display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.
Referring to fig. 3, the main difference between this embodiment and the above-mentioned embodiment is a specific description of a step of detecting target content in a display interface of the terminal. Fig. 3 is a flowchart of an information input method according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301, detecting a target position of a cursor in a display interface of the terminal.
The display interface of the terminal may be understood as an interface for displaying information on a screen of the terminal. The cursor may be an icon for indicating a position of input information, and the target position may be an arbitrary position within the display interface. For example, the terminal opens a certain office application, and when the display interface of the terminal contains form information, the position of the cursor may be in the form; when an information input box is included in the display interface, the position of the cursor may be within the information input box; when a string of characters is selected by the user, the position of the selected string of characters is recorded as a target position.
Step 302, obtaining characters in a preset area where the target position is located, and taking the characters as target content.
The preset region where the target position is located may be a preset region including the target position, the terminal may obtain characters in the preset region, and the target characters may include one or at least two character types. Wherein characters are understood to be letters, numbers, words, symbols, etc. used in computers, such as 98,%, a, etc. For example, the terminal opens a certain office application program, and when the display interface of the terminal contains form information, the position of the cursor can be a certain grid in the form, and then the characters of the grid are used as target content; when the information input box is contained in the display interface and the position of the cursor is in the information input box, the content in the information input box can be used as target content; when a string of characters is selected by the user, the selected string of characters may be targeted content.
And step 303, identifying the type of the target character to which the target character belongs.
In this step, according to the detected target character, the character type to which the target character belongs, i.e., the target character type, may be determined. For example, the character "a" belongs to a letter in the character type. In particular implementation, the terminal may also identify a particular type of character type to which the character belongs. For example, the characters "+" and "-" belong to mathematical operation symbols in the symbol character type.
And 304, generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal.
The virtual keyboard may be a keyboard for inputting information displayed on a screen of the terminal, and information may be input by operating keys in the virtual keyboard. The characters of the target character type are displayed in the virtual keyboard, and a user can input information through the virtual keyboard. The shape and size of the virtual keyboard may be adapted according to the content within the virtual keyboard. For example, if the target character type is a symbol, the symbol is displayed in the popped up virtual keyboard. The situation that the layout and the content of the default popped-up virtual keyboard are in a fixed style, and the switching is needed by a user is avoided.
For example, as shown in fig. 2, fig. 2 is a schematic view of a virtual keyboard. The virtual keyboard contains character types such as numbers and symbols. The user may enter information contained within the keyboard via the virtual keyboard. Therefore, a user does not need to input information after switching the keyboard, and the operation is convenient and fast.
And 305, receiving information input through the virtual keyboard.
In this step, the user can operate the virtual keyboard to input information, and the terminal can receive the input information.
Optionally, after the step of receiving the information input through the virtual keyboard, the method further includes: acquiring an application program corresponding to the content to be input of the virtual keyboard; acquiring the number of characters contained in each character type input through the virtual keyboard; and storing the number of the characters contained in each character type into a database of the application program.
In this embodiment, when inputting information through the virtual keyboard, the terminal may determine the position of the content to be input through the position of the cursor, so that the application program in which the content to be input is located may be determined.
When information is input through the virtual keyboard, the terminal can acquire the character type corresponding to the input character and the number of characters contained in each character type. The terminal may store each character type and the number of characters included in each character type to a database of the application program. In addition, the terminal can also record the precedence relationship of the input characters, and when the input times of the characters according to one precedence relationship reach the preset times, the precedence relationship among the characters can be established, so that the characters with the precedence relationship can be displayed in the virtual keyboard according to the precedence sequence.
Thus, when information is input in the application program through the virtual keyboard for multiple times, the character type corresponding to the character with a large input number can be determined according to the data recorded in the database. The terminal can display the characters of the character type corresponding to the characters with more input characters in the virtual keyboard, and a user inputs information through the virtual keyboard, so that the operation is convenient and fast, and the information input efficiency can be improved.
Referring to fig. 4, fig. 4 is a structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 4, the terminal 400 includes: the device comprises a detection module 401, an identification module 402, a generation module 403 and a receiving module 404, wherein the detection module 401 is connected with the identification module 402, the identification module 402 is connected with the generation module 403, and the generation module 403 is connected with the receiving module 404.
The detection module 401 is configured to detect target content in a display interface of the terminal; a recognition module 402, configured to recognize a target character type to which the target content detected by the detection module 401 belongs; a generating module 403, configured to generate a virtual keyboard including the characters of the target character type identified by the identifying module 402, and display the virtual keyboard on a screen of the terminal; a receiving module 404, configured to receive information input by the virtual keyboard generated by the generating module 403.
Optionally, as shown in fig. 5, the detection module 401 includes: the detection submodule 4011 is configured to detect a target position of a cursor in a display interface of the terminal; the obtaining sub-module 4012 is configured to obtain characters in a preset area where the target position detected by the detecting sub-module 4011 is located, and use the characters as target content.
Optionally, as shown in fig. 6, the terminal 400 further includes: a first obtaining module 405, configured to obtain an application program corresponding to content to be input of the virtual keyboard; a second obtaining module 406, configured to obtain the number of characters included in each character type input through the virtual keyboard; a storage module 407, configured to store the number of characters included in each character type acquired by the second acquisition module 406 in the database of the application program acquired by the first acquisition module 405.
Optionally, as shown in fig. 7, the terminal 400 further includes: a third obtaining module 408, configured to obtain a target application program corresponding to the content to be input by the virtual keyboard; a fourth obtaining module 409, configured to obtain a first character type from the database of the target application obtained by the third obtaining module 408, where characters input through a virtual keyboard are stored in the database of the target application, and the first character type is a character type in which the number of characters included in the database of the target application is greater than a preset number; the generating module 403 is specifically configured to generate a virtual keyboard including the character of the target character type and the character of the first character type.
Optionally, as shown in fig. 8, the virtual keyboard includes a first keyboard and a second keyboard, where a character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched; the terminal 400 further includes: a fifth obtaining module 410, configured to obtain a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard; a sixth obtaining module 411, configured to obtain a total number of the first key pressing times and the second key pressing times obtained by the fifth obtaining module 410; a calculating module 412, configured to calculate a first ratio of the first key frequency to the total number of keys acquired by the sixth acquiring module 411, or calculate a second ratio of the second key frequency to the total number of keys acquired by the sixth acquiring module 411; an adding module 413, configured to add the content in the second keyboard to the first keyboard if the first ratio calculated by the calculating module 412 is smaller than a first preset value or the second ratio calculated by the calculating module 412 is greater than a second preset value.
The terminal 400 can implement each process implemented by the terminal in the method embodiments of fig. 1 and fig. 3, and is not described herein again to avoid repetition.
The terminal 400 of the embodiment of the present invention detects target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.
Referring to fig. 9, fig. 9 is a structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 9, a terminal 900 includes: at least one processor 901, memory 902, at least one network interface 904, and a user interface 903. The various components in terminal 900 are coupled together by a bus system 905. It is understood that the bus system 905 is used to enable communications among the components. The bus system 905 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 9 as bus system 905.
The user interface 903 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It is to be understood that the memory 902 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous D RAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr Data RateSD RAM, ddr SDRAM), Enhanced Synchronous SD RAM (ESDRAM), Synchronous link Dynamic random access memory (Synch link D RAM, SLDRAM), and Direct memory bus random access memory (DRRAM). The memory 902 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 902 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 9021 and application programs 9022.
The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 9022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in application 9022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 902, specifically, a program or an instruction stored in the application 9022, the processor 901 is configured to: detecting target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard.
The method disclosed in the above embodiments of the present invention may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 901. The Processor 901 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the computer program when executed by the processor 901 may further implement the following steps: detecting a target position of a cursor in a display interface of the terminal; and acquiring characters in a preset area where the target position is located, and taking the characters as target content.
Optionally, the computer program when executed by the processor 901 may further implement the following steps: acquiring an application program corresponding to the content to be input of the virtual keyboard; acquiring the number of characters contained in each character type input through the virtual keyboard; and storing the number of the characters contained in each character type into a database of the application program.
Optionally, the computer program when executed by the processor 901 may further implement the following steps: acquiring a target application program corresponding to the content to be input of the virtual keyboard; acquiring a first character type in a database of the target application program, wherein characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters contained in the database of the target application program is greater than a preset number; generating a virtual keyboard containing characters of the target character type and characters of the first character type.
Optionally, the virtual keyboard includes a first keyboard and a second keyboard, where a character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched; the computer program, when executed by the processor 901, may further implement the steps of: acquiring a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard; acquiring the total number of the first key pressing times and the second key pressing times; calculating a first ratio of the first key pressing times to the total number of the keys, or calculating a second ratio of the second key pressing times to the total number of the keys; and if the first ratio is smaller than a first preset value or the second ratio is larger than a second preset value, adding the content in the second keyboard into the first keyboard.
The terminal 900 can implement the processes implemented by the terminal in the foregoing embodiments, and in order to avoid repetition, the descriptions are omitted here.
The terminal 900 of the embodiment of the present invention detects the target content in the display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.
Referring to fig. 10, fig. 10 is a block diagram of a terminal according to an embodiment of the present invention. Specifically, the terminal 1000 in fig. 10 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
As shown in fig. 10, terminal 1000 can include a Radio Frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a processor 1050, an audio circuit 1060, a communication module 1070, and a power supply 1080.
The input unit 1030 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the terminal 1000. Specifically, in the embodiment of the present invention, the input unit 1030 may include a touch panel 1031. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations of the user on the touch panel 1031 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 1050, and can receive and execute commands from the processor 1050. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may also include other input devices 1032, and the other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
Among other things, display unit 1040 can be used to display information input by a user or information provided to a user, as well as various menu interfaces of terminal 1000. The display unit 1040 may include a display panel 1041, and optionally, the display panel 1041 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 1031 may cover the display panel 1041 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 1050 to determine the type of the touch event, and then the processor 1050 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like. The touch screen is a flexible screen, and the two surfaces of the flexible screen are both pasted with the organic transparent conductive films of the carbon nanotubes.
Wherein the processor 1050 is a control center of the terminal 1000, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 1000 and processes data by running or executing software programs and/or modules stored in the first memory 1021 and calling data stored in the second memory 1022, thereby performing overall monitoring of the terminal 1000. Optionally, the processor 1050 may include one or more processing units.
In the embodiment of the present invention, the processor 1050 is configured to, by calling a software program and/or a module stored in the first memory 1021 and/or data stored in the second memory 1022: detecting target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard.
Optionally, the computer program when executed by the processor 1050 may also implement the steps of: detecting a target position of a cursor in a display interface of the terminal; and acquiring characters in a preset area where the target position is located, and taking the characters as target content.
Optionally, the computer program when executed by the processor 1050 may also implement the steps of: acquiring an application program corresponding to the content to be input of the virtual keyboard; acquiring the number of characters contained in each character type input through the virtual keyboard; and storing the number of the characters contained in each character type into a database of the application program.
Optionally, the computer program when executed by the processor 1050 may also implement the steps of: acquiring a target application program corresponding to the content to be input of the virtual keyboard; acquiring a first character type in a database of the target application program, wherein characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters contained in the database of the target application program is greater than a preset number; generating a virtual keyboard containing characters of the target character type and characters of the first character type.
Optionally, the virtual keyboard includes a first keyboard and a second keyboard, where a character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched; the computer program when executed by the processor 1050 may also implement the steps of: acquiring a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard; acquiring the total number of the first key pressing times and the second key pressing times; calculating a first ratio of the first key pressing times to the total number of the keys, or calculating a second ratio of the second key pressing times to the total number of the keys; and if the first ratio is smaller than a first preset value or the second ratio is larger than a second preset value, adding the content in the second keyboard into the first keyboard.
Terminal 1000 can implement each process implemented by the terminal in the foregoing embodiments, and details are not described here to avoid repetition.
The terminal 1000 of the embodiment of the present invention detects a target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard. Because the virtual keyboard displayed by the terminal comprises the character types in the display interface, a user can directly input information through the displayed virtual keyboard without switching the information displayed in the virtual keyboard. Thus, the information input mode is simple, and the efficiency of inputting information can be improved.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program (instructions), which when executed by a processor, implement the steps of: detecting target content in a display interface of the terminal; identifying a target character type to which the target content belongs; generating a virtual keyboard containing the characters of the target character type, and displaying the virtual keyboard on a screen of the terminal; receiving information input through the virtual keyboard.
Optionally, the program (instructions) when executed by the processor implement the steps of: detecting a target position of a cursor in a display interface of the terminal; and acquiring characters in a preset area where the target position is located, and taking the characters as target content.
Optionally, the program (instructions) when executed by the processor implement the steps of: acquiring an application program corresponding to the content to be input of the virtual keyboard; acquiring the number of characters contained in each character type input through the virtual keyboard; and storing the number of the characters contained in each character type into a database of the application program.
Optionally, the program (instructions) when executed by the processor implement the steps of: acquiring a target application program corresponding to the content to be input of the virtual keyboard; acquiring a first character type in a database of the target application program, wherein characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters contained in the database of the target application program is greater than a preset number; generating a virtual keyboard containing characters of the target character type and characters of the first character type.
Optionally, the virtual keyboard includes a first keyboard and a second keyboard, where a character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched; the program (instructions), when executed by a processor, implement the steps of: acquiring a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard; acquiring the total number of the first key pressing times and the second key pressing times; calculating a first ratio of the first key pressing times to the total number of the keys, or calculating a second ratio of the second key pressing times to the total number of the keys; and if the first ratio is smaller than a first preset value or the second ratio is larger than a second preset value, adding the content in the second keyboard into the first keyboard.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, 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 through some interfaces, devices or units, and may be in an electrical, mechanical 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 of the present invention.
In addition, functional units in the embodiments of the present invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. An information input method is applied to a terminal, and is characterized by comprising the following steps:
acquiring a target application program corresponding to the content to be input of the virtual keyboard;
acquiring a first character type in a database of the target application program, wherein characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters contained in the database of the target application program is greater than a preset number;
detecting target content in a display interface of the terminal;
identifying a target character type to which the target content belongs;
generating a virtual keyboard containing the characters of the target character type and the characters of the first character type, and displaying the virtual keyboard on a screen of the terminal;
receiving information input through the virtual keyboard.
2. The information input method according to claim 1, wherein the step of detecting the target content within the display interface of the terminal includes:
detecting a target position of a cursor in a display interface of the terminal;
and acquiring characters in a preset area where the target position is located, and taking the characters as target content.
3. The information input method of claim 2, wherein after the step of receiving information input through the virtual keyboard, the method further comprises:
acquiring an application program corresponding to the content to be input of the virtual keyboard;
acquiring the number of characters contained in each character type input through the virtual keyboard;
and storing the number of the characters contained in each character type into a database of the application program.
4. The information input method according to claim 1, wherein the virtual keyboard includes a first keyboard and a second keyboard, wherein the character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after switching operation is performed on the first keyboard;
after the step of receiving information input through the virtual keyboard, the method further comprises:
acquiring a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard;
acquiring the total number of the first key pressing times and the second key pressing times;
calculating a first ratio of the first key pressing times to the total number of the keys, or calculating a second ratio of the second key pressing times to the total number of the keys;
and if the first ratio is smaller than a first preset value or the second ratio is larger than a second preset value, adding the content in the second keyboard into the first keyboard.
5. A terminal, comprising:
the third acquisition module is used for acquiring a target application program corresponding to the content to be input of the virtual keyboard;
a fourth obtaining module, configured to obtain a first character type from the database of the target application program obtained by the third obtaining module, where characters input through a virtual keyboard are stored in the database of the target application program, and the first character type is a character type in which the number of characters included in the database of the target application program is greater than a preset number;
the detection module is used for detecting target content in a display interface of the terminal;
the identification module is used for identifying the target character type to which the target content detected by the detection module belongs;
a generating module, configured to generate a virtual keyboard including the characters of the target character type and the characters of the first character type, which are identified by the identifying module, and display the virtual keyboard on a screen of the terminal;
and the receiving module is used for receiving the information input by the virtual keyboard generated by the generating module.
6. The terminal of claim 5, wherein the detection module comprises:
the detection submodule is used for detecting the target position of a cursor in a display interface of the terminal;
and the acquisition submodule is used for acquiring the characters in the preset area where the target position detected by the detection submodule is located, and taking the characters as target content.
7. The terminal of claim 6, further comprising:
the first acquisition module is used for acquiring an application program corresponding to the content to be input of the virtual keyboard;
the second acquisition module is used for acquiring the number of characters contained in each character type input through the virtual keyboard;
and the storage module is used for storing the number of the characters contained in each character type acquired by the second acquisition module to the database of the application program acquired by the first acquisition module.
8. The terminal according to claim 5, wherein the virtual keyboard comprises a first keyboard and a second keyboard, wherein the character corresponding to the target character type is included in the first keyboard, and the second keyboard is a virtual keyboard displayed after the first keyboard is switched;
the terminal further comprises:
a fifth obtaining module, configured to obtain a first key pressing frequency of the first keyboard and a second key pressing frequency of the second keyboard;
a sixth obtaining module, configured to obtain a total number of the keys of the first key pressing times and the second key pressing times obtained by the fifth obtaining module;
a calculating module, configured to calculate a first ratio of the first key pressing frequency to the total number of keys acquired by the sixth acquiring module, or calculate a second ratio of the second key pressing frequency to the total number of keys acquired by the sixth acquiring module;
an adding module, configured to add the content in the second keyboard to the first keyboard if the first ratio calculated by the calculating module is smaller than a first preset value or the second ratio calculated by the calculating module is greater than a second preset value.
CN201710805508.2A 2017-09-08 2017-09-08 Information input method and terminal Active CN107479822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710805508.2A CN107479822B (en) 2017-09-08 2017-09-08 Information input method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710805508.2A CN107479822B (en) 2017-09-08 2017-09-08 Information input method and terminal

Publications (2)

Publication Number Publication Date
CN107479822A CN107479822A (en) 2017-12-15
CN107479822B true CN107479822B (en) 2020-05-01

Family

ID=60584690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710805508.2A Active CN107479822B (en) 2017-09-08 2017-09-08 Information input method and terminal

Country Status (1)

Country Link
CN (1) CN107479822B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3783462B1 (en) * 2018-05-10 2022-12-07 Honor Device Co., Ltd. Method for displaying virtual keyboard of input method, and terminal
CN111104195A (en) * 2019-12-05 2020-05-05 东软集团股份有限公司 Control method and device for multi-form page, readable storage medium and electronic equipment
CN112035901B (en) * 2020-09-03 2023-09-12 北京元心科技有限公司 Information input method, device, electronic equipment and medium
CN112650438A (en) * 2020-12-31 2021-04-13 中国农业银行股份有限公司 Terminal interaction method and related device
CN114253454B (en) * 2022-01-27 2024-03-19 华中师范大学 Dynamic keyboard generation method and system based on symbol mining

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236514A (en) * 2010-05-07 2011-11-09 英业达股份有限公司 Electronic device and virtual keyboard switching method thereof
CN103246437A (en) * 2012-02-03 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Approach for switching input methods and terminal
CN104216645A (en) * 2013-05-29 2014-12-17 腾讯科技(深圳)有限公司 Input method and device on touch screen terminal and touch screen terminal
EP2584428A3 (en) * 2011-10-21 2016-01-06 Samsung Electronics Co., Ltd Portable terminal and method of sharing a component thereof
CN106293124A (en) * 2016-08-05 2017-01-04 努比亚技术有限公司 Input method switching device, terminal and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9983785B2 (en) * 2011-07-28 2018-05-29 Hewlett-Packard Development Company, L.P. Input mode of a device
US20150089429A1 (en) * 2012-10-15 2015-03-26 Yoram Ghassabian Very Thin Virtual Keyboards and Keyboard Locators

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236514A (en) * 2010-05-07 2011-11-09 英业达股份有限公司 Electronic device and virtual keyboard switching method thereof
EP2584428A3 (en) * 2011-10-21 2016-01-06 Samsung Electronics Co., Ltd Portable terminal and method of sharing a component thereof
CN103246437A (en) * 2012-02-03 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Approach for switching input methods and terminal
CN104216645A (en) * 2013-05-29 2014-12-17 腾讯科技(深圳)有限公司 Input method and device on touch screen terminal and touch screen terminal
CN106293124A (en) * 2016-08-05 2017-01-04 努比亚技术有限公司 Input method switching device, terminal and method

Also Published As

Publication number Publication date
CN107479822A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107479822B (en) Information input method and terminal
TWI683256B (en) Two-dimensional code recognition method, equipment and mobile terminal
US9146672B2 (en) Multidirectional swipe key for virtual keyboard
US9035883B2 (en) Systems and methods for modifying virtual keyboards on a user interface
US20140306897A1 (en) Virtual keyboard swipe gestures for cursor movement
US20140306898A1 (en) Key swipe gestures for touch sensitive ui virtual keyboard
CN105144068B (en) Application program display method and terminal
US20090251422A1 (en) Method and system for enhancing interaction of a virtual keyboard provided through a small touch screen
US20140152585A1 (en) Scroll jump interface for touchscreen input/output device
CN107193438B (en) Method for managing desktop icons and mobile terminal
US8456433B2 (en) Signal processing apparatus, signal processing method and selection method of user interface icon for multi-touch panel
US9971416B2 (en) Chinese character entry via a Pinyin input method
US20130232451A1 (en) Electronic device and method for switching between applications
CN106408289B (en) Payment page switching method and mobile terminal
US20140240262A1 (en) Apparatus and method for supporting voice service in a portable terminal for visually disabled people
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
WO2019015581A1 (en) Text deletion method and mobile terminal
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN107124656B (en) Multimedia file playing method and mobile terminal
KR20160004590A (en) Method for display window in electronic device and the device thereof
CN112650433A (en) Interface screenshot method and device and electronic equipment
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107368205B (en) Handwriting input method and mobile terminal
WO2019118034A1 (en) Disambiguating gesture input types using multiple heatmaps
US9201594B2 (en) Electronic device and method for controlling virtual keyboards

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