CN112306590B - Screenshot generating method and related device - Google Patents

Screenshot generating method and related device Download PDF

Info

Publication number
CN112306590B
CN112306590B CN201910697038.1A CN201910697038A CN112306590B CN 112306590 B CN112306590 B CN 112306590B CN 201910697038 A CN201910697038 A CN 201910697038A CN 112306590 B CN112306590 B CN 112306590B
Authority
CN
China
Prior art keywords
message
session
screenshot
instruction
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910697038.1A
Other languages
Chinese (zh)
Other versions
CN112306590A (en
Inventor
田元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910697038.1A priority Critical patent/CN112306590B/en
Publication of CN112306590A publication Critical patent/CN112306590A/en
Application granted granted Critical
Publication of CN112306590B publication Critical patent/CN112306590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screenshot generating method and a related device, which are used for directly generating a whole screenshot containing chat messages by inputting a message selection instruction corresponding to the chat messages selected to be intercepted when the chat messages are intercepted, so that the convenience of operation is improved, and the screenshot efficiency is increased. The method comprises the following steps: acquiring a message selection instruction through an instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relation, and N is an integer greater than or equal to 1; acquiring N session messages from a session message set according to N message identifications carried in a message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N; and generating a screenshot to be shared according to the N session messages.

Description

Screenshot generating method and related device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a screenshot generating method and a related apparatus.
Background
The instant messaging service is a communication service based on the internet, and generally mainly realizes the instant messaging function on the network. Instant messaging services have found wide application and acceptance on the internet, and can be implemented through instant messaging applications. The instant messaging application has the advantages of high speed, rich functions, stable use and the like, and is accepted and loved by people.
In the process of chatting through the instant messaging application, a user often has an appeal of sharing a chat message screenshot with other people. At present, a screenshot function is added in a plurality of terminal equipment systems, and the whole screen can be intercepted by triggering a shortcut key, so that corresponding screenshots are obtained.
However, since the screenshot is usually performed for the whole screen, if the chat messages in multiple screens need to be simultaneously captured, the screenshot can only be completed through multiple screenshot operations, so that the user operation is cumbersome, and the efficiency of screenshot for the chat messages is reduced.
Disclosure of Invention
The embodiment of the application provides a screenshot generating method and a related device, which are used for directly generating the whole screenshot containing chat messages by inputting a message selection instruction corresponding to the selected and intercepted chat messages when the chat messages are intercepted, so that the operation convenience is improved, and the screenshot efficiency is increased.
In view of this, a first aspect of the present application provides a screenshot generating method, including:
acquiring a message selection instruction through an instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relation, and N is an integer greater than or equal to 1;
acquiring N session messages from a session message set according to N message identifications carried in a message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N;
and generating a screenshot to be shared according to the N session messages.
A second aspect of the present application provides a screenshot generating apparatus, where the screenshot generating apparatus is applied to an instant messaging application, and the screenshot generating apparatus includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a message selection instruction through an instant messaging application, the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relation, and N is an integer greater than or equal to 1;
the acquiring unit is further configured to acquire N session messages from a session message set according to N message identifiers carried in the message selection instruction acquired by the acquiring unit, where the session message set includes M session messages, and M is an integer greater than or equal to N;
and the generating unit is used for generating the screenshot to be shared according to the N session messages.
In a possible design, in a first implementation manner of the second aspect of the embodiment of the present application, the obtaining unit is specifically configured to:
acquiring N selection instructions through instant messaging application, wherein each selection instruction carries a message identifier;
acquiring N session messages from a session message set according to N message identifications carried in a message selection instruction, wherein the acquisition comprises the following steps:
and acquiring N session messages from the session message set according to the message identifier carried by each selection instruction in the N selection instructions.
In a possible design, in a second implementation manner of the second aspect of the embodiment of the present application, the obtaining unit is specifically configured to:
acquiring a first selection instruction through an instant messaging application, wherein the first selection instruction carries a message identifier of a first session message, and the first session message belongs to one message in a session message set;
acquiring a second selection instruction through the instant messaging application, wherein the second selection instruction carries a message identifier of a second session message, and the second session message belongs to one message in a session message set;
an acquisition unit, specifically configured to:
determining a first session message according to the first selection instruction acquired by the acquisition unit;
determining a second session message according to the second selection instruction acquired by the acquisition unit;
and acquiring N session messages according to the first session message and the second session message, wherein (N-2) session messages exist from the 1 st session message to the Nth session message in the N session messages.
In one possible design, in a third implementation of the second aspect of the embodiments of the present application,
the acquiring unit is further configured to acquire a message extracting instruction, where the message extracting instruction carries P message identifiers, and P is an integer greater than or equal to 1 and less than N;
the screenshot generating device further comprises: the removing unit is used for removing P session messages from the N session messages according to P message identifications carried by the message extracting instruction obtained by the obtaining unit to obtain (N-P) session messages;
and the generating unit is specifically used for generating the screenshot to be shared according to the (N-P) session messages obtained by the eliminating unit.
In one possible design, in a fourth implementation of the second aspect of the embodiment of the present application,
the acquisition unit is also used for acquiring a first hidden instruction;
the screenshot generating device further comprises: the shielding unit is used for shielding the sensitive information corresponding to at least one conversation message according to the first hidden instruction acquired by the acquisition unit, wherein the sensitive information comprises at least one of a user head portrait and a keyword;
the shielding unit is specifically configured to: if the sensitive information is the head portrait of the user, shielding the head portrait of the user to obtain a first shielding result; if the sensitive information is the keyword, shielding the keyword to obtain a first shielding result;
and the generating unit is specifically used for generating the screenshot to be shared according to the N session messages acquired by the acquiring unit and the first shielding processing result acquired by the shielding unit.
In one possible design, in a fifth implementation of the second aspect of the embodiments of the present application,
the acquisition unit is also used for acquiring a second hiding instruction;
the screenshot generating device further comprises: the shielding unit is used for shielding the session titles corresponding to the N session messages according to the second hidden instruction acquired by the acquisition unit to obtain a second shielding result;
and the generating unit is specifically configured to generate the screenshot to be shared according to the N session messages acquired by the acquiring unit and the second shielding processing result acquired by the shielding unit.
In one possible design, in a sixth implementation of the second aspect of the embodiments of the present application,
the acquisition unit is also used for acquiring a third hiding instruction;
the screenshot generating device further comprises: the shielding unit is used for shielding the user name corresponding to each session message in the N session messages according to the third hidden instruction acquired by the acquisition unit to obtain a third shielding result;
and the generating unit is specifically configured to generate the screenshot to be shared according to the N session messages acquired by the acquiring unit and the third shielding processing result acquired by the shielding unit.
In one possible design, in a seventh implementation of the second aspect of the embodiments of the present application,
the acquisition unit is also used for acquiring a fourth hiding instruction;
the screenshot generating device further comprises: the shielding unit is used for shielding the equipment information according to the fourth hidden instruction acquired by the acquisition unit to obtain a fourth shielding result, wherein the equipment information comprises at least one of time information, operator information and signal strength information;
and the generating unit is specifically configured to generate the screenshot to be shared according to the N session messages acquired by the acquiring unit and the fourth shielding processing result acquired by the shielding unit.
In one possible design, in an eighth implementation of the second aspect of the embodiments of the present application,
the acquisition unit is also used for acquiring an information hiding instruction;
the screenshot generating device further comprises: the shielding unit is used for shielding the sensitive information, the user name, the session title and the equipment information corresponding to each session message in the N session messages according to the information hiding instruction acquired by the acquisition unit to obtain a shielding processing result, wherein the equipment information comprises at least one of time information, operator information and signal strength information;
and the generating unit is specifically used for generating the screenshot to be shared according to the N session messages acquired by the acquiring unit and the shielding processing result acquired by the shielding unit.
In one possible design, in a ninth implementation of the second aspect of the embodiment of the present application,
the acquisition unit is also used for acquiring a watermark adding instruction, wherein the watermark adding instruction carries an identifier of target watermark information;
the screenshot generating device further comprises: the covering unit is used for covering a target watermark layer corresponding to the target watermark information on an area formed by the N session messages according to the watermark adding instruction acquired by the acquiring unit;
and the generating unit is specifically used for generating the screenshot to be shared according to the N session messages and the target watermark layer.
In one possible design, in a tenth implementation of the second aspect of the embodiment of the present application,
the acquisition unit is also used for acquiring a watermark setting instruction;
the screenshot generating device further comprises:
the display unit is used for displaying the watermark drawing interface according to the watermark setting instruction acquired by the acquisition unit;
the receiving unit is used for receiving the watermark drawing instruction through the watermark drawing interface displayed by the display unit;
and the generating unit is also used for generating a self-defined watermark image according to the watermark drawing instruction.
In one possible design, in an eleventh implementation of the second aspect of the embodiments of the present application,
the screenshot generating device further comprises:
the receiving unit is used for receiving a screenshot sharing instruction;
the selection unit is used for selecting Q users to be shared from the user cluster according to the screenshot sharing instruction received by the receiving unit, wherein the user cluster comprises K users, the Q users to be shared belong to the user cluster, K is an integer larger than 1, and Q is an integer larger than or equal to 1 and smaller than or equal to K;
and the sending unit is used for sending the screenshot to be shared to the client corresponding to each user to be shared in the Q users to enable the client to display the screenshot to be shared.
In one possible design, in a twelfth implementation of the second aspect of the embodiment of the present application,
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is further used for acquiring semantic information corresponding to each conversation message in N conversation messages, and the N conversation messages comprise at least one of text information and voice information;
the generating unit is also used for generating an information shielding rule according to the semantic information corresponding to each session message acquired by the acquiring unit;
the screenshot generating device further comprises: the shielding unit is used for shielding the session messages which meet the information shielding rule generated by the generating unit in the N session messages to obtain a fifth shielding result;
and the generating unit is specifically configured to generate the screenshot to be shared according to the N session messages and the fifth shielding processing result obtained by the shielding unit.
A third aspect of the present application provides a terminal device, comprising: a memory, a transceiver, a processor, and a bus system;
wherein, the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
acquiring a message selection instruction through an instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relation, and N is an integer greater than or equal to 1;
acquiring N session messages from a session message set according to N message identifications carried in a message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N;
generating a screenshot to be shared according to the N session messages;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
A fourth aspect of the present application provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the method of the above-described aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a screenshot generating method applied to instant messaging application, which includes the steps of firstly obtaining a message selection instruction through the instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and conversation messages have corresponding relations, then obtaining N conversation messages from a conversation message set according to the N message identifiers carried in the message selection instruction, wherein the conversation message set comprises M conversation messages, M is an integer larger than or equal to N, and finally generating a screenshot to be shared according to the N conversation messages. By the mode, when the chat messages are intercepted, screenshot is not needed for a plurality of screens, and the whole screenshot containing the chat messages can be directly generated only by selecting the intercepted chat messages, so that the convenience of operation is improved, and the screenshot efficiency is increased.
Drawings
FIG. 1 is a schematic diagram of an architecture of a screenshot generating system in an embodiment of the present application;
fig. 2 is a schematic diagram of an architecture of a client of an instant messaging application according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an embodiment of a method for generating a screenshot in an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a process of acquiring N session messages in the screenshot generating method in the embodiment of the present application;
fig. 5 is a schematic flow chart illustrating generation of a screenshot to be shared in the screenshot generation method in the embodiment of the present application;
fig. 6 is another schematic flow chart of generating a screenshot to be shared in the screenshot generating method in the embodiment of the present application;
fig. 7 is another schematic flow chart of generating a screenshot to be shared in the screenshot generating method in the embodiment of the present application;
fig. 8 is a schematic flowchart of a method for generating a screenshot according to an embodiment of the present application, where N selection instructions are acquired;
fig. 9 is another schematic flow chart illustrating obtaining N selection instructions in the screenshot generating method in the embodiment of the present application;
fig. 10 is a schematic flowchart of a method for generating a screenshot according to an embodiment of the present application, where a message selection instruction is acquired;
fig. 11 is a schematic flowchart illustrating a process of obtaining a message fetching instruction in the screenshot generating method in the embodiment of the present application;
fig. 12 is a schematic flowchart of a method for generating a screenshot according to an embodiment of the present application to obtain a hidden command;
fig. 13 is another schematic flow chart illustrating acquisition of a hidden instruction in the screenshot generating method in the embodiment of the present application;
fig. 14 is a schematic flowchart of obtaining a watermark adding instruction in the screenshot generating method in the embodiment of the present application;
fig. 15 is a schematic interface diagram illustrating reception of a screenshot sharing instruction in the screenshot generating method according to the embodiment of the present application;
FIG. 16 is a schematic diagram of an embodiment of a screenshot generating apparatus in an embodiment of the present application;
FIG. 17 is a schematic diagram of another embodiment of a screenshot generating device in an embodiment of the present application;
fig. 18 is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a screenshot generating method and a related device, which are used for directly generating the whole screenshot containing chat messages by inputting a message selection instruction corresponding to the selected and intercepted chat messages when the chat messages are intercepted, so that the operation convenience is improved, and the screenshot efficiency is increased.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "corresponding" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the method for generating a screenshot provided by the embodiment of the present application may be applied to an application scenario in which the screenshot is performed through various instant messaging applications, for example, when a user a chats with a user B, several session messages with a user C are to be intercepted and sent to the user B, and a requirement for intercepting the session messages is generated; as another example, for example, when user a chats with user B, and wants to intercept several session messages in group message D, a need for intercepting the session messages may be generated; as another example, when the user a chats with the user B, for example, wants to intercept several session messages with the user B, and sends the session messages to the user E, a need to intercept the session messages may be generated, and so on, which is not taken as an example for other application scenarios.
For convenience of understanding, the present application provides a screenshot generating method, which is applied to the screenshot generating system shown in fig. 1, please refer to fig. 1, where fig. 1 is an architecture schematic diagram of the screenshot generating system in the embodiment of the present application, and as shown in the figure, the screenshot generating system may include a client and a server for an instant messaging application. The client of the instant messaging application is used for receiving a message selection instruction input by a sender, wherein the message selection instruction carries N message identifiers, so that N session messages are selected from a session message set comprising M session messages according to the N message identifiers, and a screenshot to be shared is generated according to the N session messages; optionally, after the client of the instant messaging application acquires the N session messages, buttons corresponding to a message extraction function, a message hiding function, a watermark adding function, or other functions may be displayed to receive a secondary editing operation of the user on the N session messages. And when the sender wants to send the screenshot to be shared to at least one receiver, the server is used for receiving the screenshot to be shared uploaded by the sender and sending the screenshot to be shared to the at least one receiver.
The client of the instant messaging application may be represented as a web page client or an application program client, the server is a background server of the screenshot generating system, and may be a server cluster or a cloud computing center formed by one or more servers, and the details of which are not limited herein.
It should be noted that the client of the instant messaging application is deployed on a terminal device, where the terminal device includes, but is not limited to, a tablet computer, a notebook computer, a palm computer, a mobile phone, a Personal Computer (PC), and a voice interaction device shown in fig. 1, and the present disclosure is not limited thereto. The voice interaction device includes, but is not limited to, an intelligent sound and an intelligent household appliance.
The client and the server of the instant messaging application can be connected through a wireless network. Wherein the wireless network described above uses standard communication techniques and/or protocols. The wireless Network is typically the internet, but can be any Network including, but not limited to, any combination of Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, private, or virtual private networks. In other embodiments, custom or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
Although only five terminal devices and one server are shown in fig. 1, it should be understood that the example in fig. 1 is only used for understanding the present solution, and the number of the specific terminal devices and the number of the servers should be flexibly determined according to actual situations.
In this application, the terminal device needs to complete an operation of generating a screenshot to be shared according to N session messages through the client of the instant messaging application, in order to further understand the present solution, please refer to fig. 2, where fig. 2 shows an architectural diagram of the client of the instant messaging application provided in this embodiment of the application, and as shown in the figure, the client of the instant messaging application may be divided into a data model layer (module), a service logic layer (Presenter) and a user interface layer.
The data model layer is responsible for managing data of the whole screenshot generating process, including session Messages (Messages), screenshot states (State) and screenshot pixels (Bitmaps) for generating the screenshot; the data model layer processes screenshot requests sent by the service logic layer, processing results are called back to the service logic layer through the monitor, the screenshot state is used for reflecting whether screenshot generating operation to be shared is completed or not, screenshot pixels are used as pixel indexes of the screenshot to be shared, and the screenshot pixels can be different when the screen size of the terminal device is different. The service logic layer is responsible for managing the services of the whole screenshot generating process, such as copying session messages, performing split screen screenshot on a message list interface element (ListView) and splicing the multiple screen screenshots; the service logic layer receives the time triggered by the user through the user interface layer, such as a screenshot request, a message selection instruction, a screenshot preview instruction, an information extraction instruction, a hiding instruction and the like sent by the user interface layer, records the screenshot state, a copy session message list, a spliced multi-screen screenshot and the like by using an interface of the data model layer, and finally calls back a processing result corresponding to the screenshot request to the user interface layer through the listener. The user interface layer is used for managing a plurality of interface elements (views) corresponding to the screenshot function, such as a title interface element (TitleView), a message list interface element (ListView) and a bottom interface element (BottomView), wherein the title interface element refers to interface elements such as a session title, and the bottom interface element refers to a bottom button corresponding to a message selection instruction, a message extraction instruction, a hiding instruction and the like; and the interface module is also used for receiving various instructions input by a user, such as a message selection instruction, a message extraction instruction, a hiding instruction and the like, transmitting the instructions to the service logic layer, and receiving the call-back of the service logic layer to display the corresponding interface elements according to the corresponding state of the data model layer.
With reference to the above description, a method for generating a screenshot in the present application will be described below, and referring to fig. 3, an embodiment of the method for generating a screenshot in the embodiment of the present application includes:
101. the terminal equipment obtains a message selection instruction through the instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and the session messages have a corresponding relation, and N is an integer greater than or equal to 1.
In this embodiment, the terminal device may obtain, through a session interface of the instant messaging application, a message selection instruction input by a user, where the message selection instruction carries N message identifiers, the message identifiers and the session message may be in a one-to-one correspondence, and N is an integer greater than or equal to 1, for example, a value of N may be 1, 2, 3, 4, 5, 6, or another numerical value. In one case, the user may directly input N selection instructions corresponding to the N message identifiers one to one, and the terminal device may directly generate the N message identifiers; in another case, the message selection instruction input by the user may include a selection instruction of a session initiation message and a selection instruction of a session termination message, and correspondingly, the N message identifiers are message identifiers of N session messages that are consecutive between the session initiation message and the session termination message, and the terminal device needs to generate the N message identifiers of the N session messages, and the like, which is not limited herein.
In one implementation manner, after receiving a selection instruction of a user for N session messages, that is, after receiving a multi-selection operation performed on the N session messages by the user through an instant messaging application, the terminal device outputs a button for receiving a screenshot instruction to receive the screenshot instruction input by the user, so as to trigger a screenshot function, wherein the screenshot instruction input by the user can be a click operation, a double click operation or other operations on the button corresponding to the screenshot function; in another implementation manner, the terminal device may also output a button for receiving a screenshot instruction when receiving a selection instruction of a user for a certain session message, so as to trigger a screenshot function; in another implementation manner, after receiving the selection instruction of the user for the N session messages, the terminal device may further output an inquiry statement of "asking whether to ask for a screenshot", and then the user may input the screenshot instruction in a manner of inputting a voice "please capture a screenshot", and the like, which is not limited herein.
Specifically, the manner in which the user inputs the selection instruction for one session message may be to perform a long-press operation, a double-click operation, a triple-click operation, a preset gesture operation, and the like for one session message; the preset gesture operation may be a right-downward sliding operation, a left-upward sliding operation, a left-downward sliding operation, a right-upward sliding operation, a circle drawing operation, a hook hooking operation, and the like, which are not limited herein.
The mode that the user inputs the multiple selection instruction for the N session messages can be that after the instant messaging application on the terminal equipment receives a selection instruction for inputting one session message, the instant messaging application outputs a button for receiving the multiple selection instruction, and after the multiple selection instruction is received, a multiple selection interface for receiving the multiple selection instructions for the multiple session messages is displayed; the method includes the steps that when an instant messaging application on terminal equipment receives a first preset operation input by a user, the user is considered to input a multi-selection instruction, and a multi-selection interface used for receiving a plurality of selection instructions of a plurality of session messages is displayed, wherein the first preset operation can be a double-click operation, a three-click operation, a preset gesture operation or other first preset operations and the like, but it should be understood that the mode of inputting the selection instruction to one session message by the user and the mode of inputting the multi-selection instruction are different; the method may also be a method in which the instant messaging application on the terminal device receives a multi-selection instruction in a voice form input by the user, and the like, and the method is not limited here.
The message identifier may be embodied as a numeric string or a character string, and when the identification information is embodied as a numeric string, the message identifier of each conversation message may be generated according to the generation order of the conversation messages, such as "0000000001", "0000000002", or "0000000003", for example; when the identification information is embodied as a character string, the message identification may be associated with the user identification of the user, for example, the user identification is ZZZKY, and the message identification may be "ZZZKY 00001", "ZZZKY 00002", or "ZZZKY 00003", and so on. More specifically, before sending a session message to an instant messaging application on a terminal device, a server may configure identification information for each session message, and the instant messaging application may use the identification information configured by the server as a message identifier of each session message; or after receiving the session message through the instant messaging application, the terminal device may configure a message identifier for each session message by itself, and a generation manner and an expression manner of the specific message identifier are not limited here. Session messages include, but are not limited to, session messages in a group session, session messages in a session between two users, session messages between a user and a machine service, and the like.
102. And the terminal equipment acquires N session messages from a session message set according to N message identifications carried in the message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N.
In this embodiment, a session message set may be stored in the terminal device, where the session message set may include M session messages and a message identifier of each session message, and after the terminal device obtains the message selection instruction, the terminal device may obtain N message identifiers carried therein, and further may match the N message identifiers with M message identifiers in the session message set, so as to obtain N session messages successfully matched, where M is an integer greater than or equal to N, and as an example, a value of N may be 2, 3, 4, 5, 10, 15, 20, or another numerical value.
To further understand the present solution, please refer to fig. 4, fig. 4 is a schematic flow diagram illustrating a process of acquiring N session messages from a session message set in a screenshot generating method provided in this embodiment of the present application, where fig. 4 includes two sub-schematic diagrams (a) and (b), fig. 4 illustrates an example of receiving N selection instructions and then triggering a screenshot function, and the sub-schematic diagram (a) of fig. 4 illustrates an interface of outputting a button for receiving a screenshot instruction after receiving N selection instructions (N in fig. 4 takes the value of 2), where a1 is a button for receiving a selection instruction for selecting a session message, although a1 shown in fig. 4 is located on the left side of a session message, a1 in an actual product may also be located on the right side of a session message, a2 includes trigger buttons of various functions, where A3 is a function of sending a mail, a4 is a screenshot function, a5 is a button for receiving a cancel instruction; when the user clicks a4, the sub-diagram (b) in fig. 4 is triggered to enter, that is, N session messages are obtained from the session message set, optionally, although not shown in the sub-diagram (b) in fig. 4, the screenshot corresponding to the N session messages may also be previewed, edited, watermarked, and the like through the sub-diagram (b) in fig. 4, it should be understood that the example in fig. 4 is only for convenience of understanding the present solution, and is not used to limit the present solution.
103. And the terminal equipment generates a screenshot to be shared according to the N session messages.
In this embodiment, after acquiring the N session messages, the terminal device may generate a screenshot to be shared according to the N session messages through the instant messaging application. Specifically, if the N session messages are consecutive N session messages, the instant messaging application only needs to generate one screenshot including the N session messages, and determine the screenshot as a screenshot to be shared; if the N session messages are discontinuous N session messages, the instant messaging application needs to generate at least two screenshots including the N session messages respectively, and splice the at least two screenshots to obtain a screenshot to be shared.
For further understanding of the present disclosure, please refer to fig. 5, where fig. 5 is a schematic flowchart of a process of generating a screenshot to be shared in the method for generating the screenshot in the embodiment of the present application, and a process of generating the screenshot by the terminal device through the instant messaging application may include: copy, render, and screenshot. After the N session messages are determined, the service logic layer of the instant messaging application firstly copies the N session messages, only copies information, but not directly extracts the ListView from the original display interface, so that the problem of disordered rendering state caused by the reference of the N session messages to the original ListView can be avoided; referring to fig. 6 later, fig. 6 is a schematic flow diagram illustrating a process of generating a to-be-shared screenshot in the method for generating the screenshot in the embodiment of the present application, where a service logic layer needs to create a new ListView and Adapter (Adapter) instance, bind N session messages of copies, mount part or all of the N session messages to a background position of an interface element frame (decoview) in a control tree for rendering, for example, mount a picture message, a video, an application, or a text message in the N session messages to a background position of decoview for rendering, so as to solve a problem that different types of session messages such as pictures, videos, applications, or texts in the session messages can be rendered only by asynchronous rendering, where the background ListView is in a position invisible to a user and is completely imperceptible to the user; if the N session messages are not continuous session messages, that is, the screenshot to be shared is composed of at least two screenshots, please refer to fig. 7, where fig. 7 is a schematic flow diagram of generating the screenshot to be shared in the method for generating the screenshot in the embodiment of the present application, a screenshot function android.
And then the instant messaging application creates a screenshot to be shared and a Canvas according to the screenshot pixels, wherein the Canvas is a newly added component of HTML5, is just like a piece of curtain, can draw various charts, animations and the like on the screenshot by JavaScript, intercepts a title bar and renders the title bar at the top of the screenshot to be shared, sequentially renders the screenshot in the middle of the screenshot to be shared, intercepts a bottom toolbar and renders the bottom toolbar at the bottom of the screenshot to be shared. And then, the terminal equipment also calls an image compression function android, graphics, bitmap # compression function to encode and compress the screenshot to be shared into a compressed image file, and at the moment, the whole screenshot is finished.
In the embodiment of the application, a message selection instruction is obtained through an instant messaging application, the message selection instruction carries N message identifiers, the message identifiers and session messages have a corresponding relation, then N session messages are obtained from a session message set according to the N message identifiers carried in the message selection instruction, wherein the session message set comprises M session messages, M is an integer larger than or equal to N, and finally a screenshot to be shared is generated according to the N session messages. By the mode, when the chat messages are intercepted, screenshot is not needed for a plurality of screens, and the whole screenshot containing the chat messages can be directly generated only by selecting the intercepted chat messages, so that the convenience of operation is improved, and the screenshot efficiency is increased.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, the obtaining, by the terminal device, the message selection instruction by the instant messaging application includes:
the method comprises the steps that the terminal equipment obtains N selection instructions through instant messaging application, wherein each selection instruction carries a message identifier;
the method for acquiring N session messages from a session message set by the terminal device according to the N message identifications carried in the message selection instruction comprises the following steps:
and the terminal equipment acquires N session messages from the session message set according to the message identifier carried by each selection instruction in the N selection instructions.
In this embodiment, the terminal device may obtain N selection instructions through a session interface of the instant messaging application, where each selection instruction carries one message identifier, and then the terminal device may obtain N message identifiers carried in the N selection instructions, and since the message identifiers have a one-to-one correspondence with the session messages, then the terminal device may obtain N session messages corresponding to the N message identifiers from the session message set.
In one implementation mode, when receiving a selection instruction of a certain session message from a user through an instant messaging application, a terminal device outputs a button for receiving a screenshot instruction, and after receiving the screenshot instruction, a multi-selection interface for receiving a plurality of selection instructions of a plurality of session messages can be displayed, so that N selection instructions input by the user can be received; in another implementation mode, the terminal device may first receive, through the instant messaging application, N selection instructions for N session messages input by the user, and then output a button for receiving a screenshot instruction to receive the screenshot instruction input by the user, thereby triggering a screenshot function; in another implementation mode, after receiving a screenshot command in a voice form input by a user through an instant messaging application, the terminal device displays a multi-selection interface to receive N selection commands; in another implementation manner, when receiving a second preset operation input by the user through the instant messaging application, the terminal device regards that a screenshot instruction input by the user is received, and displays a multi-selection interface to receive N selection instructions and the like, which are not limited herein. The second preset operation may be a double-click operation, a triple-click operation, a preset gesture operation, or other first preset operations, but it should be understood that the operation of the user inputting the selection instruction to one session message, the first preset operation, and the second preset operation are all different operations.
To further understand the present disclosure, please refer to fig. 8, fig. 8 and fig. 9 are two schematic flow diagrams respectively illustrating two exemplary flow diagrams for acquiring N selection instructions in the screenshot generating method provided in the present embodiment, please refer to fig. 8 first, fig. 8 illustrates an example of triggering a screenshot function after receiving N selection instructions first, fig. 8 includes two sub-diagrams (a) and (b), the sub-diagram (a) of fig. 8 illustrates an interface schematic diagram for receiving N selection instructions (taking the value of N in fig. 8 as an example), that is, a multi-selection interface for receiving multiple selection instructions for multiple session messages, a1 is a button for receiving a selection instruction for selecting a session message, C1 is a button for triggering various functions, where C2 is a forwarding function, C3 is a deleting function, C4 is another function, and when a user clicks C4, the user is triggered to enter the sub-diagram (b) of fig. 8, the sub-diagram (b) of fig. 8 is similar to the sub-diagram (a) of fig. 4, where a2 includes trigger buttons of various functions, A3 is a send-to-mail function, a4 is a screenshot function, a5 is a button for receiving a cancel instruction, and when a user clicks a4, the screenshot function is triggered, that is, the terminal device is triggered to perform an operation of acquiring N session messages from a session message set.
Referring to fig. 9 again, fig. 9 illustrates an example of triggering a screenshot function and then receiving N selection instructions, where fig. 9 includes two sub-diagrams (a) and (b), in the sub-diagram (a) of fig. 9, when the terminal device receives a selection instruction of a user for a certain session message through an instant messaging application, a receiving button (i.e., D1 in fig. 9) with multiple functions is output, as shown, the multiple functions in D1 include forwarding, collecting, deleting, and screenshot; when the user clicks the screenshot button, the user is triggered to enter the sub-diagram (b) in fig. 9, that is, a receiving interface of N selection instructions (in fig. 9, the value of N is taken as an example), where D2 is a button for receiving a selection instruction for selecting a session message, D3 is a button for receiving a confirmation instruction, and after the user completes a selection operation on the session message, the user can notify the terminal device that the selection operation has been completed by clicking D3, so that the terminal device starts to acquire N message identifiers carried in the N selection instructions, and the like.
In the embodiment of the application, N selection instructions can be obtained through the instant messaging application, each selection instruction carries one message identifier, and therefore N session messages can be obtained from a session message set according to the N message identifiers.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, the obtaining, by the terminal device, the message selection instruction by the instant messaging application includes:
the terminal equipment acquires a first selection instruction through an instant messaging application, wherein the first selection instruction carries a message identifier of a first session message, and the first session message belongs to one message in a session message set;
the terminal equipment acquires a second selection instruction through the instant messaging application, wherein the second selection instruction carries a message identifier of a second session message, and the second session message belongs to one message in a session message set;
the method for acquiring N session messages from a session message set by the terminal device according to the N message identifications carried in the message selection instruction comprises the following steps:
the terminal equipment determines a first session message according to the first selection instruction;
the terminal equipment determines a second session message according to the second selection instruction;
the terminal equipment acquires N session messages according to the first session message and the second session message, wherein in the N session messages, (N-2) session messages exist from the 1 st session message to the Nth session message.
In this embodiment, the terminal device may obtain a first selection instruction and a second selection instruction respectively through the instant messaging application, where the first selection instruction carries a message identifier of a first session message, the second selection instruction carries a message identifier of a second session message, and the first session message and the second session message are both one message in a session message set; therefore, the terminal device may determine the first session message according to the message identifier of the first session message carried in the first selection instruction, determine the second session message according to the message identifier of the second session message carried in the second selection instruction, and further acquire consecutive N session messages between the first session message and the second session message, where the N session messages may include the first session message and the second session message, and this is not limited herein.
When the first session message is an initial session message, the second session message is a termination session message; when the first session message is a session termination message, the second session message is an initial session message; optionally, the first session message and the second session message may also be the same session message, and the like, which are not limited herein.
Specifically, the terminal device may receive a screenshot instruction input by the user through the instant messaging application, trigger a screenshot function, and enter a receiving page of the message selection instruction, so as to receive a first selection instruction of the user for the first session message and a second selection instruction of the user for the second session message, where a specific implementation manner of the terminal device receiving the screenshot instruction input by the user through the instant messaging application may refer to the description in the embodiment corresponding to fig. 8 and fig. 9, and details thereof are not repeated herein.
To further understand the present disclosure, please refer to fig. 10, fig. 10 is a schematic flow diagram illustrating an example of obtaining a message selection instruction in a screenshot generating method provided in the present application, where fig. 10 illustrates an example of triggering a screenshot function and entering a receiving page of the message selection instruction by a second preset operation, fig. 10 includes three sub-diagrams (a), (b), and (c), and the sub-diagram (a) in fig. 10 illustrates an interface triggering the screenshot function, where E1 represents a second preset operation input by a user, and when the user inputs the second preset operation through a session interface, the receiving interface of the message selection instruction is triggered, E2 represents a first session message, the first session message is a start session message, E3 represents a second session message, and the second session message is an end session message; when the user clicks the "ok" button, triggering to enter the sub-diagram (c) in fig. 10, and the terminal device acquires N consecutive session messages between the first session message and the second session message (in the example in fig. 10, the value of N is 5).
In the embodiment of the application, the first selection instruction and the second selection instruction can be obtained through the instant messaging application, and further the first session message can be determined according to the message identification of the first session message carried by the first selection instruction, determining the second session message according to the message identifier of the second session message carried by the second selection instruction, and acquiring N session messages according to the first session message and the second session message, wherein, among the N session messages, there are (N-2) session messages from the 1 st session message to the Nth session message, in the above way, the user can input the selection instruction to the initial session message and the termination session message in the plurality of session messages which are wanted to be intercepted, the user does not need to input selection instructions one by one for each session message, so that the time for the user to input the selection instructions is saved, and the efficiency of the screenshot generating process is improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, after the terminal device obtains N session messages from the session message set according to N message identifiers carried in the message selection instruction, the method further includes:
the method comprises the steps that a terminal device obtains a message extracting instruction, wherein the message extracting instruction carries P message identifications, and P is an integer which is greater than or equal to 1 and smaller than N;
the terminal equipment removes P session messages from the N session messages according to P message identifications carried by the message extraction instruction to obtain (N-P) session messages;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the (N-P) session messages.
In this embodiment, after acquiring N session messages from a session message set, a terminal device may further display the acquired N session messages, so that a message extraction instruction may be acquired through a display interface of the N session messages, where the message extraction instruction carries P message identifiers, and P is an integer greater than or equal to 1 and less than N; and then the terminal device can remove the P session messages from the N session messages according to the P message identifications carried by the message extraction instruction to obtain (N-P) session messages, and generate a screenshot to be shared according to the (N-P) session messages, namely the generated screenshot to be shared only comprises the (N-P) session messages.
Specifically, after acquiring the N session messages according to the N selection instructions input by the user, or acquiring the N session messages according to the first selection instruction and the second selection instruction input by the user, the terminal device may enter a display interface of the N session messages, so as to acquire a message extraction instruction through the display interface of the N session messages. More specifically, in an implementation manner, the terminal device may display a button for triggering a message extraction function on a display interface through the instant messaging application, when a user clicks the button, the message extraction function is triggered, the terminal device starts to receive a message extraction instruction through the instant messaging application, and of course, buttons for triggering other functions, such as preview and the like, may also be displayed on the display interfaces of the N session messages, and may be specifically set in combination with an actual situation; in another implementation manner, the terminal device may also output an inquiry instruction of "asking whether to retrieve the session message", when the user inputs a voice of "confirm to retrieve", the message retrieval function is triggered, the terminal device starts to receive the message retrieval instruction through the instant messaging application, and the like, and a specific manner of receiving the message retrieval instruction may be flexibly determined according to an actual product form, which is not limited herein.
For further understanding of the present solution, please refer to fig. 11, fig. 11 is a schematic flowchart of obtaining a message extraction instruction in the method for generating a screenshot provided in the present application, fig. 11 takes a display interface of N session messages as an example, where fig. 11 includes two sub-schematic diagrams (a) and (b), in the sub-schematic diagram (a) of fig. 11, F1 is a button for triggering a preview function of previewing the screenshot generated according to the N session messages, F2 is a button for triggering the message extraction function, in fig. 11, F1 and F2 are shown at the bottom of the display interface as an example, but in an actual product, F1 and F2 and the like may also be shown at the top, left side or right side of the display interface; when the user clicks F2, the user is triggered to enter the sub-schematic diagram (b) in fig. 11, the sub-schematic diagram (b) in fig. 11 is an interface for the instant messaging application to receive a message extraction instruction, in fig. 11, taking an example that the user wants to provide 2 session messages, see "huge good" and "java" in fig. 11, where outstanding "is a rejected session message, after the user inputs the message extraction instruction, the terminal device starts to obtain P message identifiers carried in the message extraction instruction, and when the user finishes clicking, the terminal device starts to generate a screenshot to be shared.
In the embodiment of the application, after the N session messages are obtained, a message extracting instruction can be further obtained, the P session messages are removed from the N session messages according to the P message identifications carried in the message extracting instruction, the screenshot to be shared is generated according to the (N-P) session messages, and through the method, the session messages for generating the screenshot can be selected secondarily, so that the flexibility of the session message selection process is further improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires a first hiding instruction;
the terminal equipment shields sensitive information corresponding to at least one conversation message according to the first hidden instruction, wherein the sensitive information comprises at least one item of a user head portrait and a keyword;
the method for shielding the sensitive information corresponding to at least one session message by the terminal equipment comprises the following steps:
if the sensitive information is the user head portrait, the terminal equipment shields the user head portrait to obtain a first shielding result;
if the sensitive information is the keyword, the terminal equipment shields the keyword to obtain a first shielding result;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the first shielding processing result.
In this embodiment, after acquiring the N session messages from the session message set according to the N selection instructions input by the user, or acquiring the N session messages from the session message set according to the first selection instruction and the second selection instruction input by the user, the terminal device may further display the acquired N session messages, so that the first hidden instruction may be acquired through a display interface of the N session messages, and the sensitive information corresponding to at least one session message is shielded according to the first hidden instruction to obtain a first shielding result, and then the terminal device may generate the screenshot to be shared according to the N session messages and the first shielding result.
The sensitive information includes at least one of a user avatar and a keyword, and further, the keyword may be a name, an inelegant term, an account password, an identification number, and the like of another user. Specifically, if the sensitive information is the user avatar, the user avatar corresponding to each session message in the N session messages may be masked, so that the screenshot to be shared includes the N session messages, and the user avatar corresponding to each session message is masked; if the sensitive information is the keyword, a keyword set can be stored in the terminal device in advance, the terminal device can judge whether one or more keywords in the keyword set exist in all messages carried by the N session messages, if yes, at least one keyword is shielded, so that the screenshot to be shared comprises the N session messages, and at least one keyword matched with the preset keyword set in the N session messages is shielded. The method for shielding the user avatar and/or the keyword by the terminal device may be to directly delete the user avatar and/or the keyword, may also be to mosaic the user avatar and/or the keyword, may also be to overlay a preset image on the user avatar, for example, to overlay an image of the smith ratio on the user avatar, may also be to replace the keyword with a preset character, and the like, which is not limited herein.
Specifically, in an implementation manner, the terminal device may display a button for triggering an information hiding function on a display interface through an instant messaging application, and when a user clicks the button, the terminal device receives a first hiding instruction and performs shielding processing on a user avatar corresponding to each session message in the N session messages; optionally, when a user clicks a button displayed on the interface for triggering the information hiding function, the terminal device may output a hidden information selection interface, and various selection buttons capable of hiding information are displayed on the hidden information selection interface, where the information type of the hidden information may include sensitive information corresponding to each session message, a user avatar, a user name, session title keywords corresponding to N session messages, device information, and the like, so that the user may select the type of the hidden information, and when the user clicks a button corresponding to the information type "user avatar", the terminal device receives the first hiding instruction. In another implementation manner, the terminal device may also output an inquiry instruction of asking whether to hide the sensitive information, and when the user inputs a voice of "confirm to hide", the terminal device receives the first hiding instruction, and the like, which is not limited herein.
To further understand the present solution, please refer to fig. 12, fig. 12 is a schematic flowchart of a method for obtaining a hidden command in a screenshot generating method provided in this embodiment, where in fig. 12, a first hidden command is directly obtained when a button for triggering an information hiding function is clicked, and sensitive information is a user avatar as an example, fig. 12 includes two sub-diagrams (a) and (b), in the sub-diagram (a) of fig. 12, when a user clicks G1, a terminal device receives the first hidden command and triggers entering into the sub-diagram (b) of fig. 12, the sub-diagram (b) of fig. 12 is a display diagram of performing a shielding process on the user avatar corresponding to each of N session messages, and in fig. 12, a shielding process is performed in a way of mosaicing the user avatar as an example, it should be understood that the example in fig. 12 is only for facilitating understanding of the present solution, and is not intended to limit the present solution.
In the embodiment of the application, after the N session messages are obtained, a first hiding instruction can be further obtained, the sensitive information corresponding to at least one session message is shielded according to the first hiding instruction, and then the screenshot to be shared is generated according to the N session messages and the first shielding result.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires a second hiding instruction;
the terminal equipment shields the conversation titles corresponding to the N conversation messages according to the second hiding instruction to obtain a second shielding processing result;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the second shielding processing result.
In this embodiment, after the terminal device obtains N session messages from the session message set through the instant messaging application, the obtained N session messages may also be displayed, so that a second hidden instruction may be obtained through a display interface of the N session messages, and a session header corresponding to the N session messages is shielded according to the second hidden instruction to obtain a second shielding result, and then the terminal device may generate a screenshot to be shared according to the N session messages and the second shielding result, where the screenshot to be shared includes the N session messages, and the session header corresponding to the N session messages is shielded. The session title may be embodied as a group name in a group session, or may be embodied as a nickname of a user who performs a session between two users, a name of a machine service when performing a session between a user and a machine service, or the like.
Specifically, the manner in which the terminal device performs the shielding processing on the session title through the instant messaging application may be similar to the manner in which the shielding processing is performed on the user image, and the manner in which the terminal device receives the second hidden instruction through the instant messaging application is similar to the manner in which the first hidden instruction is received, which is not described herein again specifically.
In the embodiment of the application, after the N session messages are obtained, a second hiding instruction can be further obtained, the session titles corresponding to the N session messages are shielded according to the second hiding instruction, and then the screenshot to be shared is generated according to the N session messages and the second shielding result.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires a third hiding instruction;
the terminal equipment shields the user name corresponding to each session message in the N session messages according to the third hidden instruction to obtain a third shielding result;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the third shielding processing result.
In this embodiment, after the terminal device obtains N session messages from the session message set through the instant messaging application, the obtained N session messages may be further displayed, so that a third hiding instruction may be obtained through a display interface of the N session messages, and according to the third hiding instruction, a user name corresponding to each session message in the N session messages is shielded, so as to obtain a third shielding result, and then the terminal device may generate a screenshot to be shared according to the N session messages and the third shielding result, where the screenshot to be shared includes the N session messages, and a head portrait of each session message is shielded. The user name may be embodied as a user name corresponding to each session message in the group session, or may be embodied as a user name of a certain user when a session is performed between two users, or the like.
Specifically, the manner in which the terminal device performs the shielding processing on the user name through the instant messaging application may be similar to the manner in which the user image is shielded, and the manner in which the terminal device receives the second hidden instruction through the instant messaging application is similar to the manner in which the first hidden instruction is received, which is not described herein again specifically.
To further understand the present solution, please refer to fig. 13, fig. 13 is a schematic flow diagram illustrating an example of obtaining a hidden command in a screenshot generating method provided in this application, where fig. 13 illustrates an example of outputting a hidden information selection interface when a button for triggering an information hiding function is clicked, fig. 13 includes three sub-diagrams (a), (b), and (c), in the sub-diagram (a) of fig. 13, when a user clicks G1, the information hiding function is triggered, so as to enter the sub-diagram (b) of fig. 13, where selection buttons of various kinds of information that can be hidden are shown in H1 and respectively are a user avatar, a user name, a session title, and device information, when the user clicks the button "user name", the terminal device receives a third hidden command to trigger entry into the sub-diagram (c) of fig. 13, and the sub-diagram (c) of fig. 13 is a sub-diagram for shielding a user name corresponding to each session message in N session messages A schematic illustration of the process is shown, and in fig. 13, the masking process is performed in a way of mosaicing the user name in the group session, it should be understood that the example in fig. 13 is only for convenience of understanding the scheme, and is not used to limit the scheme.
In the embodiment of the application, after the N session messages are obtained, a third hiding instruction can be further obtained, the user name corresponding to each session message in the N session messages is shielded according to the third hiding instruction, and then the screenshot to be shared is generated according to the N session messages and the third shielding processing result.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires a fourth hiding instruction;
the terminal device performs shielding processing on the device information according to the fourth hidden instruction to obtain a fourth shielding processing result, wherein the device information includes at least one of time information, operator information and signal strength information;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the fourth shielding processing result.
In this embodiment, after acquiring N session messages from a session message set through an instant messaging application, a terminal device may further display the acquired N session messages, so that a fourth hidden instruction may be acquired through a display interface of the N session messages, and according to the fourth hidden instruction, device information corresponding to the N session messages is shielded to obtain a fourth shielding result, and then the terminal device may generate a screenshot to be shared according to the N session messages and the fourth shielding result, where the device information includes at least one of time information, operator information, and signal strength information, and may be specifically expressed as information in a user bar at the top of the interface; the screenshot to be shared comprises N conversation messages, and device information corresponding to the N conversation messages is shielded. Further, in the case that the fourth hiding instruction is received by the terminal device, the user avatar and the user name corresponding to each session message and the session titles corresponding to the N session messages may not be masked.
The method for shielding the device information by the terminal device through the instant messaging application may be similar to the method for shielding the user image, and the method for receiving the fourth hidden instruction by the terminal device through the instant messaging application is similar to the method for receiving the first hidden instruction, which is not repeated here.
In the embodiment of the application, after the N session messages are obtained, a fourth hidden instruction can be further obtained, the device information corresponding to the N session messages is shielded according to the fourth hidden instruction, and then the screenshot to be shared is generated according to the N session messages and the fourth shielding result.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
obtaining semantic information corresponding to each conversation message in N conversation messages, wherein the N conversation messages comprise at least one of text information and voice information;
generating an information shielding rule according to semantic information corresponding to each session message;
shielding the session messages meeting the information shielding rule in the N session messages to obtain a fifth shielding result;
generating a screenshot to be shared according to the N session messages, wherein the screenshot comprises the following steps:
and generating the screenshot to be shared according to the N session messages and the fifth shielding processing result.
In this embodiment, after acquiring the N session messages from the session message set through the instant messaging application, the terminal device may further display the acquired N session messages, so that an information hiding instruction input by a user may be received, and the terminal device may acquire semantic information corresponding to the information hiding instruction to determine an information type to be shielded, where the information type may be a work content type, an identity information type, an amount type, a password type, and the like, and is not limited herein. Specifically, in one case, a button for triggering the information hiding function may be displayed on the display interface of the N session messages, and when the user clicks the button, a text box is output to receive an information hiding instruction input by the user, for example, the user may input "work content" in a text form, and the information hiding instruction received by the terminal device is "hide information to be related to the work content"; in another case, a button for triggering the information hiding function may be displayed on the display interface of the N session messages, and when the user presses the button for a long time, the voice receiving function may be triggered, so that the user may input "hide information to be related to the work content" and the like in a voice form, and an input manner of the specific information hiding instruction is not limited herein.
After receiving the information hiding instruction, the terminal device may obtain semantic information corresponding to each session message in the N session messages, that is, the terminal device may analyze the meaning of each session message by using a natural voice processing technology, so as to determine what types of information are included in each session message, where the content of each session message may be text information or voice information, and as an example, for example, the content of a certain session message is "i transferred 5000 elements to you in the afternoon today, remember to see", and then "5000" elements therein may be regarded as amount type information; as another example, for example, if the content of a certain session message is "the payroll of your month is 1 ten thousand 5 thousand yuan", the "payroll of 1 ten thousand 5 yuan" therein is the information of the work content class, and the "1 ten thousand 5 yuan" is the information of the money amount class.
The terminal device can generate an information shielding rule according to the voice information corresponding to each session message, and shield the session messages meeting the information shielding rule in the N session messages to obtain a fifth shielding result, so as to generate the screenshot to be shared according to the N session messages and the fifth shielding result.
The information shielding rule can be expressed as shielding information of at least one information type. The session message that satisfies the information shielding rule may be a partial message in one session message, or may also be a whole session message, for example, if the content of a certain session message is a user password, and the information shielding rule is shielding password-like information, the whole message needs to be shielded. The method for shielding the session message meeting the information shielding rule may be to mosaic the session message meeting the information shielding rule, or replace the session message meeting the information shielding rule with a preset character, or overlay a preset image on the session message meeting the information shielding rule, and the like, which is not limited herein.
In the embodiment of the application, after the N session messages are obtained, semantic information corresponding to each session message can be further obtained, an information shielding rule is generated, then the session messages meeting the information shielding rule in the N session messages are shielded, a fifth shielding processing result is obtained, and a screenshot to be shared is generated according to the N session messages and the fifth shielding processing result.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires an information hiding instruction;
the terminal equipment shields the user image, the user name, the session title and the equipment information corresponding to each session message in the N session messages according to the information hiding instruction to obtain a shielding processing result, wherein the equipment information comprises at least one item of time information, operator information and signal strength information;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the shielding processing result.
In this embodiment, after acquiring N session messages from a session message set through an instant messaging application, a terminal device may further display the acquired N session messages, receive an information hiding instruction through a display interface of the N session messages, and perform shielding processing on a user image, a user name, a session title, and device information corresponding to each session message in the N session messages according to the information hiding instruction, to obtain a shielding processing result, and then the terminal device may generate a screenshot to be shared according to the N session messages and the shielding processing result. Specifically, in one implementation manner, the terminal device may display a button for triggering an information hiding function on a display interface of N session messages through an instant messaging application, and when a user clicks the button, the terminal device receives an information hiding instruction; in another implementation manner, the terminal device may also output an inquiry instruction of "asking whether to hide information", and when the user inputs a voice of "confirming to hide", the terminal device receives an information hiding instruction, and the like, which is not limited herein.
In the embodiment of the application, after the N session messages are obtained, an information hiding instruction can be further obtained, the user head portrait, the user name, the session title and the equipment information are shielded according to the information hiding instruction, and then the screenshot to be shared is generated according to the N session messages and the shielding processing result; and the shielding of various types of information is realized through one key, the operation is simple and convenient, and the viscosity of the user is further improved.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment acquires a watermark adding instruction, wherein the watermark adding instruction carries an identifier of target watermark information;
according to the watermark adding instruction, the terminal equipment covers a target watermark layer corresponding to the target watermark information on an area formed by the N session messages;
the terminal equipment generates a screenshot to be shared according to the N session messages, and the method comprises the following steps:
and the terminal equipment generates a screenshot to be shared according to the N session messages and the target watermark layer.
In this embodiment, after acquiring N session messages from a session message set through an instant messaging application, a terminal device may further display the acquired N session messages, receive a watermark adding instruction through a display interface of the N session messages, where the watermark adding instruction carries an identifier of target watermark information, so that the terminal device may acquire the target watermark information according to the identifier of the target watermark information, and cover a target watermark layer corresponding to the target watermark information on an area formed by the N session messages, and then the terminal device may generate a screenshot to be shared according to the N session messages and the target watermark layer, where the screenshot to be shared carries the target watermark. The target watermark information can be specifically represented as character strings, patterns, digital strings and the like, one target watermark layer or at least two target watermark layers can exist in one screenshot to be shared, and when one target watermark layer exists, the target watermark layer can cover the top, the middle, the bottom, the left side or the right side of an area formed by the N session messages and other optional positions; when at least two target watermark layers exist, each target watermark image can cover the session message and can also avoid the session message so as to avoid the superposition of the session message and the like, and the patterns, the number and the positions of the specific target watermark layers are flexibly set by combining with the actual product, and the setting is not limited here.
Specifically, at least one type of watermark information may be stored in advance in the terminal device, a button for triggering a watermark adding function may be displayed on a display interface of the N session messages, and in one implementation, when a user clicks the button, the terminal device may display an adding position of at least one target watermark layer, so that when the user clicks a certain adding position again, the terminal device may receive a watermark adding instruction, and may further determine one type of watermark information from the at least one type of watermark information and form a watermark layer, or display the at least one type of watermark information and select one type of watermark information by the user to form a watermark layer.
In another implementation manner, when the user clicks the button, the terminal device may also be considered to receive a watermark adding instruction, select one watermark information from the at least one watermark information as target watermark information, and display the watermark information selected by the terminal device in at least one preset position, optionally, when the user clicks or double clicks the target watermark layer, the terminal device may receive a watermark replacing instruction, obtain watermark information different from the current watermark information from the at least one watermark information, and form a new watermark layer.
In another implementation manner, when the user clicks the button, the terminal device may also display the at least one watermark information to the user through an instant messaging application, the user selects one watermark information from the at least one watermark information, and displays the watermark information selected by the user in at least one preset position, optionally, when the terminal device displays the at least one watermark information, the terminal device may also display a button for adding new watermark information, so as to receive the user-defined watermark information, and further generate a watermark adding instruction according to the determined watermark information, as an example, the terminal device displays four pre-stored watermarks to the user, and a "+" shaped button, when the user clicks the "+" shaped button, an interface for self-defining watermark information may be entered, and the like, which is only for convenience of understanding, and is not intended to limit the present solution.
To further understand the present disclosure, please refer to fig. 14, fig. 14 is a schematic flowchart of a process for obtaining a watermark adding instruction in the screenshot generating method provided in the present application, where fig. 14 illustrates that a terminal device shows at least one watermark adding position when a user clicks a button for triggering a watermark adding function, fig. 14 includes (a) and (b) sub-schematic diagrams, in the sub-schematic diagram of fig. 14 (a), when the user clicks an I1, the terminal device triggers the watermark adding function to enter the sub-schematic diagram of fig. 14 (b), the terminal device shows at least one watermark adding position through an instant messaging application (fig. 14 shows 3 watermark adding positions as an example), where the "add watermark" sample in fig. 14 is used to receive the watermark adding instruction, and when the user clicks "add watermark", the terminal device may directly show a target watermark layer, it is also possible to output a watermark selection window, in which at least one watermark is displayed, so that a user can select one watermark from the at least one watermark to form a target watermark layer, it should be understood that the example in fig. 14 is only for convenience of understanding the present solution, and is not used to limit the present solution.
In the embodiment of the application, after the N session messages are obtained, a watermark adding instruction can be further obtained, the target watermark layer corresponding to the target watermark information is covered on the area formed by the N session messages according to the identification of the target watermark information carried in the watermark adding instruction, and the screenshot to be shared is generated according to the N session messages and the target watermark layer, wherein the screenshot to be shared carries the target watermark layer.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, before the terminal device obtains the watermark adding instruction, the method further includes:
the terminal equipment acquires a watermark setting instruction;
the terminal equipment displays a watermark drawing interface according to the watermark setting instruction;
the terminal equipment receives a watermark drawing instruction through a watermark drawing interface;
and the terminal equipment generates a self-defined watermark image according to the watermark drawing instruction.
In this embodiment, before the terminal device obtains the watermark adding instruction, the terminal device may further obtain the watermark setting instruction through the instant messaging application, display the watermark drawing interface according to the watermark setting instruction, receive the watermark drawing instruction through the watermark drawing interface, and generate the custom watermark image according to the watermark drawing instruction. The watermark drawing instruction may be carried with text information, character information, image information, or the like, for example, the information carried with the watermark drawing instruction is image information, and the image information is a flower; as another example, for example, the information carried in the watermark drawing instruction is text information, and the text information is "attentive to secrecy"; as another example, for example, the information carried in the watermark drawing instruction is character information, "Best windows," and the like, and the examples herein are only for convenience of understanding the present solution and are not used to limit the present solution.
Specifically, the terminal device may obtain the watermark setting instruction through the display interface of the N session messages, or may not obtain the watermark setting instruction in the screenshot generating process, for example, a watermark setting function may be configured in a sub-menu of the setting function of the instant messaging application, so that the terminal device may obtain the watermark setting instruction through the setting function of the instant messaging application, and the like, and a manner of specifically obtaining the watermark setting instruction is not limited here.
In the embodiment of the application, the watermark drawing interface can be displayed according to the watermark setting instruction input by the user, the watermark drawing instruction is received through the watermark drawing interface, and then the user-defined watermark image can be generated according to the watermark drawing instruction.
Optionally, on the basis of the embodiment corresponding to fig. 3, in an optional embodiment of the method for generating a screenshot provided in the embodiment of the present application, after the terminal device generates the screenshot to be shared according to the N session messages, the method further includes:
the terminal equipment receives a screenshot sharing instruction;
the terminal equipment selects Q users to be shared from a user cluster according to the screenshot sharing instruction, wherein the user cluster comprises K users, the Q users to be shared belong to the user cluster, K is an integer larger than 1, and Q is an integer larger than or equal to 1 and smaller than or equal to K;
and the terminal equipment sends the screenshot to be shared to the client corresponding to each user to be shared in the Q users to enable the client to display the screenshot to be shared.
In this embodiment, after generating the screenshot to be shared, the terminal device may display the screenshot to be shared, and further may store the screenshot to be shared to the local, and may also receive a screenshot sharing instruction input by the user through the instant messaging application, and may display a sharing mode selection interface, for example, share the screenshot to the user, a mailbox, a favorite, a friend circle, and the like, when the user selects to share to a friend, open a user cluster display interface, so as to receive a user selection instruction input by the user, and the terminal device may select Q users to be shared from the user cluster according to the user selection instruction input by the user; of course, a user cluster display interface and the like can also be directly opened when a screenshot sharing instruction input by a user is received, wherein the user cluster comprises K users, Q users to be shared belong to the user cluster, K is an integer greater than 1, and Q is an integer greater than or equal to 1 and less than or equal to K. And then the terminal equipment can send the screenshot to be shared to the client corresponding to each user to be shared in the Q users to be shared through the server of the instant messaging application, so that the client corresponding to the user to be shared can display the screenshot to be shared after receiving the screenshot to be shared. The Q users to be shared may be embodied as one user, may also be embodied as multiple users in the same group, may also be embodied as multiple users not in the same group, and the like, which is not limited herein.
To further understand the present solution, please refer to fig. 15, where fig. 15 is an interface schematic diagram for receiving a screenshot sharing instruction in the screenshot generating method provided in the embodiment of the present application, after a terminal device generates a screenshot to be shared, the screenshot to be shared may be displayed, a button for receiving the sharing instruction and storing the sharing instruction to a local instruction may be disposed on a display interface of the screenshot to be shared, and when a user presses the sharing instruction, the display diagram 15 is triggered, where when the user clicks J1, the terminal device may open a user cluster display interface to receive a user selection instruction input by the user.
In the embodiment of the application, after the screenshot to be shared is generated, the screenshot sharing instruction can be received, Q users to be shared are selected from the user cluster according to the screenshot sharing instruction, the screenshot to be shared is sent to the Q users to be shared, the screenshot to be shared can be shared for the users, and the completeness of the scheme is improved.
On the basis of the embodiments corresponding to fig. 3 to fig. 15, the following describes in detail the screenshot generating device 20 in the present application, please refer to fig. 16, where fig. 16 is a schematic view of an embodiment of the screenshot generating device 20 in the embodiment of the present application, and the screenshot generating device 20 includes:
an obtaining unit 201, configured to obtain a message selection instruction through an instant messaging application, where the message selection instruction carries N message identifiers, the message identifiers have a corresponding relationship with a session message, and N is an integer greater than or equal to 1;
the obtaining unit 201 is further configured to obtain N session messages from a session message set according to N message identifiers carried in the message selection instruction obtained by the obtaining unit 201, where the session message set includes M session messages, and M is an integer greater than or equal to N;
the generating unit 202 is configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201.
In this embodiment, the obtaining unit 201 obtains a message selection instruction through an instant messaging application, where the message selection instruction carries N message identifiers, the message identifiers and the session messages have a corresponding relationship, and N is an integer greater than or equal to 1, and then the obtaining unit 201 obtains N session messages from a session message set according to the N message identifiers carried in the message selection instruction obtained by the obtaining unit 201, where the session message set includes M session messages, and M is an integer greater than or equal to N; the generating unit 202 generates a screenshot to be shared according to the N session messages.
In this embodiment of the application, first, the obtaining unit 201 obtains a message selection instruction through an instant messaging application, where the message selection instruction carries N message identifiers, and the message identifiers have a corresponding relationship with session messages, then, the obtaining unit 201 obtains N session messages from a session message set according to the N message identifiers carried in the message selection instruction, where the session message set includes M session messages, M is an integer greater than or equal to N, and finally, the generating unit 202 generates a screenshot to be shared according to the N session messages. By the mode, when the chat messages are intercepted, screenshot is not needed for a plurality of screens, and the whole screenshot containing the chat messages can be directly generated only by selecting the intercepted chat messages, so that the convenience of operation is improved, and the screenshot efficiency is increased.
Optionally, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is specifically configured to:
acquiring N selection instructions through instant messaging application, wherein each selection instruction carries a message identifier;
acquiring N session messages from a session message set according to N message identifications carried in a message selection instruction, wherein the acquisition comprises the following steps:
and acquiring N session messages from the session message set according to the message identifier carried by each selection instruction in the N selection instructions.
Secondly, in this embodiment of the application, the obtaining unit 201 may obtain N selection instructions through the instant messaging application, each selection instruction carries one message identifier, and thus N session messages may be obtained from the session message set according to the N message identifiers.
Optionally, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is specifically configured to:
acquiring a first selection instruction through an instant messaging application, wherein the first selection instruction carries a message identifier of a first session message, and the first session message belongs to one message in a session message set;
acquiring a second selection instruction through the instant messaging application, wherein the second selection instruction carries a message identifier of a second session message, and the second session message belongs to one message in a session message set;
the obtaining unit 201 is specifically configured to:
determining a first session message according to the first selection instruction acquired by the acquisition unit 201;
determining a second session message according to the second selection instruction acquired by the acquisition unit 201;
and acquiring N session messages according to the first session message and the second session message, wherein (N-2) session messages exist from the 1 st session message to the Nth session message in the N session messages.
Secondly, in this embodiment of the application, the obtaining unit 201 may obtain the first selection instruction and the second selection instruction through the instant messaging application, and further may determine the first session message according to a message identifier of the first session message carried by the first selection instruction, determine the second session message according to a message identifier of the second session message carried by the second selection instruction, and obtain N session messages according to the first session message and the second session message, where (N-2) session messages are located between the 1 st session message and the N th session message in the N session messages, through the above manner, the user may input the selection instruction for the start session message and the end session message in the multiple session messages that are to be intercepted, and then the user does not need to input the selection instruction for each session message one by one, which saves the time for the user to input the selection instruction, the efficiency of the screenshot generating process is improved.
Optionally, on the basis of the embodiment corresponding to fig. 16, please refer to fig. 17, where fig. 17 is a schematic view of an embodiment of a screenshot generating apparatus 20 in the embodiment of the present application, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a message extracting instruction, where the message extracting instruction carries P message identifiers, and P is an integer greater than or equal to 1 and less than N;
the screenshot generating apparatus 20 further includes: a removing unit 203, configured to remove P session messages from the N session messages according to P message identifiers carried in the message extracting instruction obtained by the obtaining unit 201, so as to obtain (N-P) session messages;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the (N-P) session messages obtained by the rejecting unit 203.
In the embodiment of the application, after the obtaining unit 201 obtains the N session messages, a message extraction instruction may be further obtained, the eliminating unit 203 eliminates the P session messages from the N session messages according to the P message identifiers carried in the message extraction instruction, and the generating unit 202 generates the screenshot to be shared according to the (N-P) session messages.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a first hidden instruction;
the screenshot generating apparatus 20 further includes: a shielding unit 204, configured to shield, according to the first hidden instruction acquired by the acquiring unit 201, sensitive information corresponding to at least one session message, where the sensitive information includes at least one of a user avatar and a keyword;
the shielding unit 204 is specifically configured to:
if the sensitive information is the head portrait of the user, shielding the head portrait of the user to obtain a first shielding result;
if the sensitive information is the keyword, shielding the keyword to obtain a first shielding result;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201 and the first shielding processing result obtained by the shielding unit 204.
In the embodiment of the application, after the obtaining unit 201 obtains the N session messages, a first hiding instruction may be further obtained, the shielding unit 204 performs shielding processing on the sensitive information corresponding to at least one session message according to the first hiding instruction, and the generating unit 202 generates a screenshot to be shared according to the N session messages and the first shielding processing result.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a second hidden instruction;
the screenshot generating apparatus 20 further includes: a shielding unit 204, configured to perform shielding processing on the session headers corresponding to the N session messages according to the second hidden instruction obtained by the obtaining unit 201, so as to obtain a second shielding processing result;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201 and the second shielding processing result obtained by the shielding unit 204.
Secondly, in this embodiment of the application, after the obtaining unit 201 obtains the N session messages, a second hiding instruction may also be obtained, the shielding unit 204 performs shielding processing on the session titles corresponding to the N session messages according to the second hiding instruction, and then the generating unit 202 generates the screenshot to be shared according to the N session messages and the second shielding processing result.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a third hiding instruction;
the screenshot generating apparatus 20 further includes: a shielding unit 204, configured to perform shielding processing on the user name corresponding to each session message in the N session messages according to the third hidden instruction obtained by the obtaining unit 201, so as to obtain a third shielding processing result;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201 and the third shielding processing result obtained by the shielding unit 204.
In this embodiment of the application, after the obtaining unit 201 obtains the N session messages, a third hiding instruction may also be obtained, the shielding unit 204 performs shielding processing on the user name corresponding to each session message in the N session messages according to the third hiding instruction, and the generating unit 202 generates the screenshot to be shared according to the N session messages and the third shielding processing result.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a fourth hidden instruction;
the screenshot generating apparatus 20 further includes: a shielding unit 204, configured to perform shielding processing on the device information according to the fourth hidden instruction acquired by the acquiring unit 201 to obtain a fourth shielding processing result, where the device information includes at least one of time information, operator information, and signal strength information;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201 and the fourth shielding processing result obtained by the shielding unit 204.
Secondly, in this embodiment of the application, after the obtaining unit 201 obtains the N session messages, a fourth hidden instruction may also be obtained, the shielding unit 204 performs shielding processing on the device information corresponding to the N session messages according to the fourth hidden instruction, and then the generating unit 202 generates a screenshot to be shared according to the N session messages and the fourth shielding processing result.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating device 20 provided in the embodiment of the present application,
the acquiring unit 201 is further configured to acquire semantic information corresponding to each of N session messages, where the N session messages include at least one of text information and voice information;
the generating unit 202 is further configured to generate an information shielding rule according to the semantic information corresponding to each session message acquired by the acquiring unit 201;
the screenshot generating device further comprises: a shielding unit 204, configured to perform shielding processing on the session message, which meets the information shielding rule generated by the generating unit 202, in the N session messages, to obtain a fifth shielding processing result;
the generating unit 202 is specifically configured to generate the screenshot to be shared according to the N session messages and the fifth shielding processing result obtained by the shielding unit 204.
Secondly, in this embodiment of the application, after the obtaining unit 201 obtains the N session messages, semantic information corresponding to each session message may also be obtained, the generating unit 202 generates an information shielding rule, the shielding unit 204 performs shielding processing on the session messages meeting the information shielding rule in the N session messages to obtain a fifth shielding processing result, and the generating unit 202 generates a screenshot to be shared according to the N session messages and the fifth shielding processing result.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain an information hiding instruction;
the screenshot generating apparatus 20 further includes: a shielding unit 204, configured to perform shielding processing on a user image, a user name, a session title and device information corresponding to each session message in the N session messages according to the information hiding instruction acquired by the acquiring unit 201, so as to obtain a shielding processing result, where the device information includes at least one of time information, operator information and signal strength information;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages acquired by the acquiring unit 201 and the shielding processing result obtained by the shielding unit 204.
Secondly, in the embodiment of the application, after the obtaining unit 201 obtains the N session messages, an information hiding instruction may be further obtained, the shielding unit 204 performs shielding processing on the user avatar, the user name, the session title and the device information according to the information hiding instruction, and then the generating unit 202 generates the screenshot to be shared according to the N session messages and the shielding processing result, and by the above manner, the user avatar, the user name, the session title and the device information may be shielded by one key, that is, all possible privacy information is shielded, so that the privacy of the finally generated screenshot is improved, and the sharing threshold of the user is reduced; and the shielding of various types of information is realized through one key, the operation is simple and convenient, and the viscosity of the user is further improved.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a watermark adding instruction, where the watermark adding instruction carries an identifier of target watermark information;
the screenshot generating apparatus 20 further includes: an overlaying unit 205, configured to overlay a target watermark layer corresponding to the target watermark information on an area formed by the N session messages according to the watermark adding instruction acquired by the acquiring unit 201;
the generating unit 202 is specifically configured to generate a screenshot to be shared according to the N session messages and the target watermark layer.
Secondly, in this embodiment of the application, after the obtaining unit 201 obtains N session messages, a watermark adding instruction may also be obtained, the covering unit 205 covers a target watermark layer corresponding to the target watermark information on an area formed by the N session messages according to an identifier of the target watermark information carried in the watermark adding instruction, and the generating unit 202 generates a screenshot to be shared according to the N session messages and the target watermark layer, where the screenshot to be shared carries the target watermark layer.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating apparatus 20 provided in the embodiment of the present application, the obtaining unit 201 is further configured to obtain a watermark setting instruction;
the screenshot generating apparatus 20 further includes:
a display unit 206, configured to display a watermark drawing interface according to the watermark setting instruction acquired by the acquisition unit 201;
a receiving unit 207, configured to receive a watermark drawing instruction through the watermark drawing interface displayed by the displaying unit 206;
the generating unit 202 is further configured to generate a custom watermark image according to the watermark drawing instruction.
In this embodiment, the displaying unit 206 may further display a watermark drawing interface according to a watermark setting instruction input by a user, the receiving unit 207 receives the watermark drawing instruction through the watermark drawing interface, and the generating unit 202 may further generate a customized watermark image according to the watermark drawing instruction.
Optionally, on the basis of the embodiments corresponding to fig. 16 and fig. 17, in another embodiment of the screenshot generating device 20 provided in the embodiment of the present application, the screenshot generating device 20 further includes: a receiving unit 207, configured to receive a screenshot sharing instruction;
the selecting unit 208 is further configured to select Q users to be shared from the user cluster according to the screenshot sharing instruction received by the receiving unit 207, where the user cluster includes K users, the Q users to be shared belong to the user cluster, K is an integer greater than 1, and Q is an integer greater than or equal to 1 and less than or equal to K;
the screenshot generating apparatus 20 further includes: the sending unit 209 is configured to send the screenshot to be shared to the client corresponding to each user to be shared among the Q users to be shared, so that the client displays the screenshot to be shared.
Secondly, in the embodiment of the application, after the screenshot to be shared is generated, the receiving unit 207 may further receive a screenshot sharing instruction, the selecting unit 208 selects Q users to be shared from the user cluster according to the screenshot sharing instruction, and the sending unit 209 sends the screenshot to be shared to the Q users to be shared.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Next, an embodiment of the present application further provides a terminal device, where the screenshot generating apparatus provided in the embodiment corresponding to fig. 16 and 17 may be deployed on the terminal device, and is used to execute steps executed by the terminal device in the embodiments corresponding to fig. 3 to fig. 15. As shown in fig. 18, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The screenshot generating device may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of Sales (POS), a vehicle-mounted computer, and the screenshot generating device is taken as the mobile phone as an example:
fig. 18 is a block diagram showing a partial structure of a mobile phone related to an information generating apparatus or an information presenting apparatus provided in an embodiment of the present application. Referring to fig. 18, the cellular phone includes: radio Frequency (RF) circuit 310, memory 320, input unit 330, display unit 340, sensor 350, audio circuit 360, wireless fidelity (WiFi) module 370, processor 380, and power supply 330. Those skilled in the art will appreciate that the handset configuration shown in fig. 18 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 18:
the RF circuit 310 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 380; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 310 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 310 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 320 may be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 330 may include a touch panel 331 and other input devices 332. The touch panel 331, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on the touch panel 331 or near the touch panel 331 using any suitable object or accessory such as a finger, a stylus, etc.) on or near the touch panel 331, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 331 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch panel 331 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 330 may include other input devices 332 in addition to the touch panel 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 331 can cover the display panel 341, and when the touch panel 331 detects a touch operation on or near the touch panel 331, the touch panel is transmitted to the processor 380 to determine the type of the touch event, and then the processor 380 provides a corresponding visual output on the display panel 341 according to the type of the touch event. Although in fig. 18, the touch panel 331 and the display panel 341 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 331 and the display panel 341 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 350, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 341 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between the user and the handset. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, which are received by the audio circuit 360 and converted into audio data, which are then processed by the audio data output processor 380 and then transmitted to, for example, another cellular phone via the RF circuit 310, or output to the memory 320 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 370, and provides wireless broadband internet access for the user. Although fig. 18 shows the WiFi module 370, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Alternatively, processor 380 may include one or more processing units; alternatively, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The handset also includes a power supply 330 (e.g., a battery) for powering the various components, optionally logically connected to the processor 380 via a power management system, so as to manage charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera module, a bluetooth module, etc., which will not be described herein.
In this embodiment of the application, when the terminal is used to execute the steps executed by the terminal device in the embodiment corresponding to fig. 3 to fig. 15, the processor 380 included in the terminal device further has the following functions:
obtaining a message selection instruction through the instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relationship, and N is an integer greater than or equal to 1;
acquiring N session messages from a session message set according to N message identifications carried in the message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N;
and generating a screenshot to be shared according to the N session messages.
Optionally, the processor 380 is specifically configured to:
acquiring N selection instructions through the instant messaging application, wherein each selection instruction carries a message identifier;
the acquiring N session messages from a session message set according to the N message identifiers carried in the message selection instruction includes:
and acquiring N session messages from a session message set according to the message identifier carried by each selection instruction in the N selection instructions.
Optionally, the processor 380 is specifically configured to:
obtaining a first selection instruction through the instant messaging application, wherein the first selection instruction carries a message identifier of a first session message, and the first session message belongs to one message in the session message set;
acquiring a second selection instruction through the instant messaging application, wherein the second selection instruction carries a message identifier of a second session message, and the second session message belongs to one message in the session message set;
determining the first session message according to the first selection instruction;
determining the second session message according to the second selection instruction;
and acquiring the N session messages according to the first session message and the second session message, wherein (N-2) session messages exist from the 1 st session message to the Nth session message in the N session messages.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a message extracting instruction, wherein the message extracting instruction carries P message identifiers, and P is an integer which is greater than or equal to 1 and less than N;
removing P session messages from the N session messages according to the P message identifications carried by the message extracting instruction to obtain (N-P) session messages;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the (N-P) session messages.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a first hiding instruction;
according to the first hidden instruction, shielding sensitive information corresponding to the at least one conversation message, wherein the sensitive information comprises at least one item of a user head portrait and a keyword;
the processor 380 is specifically configured to:
if the sensitive information is the head portrait of the user, shielding the head portrait of the user to obtain a first shielding result;
if the sensitive information is the keyword, shielding the keyword to obtain a first shielding result;
and generating the screenshot to be shared according to the N session messages and the first shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a second hiding instruction;
according to the second hiding instruction, carrying out shielding processing on the session titles corresponding to the N session messages to obtain a second shielding processing result;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the second shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a third hiding instruction;
according to the third hiding instruction, shielding the user name corresponding to each session message in the N session messages to obtain a third shielding result;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the third shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a fourth hidden instruction;
shielding the device information according to the fourth hidden instruction to obtain a fourth shielding result, wherein the device information includes at least one of time information, operator information, and signal strength information;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the fourth shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
obtaining semantic information corresponding to each session message in the N session messages, wherein the N session messages comprise at least one of text information and voice information;
generating an information shielding rule according to the semantic information corresponding to each session message;
shielding the session messages meeting the information shielding rule in the N session messages to obtain a fifth shielding result;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the fifth shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring an information hiding instruction;
according to the information hiding instruction, carrying out shielding processing on sensitive information, a user name, session titles and equipment information corresponding to each session message in the N session messages to obtain a shielding processing result, wherein the equipment information comprises at least one item of time information, operator information and signal strength information;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the shielding processing result.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a watermark adding instruction, wherein the watermark adding instruction carries an identifier of target watermark information;
according to the watermark adding instruction, covering a target watermark layer corresponding to the target watermark information on an area formed by the N session messages;
the processor 380 is specifically configured to: and generating the screenshot to be shared according to the N session messages and the target watermark layer.
Optionally, the processor 380 is further configured to perform the following steps:
acquiring a watermark setting instruction;
displaying a watermark drawing interface according to the watermark setting instruction;
receiving a watermark drawing instruction through the watermark drawing interface;
and generating a self-defined watermark image according to the watermark drawing instruction.
Optionally, the processor 380 is further configured to perform the following steps:
receiving a screenshot sharing instruction;
according to the screenshot sharing instruction, Q users to be shared are selected from a user cluster, wherein the user cluster comprises K users, the Q users to be shared belong to the user cluster, K is an integer larger than 1, and Q is an integer larger than or equal to 1 and smaller than or equal to K;
and sending the screenshot to be shared to a client corresponding to each user to be shared in the Q users to enable the client to display the screenshot to be shared.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A screenshot generation method is applied to instant messaging application and comprises the following steps:
obtaining a message selection instruction through the instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relationship, and N is an integer greater than or equal to 1;
acquiring N session messages from a session message set according to the N message identifications carried in the message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N; the message identification is represented by a numeric string or a character string;
acquiring a message extracting instruction, wherein the message extracting instruction carries P message identifiers, and P is an integer which is greater than or equal to 1 and less than N;
removing P session messages from the N session messages according to the P message identifications carried by the message extracting instruction to obtain N-P session messages;
and generating a screenshot to be shared according to the N-P session messages.
2. The method of claim 1, wherein the obtaining of the message selection instruction by the instant messaging application comprises:
acquiring N selection instructions through the instant messaging application, wherein each selection instruction carries a message identifier;
the acquiring N session messages from a session message set according to the N message identifiers carried in the message selection instruction includes:
and acquiring the N session messages from the session message set according to the message identifier carried by each selection instruction in the N selection instructions.
3. The method of claim 1, wherein the obtaining of the message selection instruction by the instant messaging application comprises:
obtaining a first selection instruction through the instant messaging application, wherein the first selection instruction carries a message identifier of a first session message, and the first session message belongs to one message in the session message set;
acquiring a second selection instruction through the instant messaging application, wherein the second selection instruction carries a message identifier of a second session message, and the second session message belongs to one message in the session message set;
the acquiring N session messages from a session message set according to the N message identifiers carried in the message selection instruction includes:
determining the first session message according to the first selection instruction;
determining the second session message according to the second selection instruction;
and acquiring the N session messages according to the first session message and the second session message, wherein N-2 session messages exist from the 1 st session message to the Nth session message in the N session messages.
4. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring a first hiding instruction;
according to the first hidden instruction, shielding sensitive information corresponding to at least one conversation message in the N conversation messages, wherein the sensitive information comprises at least one item of a user head portrait and a keyword;
the shielding processing of the sensitive information corresponding to at least one of the N session messages includes:
if the sensitive information is the user head portrait, shielding the user head portrait to obtain a first shielding result;
if the sensitive information is the keyword, shielding the keyword to obtain a first shielding result;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the first shielding processing result.
5. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring a second hiding instruction;
according to the second hiding instruction, carrying out shielding processing on the session titles corresponding to the N session messages to obtain a second shielding processing result;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the second shielding processing result.
6. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring a third hiding instruction;
according to the third hiding instruction, shielding the user name corresponding to each session message in the N session messages to obtain a third shielding result;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the third shielding processing result.
7. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring a fourth hidden instruction;
shielding the device information according to the fourth hidden instruction to obtain a fourth shielding result, wherein the device information includes at least one of time information, operator information, and signal strength information;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the fourth shielding processing result.
8. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
obtaining semantic information corresponding to each session message in the N session messages, wherein the N session messages comprise at least one of text information and voice information;
generating an information shielding rule according to the semantic information corresponding to each session message;
shielding the session messages meeting the information shielding rule in the N session messages to obtain a fifth shielding result;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the fifth shielding processing result.
9. The method according to any one of claims 1 to 3, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring an information hiding instruction;
according to the information hiding instruction, carrying out shielding processing on sensitive information, a user name, session titles and equipment information corresponding to each session message in the N session messages to obtain a shielding processing result, wherein the equipment information comprises at least one item of time information, operator information and signal strength information;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the shielding processing result.
10. The method of claim 1, wherein before generating the screenshot to be shared from the N-P session messages, the method further comprises:
acquiring a watermark adding instruction, wherein the watermark adding instruction carries an identifier of target watermark information;
according to the watermark adding instruction, covering a target watermark layer corresponding to the target watermark information on an area formed by the N session messages;
the generating of the screenshot to be shared according to the N-P session messages comprises:
and generating the screenshot to be shared according to the N-P session messages and the target watermark layer.
11. The method of claim 10, wherein prior to obtaining the watermarking instruction, the method further comprises:
acquiring a watermark setting instruction;
displaying a watermark drawing interface according to the watermark setting instruction;
receiving a watermark drawing instruction through the watermark drawing interface;
and generating a self-defined watermark image according to the watermark drawing instruction.
12. The method according to claim 1, wherein after generating the screenshot to be shared according to the N-P session messages, the method further comprises:
receiving a screenshot sharing instruction;
according to the screenshot sharing instruction, Q users to be shared are selected from a user cluster, wherein the user cluster comprises K users, the Q users to be shared belong to the user cluster, K is an integer larger than 1, and Q is an integer larger than or equal to 1 and smaller than or equal to K;
and sending the screenshot to be shared to a client corresponding to each user to be shared in the Q users to enable the client to display the screenshot to be shared.
13. A screenshot generating device is applied to instant messaging applications, and comprises:
an obtaining unit, configured to obtain a message selection instruction through the instant messaging application, where the message selection instruction carries N message identifiers, the message identifiers have a corresponding relationship with a session message, and N is an integer greater than or equal to 1;
the acquiring unit is further configured to acquire N session messages from a session message set according to the N message identifiers carried in the message selection instruction acquired by the acquiring unit, where the session message set includes M session messages, and M is an integer greater than or equal to N; the message identification is represented by a numeric string or a character string;
the obtaining unit is further configured to obtain a message extracting instruction, where the message extracting instruction carries P message identifiers, and P is an integer greater than or equal to 1 and smaller than N;
a removing unit, configured to remove P session messages from the N session messages according to the P message identifiers carried by the message extracting instruction obtained by the obtaining unit, so as to obtain N-P session messages;
and the generating unit is used for generating the screenshot to be shared according to the N-P session messages.
14. A terminal device, comprising: a memory, a transceiver, a processor, and a bus system;
wherein the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
obtaining a message selection instruction through an instant messaging application, wherein the message selection instruction carries N message identifiers, the message identifiers and a session message have a corresponding relationship, and N is an integer greater than or equal to 1;
acquiring N session messages from a session message set according to the N message identifications carried in the message selection instruction, wherein the session message set comprises M session messages, and M is an integer greater than or equal to N; the message identification is represented by a numeric string or a character string;
acquiring a message extracting instruction, wherein the message extracting instruction carries P message identifiers, and P is an integer which is greater than or equal to 1 and less than N;
removing P session messages from the N session messages according to the P message identifications carried by the message extracting instruction to obtain N-P session messages;
generating a screenshot to be shared according to the N-P session messages;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
15. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 12.
CN201910697038.1A 2019-07-30 2019-07-30 Screenshot generating method and related device Active CN112306590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910697038.1A CN112306590B (en) 2019-07-30 2019-07-30 Screenshot generating method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910697038.1A CN112306590B (en) 2019-07-30 2019-07-30 Screenshot generating method and related device

