WO2022156817A1 - 内容提取方法、装置 - Google Patents

内容提取方法、装置 Download PDF

Info

Publication number
WO2022156817A1
WO2022156817A1 PCT/CN2022/073823 CN2022073823W WO2022156817A1 WO 2022156817 A1 WO2022156817 A1 WO 2022156817A1 CN 2022073823 W CN2022073823 W CN 2022073823W WO 2022156817 A1 WO2022156817 A1 WO 2022156817A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
node
coordinates
content
interface
Prior art date
Application number
PCT/CN2022/073823
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 维沃移动通信(杭州)有限公司
Priority to KR1020237028961A priority Critical patent/KR20230131947A/ko
Priority to EP22742294.6A priority patent/EP4283453A4/en
Publication of WO2022156817A1 publication Critical patent/WO2022156817A1/zh
Priority to US18/225,433 priority patent/US11983400B2/en

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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a content extraction method and apparatus.
  • the user can long press the corresponding position of the content on the screen, thereby triggering the electronic device to extract the content .
  • the electronic device can determine the content to be extracted by converting the coordinates of the web page to the coordinates of the screen, and then comparing these coordinates with the coordinates input by the user on the screen.
  • the purpose of the embodiments of the present application is to provide a content extraction method and device, which can solve the problem of low accuracy of content extraction.
  • an embodiment of the present application provides a content extraction method, the method includes: in the case of displaying a target interface on a screen of an electronic device, if a user's target touch input on the screen is received, obtaining target coordinates, The target coordinates are the coordinates of the selected target position in the target interface, and the target position corresponds to the touch position of the target touch input on the screen; obtain the node information of at least one node in the target interface, a node
  • the node information includes the node coordinates of the one node and the content indicated by the one node; according to the target coordinates and the node information of the at least one node, determine the target node, and the node coordinates of the target node match the target coordinates; extract the target The target content included in the target interface indicated by the node.
  • an embodiment of the present application provides a content extraction apparatus, where the content extraction apparatus includes an acquisition module, a determination module, and a processing module.
  • the acquisition module is used for displaying the target interface on the screen of the electronic device, if the user's target touch input on the screen is received, the target coordinates are obtained, and the target coordinates are the selected target position in the target interface.
  • the target position corresponds to the touch position on the screen of the target touch input.
  • the acquiring module is further configured to acquire node information of at least one node in the target interface, where the node information of one node includes the node coordinate of the one node and the content indicated by the one node.
  • the determining module is configured to determine a target node according to the target coordinates obtained by the obtaining module and the node information of the at least one node, and the node coordinates of the target node match the target coordinates.
  • the processing module is configured to extract the target content included in the target interface indicated by the target node determined by the determination module.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is executed by the processor, the The steps of the method in the first aspect above.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method in the foregoing first aspect are implemented.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or instruction to implement the method in the first aspect.
  • the target interface when the target interface is displayed on the screen of the electronic device, if the user's target touch input on the screen is received, the target coordinates are obtained, and the target coordinates are the target selected in the target interface.
  • the coordinates of the position, the target position corresponds to the touch position of the target touch input on the screen;
  • the node information of at least one node in the target interface is obtained, and the node information of a node includes the node coordinates of the one node and the one the content indicated by the node; determine the target node according to the target coordinates and the node information of the at least one node, the node coordinates of the target node match the target coordinates; extract the target content included in the target interface indicated by the target node.
  • the target interface when the target interface is displayed on the screen of the electronic device, when the user performs a target touch input on the screen, the target interface can be directly obtained in the coordinate system of the target interface and the target touch input on the screen.
  • the coordinates of the selected target position in the target interface correspond to the touch position of , the determined target node is more accurate, that is, the determined content to be extracted is more accurate, thereby avoiding the problem that the content to be extracted determined according to the converted coordinates is inaccurate due to possible errors in the converted coordinates. In this way, the accuracy of extracting content is improved.
  • FIG. 1 is one of the schematic diagrams of a content extraction method provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a content extraction apparatus provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a schematic hardware diagram of an electronic device provided by an embodiment of the present application.
  • words such as “exemplarily” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplarily” or “for example” should not be construed as being advantageous over other embodiments or designs. Rather, the use of words such as “exemplarily” or “such as” is intended to present the related concepts in a specific manner.
  • plural refers to two or more, for example, a plurality of contents refers to two or more contents, and the like.
  • webview refers to the web page view, and the external form of the webview is the web page.
  • a webview may be understood as a web page.
  • javascript is a web scripting language, which can be abbreviated as JS.
  • the target interface may include injected or implanted JS scripts.
  • Node It is a container used to display text, pictures, etc. in the interface.
  • an interface displayed on the screen of the electronic device may include at least one node, and one node is used to indicate a content in the interface.
  • a node is used to indicate a text in the web interface.
  • the embodiments of the present application provide a content extraction method and device.
  • a target interface is displayed on a screen of an electronic device, if a user's target touch input on the screen is received, target coordinates are obtained, and the target coordinates are the target coordinates at the target.
  • the coordinates of the selected target position in the interface, the target position corresponds to the touch position of the target touch input on the screen; the node information of at least one node in the target interface is obtained, and the node information of a node includes the one node.
  • the target interface when the target interface is displayed on the screen of the electronic device, when the user performs a target touch input on the screen, the target interface can be directly obtained in the coordinate system of the target interface and the target touch input on the screen.
  • the coordinates of the selected target position in the target interface correspond to the touch position of , the determined target node is more accurate, that is, the determined content to be extracted is more accurate, thereby avoiding the problem that the content to be extracted determined according to the converted coordinates is inaccurate due to possible errors in the converted coordinates. In this way, the accuracy of extracting content is improved.
  • an embodiment of the present application provides a content extraction method, and the method includes the following S101 to S105.
  • the content extraction apparatus detects whether a target touch input from the user on the screen is received.
  • the above-mentioned target interface may be a web page interface, a picture interface, a document interface, or other possible interfaces displayed on a screen of an electronic device, which is not limited in this embodiment of the present application.
  • the above-mentioned target touch input may be factory-set by the electronic device or custom-set by the user. Specifically, it is determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the target touch input is a long-press touch input. It can be understood that, in this embodiment of the present application, the target touch input is used to trigger execution of the content extraction method.
  • the content extraction apparatus may perform an operation according to the detected result. Specifically, in the case of receiving the target touch input of the user on the screen, the following S102 is performed; or, in the case of not receiving the target touch input of the user on the screen, the following S106 is performed.
  • the electronic device provided in this embodiment of the present application has a content extraction function.
  • the electronic device may execute the content extraction method provided in the embodiment of the present application, that is, execute S101 to S105.
  • the content extraction apparatus acquires target coordinates.
  • the above target coordinates are the coordinates of the target position selected in the target interface, and the target position corresponds to the touch position of the target touch input on the screen.
  • the above-mentioned target coordinates may be in another coordinate system (for example, the coordinate system used by the web page) that is different from the coordinate system used on the screen of the electronic device. coordinate.
  • the target position may be a target point of the target interface, or a display area of the target interface. Specifically, it can be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the target coordinates are the coordinates of the target point; when the target position is a display area, the target coordinates are the coordinates of the center point of the display area.
  • the above S102 may be specifically implemented by the following S102A and S102B.
  • the content extraction device determines a target position corresponding to the touch position according to the corresponding relationship between the screen and the target interface.
  • a touch event on the interface is a communication method from the view layer to the logic layer.
  • the touch event feeds back the user's behavior to the logic layer for processing.
  • the view layer is also called the interface layer, which is located in the outermost layer (the top layer) and is closest to the user.
  • the view layer is used to display data and receive data input by the user.
  • the view layer provides an interface for interactive operations for the user; logic;
  • the layer is used to process the data and send it to the view layer, and at the same time accept the event feedback of the view layer.
  • the touch event can be bound to a touch screen (screen) component of the electronic device.
  • the view layer can also receive the touch event triggered by the target touch input, so that the view layer can pass the touch event to the logic. layer, so that the electronic device can process the event object corresponding to the touch event in the logic layer, and can also obtain parameter information of the event object, which may include location information, type of event object, and the like.
  • a plurality of touch points are provided on the screen of the electronic device.
  • the multiple touch points can be mapped or projected on the interface to generate multiple target points, that is, the interface includes the multiple target points, and a touch A handle corresponds to a target point.
  • one touch input on the screen may be an input of a plurality of touch points included in the touch position of the touch input on the screen.
  • the screen of the electronic device is provided with C1, C2, ... Cn touch points
  • the target interface displayed on the screen includes M1, M2, ... Mn corresponding to the n touch points
  • C1 corresponds to M1
  • C2 corresponds to M2
  • ... Cn corresponds to Mn, that is, one touch point corresponds to one target point
  • n is a positive integer greater than 1.
  • the touch position of the target touch input on the screen includes touch points C5, C8, C9, and C12
  • the target interface is related to the touch
  • the position corresponding to the position including the target points M5, M8, M9, and M12 is the target position.
  • the content extraction apparatus acquires target coordinates according to the target position.
  • the above-mentioned target coordinates are the coordinates of the target position selected in the target interface.
  • the electronic device can obtain the target coordinates of the target position by calculation through a script tool.
  • the target position corresponding to the touch position can be determined directly according to the corresponding relationship between the screen and the interface displayed on the screen, and the information of the target position can be obtained.
  • the target coordinates are not required to convert the coordinate system, thereby avoiding the error problem that may be caused by the converted coordinates, that is, improving the accuracy of the target coordinates.
  • the target location is a display area in the target interface.
  • the above S102B can be specifically implemented through the following steps (1) to (3).
  • step (1) the content extraction device obtains position information of a display area.
  • the location information of the above-mentioned one display area may include: the width and height of the one display area, the distance from the one area to the top border of the target interface, the distance from the one area to the bottom border of the target interface, and the distance from the one area to the bottom border of the target interface.
  • Information such as the distance from the one area to the left border of the target interface and the distance from the one area to the right border of the target interface. That is, the location information may be a coordinate interval (or coordinate range).
  • the electronic device can obtain the location information of the display area by running a script tool.
  • step (2) the content extraction device determines the coordinates of the center point of the one display area according to the position information.
  • the coordinates of the center point of a display area may include: in the coordinate system of the target interface, the abscissa and ordinate of the center point, and the position information of the center point.
  • the position information of the center point includes the distances between the center point and the four boundaries of the target interface where the center point is located.
  • step (3) the content extraction device takes the coordinates of the center point as the target coordinates.
  • the mobile phone can obtain the location information of the area by running the script tool, that is, a coordinate interval, so that the mobile phone can obtain the coordinates of the center point of the area through calculation.
  • the following code is the coordinates of the center point of a display area:
  • the content extraction apparatus can convert the display area into a point, so as to obtain the coordinates of the point as the target coordinates, so that it is convenient for the target coordinates to be related to at least one node later.
  • the node coordinates are compared to make the selection of target nodes more accurate.
  • the content extraction apparatus acquires node information of at least one node in the target interface.
  • the node information of a node includes the node coordinates of the one node and the content indicated by the one node.
  • the above S103 specifically includes: the content extraction apparatus acquires node information of each node in the at least one node in the target interface.
  • the target interface may include a target script, where the target script is used to acquire node information of each node in the target interface.
  • the above S103 may be specifically implemented by the following S103A.
  • the content extraction apparatus obtains node information of at least one node by running the target script.
  • Android android to inject or implant a target script with self-running capability, such as a Js script, into the web page webview.
  • This method belongs to the native capability provided by android.
  • the function registered in the webview can be called in android to achieve the purpose of communication between android and webview.
  • the content extraction apparatus may first traverse all the nodes included in the webpage according to the general operation capability of the DOM in the webpage; and then obtain the nodes of all the nodes included in the webpage by running the target script implanted in the webpage.
  • the node information of a node may include content indicated by the node, node coordinates of the node, attribute information of the content indicated by the node, and whether the content indicated by the node is selected, and the like. It can be understood that when the user triggers the electronic device to display the target interface, the target script included in the target interface can be automatically run in the electronic device, so that at least one node in the target interface can be obtained through the function in the target script. node information.
  • the content extraction method provided in this embodiment of the present application may include: traversing or querying at least one node included in the target interface, where one node is used to indicate content included in the target interface.
  • one node corresponds to one node information. It can be understood that different nodes are used to indicate different contents included in the target interface.
  • the target interface may include a target script
  • the target script since the target script has the self-running capability, by running the target script, the node information of at least one node of the target interface can be directly obtained, that is, the acquisition is improved.
  • the convenience of node information of at least one node of the target interface since the target script has the self-running capability, by running the target script, the node information of at least one node of the target interface can be directly obtained, that is, the acquisition is improved.
  • the content extraction apparatus determines a target node according to the target coordinates and the node information of the at least one node.
  • the node coordinates of the target node above match the target coordinates.
  • the above S104 may be specifically implemented by the following S104A and S104B.
  • the content extraction apparatus sequentially compares the target coordinates with the node coordinates of at least one node.
  • the content extraction apparatus determines, from the at least one node, a node whose node coordinates match the target coordinates as a target node.
  • S104A and S104B can be implemented in the following two possible implementation manners:
  • the content extraction device compares the target coordinates one-to-one with the node coordinates of each node in the at least one node, and selects a node whose node coordinates best match the target coordinates as the target node from the at least one node.
  • the content extraction device sequentially compares the target coordinates with the node coordinates of at least one node, and stops the comparison until the node coordinates of one of the compared nodes match the target coordinates, and uses the one node as the target node.
  • the target node whose node coordinates match the target coordinates can be determined, that is, the content to be extracted can be determined, so as to prepare for content extraction.
  • the content extraction apparatus extracts the target content included in the target interface indicated by the target node.
  • the target interface may include multiple contents, and the multiple contents may be the same type of contents or different types of contents.
  • the target content is the content in the plurality of contents.
  • the above target content may include at least one of the following: text, picture, video, audio, link, and so on.
  • the electronic device extracts the target content included in the target interface indicated by the target node according to the user's target touch input on the screen, and the target content includes the target touch input on the screen with the target touch input.
  • the content extraction device as a mobile phone as an example.
  • the target interface includes node 1, node 2, node 3, . . . node 12, one node is used to indicate a content of the target interface.
  • the target interface is displayed on the screen of the mobile phone
  • the user can long press a position (ie, a touch position) corresponding to the line of text on the screen.
  • the mobile phone detects and receives the user's long-press input (ie, the target touch input)
  • the coordinates of the selected target position in the target interface corresponding to the one position are obtained, that is, the target coordinates.
  • the mobile phone obtains the node information of node 1, node 2, node 3, ... node 12 included in the target interface by running the Js script in the target interface, and the node information of a node includes the node coordinates of the node and the node. indicated content.
  • the mobile phone compares the target coordinates with the node coordinates of node 1, node 2, node 3,...
  • a piece of text included in the target interface indicated by the node 5 can be extracted, and the piece of text includes the line of text that the user is interested in. It can be understood that the user can select the desired content from the content indicated by the mobile phone extraction node according to actual needs.
  • the content extraction apparatus continues to periodically detect whether the user's target touch input on the screen is received.
  • the above S106 may include the following two cases: A1 and A2:
  • the content extraction apparatus continues to periodically detect whether the user's target touch input on the screen is received.
  • the content extraction device does not respond to the other touch input, and continues to periodically detect whether the user has received any touch input. Targeted touch input to the screen.
  • the target touch input is a long-press touch input.
  • the content extraction apparatus does not process these inputs.
  • the content extraction device continues to periodically detect whether the user's target touch input on the screen is received, so as to avoid missing responses to the user's target touch on the screen.
  • the touch input can also avoid responding to the user's irrelevant touch operation on the screen, thereby saving the operating resources of the electronic device.
  • An embodiment of the present application provides a content extraction method.
  • a target interface is displayed on the screen of an electronic device
  • the coordinate system of the target interface can be directly obtained, which is different from the target interface.
  • the target touch input corresponds to the touch position on the screen, and the coordinates of the selected target position in the target interface do not need to convert the coordinates of the target interface to the coordinates of the screen. Therefore, according to the target coordinates of the target position and the target interface
  • the determined target node is more accurate, that is, the determined content to be extracted is more accurate, so as to avoid possible errors due to the converted coordinates, resulting in the determined to be extracted according to the converted coordinates. Inaccurate content. In this way, the accuracy of extracting content is improved.
  • the node information of a node may further include attribute information of the content indicated by the node.
  • the content extraction method provided by the embodiment of the present application may further include the following S107.
  • the content extraction apparatus displays prompt information according to the attribute information of the target content.
  • the above-mentioned prompt information is used to prompt to perform the target operation on the target content.
  • the target operation includes at least one of the following: searching for content related to the target content, sharing the target content to the target object, copying the target content, and saving the target content.
  • the above attribute information is used to indicate the attribute of the target content.
  • the attribute information is correspondingly different.
  • the attribute information is text format, text browsing mode, etc.; if the target content is video, the attribute information is video format, video playback mode, etc.; if the target content is a network link, the attribute information is The type of link, how the link is opened, etc.
  • the above-mentioned prompt information may include at least one control, and one control is used to trigger a target operation.
  • prompt information includes search controls, share controls, copy controls, and save controls.
  • the displayed prompt information indicating the target operation performed on the target content may also be different according to the attribute information.
  • the node information of a node includes attribute information of the content indicated by the node
  • a display for prompting to perform a search on the target content Prompt information for sharing, copying, or saving operations, so users can trigger search, share, copy, or save the target content according to their actual needs.
  • the extracted target content can be utilized to meet user needs.
  • the execution subject may be a content extraction device (for example, the content extraction device is an electronic device, or an external device on an electronic device), or a content extraction device in the content extraction device.
  • a control module for executing content extraction methods In the embodiment of the present application, the content extraction device provided by the embodiment of the present application is described by taking the content extraction method performed by the content extraction device as an example.
  • an embodiment of the present application provides a content extraction apparatus 200
  • the content extraction apparatus may include an acquisition module 201 , a determination module 202 and a processing module 203 .
  • the acquisition module 201 can be used to display the target interface on the screen of the electronic device, if the user's target touch input on the screen is received, then acquire the target coordinates, and the target coordinates are the target selected in the target interface
  • the coordinates of the position, the target position corresponds to the touch position of the target touch input on the screen; and obtain the node information of at least one node in the target interface, the node information of a node includes the node coordinates of the one node and the Content indicated by a node.
  • the determining module 202 may be configured to determine a target node according to the target coordinates obtained by the obtaining module 201 and the node information of the at least one node, and the node coordinates of the target node match the target coordinates.
  • the processing module 203 may be configured to extract the target content included in the target interface indicated by the target node determined by the determination module 202 .
  • the determining module 202 may be specifically configured to determine the target position corresponding to the touch position according to the corresponding relationship between the screen and the target interface.
  • the acquiring module 201 may be specifically configured to acquire the target coordinates according to the target position determined by the determining module 202 .
  • the target location is a display area in the target interface.
  • the obtaining module 201 may be specifically configured to obtain the position information of the one display area.
  • the determining module 202 may be specifically configured to determine the coordinates of the center point of the one display area according to the position information acquired by the acquiring module 201; and use the coordinates of the center point as the target coordinates.
  • the processing module 203 may also be configured to sequentially compare the target coordinates with the node coordinates of at least one node.
  • the determining module 202 may be specifically configured to determine, from the at least one node, a node whose coordinates of the node match the target coordinates as the target node.
  • the target interface includes a target script
  • the target script is used to obtain node information of each node in the target interface.
  • the obtaining module 201 may be specifically configured to obtain node information of at least one node by running the target script.
  • the node information of a node further includes attribute information of the content indicated by the node.
  • the content extraction apparatus may also include a display module 204 .
  • the display module 204 is used to display prompt information according to the attribute information of the target content after the processing module 203 extracts the target content included in the target interface indicated by the target node, and the prompt information is used to prompt the target content to perform the target operation .
  • the target operation includes at least one of the following: searching for content related to the target content, sharing the target content to the target object, copying the target content, and saving the target content.
  • An embodiment of the present application provides a content extraction apparatus.
  • the content extraction apparatus can directly obtain the target interface in the coordinate system. , corresponding to the touch position of the target touch input on the screen, the coordinates of the selected target position in the target interface, without the need to convert the coordinates of the target interface to the coordinates of the screen, so according to the target coordinates of the target position and
  • the determined target node is more accurate, that is, the determined content to be extracted is more accurate, so as to avoid possible errors due to the converted coordinates, which may lead to the determination based on the converted coordinates.
  • the problem of inaccurate content to be extracted In this way, the accuracy of extracting content is improved.
  • the content extraction apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the content extraction apparatus in this embodiment of the present application may be an apparatus having an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the content extraction apparatus provided in this embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 300 , including a processor 301 , a memory 302 , a program or an instruction stored in the memory 302 and executable on the processor 301 , the program Or when the instruction is executed by the processor 301, each process of the foregoing content extraction method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 410 is used for displaying the target interface on the screen of the electronic device, if the user input unit 407 receives the user's target touch input on the screen, then obtains the target coordinates, and the target coordinates are the target coordinates in the target interface
  • the processor 410 is specifically configured to determine a target position corresponding to the touch position according to the corresponding relationship between the screen and the target interface; and obtain target coordinates according to the target position.
  • the target location is a display area in the target interface.
  • the processor 410 is specifically configured to acquire position information of the one display area; determine the coordinates of the center point of the one display area according to the position information; and use the coordinates of the center point as target coordinates.
  • the processor 410 is further configured to sequentially compare the target coordinates with the node coordinates of at least one node; and from the at least one node, determine a node whose node coordinates match the target coordinates as the target node.
  • the target interface includes a target script
  • the target script is used to obtain node information of each node in the target interface.
  • the processor 410 is specifically configured to obtain node information of at least one node by running the target script.
  • the node information of a node further includes attribute information of the content indicated by the node.
  • the display unit 406 is configured to, after the processor 410 extracts the target content included in the target interface indicated by the target node, display prompt information according to the attribute information of the target content, where the prompt information is used to prompt to perform the target operation on the target content.
  • the target operation includes at least one of the following: searching for content related to the target content, sharing the target content to the target object, copying the target content, and saving the target content.
  • An embodiment of the present application provides an electronic device.
  • a target interface is displayed on the screen of the electronic device, when a user performs a target touch input on the screen, the electronic device can directly obtain the coordinate system of the target interface, which is the same as the target interface.
  • the target touch input corresponds to the touch position on the screen, and the coordinates of the selected target position in the target interface do not need to convert the coordinates of the target interface to the coordinates of the screen. Therefore, according to the target coordinates of the target position and the target For the node information of at least one node of the interface, the determined target node is more accurate, that is, the determined to-be-extracted content is more accurate, so as to avoid possible errors in the converted coordinates, resulting in Inaccurate extraction of content. In this way, the accuracy of extracting content is improved.
  • the input unit 404 may include a graphics processing unit (graphics processing unit, GPU) 4041 and a microphone 4042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072 .
  • the touch panel 4071 is also called a touch screen.
  • the touch panel 4071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing content extraction method embodiment can be achieved, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
  • a readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • ROM computer read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement each process of the above content extraction method embodiment, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods in the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种内容提取方法、装置,属于通信技术领域。该方法包括:在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上的触控位置对应;获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容;根据该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配;提取该目标节点指示的该目标界面包括的目标内容。

Description

内容提取方法、装置
相关申请的交叉引用
本申请主张在2021年1月25日在中国提交的中国专利申请号202110098927.3的优先权,其全部内容通过引用包含于此。
技术领域
本申请实施例涉及通信技术领域,尤其涉及内容提取方法、装置。
背景技术
在用户通过电子设备浏览网页的过程性中,如果用户对网页中的内容(例如:文本或图片)感兴趣,那么用户可以长按该内容在屏幕中对应的位置,从而触发电子设备提取该内容。
目前,在上述电子设备提取内容的过程中,电子设备可以通过将网页端的坐标转换为屏幕端的坐标,再将这些坐标与用户在屏幕输入的坐标进行比对,从而确定待提取的内容。
然而,通过上述过程中,由于屏幕端使用的坐标系与网页端使用的坐标系不同,因此转换后的坐标可能存在误差,从而导致根据转换后的坐标确定的待提取内容不准确,进而使得提取内容的准确率较低。。
发明内容
本申请实施例的目的是提供一种内容提取方法、装置,能够解决提取内容的准确率较低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种内容提取方法,该方法包括:在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕 上的触控位置对应;获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容;根据该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配;提取该目标节点指示的该目标界面包括的目标内容。
第二方面,本申请实施例提供了一种内容提取装置,该内容提取装置包括:获取模块、确定模块和处理模块。获取模块,用于在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上的触控位置对应。该获取模块,还用于获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容。该确定模块,用于根据获取模块获取的该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配。处理模块,用于提取确定模块确定的该目标节点指示的该目标界面包括的目标内容。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如上述第一方面中的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如上述第一方面中的方法的步骤。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如上述第一方面中的方法。
在本申请实施例中,在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上的触控位置对应;获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容;根据该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配;提取该目标节点指示的该目标界面包括的目标内容。通过该方案,在电子设备的屏幕中显示目标界面的情况下,当用户对屏幕进行目标触控输入时,由 于可以直接获取到在目标界面的坐标系下,与该目标触控输入在屏幕上的触控位置对应的,该目标界面中被选中目标位置的坐标,而无需将目标界面的坐标转换为屏幕端的坐标,因此根据该目标位置的目标坐标和该目标界面的至少一个节点的节点信息,确定的目标节点更为准确,即确定的待提取内容更为准确,从而避免了因转换后的坐标可能存在的误差,而导致根据转换后的坐标确定的待提取内容不准确的问题。如此,提高了提取内容的准确率。
附图说明
图1为本申请实施例提供的一种内容提取方法的示意图之一;
图2为本申请实施例提供的内容提取装置的结构示意图;
图3为本申请实施例提供的电子设备的结构示意图;
图4为本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上, 例如,多个内容是指两个或者两个以上的内容等。
下面对本申请实施例中涉及的一些术语/名词进行解释说明。
webview:是指网页视图,webview外在形式的表现是网页。在本申请实施例中,webview可以理解为网页。
javascript:是一种网页脚本语言,可以简称为JS。在本申请实施例中,目标界面可以包括注入或植入的JS脚本。
节点:是界面中用于显示文本、图片等的容器。在本申请实施例中,电子设备的屏幕中显示的一个界面可以包括至少一个节点,一个节点用于指示界面中的一个内容。例如,以界面为网页界面为例,一个节点用于指示网页界面中的一个文本。
本申请实施例提供一种内容提取方法、装置,在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上的触控位置对应;获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容;根据该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配;提取该目标节点指示的该目标界面包括的目标内容。通过该方案,在电子设备的屏幕中显示目标界面的情况下,当用户对屏幕进行目标触控输入时,由于可以直接获取到在目标界面的坐标系下,与该目标触控输入在屏幕上的触控位置对应的,该目标界面中被选中目标位置的坐标,而无需将目标界面的坐标转换为屏幕端的坐标,因此根据该目标位置的目标坐标和该目标界面的至少一个节点的节点信息,确定的目标节点更为准确,即确定的待提取内容更为准确,从而避免了因转换后的坐标可能存在的误差,而导致根据转换后的坐标确定的待提取内容不准确的问题。如此,提高了提取内容的准确率。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的内容提取方法、装置及电子设备进行详细地说明。
如图1所示,本申请实施例提供一种内容提取方法,该方法包括下述S101至S105。
S101、在电子设备的屏幕中显示目标界面的情况下,内容提取装置检测是否接收到用户对屏幕的目标触控输入。
可选地,在本申请实施例中,上述目标界面可以为电子设备的屏幕中显示的网页界面、图片界面、文档界面或其他可能的界面,本申请实施例对此不作限定。
可选地,上述目标触控输入可以为电子设备出厂设置的,或为用户自定义设置的。具体地,根据实际情况确定,本申请实施例对此不作限定。例如,目标触控输入为长按触控输入。可以理解的是,在本申请实施例中,该目标触控输入用于触发执行内容提取方法。
需要说明的是,上述S101之后,内容提取装置可以根据检测到的结果执行操作。具体地,在接收到用户对屏幕的目标触控输入的情况下,执行下述S102;或者,在未接收到用户对屏幕的目标触控输入的情况下,执行下述S106。
可选地,本申请实施例提供的电子设备具备内容提取功能。当用户触发电子设备开启该内容提取功能时,电子设备可以执行本申请实施例中提供的内容提取方法,即执行S101至S105。
S102、若接收到用户对屏幕的目标触控输入,则内容提取装置获取目标坐标。
其中,上述目标坐标为在目标界面中被选中的目标位置的坐标,该目标位置与目标触控输入在屏幕上的触控位置对应。
可选地,在本申请实施例中,上述目标坐标可以为在与电子设备的屏幕端使用的坐标系不同的另一个坐标系(例如,网页端使用的坐标系)下,得到的目标位置的坐标。
另外,目标位置可以为目标界面的一个目标点,或为目标界面的一个显示区域。具体地可以根据实际情况确定,本申请实施例对此不作限定。
相应地,在目标位置为一个目标点的情况下,目标坐标为该一个目标点的坐标;在目标位置为一个显示区域的情况下,目标坐标为该一个显示区域的中心点的坐标。具体可以参照下述实施例的详细描述,本申请实施例在此不予赘述。
可选地,上述S102可以具体通过下述S102A和S102B实现。
S102A、若接收到用户对屏幕的目标触控输入,则内容提取装置根据屏幕与目标界面的对应关系,确定与触控位置对应的目标位置。
需要说明的是,在本申请实施例中,在电子设备显示的界面情况下,对该界面的触控事件是视图层到逻辑层的通讯方式。该触控事件将用户的行为反馈到逻辑层进行处理。其中,视图层也称为界面层,位于最外层(最上层),离用户最近,视图层用于显示数据和 接收用户输入的数据,视图层为用户提供一种交互式操作的界面;逻辑层用于将数据进行处理后发送给视图层,同时接受视图层的事件反馈。另外,该触控事件可以绑定在电子设备的触屏(屏幕)的组件上。
进一步地,当电子设备检测接收到用户对屏幕的目标触控输入时,同时视图层也同样可以接收到该目标触控输入触发的触控事件,从而视图层可以将该触控事件传递给逻辑层,从而电子设备就可以处理逻辑层中与该触控事件对应的事件对象,同时也可获取到该事件对象的参数信息,该参数信息可以包括位置信息、事件对象的类型等。
可选地,在本申请实施例中,电子设备的屏幕中设置有多个触控点。在电子设备的屏幕上显示界面(例如,网页)的情况下,该多个触控点可以映射或投射在该界面上,生成多个目标点,即该界面包括该多个目标点,一个触控点对应一个目标点。相应地,在屏幕上的一个触控输入可以为对该触控输入在屏幕上的触控位置包括的多个触控点的输入。
示例性地,假设电子设备的屏幕中设置有C1、C2、……Cn个触控点,与在屏幕上显示的目标界面包括与这n个触控点对应的M1、M2、……Mn个目标点,C1对应M1,C2对应M2,……Cn对应Mn,即一个触控点对应一个目标点,n为大于1的正整数。在接收到用户对屏幕的目标触控输入的情况下,如果该目标触控输入在屏幕上的触控位置包括触控点C5、C8、C9、C12,那么就可以确定目标界面上与触控位置对应的包括目标点M5、M8、M9、M12在内的位置为目标位置。
S102B、内容提取装置根据该目标位置,获取目标坐标。
可选地,上述目标坐标为在目标界面中被选中的目标位置的坐标。在确定目标界面中目标位置的情况下,电子设备可以通过脚本工具,计算得到该目标位置的目标坐标。
可以理解的是,在接收到用户对屏幕的目标触控输入的情况下,可以直接根据屏幕与屏幕所显示的界面的对应关系,确定与触控位置对应的目标位置,并获取该目标位置的目标坐标,而无需坐标系的转换,从而避免了转化后的坐标可能产生的误差问题,即提高了目标坐标的准确性。
可选地,目标位置为目标界面中的一个显示区域。相应地,上述S102B可以具体通过下述步骤(1)至步骤(3)实现。
步骤(1)、内容提取装置获取一个显示区域的位置信息。
可选地,上述一个显示区域的位置信息可以包括:该一个显示区域的宽度和高度、从该一个区域到目标界面的顶部边界的距离、从该一个区域到目标界面的底部边界的距离、从该一个区域到目标界面的左侧边界的距离和从该一个区域到目标界面的右侧边界的距离等信息。即该位置信息可以为一个坐标区间(或坐标范围)。
可以理解的是,在目标位置为目标界面中的一个显示区域的情况下,电子设备可以通过运行脚本工具,获取到该一个显示区域的位置信息。
步骤(2)、内容提取装置根据该位置信息,确定该一个显示区域的中心点的坐标。
可选地,在本申请实施例中,一个显示区域的中心点的坐标可以包括:在目标界面的坐标系中,中心点的横坐标和纵坐标,以及该中心点的位置信息。其中,该中心点的位置信息包括该中心点距离所在目标界面的四个边界的距离,具体可参照上述实施例中的描述,本申请实施例对此不再赘述。
步骤(3)、内容提取装置将该中心点的坐标,作为目标坐标。
示例性地,以内容提取装置为手机为例。在目标位置为目标界面中的一个显示区域的情况下,手机可以通过运行脚本工具,获取到该一个区域的位置信息,即一个坐标区间,从而手机可以通过运算得到该一个区域的中心点的坐标。如下代码为一个显示区域的中心点的坐标:
DOMRect{x:16,y:303,width:331,height:91,top:303,…}
bottom:394
height:91
left:16
right:347
top:303
width:331
x:16
y:303
可以理解的是,在目标位置为一个显示区域的情况下,内容提取装置可以将该一个显示区域转换为一个点,从而获取该一个点的坐标作为目标坐标,从而便于之后目标坐标与 至少一个节点的节点坐标比对,进而使得目标节点的选取更为准确。
S103、内容提取装置获取该目标界面中的至少一个节点的节点信息。
其中,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容。
可选地,上述S103具体包括:内容提取装置获取目标界面中的至少一个节点中的每个节点的节点信息。
可选地,目标界面可以包括目标脚本,该目标脚本用于获取该目标界面中每个节点的节点信息。相应地,上述S103可以具体通过下述S103A实现。
S103A、内容提取装置通过运行目标脚本,获取至少一个节点的节点信息。
需要说明的是,以目标界面为网页为例,在网页前端开发过程中,本领域技术人员可以利用安卓android向网页webview中注入或植入具有自运行能力的目标脚本,例如Js脚本。此种方式属于android提供的原生能力,在android中能调用webview中注册的函数,达到android和webview通信的目的。
此外,在本申请实施例中,内容提取装置可以先根据网页中DOM的通用操作能力,遍历网页中包括的所有节点;然后通过运行网页中植入的目标脚本,获取网页包括的所有节点的节点信息。其中,一个节点的节点信息可以包括该一个节点指示的内容、该一个节点的节点坐标、该一个节点指示的内容的属性信息和该一个节点指示的内容是否被选中等。可以理解的是,在用户触发电子设备显示目标界面的情况下,该目标界面包括的目标脚本可以在电子设备中自动运行,从而可以通过该目标脚本中的函数,获取该目标界面中至少一个节点的节点信息。
可选地,上述S103A之前,本申请实施例提供的内容提取方法可以包括:遍历或查询目标界面包括的至少一个节点,一个节点用于指示该目标界面包括的内容。其中,一个节点对应一个节点信息。可以理解是,不同的节点,用于指示目标界面中包括的不同内容。
可以理解的是,在目标界面可以包括目标脚本的情况下,由于该目标脚本具备自运行能力,因此通过运行该目标脚本,可以直接获取该目标界面的至少一个节点的节点信息,即提高了获取该目标界面的至少一个节点的节点信息的便捷性。
S104、内容提取装置根据该目标坐标和该至少一个节点的节点信息,确定目标节点。
其中,上述目标节点的节点坐标与目标坐标匹配。
可选地,上述S104可以具体通过下述S104A和S104B实现。
S104A、内容提取装置依次比对目标坐标与至少一个节点的节点坐标。
S104B、内容提取装置从该至少一个节点中,确定节点坐标与该目标坐标匹配的节点作为目标节点。
具体的,上述S104A和S104B可以通过如下两种可能的实现方式实现:
一种可能的实现方式:
内容提取装置将目标坐标与至少一个节点中每个节点的节点坐标进行一一比对,并从该至少一个节点中,选择节点坐标与目标坐标最匹配的节点作为目标节点。
另一种可能的实现方式:
内容提取装置依次比对目标坐标与至少一个节点的节点坐标,直到比对的一个节点的节点坐标与目标坐标匹配则停止比对,并将该一个节点作为目标节点。
可以理解的是,通过依次比对目标坐标和至少一个节点的节点坐标,可以确定节点坐标与目标坐标匹配的目标节点,即确定待提取的内容,从而可以为内容提取做准备。
S105、内容提取装置提取该目标节点指示的目标界面包括的目标内容。
可选地,目标界面可以包括多个内容,该多个内容可以为同一类型的内容,或为不同类型的内容。其中,目标内容为该多个内容中的内容。
可选地,上述目标内容可以包括以下至少一项:文字、图片、视频、音频、链接等。
可以理解的是,在本申请实施例中,电子设备根据用户在屏幕中的目标触控输入,提取目标节点指示的目标界面包括的目标内容,该目标内容包括与该目标触控输入在屏幕上的触控位置对应的、在目标界面中被选中的目标位置所显示的内容。
示例性地,以内容提取装置为手机为例。假设目标界面包括节点1、节点2、节点3、……节点12,一个节点用于指示该目标界面的一个内容。在手机的屏幕中显示目标界面的情况下,如果用户对目标界面中的一行文本感兴趣,那么用户可以长按该行文本在屏幕上对应的一个位置(即触控位置)。在手机检测接收到用户的长按输入(即目标触控输入)的情况下,获取与该一个位置对应的,在该目标界面中被选中的目标位置的坐标,即目标坐标。手机通过运行该目标界面中的Js脚本,获取该目标界面包括的节点1、节点2、节点3、……节点12的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示 的内容。手机通过依次比对该目标坐标与节点1、节点2、节点3、……节点12的节点坐标,从这12个节点中,选择节点坐标与该目标坐标匹配的节点5作为目标节点,从而手机可以提取该节点5指示的该目标界面包括的一段文本,该段文本包括用户感兴趣的该一行文本在内。可以理解的是,用户可以根据实际需要,从手机提取节点指示的内容中选取需要的内容。
S106、若未接收到用户对屏幕的目标触控输入,则内容提取装置继续周期性检测是否接收到用户对屏幕的目标触控输入。
具体地,上述S106可以包括如下A1和A2两种情况:
A1、在未接收到用户对屏幕的目标触控输入,且未接收到用户对屏幕的其他触控输入的情况下,内容提取装置继续周期性检测是否接收到用户对屏幕的目标触控输入。
A2、在未接收到用户对屏幕的目标触控输入,且接收到用户对屏幕的其他触控输入的情况下,内容提取装置不响应该其他触控输入,并继续周期性检测是否接收到用户对屏幕的目标触控输入。
示例性地,假设目标触控输入为长按触控输入。在接收到用户对电子设备的屏幕的点击、双击或滑动等输入的情况下,由于这些输入均不为长按触控输入,因此内容提取装置对这些输入不做处理。
可以理解的是,在未接收到用户对屏幕的目标触控输入的情况下,内容提取装置继续周期性检测是否接收到用户对屏幕的目标触控输入,从而可以避免错过响应用户对屏幕的目标触控输入,也可以避免响应用户对屏幕的无关触控操作,节省了电子设备的运行资源。
本申请实施例提供一种内容提取方法,在电子设备的屏幕中显示目标界面的情况下,当用户对屏幕进行目标触控输入时,由于可以直接获取到在目标界面的坐标系下,与该目标触控输入在屏幕上的触控位置对应的,该目标界面中被选中目标位置的坐标,而无需将目标界面的坐标转换为屏幕端的坐标,因此根据该目标位置的目标坐标和该目标界面的至少一个节点的节点信息,确定的目标节点更为准确,即确定的待提取内容更为准确,从而避免了因转换后的坐标可能存在的误差,而导致根据转换后的坐标确定的待提取内容不准确的问题。如此,提高了提取内容的准确率。
可选地,一个节点的节点信息还可以包括该一个节点指示的内容的属性信息。相应地, 上述S105之后,本申请实施例提供的内容提取方法还可以包括下述S107。
S107、内容提取装置根据目标内容的属性信息,显示提示信息。
其中,上述提示信息用于提示对目标内容执行目标操作。该目标操作包括以下至少一项:搜索与该目标内容相关的内容,将该目标内容分享至目标对象,复制该目标内容,保存该目标内容。
可选地,上述属性信息用于指示目标内容的属性。对于不同类型的目标内容,相应地,属性信息也不同。
例如,若目标内容为文本内容,则属性信息为文本格式、文本浏览方式等;若目标内容为视频,则属性信息为视频格式、视频播放方式等;若目标内容为网络链接,则属性信息为链接类型、链接的打开方式等。
可选地,上述提示信息可以包括至少一个控件,一个控件用于触发一种目标操作。例如,提示信息包括搜索控件、分享控件、复制控件、保存控件。
可以理解的是,对于不同类型的目标内容,由于属性信息不同,因此根据属性信息,显示的提示信息提示对目标内容执行的目标操作也可能不同。
本申请实施例提供的内容提取方法,在一个节点的节点信息包括该一个节点指示的内容的属性信息的情况下,由于可以根据目标内容的属性信息,显示用于提示对该目标内容执行搜索、分享、复制、或保存操作的提示信息,因此用户可以根据自己的实际需要,触发对该目标内容进行搜索、分享、复制、或保存。如此,可以将提取到的目标内容加以利用,以满足用户需求。
需要说明的是,本申请实施例提供的内容提取方法,执行主体可以为内容提取装置(例如,该内容提取装置为电子设备,或为电子设备上的外接装置),或者该内容提取装置中的用于执行内容提取方法的控制模块。本申请实施例中以内容提取装置执行内容提取方法为例,说明本申请实施例提供的内容提取装置。
如图2所示,本申请实施例提供一种内容提取装置200,该内容提取装置可以包括获取模块201、确定模块202和处理模块203。获取模块201,可以用于在电子设备的屏幕中显示目标界面的情况下,若接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上 的触控位置对应;并获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容。确定模块202,可以用于根据获取模块201获取的该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配。处理模块203,可以用于提取确定模块202确定的该目标节点指示的该目标界面包括的目标内容。
可选地,确定模块202,具体可以用于根据屏幕与目标界面的对应关系,确定与触控位置对应的目标位置。获取模块201,具体可以用于根据确定模块202确定的该目标位置,获取目标坐标。
可选地,目标位置为目标界面中的一个显示区域。获取模块201,具体可以用于获取该一个显示区域的位置信息。确定模块202,具体可以用于根据获取模块201获取的该位置信息,确定该一个显示区域的中心点的坐标;并将该中心点的坐标,作为目标坐标。
可选地,处理模块203,还可以用于依次比对目标坐标与至少一个节点的节点坐标。确定模块202,具体可以用于从该至少一个节点中,确定节点坐标与该目标坐标匹配的节点作为目标节点。
可选地,目标界面包括目标脚本,该目标脚本用于获取该目标界面中每个节点的节点信息。获取模块201,具体可以用于通过运行该目标脚本,获取至少一个节点的节点信息。
可选地,一个节点的节点信息还包括该一个节点指示的内容的属性信息。内容提取装置还可以包括显示模块204。显示模块204,用于可以在处理模块203提取与目标节点指示的目标界面包括的目标内容之后,根据该目标内容的属性信息,显示提示信息,该提示信息用于提示对该目标内容执行目标操作。其中,该目标操作包括以下至少一项:搜索与该目标内容相关的内容,将该目标内容分享至目标对象,复制该目标内容,保存该目标内容。
本申请实施例提供一种内容提取装置,在电子设备的屏幕中显示目标界面的情况下,当用户对屏幕进行目标触控输入时,由于内容提取装置可以直接获取到在目标界面的坐标系下,与该目标触控输入在屏幕上的触控位置对应的,该目标界面中被选中目标位置的坐标,而无需将目标界面的坐标转换为屏幕端的坐标,因此根据该目标位置的目标坐标和该目标界面的至少一个节点的节点信息,确定的目标节点更为准确,即确定的待提取内容更 为准确,从而避免了因转换后的坐标可能存在的误差,而导致根据转换后的坐标确定的待提取内容不准确的问题。如此,提高了提取内容的准确率。
本申请实施例中的内容提取装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(network attached storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的内容提取装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的内容提取装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图3所示,本申请实施例还提供一种电子设备300,包括处理器301,存储器302,存储在存储器302上并可在处理器301上运行的程序或指令,该程序或指令被处理器301执行时实现上述内容提取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图4为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。
本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的 限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器410,用于在电子设备的屏幕中显示目标界面的情况下,若用户输入单元407接收到用户对屏幕的目标触控输入,则获取目标坐标,该目标坐标为在该目标界面中被选中的目标位置的坐标,该目标位置与该目标触控输入在屏幕上的触控位置对应;并获取该目标界面中的至少一个节点的节点信息,一个节点的节点信息包括该一个节点的节点坐标和该一个节点指示的内容;以及根据该目标坐标和该至少一个节点的节点信息,确定目标节点,该目标节点的节点坐标与该目标坐标匹配;提取该目标节点指示的该目标界面包括的目标内容。
可选地,处理器410,具体用于根据屏幕与目标界面的对应关系,确定与触控位置对应的目标位置;并根据该目标位置,获取目标坐标。
可选地,目标位置为目标界面中的一个显示区域。处理器410,具体用于获取该一个显示区域的位置信息;并根据该位置信息,确定该一个显示区域的中心点的坐标;以及将该中心点的坐标,作为目标坐标。
可选地,处理器410,还用于依次比对目标坐标与至少一个节点的节点坐标;并从该至少一个节点中,确定节点坐标与该目标坐标匹配的节点作为目标节点。
可选地,目标界面包括目标脚本,该目标脚本用于获取该目标界面中每个节点的节点信息。处理器410,具体用于通过运行该目标脚本,获取至少一个节点的节点信息。
可选地,一个节点的节点信息还包括该一个节点指示的内容的属性信息。显示单元406,用于在处理器410提取目标节点指示的目标界面包括的目标内容之后,根据该目标内容的属性信息,显示提示信息,该提示信息用于提示对该目标内容执行目标操作。其中,该目标操作包括以下至少一项:搜索与该目标内容相关的内容,将该目标内容分享至目标对象,复制该目标内容,保存该目标内容。
本申请实施例提供一种电子设备,在电子设备的屏幕中显示目标界面的情况下,当用户对屏幕进行目标触控输入时,由于电子设备可以直接获取到在目标界面的坐标系下,与该目标触控输入在屏幕上的触控位置对应的,该目标界面中被选中目标位置的坐标,而无需将目标界面的坐标转换为屏幕端的坐标,因此根据该目标位置的目标坐标和该目标界面 的至少一个节点的节点信息,确定的目标节点更为准确,即确定的待提取内容更为准确,从而避免了因转换后的坐标可能存在的误差,而导致根据转换后的坐标确定的待提取内容不准确的问题。如此,提高了提取内容的准确率。
应理解的是,本申请实施例中,输入单元404可以包括图形处理器(graphics processing unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元406可包括显示面板4061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板4061。用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器409可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述内容提取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,处理器为上述实施例中电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述内容提取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素, 而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例中的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种内容提取方法,所述方法包括:
    在电子设备的屏幕中显示目标界面的情况下,若接收到用户对所述屏幕的目标触控输入,则获取目标坐标,所述目标坐标为在所述目标界面中被选中的目标位置的坐标,所述目标位置与所述目标触控输入在所述屏幕上的触控位置对应;
    获取所述目标界面中的至少一个节点的节点信息,一个节点的节点信息包括所述一个节点的节点坐标和所述一个节点指示的内容;
    根据所述目标坐标和所述至少一个节点的节点信息,确定目标节点,所述目标节点的节点坐标与所述目标坐标匹配;
    提取所述目标节点指示的所述目标界面包括的目标内容。
  2. 根据权利要求1所述的方法,其中,所述获取目标坐标,包括:
    根据所述屏幕与所述目标界面的对应关系,确定与所述触控位置对应的所述目标位置;
    根据所述目标位置,获取所述目标坐标。
  3. 根据权利要求2所述的方法,其中,所述目标位置为所述目标界面中的一个显示区域;
    所述根据所述目标位置,获取所述目标坐标,包括:
    获取所述一个显示区域的位置信息;
    根据所述位置信息,确定所述一个显示区域的中心点的坐标;
    将所述中心点的坐标,作为目标坐标。
  4. 根据权利要求1所述的方法,其中,所述根据所述目标坐标和所述至少一个节点的节点信息,确定目标节点,包括:
    依次比对所述目标坐标与所述至少一个节点的节点坐标;
    从所述至少一个节点中,确定节点坐标与所述目标坐标匹配的节点作为目标节点。
  5. 根据权利要求1所述的方法,其中,所述目标界面包括目标脚本,所述目标脚本用于获取所述目标界面中每个节点的节点信息;
    所述获取所述目标界面中的至少一个节点的节点信息,包括:
    通过运行所述目标脚本,获取所述至少一个节点的节点信息。
  6. 根据权利要求1所述的方法,其中,所述一个节点的节点信息还包括所述一个节点指示的内容的属性信息;
    所述提取与所述目标节点指示的目标内容之后,所述方法还包括:
    根据所述目标内容的属性信息,显示提示信息,所述提示信息用于提示对所述目标内容执行目标操作;
    其中,所述目标操作包括以下至少一项:搜索与所述目标内容相关的内容,将所述目标内容分享至目标对象,复制所述目标内容,保存所述目标内容。
  7. 一种内容提取装置,所述内容提取装置包括获取模块、确定模块和处理模块;
    所述获取模块,用于在电子设备的屏幕中显示目标界面的情况下,若接收到用户对所述屏幕的目标触控输入,则获取目标坐标,所述目标坐标为在所述目标界面中被选中的目标位置的坐标,所述目标位置与所述目标触控输入在所述屏幕上的触控位置对应;
    所述获取模块,还用于获取所述目标界面中的至少一个节点的节点信息,一个节点的节点信息包括所述一个节点的节点坐标和所述一个节点指示的内容;
    所述确定模块,用于根据所述获取模块获取的所述目标坐标和所述至少一个节点的节点信息,确定目标节点,所述目标节点的节点坐标与所述目标坐标匹配;
    所述处理模块,用于提取所述确定模块确定的所述目标节点指示的所述目标界面包括的目标内容。
  8. 根据权利要求7所述的装置,其中,所述确定模块,具体用于根据所述屏幕与所述目标界面的对应关系,确定与所述触控位置对应的所述目标位置;
    所述获取模块,具体用于根据所述确定模块确定的所述目标位置,获取所述目标坐标。
  9. 根据权利要求8所述的装置,其中,所述目标位置为所述目标界面中的一个显示区域;
    所述获取模块,具体用于获取所述一个显示区域的位置信息;
    所述确定模块,具体用于根据所述获取模块获取的所述位置信息,确定所述一个 显示区域的中心点的坐标;并将所述中心点的坐标,作为目标坐标。
  10. 根据权利要求7所述的装置,其中,所述处理模块,还用于依次比对所述目标坐标与所述至少一个节点的节点坐标;
    所述确定模块,具体用于从所述至少一个节点中,确定节点坐标与所述目标坐标匹配的节点作为目标节点。
  11. 根据权利要求7所述的装置,其中,所述目标界面包括目标脚本,所述目标脚本用于获取所述目标界面中每个节点的节点信息;
    所述获取模块,具体用于通过运行所述目标脚本,获取所述至少一个节点的节点信息。
  12. 根据权利要求7所述的装置,其中,所述一个节点的节点信息还包括所述一个节点指示的内容的属性信息;所述内容提取装置还包括显示模块;
    所述显示模块,用于在所述处理模块提取与所述目标节点指示的所述目标界面包括的所述目标内容之后,根据所述目标内容的属性信息,显示提示信息,所述提示信息用于提示对所述目标内容执行目标操作;
    其中,所述目标操作包括以下至少一项:搜索与所述目标内容相关的内容,将所述目标内容分享至目标对象,复制所述目标内容,保存所述目标内容。
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6中任一项所述的内容提取方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6中任一项所述的内容提取方法的步骤。
  15. 一种内容提取装置,包括所述装置被配置成用于执行如权利要求1至6中任一项所述的内容提取方法。
  16. 一种计算机软件产品,其特征在于,所述软件产品被至少一个处理器执行以实现如权利要求1至6任一项所述的内容提取方法。
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的内容提 取方法。
PCT/CN2022/073823 2021-01-25 2022-01-25 内容提取方法、装置 WO2022156817A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020237028961A KR20230131947A (ko) 2021-01-25 2022-01-25 콘텐츠 추출 방법, 장치
EP22742294.6A EP4283453A4 (en) 2021-01-25 2022-01-25 CONTENT EXTRACTION METHOD AND APPARATUS
US18/225,433 US11983400B2 (en) 2021-01-25 2023-07-24 Content extraction method, electronic device and medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110098927.3A CN112817514B (zh) 2021-01-25 2021-01-25 内容提取方法、装置
CN202110098927.3 2021-01-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/225,433 Continuation US11983400B2 (en) 2021-01-25 2023-07-24 Content extraction method, electronic device and medium

Publications (1)

Publication Number Publication Date
WO2022156817A1 true WO2022156817A1 (zh) 2022-07-28

Family

ID=75859168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073823 WO2022156817A1 (zh) 2021-01-25 2022-01-25 内容提取方法、装置

Country Status (5)

Country Link
US (1) US11983400B2 (zh)
EP (1) EP4283453A4 (zh)
KR (1) KR20230131947A (zh)
CN (1) CN112817514B (zh)
WO (1) WO2022156817A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817514B (zh) 2021-01-25 2022-06-24 维沃移动通信(杭州)有限公司 内容提取方法、装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527945A (zh) * 2016-11-09 2017-03-22 广东小天才科技有限公司 文本信息提取方法及装置
US20180143758A1 (en) * 2016-11-18 2018-05-24 Adobe Systems Incorporated Content filtering system for touchscreen devices
CN109739416A (zh) * 2018-04-19 2019-05-10 北京字节跳动网络技术有限公司 一种文本提取方法和装置
CN111124888A (zh) * 2019-11-28 2020-05-08 腾讯科技(深圳)有限公司 录制脚本的生成方法和装置及电子装置
CN112817514A (zh) * 2021-01-25 2021-05-18 维沃移动通信(杭州)有限公司 内容提取方法、装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9218083B2 (en) * 2012-01-20 2015-12-22 Htc Corporation Methods for parsing content of document, handheld electronic apparatus and computer-readable medium thereof
CN103488652B (zh) * 2012-06-08 2018-11-16 北京千橡网景科技发展有限公司 网页内容提取方法和网页内容提取装置
US20190080175A1 (en) * 2017-09-14 2019-03-14 Comcast Cable Communications, Llc Methods and systems to identify an object in content
CN110020292B (zh) * 2017-10-13 2020-07-28 华为技术有限公司 网页内容提取方法以及终端设备
US20220012421A1 (en) * 2020-07-13 2022-01-13 International Business Machines Corporation Extracting content from as document using visual information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527945A (zh) * 2016-11-09 2017-03-22 广东小天才科技有限公司 文本信息提取方法及装置
US20180143758A1 (en) * 2016-11-18 2018-05-24 Adobe Systems Incorporated Content filtering system for touchscreen devices
CN109739416A (zh) * 2018-04-19 2019-05-10 北京字节跳动网络技术有限公司 一种文本提取方法和装置
CN111124888A (zh) * 2019-11-28 2020-05-08 腾讯科技(深圳)有限公司 录制脚本的生成方法和装置及电子装置
CN112817514A (zh) * 2021-01-25 2021-05-18 维沃移动通信(杭州)有限公司 内容提取方法、装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4283453A4 *

Also Published As

Publication number Publication date
US20240004541A1 (en) 2024-01-04
KR20230131947A (ko) 2023-09-14
US11983400B2 (en) 2024-05-14
CN112817514B (zh) 2022-06-24
CN112817514A (zh) 2021-05-18
EP4283453A4 (en) 2024-07-17
EP4283453A1 (en) 2023-11-29

Similar Documents

Publication Publication Date Title
US20170193992A1 (en) Voice control method and apparatus
WO2017084452A1 (zh) 图形界面中标签页的处理方法和装置
WO2018000626A1 (zh) 基于电视机的网页浏览控制方法及相关装置
WO2022166820A1 (zh) 应用界面处理方法、装置、电子设备及可读存储介质
CN112399006B (zh) 文件发送方法、装置及电子设备
CN112988006B (zh) 显示方法、装置、电子设备和存储介质
CN113518026B (zh) 消息处理方法、装置和电子设备
WO2022156606A1 (zh) 信息处理方法、装置及电子设备
WO2022143336A1 (zh) 图形码识别方法、装置及电子设备
WO2022111394A1 (zh) 信息处理方法、装置和电子设备
WO2023284799A1 (zh) 搜索方法、装置及电子设备
WO2022242542A1 (zh) 应用图标的管理方法和电子设备
WO2018010316A1 (zh) 桌面页面管理的方法及装置
WO2021017853A1 (zh) 推荐操作序列的方法、终端及计算机可读介质
CN112486444A (zh) 投屏方法、装置、设备和可读存储介质
WO2023056977A1 (zh) 应用程序启动方法, 装置及电子设备
WO2022223002A1 (zh) 页面显示方法、装置及电子设备
US11983400B2 (en) Content extraction method, electronic device and medium
US20170315703A1 (en) Projector playing control method, device, and computer storage medium
JP2016502214A (ja) タブボタンの管理
CN113836089A (zh) 一种应用程序显示方法、装置、电子设备和可读存储介质
CN112764603B (zh) 消息显示方法、装置和电子设备
CN111766987B (zh) 应用程序管理方法、装置及电子设备
WO2022257883A1 (zh) 展示方法和展示装置
WO2022161243A1 (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: 22742294

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20237028961

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2022742294

Country of ref document: EP

Ref document number: 1020237028961

Country of ref document: KR

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022742294

Country of ref document: EP

Effective date: 20230825