An input method, apparatus and device for inputting
By detecting the input scene and automatically switching the keyboard, the problem of low input efficiency in the prior art is solved, convenient keyboard switching is achieved and input efficiency is improved.
Patent Information
- Application Number
- CN202010556065.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-17
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the prior art, the keyboard needs to be frequently switched manually during the input process, resulting in low input efficiency.
By detecting the user's input scenario, the original keyboard in the input interface is automatically switched to the target keyboard associated with the target input scenario, reducing the user's manual operations.
This eliminates the need for users to manually switch keyboards, thereby improving input efficiency.
Smart Images

Figure CN113805707B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of computer technology, and specifically relate to an input method, an input device and a device for input. BACKGROUND
[0002] The commonly used keyboard of an input method application includes a 9-key pinyin keyboard and a 26-key pinyin keyboard, and specifically includes a Chinese keyboard, an English keyboard, a number keyboard, etc. When a user inputs content by using the input method application, the user can switch among various keyboards to trigger a required input mode.
[0003] In the prior art, a Chinese keyboard is usually taken as a default keyboard, and when a password, a license plate number or other non-Chinese characters need to be input, the user manually switches the Chinese keyboard to an English keyboard and then switches the case state of the English keyboard. In this process, if numbers need to be input, the user further needs to switch to a number keyboard. This way requires the user to switch keyboards multiple times in the input process, which affects the input efficiency. SUMMARY
[0004] Embodiments of the present application provide an input method, an input device and a device for input to solve the technical problem that the keyboard switching operation in the input process in the prior art is not convenient enough, resulting in low input efficiency.
[0005] In a first aspect, embodiments of the present application provide an input method, which includes detecting an input scenario of a user, and in response to the input scenario being a target input scenario, switching an original keyboard in an input interface to a target keyboard associated with the target input scenario.
[0006] In a second aspect, embodiments of the present application provide an input device, which includes a detection unit configured to detect an input scenario of a user, and a switching unit configured to, in response to the input scenario being a target input scenario, switch an original keyboard in an input interface to a target keyboard associated with the target input scenario.
[0007] In a third aspect, embodiments of the present application provide a device for input, which includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs contain instructions for detecting an input scenario of a user, and in response to the input scenario being a target input scenario, switching an original keyboard in an input interface to a target keyboard associated with the target input scenario.
[0008] In a fourth aspect, embodiments of the present application provide a computer readable medium, which stores a computer program, and the program is executed by a processor to implement the method described in the first aspect.
[0009] The input method, device and device for input provided by the embodiments of the present application can switch the original keyboard in the input interface to the target keyboard associated with the target input scene when it is detected that the input scene is the target input scene, so that the keyboard can be automatically switched according to the input scene, without the need for the user to manually switch the keyboard, making the input operation more convenient and improving the input efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0010] Other features, objects and advantages of the present application will become more apparent from the following detailed description of non-limiting embodiments read in conjunction with the accompanying drawings:
[0011] Figure 1 is a flow chart of an embodiment of the input method according to the present application;
[0012] Figure 2 is a schematic diagram of the target keyboard according to the input method of the present application;
[0013] Figure 3 is a structural schematic diagram of an embodiment of the input device according to the present application;
[0014] Figure 4 is a structural schematic diagram of a device for input according to the present application;
[0015] Figure 5 is a structural schematic diagram of a server in some embodiments according to the present application. DETAILED DESCRIPTION
[0016] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related application, and not to limit the application. In addition, it should be noted that, for the convenience of description, only the parts related to the application are shown in the drawings.
[0017] It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
[0018] Reference should be made to Figure 1Fig. 1 shows a flow 100 of an input method according to an embodiment of the present application. The input method described above can run on various electronic devices, including but not limited to servers, smartphones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, in-vehicle computers, desktop computers, set-top boxes, smart TVs, wearable devices, and the like.
[0019] The electronic devices described above can be installed with various types of client applications, such as input method applications, web browser applications, instant messaging tools, shopping applications, search applications, email clients, social platform software, and the like.
[0020] The input method application mentioned in the embodiments of the present application can support multiple input methods. Among them, the input method can be an encoding method adopted to input various symbols to electronic devices such as computers and mobile phones. Users can use the input method application to conveniently input the required characters or character strings into the electronic devices. It should be noted that in the embodiments of the present application, the input method can support not only common Chinese input methods (such as pinyin input method, five-stroke input method, phonetic input method, voice input method, handwriting input method, etc.), but also input methods of other languages (such as English input method, Japanese hiragana input method, Korean input method, etc.), and the input method and the language types of the input method are not limited herein.
[0021] The input method in the embodiments can include the following steps:
[0022] Step 101, detecting the input scenario of the user.
[0023] In the embodiments, various types of client applications can be installed in the execution subject (such as the electronic devices described above) of the input method, such as input method applications, instant messaging applications, document editing applications, browsers, and the like. Among them, the input method application can be configured with multiple keyboards, and the default keyboard can be displayed each time the input method application is started. The default keyboard can be pre-set by the system or customized by the user, and is usually a Chinese keyboard. And 9-key pinyin keyboard, 26-key pinyin keyboard, and the like can be used. In addition to the default keyboard, the input method application can also be configured with English keyboard, number keyboard, symbol keyboard, and the like, which are not limited in the embodiments of the present application.
[0024] In the embodiment, the input method application can also be configured with a target keyboard, which is an intelligent keyboard different from the existing conventional keyboard. The target keyboard can be automatically switched or automatically started in some special input scenarios to meet the input needs of the user in the special input scenarios.
[0025] In the embodiment, the execution subject can detect the input scenario of the user in real time when the input method application is started or in the user input process. The detection of the input scenario can include but is not limited to the following: detecting the input scenario through user behavior data, detecting the input scenario by obtaining the input box type, detecting the input scenario by intercepting and recognizing the display interface image, detecting the input scenario based on context information, etc. The input scenario can include but is not limited to the Chinese input scenario, the digital input scenario, the English character input scenario, the cross input scenario of English characters and numbers, etc.
[0026] In some optional implementations of the embodiment, the input scenario can be detected through user behavior data. The user behavior data can include the operation record of the user on the keyboard in the input method interface, such as the record of the keyboard switching operation, etc. The execution subject can analyze the record of the keyboard switching operation to determine the frequently used keyboard of the user, and thus determine the input scenario.
[0027] For example, if the operation record reflects that the user frequently switches between the number keyboard and the English keyboard manually, it can be considered that the input scenario is the cross input scenario of English characters and numbers. If the operation record reflects that the user switches the default keyboard to another keyboard, such as the number keyboard, when starting the input method application multiple times, it can be considered that the input scenario is the digital input scenario.
[0028] In some optional implementations of the embodiment, the input scenario can be detected by obtaining the input box type. First, the page data can be obtained, and the related information of the input box can be extracted from the page data. The input box here refers to the input box where the input position is located. The input position refers to the position where the input focus (such as the cursor, etc.) is located. The related information of the input box can include the description text, etc., such as “Please enter an 8-digit password containing English characters and numbers”, “Please enter the phone number”, etc. Then, the input scenario can be determined based on the related information of the input box. For example, the input scenario can be determined by performing semantic analysis on the description text.
[0029] As an example, when the description text is “Please enter an 8-digit password containing English characters and numbers”, since the password needs to contain English characters and numbers, it can be determined that the current input scenario is the cross input scenario of English characters and numbers. As another example, in the case where the recognized string is “Please enter the phone number”, since the phone number is usually a number, it can be determined that the current input scenario is the digital input scenario.
[0030] In some optional implementations of the embodiment, the input scene can be detected by intercepting and recognizing the display interface image. First, the display interface can be intercepted to obtain an interface image. Then, the characters in the interface image can be detected to determine the string in the interface image. Finally, the string can be subjected to semantic analysis to determine the current input scene.
[0031] As an example, in the license plate number input scene, there are usually strings such as “Please enter the license plate number: Beijing XXX” in the interface, where XXX is the content to be input by the user. After intercepting the display interface, the characters in the display interface can be detected to obtain the above string. By subjecting the above string to semantic analysis, it can be determined that the above string indicates that the user is inputting the license plate number, and at this time, it is determined that the current input scene is the license plate number input scene.
[0032] When intercepting the interface image, all or part of the interface image can be intercepted. When intercepting part, the current input position can be detected first. Then, the interface image of a preset size can be intercepted with the input position as the lower right corner, so as to avoid interference caused by useless characters in the screen. It should be noted that the input method application can be pre-configured to have a background screenshot function. After recognizing the characters in the interface image, the input method application can discard the intercepted interface image. In addition, the input method application can also call a local screenshot tool to realize screenshot, or prompt the user to manually intercept the screen, so as to detect the input scene according to the intercepted interface image and automatically switch the keyboard based on the detected input scene.
[0033] When detecting the characters in the interface image, the OCR (Optical Character Recognition) technology can be used. In this technology, the brightness of the interface image can be detected first to detect the dark and bright patterns of multiple regions of the interface image, and then the character shape is determined; then, the character shape is translated into computer text by using a character recognition method (such as a Euclidean space comparison method, a dynamic program comparison method, a neural network-based character comparison method, etc.).
[0034] When detecting the characters in the interface image, a convolutional neural network can also be used. The above execution subject can pre-store a pre-trained recognition model, which can be established based on a convolutional neural network and pre-trained, and can be used to recognize characters in an image. The above execution subject can input the interface image into the above recognition model to obtain the text information of the above target picture.
[0035] In the semantic analysis of the string, a pre-trained semantic analysis model can be used. The semantic analysis model can be pre-trained by a machine learning method, such as a supervised learning method.
[0036] In some optional implementations of the embodiment, the input scenario can be detected based on context information. Specifically, the execution subject described above can first acquire context information. The context information can include several pieces of content input or sent by the user recently. Then, the character type of the context information can be detected, so as to determine the input scenario based on the character type of the context information. The character type can include, but is not limited to, numbers, Chinese characters, English characters, symbols, etc. For example, the context information includes two pieces of content input or sent by the user recently, and the user has sent two English messages in the instant messaging tool successively, it can be considered that the type of the historical input content is English, so the current input scenario is determined to be an English input scenario.
[0037] It should be noted that the context information is not limited to the content input or sent by the user, but can also include the content received by the user, which can be sent by the opposite user. For example, if the context information is two pieces of information, and the latest two pieces of information in the instant messaging tool are an English message sent by the local user and another English message returned by the opposite user, it can be considered that the type of the historical input content is English, so the current input scenario is determined to be an English input scenario.
[0038] In addition, the rule for determining the input scenario based on the character of the context information can be pre-set. For example, when the character types in the context information are the same and neither is Chinese, the input scenario can be determined to be the input scenario corresponding to the character type in the context information. For another example, when the character types in the context information are different, the input scenario can be determined to be a cross-input scenario, and the specific category of the cross-input scenario can correspond to the character types in the context information.
[0039] It should be noted that the way of detecting the input scenario of the user is not limited to the way listed in the above examples, and other ways can also be used, which are not limited in the embodiment.
[0040] In step 102, in response to the input scenario being a target input scenario, the original keyboard in the input interface is switched to a target keyboard associated with the target input scenario.
[0041] In the embodiment, the target input scenario can include one or more of the input scenarios. For example, the target input scenario can include, but is not limited to, a number input scenario, an English character input scenario, a symbol input scenario, and can also include a cross-input scenario of at least two of the above, such as a cross-input scenario of English characters and numbers, a cross-input scenario of English characters, numbers and symbols, etc.
[0042] The digital input scenario can include, but is not limited to, a telephone number input scenario, a fax number input scenario, and various scenarios requiring digital input. The English character and number cross input scenario can include, but is not limited to, a password input scenario, a license plate number input scenario, a user name input scenario, an email input scenario, a programming input scenario, and the like. The English character, number, and symbol cross input scenario can include, but is not limited to, a user name input scenario, an email input scenario, and the like.
[0043] In this embodiment, different target input scenarios can be associated with different target keyboards. For example, for the English character, number, and symbol cross input scenario, the target keyboard can be a keyboard including number keys, English character keys, and symbol keys. For the English character and number cross input scenario, the target keyboard can be a keyboard including number keys and English character keys. For the digital input scenario, the target keyboard can be a number keyboard.
[0044] In addition, different target input scenarios can also be associated with the same target keyboard. For example, the English character and number cross input scenario and the digital input scenario can both be associated with a keyboard including number keys and English character keys.
[0045] In this embodiment, when the execution subject detects that the current input scenario is a target input scenario, the execution subject can switch the original keyboard in the input interface to a target keyboard associated with the target input scenario. The input interface can include a display interface of an input method application. The original keyboard can be a default keyboard of the input method application or a certain keyboard preset by a user.
[0046] As an example, Figure 2 is a schematic diagram of a target keyboard. When the input position is in a password input box, the default Chinese keyboard can be automatically switched to the target keyboard as shown in Figure 2 The target keyboard can include number keys and English character keys.
[0047] In some optional implementations of this embodiment, to avoid user disturbance caused by automatic switching of the target keyboard and to avoid the target keyboard not meeting user usage habits, when the execution subject detects that the current input scenario is a target input scenario, the execution subject can first display guidance information. In response to detecting that a user triggers the target keyboard based on the guidance information, the execution subject switches the original keyboard in the input interface to the target keyboard.
[0048] The guidance information is used to guide the user to trigger the target keyboard. The guidance information can be in the form of an identifier, a key, a text chain, or the like. As an example in the form of a text chain, after detecting that the current input scenario is a target input scenario, a text chain "click XX key to switch XXX keyboard" can be displayed in the input method interface to prompt the user to switch the target keyboard.
[0049] In some scenarios, when the target input scenario is a number input scenario, the target keyboard can display number keys, and the input mode of the target keyboard is a number input mode.
[0050] In some scenarios, when the target input scenario is an English character input scenario, the target keyboard can display English character keys, and the input mode of the target keyboard is an English input mode.
[0051] In some scenarios, when the target input scenario is an English character and number cross input scenario, the target keyboard displays both number keys and English character keys, and the input mode of the target keyboard is an English input mode.
[0052] When the target keyboard contains English character keys, after switching the original keyboard in the input interface to the target keyboard, in response to detecting that a user clicks an English character key, the above-mentioned execution subject can output the lowercase English character corresponding to the English character key as input content. In response to detecting that a user long-presses the English character key, the above-mentioned execution subject can output the uppercase English character corresponding to the English character key as input content. In addition, the above-mentioned execution subject can also output the uppercase English character corresponding to the English character key as input content. In response to detecting that a user long-presses the English character key, the above-mentioned execution subject can output the lowercase English character corresponding to the English character key as input content. In this way, without the user performing a case switching operation, uppercase English characters and lowercase English characters can be flexibly input using the same keyboard. In this way, without the user performing a case switching operation, uppercase English characters and lowercase English characters can be flexibly input using the same keyboard.
[0053] In some optional implementations of the embodiment, after switching the original keyboard in the input interface to the target keyboard associated with the target input scenario, in response to detecting that a user performs at least one of the following operations, the target keyboard is exited: exiting the target input scenario (such as exiting a current application, exiting a current page, etc.), switching the target input scenario to another input scenario (such as changing the input position to another input box), performing a closing operation on the target keyboard (such as triggering a closing key in the target keyboard, etc.). After the target keyboard is exited, a default keyboard can be automatically displayed, or the input method application can be exited.
[0054] The method provided by the above-mentioned embodiments of the present application can automatically switch the keyboard according to the input scenario, without the user manually switching the keyboard, so that the input operation is more convenient, and the input efficiency is improved.
[0055] Further reference is made to Figure 3As an implementation of the method shown in the above figures, the application provides an embodiment of an input device, which is implemented in correspondence with the method embodiment shown in Figure 1 and can be applied to various electronic devices.
[0056] As shown in Figure 3 the input device 300 of the embodiment includes a detection unit 301 configured to detect an input scenario of a user, and a switching unit 302 configured to switch an original keyboard in an input interface to a target keyboard associated with a target input scenario in response to the input scenario being the target input scenario.
[0057] In some optional implementations of the embodiment, the detection unit 301 is further configured to obtain user behavior data, the user behavior data including a record of operations of the user on the keyboard, the record of operations including a record of keyboard switching operations, and determine the input scenario based on the record of keyboard switching operations.
[0058] In some optional implementations of the embodiment, the detection unit 301 is further configured to obtain page data, and extract relevant information of an input box from the page data, and determine the input scenario based on the relevant information of the input box.
[0059] In some optional implementations of the embodiment, the detection unit 301 is further configured to take a screenshot of a display interface to obtain an interface image, detect characters in the interface image to determine a character string in the interface image, and perform semantic analysis on the character string to determine the input scenario.
[0060] In some optional implementations of the embodiment, the detection unit 301 is further configured to obtain context information, and detect a character type of the context information, and determine the input scenario based on the character type of the context information.
[0061] In some optional implementations of the embodiment, the switching unit 302 is further configured to display guide information, the guide information being used to guide the user to trigger the target keyboard, and switch the original keyboard in the input interface to the target keyboard in response to detecting that the user triggers the target keyboard based on the guide information.
[0062] In some optional implementations of the embodiment, the device further includes an exit unit configured to exit the target keyboard in response to detecting that the user performs at least one of the following operations: exits the target input scenario, switches the target input scenario to another input scenario, and performs a closing operation on the target keyboard.
[0063] In some optional implementations of the present embodiment, when the target input scenario is a number input scenario, the target keyboard displays number keys, and the input mode of the target keyboard is a number input mode.
[0064] In some optional implementations of the present embodiment, when the target input scenario is an English character input scenario, the target keyboard displays English character keys, and the input mode of the target keyboard is an English input mode.
[0065] In some optional implementations of the present embodiment, when the target input scenario is an English character and number cross input scenario, the target keyboard displays number keys and English character keys, and the input mode of the target keyboard is an English input mode.
[0066] In some optional implementations of the present embodiment, the English character and number cross input scenario includes at least one of the following: a password input scenario, a license plate number input scenario, a username input scenario, an email input scenario, and a programming input scenario.
[0067] In some optional implementations of the present embodiment, the device further includes a first output unit configured to output, as input content, a lowercase English character corresponding to the English character key in response to detecting that the user taps the English character key; and a second output unit configured to output, as input content, an uppercase English character corresponding to the English character key in response to detecting that the user long-presses the English character key.
[0068] In some optional implementations of the present embodiment, the device further includes a third output unit configured to output, as input content, an uppercase English character corresponding to the English character key in response to detecting that the user taps the English character key; and a fourth output unit configured to output, as input content, a lowercase English character corresponding to the English character key in response to detecting that the user long-presses the English character key.
[0069] The device provided by the above embodiments of the present application can automatically switch the keyboard according to the input scenario by switching the original keyboard in the input interface to the target keyboard associated with the target input scenario when it is detected that the input scenario is the target input scenario, so that the user does not need to manually switch the keyboard, the input operation is more convenient, and the input efficiency is improved.
[0070] Figure 4is a block diagram of an apparatus 400 for inputting according to an exemplary embodiment, which can be a smart terminal or a server. For example, the apparatus 400 can be a mobile phone, a computer, a digital broadcast terminal, a messaging equipment, a game console, a tablet equipment, a medical equipment, a fitness equipment, a personal digital assistant, etc.
[0071] Referring to Figure 4 The apparatus 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.
[0072] The processing component 402 usually controls overall operations of the apparatus 400, such as operations associated with displaying, making phone calls, data communications, camera operations and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 402 can include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0073] The memory 404 is configured to store various types of data to support operations of the apparatus 400. Examples of these data include instructions for any application or method operating on the apparatus 400, contact data, phonebook data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0074] The power supply component 406 supplies electrical power for the various components of the apparatus 400. The power supply component 406 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing electrical power for the apparatus 400.
[0075] The multimedia component 408 includes a screen to provide an output interface between the device 400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensor can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operation mode, such as a camera mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.
[0076] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) to receive an external audio signal when the device 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker to output audio signals.
[0077] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, such as a keypad, a click wheel, buttons, and so on. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0078] The sensor component 414 includes one or more sensors to provide various state assessments for the device 400. For example, the sensor component 414 can detect an open / closed position of the device 400, relative positioning of components, such as a display and a keypad of the device 400, a change in position of the device 400 or a component of the device 400, presence or absence of user contact with the device 400, a change in orientation of the device 400 or acceleration / deceleration of the device 400, and a temperature change of the device 400. The sensor component 414 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 414 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 414 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0079] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0080] In an exemplary embodiment, the apparatus 400 may be implemented by 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), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0081] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by the processor 420 of the apparatus 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0082] Figure 5 : is a schematic diagram of the structure of the server in some embodiments of the present application. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 522 (for example, one or more processors) and memories 532, and one or more storage media 530 (for example, one or more mass storage devices) for storing application programs 542 or data 544. Among them, the memories 532 and the storage media 530 can be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 522 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the server 500.
[0083] The server 500 can also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input / output interfaces 558, one or more keyboards 556, and / or one or more operating systems 541, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, and the like.
[0084] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an apparatus (a smart terminal or a server), cause the apparatus to perform an input method, the method comprising: detecting an input scenario of a user; and in response to the input scenario being a target input scenario, switching an original keyboard in an input interface to a target keyboard associated with the target input scenario.
[0085] Optionally, the detecting the input scenario of the user comprises: obtaining user behavior data, the user behavior data comprising a record of operations of the user on the keyboard, the record of operations comprising a record of keyboard switching operations; and determining the input scenario based on the record of keyboard switching operations.
[0086] Optionally, the detecting the input scenario of the user comprises: obtaining page data, and extracting relevant information of an input box from the page data; and determining the input scenario based on the relevant information of the input box.
[0087] Optionally, the detecting the input scenario of the user comprises: taking a screenshot of a display interface to obtain an interface image; detecting characters in the interface image to determine a character string in the interface image; and performing semantic analysis on the character string to determine the input scenario.
[0088] Optionally, the detecting the input scenario of the user comprises: obtaining context information, and detecting a character type of the context information; and determining the input scenario based on the character type of the context information.
[0089] Optionally, the switching the original keyboard in the input interface to the target keyboard comprises: displaying guide information, the guide information being used to guide the user to trigger the target keyboard; and in response to detecting that the user triggers the target keyboard based on the guide information, switching the original keyboard in the input interface to the target keyboard.
[0090] Optionally, the apparatus configured to execute the one or more programs by one or more processors includes instructions for: in response to detecting that the user performs at least one of the following operations, exiting the target keyboard: exiting a target input scenario, switching the target input scenario to another input scenario, performing a closing operation on the target keyboard.
[0091] Optionally, when the target input scenario is a number input scenario, the target keyboard displays number keys, and an input mode of the target keyboard is a number input mode.
[0092] Optionally, when the target input scenario is an English character input scenario, the target keyboard displays English character keys, and an input mode of the target keyboard is an English input mode.
[0093] Optionally, when the target input scenario is an English character and number cross input scenario, the target keyboard displays number keys and English character keys, and an input mode of the target keyboard is an English input mode.
[0094] Optionally, the English character and number cross input scenario includes at least one of the following: a password input scenario, a license plate number input scenario, a user name input scenario, a mailbox input scenario, a programming input scenario.
[0095] Optionally, the device configured to execute the one or more programs by one or more processors includes instructions for: in response to detecting that a user clicks the English character key, outputting a lower case English character corresponding to the English character key as input content; and in response to detecting that the user long-presses the English character key, outputting an upper case English character corresponding to the English character key as input content.
[0096] Optionally, the device configured to execute the one or more programs by one or more processors includes instructions for: in response to detecting that a user clicks the English character key, outputting an upper case English character corresponding to the English character key as input content; and in response to detecting that the user long-presses the English character key, outputting a lower case English character corresponding to the English character key as input content.
[0097] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0098] It is to be understood that the application is not limited to the precise construction here described and as shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is to be interpreted only by the appended claims.
[0099] The above merely describes preferred embodiments of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0100] The input method, device and device for input provided by the present application are described in detail above, and the principles and implementation manners of the present application are described by using specific examples. The above embodiment description is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manner and application range can be changed according to the idea of the present application. In conclusion, the content of the present description should not be understood as a limitation of the present application.
Claims
1. An input method, characterized in that: The method comprises: Detect user input scenarios; In response to the input scene being a target input scene, switching an original keyboard in the input interface to a target keyboard associated with the target input scene; the target input scene includes but is not limited to a Chinese input scene, a numeric input scene, an English character input scene, a symbol input scene, and a cross input scene including at least two of the numeric input scene, the English character input scene, and the symbol input scene; Switching the original keyboard in the input interface to the target keyboard includes: Displaying guidance information, wherein the guidance information is used to guide the user to trigger the target keyboard; In response to detecting that the user triggers the target keyboard based on the guidance information, switching the original keyboard in the input interface to the target keyboard; The detecting of the user's input scenario includes: Take a screenshot of the display interface to obtain an interface image; Detecting characters in the interface image to determine a character string in the interface image; Performing semantic analysis on the character string to determine the input scenario; The step of taking a screenshot of the display interface to obtain an interface image includes: Detect the current input position; The interface image of a preset size is captured based on the input position, wherein the input position corresponds to the lower right vertex of the interface image; and the interface image is a partial image of the display interface.
2. The method according to claim 1, characterized in that The detecting of the user's input scenario includes: Acquiring user behavior data, wherein the user behavior data includes a user's operation record on the keyboard, and the operation record includes a record of keyboard switching operations; An input scenario is determined based on the record of the keyboard switching operation.
3. The method according to claim 1, characterized in that The detecting of the user's input scenario includes: Obtaining page data and extracting relevant information of the input box from the page data; An input scenario is determined based on the relevant information of the input box.
4. The method according to claim 1, wherein The detecting of the user's input scenario includes: Acquire context information and detect the character type of the context information; An input scenario is determined based on the character type of the context information.
5. The method according to claim 1, wherein After switching the original keyboard in the input interface to the target keyboard associated with the target input scenario, the method further includes: In response to detecting that the user performs at least one of the following operations, the target keyboard is exited: exiting the target input scene, switching the target input scene to another input scene, and performing a closing operation on the target keyboard.
6. An input device, characterized in that: The device comprises: a detection unit configured to detect a user input scenario; a switching unit configured to, in response to the input scene being a target input scene, switch an original keyboard in the input interface to a target keyboard associated with the target input scene; the target input scene includes but is not limited to a Chinese input scene, a numeric input scene, an English character input scene, a symbol input scene, and a cross input scene including at least two of the numeric input scene, the English character input scene, and the symbol input scene; Switching the original keyboard in the input interface to the target keyboard includes: Displaying guidance information, wherein the guidance information is used to guide the user to trigger the target keyboard; In response to detecting that the user triggers the target keyboard based on the guidance information, switching the original keyboard in the input interface to the target keyboard; The detection unit is specifically used to take a screenshot of the display interface to obtain an interface image; detect characters in the interface image to determine the character string in the interface image; perform semantic analysis on the character string to determine the input scenario; The step of taking a screenshot of the display interface to obtain an interface image includes: Detect the current input position; The interface image of a preset size is captured based on the input position, wherein the input position corresponds to the lower right vertex of the interface image; and the interface image is a partial image of the display interface.
7. A device for input, characterized in that The system includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Detect user input scenarios; In response to the input scene being a target input scene, switching an original keyboard in the input interface to a target keyboard associated with the target input scene; the target input scene includes but is not limited to a Chinese input scene, a numeric input scene, an English character input scene, a symbol input scene, and a cross input scene including at least two of the numeric input scene, the English character input scene, and the symbol input scene; Switching the original keyboard in the input interface to the target keyboard includes: Displaying guidance information, wherein the guidance information is used to guide the user to trigger the target keyboard; In response to detecting that the user triggers the target keyboard based on the guidance information, switching the original keyboard in the input interface to the target keyboard; The detecting of the user's input scenario includes: Take a screenshot of the display interface to obtain an interface image; Detecting characters in the interface image to determine a character string in the interface image; Performing semantic analysis on the character string to determine the input scenario; The step of taking a screenshot of the display interface to obtain an interface image includes: Detect the current input position; The interface image of a preset size is captured based on the input position, wherein the input position corresponds to the lower right vertex of the interface image; and the interface image is a partial image of the display interface.
8. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and device for retrieving keyboards under different scenes of intelligent television
CN103596027A
Device and method for displaying input keyboard in terminal
CN104076945A
Input method switching method, mobile terminal and computer storage medium
CN108762876A
Input method and electronic equipment
CN110825475A