Publications (2)

Publication Number Publication Date
CN112306590A CN112306590A (en) 2021-02-02
CN112306590B true CN112306590B (en) 2022-04-26

Family

ID=74486088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910697038.1A Active CN112306590B (en) 2019-07-30 2019-07-30 Screenshot generating method and related device

Country Status (1)

Country Link
CN (1) CN112306590B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374451A (en) * 2021-05-19 2022-11-22 腾讯科技(深圳)有限公司 Message processing method, device, equipment and computer readable storage medium
CN113763512A (en) * 2021-09-10 2021-12-07 维沃移动通信有限公司 Method and device for processing screen shot image and electronic equipment
CN113726584A (en) * 2021-09-24 2021-11-30 维沃移动通信有限公司 Message sending method and device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017128254A1 (en) * 2016-01-28 2017-08-03 吕璇 Picture processing method and smart mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022621A (en) * 2014-04-28 2015-11-04 腾讯科技(深圳)有限公司 Method and device for collecting session message and terminal
CN105872810B (en) * 2016-05-26 2019-05-03 网易传媒科技(北京)有限公司 A kind of media content sharing method and device
CN107145795B (en) * 2017-04-28 2020-08-18 Oppo广东移动通信有限公司 Screenshot method and device and computer equipment
CN107145800A (en) * 2017-05-31 2017-09-08 北京小米移动软件有限公司 Method for protecting privacy and device, terminal and storage medium
CN109828810A (en) * 2018-12-28 2019-05-31 北京达佳互联信息技术有限公司 Screen shots intercept method, watermark adding method, device, equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017128254A1 (en) * 2016-01-28 2017-08-03 吕璇 Picture processing method and smart mobile terminal

