CN110166621B - Word processing method and terminal equipment - Google Patents

Word processing method and terminal equipment Download PDF

Info

Publication number
CN110166621B
CN110166621B CN201910310070.XA CN201910310070A CN110166621B CN 110166621 B CN110166621 B CN 110166621B CN 201910310070 A CN201910310070 A CN 201910310070A CN 110166621 B CN110166621 B CN 110166621B
Authority
CN
China
Prior art keywords
input
user
target
function
characters
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
CN201910310070.XA
Other languages
Chinese (zh)
Other versions
CN110166621A (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 CN201910310070.XA priority Critical patent/CN110166621B/en
Publication of CN110166621A publication Critical patent/CN110166621A/en
Application granted granted Critical
Publication of CN110166621B publication Critical patent/CN110166621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a word processing method and terminal equipment, relates to the technical field of communication, and aims to solve the problem that the flexibility of the existing terminal equipment for word processing is low. The method comprises the following steps: receiving a first input of a user, wherein the first input is used for triggering and starting a word processing function of terminal equipment; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started. The method can be applied to the word processing scene of the terminal equipment.

Description

Word processing method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a word processing method and terminal equipment.
Background
With the continuous development of terminal technology and Artificial Intelligence (AI) technology, terminal devices based on AI technology are becoming a big trend in the field of terminals. The user can input to the terminal device to trigger and enable a function (hereinafter referred to as AI function) associated with artificial intelligence in the terminal device. For example, the AI function may be a voice assistant function, a screen recognition function, a photographing recognition function (e.g., a photographing recognition function, a photographing question searching function, a photographing translation function, etc.), and the like.
Taking the AI function as an example of the screen recognition function, assuming that a user views currently displayed content (for example, reads an electronic book or browses news) through the terminal device, after the user triggers the screen recognition function to be enabled, the terminal device may extract text information displayed on a screen of the terminal device, process (for example, recognize) the text information, and then display a processing result.
Taking an AI function as a photographing literacy function as an example, a user can trigger and start the camera application, select an icon for indicating the photographing literacy function in an interface of the camera application, and click a photographing control; accordingly, the terminal device can take a picture to obtain an image, extract text information in the image, process the text information, and then display the processing result.
However, in the process of performing the character recognition processing by using the screen recognition function or the photo-character recognition function, since the two AI functions have different triggering entries, the user needs to perform a plurality of input operations. Thus, the flexibility of the terminal device for word processing is low.
Disclosure of Invention
The embodiment of the invention provides a word processing method and terminal equipment, and aims to solve the problem of flexibility of word processing of the conventional terminal equipment.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a word processing method, which is applied to a terminal device, and the method includes: receiving a first input of a user, wherein the first input is used for triggering and starting a word processing function of terminal equipment; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a receiving module, a determining module, and a processing module. The receiving module is used for receiving a first input of a user, and the first input is used for triggering and starting a word processing function of the terminal equipment. The determining module is used for responding to the first input received by the receiving module and determining the number of the first characters, wherein the first characters are characters displayed by the terminal equipment. The processing module is used for carrying out target processing on target characters according to the comparison result of the number of the first characters determined by the determining module and the preset number threshold, wherein the target characters are the first characters or the second characters, and the second characters are characters in images acquired through a camera of the terminal equipment after the camera function of the terminal equipment is started.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored in the memory and operable on the processor, and when the computer program is executed by the processor, the steps of the word processing method in the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the word processing method in the first aspect.
In the embodiment of the invention, a first input of a user can be received, wherein the first input is used for triggering and starting a word processing function of terminal equipment; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started. According to the scheme, under the condition that the user triggers the terminal equipment to perform the character related processing, the terminal equipment can judge which characters need to be processed by the user at the moment according to the number of the characters currently displayed by the terminal equipment, namely, whether the characters currently displayed by the terminal equipment are subjected to target processing or the camera function is started and the characters in the image collected by the camera are subjected to the target processing is determined. Therefore, the actual use requirements of the user can be intelligently predicted according to the current application scene of the terminal equipment, and then the word processing function adaptive to the use requirements of the user can be started according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a word processing method according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of a word processing method according to an embodiment of the present invention;
FIG. 4 is a third schematic diagram of a word processing method according to an embodiment of the present invention;
FIG. 5 is a fourth schematic diagram of a word processing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an interface of a word processing method application according to an embodiment of the present invention;
FIG. 7 is a fifth schematic view of a word processing method according to an embodiment of the present invention;
FIG. 8 is a sixth schematic view of a word processing method according to an embodiment of the present invention;
FIG. 9 is a seventh schematic diagram illustrating a word processing method according to an embodiment of the present invention;
FIG. 10 is a second schematic interface diagram of an application of the word processing method according to the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 12 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 13 is a hardware schematic diagram of a terminal device 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.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, and the like.
The embodiment of the invention provides a word processing method and terminal equipment, which can receive a first input of a user, wherein the first input is used for triggering and starting a word processing function of the terminal equipment; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started. According to the scheme, under the condition that the user triggers the terminal equipment to perform the character related processing, the terminal equipment can judge which characters need to be processed by the user at the moment according to the number of the characters currently displayed by the terminal equipment, namely, whether the characters currently displayed by the terminal equipment are subjected to target processing or the camera function is started and the characters in the image collected by the camera are subjected to the target processing is determined. Therefore, the actual use requirements of the user can be intelligently predicted according to the current application scene of the terminal equipment, and then the word processing function adaptive to the use requirements of the user can be started according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the word processing method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the word processing method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the word processing method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can realize the word processing method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not limited in particular.
The main execution body of the word processing method provided in the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the word processing method in the terminal device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain the word processing method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a word processing method, which may include S200-S202 described below.
S200, the terminal equipment receives a first input of a user, wherein the first input is used for triggering and starting a word processing function of the terminal equipment.
In the embodiment of the invention, if a user needs to use the word processing function of the terminal device, for example, the user needs to process the word currently displayed by the terminal device or the user needs to process the word outside the terminal device, the user can trigger the terminal device to start the word processing function by inputting the word to the terminal device.
Optionally, in this embodiment of the present invention, the word processing function may support at least one of the following word processing: the method comprises the following steps of character extraction processing, character recognition processing, character-based question searching processing, character translation processing, character collection and the like. The terminal equipment can perform the word processing aiming at the words displayed by the terminal equipment and also can perform the word processing on the words collected by the camera.
It will be appreciated that the various word processing functions are exemplary lists, i.e., embodiments of the present invention include, but are not limited to, the various word processing functions listed above. In actual implementation, the above-mentioned word processing function may also support any other possible word processing functions, which may be determined according to actual needs, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the first input may be a touch input, or may be a voice input, or may be any other input for triggering activation of a word processing function of the terminal device, which may be determined specifically according to an actual use requirement, and this embodiment of the present invention is not limited.
S201, the terminal equipment responds to the first input, and the number of the first characters is determined, wherein the first characters are characters displayed by the terminal equipment.
In the embodiment of the invention, after the terminal equipment starts the character processing function, the character extraction processing is firstly carried out on the characters currently displayed by the terminal equipment, the number of the characters currently displayed by the terminal equipment is counted, and the counted number of the characters is compared with the preset target threshold value.
Optionally, in the embodiment of the present invention, the first text may be a text in a document displayed by the terminal device, may also be a text in a webpage displayed by the terminal device, may also be a text in a picture displayed by the terminal device, and may also be any other possible text, which may specifically be according to an actual use requirement, and the embodiment of the present invention is not limited.
S202, the terminal equipment performs target processing on the target characters according to the comparison result of the number of the first characters and a preset number threshold.
The target characters are first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started.
In the embodiment of the present invention, after determining the number of the first words, the terminal device may compare the number of the first words with a preset number threshold, and further determine which words are subjected to target processing according to a comparison result between the number of the first words and the preset number threshold, that is, determine whether to perform target processing on a word currently displayed by the terminal device (i.e., the first word) or to activate a camera function and perform target processing on a word in an image acquired by the camera (i.e., the second word).
Optionally, in this embodiment of the present invention, the target processing may include at least one of the following: the method comprises the steps of identifying target characters, extracting the target characters, translating the target characters, collecting the target characters, and searching for target characters (for example, searching for contents similar to the target characters from a network).
In this embodiment of the present invention, the target threshold may be a value (positive integer) preset by a system, may be a value 10, may be a value 20, or may be any other possible value, and a specific value may be determined according to an actual use requirement, which is not limited in this embodiment of the present invention.
Through this scheme, can be according to the quantity of the characters that terminal equipment shows how much, judge that the purpose that the user opened word processing function this moment is to the word processing that terminal equipment shows, still to the word processing in the image of terminal equipment's camera collection to according to the judged result, carry out corresponding action, so according to user's wish, intelligent operation can promote man-machine interaction's flexibility and convenience, make terminal equipment more intelligent.
It should be noted that, the comparison result between the number of the first words and the preset number threshold includes the following two different cases: the number of the first words is smaller than the preset number threshold, and the number of the first words is larger than or equal to the preset number threshold, so that the step of the terminal device performing target processing on the target words according to the comparison result can correspond to two possible implementation manners. In the following, the first implementation and the second implementation are taken as examples respectively to exemplarily describe possible implementations of S202 described above.
First implementation
In a first implementation manner, with reference to fig. 2, as shown in fig. 3, the above S202 may be specifically implemented by S202a and S202b described below.
S202a, the terminal device determines that the number of the first characters is smaller than a preset number threshold.
S202b, the terminal device adopts the camera of the terminal device to collect the target image and carries out target processing on the characters in the target image.
In the embodiment of the invention, when the number of the first characters is smaller than the preset number threshold, the characters currently displayed by the terminal equipment are fewer, so that the terminal equipment can infer that the purpose of starting the character processing function at the moment by a user is not to process the characters displayed by the terminal equipment, but may need to process other characters except the terminal equipment, that is, the terminal equipment is expected to adopt a camera to collect a target image and process the characters in the target image.
In a first implementation manner, after the terminal device determines that the number of the first words is smaller than the preset number threshold, the camera function of the terminal device may be enabled, the camera of the terminal device is used to collect a target image, and the words in the target image are subjected to target processing.
Therefore, the terminal equipment can intelligently predict the actual use requirements of the user according to the current application scene of the terminal equipment, and further can start the word processing function adapted to the use requirements of the user according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
Second implementation
In a second implementation manner, with reference to fig. 2, as shown in fig. 4, the above S202 may be specifically implemented by S202c-S202f described below.
S202c, the terminal device determines that the number of the first characters is larger than or equal to a preset number threshold.
S202d, the terminal device displays prompt information, and the prompt information comprises a first option and a second option.
The first option is used for indicating the target processing of the first character, and the second option is used for indicating the target processing of the second character.
S202e, the terminal device receives a second input of the target option from the user, wherein the target option is the first option or the second option.
Optionally, in the embodiment of the present invention, the second input may be a touch input to the target option, or may be a voice input, or may be any other input, which may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited.
And S202f, the terminal equipment responds to the second input, and processes the target characters by adopting a target processing mode, wherein the target processing mode is the processing mode indicated by the target option.
In the embodiment of the present invention, when the number of the first words is greater than or equal to the preset number threshold, it indicates that there are more words currently displayed by the terminal device, and therefore the terminal device may infer that the purpose of the user starting the word processing function at this time may be to process the words (i.e., the first words) displayed by the terminal device, and certainly may also be to desire to process other words (i.e., the second words) outside the terminal device, so the terminal device may display the first option and the second option, and prompt the user to select: whether the first word needs to be processed or the second word needs to be processed.
Further, if the user selects the first option, the terminal device performs target processing on the currently displayed text (i.e., the first text) of the terminal device. If the user selects the second option, the terminal device starts a camera function of the terminal device, collects a target image by using the camera of the terminal device, and performs target processing on characters (namely, second characters) in the target image.
Therefore, the terminal equipment can intelligently predict the actual use requirements of the user according to the current application scene of the terminal equipment, and further can display a plurality of options for the user to select according to the prediction result, so that the terminal equipment can respond to the input of the options by the user and start the word processing function adapted to the use requirements of the user, thereby improving the flexibility of the terminal equipment for word processing and enabling the terminal equipment to be more intelligent in the word processing aspect.
The word processing method provided by the embodiment of the invention can receive a first input of a user, wherein the first input is used for triggering and starting the word processing function of the terminal equipment; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started. According to the scheme, under the condition that the user triggers the terminal equipment to perform the character related processing, the terminal equipment can judge which characters need to be processed by the user at the moment according to the number of the characters currently displayed by the terminal equipment, namely, whether the characters currently displayed by the terminal equipment are subjected to target processing or the camera function is started and the characters in the image collected by the camera are subjected to the target processing is determined. Therefore, the actual use requirements of the user can be intelligently predicted according to the current application scene of the terminal equipment, and then the word processing function adaptive to the use requirements of the user can be started according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
Optionally, with reference to fig. 2, as shown in fig. 5, before the above S200, the word processing method provided in the embodiment of the present invention may further include the following S203 and S204. Accordingly, S200 described above can be specifically realized by S200a described below.
And S203, the terminal equipment receives a third input of the user.
Wherein the third input is used for triggering the display of at least one function identifier. For example, the at least one function identifier includes a function identifier for indicating a word processing function, and if a user inputs the function identifier, the terminal device may be triggered to enable the word processing function.
Optionally, in the embodiment of the present invention, the third input of the user may be a short-press input, or a long-press input, or may be an input in any other possible form, which may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited.
Specifically, in the embodiment of the present invention, the third input may be an input to an artificial intelligence key of the terminal device. The artificial intelligence key (hereinafter referred to as AI key) is a physical key arranged on the terminal device, and is used for triggering the terminal device to open an artificial intelligence interaction inlet. In the embodiment of the present invention, if the user needs to perform artificial intelligence interaction with the terminal device, at this time, the user may input an AI key of the terminal device to trigger the terminal device to open an artificial intelligence interaction entry (for example, to display a function identifier associated with artificial intelligence), and further, the user may perform intelligent interaction with the terminal device.
And S204, the terminal equipment responds to the third input and displays at least one function identifier.
Wherein each function identification is indicative of a function (e.g., a function associated with artificial intelligence).
Optionally, in this embodiment of the present invention, the function indicated by the at least one function identifier may include at least one of the following: the user-defined application has the functions of voice input, shopping code scanning and word processing. These functions are all functions associated with artificial intelligence.
It is to be understood that the above functions are exemplary lists, i.e., embodiments of the present invention include, but are not limited to, the above listed functions. In practical implementation, the function indicated by the at least one function identifier may further include any other possible function, which may be determined according to practical use requirements, and the embodiment of the present invention is not limited.
In this embodiment of the present invention, the function indicated by the at least one function identifier may be a function of an application defined by a user, and if the user needs to define (i.e., set) an application, the user may select an application identifier from application identifiers corresponding to applications in the terminal device, and use the application identifier as one function identifier (hereinafter referred to as a "defined function identifier") in the at least one function identifier. Therefore, the user can add the user-defined function identification according to the actual use requirement, and the flexibility of man-machine interaction can be improved.
Optionally, in this embodiment of the present invention, the at least one function identifier may be an identifier in an icon form, an identifier in a text form, an identifier in an icon and text combination form, or an identifier in any other possible form for indicating a related function of artificial intelligence, which may be determined specifically according to actual use requirements, and this embodiment of the present invention is not limited.
In the embodiment of the present invention, if the terminal device currently displays the desktop, the terminal device may display a sub-interface on the currently displayed desktop in response to the third input, where the sub-interface may display at least one function identifier.
In the embodiment of the present invention, if the terminal device currently displays an application interface of an application, the terminal device may display a sub-interface on the application interface in response to the first input, where the sub-interface may display at least one function identifier.
S200a, the terminal equipment receives a first input of the user, wherein the first input is the selection input of the target function identification by the user.
The target function mark is one of at least one function mark, and the function indicated by the target function mark is a word processing function.
In the embodiment of the present invention, since the terminal device displays one or more function identifiers for indicating the related functions of the artificial intelligence, the user may select one function identifier (i.e., the target function identifier) from the one or more function identifiers to trigger the terminal device to enable the function (e.g., the word processing function) indicated by the function identifier.
Optionally, in an embodiment of the present invention, the first input may include any one of: the method comprises the steps of inputting a volume key of the terminal equipment by a user, inputting an AI key by the user, inputting the volume key and the AI key by the user, and inputting a target function identifier by the user in a touch manner.
Optionally, in this embodiment of the present invention, the first input of the user may be a short-press input, or may be a long-press input, or may be a continuous multiple-short-press input, or may be an input in any other possible form, which may be determined specifically according to actual usage requirements, and this embodiment of the present invention is not limited.
It can be understood that, in the embodiment of the present invention, the first input may be an input that the user presses one or more physical keys of the terminal device to select the target function identifier, or may be an input that the user touches the function identifier displayed on the terminal device to touch the selected target function identifier. The specific setting can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In this embodiment of the present invention, it is assumed that after displaying at least one function identifier, the terminal device may initially display a cursor on (or highlight) one of the function identifiers (for example, the function identifier arranged at the top) to indicate that the function identifier is currently selected. Further, the terminal device may update the display position of the cursor from the area where one function identifier is located to the area where another function identifier is located in response to an input by the user to indicate the selection of the target function identifier.
For example, the first input is taken as an example of an input of the user to a volume key of the terminal device, and if the user presses the volume key, the terminal device may control a cursor to move upwards to a certain function identifier; if the user presses the volume-down key, the terminal device may control the cursor to move down to a certain function identifier. Or, if the user presses the volume up key, the terminal device may control the cursor to move to a certain function identifier to the left; if the user presses the volume reduction key, the terminal device can control the cursor to move to the right to a certain function identifier. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Further, if the cursor does not receive the input of the user within a preset time period after the cursor stays on a certain function identifier, the terminal device may determine that the function identifier is the target function identifier selected by the user. Or, the terminal device may determine that the function identifier in the area where the cursor is currently located is the target function identifier selected by the user in response to the re-input of the AI key by the user. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It is to be understood that the specific input forms of the first input are all exemplified lists, that is, the first input in the embodiment of the present invention includes, but is not limited to, the above listed inputs. In practical implementation, the first input may further include any other possible input, which may be determined according to practical use requirements, and the embodiment of the present invention is not limited.
In this embodiment of the present invention, in combination with the above S203 and S204, after the terminal device displays at least one function identifier in response to the input (i.e., the third input) of the AI key by the user, the terminal device may enable the function indicated by the function identifier in response to the selection input of the user to one of the function identifiers. The following describes specific implementation manners of S203 and S204 provided in the embodiment of the present invention when the user selects different function identifiers.
As shown in fig. 6, the terminal device displays a plurality of function identifiers: "user-defined" 31, "shopping scan code" 32, "word processing" 33, "voice input" 34. The user may select one function identifier from the plurality of function identifiers to trigger the terminal device to enable the function indicated by the selected function identifier.
Scene one: if the user selects a custom function identifier (e.g., "user custom" 31 shown in fig. 6), the terminal device may enable an application corresponding to the function identifier and enable a function that the application has in response to the input. By adding the custom function identifier (i.e., the user customization item), the user's needs for the AI scene can be better understood.
For example, assuming that the custom function identifier is used to indicate a navigation application, the function indicated by the custom function identifier is a navigation function. In this case, the terminal device may enable the navigation application and enable the navigation function in response to a selection input of the user for the custom function identifier. Therefore, the user can use the navigation function more conveniently and acquire the navigation information, and the flexibility and the convenience of man-machine interaction are improved.
Scene two: if the user selects a function identifier corresponding to the shopping code scan function (e.g., "shopping code scan" 32 shown in FIG. 6), the end-device may enable the shopping code scan function and enable the camera of the end-device in response to the input. Therefore, the terminal equipment can respond to the input of the user, acquire the image information through the camera and execute corresponding actions.
Exemplarily, if the two-dimension code information is collected through the camera, the terminal device can display a payment interface corresponding to the two-dimension code information, and the user can pay more conveniently and quickly. If the image information of a certain commodity is acquired through the camera, the terminal equipment can display the commodity information corresponding to the image information, so that a user can more conveniently acquire the relevant information of the commodity; certainly, the terminal device can display the purchasing link information of the commodity, and the user can conveniently and quickly shop. Therefore, the user can more conveniently and quickly shop, scan codes and pay, and the like, so that the flexibility and convenience of man-machine interaction are improved.
Scene three: if the user selects a function identifier corresponding to a word processing function (e.g., "word processing" 33 shown in fig. 6), the terminal device may enable the word processing function in response to the input. In this way, the terminal device may perform a word processing action (e.g., a word extraction process, a word recognition process, a word-based question search process, a word translation process, a word collection process, or the like) with respect to the words displayed by the terminal device or the words in the image captured by the camera in response to the input of the user. Therefore, the user can read the characters more conveniently, and the flexibility and convenience of man-machine interaction are improved.
Scene four: if the user selects a function identifier corresponding to the voice input function (such as "voice input" 34 shown in fig. 6), the terminal device may enable the voice input function in response to the input. Therefore, the user can quickly call the voice assistant, the voice input function is more conveniently used, and the terminal equipment is instructed to execute actions (such as dialing a call, sending short messages and the like) corresponding to the voice input content through voice input, so that the flexibility and the convenience of man-machine interaction are improved.
It should be noted that, in the embodiment of the present invention, the interaction methods in S203 and S204 described above may be applied to the terminal device regardless of whether the screen of the terminal device is in the screen locking state or the screen unlocking state.
Specifically, in the case that the screen of the terminal device is in the screen-locking state, the terminal device may display (e.g., on the screen-locking interface) at least one function identifier related to the artificial intelligence in response to the input of the AI key by the user. Further, the terminal device may enable the function indicated by the target function identifier in response to a user selection input of the target function identifier.
In the embodiment of the present invention, in order to ensure the security of the user information in the terminal device, an authentication step may be added in the interaction method of S203 and S204 described above when the screen of the terminal device is in the screen lock state.
Specifically, under the condition that the screen of the terminal device is in the screen locking state, the terminal device may display at least one function identifier related to the artificial intelligence in response to the input of the AI key by the user. Further, the terminal device may display an authentication interface in response to a user selection input of the target function identifier. If the identity authentication is successful, the terminal equipment starts the function indicated by the target function identifier; and if the identity authentication fails, the terminal equipment does not start the function indicated by the target function identifier. Thus, the security of the user personal information in the terminal device can be ensured.
Through the interaction method, the terminal equipment can respond to the input of the user to the artificial intelligence key and provide an artificial intelligence interaction inlet: and displaying a plurality of function identifiers associated with artificial intelligence for a user, so that the user can select one function identifier according to actual use requirements and trigger and start the AI function indicated by the function identifier. Thus, the interaction method can improve the flexibility and the rapidity of inputting the AI key to trigger the AI function for a large number of functions associated with artificial intelligence.
Optionally, with reference to fig. 5, as shown in fig. 7, after the above S203 and before the above S200a, the word processing method provided in the embodiment of the present invention may further include the following S205.
S205, the terminal equipment enables a voice input function.
In the embodiment of the present invention, the voice input function has the highest priority activation authority for the AI key, that is, the voice input function is activated by preferentially triggering the input of the AI key.
Specifically, the terminal device may directly enable the voice input function after receiving an input of the AI key by the user, and at this time, the user may perform voice interaction with the terminal device through the voice input.
Therefore, the user can quickly call the voice assistant, the voice input function is more conveniently used, and the terminal equipment is instructed to execute actions (such as dialing a call, sending short messages and the like) corresponding to the voice input content through voice input, so that the flexibility and the convenience of man-machine interaction are improved.
Optionally, with reference to fig. 7, as shown in fig. 8, after the above S200a, the word processing method provided in the embodiment of the present invention may further include the following S206.
And S206, the terminal equipment closes the voice input function.
In this embodiment of the present invention, after receiving an input of an AI key by a user, the terminal device may directly enable the voice input function, and then after receiving a selection input of a target function identifier by the user, the terminal device may enable a target function indicated by the target function identifier (the target function is any one of the functions indicated by the at least one function identifier, except for the voice input function), and close the voice input function.
It can be understood that, in the case that the terminal device activates the voice input function after receiving the input of the AI key by the user, if the terminal device receives the selection input of the target function identifier corresponding to the voice input function by the user, the terminal device may not respond to the input, and at this time, the voice input function remains activated.
Through the scheme, the user can quickly switch the voice input function into other AI related functions (such as a shopping code scanning function, a word processing function and the like) according to actual use requirements, so that the user can more conveniently and quickly dial a call, send information, carry out online shopping, scan code payment, read words and the like, and the flexibility and the convenience of man-machine interaction are improved.
Optionally, with reference to fig. 5 and as shown in fig. 9, the word processing method according to the embodiment of the present invention may further include S207 and S208 described below. Accordingly, S204 described above can be specifically realized by S204a described below.
And S207, the terminal equipment receives a fourth input of the user.
And the fourth input is used for triggering the display of the application identifier.
Optionally, in the embodiment of the present invention, the fourth input of the user may be a press input, or may be a voice input, or may be an input in any other possible form, which may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited.
For example, the fourth input may be a pressing input of the artificial intelligence key by the user in a case where the screen of the terminal device is in a screen-locked state.
And S208, the terminal equipment responds to the fourth input, and displays at least one application identifier under the condition that the screen of the terminal equipment is in a screen locking state.
Wherein, each application identifier is used to indicate an application, and the application indicated by the at least one application identifier may be any one of the following: n applications used in a first time period, N applications with the maximum use frequency in a second time period and applications preset in the terminal equipment, wherein N is a positive integer.
Optionally, the application preset in the terminal device may be an application that is factory-set by the terminal device, may also be an application that is customized by a user, and may also be any other application that meets a use requirement, which may be specifically determined according to an actual use requirement, and the embodiment of the present invention is not limited.
In this embodiment of the present invention, the first time period may be a day before the current system time, or may be a week before the current system time, or may be any other possible time period, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited. For example, the application indicated by the at least one application identifier may be N (e.g., 8) applications used in the last day.
In this embodiment of the present invention, the second time period may be a day before the current system time, or may be a week before the current system time, or may be any other possible time period, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited. For example, the application indicated by the at least one application identifier may be N (e.g., 5) applications with the highest frequency of use in the last week.
In the embodiment of the present invention, the application preset in the terminal device may be an application that a user desires to call up and use quickly in an emergency (hereinafter referred to as an emergency processing application). For example, at least one of the following may be used: recording applications, camera applications, flashlight applications, music player applications. For example, in an emergency situation where a recording evidence is required, the user may wish to quickly call out a recording application, or in a moment where a snapshot is required, the user may wish to quickly call out a camera application. Therefore, the emergency processing application can be called out quickly, and then a user can start the application quickly by one hand through the combination of the AI key and the volume key or the touch screen action, so that the flexibility and convenience of man-machine interaction can be improved.
It is to be understood that the above applications are exemplary lists, i.e., embodiments of the present invention include, but are not limited to, the various applications listed above. In practical implementation, the preset application may further include any other possible application, which may be determined according to practical use requirements, and the embodiment of the present invention is not limited.
In the embodiment of the present invention, the application defined by the user may be one or more applications selected by the user from multiple applications in the terminal device, and may specifically be determined according to actual use requirements, which is not limited in the embodiment of the present invention.
As shown in fig. 10, when the terminal device is in the screen lock state, the terminal device may display a screen lock interface 40 in response to an AI key input by a user, where at least one application identifier may be displayed in the screen lock interface 40: "recording" 41, "camera" 42, "user defined" 43. At this time, if the user selects one application identifier, the terminal device may execute the application indicated by the application identifier selected by the user in response to the input.
And S204a, the terminal device responds to the third input, and displays at least one function identifier under the condition that the screen of the terminal device is in an unlocked state.
For example, the third input may be an input of an artificial intelligence key by a user in a case where a screen of the terminal device is in an unlocked state.
It should be noted that the application identifier and the function identifier may be the same or different, and may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
First mode (corresponding to S207-S208): under the condition that the screen of the terminal equipment is in the screen locking state, the user can press the power key to trigger the terminal equipment to light the screen and display the screen locking interface, and then the user presses the AI key. The terminal device can display at least one application identifier on the screen locking interface after receiving the input of the AI key by the user. At this time, if the user selects one application identifier, the terminal device may execute the application indicated by the application identifier selected by the user in response to the input.
Second mode (corresponding to S203-S202): the user may press the AI key with the screen of the terminal device in the unlocked state. The terminal device may display at least one function identifier associated with the artificial intelligence after receiving the input of the AI key by the user. At this time, if the user selects one function identifier, the terminal device may enable the function indicated by the function identifier selected by the user in response to the input.
It should be noted that the execution order of S207-S208 and S203-S202 may not be limited in the embodiments of the present invention. That is, in the embodiment of the present invention, S207 to S208 may be executed first, and then S203 to S202 may be executed; or S203-S202 can be executed first, and then S207-S208 can be executed; S207-S208 and S203-S202 may also be performed simultaneously. It is understood that the above fig. 9 is illustrated by performing S207-S208 first and then performing S203-S202.
Through the scheme, when the screen of the terminal equipment is in different states, the AI key is pressed by a user to trigger the terminal equipment to execute different actions. Specifically, when the terminal device is in a screen locking state, the common application of the user can be quickly called out through inputting an AI key; and when the terminal equipment is in an unlocking state, the function options associated with the artificial intelligence can be quickly called out through inputting the AI key, so that the flexibility and the rapidness of triggering and starting the AI function through inputting the AI key can be improved.
As shown in fig. 11, an embodiment of the present invention provides a terminal device 700, where the terminal device 700 may include a receiving module 701, a determining module 702, and a processing module 703. The receiving module 701 is configured to receive a first input of a user, where the first input is used to trigger enabling of a word processing function of a terminal device. The determining module 702 is configured to determine, in response to the first input received by the receiving module 701, a number of first words, where the first words are words displayed by the terminal device. The processing module 703 is configured to perform target processing on a target text according to a comparison result between the number of the first text determined by the determining module 702 and a preset number threshold, where the target text is the first text or a second text, and the second text is a text in an image acquired by a camera of the terminal device after the camera function of the terminal device is started.
Optionally, in this embodiment of the present invention, the processing module 703 is specifically configured to, when the number of the first texts is smaller than the preset number threshold, acquire a target image by using a camera of the terminal device, and perform target processing on the texts in the target image.
Optionally, in this embodiment of the present invention, the processing module 703 is specifically configured to, when the number of the first words is greater than or equal to the preset number threshold, display a prompt message, where the prompt message includes a first option and a second option, the first option is used to instruct to perform target processing on the first words, and the second option is used to instruct to perform target processing on the second words. The receiving module 701 is further configured to receive a second input of the target option from the user, where the target option is the first option or the second option displayed by the processing module 703. The processing module 703 is further configured to, in response to the second input received by the receiving module 701, process the target word in a target processing manner, where the target processing manner is the processing manner indicated by the target option.
Optionally, in this embodiment of the present invention, the receiving module 701 is further configured to receive a third input from the user before receiving the first input from the user. The processing module 703 is further configured to display at least one function identifier in response to the third input received by the receiving module 701, where each function identifier is used to indicate a function. The first input is the selection input of a user to a target function identifier, the target function identifier is one of at least one function identifier, and the function indicated by the target function identifier is a word processing function.
Optionally, with reference to fig. 11, as shown in fig. 12, the terminal device 700 provided in the embodiment of the present invention further includes an executing module 704. The executing module 704 is configured to enable the voice input function after the receiving module 701 receives the third input of the user and before the receiving module receives the first input of the user. The executing module 704 is further configured to turn off the voice input function after the receiving module 701 receives the first input of the user. The function indicated by the target function identifier is any one of the functions indicated by the at least one function identifier except for the voice input function.
Optionally, in this embodiment of the present invention, the receiving module 701 is further configured to receive a fourth input from the user before receiving the third input from the user. The processing module 703 is further configured to display at least one application identifier in response to the fourth input received by the receiving module 701, where each application identifier is used to indicate one application, when the screen of the terminal device is in the screen-locked state. Wherein, the application indicated by the at least one application identifier may be any one of the following: n applications used in a first time period, N applications with the maximum use frequency in a second time period and applications preset in the terminal equipment, wherein N is a positive integer.
Optionally, in an embodiment of the present invention, the first input may include any one of: the method comprises the steps of inputting a volume key of the terminal device by a user, inputting an artificial intelligence key by the user, inputting the volume key and the artificial intelligence key by the user, and inputting a target function identifier by the user in a touch mode.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The terminal device provided by the embodiment of the invention can receive the first input of a user, wherein the first input is used for triggering and starting the word processing function of the terminal device; responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment; and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, and the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started. According to the scheme, under the condition that the user triggers the terminal equipment to perform the character related processing, the terminal equipment can judge which characters need to be processed by the user at the moment according to the number of the characters currently displayed by the terminal equipment, namely, whether the characters currently displayed by the terminal equipment are subjected to target processing or the camera function is started and the characters in the image collected by the camera are subjected to the target processing is determined. Therefore, the actual use requirements of the user can be intelligently predicted according to the current application scene of the terminal equipment, and then the word processing function adaptive to the use requirements of the user can be started according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
Fig. 13 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 13, the terminal device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 13 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 807 is configured to receive a first input of a user, where the first input is used to trigger enabling of a word processing function of the terminal device; the processor 810 is configured to determine, in response to the first input received by the user input unit 807, the number of first words, and perform target processing on a target word according to a comparison result between the number of first words and a preset number threshold, where the target word is a first word or a second word, the first word is a word displayed by the terminal device, and the second word is a word in an image acquired by a camera of the terminal device after the camera function of the terminal device is enabled.
The embodiment of the invention provides a terminal device, which can judge which characters need to be processed by a user at the moment according to the number of the characters currently displayed by the terminal device under the condition that the user triggers the terminal device to perform character related processing, namely, the terminal device determines whether to perform target processing on the characters currently displayed by the terminal device or to start a camera function and perform target processing on the characters in an image acquired by the camera. Therefore, the actual use requirements of the user can be intelligently predicted according to the current application scene of the terminal equipment, and then the word processing function adaptive to the use requirements of the user can be started according to the prediction result, so that the flexibility of the terminal equipment for word processing can be improved, and the terminal equipment is more intelligent in the aspect of word processing.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The terminal device 800 provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The terminal device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the terminal device 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 807 is operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can 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 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 13, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the terminal device, and this is not limited herein.
The interface unit 808 is an interface for connecting an external device to the terminal apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 800 or may be used to transmit data between the terminal apparatus 800 and an external device.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby performing overall monitoring of the terminal device. Processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Terminal device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and optionally, power supply 811 may be logically coupled to processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the terminal device 800 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 810 shown in fig. 13, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the foregoing word processing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing word processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method disclosed in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (16)

1. A word processing method is applied to terminal equipment, and is characterized by comprising the following steps:
receiving a first input of a user, wherein the first input is used for triggering and starting a word processing function of terminal equipment;
responding to the first input, and determining the number of first characters, wherein the first characters are characters displayed by the terminal equipment;
and performing target processing on target characters according to the comparison result of the number of the first characters and a preset number threshold, wherein the target characters are the first characters or second characters, the second characters are characters in an image acquired by a camera of the terminal equipment after the camera function of the terminal equipment is started, and the camera function of the terminal equipment is started after the comparison result is obtained.
2. The method of claim 1, wherein the performing target processing on the target word according to the comparison result between the number of the first words and a preset number threshold comprises:
and under the condition that the number of the first characters is smaller than a preset number threshold, acquiring a target image by adopting a camera of the terminal equipment, and performing target processing on the characters in the target image.
3. The method of claim 1, wherein the performing target processing on the target word according to the comparison result between the number of the first words and a preset number threshold comprises:
displaying prompt information under the condition that the number of the first characters is larger than or equal to the preset number threshold, wherein the prompt information comprises a first option and a second option, the first option is used for indicating the target processing of the first characters, and the second option is used for indicating the target processing of the second characters;
receiving a second input of a target option from a user, wherein the target option is the first option or the second option;
and responding to the second input, and processing the target characters by adopting a target processing mode, wherein the target processing mode is the processing mode indicated by the target option.
4. The method of claim 1, wherein prior to receiving the first input from the user, the method further comprises:
receiving a third input of the user;
in response to the third input, displaying at least one function identifier, each function identifier being used for indicating a function;
the first input is selection input of a target function identifier by a user, the target function identifier is one of the at least one function identifier, and the function indicated by the target function identifier is a word processing function.
5. The method of claim 4, wherein after receiving the third input by the user and before receiving the first input by the user, the method further comprises:
enabling a voice input function;
after receiving the first input of the user, the method further comprises:
closing the voice input function;
wherein the function indicated by the target function identifier is any one of the functions indicated by the at least one function identifier, except for the voice input function.
6. The method of claim 4, wherein prior to receiving the third input from the user, the method further comprises:
receiving a fourth input from the user;
in response to the fourth input, displaying at least one application identifier under the condition that the screen of the terminal device is in a screen locking state, wherein each application identifier is used for indicating one application;
wherein the application indicated by the at least one application identifier is any one of the following: n applications used in a first time period, N applications with the maximum use frequency in a second time period and applications preset in the terminal equipment, wherein N is a positive integer.
7. The method of any of claims 4 to 6, wherein the first input comprises any of: the method comprises the steps of inputting a volume key of the terminal equipment by a user, inputting an artificial intelligence key by the user, inputting the volume key and the artificial intelligence key by the user, and inputting a target function identifier by the user in a touch mode.
8. The terminal equipment is characterized by comprising a receiving module, a determining module and a processing module;
the receiving module is used for receiving a first input of a user, wherein the first input is used for triggering and starting a word processing function of the terminal equipment;
the determining module is configured to determine, in response to the first input received by the receiving module, the number of first characters, where the first characters are characters displayed by the terminal device;
the processing module is configured to perform target processing on a target word according to a comparison result of the number of the first words and a preset number threshold determined by the determination module, where the target word is a first word or a second word, the second word is a word in an image acquired by a camera of the terminal device after the camera function of the terminal device is started, and the camera function of the terminal device is started after the comparison result is obtained.
9. The terminal device according to claim 8, wherein the processing module is specifically configured to, when the number of the first texts is smaller than a preset number threshold, acquire a target image by using a camera of the terminal device, and perform target processing on the texts in the target image.
10. The terminal device according to claim 8, wherein the processing module is specifically configured to display a prompt message when the number of the first words is greater than or equal to the preset number threshold, where the prompt message includes a first option and a second option, the first option is used to instruct to perform target processing on the first words, and the second option is used to instruct to perform target processing on the second words;
the receiving module is further configured to receive a second input of a target option from a user, where the target option is the first option or the second option displayed by the processing module;
the processing module is further configured to respond to the second input received by the receiving module, and process the target text in a target processing manner, where the target processing manner is a processing manner indicated by the target option.
11. The terminal device of claim 8, wherein the receiving module is further configured to receive a third input from the user before receiving the first input from the user;
the processing module is further configured to display at least one function identifier in response to the third input received by the receiving module, where each function identifier is used to indicate a function;
the first input is selection input of a target function identifier by a user, the target function identifier is one of the at least one function identifier, and the function indicated by the target function identifier is a word processing function.
12. The terminal device of claim 11, wherein the terminal device further comprises an execution module;
the execution module is used for enabling the voice input function after the receiving module receives the third input of the user and before the first input of the user is received;
the execution module is further used for closing the voice input function after the receiving module receives the first input of the user;
wherein the function indicated by the target function identifier is any one of the functions indicated by the at least one function identifier, except for the voice input function.
13. The terminal device of claim 11, wherein the receiving module is further configured to receive a fourth input from the user before receiving the third input from the user;
the processing module is further configured to, in response to the fourth input received by the receiving module, display at least one application identifier under the condition that the screen of the terminal device is in a screen-locked state, where each application identifier is used to indicate one application;
wherein the application indicated by the at least one application identifier is any one of the following: n applications used in a first time period, N applications with the maximum use frequency in a second time period and applications preset in the terminal equipment, wherein N is a positive integer.
14. A terminal device according to any of claims 11 to 13, wherein the first input comprises any of: the method comprises the steps of inputting a volume key of the terminal equipment by a user, inputting an artificial intelligence key by the user, inputting the volume key and the artificial intelligence key by the user, and inputting a target function identifier by the user in a touch mode.
15. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the word processing method as claimed in any one of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the word processing method according to any one of claims 1 to 7.
CN201910310070.XA 2019-04-17 2019-04-17 Word processing method and terminal equipment Active CN110166621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910310070.XA CN110166621B (en) 2019-04-17 2019-04-17 Word processing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910310070.XA CN110166621B (en) 2019-04-17 2019-04-17 Word processing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110166621A CN110166621A (en) 2019-08-23
CN110166621B true CN110166621B (en) 2020-09-15

Family

ID=67639487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910310070.XA Active CN110166621B (en) 2019-04-17 2019-04-17 Word processing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110166621B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111153301B (en) * 2020-03-04 2022-04-15 广东伟邦科技股份有限公司 Contact-free elevator calling method
CN114387502A (en) * 2020-10-22 2022-04-22 Oppo广东移动通信有限公司 Method for generating character dial plate, terminal equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609505A (en) * 2008-06-19 2009-12-23 三星电子株式会社 The method and apparatus of identification character
CN105718560A (en) * 2016-01-20 2016-06-29 广东小天才科技有限公司 Method and system for rapidly searching for learning resources
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106484266A (en) * 2016-10-18 2017-03-08 北京锤子数码科技有限公司 A kind of text handling method and device
US10121086B2 (en) * 2015-07-14 2018-11-06 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101015663B1 (en) * 2008-06-24 2011-02-22 삼성전자주식회사 Method for recognizing character and apparatus therefor
JP2012128048A (en) * 2010-12-14 2012-07-05 Nikon Corp Projector
CN108628814A (en) * 2017-03-20 2018-10-09 珠海金山办公软件有限公司 A kind of method and device of quick insertion identification word

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609505A (en) * 2008-06-19 2009-12-23 三星电子株式会社 The method and apparatus of identification character
US10121086B2 (en) * 2015-07-14 2018-11-06 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method
CN105718560A (en) * 2016-01-20 2016-06-29 广东小天才科技有限公司 Method and system for rapidly searching for learning resources
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106484266A (en) * 2016-10-18 2017-03-08 北京锤子数码科技有限公司 A kind of text handling method and device

Also Published As

Publication number Publication date
CN110166621A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN109032734B (en) Background application program display method and mobile terminal
CN109542282B (en) Interface display method and terminal equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN108334272B (en) Control method and mobile terminal
CN110930410B (en) Image processing method, server and terminal equipment
CN107783747B (en) Interface display processing method and mobile terminal
CN110703972B (en) File control method and electronic equipment
CN111026464A (en) Identification method and electronic equipment
CN107665162B (en) Application processing method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN108062194B (en) Display method and device and mobile terminal
CN111459349B (en) Application recommendation method and electronic equipment
JP7371254B2 (en) Target display method and electronic equipment
CN109062634B (en) Application starting method and mobile terminal
CN110752981A (en) Information control method and electronic equipment
CN108153460B (en) Icon hiding method and terminal
CN110795002A (en) Screenshot method and terminal equipment
CN110209324B (en) Display method and terminal equipment
CN110166621B (en) Word processing method and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN108363499B (en) Text recovery method and mobile terminal
CN111176512B (en) Icon processing method and electronic equipment
CN109639880B (en) Weather information display method and terminal equipment
CN111597435A (en) Voice search method and device and electronic equipment

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