WO2020215967A1 - 内容选中方法及终端设备 - Google Patents

内容选中方法及终端设备 Download PDF

Info

Publication number
WO2020215967A1
WO2020215967A1 PCT/CN2020/081209 CN2020081209W WO2020215967A1 WO 2020215967 A1 WO2020215967 A1 WO 2020215967A1 CN 2020081209 W CN2020081209 W CN 2020081209W WO 2020215967 A1 WO2020215967 A1 WO 2020215967A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
input
target
terminal device
option
Prior art date
Application number
PCT/CN2020/081209
Other languages
English (en)
French (fr)
Inventor
杜莉莉
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020215967A1 publication Critical patent/WO2020215967A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a content selection method and terminal device.
  • Optical character recognition (OCR) technology refers to the use of terminal devices (such as mobile phones) to perform operations such as scanning, zooming, rotating, layout division, and text recognition on the acquired pictures to obtain the text content in the pictures.
  • the terminal device can display the text content in pages, that is, display part of the text content on each page.
  • the user wants to manipulate the text content, such as sharing all the text content to the user’s friends, or translating the text content of certain pages in all the text content, the user can select the area where the text content of the current page is located. Slide input to select the text content displayed on the current page sentence by sentence, and then trigger the terminal device to switch the current page to another page, and perform sliding input in the area where the text content of the other page is located. Select the text content displayed on other pages.
  • the terminal device needs to select the content in each page sentence by sentence, and may need to repeat the above-mentioned page switching process, which results in a cumbersome and time-consuming process of selecting content.
  • the embodiments of the present disclosure provide a content selection method and terminal device, which can solve the problem that the terminal device selects the content in each page word by word and repeats the page switching process, resulting in a cumbersome and time-consuming process of selecting content.
  • the embodiments of the present disclosure provide a content selection method.
  • This method can be applied to terminal equipment.
  • the method may include: when the terminal device displays the first content, receiving a first input, the first content is part of the second content; in response to the first input, selecting the first target content, the first The target content is the second content or the third content; wherein, the third content is content other than the first content in the second content, and the second content and the third content are selected by preset input content.
  • the embodiments of the present disclosure provide a terminal device.
  • the terminal device may include a receiving module, a processing module, and a display module.
  • the receiving module is configured to receive a first input when the display module displays the first content, and the first content is part of the second content;
  • the processing module is configured to respond to the first input received by the receiving module, Select the first target content, the first target content is the second content or the third content; wherein the third content is the content of the second content other than the first content, the second content and the third content
  • the content is the content selected by the preset input.
  • the embodiments of the present disclosure provide a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor.
  • the computer program implements the first The steps of the content selection method provided by the aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the content selection method provided in the first aspect are implemented.
  • the terminal device when the terminal device displays the first content, it may receive a first input, part of the first content and the second content; and in response to the first input, select the first target content,
  • the first target content is the second content or the third content
  • the third content is content other than the first content in the second content
  • the second content and the third content are selected by preset input content.
  • the user can trigger the terminal device to select all content through the preset first input , Or select all the content except the content displayed on the current page, that is, the user does not need to trigger the terminal device to switch the page displaying the content, but can select the content from the entire content through the first input, so the process of selecting the content can be simplified, and Save user time.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the disclosure
  • FIG. 2 is one of the schematic diagrams of a content selection method provided by an embodiment of the disclosure
  • FIG. 3 is a schematic diagram of displaying first content on a terminal device according to an embodiment of the disclosure.
  • FIG. 4 is one of the operation schematic diagrams of an interface displayed by a terminal device according to an embodiment of the disclosure
  • FIG. 5 is the second schematic diagram of the operation of an interface displayed by a terminal device according to an embodiment of the disclosure.
  • FIG. 6 is the third schematic diagram of operation of an interface displayed by a terminal device according to an embodiment of the disclosure.
  • FIG. 7 is the second schematic diagram of a content selection method provided by an embodiment of the disclosure.
  • FIG. 8 is the fourth schematic diagram of the operation of an interface displayed by a terminal device according to an embodiment of the disclosure.
  • FIG. 9 is the third schematic diagram of a content selection method provided by an embodiment of the disclosure.
  • FIG. 10 is a fourth schematic diagram of a content selection method provided by an embodiment of the disclosure.
  • FIG. 11 is a fifth schematic diagram of the operation of an interface displayed by a terminal device according to an embodiment of the disclosure.
  • FIG. 12 is a schematic structural diagram of a terminal device provided by an embodiment of the disclosure.
  • FIG. 13 is a schematic diagram of hardware of a terminal device provided by an embodiment of the disclosure.
  • first and second in the specification and claims of the present disclosure are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs.
  • the terminal device triggers the terminal device to switch the content on the page from the non-selected state to the selected state according to the user's selection and input of content (such as text content), so that the user can translate, copy, delete, and delete the selected content. Operations such as forwarding.
  • content such as text content
  • the embodiments of the present disclosure provide a content selection method and terminal device, which can receive a first input when the terminal device displays first content, and the first content is part of the second content; and respond to the first content. Input, select the first target content, the first target content is the second content or the third content, the third content is the content other than the first content in the second content, the second content and the third content The content is the content selected by the preset input.
  • the user can trigger the terminal device to select all content through the preset first input , Or select all the content except the content displayed on the current page, that is, the user does not need to trigger the terminal device to switch the page displaying the content, but can select the content from the entire content through the first input, so the process of selecting the content can be simplified, and Save user time.
  • the terminal device in the embodiment of the present disclosure may be a terminal device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present disclosure.
  • FIG. 1 it is a schematic structural diagram of an Android operating system provided by an embodiment of the present disclosure.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop software programs that implement the content selection method provided by the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG.
  • the selection method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the content selection method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
  • the terminal device in the embodiment of the present disclosure may be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
  • the execution subject of the content selection method provided by the embodiments of the present disclosure may be the above-mentioned terminal device, or may be a functional module and/or functional entity in the terminal device that can implement the content selection method, which can be specifically determined according to actual usage requirements.
  • the disclosed embodiments are not limited.
  • the following takes a terminal device as an example to illustrate the content selection method provided by the embodiment of the present disclosure.
  • the terminal device when the terminal device uses OCR technology to obtain more content, the terminal device can display the acquired content in pages, that is, display part of the content on each page, for example, display the entire content on the current page (below Called the second content) in the first content. If the user wants to operate on some content, the user can trigger the terminal device to select the second content or select content other than the first content in the second content (hereinafter referred to as the third content) through the first input. The user can then perform specific operations on the selected content, such as sharing the second content to the user's friends or translating the third content.
  • an embodiment of the present disclosure provides a content selection method.
  • This method can be applied to terminal equipment.
  • the method may include the following S101 and S102.
  • the terminal device receives the first input.
  • the above-mentioned first content may be part of the second content.
  • the above-mentioned second content may be all content obtained after recognizing the target picture.
  • the above-mentioned target picture may be a picture taken by the camera of the terminal device, or a picture downloaded by the terminal device from a network side device (such as a server), or a picture obtained by the terminal device through a screenshot operation.
  • a network side device such as a server
  • a picture obtained by the terminal device through a screenshot operation Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the aforementioned second content may specifically be all text content obtained after recognizing the target picture.
  • the entire text content may include words and symbols.
  • the terminal device may display the text content in pages, that is, display part of the text content in the second content on each page.
  • the terminal device may display the first content of the second content on the current page of the terminal device.
  • the terminal device can use OCR technology to scan, zoom, rotate, layout and text recognition of the target picture 01, so as to obtain the target picture 01
  • the entire text content of is the second content. Due to the large amount of all text content obtained, the terminal device can display the text content in pages.
  • the terminal device can display the target picture 01, the first content 02 of all text content, and "translation", “copy”, Function controls 03 such as "Share” and "Delete", among which, the first content 02 can be composed of multiple character blocks such as "No", "Bei", "Er”, etc. If the user wants to select some text content from all the text content, the user can trigger the terminal device to select these text content through the first input.
  • the aforementioned first input may be touch input, voice input, gesture input, or gravity input. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the first input may be a sliding input of the user's fingers or palm in one direction in the first area.
  • the first area is an area where the first content is located on the screen of the terminal device.
  • the first area may include four vertices of point A, point B, point C, and point D. If the user slides the finger or palm in the direction from point A to point D in the first area, the terminal device can receive the sliding input of the user's finger or palm in the direction from point A to point D in the first area , The first input. In this way, after receiving the user's first input, the terminal device can select the first target content and display the prompt message "Prompt information: all text content has been selected" 04 as shown in (b) in FIG. 4.
  • the above embodiment is exemplarily described by taking the first input as the sliding input of the user's finger or palm in the first area along the direction from point A to point D as an example, which does not implement the present disclosure. Examples form any limit.
  • the first input may also be a sliding input of the user's finger or palm along any other possible directions in the first area.
  • the first input may also be a sliding input of the user's finger or palm in the first area along the direction from point A to point B, or the first input
  • the input may also be a sliding input of the user's finger or palm along the direction from point C to point D in the first area, etc., which may be specifically determined according to actual usage requirements.
  • the first input may be the user's finger or palm input along the second direction on the first plane. Wherein, the distance between the first plane and the plane where the screen of the terminal device is located is less than or equal to the preset distance.
  • the first target content when the first input is the input in the second manner, the first target content may specifically be the second content or the third content.
  • the first target content can also be other content, which can be specifically determined according to actual usage requirements.
  • the terminal device may use the air-space operation technology to receive the first input of the user.
  • an ultrasonic sensor may be built under the screen of the terminal device, and the ultrasonic sensor may include multiple ultrasonic sensing units.
  • the terminal device can periodically scan each ultrasonic sensing unit and obtain the projection image of the user's finger or palm on the screen. By processing the projection image, the user can operate the terminal device without contact on the screen. Realize the function of air operation.
  • the second direction is a direction from the top E of the terminal device to the bottom F of the terminal device.
  • FIG. 5(a) it is a top view of the sliding input of the palm of the user on the first plane along the second direction provided by the embodiment of the present disclosure.
  • FIG. 5(b) a cross-sectional view of sliding input of the user's palm on the first plane along the second direction provided by the embodiment of the present disclosure, where the first plane P1 and the screen P2 of the terminal device are located The distance between the planes is d2, and the distance d2 may be less than or equal to the preset distance d1.
  • the terminal device can select the first target content, for example, select the second content, and display the prompt message "Prompt information: all completed" as shown in Figure 5 (c) Select all text content "04.
  • the foregoing embodiment is exemplarily described by taking the second direction as the direction from the top E of the terminal device to the bottom F of the terminal device as an example, which does not limit the embodiments of the present disclosure in any way. It can be understood that the first direction may also be any other possible directions.
  • the terminal device selects the first target content, and the first target content is the second content or the third content.
  • the aforementioned third content may be content other than the first content in the second content.
  • the second content and the third content are content selected through preset input.
  • the first target content may also be the first content or the fourth content
  • the fourth content is any content randomly selected by the user from the second content.
  • different first inputs may be used to trigger selection of different first target content.
  • the second content below includes the text content of page 1 (that is, the text content of the current page), the text content of page 2,..., and the text content of page 9, and the preset input (ie the first input) Taking the user's finger or palm sliding input in a preset direction in the first area as an example, the terminal device selects the first target content in response to the first input:
  • the preset input is a sliding input of the user's finger or palm along the direction from point A to point B in the first area as shown in (a) of FIG. 4, the preset The input is used to trigger the selection of the first content. If the terminal device receives the user's finger or palm sliding input in the direction from point A to point B in the first area (ie the first input), the terminal device can select the first page text in response to the first input Content, that is, when the first input is a preset input, the terminal device can select the first content.
  • the preset input is a sliding input of the user's finger or palm along the direction from point A to point D in the first area shown in FIG. 4(a)
  • the preset The input is used to trigger the selection of the second content. If the terminal device receives the user's finger or palm sliding input in the direction from point A to point D in the first area (ie the first input), then the terminal device can select the first page text in response to the first input The content, the text content on page 2, ..., and the text content on page 9, that is, when the first input is a preset input, the terminal device can select the second content.
  • the preset input is a sliding input of the user's finger or palm along the direction from point A to point C in the first area as shown in FIG. 4(a)
  • the preset The input is used to trigger the selection of the third content. If the terminal device receives the user's finger or palm sliding input in the direction from point A to point C in the first area (ie the first input), the terminal device can select the text on page 2 in response to the first input Content,..., the text content on page 9, that is, the terminal device can select the third content when the first input is a preset input.
  • the second content is still used below, including the text content of page 1 (ie the text content of the current page), the text content of page 2,..., and the text content of page 9, and the first input is for multiple sub-options
  • the terminal device selects the first target content in response to the first input as an example:
  • the terminal device may display the first interface 05 as shown in (a) in FIG. 6, and the first interface 05 Can include 9 sub-options, each sub-option can be used to select the text content in a page.
  • the terminal device can select the text content (that is, the fourth content) randomly selected by the user from all the text content (custom selection) in response to the received first input of the user for the three sub-options ), and display the prompt message "Prompt Information: The text content of page 2, page 4 and page 9" 06 as shown in Figure 6 (c).
  • the user may perform target operations on the first target content, where the target operations may include translation operations, copy operations, sharing operations, and deletion operations.
  • the user can trigger the terminal device to translate the first target content by inputting the translation control, for example, the first target content is translated from Chinese to English; or the user can trigger the terminal device by inputting the copy control Copy the first target content; alternatively, the user can trigger the terminal device to share the first target content to the user’s friends by inputting the sharing control; or, the user can trigger the terminal device to delete the first target content from the terminal device by inputting the delete control One target content.
  • the user can also perform any other possible operations on the first target content, which can be specifically determined according to actual usage requirements, which are not limited in the embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a method for selecting content, because when there are many contents in the terminal device, for example, when there are many text contents obtained after recognizing a target picture, the user can pass the preset first input , Trigger the terminal device to select all the content, or select all the content except the content displayed on the current page, that is, the user does not need to trigger the terminal device to switch the page displaying the content, but can select the content from the entire content through the first input, so it can Simplify the process of selecting content and save users time.
  • the content selection method provided by the embodiment of the present disclosure may further include the following S103 and S104.
  • the "terminal device receiving the first input” in the foregoing S101 may be specifically implemented by the following S101A
  • the foregoing S102 may be specifically implemented by the following S102A or S102B.
  • the terminal device receives a second input.
  • the aforementioned second input may be touch input, voice input, gesture input, or gravity input. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • S103 may specifically include: the terminal device receives a sliding input of the user's finger or palm in the first area in the first direction.
  • the first area is an area where the first content is located on the screen of the terminal device.
  • the embodiments of the present disclosure do not specifically limit the first direction, which can be specifically determined according to actual usage requirements.
  • the first area shown in (a) in FIG. 4 is still taken as an example for exemplary description.
  • the first direction may be a direction from point A to point D, or a direction from point B to point C. , Or the direction from point A to point B, or the direction from point D to point B, etc.
  • the terminal device selects the fifth content in the process of receiving the sliding input of the user's finger or palm in the first direction in the first area.
  • the fifth content is part or all of the first content, and the fifth content is selected.
  • the number of characters contained in the content is compared with a preset threshold, and when the number of characters contained in the fifth content is greater than or equal to the preset threshold, step S104 is triggered to execute.
  • the terminal device In response to the second input, displays a target option, where the target option includes a first option and a second option.
  • the above-mentioned first option can be used to select the second content, and the above-mentioned second option can be used to select the third content.
  • the terminal device receives a first input for one of the target options.
  • the terminal device selects the second content.
  • the terminal device selects the third content.
  • the target option may also include other possible options, which can be specifically determined according to actual usage requirements.
  • the target option may further include a third option and a fourth option, the third option may be used to select the first content, and the fourth option may be used to select the fourth content.
  • the first target content is the second content; if the first input is the user's input to the second option, the first target content is the third Content; if the first input is the user's input to the third option, the first target content is the first content; if the first input is the user's input to the fourth option, the first target content is the fourth content.
  • the terminal device may display the target option with a preset transparency in a preset area of the screen of the terminal device.
  • the terminal device may display target options with a preset transparency of 30%.
  • the user can drag the target option on the screen of the terminal device to trigger the terminal device to change the display position of the target option on the screen, that is, to change the display area of the target option.
  • the foregoing fourth option may include multiple sub-options, and the fourth content may include multiple sub-contents. Among them, each sub-option can be used to select a different sub-content in the fourth content.
  • FIG. 8 is a schematic diagram of the terminal device provided by an embodiment of the disclosure displaying target options
  • FIG. 8 is an enlarged view of the target options in (a) in FIG. 8.
  • the second input is a sliding input along the first direction in the first area of the screen of the terminal device (the first area is the area where the first content is located on the screen of the terminal device).
  • the terminal device can respond to the second input and display the target option 07 as shown in (a) in FIG.
  • the target option 07 may include a first option 071, a second option 072, a third option 073, and a fourth option 074.
  • the terminal device can select the second content, the third content, or the first content; and if the user clicks the fourth option 074, the terminal device can select
  • the interface shown in (a) of FIG. 8 is switched to the first interface 05 shown in (a) of FIG. 6, and the first interface 05 may include multiple sub-options.
  • the content selection method provided by the embodiments of the present disclosure allows the user to select different text content by inputting different options by displaying different options on the screen of the terminal device, thereby improving the flexibility and diversity of the text content selection by the user .
  • the content selection method provided in the embodiment of the present disclosure may further include the following S105 and S106.
  • the above S101A can be realized by the following S101A1.
  • the terminal device After displaying the target option, the terminal device starts timing.
  • the terminal device performs any one of the following after the first time period: selecting the first content, selecting the second content, and selecting the first content. Three content.
  • the terminal device receives a first input for one of the target options.
  • the aforementioned first duration may be 5 seconds, 10 seconds, 60 seconds, or the like. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the first time duration is 10 seconds as an example for exemplary description.
  • the terminal device can start the timer and start timing. If the terminal device does not receive the user’s input to any of the target options before the timer reaches 10 seconds, the terminal device can perform a default operation. For example, the default operation can be to select the first content, select the second content, and select The third content; and if the terminal device receives the user’s input to one of the target options before the timer reaches 10 seconds, the terminal device can select the text content corresponding to the one option, for example, the terminal device receives the user’s Enter the first option, then the terminal device can select all text content (ie, the second content).
  • the terminal device can perform the default operation and automatically select certain text content under the condition that no input to the target option is received within the first time period after the target option is displayed.
  • the flexibility of the terminal device to select text content is provided by the embodiment of the present disclosure.
  • the content selection method provided by the embodiment of the present disclosure may further include the following S107 and S108, or may include the following S107 and S109.
  • the terminal device After receiving the first input, the terminal device starts timing.
  • the terminal device after receiving the first input, can start the timer, start timing, and keep displaying the target option for the second duration.
  • the terminal device responds to the third input to uncheck the first target content, and select The second target content.
  • the aforementioned second target content may be content in the second content.
  • the aforementioned third input may be an input to another option in the target option.
  • the foregoing second target content may be different from the first target content.
  • the terminal device may respond to the third input by deselecting the first option.
  • Second content ie, the first target content
  • select the third content ie, the second target content
  • the terminal device may respond to the third input by deselecting the first option.
  • Three content ie, the first target content
  • select the second content ie, the second target content
  • the terminal device may respond to the third input to deselect the first option.
  • Second content ie, the first target content
  • select the first content ie, the second target content
  • restart timing ie, the first target content
  • the terminal device may respond to the third input by deselecting the first option.
  • Three content ie the first target content
  • select the first content ie the second target content
  • restart the timing ie the first target content
  • the second duration may be 10 seconds, 20 seconds, 30 seconds, and so on. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the terminal device cancels displaying the target option after the second time period.
  • the terminal device may start a timer and start timing. If the user's third input is not received within the second time period, the terminal device may cancel the display of the target option after the timing period reaches the second time period.
  • the terminal device first executes S102A or S102B, and then executes S107 as an example for illustration, which does not limit the embodiment of the present disclosure in any way. It can be understood that in actual implementation, the terminal device may also execute S102A or S102B, and S107 at the same time; or may also execute S107 first, and then execute S102A or S102B, which may be determined according to actual usage requirements.
  • the terminal device since the terminal device can keep displaying the target option within the second time period after receiving the first input, the user can determine whether to reselect the text content according to needs, thereby improving the user’s Sense of experience.
  • the first target content may be the second content.
  • the content selection method provided by the embodiment of the present disclosure may further include the following S110 and S111.
  • the terminal device receives the fourth input of the user.
  • the terminal device cancels the selection of the second content.
  • the above-mentioned fourth input may be the input of the user's fingers or palm along the third direction on the first plane. This third direction is different from the second direction.
  • the second direction is the direction from the top E of the terminal device to the bottom F of the terminal device as shown in Fig. 5 (a) and Fig. 5 (b)
  • the third direction is as shown in Fig. 11 (a) and the direction from the bottom F of the terminal device to the top E of the terminal device as shown in (b) in FIG. 11, and the second direction is opposite to the third direction, as an example for illustration :
  • the user’s fingers or palm can move in the direction from the top E of the terminal device to the bottom F of the terminal device on the first plane, if The terminal device receives the user's sliding input in the direction from the top E of the terminal device to the bottom F of the terminal device on the first plane (ie the first input), then the terminal device can respond to the first input and select the second Content, and display the prompt message "Prompt Message: All text content has been selected" 04 as shown in (c) in Figure 5.
  • the user's fingers or palm can move in the direction from the bottom F of the terminal device to the top E of the terminal device on the first plane. If the terminal device receives the user's sliding input in the direction from the bottom F of the terminal device to the top E of the terminal device on the first plane (that is, the fourth input), the terminal device can respond to the fourth input and cancel the selection The second content, and the prompt message "Prompt Message: All text content has been canceled" 08 shown in (c) in Figure 11 is displayed.
  • the user's finger or palm when the user's finger or palm is within a certain distance from the screen, since the user can control the terminal device to select or deselect text content without touching the screen, the user can be avoided It is inconvenient to touch the screen directly if there is water or dirt on the hand, which can improve the user experience.
  • an embodiment of the present disclosure provides a terminal device 1200.
  • the terminal device may include a receiving module 1201, a processing module 1202, and a display module 1203.
  • the receiving module 1201 may be used to receive a first input when the display module 1203 displays the first content, and the first content may be part of the second content.
  • the processing module 1202 may be configured to select first target content in response to the first input received by the receiving module 1201, and the first target content may be the second content or the third content.
  • the third content may be content other than the first content in the second content, and the second content and the third content may be content selected by preset input.
  • the receiving module 1201 may also be used to receive a second input before receiving the first input.
  • the display module 1203 may also be configured to display a target option in response to the second input received by the receiving module 1201, and the target option may include a first option and a second option.
  • the receiving module 1201 may be specifically configured to receive the first input for one of the target options.
  • the processing module 1202 may be specifically used to: select the second content when the one option is the first option; or select the third content when the one option is the second option.
  • the receiving module 1201 may be specifically configured to receive a sliding input of the user's finger or palm in a first direction in a first area, and the first area may be the first area on the screen of the terminal device. The area where the content is located.
  • the receiving module 1201 may be specifically configured to receive the first input for an option within the first time period after the display module 1203 displays the target option.
  • the processing module 1202 can also be used to, if the receiving module 1201 does not receive the input for the target option within the first time period after the display module 1203 displays the target option, execute any of the following items after the first time period: One content, select the second content, select the third content.
  • the processing module 1202 may also be used to: if within a second time period after the receiving module 1201 receives the first input, receive a third input for another option in the target option , In response to the third input, deselect the first target content and select the second target content, the second target content may be content in the second content; or, if the first input is received by the receiving module 1201 If the third input is not received within the second time period, after the second time period, the target option is cancelled.
  • the above-mentioned first input may be an input of the user's fingers or palm in a second direction on a first plane, and the distance between the first plane and the plane where the screen of the terminal device is located is less than or Equal to the preset distance.
  • the first target content may be the second content.
  • the receiving module 1201 may also be configured to receive the fourth input after the processing module 1202 selects the first target content.
  • the processing module 1202 may also be configured to deselect the second content in response to the fourth input received by the receiving module 1201.
  • the fourth input may be an input of the user's finger or palm along a third direction on the first plane, and the third direction is different from the second direction.
  • the second content may be all content obtained after recognizing the target picture.
  • the terminal device provided in the embodiment of the present disclosure can implement each process implemented by the terminal device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
  • the embodiments of the present disclosure provide a terminal device. Since there are many contents in the terminal device, for example, when there are many text contents obtained after recognizing a target picture, the terminal device can respond to the user's first input , Select all the content, or select all the content except the content displayed on the current page, that is, the user does not need to trigger the terminal device to switch the page displaying the content, but can select content from the entire content through the first input, so the embodiment of the present disclosure
  • the provided terminal equipment can simplify the process of selecting content and save users time.
  • FIG. 13 is a schematic diagram of the hardware structure of a terminal device that implements various embodiments of the present disclosure.
  • the terminal device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , Processor 210, and power supply 211.
  • the terminal device may include more or less components than those shown in the figure, or combine certain components, or different components. Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
  • the user input unit 207 can be used to receive a first input when the display unit 206 displays the first content, and the first content can be part of the second content; the processor 210 can be used to respond to The first input received by the user input unit 207 selects the first target content, and the first target content may be the second content or the third content.
  • the third content may be content other than the first content in the second content, and the second content and the third content may be content selected through preset input.
  • the embodiments of the present disclosure provide a terminal device. Since there are many contents in the terminal device, for example, when there are many text contents obtained after recognizing a target picture, the terminal device can respond to the user's first input , Select all the content, or select all the content except the content displayed on the current page, that is, the user does not need to trigger the terminal device to switch the page displaying the content, but can select content from the entire content through the first input, so the embodiment of the present disclosure
  • the provided terminal equipment can simplify the process of selecting content and save users time.
  • the radio frequency unit 201 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 210; Uplink data is sent to the base station.
  • the radio frequency unit 201 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.
  • the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal device 200 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 204 is used to receive audio or video signals.
  • the input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042, and the graphics processor 2041 is configured to monitor still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 206.
  • the image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202.
  • the microphone 2042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
  • the terminal device 200 also includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 2061 and the display panel 2061 when the terminal device 200 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 205 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 206 is used to display information input by the user or information provided to the user.
  • the display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 207 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 207 includes a touch panel 2071 and other input devices 2072.
  • the touch panel 2071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operating).
  • the touch panel 2071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 210, the command sent by the processor 210 is received and executed.
  • the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 207 may also include other input devices 2072.
  • other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 2071 can be overlaid on the display panel 2061.
  • the touch panel 2071 detects a touch operation on or near it, it transmits it to the processor 210 to determine the type of touch event, and then the processor 210 The type of touch event provides corresponding visual output on the display panel 2061.
  • the touch panel 2071 and the display panel 2061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 208 is an interface for connecting an external device with the terminal device 200.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 208 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 200 or can be used to connect the terminal device 200 to an external device. Transfer data between devices.
  • the memory 209 can be used to store software programs and various data.
  • the memory 209 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 210 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 209, and calls the data stored in the memory 209. , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
  • the terminal device 200 may also include a power source 211 (such as a battery) for supplying power to various components.
  • a power source 211 such as a battery
  • the power source 211 may be logically connected to the processor 210 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal device 200 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a terminal device, including a processor 210 as shown in FIG. 13, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is
  • the processor 210 implements each process of the foregoing method embodiment when executing, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • computer-readable storage media such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks, or optical disks, etc.
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种内容选中方法及终端设备,该方法包括:在终端设备显示第一内容的情况下,接收第一输入,该第一内容为第二内容中的部分内容;响应于该第一输入,选中第一目标内容,该第一目标内容为第二内容或第三内容;其中,该第三内容为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容为通过预设输入选择的内容。

Description

内容选中方法及终端设备
本申请要求于2019年04月22日提交国家知识产权局、申请号为201910323232.3、申请名称为“一种内容选中方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及通信技术领域,尤其涉及一种内容选中方法及终端设备。
背景技术
光学字符识别(optical character recognition,OCR)技术是指利用终端设备(例如手机)对获取的图片进行扫描、缩放、旋转、版面划分和文字识别等操作,以获取图片中的文本内容的技术。
目前,在终端设备利用OCR技术获取到的文本内容较多的情况下,终端设备可以分页显示文本内容,即在每页分别显示部分文本内容。然而,如果用户想要对文本内容进行操作,例如将所有文本内容分享至用户好友,或者对所有文本内容中的某几个页面的文本内容进行翻译,那么用户可以在当前页面的文本内容所在区域中进行滑动输入,以逐句逐字选中当前页面上显示的文本内容,然后再触发终端设备将当前页面切换为其他页面,并在其他页面的文本内容所在区域中进行滑动输入,以逐句逐字选中其他页面上显示的文本内容。
如此,终端设备需要逐句逐字选中每个页面中的内容,并且可能需要重复上述页面切换过程,从而导致选中内容的过程较为繁琐且耗时。
发明内容
本公开实施例提供一种内容选中方法及终端设备,能够解决终端设备逐句逐字选中每个页面中的内容,并重复页面切换过程,导致选中内容的过程较为繁琐且耗时的问题。
为了解决上述技术问题,本公开实施例是这样实现的:
第一方面,本公开实施例提供了一种内容选中方法。该方法可以应用于终端设备。该方法可以包括:在终端设备显示第一内容的情况下,接收第一输入,该第一内容为第二内容中的部分内容;响应于该第一输入,选中第一目标内容,该第一目标内容为该第二内容或第三内容;其中,该第三内容为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容为通过预设输入选择的内容。
第二方面,本公开实施例提供了一种终端设备。该终端设备可以包括接收模块、处理模块和显示模块。接收模块,用于在显示模块显示第一内容的情况下,接收第一输入,该第一内容为第二内容中的部分内容;处理模块,用于响应于接收模块接收的该第一输入,选中第一目标内容,该第一目标内容为第二内容或第三内容;其中,该第三内容为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容为通过预设输入选择的内容。
第三方面,本公开实施例提供了一种终端设备,包括处理器、存储器及存储在该 存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的内容选中方法的步骤。
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的内容选中方法的步骤。
在本公开实施例中,可以在终端设备显示第一内容的情况下,接收第一输入,该第一内容第二内容中的部分内容;并响应于该第一输入,选中第一目标内容,该第一目标内容为第二内容或第三内容,该第三内容为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容为通过预设输入选择的内容。通过该方案,由于在终端设备中的内容较多的情况下,例如在对目标图片识别后获取的文本内容较多的情况下,用户可以通过预设的第一输入,触发终端设备选中全部内容,或者选中全部内容中除当前页面显示的内容外的内容,即用户无需触发终端设备切换显示内容的页面,而可以通过第一输入从全部内容中选中内容,因此可以简化选中内容的过程,并节省用户时间。
附图说明
图1为本公开实施例提供的一种安卓操作***的架构示意图;
图2为本公开实施例提供的一种内容选中方法的示意图之一;
图3为本公开实施例提供的一种终端设备显示第一内容的示意图;
图4为本公开实施例提供的一种终端设备显示的界面的操作示意图之一;
图5为本公开实施例提供的一种终端设备显示的界面的操作示意图之二;
图6为本公开实施例提供的一种终端设备显示的界面的操作示意图之三;
图7为本公开实施例提供的一种内容选中方法的示意图之二;
图8为本公开实施例提供的一种终端设备显示的界面的操作示意图之四;
图9为本公开实施例提供的一种内容选中方法的示意图之三;
图10为本公开实施例提供的一种内容选中方法的示意图之四;
图11为本公开实施例提供的一种终端设备显示的界面的操作示意图之五;
图12为本公开实施例提供的终端设备的结构示意图;
图13为本公开实施例提供的终端设备的硬件示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本公开的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入。
在本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公 开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。
在本公开实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。
下面对本公开实施例中涉及的一些术语/名词进行解释说明。
选中:是指终端设备根据用户对内容(例如文本内容)的选择输入,触发终端设备将页面中的内容由非选中状态切换为选中状态,从而用户可以对选中的内容进行翻译、复制、删除和转发等操作。
本公开实施例提供一种内容选中方法及终端设备,可以在终端设备显示第一内容的情况下,接收第一输入,该第一内容为第二内容中的部分内容;并响应于该第一输入,选中第一目标内容,该第一目标内容为第二内容或第三内容,该第三内容为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容为通过预设输入选择的内容。通过该方案,由于在终端设备中的内容较多的情况下,例如在对目标图片识别后获取的文本内容较多的情况下,用户可以通过预设的第一输入,触发终端设备选中全部内容,或者选中全部内容中除当前页面显示的内容外的内容,即用户无需触发终端设备切换显示内容的页面,而可以通过第一输入从全部内容中选中内容,因此可以简化选中内容的过程,并节省用户时间。
本公开实施例中的终端设备可以为具有操作***的终端设备。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本公开实施例不作具体限定。
以安卓操作***为例,介绍一下本公开实施例提供的内容选中方法所应用的软件环境。
如图1所示,为本公开实施例提供的一种安卓操作***的架构示意图。在图1中,安卓操作***的架构包括4层,分别为:应用程序层、应用程序框架层、***运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作***中的各个应用程序(包括***应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
***运行库层包括库(也称为***库)和安卓操作***运行环境。库主要为安卓操作***提供其所需的各类资源。安卓操作***运行环境用于为安卓操作***提供软件环境。
内核层是安卓操作***的操作***层,属于安卓操作***软件层次的最底层。内核层基于Linux内核为安卓操作***提供核心***服务和与硬件相关的驱动程序。
以安卓操作***为例,本公开实施例中,开发人员可以基于上述如图1所示的安卓操作***的***架构,开发实现本公开实施例提供的内容选中方法的软件程序,从而使得该内容选中方法可以基于如图1所示的安卓操作***运行。即处理器或者终端设备可以通过在安卓操作***中运行该软件程序实现本公开实施例提供的内容选中方法。
本公开实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人 数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本公开实施例不作具体限定。
本公开实施例提供的内容选中方法的执行主体可以为上述的终端设备,也可以为该终端设备中能够实现该内容选中方法的功能模块和/或功能实体,具体可以根据实际使用需求确定,本公开实施例不作限定。下面以终端设备为例,对本公开实施例提供的内容选中方法进行示例性的说明。
本公开实施例中,在终端设备利用OCR技术获取到的内容较多的情况下,终端设备可以分页显示获取到的内容,即在每页分别显示部分内容,例如在当前页显示全部内容(以下称为第二内容)中的第一内容。如果用户想要对某些内容进行操作,那么用户可以先通过第一输入,触发终端设备选中第二内容或选中第二内容中除第一内容之外的内容(以下称为第三内容),然后用户可以再对选中的内容进行具体操作,例如将第二内容分享至用户好友或者对第三内容进行翻译等。
如图2所示,本公开实施例提供一种内容选中方法。该方法可以应用于终端设备。该方法可以包括下述的S101和S102。
S101、在终端设备显示第一内容的情况下,终端设备接收第一输入。
其中,上述第一内容可以为第二内容中的部分内容。
可选地,本公开实施中,上述第二内容可以为对目标图片识别后获取的全部内容。
可选地,上述目标图片可以为通过终端设备的摄像头拍摄的图片,或者为终端设备从网络侧设备(例如服务器)下载的图片,或者为终端设备通过截屏操作得到的图片等。具体可以根据实际使用需求确定,本公开实施例不作限定。
可选地,上述第二内容具体可以为对目标图片识别后获取的全部文本内容。其中,该全部文本内容中可以包括文字和符号等。
可选地,在上述第二内容较多的情况下,终端设备可以分页显示文本内容,即在每页分别显示第二内容中的部分文本内容。例如,终端设备可以在终端设备的当前页面显示第二内容中的第一内容。
示例性的,如图3所示,在获取目标图片01之后,终端设备可以利用OCR技术对该目标图片01进行扫描、缩放、旋转、版面划分和文字识别等,从而可以获取该目标图片01中的全部文本内容,即第二内容。由于获取的全部文本内容较多,因此终端设备可以分页显示文本内容,例如,终端设备可以在当前页面显示目标图片01、全部文本内容中的第一内容02、以及“翻译”、“复制”、“分享”和“删除”等功能控件03,其中,第一内容02可以由“诺”、“贝”、“尔”等多个字符块组成。如果用户想要从全部文本内容中选中某些文本内容,那么用户可以通过第一输入,触发终端设备选中这些文本内容。
可选地,本公开实施例中,上述第一输入可以为触控输入、语音输入、手势输入或重力输入等。具体可以根据实际使用需求确定,本公开实施例不作限定。
下面以方式一和方式二为例,对第一输入进行示例性地说明:
方式一、第一输入可以为用户的手指或手掌在第一区域中沿一个方向的滑动输入。其中,该第一区域为终端设备的屏幕中第一内容所在的区域。
示例性的,如图4中的(a)所示,第一区域可以包括点A、点B、点C和点D这四 个顶点。如果用户在该第一区域中沿着点A到点D的方向滑动手指或手掌,那么终端设备可以接收到用户的手指或手掌在第一区域中沿着点A到点D的方向的滑动输入,即第一输入。如此,在接收到用户的第一输入之后,终端设备可以选中第一目标内容,并显示如图4中的(b)所示的提示信息“提示信息:已全选所有文本内容”04。
需要说明的是,上述实施例是以第一输入为用户的手指或手掌在第一区域中沿着点A到点D的方向的滑动输入为例进行示例性说明的,其并不对本公开实施例形成任何限定。可以理解,第一输入还可以为用户的手指或手掌在第一区域中沿着其他任意可能的方向的滑动输入。示例性的,仍以图4中的(a)为例进行说明,第一输入还可以为用户的手指或手掌在第一区域中沿着点A到点B的方向的滑动输入,或者第一输入还可以为用户的手指或手掌在第一区域中沿着点C到点D的方向的滑动输入等,具体可以根据实际使用需求确定。
方式二、第一输入可以为用户的手指或手掌在第一平面上沿第二方向的输入。其中,该第一平面与终端设备的屏幕所在平面之间的距离小于或等于预设距离。
可选地,本公开实施例中,在第一输入为方式二中的输入的情况下,第一目标内容具体可以为第二内容或第三内容。当然,该第一目标内容还可以为其他内容,具体可以根据实际使用需求确定。
可选地,本公开实施例中,终端设备可以利用隔空操作技术,接收用户的第一输入。例如,终端设备的屏幕下方可以内置超声波传感器,该超声波传感器可以包括多个超声波感应单元。终端设备可以周期性地对各个超声波感应单元进行扫描,并获取用户的手指或手掌在屏幕上的投影图像,通过对投影图像处理,可以使得用户可以在屏幕上方非接触地操作终端设备,即可以实现隔空操作功能。
示例性的,假设第二方向为由终端设备的顶部E到终端设备的底部F的方向。如图5中的(a)所示,为本公开实施例提供的用户的手掌在第一平面上沿第二方向的滑动输入的俯视图。如图5中的(b)所示,为本公开实施例提供的用户的手掌在第一平面上沿第二方向的滑动输入的剖面图,其中,第一平面P1到终端设备的屏幕P2所在平面之间的距离为d2,且距离d2可以小于或等于预设距离d1。如此,在终端设备接收到用户的第一输入之后,终端设备可以选中第一目标内容,例如选中第二内容,并显示如图5中的(c)所示的提示信息“提示信息:已全选所有文本内容”04。
需要说明的是,上述实施例是以第二方向为终端设备的顶部E到终端设备的底部F的方向为例进行示例性说明的,其并不对本公开实施例形成任何限定。可以理解,第一方向还可以为其他任意可能的方向。
S102、终端设备响应于该第一输入,选中第一目标内容,该第一目标内容为第二内容或第三内容。
其中,上述第三内容可以为第二内容中除第一内容之外的内容。该第二内容和该第三内容为通过预设输入选择的内容。
可选地,本公开实施例中,第一目标内容还可以为第一内容或第四内容,该第四内容为用户从该第二内容中随机选择的任意内容。
本公开实施例中,不同的第一输入可以用于触发选中不同的第一目标内容。
(1)、下面以第二内容包括第1页文本内容(即当前页面的文本内容)、第2页文本 内容、……、以及第9页文本内容,且预设输入(即第一输入)为用户的手指或手掌在第一区域中沿一个预设方向的滑动输入为例,对终端设备响应于第一输入选中第一目标内容进行示例性说明:
示例性的,假设在预设输入为用户的手指或手掌在如图4中的(a)所示的第一区域中沿着点A到点B的方向的滑动输入的情况下,该预设输入用于触发选中第一内容。如果终端设备接收到用户的手指或手掌在第一区域中沿着点A到点B的方向的滑动输入(即第一输入),那么终端设备可以响应于该第一输入,选中第1页文本内容,即在第一输入为预设输入的情况下,终端设备可以选中即第一内容。
示例性的,假设在预设输入为用户的手指或手掌在如图4中的(a)所示的第一区域中沿着点A到点D的方向的滑动输入的情况下,该预设输入用于触发选中第二内容。如果终端设备接收到用户的手指或手掌在第一区域中沿着点A到点D的方向的滑动输入(即第一输入),那么终端设备可以响应于该第一输入,选中第1页文本内容、第2页文本内容、……、以及第9页文本内容,即在第一输入为预设输入的情况下,终端设备可以选中第二内容。
示例性的,假设在预设输入为用户的手指或手掌在如图4中的(a)所示的第一区域中沿着点A到点C的方向的滑动输入的情况下,该预设输入用于触发选中第三内容。如果终端设备接收到用户的手指或手掌在第一区域中沿着点A到点C的方向的滑动输入(即第一输入),那么终端设备可以响应于该第一输入,选中第2页文本内容、……、第9页文本内容,即在第一输入为预设输入的情况下,终端设备可以选中第三内容。
(2)、下面仍以第二内容包括第1页文本内容(即当前页面的文本内容)、第2页文本内容、……、以及第9页文本内容,且第一输入为对多个子选项的选择输入为例,对终端设备响应于第一输入,选中第一目标内容进行示例性说明:
示例性的,如果用户在终端设备的屏幕中沿着预设方向滑动手指或按压屏幕等,那么终端设备可以显示如图6中的(a)所示的第一界面05,该第一界面05可以包括9个子选项,每个子选项可以用于选中一个页面中的文本内容。如图6中的(b)所示,如果用户点击第一界面05中第2页文本内容对应的子选项“2”、第4页文本内容对应的子选项“4”、第9页文本内容对应的子选项“9”,那么终端设备可以响应于接收到的用户对这三个子选项的第一输入,选中用户从全部文本内容中随机选择(自定义选择)的文本内容(即第四内容),并显示如图6中的(c)所示的提示信息“提示信息:已选中第2页、第4页和第9页的文本内容”06。
可选地,本公开实施例中,在选中第一目标内容之后,用户可以对第一目标内容进行目标操作,其中目标操作可以包括翻译操作、复制操作、分享操作和删除操作等。
示例性的,用户可以通过对翻译控件的输入,触发终端设备对第一目标内容进行翻译,例如将第一目标内容由中文翻译为英文;或者,用户可以通过对复制控件的输入,触发终端设备复制第一目标内容;或者,用户可以通过对分享控件的输入,触发终端设备将第一目标内容分享至用户好友;或者,用户可以通过对删除控件的输入,触发终端设备从终端设备中删除第一目标内容。当然,用户还可以对第一目标内容进行其他任意可能的操作,具体可以根据实际使用需求确定,本公开实施例不作限定。
本公开实施例提供一种内容选中方法,由于在终端设备中的内容较多的情况下,例如在对目标图片识别后获取的文本内容较多的情况下,用户可以通过预设的第一输入,触 发终端设备选中全部内容,或者选中全部内容中除当前页面显示的内容外的内容,即用户无需触发终端设备切换显示内容的页面,而可以通过第一输入从全部内容中选中内容,因此可以简化选中内容的过程,并节省用户时间。
可选地,结合图2,如图7所示,在上述S101中的“终端设备接收第一输入”之前,本公开实施例提供的内容选中方法还可以包括下述的S103和S104。相应的,上述S101中的“终端设备接收第一输入”具体可以通过下述的S101A实现,并且,上述S102具体可以通过下述的S102A或S102B实现。
S103、在终端设备显示第一内容的情况下,终端设备接收第二输入。
可选地,本公开实施例中,上述第二输入可以为触控输入、语音输入、手势输入或重力输入等。具体可以根据实际使用需求确定,本公开实施例不作限定。
可选地,本公开实施例中,S103具体可以包括:终端设备接收用户的手指或手掌在第一区域中沿第一方向的滑动输入。其中,该第一区域为终端设备的屏幕中第一内容所在的区域。
需要说明的是,本公开实施例对第一方向不作具体限定,具体可以根据实际使用需求确定。示例性的,仍以图4中的(a)所示的第一区域为例进行示例性说明,第一方向可以为由点A到点D的方向,或为由点B到点C的方向,或为由点A到点B的方向,或为由点D到点B的方向等。
可选地,终端设备接收用户的手指或手掌在第一区域中沿第一方向的滑动输入过程中,选中第五内容,第五内容为第一内容中的部分内容或者全部内容,将第五内容包含的字符数与预设阈值比较,在第五内容包含的字符数大于或者等于预设阈值时,触发执行步骤S104。
S104、终端设备响应于该第二输入,显示目标选项,该目标选项包括第一选项和第二选项。
其中,上述第一选项可以用于选中第二内容,上述第二选项可以用于选中第三内容。
S101A、终端设备接收针对目标选项中的一个选项的第一输入。
S102A、在该一个选项为第一选项的情况下,终端设备选中第二内容。
S102B、在该一个选项为第二选项的情况下,终端设备选中第三内容。
需要说明的是,上述实施例是以目标选项包括第一选项和第二选项为例进行示例性说明的,其并不对本公开实施例形成任何限定。可以理解,实际实现时,目标选项还可以包括其他可能的选项,具体可以根据实际使用需求确定。例如,目标选项还可以包括第三选项和第四选项,该第三选项可以用于选中第一内容,第四选项可以用于选中第四内容。
本公开实施例中,若第一输入为用户对第一选项的输入,则第一目标内容为第二内容;若第一输入为用户对第二选项的输入,则第一目标内容为第三内容;若第一输入为用户对第三选项的输入,则第一目标内容为第一内容;若第一输入为用户对第四选项的输入,则第一目标内容为第四内容。
可选地,本公开实施例中,终端设备可以在终端设备的屏幕的预设区域中以预设透明度显示目标选项。例如,终端设备可以以预设透明度为30%,显示目标选项。
可选地,本公开实施例中,用户可以在终端设备的屏幕中拖动目标选项,以触发终端设备更改目标选项在屏幕中的显示位置,即更改目标选项的显示区域。
可选地,本公开实施例中,上述第四选项可以包括多个子选项,第四内容可以包括多个子内容。其中,每个子选项可以用于选中第四内容中的不同子内容。
示例性的,图8中的(a)为本公开实施例提供的终端设备显示目标选项的示意图,图8中的(b)为对图8中的(a)中的目标选项的放大图。假设第二输入为在终端设备的屏幕的第一区域(该第一区域为终端设备的屏幕中第一内容所在的区域)中沿第一方向的滑动输入。如果终端设备接收到用户在屏幕中沿第一方向的滑动输入,即第二输入,那么终端设备可以响应于该第二输入,显示如图8中的(a)所示的目标选项07,该目标选项07可以包括第一选项071、第二选项072、第三选项073、第四选项074。如果用户点击第一选项071或第二选项072或第三选项073,那么终端设备可以选中第二内容或第三内容、或第一内容;而如果用户点击第四选项074,那么终端设备可以将如图8中的(a)所示的界面切换为如图6中的(a)所示的第一界面05,且该第一界面05可以包括多个子选项。
需要说明的是,对于用户选择多个子选项,以触发终端设备选中第四内容的具体描述,可以参照上述实施例中S102的相关描述,此处不再赘述。
本公开实施例提供的内容选中方法,通过在终端设备的屏幕上显示不同的选项,可以使得用户通过对不同选项的输入选中不同的文本内容,从而提高了用户选择文本内容的灵活性和多样性。
可选地,结合图7,如图9所示,在上述S104之后,本公开实施例提供的内容选中方法还可以包括下述的S105和S106。并且,上述S101A可以通过下述的S101A1实现。
S105、在显示目标选项后,终端设备开始计时。
S106、若在该显示目标选项后的第一时长内未接收到针对该目标选项的输入,则终端设备在第一时长后执行以下任一项:选中第一内容、选中第二内容、选中第三内容。
S101A1、在显示该目标选项后的第一时长内,终端设备接收针对该目标选项中的一个选项的第一输入。
需要说明的是,本公开实施例中,上述S106和S101A1择一执行。
对于目标选项的具体描述,可以参见上述实施例中的S104的相关描述,此处不再赘述。
可选地,本公开实施例中,上述第一时长可以为5秒、10秒或60秒等。具体可以根据实际使用需求确定,本公开实施例不作限定。
示例性的,以第一时长为10秒为例进行示例性说明。在终端设备显示目标选项后,终端设备可以开启计时器,并开始计时。如果在计时时长达到10秒之前,终端设备未接收到用户对目标选项中任一选项的输入,那么终端设备可以执行默认操作,例如该默认操作可以为选中第一内容、选中第二内容、选中第三内容;而如果在计时时长达到10秒之前,终端设备接收到用户对目标选项中的一个选项的输入,那么终端设备可以选中与该一个选项对应的文本内容,例如终端设备接收到用户对第一选项的输入,那么终端设备可以选中全部文本内容(即第二内容)。
本公开实施例提供的内容选中方法,由于在显示目标选项后的第一时长内未接收到对目标选项的输入的情况下,终端设备可以执行默认操作,自动选中某些文本内容,因此提高了终端设备选中文本内容的灵活性。
可选地,结合图7,如图10所示,在上述S101A之后,本公开实施例提供的内容选 中方法还可以包括下述的S107和S108,或者可以包括下述的S107和S109。
S107、在接收到第一输入后,终端设备开始计时。
本公开实施例中,在接收到第一输入后,终端设备可以开启计时器,并开始计时,并在第二时长内保持显示目标选项。
S108、若在接收到第一输入后的第二时长内,接收到针对目标选项中的另一个选项的第三输入,则终端设备响应于该第三输入,取消选中第一目标内容,并选中第二目标内容。
其中,上述第二目标内容可以为第二内容中的内容。
本公开实施例中,上述第三输入可以为对目标选项中的另一个选项的输入。
可选地,本公开实施例中,上述第二目标内容与第一目标内容可以不同。
示例性的,若第一输入为对目标选项中的第一选项的输入,且第三输入为对目标选项中的第二选项的输入,则终端设备可以响应于该第三输入,取消选中第二内容(即第一目标内容),并选中第三内容(即第二目标内容),以及重新开始计时。
示例性的,若第一输入为对目标选项中的第二选项的输入,且第三输入为对目标选项中的第一选项的输入,则终端设备可以响应于该第三输入,取消选中第三内容(即第一目标内容),并选中第二内容(即第二目标内容),以及重新开始计时。
示例性的,若第一输入为对目标选项中的第一选项的输入,且第三输入为对目标选项中的第三选项的输入,则终端设备可以响应于该第三输入,取消选中第二内容(即第一目标内容),并选中第一内容(即第二目标内容),以及重新开始计时。
示例性的,若第一输入为对目标选项中的第二选项的输入,且第三输入为对目标选项中的第三选项的输入,则终端设备可以响应于该第三输入,取消选中第三内容(即第一目标内容),并选中第一内容(即第二目标内容),以及重新开始计时。
可选地,本公开实施例中,第二时长可以为10秒、20秒、30秒等。具体可以根据实际使用需求确定,本公开实施例不作限定。
S109、若在接收到第一输入后的第二时长内,未接收到针对目标选项中的另一个选项的第三输入,则终端设备在该第二时长之后,取消显示目标选项。
对于第三输入的具体描述,可以参见上述实施例中S108的相关描述,此处不再赘述。
示例性的,在接收到第一输入后,终端设备可以开始计时器,并开始计时。如果在第二时长内未接收到用户的第三输入,那么在计时时长达到该第二时长之后,终端设备可以取消显示目标选项。
需要说明的是,本公开实施例上述图10是以终端设备先执行S102A或S102B,再执行S107为例进行示例性说明的,其并不对本公开实施例形成任何限定。可以理解,实际实现时,终端设备也可以同时执行S102A或S102B、S107;或者还可以先执行S107,再执行S102A或S102B,具体可以根据实际使用需求确定。
本公开实施例提供的内容选中方法,由于在接收到第一输入后的第二时长内,终端设备可以保持显示目标选项,因此使得用户可以根据需求确定是否重新选择文本内容,从而可以提高用户的体验感。
可选地,本公开实施例中,在第一输入为用户的手指或手掌在第一平面上沿第二方向的输入的情况下,第一目标内容可以为第二内容。相应的,本公开实施例提供的内容选中方法还可以包括下述的S110和S111。
S110、终端设备接收用户的第四输入。
S111、终端设备响应于该第四输入,取消选中第二内容。
其中,上述第四输入可以为用户的手指或手掌在第一平面上沿第三方向的输入。该第三方向与第二方向不同。
示例性的,以第二方向为如图5中的(a)和如图5中的(b)所示的由终端设备的顶部E到终端设备的底部F的方向,第三方向为如图11中的(a)和如图11中的(b)所示的由终端设备的底部F到终端设备的顶部E的方向,且该第二方向与该第三方向相反为例进行示例性说明:
如图5中的(a)和如图5中的(b)所示,用户的手指或手掌可以在第一平面上沿着由终端设备的顶部E到终端设备的底部F的方向运动,如果终端设备接收到用户在第一平面上沿着由终端设备的顶部E到终端设备的底部F的方向的滑动输入(即第一输入),那么终端设备可以响应于该第一输入,选中第二内容,并显示如图5中的(c)所示的提示信息“提示信息:已全选所有文本内容”04。
如图11中的(a)和如图11中的(b)所示,用户的手指或手掌可以在第一平面上沿着由终端设备的底部F到终端设备的顶部E的方向运动。如果终端设备接收到用户在第一平面上沿着由终端设备的底部F到终端设备的顶部E的方向的滑动输入(即第四输入),那么终端设备可以响应于该第四输入,取消选中第二内容,并显示如图11中的(c)所示的提示信息“提示信息:已取消全选所有文本内容”08。
本公开实施例提供的内容选中方法,在用户的指或手掌与屏幕在一定距离内的情况下,由于用户可以通过不接触屏幕而控制终端设备选中文本内容或取消选中文本内容,因此可以避免用户手上有水或脏物等而不便直接触摸屏幕,从而可以提高用户的体验感。
如图12所示,本公开实施例提供一种终端设备1200。该终端设备可以包括接收模块1201、处理模块1202和显示模块1203。其中,接收模块1201,可以用于在显示模块1203显示第一内容的情况下,接收第一输入,该第一内容可以为第二内容中的部分内容。处理模块1202,可以用于响应于接收模块1201接收的该第一输入,选中第一目标内容,该第一目标内容可以为第二内容或第三内容。其中,该第三内容可以为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容可以为通过预设输入选择的内容。
可选地,本公开实施例中,接收模块1201,还可以用于在接收第一输入之前,接收第二输入。显示模块1203,还可以用于响应于接收模块1201接收的该第二输入,显示目标选项,该目标选项可以包括第一选项和第二选项。接收模块1201,具体可以用于接收针对该目标选项中的一个选项的第一输入。处理模块1202,具体可以用于:在该一个选项为第一选项的情况下,选中第二内容;或者,在该一个选项为第二选项的情况下,选中第三内容。
可选地,本公开实施例中,接收模块1201,具体可以用于接收用户的手指或手掌在第一区域中沿第一方向的滑动输入,该第一区域可以为终端设备的屏幕中第一内容所在的区域。
可选地,本公开实施例中,接收模块1201,具体可以用于在显示模块1203显示目标选项后的第一时长内,接收针对一个选项的第一输入。处理模块1202,还可以用于若接收模块1201在显示模块1203显示该目标选项后的第一时长内未接收到针对该目标选项的输 入,则在第一时长后执行以下任一项:选中第一内容、选中第二内容、选中第三内容。
可选地,本公开实施例中,处理模块1202,还可以用于:若在接收模块1201接收到第一输入后的第二时长内,接收到针对目标选项中的另一个选项的第三输入,则响应于该第三输入,取消选中第一目标内容,并选中第二目标内容,该第二目标内容可以为第二内容中的内容;或者,若在接收模块1201接收到第一输入后的第二时长内,未接收到第三输入,则在第二时长之后,取消显示目标选项。
可选地,本公开实施例中,上述第一输入可以为用户的手指或手掌在第一平面上沿第二方向的输入,该第一平面与终端设备的屏幕所在平面之间的距离小于或等于预设距离。第一目标内容可以为第二内容。
可选地,本公开实施例中,接收模块1201,还可以用于在处理模块1202选中第一目标内容之后,接收第四输入。处理模块1202,还可以用于响应于接收模块1201接收的该第四输入,取消选中第二内容。其中,该第四输入可以为用户的手指或手掌在第一平面上沿第三方向的输入,第三方向与第二方向不同。
可选地,本公开实施例中,第二内容可以为对目标图片识别后获取的全部内容。
本公开实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。
本公开实施例提供一种终端设备,由于在终端设备中的内容较多的情况下,例如在对目标图片识别后获取的文本内容较多的情况下,终端设备可以响应于用户的第一输入,选中全部内容,或者选中全部内容中除当前页面显示的内容外的内容,即用户无需触发终端设备切换显示内容的页面,而可以通过第一输入从全部内容中选中内容,因此本公开实施例提供的终端设备可以简化选中内容的过程,并节省用户时间。
图13为实现本公开各个实施例的一种终端设备的硬件结构示意图。如图13所示,该终端设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图13中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。
其中,用户输入单元207,可以用于在显示单元206显示第一内容的情况下,接收第一输入,该第一内容可以为第二内容中的部分内容;处理器210,可以用于响应于用户输入单元207接收的该第一输入,选中第一目标内容,该第一目标内容可以为第二内容或第三内容。该第三内容可以为该第二内容中除该第一内容之外的内容,该第二内容和该第三内容可以为通过预设输入选择的内容。
本公开实施例提供一种终端设备,由于在终端设备中的内容较多的情况下,例如在对目标图片识别后获取的文本内容较多的情况下,终端设备可以响应于用户的第一输入,选中全部内容,或者选中全部内容中除当前页面显示的内容外的内容,即用户无需触发终端设备切换显示内容的页面,而可以通过第一输入从全部内容中选中内容,因此本公开实施例提供的终端设备可以简化选中内容的过程,并节省用户时间。
应理解的是,本公开实施例中,射频单元201可用于收发信息或通话过程中,信号的 接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信***与网络和其他设备通信。
终端设备通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与终端设备200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元203包括扬声器、蜂鸣器以及受话器等。
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(Graphics Processing Unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。
终端设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在终端设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板2061。
用户输入单元207可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
可选地,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图13中,触控面板2071与显示面板2061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现终端设备的输入和输出功能,具体此处不做限定。
接口单元208为外部装置与终端设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备200内的一个或多个元件或者可以用于在终端设备200和外部装置之间传输数据。
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器210是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器210可包括一个或多个处理单元;可选地,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。
终端设备200还可以包括给各个部件供电的电源211(比如电池),可选地,电源211可以通过电源管理***与处理器210逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
另外,终端设备200包括一些未示出的功能模块,在此不再赘述。
可选地,本公开实施例还提供一种终端设备,包括如图13所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包 括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例描述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (18)

  1. 一种内容选中方法,应用于终端设备,所述方法包括:
    在所述终端设备显示第一内容的情况下,接收第一输入,所述第一内容为第二内容中的部分内容;
    响应于所述第一输入,选中第一目标内容,所述第一目标内容为所述第二内容或第三内容;
    其中,所述第三内容为所述第二内容中除所述第一内容之外的内容,所述第二内容和所述第三内容为通过预设输入选择的内容。
  2. 根据权利要求1所述的方法,其中,所述接收第一输入之前,所述方法还包括:
    接收第二输入;
    响应于所述第二输入,显示目标选项,所述目标选项包括第一选项和第二选项;
    所述接收第一输入,包括:
    接收针对所述目标选项中的一个选项的第一输入;
    所述选中第一目标内容,包括:
    在所述一个选项为所述第一选项的情况下,选中所述第二内容;
    在所述一个选项为所述第二选项的情况下,选中所述第三内容。
  3. 根据权利要求2所述的方法,其中,所述接收第二输入,包括:
    接收用户的手指或手掌在第一区域中沿第一方向的滑动输入,所述第一区域为所述终端设备的屏幕中所述第一内容所在的区域。
  4. 根据权利要求2所述的方法,其中,所述接收针对所述目标选项中的一个选项的第一输入,包括:
    在显示所述目标选项后的第一时长内,接收针对所述目标选项中的一个选项的第一输入;
    所述方法还包括:
    若在显示所述目标选项后的所述第一时长内未接收到针对所述目标选项的输入,则在所述第一时长后执行以下任一项:选中所述第一内容、选中所述第二内容、选中所述第三内容。
  5. 根据权利要求2至4中任一项所述的方法,其中,所述方法还包括:
    若在接收到所述第一输入后的第二时长内,接收到针对所述目标选项中的另一个选项的第三输入,则响应于所述第三输入,取消选中所述第一目标内容,并选中第二目标内容,所述第二目标内容为所述第二内容中的内容;或者,
    若在接收到所述第一输入后的第二时长内,未接收到所述第三输入,则在所述第二时长之后,取消显示所述目标选项。
  6. 根据权利要求1所述的方法,其中,所述第一输入为用户的手指或手掌在第一平面上沿第二方向的输入,所述第一平面与所述终端设备的屏幕所在平面之间的距离小于或等于预设距离;
    所述第一目标内容为所述第二内容。
  7. 根据权利要求6所述的方法,其中,所述选中第一目标内容之后,所述方法还包括:
    接收第四输入;
    响应于所述第四输入,取消选中所述第二内容;
    其中,所述第四输入为用户的手指或手掌在所述第一平面上沿第三方向的输入,所述第三方向与所述第二方向不同。
  8. 根据权利要求1所述的方法,其中,所述第二内容为对目标图片识别后获取的全部内容。
  9. 一种终端设备,所述终端设备包括接收模块、处理模块和显示模块;
    所述接收模块,用于在所述显示模块显示第一内容的情况下,接收第一输入,所述第一内容为第二内容中的部分内容;
    所述处理模块,用于响应于所述接收模块接收的所述第一输入,选中第一目标内容,所述第一目标内容为所述第二内容或第三内容;
    其中,所述第三内容为所述第二内容中除所述第一内容之外的内容,所述第二内容和所述第三内容为通过预设输入选择的内容。
  10. 根据权利要求9所述的终端设备,其中,
    所述接收模块,还用于在接收第一输入之前,接收第二输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第二输入,显示目标选项,所述目标选项包括第一选项和第二选项;
    所述接收模块,具体用于接收针对所述目标选项中的一个选项的第一输入;
    所述处理模块,具体用于在所述一个选项为所述第一选项的情况下,选中所述第二内容;或者,在所述一个选项为所述第二选项的情况下,选中所述第三内容。
  11. 根据权利要求10所述的终端设备,其中,
    所述接收模块,具体用于接收用户的手指或手掌在第一区域中沿第一方向的滑动输入,所述第一区域为所述终端设备的屏幕中所述第一内容所在的区域。
  12. 根据权利要求10所述的终端设备,其中,
    所述接收模块,具体用于在所述显示模块显示所述目标选项后的第一时长内,接收针对所述一个选项的第一输入;
    所述处理模块,还用于若所述接收模块在所述显示模块显示所述目标选项后的所述第一时长内未接收到针对所述目标选项的输入,则在所述第一时长后执行以下任一项:选中所述第一内容、选中所述第二内容、选中所述第三内容。
  13. 根据权利要求10至12中任一项所述的终端设备,其中,
    所述处理模块,还用于若在所述接收模块接收到所述第一输入后的第二时长内,接收到针对所述目标选项中的另一个选项的第三输入,则响应于所述第三输入,取消选中所述第一目标内容,并选中第二目标内容,所述第二目标内容为所述第二内容中的内容;或者,若在所述接收模块接收到所述第一输入后的第二时长内,未接收到所述第三输入,则在所述第二时长之后,取消显示所述目标选项。
  14. 根据权利要求9所述的终端设备,其中,所述第一输入为用户的手指或手掌在第一平面上沿第二方向的输入,所述第一平面与所述终端设备的屏幕所在平面之间的距离小于或等于预设距离;
    所述第一目标内容为所述第二内容。
  15. 根据权利要求14所述的终端设备,其中,
    所述接收模块,还用于在所述处理模块选中所述第一目标内容之后,接收第四输入;
    所述处理模块,还用于响应于所述接收模块接收的所述第四输入,取消选中所述第二内容;
    其中,所述第四输入为用户的手指或手掌在所述第一平面上沿第三方向的输入,所述第三方向与所述第二方向不同。
  16. 根据权利要求9所述的终端设备,其中,所述第二内容为对目标图片识别后获取的全部内容。
  17. 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至8中任一项所述的内容选中方法的步骤。
  18. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的内容选中方法的步骤。
PCT/CN2020/081209 2019-04-22 2020-03-25 内容选中方法及终端设备 WO2020215967A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910323232.3 2019-04-22
CN201910323232.3A CN110232174A (zh) 2019-04-22 2019-04-22 一种内容选中方法及终端设备

Publications (1)

Publication Number Publication Date
WO2020215967A1 true WO2020215967A1 (zh) 2020-10-29

Family

ID=67860194

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081209 WO2020215967A1 (zh) 2019-04-22 2020-03-25 内容选中方法及终端设备

Country Status (2)

Country Link
CN (1) CN110232174A (zh)
WO (1) WO2020215967A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110232174A (zh) * 2019-04-22 2019-09-13 维沃移动通信有限公司 一种内容选中方法及终端设备
CN111752461A (zh) * 2020-06-18 2020-10-09 Oppo广东移动通信有限公司 内容显示方法、装置、电子设备及存储介质
CN112445403A (zh) * 2020-11-30 2021-03-05 北京搜狗科技发展有限公司 一种文本处理方法、装置和用于文本处理的装置
CN114706507A (zh) * 2022-04-27 2022-07-05 北京达佳互联信息技术有限公司 内容显示方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866827A (zh) * 2012-08-21 2013-01-09 刘炳林 一种人机交互设备的文档编辑方法和装置
WO2014040469A1 (zh) * 2012-09-14 2014-03-20 广州市动景计算机科技有限公司 基于触摸屏式移动终端的文本选择方法及装置
CN107632773A (zh) * 2017-10-17 2018-01-26 北京百度网讯科技有限公司 用于获取信息的方法及装置
CN109614061A (zh) * 2018-11-27 2019-04-12 维沃移动通信有限公司 显示方法及终端
CN109634494A (zh) * 2018-11-12 2019-04-16 维沃移动通信有限公司 一种图片处理方法及终端设备
CN110232174A (zh) * 2019-04-22 2019-09-13 维沃移动通信有限公司 一种内容选中方法及终端设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929488B (zh) * 2006-10-08 2012-07-04 华为技术有限公司 基于服务器分页的跨多页操作方法和装置
CN102236854B (zh) * 2010-05-07 2014-06-04 阿里巴巴集团控股有限公司 一种处理用户选择信息的方法及装置
CN103064626B (zh) * 2012-12-31 2016-06-15 中兴通讯股份有限公司 一种触屏终端及其实现复选功能的方法
CN104142789B (zh) * 2013-05-07 2018-07-20 腾讯科技(深圳)有限公司 内容选择方法、装置及终端
CN103941969A (zh) * 2014-03-27 2014-07-23 小米科技有限责任公司 菜单显示方法及装置
CN106066760B (zh) * 2016-05-26 2019-04-12 北京金山安全软件有限公司 一种文字处理方法及装置
CN106371731A (zh) * 2016-09-26 2017-02-01 宇龙计算机通信科技(深圳)有限公司 一种页面编辑功能的实现方法及终端
CN108874279B (zh) * 2018-05-04 2020-11-03 珠海格力电器股份有限公司 一种选择方法及装置、终端设备和可读存储介质
CN108874260A (zh) * 2018-05-30 2018-11-23 维沃移动通信有限公司 一种文本处理方法及终端设备
CN109144361A (zh) * 2018-07-09 2019-01-04 维沃移动通信有限公司 一种图像处理方法及终端设备
CN109460177A (zh) * 2018-09-27 2019-03-12 维沃移动通信有限公司 一种图片处理方法及终端设备
CN109491952A (zh) * 2018-11-27 2019-03-19 掌阅科技股份有限公司 跨页选择文字方法、电子设备及计算机存储介质
CN110096188A (zh) * 2019-03-29 2019-08-06 北京点众科技股份有限公司 一种在阅读软件中选取页面内容的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866827A (zh) * 2012-08-21 2013-01-09 刘炳林 一种人机交互设备的文档编辑方法和装置
WO2014040469A1 (zh) * 2012-09-14 2014-03-20 广州市动景计算机科技有限公司 基于触摸屏式移动终端的文本选择方法及装置
CN107632773A (zh) * 2017-10-17 2018-01-26 北京百度网讯科技有限公司 用于获取信息的方法及装置
CN109634494A (zh) * 2018-11-12 2019-04-16 维沃移动通信有限公司 一种图片处理方法及终端设备
CN109614061A (zh) * 2018-11-27 2019-04-12 维沃移动通信有限公司 显示方法及终端
CN110232174A (zh) * 2019-04-22 2019-09-13 维沃移动通信有限公司 一种内容选中方法及终端设备

Also Published As

Publication number Publication date
CN110232174A (zh) 2019-09-13

Similar Documents

Publication Publication Date Title
WO2021104365A1 (zh) 对象分享方法及电子设备
WO2021218902A1 (zh) 显示控制方法、装置及电子设备
WO2020063091A1 (zh) 一种图片处理方法及终端设备
WO2020258929A1 (zh) 文件夹界面切换方法及终端设备
WO2021083132A1 (zh) 图标移动方法及电子设备
CN110874147B (zh) 一种显示方法及电子设备
WO2020215967A1 (zh) 内容选中方法及终端设备
WO2021057337A1 (zh) 操作方法及电子设备
WO2021115278A1 (zh) 群组管理方法及电子设备
WO2021012927A1 (zh) 图标显示方法及终端设备
WO2021004327A1 (zh) 应用权限设置方法及终端设备
WO2021129536A1 (zh) 图标移动方法及电子设备
WO2020151525A1 (zh) 消息发送方法及终端设备
CN111124245B (zh) 一种控制方法及电子设备
WO2020192299A1 (zh) 信息显示方法及终端设备
WO2021121265A1 (zh) 摄像头启动方法及电子设备
WO2020181945A1 (zh) 标识显示方法及终端设备
WO2021057290A1 (zh) 信息控制方法及电子设备
WO2021057301A1 (zh) 文件控制方法及电子设备
WO2020192297A1 (zh) 屏幕界面切换方法及终端设备
US20220043564A1 (en) Method for inputting content and terminal device
CN111064848B (zh) 图片显示方法及电子设备
WO2021169954A1 (zh) 搜索方法及电子设备
WO2021031717A1 (zh) 截屏方法及终端设备
WO2021129850A1 (zh) 语音消息播放方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20795636

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20795636

Country of ref document: EP

Kind code of ref document: A1