Also Published As

Publication number Publication date
CN112306590A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US8711102B2 (en) Graphical communication user interface with graphical position user input mechanism for selecting a display image
US20200042148A1 (en) Screen capturing method and terminal, and screenshot reading method and terminal
CN106909855B (en) File hiding method and device
CN109145142B (en) Management method and terminal for shared information of pictures
CN102780653B (en) Quick method, client and the system communicated in instant messaging
CN112306590B (en) Screenshot generating method and related device
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
CA2731745A1 (en) Contact objects
CN113300938B (en) Message sending method and device and electronic equipment
CN102437970B (en) The method of data acquisition in a kind of instant messaging and client
CN110662090B (en) Video processing method and system
CN110366027B (en) Video management method and terminal equipment
CN103336657B (en) Unlocking screen method and communication terminal
CN107645598B (en) Message display method and electronic equipment
KR20140142579A (en) Method for controlling group chatting in portable device and portable device thereof
CN106470110A (en) Method and device to the multiple user's pocket transmission news in user list
CN106445521A (en) Method and terminal for displaying messages
CN110209332A (en) A kind of information processing method and terminal device
CN113504859A (en) Transmission method and device
CN114691277A (en) Application program processing method, intelligent terminal and storage medium
CN111104380A (en) Application file management method and device, mobile terminal and storage medium
CN112131438A (en) Information generation method, information display method and device
CN108733772A (en) A kind of file delet method and terminal device
CN112333337B (en) Message checking method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038856

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant