WO2022135476A1 - Screenshot method and apparatus, and electronic device - Google Patents

Screenshot method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022135476A1
WO2022135476A1 PCT/CN2021/140478 CN2021140478W WO2022135476A1 WO 2022135476 A1 WO2022135476 A1 WO 2022135476A1 CN 2021140478 W CN2021140478 W CN 2021140478W WO 2022135476 A1 WO2022135476 A1 WO 2022135476A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshot
page
content
target
contact
Prior art date
Application number
PCT/CN2021/140478
Other languages
French (fr)
Chinese (zh)
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 WO2022135476A1 publication Critical patent/WO2022135476A1/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/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
    • 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/0486Drag-and-drop
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a screenshot method, an apparatus and an electronic device.
  • the user wants to obtain a screenshot that only includes part of the conversation message content in the conversation interface, the user needs to take a screenshot of the conversation interface first, and then take the conversation message except the part of the conversation message in the obtained screenshot.
  • the area is mosaicked.
  • the purpose of the embodiments of the present application is to provide a screenshot method, which can solve the problems of complicated steps and low flexibility in the related screenshot process.
  • an embodiment of the present application provides a method for taking screenshots.
  • the method includes: in the case of displaying a first page, receiving a screenshot input, where the first page contains conversation messages of N contacts; in response to the screenshot input , intercept the page content in the target area to obtain the first screenshot; based on the target contact selected by the user from the above N contacts, filter out other conversation message contents in the first screenshot except the first page content to obtain the target contact Screenshot; wherein, the content of the first page includes the message content of the conversation message of the target contact.
  • an embodiment of the present application provides a method for taking screenshots.
  • the method includes: in the case of displaying a first page, receiving a screenshot input, where the first page contains conversation messages of N contacts; in response to the screenshot input , based on the target contact selected by the user from the above-mentioned N contacts, intercept the content of the first page in the above-mentioned first page, and obtain the target screenshot; wherein, the above-mentioned first page content includes the message of the conversation message of the target contact content.
  • an embodiment of the present application provides a screenshot device, and the device includes: a receiving module and an executing module, wherein:
  • the above-mentioned receiving module is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module is configured to respond to the screenshot input received by the receiving module , intercept the page content in the target area to obtain the first screenshot; based on the target contact selected by the user from the above N contacts, filter out other conversation message contents in the first screenshot except the first page content to obtain the target contact A screenshot, wherein the content of the first page includes the message content of the conversation message of the target contact.
  • an embodiment of the present application provides a screenshot device, where the device includes: a receiving module and an executing module, wherein:
  • the above-mentioned receiving module is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module is configured to respond to the screenshot input received by the above-mentioned receiving module, Based on the target contact selected by the user from the above-mentioned N contacts, the first content in the above-mentioned first page is intercepted to obtain a target screenshot; wherein the above-mentioned first page content includes the message content of the conversation message of the above-mentioned target contact.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor, when executed, implements the steps of the method as described in the first aspect or the second aspect.
  • 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 implementation is as described in the first aspect or the second aspect steps of the method.
  • 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 configured to run a program or an instruction, and implement the first aspect or the method described in the second aspect.
  • an embodiment of the present application provides a computer program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the first aspect or the second aspect. method described.
  • the electronic device when the first page is displayed, after the electronic device receives the user's input of a screenshot of the target area on the first page (including the conversation messages of N contacts), the electronic device may select the target based on the user's selection
  • the contact performs a target operation on the target area to obtain a target screenshot, wherein the target operation includes: intercepting the content of the page in the target area to obtain a first screenshot, and filtering out other content in the first screenshot except the content of the first page to obtain the target screenshot; or, directly intercept the content of the first page in the target area to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • Fig. 2 is one of the schematic diagrams of the interface to which a screenshot method provided by an embodiment of the present application is applied;
  • FIG. 3 is the second method flowchart of a screenshot method provided by an embodiment of the present application.
  • FIG. 4 is the second schematic diagram of an interface to which a screenshot method provided by an embodiment of the present application is applied;
  • FIG. 5 is one of the schematic structural diagrams of a screenshot device provided by an embodiment of the present application.
  • FIG. 6 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the screenshot method provided by the embodiment of the present application can be applied to a screenshot scenario.
  • the conversation interface of conversation application A includes conversation message content A of contact A, conversation message content A of contact B, and conversation message content C of contact C. If the user wants to share the content of the conversation message with contact A and contact C to others by taking screenshots, that is, if the user wants to obtain a screenshot of the content of the conversation message containing only contact A and contact C, the user needs to Delete the conversation message of contact B in the conversation interface, and then take a screenshot of the conversation interface. In this way, after the user deletes the conversation message of contact B in the conversation interface, the conversation message of contact B cannot be viewed from the conversation interface, resulting in cumbersome and inflexible steps for obtaining screenshots of conversation message content.
  • the screenshot device may first take a screenshot of the session interface of the session application A to obtain a screenshot, and then filter out the content of the session message of the contact B in the screenshot to obtain a session that only includes the contact A and the contact C.
  • FIG. 1 shows a flowchart of the screenshot method provided by the embodiment of the present application.
  • the screenshot method provided by this embodiment of the present application may include the following steps 101 to 103:
  • Step 101 In the case of displaying the first page, receive a screenshot input.
  • the above-mentioned first page includes conversation messages of N contacts.
  • the above-mentioned screenshot input includes: any feasible input, such as touch input, gesture input, voice input, and the like.
  • the screenshot device may take a single-screen screenshot or a long-screen screenshot of the first page.
  • the user may drag the first page to select a range to be captured, and after determining the capture range, take a screenshot of the first page within the range.
  • Step 102 In response to the above screenshot input, intercept the page content in the target area to obtain a first screenshot.
  • the screenshot device may perform the first operation on the first screenshot.
  • the above-mentioned first operation includes at least one of the following: removing the task bar of the first screenshot, rearranging the content of the conversation message in the first screenshot, adjusting the spacing of the content of the conversation message in the first screenshot to a preset value, For example, uniformly set the spacing of conversation messages in the screenshot to 40px.
  • Step 103 Based on the target contact selected by the user from the N contacts, filter out the content of the conversation message other than the content of the first page in the first screenshot to obtain the target screenshot.
  • the content of the first page includes the message content of the conversation message of the target contact.
  • the content of the first page is the message content of the conversation message of the target contact among the N contacts.
  • the message content of the above conversation message includes at least one of the following: an avatar of the contact in the conversation application, the nickname of the contact in the conversation application, and the message content of the conversation message of the contact.
  • the above-mentioned target contact is at least one contact among the above-mentioned N contacts, and the above-mentioned target contact is a contact determined from the N contacts by the screenshot apparatus according to a predetermined condition.
  • the above predetermined condition includes at least one of the following: the number of conversation messages displayed in the target area exceeds a threshold, or a contact selected by the user from N contacts.
  • the screenshot device may parse the first screenshot, and determine the content of all conversation messages (for example, conversation messages and contact avatars) included in the first screenshot. , and then according to the target contact selected by the user from the N contacts, all the content of the conversation messages contained in the first screenshot above are screened to obtain the content of the conversation messages (that is, the content of the first page) except the content of the conversation messages corresponding to the target contact (that is, the content of the first page). Screenshots of other conversational message content.
  • conversation messages for example, conversation messages and contact avatars
  • the screenshot device may identify the first screenshot, Determine the image area where the content of other conversation messages other than the above-mentioned first page content in the first screenshot is located, and delete the displayed content in the image area to obtain a conversation message that only includes the above-mentioned target contact Target screenshot of content.
  • the screenshot device can obtain a screenshot containing only the content of the conversation message required by the user without changing the content of the original page, which improves the flexibility and convenience of the screenshot.
  • the electronic device when the first page is displayed, receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts. , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • the screenshot device when obtaining the target screenshot, the screenshot device also needs to select the target contact corresponding to the conversation message to be retained from the N contacts.
  • the screenshot method provided in this embodiment of the present application further includes the following steps A1 and A2:
  • Step A1 Display the contact identifiers of the N contacts.
  • Step A2 Receive the user's first input of the target contact identifier among the N contact identifiers.
  • the above-mentioned first input may be any feasible input such as a click input, a sliding input, or a dragging input.
  • step 103 includes the following step B1:
  • Step B1 In response to the above-mentioned first input, based on the above-mentioned target contact, other contents except the first page content in the above-mentioned first screenshot are filtered to obtain the target screenshot.
  • the screenshot device may display contact identifiers of the N contacts in any area of the first page.
  • the above-mentioned N contacts are the contacts corresponding to the target conversation message in the above-mentioned first page.
  • the above-mentioned target conversation message includes at least one of the following: the conversation message in the first area selected by the user from the first page, the conversation message in the display area of the first page displayed on the screen, received within a predetermined time period Or the session message sent.
  • the screenshot device may parse the first page to obtain contact identifiers of the N contacts included in the first page.
  • the above-mentioned contact identifier includes at least one of the following: the avatar of the contact in the conversation application, the nickname of the contact in the conversation application, the above-mentioned contact identifier can be any form that can indicate a contact, and this application implements This example does not make any restrictions.
  • the above-mentioned contact identifier includes at least one of the following: the avatar of the contact in the conversation application, the nickname of the contact in the conversation application, the above-mentioned contact identifier can be any form that can indicate a contact, and this application implements This example does not make any restrictions.
  • the target contact identifiers include at least one of the following: contact identifiers selected by the user from N contact identifiers, and contact identifiers of contacts whose number of conversation messages exceeds a threshold.
  • the above-mentioned second input by the user to the target contact identifier may be any feasible input such as clicking, pressing, dragging, etc., which is not limited in this embodiment of the present application.
  • the screenshot device can automatically obtain the contact identifier from the current conversation message page, which improves the convenience of the screenshot process.
  • the above-mentioned N contact identifiers may be acquired by the screenshot device from the first page, or acquired by the screenshot device from the first screenshot.
  • step A1 includes the following step C1:
  • Step C1 Identify the above-mentioned first page or the above-mentioned first screenshot, and display contact identifiers of N contacts.
  • the screenshot method provided by the embodiment of the present application further includes the following step D1:
  • Step D1 Display the screenshot thumbnail of the first screenshot on the first page.
  • the above-mentioned first input is: a drag input in which the user drags the above-mentioned target contact identifier to the above-mentioned screenshot thumbnail.
  • the screenshot device may display the screenshot thumbnails in any display area of the first page in a preset style, where the preset style includes at least one of the following: preset transparency, preset size, and preset border.
  • screenshot thumbnails may be displayed in a suspended manner on the first page, or displayed fixedly on the first page, which is not limited in this embodiment of the present application.
  • the screenshot device displays the screenshot thumbnails of the first screenshot on the first page
  • the screenshots can be filtered based on the target contact.
  • Conversation message content other than the conversation message content of the target contact in the first screenshot corresponding to the thumbnail is obtained to obtain conversation message content that only includes the target contact.
  • a screenshot thumbnail 21 of the chat APP is displayed on the screen, and the contacts of the contact ID 1 of the contact 1, the contact ID 2 of the contact 2, and the contact 3 are displayed on the screen. People logo 3. If the user wants to get a screenshot of the content of the conversation message that only includes the contact 1 and the contact 2, as shown in (b) of FIG. (person ID) onto the thumbnail A above, triggering the screenshot device to filter the screenshot A. As shown in (c) of FIG. 2 , a target screenshot including only the content of the conversation message of the contact 1 and the contact 2 is obtained.
  • the user can drag the contact identifier to the thumbnail on the current conversation interface without jumping to other pages, thereby improving the human-computer interaction performance.
  • the screenshot device will store the first screenshot and the contact identifier.
  • the screenshot device may acquire X contact identifiers in the first screenshot, and save the X contact identifiers and the first screenshot.
  • the screenshot device can identify the above-mentioned first screenshot, obtain X contact identifiers included in the above-mentioned first screenshot, and save the above-mentioned contact identifier and the first screenshot in the photo album of the electronic device.
  • the screenshot device can establish an association relationship with the above-mentioned first screenshot and the above-mentioned X contact identifiers, and when the user views the first screenshot in the album, the screen simultaneously displays. X contact identifiers in the first screenshot.
  • the screenshot A of the conversation interface A and the contact avatar 1 and the contact avatar 2 (that is, the contact ID) in the screenshot A are saved in the photo album of the electronic device, and the above-mentioned screenshot A is displayed in the photo album on the electronic device, Or when the thumbnails of the above screenshot A are displayed in a list in the album, the user can drag the contact avatar 2 in the album to the above screenshot A or the thumbnail of the screenshot A, and then the screenshot device can filter out the screenshot A. Except for the content of the conversation message corresponding to the contact avatar A, a screenshot of the conversation message containing only the contact A is obtained.
  • the screenshot device can process the screenshots that have been saved in the album, so as to meet the user's requirement for processing the saved screenshots and improve the human-computer interaction performance.
  • FIG. 3 shows a flowchart of the screenshot method provided by the embodiment of the present application.
  • the screenshot method provided by this embodiment of the present application may include the following steps 201 and 202:
  • Step 201 Receive a screenshot input when the first page is displayed.
  • the above-mentioned first page includes conversation messages of N contacts.
  • the above-mentioned screenshot input includes: any feasible input, such as touch input, gesture input, voice input, and the like.
  • the screenshot device may take a single-screen screenshot or a long-screen screenshot of the first page.
  • the user may drag the first page to select a range to be captured, and after determining the capture range, take a screenshot of the first page within the range.
  • Step 202 In response to the screenshot input, based on the target contact selected by the user from the N contacts, intercept the content of the first page in the first page to obtain the target screenshot.
  • the content of the first page includes the message content of the conversation message of the target contact.
  • the content of the first page is the message content of the conversation message of the target contact among the N contacts.
  • the message content of the above conversation message includes at least one of the following: an avatar of the contact in the conversation application, the nickname of the contact in the conversation application, and the message content of the conversation message of the contact.
  • the above-mentioned target contact is at least one contact among the above-mentioned N contacts, and the above-mentioned target contact is a contact determined from the N contacts by the screenshot device according to a predetermined condition.
  • the above predetermined condition includes at least one of the following: the number of conversation messages displayed in the target area exceeds a threshold, or a contact selected by the user from N contacts.
  • the electronic device when the first page is displayed, after the electronic device receives the user's input of a screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • the screenshot method provided by the embodiment of the present application before receiving the screenshot input in the foregoing step 201, the screenshot method provided by the embodiment of the present application further includes the following step E1:
  • Step E1 Display the contact identifiers of the above N contacts on the first area of the above first page.
  • the above-mentioned screenshot input includes: dragging input of dragging the target contact identifier among the N contact identifiers out of the above-mentioned first area.
  • the above-mentioned first area includes any one of the following: a window, a pop-up box, and a sub-page, and the above-mentioned first area may be displayed in a floating manner on the first page.
  • the user may select at least one contact identifier from the N contact identifiers, and select the at least one contact identifier from the first contact identifier on the first page.
  • the area is dragged out to other display areas on the first page.
  • the screenshot device can take a screenshot of the content of the conversation messages of the contacts corresponding to the contact identifiers other than the at least one contact identifier on the first page, to obtain the above target. screenshot.
  • a conversation interface (ie, the first page) of the chat APP is displayed on the screen, and a window 41 is displayed on the screen, and the conversation message content 1 of the contact 1 (ie, the first page) is displayed on the conversation interface.
  • Contact ID 1 of Contact 1 i.e. Conversation Message 4
  • Contact ID 1 of Contact 1 of Contact 1 i.e. Conversation Message 4
  • the user can drag the contact ID 1 and the contact ID 2 out of the window 41 .
  • a screenshot of the conversation message containing only Contact 1 and Contact 2 is obtained.
  • the screenshot device can automatically perform a screenshot operation after the user drags the contact ID into the conversation interface to obtain the target screenshot, without the need for the user to input the screenshot function and then take a screenshot, thereby improving the human-computer interaction performance.
  • the screenshot method provided by the embodiment of the present application before receiving the screenshot input in the foregoing step 201, the screenshot method provided by the embodiment of the present application further includes the following steps 201a to 201c:
  • Step 201a Display the contact identifiers of the N contacts.
  • Step 201b Receive a fourth input from the user for the target contact identifier among the N contact identifiers.
  • Step 201c In response to the above fourth input, use the contact indicated by the above target contact identifier as the target contact.
  • the above-mentioned fourth input may be any feasible input manner.
  • step 202 the content of the first page in the target area is intercepted to obtain the target screenshot, including the following steps 202a and 202b:
  • Step 202a Copy the first page.
  • Step 202b Filter the content of the session message other than the content of the first page in the copied first page, intercept the content of the remaining pages, and obtain the target screenshot.
  • the page content in the copied first page is the same as the page content in the first page.
  • the screenshot device may parse the page content of the copied first page, delete the page content other than the first page content in the copied first page, and obtain a page containing only the first page content, and A screenshot operation is performed on the page, so as to obtain a screenshot of the page containing only the content of the first page.
  • the screenshot device can obtain a screenshot of the first page that only contains the page content required by the user without changing the page content of the original first page, thereby improving the human-computer interaction effect.
  • the execution body may be a screenshot device, or a control module in the screenshot device for executing the screenshot method.
  • a method for performing a screenshot by a screenshot device is used as an example to describe the screenshot device provided by the embodiments of the present application.
  • the screenshot device 400 includes: a receiving module 401 and an executing module 402 .
  • An optional implementation is:
  • the above-mentioned receiving module 401 is configured to receive screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module 402 is used to respond to the screenshot input received by the above-mentioned receiving module 401 , based on the target contact selected by the user from the N contacts, filter out the content of the conversation message in the first screenshot except the content of the first page to obtain the target screenshot; wherein the content of the first page includes the target contact The message content of the session message.
  • the above-mentioned screenshot device 400 further includes: a display module 403; the above-mentioned display module 403 is configured to display contact identifiers of N contacts; the above-mentioned receiving module 401 is further configured to receive user feedback The first input of the target contact identifier among the N contact identifiers; the above-mentioned execution module 402 is specifically configured to, in response to the first input received by the above-mentioned receiving module 401, filter out the above-mentioned first screenshot based on the target contact Other content except the first page content, get the target screenshot.
  • the above-mentioned display module 403 is specifically configured to identify the first page or the first screenshot, and display contact identifiers of N contacts.
  • the above-mentioned display module 403 is further configured to display a thumbnail image of the above-mentioned first screenshot on the above-mentioned first page; wherein, the above-mentioned first input is: the user identifies the above-mentioned target contact Drag to the drag input of the screenshot thumbnail.
  • the electronic device when the first page is displayed, receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts. , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • the screenshot device provided in the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 and FIG. 2 , and to avoid repetition, details are not described here.
  • Another optional implementation is:
  • the above-mentioned receiving module 401 is configured to receive screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module 402 is used to respond to the screenshot input received by the above-mentioned receiving module 401 , based on the target contact selected by the user from the above-mentioned N contacts, intercept the first content in the first page to obtain a target screenshot; wherein, the above-mentioned first page content includes the message content of the conversation message of the above-mentioned target contact .
  • the above-mentioned screenshot device 400 further includes a display module 403, and the above-mentioned display module 403 is configured to display the information of the above-mentioned N contacts on the first area of the first page.
  • Contact identification wherein, the above screenshot input includes: dragging input of dragging the target contact identification among the N contact identifications out of the first area.
  • the above-mentioned display module 403 is further configured to display the contact identifiers of the N contacts; the above-mentioned receiving module 401 is further configured to receive the user's identification of the target contact among the N contact identifiers The fourth input of the identification; the above-mentioned execution module 402 is further configured to, in response to the fourth input received by the above-mentioned receiving module 401, take the contact indicated by the above-mentioned target contact identification as the target contact.
  • the above-mentioned execution module 402 is specifically configured to copy the above-mentioned first page; filter other session message content except the content of the first page in the copied first page, and intercept the content of the remaining pages , to get a screenshot of the target.
  • the electronic device when the first page is displayed, after the electronic device receives the user's input of the screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • the screenshot device provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 3 and FIG. 4 , and to avoid repetition, details are not described here.
  • the screenshot device in this embodiment of the present application may be a device, 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
  • PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (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 screenshot device in the embodiment of the present application may be a device with 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.
  • an embodiment of the present application further provides an electronic device 500, including a memory 501, a processor 502, and a program or instruction stored in the memory 501 and executable on the processor 502,
  • an electronic device 500 including a memory 501, a processor 502, and a program or instruction stored in the memory 501 and executable on the processor 502,
  • the program or instruction is executed by the processor 502
  • each process of the above screenshot method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 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 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on 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. .
  • An optional implementation is:
  • the above-mentioned user input unit 107 is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned processor 110, In response to the screenshot input received by the above-mentioned user input unit 107, based on the target contact selected by the user from the N contacts, filter out the content of the conversation message other than the content of the first page in the above-mentioned first screenshot to obtain the target screenshot ; wherein, the content of the first page includes the message content of the conversation message of the target contact.
  • the above-mentioned display module 106 is configured to display the contact identifiers of the N contacts; the above-mentioned user input unit 107 is further configured to receive the target contact from the N contact identifiers from the user.
  • the first input of the identification; the above-mentioned processor 110 is specifically configured to, in response to the first input received by the above-mentioned receiving module 401, filter out other content except the first page content in the above-mentioned first screenshot based on the target contact, Get a screenshot of the target.
  • the above-mentioned display unit 106 is specifically configured to identify the above-mentioned first page or the first screenshot, and display contact identifiers of the N contacts.
  • the above-mentioned display unit 106 is further configured to display a thumbnail image of the above-mentioned first screenshot on the above-mentioned first page; wherein, the above-mentioned first input is: the user identifies the above-mentioned target contact Drag to the drag input of the screenshot thumbnail.
  • the electronic device in the case of displaying the first page, receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • Another optional implementation is:
  • the above-mentioned user input unit 107 is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned sharp-holding device 110, In response to the screenshot input received by the above-mentioned user input unit 107, based on the target contact selected by the user from the above-mentioned N contacts, intercept the first content in the first page to obtain the target screenshot; wherein, the above-mentioned first The page content includes the message content of the conversation message of the target contact.
  • the above-mentioned display unit 106 is configured to display the contact identifiers of the above-mentioned N contacts on the first area of the first page; wherein, the above-mentioned screenshot input includes: displaying the N contacts The target contact ID in the ID is dragged out of the drag input in the first area.
  • the above-mentioned display unit 106 is further configured to display the contact identifiers of the N contacts; the above-mentioned user input unit 107 is further configured to receive the user's target contact among the N contact identifiers The fourth input of the person identifier; the processor 110 is further configured to, in response to the fourth input received by the receiving module 401, use the contact indicated by the target contact identifier as the target contact.
  • the above-mentioned processor 110 is specifically configured to copy the above-mentioned first page; filter other session message content except the content of the first page in the copied first page, and intercept the content of the remaining pages , to get a screenshot of the target.
  • the electronic device in the case of displaying the first page, after the electronic device receives the user's input of a screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot.
  • the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot.
  • the area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 is used to communicate with the image capture device (such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 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 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing screenshot method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it 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.
  • An embodiment of the present application provides a computer program product, where the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.

Abstract

Disclosed are a screenshot method and apparatus, and an electronic device. The method comprises: when a first page is displayed, receiving a screenshot input, wherein the first page contains session messages of N contacts; in response to the screenshot input, capturing page content in a target area to obtain a first screenshot; and filtering out, on the basis of a target contact selected from among the N contacts by a user, session message content in the first screenshot other than the first page content, to obtain a target screenshot, wherein the first page content comprises message content of a session message of the target contact.

Description

截图方法、装置及电子设备Screenshot method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年12月24日在中国提交的中国专利申请号No.202011553257.1的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011553257.1 filed in China on Dec. 24, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种截图方法、装置及电子设备。The present application belongs to the field of communication technologies, and in particular relates to a screenshot method, an apparatus and an electronic device.
背景技术Background technique
随着电子技术的发展,电子设备中的会话应用扮演着重要的角色,目前,用户可以通过截屏的方式,将会话应用中的会话消息内容以截图的形式分享出去。With the development of electronic technology, conversation applications in electronic devices play an important role. Currently, users can share the content of conversation messages in conversation applications in the form of screenshots by taking screenshots.
在相关技术中,如果用户想要得到只包括会话界面中部分会话消息内容的截图,则需要用户先对该会话界面进行截图操作,再将得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克。In the related art, if the user wants to obtain a screenshot that only includes part of the conversation message content in the conversation interface, the user needs to take a screenshot of the conversation interface first, and then take the conversation message except the part of the conversation message in the obtained screenshot. The area is mosaicked.
如此,导致整个截图过程的步骤繁琐且灵活性低。In this way, the steps of the whole screenshot process are cumbersome and the flexibility is low.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种截图方法,能够解决相关截图过程所存在的步骤繁琐且灵活性低的问题。The purpose of the embodiments of the present application is to provide a screenshot method, which can solve the problems of complicated steps and low flexibility in the related screenshot process.
第一方面,本申请实施例提供了一种截图方法,该方法包括:在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;响应于上述截图输入,截取目标区域中的页面内容,得到第一截图;基于用户从上述N个联系人中选择的目标联系人,滤除上述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。In a first aspect, an embodiment of the present application provides a method for taking screenshots. The method includes: in the case of displaying a first page, receiving a screenshot input, where the first page contains conversation messages of N contacts; in response to the screenshot input , intercept the page content in the target area to obtain the first screenshot; based on the target contact selected by the user from the above N contacts, filter out other conversation message contents in the first screenshot except the first page content to obtain the target contact Screenshot; wherein, the content of the first page includes the message content of the conversation message of the target contact.
第二方面,本申请实施例提供了一种截图方法,该方法包括:在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;响应于上述截图输入,基于用户从上述N个联系人中选择的目标联系人,截取上述第一页面中的第一页面内容,得到目标截图;其中,上述第一页面内容包括所述目标联系人的会话消息 的消息内容。In a second aspect, an embodiment of the present application provides a method for taking screenshots. The method includes: in the case of displaying a first page, receiving a screenshot input, where the first page contains conversation messages of N contacts; in response to the screenshot input , based on the target contact selected by the user from the above-mentioned N contacts, intercept the content of the first page in the above-mentioned first page, and obtain the target screenshot; wherein, the above-mentioned first page content includes the message of the conversation message of the target contact content.
第三方面,本申请实施例提供了一种截图装置,上述装置包括:接收模块和执行模块,其中:In a third aspect, an embodiment of the present application provides a screenshot device, and the device includes: a receiving module and an executing module, wherein:
上述接收模块,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述执行模块,用于响应于所述接收模块接收的所述截图输入,截取目标区域中的页面内容,得到第一截图;基于用户从上述N个联系人中选择的目标联系人,滤除上述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图,其中,上述第一页面内容包括目标联系人的会话消息的消息内容。The above-mentioned receiving module is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module is configured to respond to the screenshot input received by the receiving module , intercept the page content in the target area to obtain the first screenshot; based on the target contact selected by the user from the above N contacts, filter out other conversation message contents in the first screenshot except the first page content to obtain the target contact A screenshot, wherein the content of the first page includes the message content of the conversation message of the target contact.
第四方面,本申请实施例提供了一种截图装置,上述装置包括:接收模块和执行模块,其中:In a fourth aspect, an embodiment of the present application provides a screenshot device, where the device includes: a receiving module and an executing module, wherein:
上述接收模块,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述执行模块,用于响应于上述接收模块接收的所述截图输入,基于用户从上述N个联系人中选择的目标联系人,截取上述第一页面中的第一内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。The above-mentioned receiving module is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module is configured to respond to the screenshot input received by the above-mentioned receiving module, Based on the target contact selected by the user from the above-mentioned N contacts, the first content in the above-mentioned first page is intercepted to obtain a target screenshot; wherein the above-mentioned first page content includes the message content of the conversation message of the above-mentioned target contact.
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或第二方面所述的方法的步骤。In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor, when executed, implements the steps of the method as described in the first aspect or the second aspect.
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或第二方面所述的方法的步骤。In a sixth aspect, 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 implementation is as described in the first aspect or the second aspect steps of the method.
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或第二方面所述的方法。In a seventh aspect, 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 configured to run a program or an instruction, and implement the first aspect or the method described in the second aspect.
第八方面,本申请实施例提供了一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现如第一方面或第二方面所述的方法。In an eighth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the first aspect or the second aspect. method described.
在本申请实施例中,在显示第一页面的情况下,电子设备接收到用户对第一页面中的目标区域(包括N个联系人的会话消息)的截图输入后,可以基于用户选择的目 标联系人对目标区域执行目标操作,以得到目标截图,其中,上述目标操作包括:截取目标区域中的页面内容得到第一截图,并滤除该第一截图中除第一页面内容以外的其他内容,得到目标截图;或者,直接截取目标区域中的第一页面内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In this embodiment of the present application, when the first page is displayed, after the electronic device receives the user's input of a screenshot of the target area on the first page (including the conversation messages of N contacts), the electronic device may select the target based on the user's selection The contact performs a target operation on the target area to obtain a target screenshot, wherein the target operation includes: intercepting the content of the page in the target area to obtain a first screenshot, and filtering out other content in the first screenshot except the content of the first page to obtain the target screenshot; or, directly intercept the content of the first page in the target area to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
附图说明Description of drawings
图1是本申请实施例提供的一种截图方法的方法流程图之一;1 is one of the method flow charts of a screenshot method provided by an embodiment of the present application;
图2是本申请实施例提供的一种截图方法所应用的界面的示意图之一;Fig. 2 is one of the schematic diagrams of the interface to which a screenshot method provided by an embodiment of the present application is applied;
图3是本申请实施例提供的一种截图方法的方法流程图之二;3 is the second method flowchart of a screenshot method provided by an embodiment of the present application;
图4是本申请实施例提供的一种截图方法所应用的界面的示意图之二;4 is the second schematic diagram of an interface to which a screenshot method provided by an embodiment of the present application is applied;
图5是本申请实施例提供的一种截图装置的结构示意图之一;5 is one of the schematic structural diagrams of a screenshot device provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的硬件结构示意图之一;6 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 7 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的截图方法进行详细地说明。The screenshot method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
本申请实施例提供的截图方法可以应用于截图场景中。The screenshot method provided by the embodiment of the present application can be applied to a screenshot scenario.
以截取会话应用中的会话消息的消息内容为例。假设会话应用A的会话界面中包括联系人A的会话消息内容A、联系人B的会话消息内容A和联系人C的会话消息内容C。若用户想通过截图的方式向他人分享与联系人A和联系人C的会话消息内容,即,用户想要获得只包含联系人A和联系人C的会话消息内容的截图,则需要用户先在会话界面中将联系人B的会话消息删除,再对会话界面进行截图。如此,当用户将会话界面中将联系人B的会话消息删除之后,也无法再从会话界面上查看联系人B的会话消息,导致整个获取会话消息内容截图的步骤繁琐且灵活性低。Take intercepting the message content of the conversation message in the conversation application as an example. It is assumed that the conversation interface of conversation application A includes conversation message content A of contact A, conversation message content A of contact B, and conversation message content C of contact C. If the user wants to share the content of the conversation message with contact A and contact C to others by taking screenshots, that is, if the user wants to obtain a screenshot of the content of the conversation message containing only contact A and contact C, the user needs to Delete the conversation message of contact B in the conversation interface, and then take a screenshot of the conversation interface. In this way, after the user deletes the conversation message of contact B in the conversation interface, the conversation message of contact B cannot be viewed from the conversation interface, resulting in cumbersome and inflexible steps for obtaining screenshots of conversation message content.
在本申请实施例中,截图装置可以先对会话应用A的会话界面进行截屏得到截图,再将该截图中联系人B的会话消息内容滤除,得到只包括联系人A和联系人C的会话消息内容的目标截图;或者,截图装置基于用户从所述N个联系人中选择的目标联系人,可以直接截取会话应用A的会话界面中联系人A和联系人C的会话消息内容,得到只包括联系人A和联系人C的会话消息内容的目标截图,如此,简化了获取包含特定的会话消息内容的截图的步骤,并且提高截图的灵活性。In the embodiment of the present application, the screenshot device may first take a screenshot of the session interface of the session application A to obtain a screenshot, and then filter out the content of the session message of the contact B in the screenshot to obtain a session that only includes the contact A and the contact C. A target screenshot of the message content; or, based on the target contact selected by the user from the N contacts, the screenshot device can directly intercept the conversation message content of the contact A and the contact C in the conversation interface of the conversation application A, and obtain only The target screenshots of the conversation message content of the contact A and the contact C are included, thus simplifying the steps of acquiring a screenshot containing the specific conversation message content and improving the flexibility of the screenshot.
本申请实施例提供了一种截图方法,该截图方法可以应用于电子设备,图1示出了本申请实施例提供的截图方法的流程图。如图1所示,本申请实施例提供的截图方法可以包括如下步骤101至步骤103:An embodiment of the present application provides a screenshot method, and the screenshot method can be applied to an electronic device. FIG. 1 shows a flowchart of the screenshot method provided by the embodiment of the present application. As shown in FIG. 1 , the screenshot method provided by this embodiment of the present application may include the following steps 101 to 103:
步骤101:在显示第一页面的情况下,接收截图输入。Step 101: In the case of displaying the first page, receive a screenshot input.
其中,上述第一页面包含N个联系人的会话消息。Wherein, the above-mentioned first page includes conversation messages of N contacts.
在本申请实施例中,上述截图输入包括:任意一种可行性输入,如,触控输入,手势输入,语音输入等。In the embodiment of the present application, the above-mentioned screenshot input includes: any feasible input, such as touch input, gesture input, voice input, and the like.
在本申请实施例中,截图装置可以对第一页面进行单屏截图或者长屏截图。例如,用户可以对第一页面进行拖动选择需要截取的范围,在确定截取范围后,对该范围内的第一页面进行截屏。In this embodiment of the present application, the screenshot device may take a single-screen screenshot or a long-screen screenshot of the first page. For example, the user may drag the first page to select a range to be captured, and after determining the capture range, take a screenshot of the first page within the range.
步骤102:响应于上述截图输入,截取目标区域中的页面内容,得到第一截图。Step 102: In response to the above screenshot input, intercept the page content in the target area to obtain a first screenshot.
可选地,在本申请实施例中,截图装置在得到第一截图后,可以对第一截图执行第一操作。其中,上述第一操作包括以下至少一项:去掉第一截图的任务栏,将第一截图中的会话消息内容进行重新排布,调整第一截图中的会话消息内容的间距为预设值,例如,将截图中的会话消息的间距统一设置为40px。Optionally, in this embodiment of the present application, after obtaining the first screenshot, the screenshot device may perform the first operation on the first screenshot. Wherein, the above-mentioned first operation includes at least one of the following: removing the task bar of the first screenshot, rearranging the content of the conversation message in the first screenshot, adjusting the spacing of the content of the conversation message in the first screenshot to a preset value, For example, uniformly set the spacing of conversation messages in the screenshot to 40px.
步骤103:基于用户从N个联系人中选择的目标联系人,滤除第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图。Step 103: Based on the target contact selected by the user from the N contacts, filter out the content of the conversation message other than the content of the first page in the first screenshot to obtain the target screenshot.
其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。Wherein, the content of the first page includes the message content of the conversation message of the target contact.
在本申请实施例中,上述第一页面内容为上述N个联系人中的目标联系人的会话消息的消息内容。In the embodiment of the present application, the content of the first page is the message content of the conversation message of the target contact among the N contacts.
示例性的,上述会话消息的消息内容包括以下至少一项:联系人在会话应用中的头像,联系人在会话应用中的昵称,联系人的会话消息的消息内容。Exemplarily, the message content of the above conversation message includes at least one of the following: an avatar of the contact in the conversation application, the nickname of the contact in the conversation application, and the message content of the conversation message of the contact.
示例性的,上述目标联系人为上述N个联系人中的至少一个联系人,上述目标联系人为截图装置按照预定条件从N个联系人中确定的联系人。其中,上述预定条件包括以下至少一项:在目标区域显示的会话消息数量超过阈值,或用户从N个联系人中选择的联系人。Exemplarily, the above-mentioned target contact is at least one contact among the above-mentioned N contacts, and the above-mentioned target contact is a contact determined from the N contacts by the screenshot apparatus according to a predetermined condition. The above predetermined condition includes at least one of the following: the number of conversation messages displayed in the target area exceeds a threshold, or a contact selected by the user from N contacts.
可选地,在本申请实施例中,截图装置在得到第一截图之后,可以对第一截图进行解析,确定上述第一截图中包含的所有会话消息内容(例如,会话消息和联系人头像),再根据用户从N个联系人中选中的目标联系人,对上述第一截图中包含的所有会话消息内容进行筛选,得到除目标联系人对应的会话消息内容(即,第一页面内容)之外的其他会话消息内容的截图。Optionally, in this embodiment of the present application, after obtaining the first screenshot, the screenshot device may parse the first screenshot, and determine the content of all conversation messages (for example, conversation messages and contact avatars) included in the first screenshot. , and then according to the target contact selected by the user from the N contacts, all the content of the conversation messages contained in the first screenshot above are screened to obtain the content of the conversation messages (that is, the content of the first page) except the content of the conversation messages corresponding to the target contact (that is, the content of the first page). Screenshots of other conversational message content.
可选地,在本申请实施例中,截图装置在得到除目标联系人标识对应的会话消息内容(即,第一页面内容)之外的其他会话消息内容之后,可以对第一截图进行识别,确定第一截图中除上述第一页面内容之外的其他会话消息之外的其他会话消息内容所在的图像区域,并将该图像区域中的显示内容删除,得到只包含上述目标联系人的会话消息内容的目标截图。如此,截图装置能够在不改变原始页面内容的情况下,得到只包含用户需求的会话消息内容的截图,提高了截图的灵活性和便捷性。Optionally, in this embodiment of the present application, after obtaining the content of the session message other than the content of the session message corresponding to the target contact identifier (that is, the content of the first page), the screenshot device may identify the first screenshot, Determine the image area where the content of other conversation messages other than the above-mentioned first page content in the first screenshot is located, and delete the displayed content in the image area to obtain a conversation message that only includes the above-mentioned target contact Target screenshot of content. In this way, the screenshot device can obtain a screenshot containing only the content of the conversation message required by the user without changing the content of the original page, which improves the flexibility and convenience of the screenshot.
在本申请实施例提供的截图方法中,在显示第一页面的情况下,电子设备接收到用户截图输入,得到第一截图后,可以基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the screenshot method provided by the embodiment of the present application, when the first page is displayed, the electronic device receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts. , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
可选地,在本申请实施例中,截图装置在得到目标截图时,还需要从N个联系人中选 择出想要保留的会话消息对应的目标联系人。Optionally, in the embodiment of the present application, when obtaining the target screenshot, the screenshot device also needs to select the target contact corresponding to the conversation message to be retained from the N contacts.
示例性的,上述步骤103之前,本申请实施例提供的截图方法还包括如下步骤A1和步骤A2:Exemplarily, before the above step 103, the screenshot method provided in this embodiment of the present application further includes the following steps A1 and A2:
步骤A1:显示N个联系人的联系人标识。Step A1: Display the contact identifiers of the N contacts.
步骤A2:接收用户对N个联系人标识中的目标联系人标识的第一输入。Step A2: Receive the user's first input of the target contact identifier among the N contact identifiers.
示例性的,上述第一输入可以为点击输入,滑动输入或者拖动输入等任意可行性输入。Exemplarily, the above-mentioned first input may be any feasible input such as a click input, a sliding input, or a dragging input.
结合上述步骤A1和步骤A2,上述步骤103包括如下步骤B1:Combining the above steps A1 and A2, the above step 103 includes the following step B1:
步骤B1:响应于上述第一输入,基于上述目标联系人,滤除上述第一截图中除第一页面内容以外的其他内容,得到目标截图。Step B1: In response to the above-mentioned first input, based on the above-mentioned target contact, other contents except the first page content in the above-mentioned first screenshot are filtered to obtain the target screenshot.
示例性的,截图装置可以在第一页面的任意区域显示N个联系人的联系人标识。Exemplarily, the screenshot device may display contact identifiers of the N contacts in any area of the first page.
示例性的,上述N个联系人为上述第一页面中的目标会话消息对应的联系人。进一步地,上述目标会话消息包括以下至少一项:用户从第一页面中选择的第一区域中的会话消息,在屏幕中显示的第一页面的显示区域中的会话消息,预定时间段内接收或者发送的会话消息。Exemplarily, the above-mentioned N contacts are the contacts corresponding to the target conversation message in the above-mentioned first page. Further, the above-mentioned target conversation message includes at least one of the following: the conversation message in the first area selected by the user from the first page, the conversation message in the display area of the first page displayed on the screen, received within a predetermined time period Or the session message sent.
示例性的,截图装置可以对第一页面进行解析,得到第一页面中包含的N个联系人的联系人标识。Exemplarily, the screenshot device may parse the first page to obtain contact identifiers of the N contacts included in the first page.
示例性的,上述联系人标识包括以下至少一项:联系人在会话应用中的头像,联系人在会话应用中的昵称,上述联系人标识可以是任一可以指示联系人的形式,本申请实施例对此不做任何限定。Exemplarily, the above-mentioned contact identifier includes at least one of the following: the avatar of the contact in the conversation application, the nickname of the contact in the conversation application, the above-mentioned contact identifier can be any form that can indicate a contact, and this application implements This example does not make any restrictions.
示例性的,上述联系人标识包括以下至少一项:联系人在会话应用中的头像,联系人在会话应用中的昵称,上述联系人标识可以是任一可以指示联系人的形式,本申请实施例对此不做任何限定。Exemplarily, the above-mentioned contact identifier includes at least one of the following: the avatar of the contact in the conversation application, the nickname of the contact in the conversation application, the above-mentioned contact identifier can be any form that can indicate a contact, and this application implements This example does not make any restrictions.
示例性的,上述目标联系人标识包括以下至少一项:用户从N个联系人标识中选择的联系人标识,会话消息数量超过阈值的联系人的联系人标识。Exemplarily, the target contact identifiers include at least one of the following: contact identifiers selected by the user from N contact identifiers, and contact identifiers of contacts whose number of conversation messages exceeds a threshold.
示例性的,上述用户对目标联系人标识的第二输入可以是点击、按压、拖动等任一可行的输入,本申请实施例对此不做任何限定。Exemplarily, the above-mentioned second input by the user to the target contact identifier may be any feasible input such as clicking, pressing, dragging, etc., which is not limited in this embodiment of the present application.
如此,截图装置可以自动从当前的会话消息页面中得到联系人标识,提高了这个截图过程的便捷性。In this way, the screenshot device can automatically obtain the contact identifier from the current conversation message page, which improves the convenience of the screenshot process.
可选地,在本申请实施例中,上述N个联系人标识可以是截图装置从第一页面中获取 的,或者是截图装置从第一截图中获取的。Optionally, in this embodiment of the present application, the above-mentioned N contact identifiers may be acquired by the screenshot device from the first page, or acquired by the screenshot device from the first screenshot.
示例性的,上述步骤A1包括如下步骤C1:Exemplarily, the above step A1 includes the following step C1:
步骤C1:识别上述第一页面或上述第一截图,显示N个联系人的联系人标识。Step C1: Identify the above-mentioned first page or the above-mentioned first screenshot, and display contact identifiers of N contacts.
进一步可选的,在本申请实施例中,上述步骤102之后,本申请实施例提供的截图方法还包括如下步骤D1:Further optionally, in the embodiment of the present application, after the above step 102, the screenshot method provided by the embodiment of the present application further includes the following step D1:
步骤D1:在上述第一页面上显示上述第一截图的截图缩略图。Step D1: Display the screenshot thumbnail of the first screenshot on the first page.
其中,上述第一输入为:用户将上述目标联系人标识拖动至上述截图缩略图的拖动输入。Wherein, the above-mentioned first input is: a drag input in which the user drags the above-mentioned target contact identifier to the above-mentioned screenshot thumbnail.
示例性的,截图装置可以将上述截图缩略图以预设样式显示在第一页面的任一显示区域,上述预设样式包括以下至少一项:预设透明度,预设尺寸,预设边框。Exemplarily, the screenshot device may display the screenshot thumbnails in any display area of the first page in a preset style, where the preset style includes at least one of the following: preset transparency, preset size, and preset border.
示例性的,上述截图缩略图可以悬浮显示在第一页面上,或者固定显示在第一页面上,本申请实施例对此不做任何限定。Exemplarily, the above screenshot thumbnails may be displayed in a suspended manner on the first page, or displayed fixedly on the first page, which is not limited in this embodiment of the present application.
示例性的,截图装置在上述第一页面上显示上述第一截图的截图缩略图的情况下,当用户将上述目标联系人标识拖动至上述截图缩略图之后,可以基于目标联系人,过滤截图缩略图对应的第一截图中除目标联系人的会话消息内容之外的会话消息内容,得到只包含目标联系人的会话消息内容。Exemplarily, when the screenshot device displays the screenshot thumbnails of the first screenshot on the first page, after the user drags the target contact identifier to the screenshot thumbnail, the screenshots can be filtered based on the target contact. Conversation message content other than the conversation message content of the target contact in the first screenshot corresponding to the thumbnail is obtained to obtain conversation message content that only includes the target contact.
举例说明,如图2中的(a)所示,屏幕上显示了聊天APP的截图缩略图21,以及联系人1的联系人标识1、联系人2的联系人标识2和联系人3的联系人标识3。若用户想要得到只包含联系人1和联系人2的会话消息内容的截图,则如图2中的(b)所示,用户可以将联系人标识1和联系人标识2(即上述目标联系人标识)拖动至上述缩略图A上,触发截图装置对截图A进行过滤操作。如图2中的(c)所示,得到仅包括联系人1和联系人2的会话消息内容的目标截图。For example, as shown in (a) of FIG. 2 , a screenshot thumbnail 21 of the chat APP is displayed on the screen, and the contacts of the contact ID 1 of the contact 1, the contact ID 2 of the contact 2, and the contact 3 are displayed on the screen. People logo 3. If the user wants to get a screenshot of the content of the conversation message that only includes the contact 1 and the contact 2, as shown in (b) of FIG. (person ID) onto the thumbnail A above, triggering the screenshot device to filter the screenshot A. As shown in (c) of FIG. 2 , a target screenshot including only the content of the conversation message of the contact 1 and the contact 2 is obtained.
如此,通过在会话界面上显示截图的缩略图,使得用户可以在当前会话界面上将联系人标识拖动至缩略图,而无需跳转至其他页面操作,提高了人机交互性能。In this way, by displaying the thumbnail of the screenshot on the conversation interface, the user can drag the contact identifier to the thumbnail on the current conversation interface without jumping to other pages, thereby improving the human-computer interaction performance.
可选地,在本申请实施例中,在截取目标区域中的页面内容得到第一截图之后,截图装置会对第一截图和联系人标识进行存储。Optionally, in this embodiment of the present application, after the first screenshot is obtained by capturing the page content in the target area, the screenshot device will store the first screenshot and the contact identifier.
示例性的,截图装置可以获取上述第一截图中的X个联系人标识,并保存上述X个联系人标识和上述第一截图。Exemplarily, the screenshot device may acquire X contact identifiers in the first screenshot, and save the X contact identifiers and the first screenshot.
进一步地,截图装置可以对上述第一截屏进行识别,得到上述第一截屏包含的X个联 系人标识,并将上述联系人标识和第一截图保存在电子设备的相册中。Further, the screenshot device can identify the above-mentioned first screenshot, obtain X contact identifiers included in the above-mentioned first screenshot, and save the above-mentioned contact identifier and the first screenshot in the photo album of the electronic device.
进一步地,在保存上述第一截图和上述X个联系人标识时,截图装置可以将上述第一截屏和上述X个联系人标识建立关联关系,当用户在相册中查看第一截图时,同时显示第一截图的X个联系人标识。Further, when saving the above-mentioned first screenshot and the above-mentioned X contact identifiers, the screenshot device can establish an association relationship with the above-mentioned first screenshot and the above-mentioned X contact identifiers, and when the user views the first screenshot in the album, the screen simultaneously displays. X contact identifiers in the first screenshot.
举例说明,在电子设备的相册中保存了会话界面A的截图A以及截图A中的联系人头像1和联系人头像2(即,联系人标识),在电子设备在相册中显示上述截图A,或者在相册中以列表形式显示上述截图A的缩略图的情况下,用户可以将相册中的联系人头像2拖动至上述截图A或者截图A的缩略图,之后,截图装置可以滤除截图A中除联系人头像A对应的会话消息内容以外的其他内容,得到只包含联系人A的会话消息的截图。For example, the screenshot A of the conversation interface A and the contact avatar 1 and the contact avatar 2 (that is, the contact ID) in the screenshot A are saved in the photo album of the electronic device, and the above-mentioned screenshot A is displayed in the photo album on the electronic device, Or when the thumbnails of the above screenshot A are displayed in a list in the album, the user can drag the contact avatar 2 in the album to the above screenshot A or the thumbnail of the screenshot A, and then the screenshot device can filter out the screenshot A. Except for the content of the conversation message corresponding to the contact avatar A, a screenshot of the conversation message containing only the contact A is obtained.
如此,截图装置可以对已经保存在相册中的截图进行处理,从而满足用户对已保存的截图进行处理的需求,提高了人机交互性能。In this way, the screenshot device can process the screenshots that have been saved in the album, so as to meet the user's requirement for processing the saved screenshots and improve the human-computer interaction performance.
本申请实施例提供了一种截图方法,该截图方法可以应用于电子设备,图3示出了本申请实施例提供的截图方法的流程图。如图3所示,本申请实施例提供的截图方法可以包括如下步骤201和步骤202:An embodiment of the present application provides a screenshot method, and the screenshot method can be applied to an electronic device. FIG. 3 shows a flowchart of the screenshot method provided by the embodiment of the present application. As shown in FIG. 3 , the screenshot method provided by this embodiment of the present application may include the following steps 201 and 202:
步骤201:在显示第一页面的情况下,接收截图输入。Step 201: Receive a screenshot input when the first page is displayed.
其中,上述第一页面包含N个联系人的会话消息。Wherein, the above-mentioned first page includes conversation messages of N contacts.
在本申请实施例中,上述截图输入包括:任意一种可行性输入,如,触控输入,手势输入,语音输入等。In the embodiment of the present application, the above-mentioned screenshot input includes: any feasible input, such as touch input, gesture input, voice input, and the like.
在本申请实施例中,截图装置可以对第一页面进行单屏截图或者长屏截图。例如,用户可以对第一页面进行拖动选择需要截取的范围,在确定截取范围后,对该范围内的第一页面进行截屏。In this embodiment of the present application, the screenshot device may take a single-screen screenshot or a long-screen screenshot of the first page. For example, the user may drag the first page to select a range to be captured, and after determining the capture range, take a screenshot of the first page within the range.
步骤202:响应于截图输入,基于用户从上述N个联系人中选择的目标联系人,截取上述第一页面中的第一页面内容,得到目标截图。Step 202: In response to the screenshot input, based on the target contact selected by the user from the N contacts, intercept the content of the first page in the first page to obtain the target screenshot.
其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。Wherein, the content of the first page includes the message content of the conversation message of the target contact.
在本申请实施例中,上述第一页面内容为上述N个联系人中的目标联系人的会话消息的消息内容。In the embodiment of the present application, the content of the first page is the message content of the conversation message of the target contact among the N contacts.
示例性的,上述会话消息的消息内容包括以下至少一项:联系人在会话应用中的头像,联系人在会话应用中的昵称,联系人的会话消息的消息内容。Exemplarily, the message content of the above conversation message includes at least one of the following: an avatar of the contact in the conversation application, the nickname of the contact in the conversation application, and the message content of the conversation message of the contact.
示例性的,上述目标联系人为上述N个联系人中的至少一个联系人,上述目标联系人 为截图装置按照预定条件从N个联系人中确定的联系人。其中,上述预定条件包括以下至少一项:在目标区域显示的会话消息数量超过阈值,或用户从N个联系人中选择的联系人。Exemplarily, the above-mentioned target contact is at least one contact among the above-mentioned N contacts, and the above-mentioned target contact is a contact determined from the N contacts by the screenshot device according to a predetermined condition. The above predetermined condition includes at least one of the following: the number of conversation messages displayed in the target area exceeds a threshold, or a contact selected by the user from N contacts.
在本申请实施例提供的截图方法中,在显示第一页面的情况下,电子设备接收到用户对第一页面中的目标区域(包括N个联系人的会话消息)的截图输入后,可以基于用户选择的目标联系人,直接截取目标区域中的第一页面内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the screenshot method provided by this embodiment of the present application, when the first page is displayed, after the electronic device receives the user's input of a screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
可选地,在本申请实施例中,上述步骤201中接收截图输入之前,本申请实施例提供的截图方法还包括如下步骤E1:Optionally, in the embodiment of the present application, before receiving the screenshot input in the foregoing step 201, the screenshot method provided by the embodiment of the present application further includes the following step E1:
步骤E1:在上述第一页面的第一区域上显示上述N个联系人的联系人标识。Step E1: Display the contact identifiers of the above N contacts on the first area of the above first page.
其中,上述截图输入包括:将N个联系人标识中的目标联系人标识拖出上述第一区域的拖动输入。Wherein, the above-mentioned screenshot input includes: dragging input of dragging the target contact identifier among the N contact identifiers out of the above-mentioned first area.
示例性的,上述第一区域包括以下任意一项:窗口、弹出框、子页面,上述第一区域可以在第一页面上悬浮显示。Exemplarily, the above-mentioned first area includes any one of the following: a window, a pop-up box, and a sub-page, and the above-mentioned first area may be displayed in a floating manner on the first page.
示例性的,在第一页面上显示N个联系人标识的情况下,用户可以从N个联系人标识中选择至少一个联系人标识,并将上述至少一个联系人标识从第一页面的第一区域拖出至第一页面的其他显示区域,此时,截图装置可以对第一页面中除上述至少一个联系人标识以外的其他联系人标识对应的联系人的会话消息内容进行截图,得到上述目标截图。Exemplarily, when N contact identifiers are displayed on the first page, the user may select at least one contact identifier from the N contact identifiers, and select the at least one contact identifier from the first contact identifier on the first page. The area is dragged out to other display areas on the first page. At this time, the screenshot device can take a screenshot of the content of the conversation messages of the contacts corresponding to the contact identifiers other than the at least one contact identifier on the first page, to obtain the above target. screenshot.
举例说明,如图4中的(a)所示,屏幕上显示了聊天APP的会话界面(即,第一页面),以及窗口41,会话界面上显示了联系人1的会话消息内容1(即会话消息1)、联系人2的会话消息内容2(即会话消息2和会话消息3)以及联系人3的会话消息内容3(即会话消息4和会话消息5和会话消息6),窗口41中显示了联系人1的联系人标识1、联系人2的联系人标识2和联系人3的联系人标识3。若用户想要得到只包含联系人1和联系人2的会话消息内容的截图,如图4中的(b)所示,用户可以将联系人标识1和联系人标识2从窗口41中拖出。如图4中的(c)所示,得到仅包含联系人1和联系人2的会话消息的截图。For example, as shown in (a) of FIG. 4 , a conversation interface (ie, the first page) of the chat APP is displayed on the screen, and a window 41 is displayed on the screen, and the conversation message content 1 of the contact 1 (ie, the first page) is displayed on the conversation interface. Conversation Message 1), Conversation Message Content 2 of Contact 2 (i.e. Conversation Message 2 and Conversation Message 3), and Conversation Message Content 3 of Contact 3 (i.e. Conversation Message 4, Conversation Message 5 and Conversation Message 6), in window 41 Contact ID 1 of Contact 1, Contact ID 2 of Contact 2, and Contact ID 3 of Contact 3 are displayed. If the user wants to get a screenshot of the content of the conversation message that only includes the contact 1 and the contact 2, as shown in (b) in FIG. 4 , the user can drag the contact ID 1 and the contact ID 2 out of the window 41 . As shown in (c) of FIG. 4 , a screenshot of the conversation message containing only Contact 1 and Contact 2 is obtained.
如此,截图装置可以在用户将联系人标识拖入会话界面后,自动执行截屏操作,得到 目标截图,而无需用户在对截图功能进行输入再截图,提高了人机交互性能。In this way, the screenshot device can automatically perform a screenshot operation after the user drags the contact ID into the conversation interface to obtain the target screenshot, without the need for the user to input the screenshot function and then take a screenshot, thereby improving the human-computer interaction performance.
可选地,在本申请实施例中,上述步骤201中接收截图输入之前,本申请实施例提供的截图方法还包括如下步骤201a至步骤201c:Optionally, in the embodiment of the present application, before receiving the screenshot input in the foregoing step 201, the screenshot method provided by the embodiment of the present application further includes the following steps 201a to 201c:
步骤201a:显示N个联系人的联系人标识。Step 201a: Display the contact identifiers of the N contacts.
步骤201b:接收用户对N个联系人标识中的目标联系人标识的第四输入。Step 201b: Receive a fourth input from the user for the target contact identifier among the N contact identifiers.
步骤201c:响应于上述第四输入,将上述目标联系人标识指示的联系人作为目标联系人。Step 201c: In response to the above fourth input, use the contact indicated by the above target contact identifier as the target contact.
示例性的,上述第四输入可以为任一可行的输入方式。Exemplarily, the above-mentioned fourth input may be any feasible input manner.
可选地,在本申请实施例中,上述步骤202中截取目标区域中的第一页面内容,得到目标截图,包括如下步骤202a和步骤202b:Optionally, in this embodiment of the present application, in the above step 202, the content of the first page in the target area is intercepted to obtain the target screenshot, including the following steps 202a and 202b:
步骤202a:拷贝第一页面。Step 202a: Copy the first page.
步骤202b:过滤拷贝的第一页面中除第一页面内容以外的其他会话消息内容,截取剩余页面内容,得到目标截图。Step 202b: Filter the content of the session message other than the content of the first page in the copied first page, intercept the content of the remaining pages, and obtain the target screenshot.
示例性的,所述拷贝的第一页面中的页面内容与第一页面中的页面内容相同。Exemplarily, the page content in the copied first page is the same as the page content in the first page.
示例性的,截图装置可以对拷贝的第一页面的页面内容进行解析,并将拷贝的第一页面中除第一页面内容之外的页面内容删除,得到仅包含第一页面内容的页面,并对该页面进行截图操作,从而得到只包含第一页面内容的页面的截图。Exemplarily, the screenshot device may parse the page content of the copied first page, delete the page content other than the first page content in the copied first page, and obtain a page containing only the first page content, and A screenshot operation is performed on the page, so as to obtain a screenshot of the page containing only the content of the first page.
如此,截图装置可以在不改变原本的第一页面的页面内容的情况下,得到只包含用户需要的页面内容的第一页面的截图,提高了人机交互效果。In this way, the screenshot device can obtain a screenshot of the first page that only contains the page content required by the user without changing the page content of the original first page, thereby improving the human-computer interaction effect.
需要说明的是,本申请实施例提供的截图方法,执行主体可以为截图装置,或者该截图装置中的用于执行截图的方法的控制模块。本申请实施例中以截图装置执行截图的方法为例,说明本申请实施例提供的截图装置。It should be noted that, in the screenshot method provided by the embodiments of the present application, the execution body may be a screenshot device, or a control module in the screenshot device for executing the screenshot method. In the embodiments of the present application, a method for performing a screenshot by a screenshot device is used as an example to describe the screenshot device provided by the embodiments of the present application.
本申请实施例提供一种截图装置,如图5所示,上述截图装置400包括:接收模块401和执行模块402。An embodiment of the present application provides a screenshot device. As shown in FIG. 5 , the screenshot device 400 includes: a receiving module 401 and an executing module 402 .
一种可选的实现方式是:An optional implementation is:
上述接收模块401,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述执行模块402,用于响应于上述接收模块401接收的截图输入,基于用户从N个联系人中选择的目标联系人,滤除上述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人 的会话消息的消息内容。The above-mentioned receiving module 401 is configured to receive screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module 402 is used to respond to the screenshot input received by the above-mentioned receiving module 401 , based on the target contact selected by the user from the N contacts, filter out the content of the conversation message in the first screenshot except the content of the first page to obtain the target screenshot; wherein the content of the first page includes the target contact The message content of the session message.
可选地,在本申请实施例中,上述截图装置400还包括:显示模块403;上述显示模块403,用于显示N个联系人的联系人标识;上述接收模块401,还用于接收用户对N个联系人标识中的目标联系人标识的第一输入;上述执行模块402,具体用于响应于上述接收模块401接收的第一输入,基于所述目标联系人,滤除上述第一截图中除第一页面内容以外的其他内容,得到目标截图。Optionally, in this embodiment of the present application, the above-mentioned screenshot device 400 further includes: a display module 403; the above-mentioned display module 403 is configured to display contact identifiers of N contacts; the above-mentioned receiving module 401 is further configured to receive user feedback The first input of the target contact identifier among the N contact identifiers; the above-mentioned execution module 402 is specifically configured to, in response to the first input received by the above-mentioned receiving module 401, filter out the above-mentioned first screenshot based on the target contact Other content except the first page content, get the target screenshot.
可选地,在本申请实施例中,上述显示模块403,具体用于识别所述第一页面或所述第一截图,显示N个联系人的联系人标识。Optionally, in this embodiment of the present application, the above-mentioned display module 403 is specifically configured to identify the first page or the first screenshot, and display contact identifiers of N contacts.
可选地,在本申请实施例中,上述显示模块403,还用于在上述第一页面上显示上述第一截图的截图缩略图;其中,上述第一输入为:用户将上述目标联系人标识拖动至截图缩略图的拖动输入。Optionally, in this embodiment of the present application, the above-mentioned display module 403 is further configured to display a thumbnail image of the above-mentioned first screenshot on the above-mentioned first page; wherein, the above-mentioned first input is: the user identifies the above-mentioned target contact Drag to the drag input of the screenshot thumbnail.
在本申请实施例提供的截图装置中,在显示第一页面的情况下,电子设备接收到用户截图输入,得到第一截图后,可以基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the screenshot device provided by the embodiment of the present application, when the first page is displayed, the electronic device receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts. , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
本申请实施例提供的截图装置能够实现图1和图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。The screenshot device provided in the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 and FIG. 2 , and to avoid repetition, details are not described here.
另一种可选的实现方式是:Another optional implementation is:
上述接收模块401,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述执行模块402,用于响应于上述接收模块401接收的截图输入,基于用户从上述N个联系人中选择的目标联系人,截取所述第一页面中的第一内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。The above-mentioned receiving module 401 is configured to receive screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned executing module 402 is used to respond to the screenshot input received by the above-mentioned receiving module 401 , based on the target contact selected by the user from the above-mentioned N contacts, intercept the first content in the first page to obtain a target screenshot; wherein, the above-mentioned first page content includes the message content of the conversation message of the above-mentioned target contact .
可选地,在本申请实施例中,如图5所示,上述截图装置400还包括显示模块403,上述显示模块403,用于在第一页面的第一区域上显示上述N个联系人的联系人标识;其中,上述截图输入包括:将N个联系人标识中的目标联系人标识拖出所述第一区域的拖动输入。Optionally, in this embodiment of the present application, as shown in FIG. 5 , the above-mentioned screenshot device 400 further includes a display module 403, and the above-mentioned display module 403 is configured to display the information of the above-mentioned N contacts on the first area of the first page. Contact identification; wherein, the above screenshot input includes: dragging input of dragging the target contact identification among the N contact identifications out of the first area.
可选地,在本申请实施例中,上述显示模块403,还用于显示N个联系人的联系人标识;上述接收模块401,还用于接收用户对N个联系人标识中的目标联系人标识的第四输入;上述执行模块402,还用于响应于上述接收模块401接收的第四输入,将上述目标联系人标识指示的联系人作为目标联系人。Optionally, in this embodiment of the present application, the above-mentioned display module 403 is further configured to display the contact identifiers of the N contacts; the above-mentioned receiving module 401 is further configured to receive the user's identification of the target contact among the N contact identifiers The fourth input of the identification; the above-mentioned execution module 402 is further configured to, in response to the fourth input received by the above-mentioned receiving module 401, take the contact indicated by the above-mentioned target contact identification as the target contact.
可选地,在本申请实施例中,上述执行模块402,具体用于拷贝上述第一页面;过滤拷贝的所述第一页面中除第一页面内容以外的其他会话消息内容,截取剩余页面内容,得到目标截图。Optionally, in the embodiment of the present application, the above-mentioned execution module 402 is specifically configured to copy the above-mentioned first page; filter other session message content except the content of the first page in the copied first page, and intercept the content of the remaining pages , to get a screenshot of the target.
在本申请实施例提供的截图装置中,在显示第一页面的情况下,电子设备接收到用户对第一页面中的目标区域(包括N个联系人的会话消息)的截图输入后,可以基于用户选择的目标联系人,直接截取目标区域中的第一页面内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the screenshot device provided in the embodiment of the present application, when the first page is displayed, after the electronic device receives the user's input of the screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
本申请实施例提供的截图装置能够实现图3和图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The screenshot device provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 3 and FIG. 4 , and to avoid repetition, details are not described here.
本申请实施例中的截图装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The screenshot device in this embodiment of the present application may be a device, 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. Exemplarily, 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). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (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.
本申请实施例中的截图装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The screenshot device in the embodiment of the present application may be a device with 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.
可选的,如图6所示,本申请实施例还提供一种电子设备500,包括存储器501,处理器502,存储在存储器501上并可在所述处理器502上运行的程序或指令,该程序或指令被处理器502执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果, 为避免重复,这里不再赘述。Optionally, as shown in FIG. 6, an embodiment of the present application further provides an electronic device 500, including a memory 501, a processor 502, and a program or instruction stored in the memory 501 and executable on the processor 502, When the program or instruction is executed by the processor 502, each process of the above screenshot method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图7实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 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 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation on 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. .
一种可选的实现方式是:An optional implementation is:
可选地,在本申请实施例中,上述用户输入单元107,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述处理器110,用于响应于上述用户输入单元107接收的截图输入,基于用户从N个联系人中选择的目标联系人,滤除上述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。Optionally, in this embodiment of the present application, the above-mentioned user input unit 107 is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned processor 110, In response to the screenshot input received by the above-mentioned user input unit 107, based on the target contact selected by the user from the N contacts, filter out the content of the conversation message other than the content of the first page in the above-mentioned first screenshot to obtain the target screenshot ; wherein, the content of the first page includes the message content of the conversation message of the target contact.
可选地,在本申请实施例中,上述显示模块106,用于显示N个联系人的联系人标识;上述用户输入单元107,还用于接收用户对N个联系人标识中的目标联系人标识的第一输入;上述处理器110,具体用于响应于上述接收模块401接收的第一输入,基于所述目标联系人,滤除上述第一截图中除第一页面内容以外的其他内容,得到目标截图。Optionally, in this embodiment of the present application, the above-mentioned display module 106 is configured to display the contact identifiers of the N contacts; the above-mentioned user input unit 107 is further configured to receive the target contact from the N contact identifiers from the user. The first input of the identification; the above-mentioned processor 110 is specifically configured to, in response to the first input received by the above-mentioned receiving module 401, filter out other content except the first page content in the above-mentioned first screenshot based on the target contact, Get a screenshot of the target.
可选地,在本申请实施例中,上述显示单元106,具体用于识别上述第一页面或所述第一截图,显示N个联系人的联系人标识。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is specifically configured to identify the above-mentioned first page or the first screenshot, and display contact identifiers of the N contacts.
可选地,在本申请实施例中,上述显示单元106,还用于在上述第一页面上显示上述第一截图的截图缩略图;其中,上述第一输入为:用户将上述目标联系人标识拖动至截图缩略图的拖动输入。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is further configured to display a thumbnail image of the above-mentioned first screenshot on the above-mentioned first page; wherein, the above-mentioned first input is: the user identifies the above-mentioned target contact Drag to the drag input of the screenshot thumbnail.
在本申请实施例提供的电子设备中,在显示第一页面的情况下,电子设备接收到用户截图输入,得到第一截图后,可以基于用户从所述N个联系人中选择的目标联系人,滤除 所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the electronic device provided by the embodiment of the present application, in the case of displaying the first page, the electronic device receives the user's screenshot input, and after obtaining the first screenshot, it can be based on the target contact selected by the user from the N contacts , and filter out other conversation message contents except the first page contents in the first screenshot to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
另一种可选的实现方式是:Another optional implementation is:
可选地,在本申请实施例中,上述用户输入单元107,用于在显示第一页面的情况下,接收截图输入,上述第一页面包含N个联系人的会话消息;上述持利器110,用于响应于上述用户输入单元107接收的截图输入,基于用户从上述N个联系人中选择的目标联系人,截取所述第一页面中的第一内容,得到目标截图;其中,上述第一页面内容包括上述目标联系人的会话消息的消息内容。Optionally, in this embodiment of the present application, the above-mentioned user input unit 107 is configured to receive a screenshot input when the first page is displayed, and the above-mentioned first page contains conversation messages of N contacts; the above-mentioned sharp-holding device 110, In response to the screenshot input received by the above-mentioned user input unit 107, based on the target contact selected by the user from the above-mentioned N contacts, intercept the first content in the first page to obtain the target screenshot; wherein, the above-mentioned first The page content includes the message content of the conversation message of the target contact.
可选地,在本申请实施例中,上述显示单元106,用于在第一页面的第一区域上显示上述N个联系人的联系人标识;其中,上述截图输入包括:将N个联系人标识中的目标联系人标识拖出第一区域的拖动输入。Optionally, in the embodiment of the present application, the above-mentioned display unit 106 is configured to display the contact identifiers of the above-mentioned N contacts on the first area of the first page; wherein, the above-mentioned screenshot input includes: displaying the N contacts The target contact ID in the ID is dragged out of the drag input in the first area.
可选地,在本申请实施例中,上述显示单元106,还用于显示N个联系人的联系人标识;上述用户输入单元107,还用于接收用户对N个联系人标识中的目标联系人标识的第四输入;上述处理器110,还用于响应于上述接收模块401接收的第四输入,将上述目标联系人标识指示的联系人作为目标联系人。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is further configured to display the contact identifiers of the N contacts; the above-mentioned user input unit 107 is further configured to receive the user's target contact among the N contact identifiers The fourth input of the person identifier; the processor 110 is further configured to, in response to the fourth input received by the receiving module 401, use the contact indicated by the target contact identifier as the target contact.
可选地,在本申请实施例中,上述处理器110,具体用于拷贝上述第一页面;过滤拷贝的所述第一页面中除第一页面内容以外的其他会话消息内容,截取剩余页面内容,得到目标截图。Optionally, in this embodiment of the present application, the above-mentioned processor 110 is specifically configured to copy the above-mentioned first page; filter other session message content except the content of the first page in the copied first page, and intercept the content of the remaining pages , to get a screenshot of the target.
在本申请实施例提供的电子设备中,在显示第一页面的情况下,电子设备接收到用户对第一页面中的目标区域(包括N个联系人的会话消息)的截图输入后,可以基于用户选择的目标联系人,直接截取目标区域中的第一页面内容,得到目标截图。如此,电子设备可以基于用户选择的目标联系人,得到只包括上述目标联系人的会话消息的消息内容的目标截图,而无需先对该会话界面进行截图操作,再对得到的截图中除该部分会话消息之外的会话消息的区域打上马赛克,简化了获取包含特定会话消息内容的截图的步骤,并且提高截图的灵活性。In the electronic device provided by the embodiment of the present application, in the case of displaying the first page, after the electronic device receives the user's input of a screenshot of the target area (including the conversation messages of N contacts) in the first page, it can be based on The target contact selected by the user directly captures the content of the first page in the target area to obtain the target screenshot. In this way, the electronic device can obtain a target screenshot that only includes the message content of the conversation message of the target contact based on the target contact selected by the user, without first performing a screenshot operation on the conversation interface, and then removing the part in the obtained screenshot. The area of the conversation message other than the conversation message is mosaicked, which simplifies the steps of obtaining a screenshot containing the content of a specific conversation message, and improves the flexibility of the screenshot.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing  Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 is used to communicate with the image capture device ( Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 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 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above embodiment of the screenshot method can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing screenshot method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that 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.
本申请实施例提供了一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。An embodiment of the present application provides a computer program product, where the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包 括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that 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. Based on this understanding, 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 described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

  1. 一种截图方法,所述方法包括:A screenshot method, the method includes:
    在显示第一页面的情况下,接收截图输入,所述第一页面包含N个联系人的会话消息;In the case of displaying a first page, receiving a screenshot input, the first page includes conversation messages of N contacts;
    响应于所述截图输入,截取目标区域中的页面内容,得到第一截图;In response to the screenshot input, intercept the page content in the target area to obtain the first screenshot;
    基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图;Based on the target contact selected by the user from the N contacts, filter out the content of the conversation message other than the content of the first page in the first screenshot to obtain the target screenshot;
    其中,所述第一页面内容包括所述目标联系人的会话消息的消息内容。Wherein, the content of the first page includes message content of the conversation message of the target contact.
  2. 根据权利要求1所述的方法,其中,所述基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图之前,所述方法还包括:The method according to claim 1, wherein, based on the target contact selected by the user from the N contacts, filtering out the content of the conversation message other than the content of the first page in the first screenshot to obtain Before the target screenshot is taken, the method further includes:
    显示N个联系人的联系人标识;Display the contact IDs of N contacts;
    接收用户对N个联系人标识中的目标联系人标识的第一输入;receiving a first input by the user of a target contact identifier among the N contact identifiers;
    所述基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图,包括:Based on the target contact selected by the user from the N contacts, filtering out other conversation message contents in the first screenshot except the content of the first page to obtain the target screenshot, including:
    响应于所述第一输入,基于所述目标联系人,滤除所述第一截图中除第一页面内容以外的其他内容,得到目标截图。In response to the first input, based on the target contact, other contents other than the first page content in the first screenshot are filtered to obtain a target screenshot.
  3. 根据权利要求2所述的方法,其中,所述显示N个联系人的联系人标识,包括:The method according to claim 2, wherein the displaying contact identifiers of the N contacts comprises:
    识别所述第一页面或所述第一截图,显示N个联系人的联系人标识。Identify the first page or the first screenshot, and display contact identifiers of N contacts.
  4. 根据权利要求2或3所述的方法,其中,所述截取目标区域中的页面内容,得到第一截图之后,所述方法还包括:The method according to claim 2 or 3, wherein after the first screenshot is obtained by capturing the page content in the target area, the method further comprises:
    在所述第一页面上显示所述第一截图的截图缩略图;displaying a screenshot thumbnail of the first screenshot on the first page;
    其中,所述第一输入为:用户将所述目标联系人标识拖动至所述截图缩略图的拖动输入。Wherein, the first input is: a drag input in which the user drags the target contact identifier to the screenshot thumbnail.
  5. 一种截图方法,所述方法包括:A screenshot method, the method includes:
    在显示第一页面的情况下,接收截图输入,所述第一页面包含N个联系人的会话消息;In the case of displaying a first page, receiving a screenshot input, the first page includes conversation messages of N contacts;
    响应于所述截图输入,基于用户从所述N个联系人中选择的目标联系人,截取所述第一页面中的第一页面内容,得到目标截图;In response to the screenshot input, based on the target contact selected by the user from the N contacts, intercept the content of the first page in the first page to obtain a target screenshot;
    其中,所述第一页面内容包括所述目标联系人的会话消息的消息内容。Wherein, the content of the first page includes message content of the conversation message of the target contact.
  6. 根据权利要求5所述的方法,其中,所述接收截图输入之前,所述方法:The method of claim 5, wherein, before receiving the screenshot input, the method:
    在所述第一页面的第一区域上显示所述N个联系人的联系人标识;displaying contact identifiers of the N contacts on the first area of the first page;
    其中,所述截图输入包括:将N个联系人标识中的目标联系人标识拖出所述第一区域的拖动输入。Wherein, the screenshot input includes: dragging input of dragging the target contact identification among the N contact identifications out of the first area.
  7. 根据权利要求5所述的方法,其中,所述接收截图输入之前,所述方法还包括:The method according to claim 5, wherein before the receiving the screenshot input, the method further comprises:
    显示N个联系人的联系人标识;Display the contact IDs of N contacts;
    接收用户对N个联系人标识中的目标联系人标识的第四输入;receiving a fourth input from the user to the target contact identifier in the N contact identifiers;
    响应于所述第四输入,将所述目标联系人标识指示的联系人作为目标联系人。In response to the fourth input, the contact indicated by the target contact identifier is used as the target contact.
  8. 根据权利要求5至7任一项所述的方法,其中,所述截取目标区域中的第一页面内容,得到目标截图,包括:The method according to any one of claims 5 to 7, wherein the intercepting the first page content in the target area to obtain the target screenshot includes:
    拷贝所述第一页面;copying the first page;
    过滤拷贝的所述第一页面中除所述第一页面内容以外的其他会话消息内容,截取剩余页面内容,得到目标截图。Filter the contents of other conversation messages in the copied first page except the contents of the first page, and intercept the contents of the remaining pages to obtain a target screenshot.
  9. 一种截图装置,所述装置包括:接收模块和执行模块,其中:A screenshot device, the device includes: a receiving module and an executing module, wherein:
    所述接收模块,用于在显示第一页面的情况下,接收截图输入,所述第一页面包含N个联系人的会话消息;The receiving module is configured to receive a screenshot input when a first page is displayed, where the first page includes conversation messages of N contacts;
    所述执行模块,用于响应于所述接收模块接收的所述截图输入,截取目标区域中的页面内容,得到第一截图;基于用户从所述N个联系人中选择的目标联系人,滤除所述第一截图中除第一页面内容以外的其他会话消息内容,得到目标截图,其中,所述第一页面内容包括目标联系人的会话消息的消息内容。The executing module is configured to, in response to the screenshot input received by the receiving module, intercept the page content in the target area to obtain a first screenshot; filter the target contacts selected by the user from the N contacts. In addition to the content of the conversation message other than the content of the first page in the first screenshot, a target screenshot is obtained, wherein the content of the first page includes the message content of the conversation message of the target contact.
  10. 一种截图装置,所述装置包括:接收模块和执行模块,其中:A screenshot device, the device includes: a receiving module and an executing module, wherein:
    所述接收模块,用于在显示第一页面的情况下,接收截图输入,所述第一页面包含N个联系人的会话消息;The receiving module is configured to receive a screenshot input when a first page is displayed, where the first page includes conversation messages of N contacts;
    所述执行模块,用于响应于所述接收模块接收的所述截图输入,基于用户从所述N个联系人中选择的目标联系人,截取所述第一页面中的第一内容,得到目标截图;其中,所述第一页面内容包括所述目标联系人的会话消息的消息内容。The executing module is configured to, in response to the screenshot input received by the receiving module, intercept the first content in the first page based on the target contact selected by the user from the N contacts to obtain the target contact A screenshot; wherein, the content of the first page includes the message content of the conversation message of the target contact.
  11. 一种截图装置,其特征在于,包括所述装置被配置成用于执行如权利要求1至4,或5至8中任一项所述的截图方法。A screenshot device, characterized in that the device is configured to execute the screenshot method according to any one of claims 1 to 4, or 5 to 8.
  12. 一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4,或5至8中任一项所述的截图方法的步骤。An electronic device, characterized by comprising a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the method as claimed in claim 1 Steps of the screenshot method described in any one of to 4, or 5 to 8.
  13. 一种可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的截图方法的步骤。A readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screenshot method according to any one of claims 1 to 8 are implemented .
  14. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至8中任一项所述的截图方法。A chip, characterized in that the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement any one of claims 1 to 8 The screenshot method described.
  15. 一种计算机程序产品,其特征在于,所述程序产品被至少一个处理器执行以实现如权利要求1至8任一项所述的截图方法。A computer program product, characterized in that, the program product is executed by at least one processor to implement the screenshot method according to any one of claims 1 to 8.
PCT/CN2021/140478 2020-12-24 2021-12-22 Screenshot method and apparatus, and electronic device WO2022135476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011553257.1A CN112684963A (en) 2020-12-24 2020-12-24 Screenshot method and device and electronic equipment
CN202011553257.1 2020-12-24

Publications (1)

Publication Number Publication Date
WO2022135476A1 true WO2022135476A1 (en) 2022-06-30

Family

ID=75452886

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/140478 WO2022135476A1 (en) 2020-12-24 2021-12-22 Screenshot method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112684963A (en)
WO (1) WO2022135476A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684963A (en) * 2020-12-24 2021-04-20 维沃移动通信(杭州)有限公司 Screenshot method and device and electronic equipment
CN114911393A (en) * 2022-05-06 2022-08-16 维沃移动通信有限公司 Screen capture method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571866A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Screen capture method
CN107346200A (en) * 2017-06-30 2017-11-14 努比亚技术有限公司 One kind interval screenshot method and terminal
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
JP2020191090A (en) * 2019-05-22 2020-11-26 ライン プラス コーポレーションLINE Plus Corporation Method, system, and computer program for protect content copyright in chatroom
CN112099714A (en) * 2020-09-22 2020-12-18 维沃移动通信有限公司 Screenshot method and device, electronic equipment and readable storage medium
CN112165553A (en) * 2020-09-28 2021-01-01 维沃移动通信有限公司 Image generation method and device and electronic equipment
CN112684963A (en) * 2020-12-24 2021-04-20 维沃移动通信(杭州)有限公司 Screenshot method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0703276D0 (en) * 2007-02-20 2007-03-28 Skype Ltd Instant messaging activity notification
US20140095551A1 (en) * 2012-09-28 2014-04-03 Interactive Memories, Inc. Methods for Optimizing Storage Space and Reducing Redundancy in Data Reproduction for Data Stored for Creating Image-Based Products through an Electronic Interface
US20160070460A1 (en) * 2014-09-04 2016-03-10 Adobe Systems Incorporated In situ assignment of image asset attributes
CN104571865A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN111143015B (en) * 2019-12-31 2022-03-08 维沃移动通信有限公司 Screen capturing method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571866A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Screen capture method
CN107346200A (en) * 2017-06-30 2017-11-14 努比亚技术有限公司 One kind interval screenshot method and terminal
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
JP2020191090A (en) * 2019-05-22 2020-11-26 ライン プラス コーポレーションLINE Plus Corporation Method, system, and computer program for protect content copyright in chatroom
CN112099714A (en) * 2020-09-22 2020-12-18 维沃移动通信有限公司 Screenshot method and device, electronic equipment and readable storage medium
CN112165553A (en) * 2020-09-28 2021-01-01 维沃移动通信有限公司 Image generation method and device and electronic equipment
CN112684963A (en) * 2020-12-24 2021-04-20 维沃移动通信(杭州)有限公司 Screenshot method and device and electronic equipment

Also Published As

Publication number Publication date
CN112684963A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
WO2022121817A1 (en) Group creation method and apparatus, and device and storage medium
US20200210048A1 (en) Multimedia resource management method and apparatus, and storage medium
WO2022135476A1 (en) Screenshot method and apparatus, and electronic device
WO2022089568A1 (en) File sharing method and apparatus, and electronic device
WO2022089330A1 (en) Method for taking screenshot, apparatus, electronic device, and readable storage medium
WO2022135290A1 (en) Screenshot capturing method and apparatus, and electronic device
WO2022166820A1 (en) Application interface processing method and apparatus, electronic device, and readable storage medium
CN112306325B (en) Interaction control method and device
WO2022161431A1 (en) Display method, apparatus, and electronic device
WO2022206697A1 (en) Image sharing methods and apparatuses, and electronic device
CN112911147B (en) Display control method, display control device and electronic equipment
WO2022171062A1 (en) Method and apparatus for sharing picture, and electronic device and storage medium
WO2023040845A1 (en) Message transmission method and apparatus, and electronic device
WO2023030115A1 (en) Interface display method and apparatus
CN114153344A (en) Group creation method and device, electronic equipment and storage medium
WO2022068721A1 (en) Screen capture method and apparatus, and electronic device
WO2022156602A1 (en) Display method, display apparatus, and electronic device
CN111831181A (en) Application switching display method and device and electronic equipment
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
WO2022143382A1 (en) Image processing method and apparatus
WO2022089481A1 (en) Information processing method and apparatus, and electronic device
CN114116098A (en) Application icon management method and device, electronic equipment and storage medium
CN113282213A (en) Interface display method and device
WO2022247787A1 (en) Application classification method and apparatus, and electronic device
WO2023284640A1 (en) Picture processing method and electronic device

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: 21909471

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: 21909471

Country of ref document: EP

Kind code of ref document: A1