CN111614544A - Message processing method and electronic equipment - Google Patents

Message processing method and electronic equipment Download PDF

Info

Publication number
CN111614544A
CN111614544A CN202010312869.5A CN202010312869A CN111614544A CN 111614544 A CN111614544 A CN 111614544A CN 202010312869 A CN202010312869 A CN 202010312869A CN 111614544 A CN111614544 A CN 111614544A
Authority
CN
China
Prior art keywords
messages
message
condition
target object
processing
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.)
Granted
Application number
CN202010312869.5A
Other languages
Chinese (zh)
Other versions
CN111614544B (en
Inventor
杨志超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010312869.5A priority Critical patent/CN111614544B/en
Publication of CN111614544A publication Critical patent/CN111614544A/en
Application granted granted Critical
Publication of CN111614544B publication Critical patent/CN111614544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • 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]

Abstract

The embodiment of the invention discloses a message processing method and electronic equipment. The method comprises the following steps: under the condition of receiving N repeated first messages, detecting the number of target objects for sending the N first messages; processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; and processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value.

Description

Message processing method and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a message processing method and an electronic device.
Background
In the current era of developed information, most of the communication of people is through online social software, and users often receive a large amount of continuously sent repeated messages, so that the users not only frequently receive chat message push in a short time, but also miss some important information because the repeated messages occupy a large area of a chat interface, or are influenced by some boring and meaningless messages, including text messages, facial expression messages such as facial expression packages, voice messages and the like.
Currently, in common social software, a method for processing a message, such as deleting a message, is generally provided, and a user can manually delete a received message. The user can only delete the received message manually for a while, when the user is swiped by various messages, the deleting workload is very large, and the user cannot really avoid receiving meaningless messages after the deleting operation occurs after the receiving. Therefore, a bad experience is brought to the user.
Disclosure of Invention
The embodiment of the invention provides a message processing method, which aims to solve the problem that in the prior art, different processing is not carried out on repeated messages sent by different people in a group, so that user experience is influenced.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a message processing method, where the method includes:
under the condition of receiving N repeated first messages, detecting the number of target objects for sending the N first messages;
processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value;
wherein N is a positive integer greater than 1.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting the number of target objects for sending N repeated first messages under the condition of receiving the N repeated first messages;
the first processing module is used for processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; and the number of the first and second groups,
the second processing module is used for processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value;
wherein N is a positive integer greater than 1.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the message processing method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the message processing method according to the first aspect.
In the embodiment of the invention, under the condition of receiving N repeated messages, the number of the objects for sending the N repeated messages can be detected, and the messages are processed differently according to the difference of the number of the objects for sending the messages, so that the use experience of a user in chatting is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention.
Fig. 2 is a schematic view of a chat interface according to a first embodiment of the present invention.
Fig. 3 is a schematic view of a chat interface according to a second embodiment of the present invention.
Fig. 4 is a schematic view of a chat interface according to a third embodiment of the present invention.
Fig. 5 is a schematic view of a chat interface according to a fourth embodiment of the present invention.
Fig. 6 is a schematic view of a chat interface according to a fifth embodiment of the present invention.
Fig. 7 is a schematic view of a chat interface according to a sixth embodiment of the present invention.
Fig. 8 is a schematic view of a chat interface according to a seventh embodiment of the invention.
Fig. 9 is a message diagram according to an embodiment of the present invention.
Fig. 10 is a schematic diagram of a chat interface in the eighth embodiment of the invention corresponding to fig. 9.
Fig. 11 is a schematic view of a chat interface according to a ninth embodiment of the present invention.
Fig. 12 is a block diagram of an electronic device according to an embodiment of the present invention.
Fig. 13 is a block diagram of a hardware configuration of an electronic device implementing various embodiments of the invention.
Fig. 14 is a block diagram showing a hardware configuration of an electronic device implementing the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In one embodiment of the present invention, a message processing method is provided, which may be implemented by an electronic device, and the electronic device may be a mobile terminal device.
As shown in fig. 1, the message processing method according to the embodiment of the present invention includes the following steps:
step S1100, detecting the number of target objects that send N pieces of first messages when N pieces of repeated first messages are received, where N is a positive integer.
The first message may be a chat message sent through online social software of the electronic device, and the first message may include at least one of a text message, a voice message, and a picture message.
The target object may be an object to which the above first message is transmitted, and may include a different number of target objects according to a chat mode, for example, in the case of the first chat mode in which the chat mode is a one-to-one personal chat, the number of target objects may be only 1; for another example, in the case where the chat mode is the second chat mode of one-to-many group chat, the number of target objects is a positive integer greater than 1.
Step S1200, under the condition that the number of the target objects is larger than the threshold value, processing N first messages in a first mode; and processing the N first messages in a second mode under the condition that the number of the target objects is less than or equal to the threshold value.
It is understood that the first message processing is to filter the repeated messages, i.e. part of the messages is not displayed on the interface or hidden in the retractable control, and the messages are displayed when the user expansion input is received, or directly deleted, and another part of the messages can be displayed on the interface.
The above threshold may be a value set according to a specific application scenario and a specific application requirement, for example, the threshold may be set to 5, that is, in a case that the number of the target objects is greater than 5, the N first messages are processed in a first manner, and conversely, the N first messages are processed in a second manner.
In an optional embodiment, in the case that the number of target objects in the step S1200 is greater than the threshold, processing the N first messages in the first manner may further include: and displaying the M first messages under the condition that the number of times of receiving the first messages exceeds a first threshold value.
The first threshold may be a maximum number of occurrences of the first message of the same content within a predetermined time period, which may be set by the user according to the user's personal preferences. The first threshold may be a constant set according to a specific application scenario and specific application requirements, and the first threshold may be associated with M, for example, the first threshold may be 3, i.e., the first message may only appear 3 times at most within a predetermined time period. Taking the first message sent repeatedly as "hello", if 5 repeated "hello" messages are received within 10 minutes, only 3 times of display to the corresponding interface is allowed at most.
M is a positive integer and M is smaller than N, and for example, only the first M messages may be displayed, only the second M messages may be displayed, or only any M messages among the N messages may be displayed. M may be a number preset by a user, or a numerical value automatically recognized when there are multiple message types, for example, if it is detected that there are three types of message inputs, i.e., text, picture, and voice, then M may be 3; and for example, if only a text message is detected, then M is 1.
Illustratively, fig. 2 shows a schematic view of a chat interface for processing N first messages in a first manner in the case that the number of target objects is greater than a threshold value.
In the schematic view of the chat interface shown in fig. 2, if the first threshold is set to 3 and the target object is set to 2, in the chat scenario, the number of target objects sending the repeat message is 4, and all the objects 62 to 68 are the same emoticon message, so the number of repeat messages exceeds the first threshold. Fig. 2(a) is a normal display interface of a chat message sent by a user in a group chat mode to receive the group chat message from other members, for example, the member A, B, C, D, before performing the message processing operation according to the embodiment of the present invention, where the chat interface is only used for clearly describing the technical solution of the present invention and is used as a comparison, and in the embodiment of the present invention, the chat message of the actually received group chat member is not displayed on the chat interface according to the embodiment of the present invention as shown in fig. 2 (a). As shown in fig. 2(a), member a of the group chat actually sends two emoji messages 62 at intervals, member C sends one emoji message 64 identical to member a, member B then sends one emoji message 66 identical to member A, C, and finally member D sends one emoji message 68 identical to member A, B, C. Since the group chat has a membership greater than the threshold 2 and the number of received repeated first messages is greater than the first threshold 3. The emotion messages 62 to 68 are first messages sent repeatedly, and in this step 1200, the first emotion message 62 sent by the member a, the second emotion message 64 sent by the member C, and the third emotion message 62 sent by the member a are normally displayed and are not filtered out. And the messages 66 sent by the member B and the messages 68 sent by the member D which are received later are filtered due to the fact that the first threshold value is exceeded for 3 times, the messages are not displayed on the chat interface of the group chat of the users, and only the emotive messages sent by all other users for the first 3 times are displayed. As shown in fig. 2(b), the first unfiltered message 62 with the same content sent by member a is displayed on the corresponding group chat interface, and the second and third unfiltered messages with the same content sent by member C and member a are hidden. As shown in fig. 2(c), the hidden message is collapsed and the user can manually click to expand.
In another optional embodiment, in the case that the number of target objects in step S1200 is less than or equal to the threshold, processing the N first messages in the second manner may further include: and displaying P messages in the first messages sent by the first target object under the condition that the received number of times of the first messages sent by the first target object exceeds a second threshold value.
The target objects at least comprise a first target object, and the first target object can repeatedly send Q first messages, wherein Q is a positive integer and is less than N. It is to be understood that, in the case where the target object includes only the first target object, the chat mode thereof is a first chat mode of one-to-one personal chat; in the case where the target object includes other target objects than the first target object, the chat mode thereof is a second chat mode of one-to-many group chatting.
P is a positive integer and P is smaller than Q, P may be a constant according to the specific application scenario and the specific application requirements, for example, P may be 2, i.e. only 2 messages of the first messages sent by the first target object are displayed. Taking the repeatedly sent first message as "hello", if the first target object is received and the "hello" message is sent 5 times repeatedly, only 2 times of display to the corresponding interface is allowed at most.
Illustratively, fig. 3 to 7 show schematic views of a chat interface for processing N first messages in a second manner in the case that the number of target objects is less than or equal to the threshold value.
In the schematic view of the chat interface in the first chat mode shown in fig. 3, when the number of times of sending the first message by the first target object exceeds the second threshold, for example, exceeds 2 times, a description will be given of a process in which the first message is a text message.
Fig. 3(a) is a normal display interface of a chat message received by a user, such as a chat message sent by a B-buddy (single member), where the target object and the first target object are both a user B and the chat interface is only used to clearly describe the technical solution of the present invention and is used as a comparison, before the message processing operation of the embodiment of the present invention is performed, and the chat message of the actually received B-buddy is not displayed on the chat interface of the embodiment of the present invention. As shown in fig. 3(a), the friend B actually sends a text message "hello" 12, three text messages "has eaten" 14, and a text message "know nothing" 16 in succession. If the second threshold is 2, in this example, the text message "has eaten" 14 repeatedly sent by buddy B exceeds second threshold 2, then only the previous 2 (P is 2) text message "has eaten" 14 is displayed. The text message "hello" 12 and the text message "are peculiar to me" 16, and therefore are normally displayed on the chat interface of the user, since neither of them exceeds the second threshold 2. As shown in fig. 3 (b). That is, when the number of times of the text message repeatedly sent by the first target object B exceeds the second threshold, the subsequent continuous same utterance will be shielded.
In the schematic view of the chat interface in the first chat mode shown in fig. 4, when the number of times of sending the first message by the first target object exceeds the second threshold, for example, exceeds 2 times, the process that the first message is the emotive message will be described.
Fig. 4(a) is a normal display interface of a chat message received by a user, such as a chat message sent by a B-buddy (single member), where the target object and the first target object are both a user B and the chat interface is only used to clearly describe the technical solution of the present invention and is used as a comparison, before the message processing operation of the embodiment of the present invention is performed, and the chat message of the actually received B-buddy is not displayed on the chat interface of the embodiment of the present invention. As shown in fig. 4(a), the B buddy actually continuously transmits one emoji message 22, three emoji messages 24, and one emoji message 26. In this example, if the emotive message 24 repeatedly sent by the B-buddy exceeds the second threshold 2, only the first 2 emotive messages 24 are displayed. And emoji messages 22 and 26 would normally be displayed on the user's chat interface because they do not exceed the second threshold 2. As shown in fig. 4 (b). That is, when the number of times of the emotive message repeatedly sent by the first target object B exceeds the second threshold, the subsequent continuous same utterance is masked.
In one embodiment, in case that the N repeated first messages include a voice message, it may be a text message that converts the voice message into a text message corresponding to the voice message.
In the schematic view of the chat interface in the first chat mode shown in fig. 5, when the number of times of sending the first message by the first target object exceeds the second threshold, for example, exceeds 2 times, a process in which the first message is a voice message will be described.
Fig. 5(a) is a normal display interface of a chat message received by a user, such as a chat message sent by a B-buddy (single member), where the target object and the first target object are both a user B and the chat interface is only used to clearly describe the technical solution of the present invention and is used as a comparison, before the message processing operation of the embodiment of the present invention is performed, and the chat message of the actually received B-buddy is not displayed on the chat interface of the embodiment of the present invention. As shown in fig. 5(a), the B friend actually sends a voice message "hello" 32, three voice messages "has eaten" 34, and a voice message "know nothing" 36 in succession. In fig. 5(a), for the received voice message, the system translation result of the corresponding voice message is shown in parentheses, and the actual chat interface is not displayed. In this example, the voice message 34 repeatedly sent by the B-buddy exceeds the second threshold 2, only the previous 2 voice messages 34 are displayed. Voice message 32 and voice message 36 would normally be displayed on the user's chat interface because they do not exceed the second threshold 2. As shown in fig. 5(b), that is, when the number of times of the voice message repeatedly sent by the first target object exceeds the second threshold, the subsequent continuous same utterance will be masked.
In the embodiment of the present invention shown in fig. 5, the voice message is first translated into a text message (the system translation result is shown in parentheses, and is not actually shown) according to the existing voice recognition technology, and then the comparison is performed.
In the schematic view of the chat interface of the first chat mode shown in fig. 6, the first message repeatedly sent to the first target object includes a combination of a voice message and a text message, and is processed, for example, the second threshold is set to 2 times.
Fig. 6(a) is a normal display interface of chat messages sent by, for example, a B-buddy, received by a user before performing a message processing operation according to an embodiment of the present invention, where the chat interface is used for clearly describing the technical solution of the present invention and is used for comparison. As shown in fig. 6(a), buddy B actually continuously sends a voice message "hello" 42; two voice messages "did a meal" 44 and one text message "did a meal" 44, wherein the voice content corresponding to the two voice messages 44 is the same as the text message 44; a voice message "tie me nothing" 46. The message sending sequence is shown in the figure. In fig. 6(a), for the received voice message, the system translation result of the corresponding voice message is shown in parentheses, and the actual chat interface is not displayed. In this example, the voice message "has eaten" 44 and the text message "has eaten" 44 appear to have the same meaning, are considered to be three repeated first messages, and therefore the number of occurrences exceeds the second threshold 2, and only the first voice message "has eaten" 44 and the first text message "has eaten" 44 of the same content of the previous 2 times are displayed. As described above, likewise, if the number of occurrences of the voice message 42 and the voice message 46 does not exceed the second threshold 2, they are normally displayed on the chat interface of the user, as shown in fig. 6 (b).
In the embodiment of the present invention shown in fig. 6, the voice message is first translated into a text message (the system translation result is shown in parentheses, and is not actually shown) according to the existing voice recognition technology, and then the comparison is performed.
In this embodiment, the number of occurrences of the first message repeatedly transmitted is accumulated based on the combination of the text message and the voice message converted into the text message.
In the schematic view of the chat interface of the second chat mode shown in fig. 7, when the number of target objects for sending N repeated first messages is less than or equal to a threshold value, for example, less than or equal to 5 people, and the number of times of sending the first message by the first target object exceeds a second threshold value, for example, exceeds 2 times, the process that the first message is a voice message is explained.
Fig. 7(a) is a normal display interface of a user receiving a chat message sent by another member of the group chat, for example, the first target object, for example, the member A, B, C, in the second chat mode in which the chat mode is one-to-many group chat before the message processing operation of the embodiment of the present invention is performed, where the chat interface is used for clearly describing the technical solution of the present invention and is used as a comparison. As shown in fig. 7(a), member a of the group chat actually sends three emotive messages 52 in succession, member B sends one emotive message 54 identical to member a, and member C sends one emotive message 56 identical to member A, B.
In this example, member a sends an emoji message 52 that exceeds the second threshold of 2, only the first 2 emoji messages 52 are displayed. And the emotive messages 54 and 56 of member B and member C would normally be displayed on the chat interface of the user because they do not exceed the second threshold 2.
In this embodiment, when receiving N repeated messages, it can detect the number of objects sending the N repeated messages, and perform different processing on the messages according to the difference in the number of objects sending the messages, thereby improving the use experience of the user in chatting.
In an embodiment of the present invention, there is also provided a message processing method, including:
and under the condition that the received first message is the emotion message, replacing the emotion message.
The replacement mode comprises a first replacement mode and a second replacement mode; under the condition that the received message replacement mode is the first replacement mode, replacing the first message according to the user-defined set expression message, and displaying the first message on a corresponding interface; and under the condition that the alternative mode of receiving the message is the second alternative mode, replacing the first message according to the similar expression message corresponding to the message, and displaying the first message on the corresponding interface.
In this embodiment, when a certain emoticon message is received for the first time, the emoticon replacement configuration is set thereto. The first alternative mode is a user-defined mode, namely, the user-defined emotion messages in the emotion message library stored or acquired by the user can be set to replace the emotion messages which are received subsequently and are the same as the emotion messages. The second replacement model is a system intelligent mode, namely the system can be set to automatically carry out intelligent replacement of the similar messages according to an expression message library preset by the system. Next, description will be made with reference to an example of fig. 8.
As shown in the schematic view of the chat interface shown in fig. 8, in this example, the emotive messages in the group chat mode are replaced by replacing emotive messages in the personal chat, which is the same as above, and is not described again here.
Fig. 8(a) is a normal display interface of chat messages received by a user, for example, sent by a B-friend before performing expression message replacement operation according to an embodiment of the present invention, where the chat interface is used for clearly describing the technical solution of the present invention and is used for comparison. As shown in fig. 8(a), the B buddy actually sends an emotive message 72. And under the condition that the corresponding replacement information exists in the emotion message 72 and the emotion is replaced according to the first replacement mode, replacing the emotion message 72 with the emotion message according to the emotion message set by the user. And under the condition that the corresponding replacement information exists in the emotion message 72 and the emotion is replaced according to the second replacement mode, replacing the emotion message 72 with an emotion message according to the emotion message preset by the system. For example, as shown in fig. 8(b), the emotive message 72 displayed on the chat interface after replacement is an emotive message 72'.
Of course, fig. 8(b) is only an example of 72', and the emotive messages of the first alternative mode and the second alternative mode may be completely different.
The method can replace the designated emoticon message according to user setting or system setting, and can replace a malicious emoticon with the same content received next time into a good emoticon. When a specific crowd, such as children, use the mobile phone, the expression message replacement can also avoid the children from seeing the expression bag which is not suitable for the children.
In an embodiment of the present invention, there is also provided a message processing method, including:
and under the condition that the N repeated first messages are picture messages, identifying character information in the picture messages, converting the character information into character information corresponding to the picture messages, and displaying the character information on a corresponding interface.
When a picture message, such as an emoticon message, is received, a text may be extracted from the emoticon message using an OCR (Optical character recognition) technique and displayed on a screen. For a dynamic picture message, such as a dynamic emoticon message, the key frames of the dynamic picture message can be further analyzed, and the text in each key frame can be extracted.
In this embodiment, the text of the picture message may be extracted by setting. As described above, for receiving the picture message with the text, the text in the received picture message is identified. A schematic diagram of a chat interface is shown in fig. 9.
In the example of fig. 9, the received message is three key frames of a dynamic emoticon. Fig. 9 is a normal display interface of a chat message received by a user, for example, sent by a C friend, before performing text recognition according to an embodiment of the present invention, where the chat interface is used for clearly describing the technical solution of the present invention and is used for comparison, in an embodiment of the present invention, a chat message of an actually received C friend is not displayed on the chat interface according to the embodiment of the present invention, and fig. 10 is a schematic view of the chat interface according to the embodiment corresponding to fig. 9.
As shown in fig. 10, the emoticon message is extracted according to the system setting by receiving the emoticon message with characters, and the characters 82 extracted from the dynamic emoticon message are displayed on the chat interface of the user.
Through the character extraction mode of the emotion message, the effect of shielding and filtering the emotion packets can be realized, but the message and the expression meaning of the other party cannot be ignored.
In an embodiment of the present invention, there is also provided a message processing method, including:
and in the case that the first message is a message with specific content, replacing the first message according to the similar message corresponding to the first message and displaying the first message on the corresponding interface.
In this embodiment, a message with specific content may be replaced by setting, as described above, for example, violation information (blood smell, temperament, visceral language, etc.), bad content, sensitive words, etc. are received, and any received message is replaced according to a corresponding replacement configuration, such as the schematic view of the chat interface shown in fig. 11.
Fig. 11(a) is a normal display interface of a chat message received by a user, for example, sent by a friend a, before a specific message replacement operation according to an embodiment of the present invention is not performed, where the chat interface is only used for clearly describing the technical solution of the present invention and is used for comparison. As shown in fig. 11(b), friend a sends emotive message 92 with sensitive words and emotive message 94 with violation information, and in case that the received message is recognized by OCR technology to have specific content, according to the system configuration, a similar message is selected from a preset emotive package library to replace the message. The replaced messages 92 ', 94' are shown in fig. 11 (b).
The replaced message can be a text message or an expression message, automatic detection and replacement are performed through system setting, physical and psychological damage to specific people due to the fact that the received message carries bad information can be avoided, and therefore use experience of a user is further effectively improved.
In another embodiment of the present invention, an electronic device 2000 is provided, as shown in fig. 12, which is a block diagram illustrating a structure of an electronic device according to an embodiment of the present invention.
As shown, the electronic device 2000 of the embodiment of the present invention includes: a detection module 2200, a first processing module 2400, and a second processing module 2600.
A detecting module 2200, configured to detect, when N repeated first messages are received, the number of target objects that send the N first messages;
a first processing module 2400, configured to process, in a first manner, N pieces of the first messages when the number of the target objects is greater than a threshold; and the number of the first and second groups,
a second processing module 2600, configured to, if the number of target objects is less than or equal to a threshold, process N first messages in a second manner;
wherein N is a positive integer greater than 1.
In one embodiment, the first processing module 2400 is further configured to display M first messages when the number of times of receiving the first message exceeds a first threshold.
Wherein M is a positive integer and M is less than N. .
In one embodiment, the second processing module 2600 is further configured to display P pieces of the first message sent by the first target object if the number of times of receiving the first message sent by the first target object exceeds a second threshold.
The target object comprises a first target object, and the first target object sends Q pieces of the first messages.
Wherein P and Q are both positive integers, P is less than Q, and Q is less than or equal to N.
In one embodiment, the first message comprises at least one type of message among a text message, a voice message, and a picture message.
In one embodiment, the electronic device further comprises a conversion module (not shown in the figures) for: in the case that the N repeated first messages comprise voice messages, converting the voice messages into text messages corresponding to the voice messages; or, in the case that the N repeated first messages include a picture message, recognizing text information in the picture message, and converting into a text message corresponding to the picture message.
The electronic device provided by the embodiment of the invention can detect the number of the objects sending the N repeated messages under the condition of receiving the N repeated messages, and can perform different processing on the messages according to the difference of the number of the objects sending the messages, thereby improving the use experience of users in chatting.
FIG. 13 is a block diagram of a hardware configuration of an electronic device implementing various embodiments of the invention;
the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, and the like.
The processor 110 may be configured to: under the condition of receiving N repeated first messages, detecting the number of target objects for sending the N first messages; processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; and processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value.
In this embodiment, the processor 110 can detect the number of objects sending the N repeated messages under the condition that the processor can receive the N repeated messages, and perform different processing on the messages according to the difference of the number of the objects sending the messages, so as to improve the use experience of the user in the chat.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. X, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
An electronic device 100 is further provided in the embodiment of the present invention, and fig. 14 is a block diagram of a hardware structure of the electronic device in the embodiment of the present invention.
As shown in fig. 14, the electronic device 100 may include a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110, the computer program implements each process of any one of the embodiments of the message processing method described above, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the message processing method according to any of the above embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method of message processing, the method comprising:
under the condition of receiving N repeated first messages, detecting the number of target objects for sending the N first messages;
processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; or processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value;
wherein N is a positive integer greater than 1.
2. The method of claim 1, wherein the processing the N first messages in the first manner comprises:
displaying M first messages under the condition that the number of times of receiving the first messages exceeds a first threshold value;
wherein M is a positive integer and M is less than N.
3. The method of claim 1, wherein the processing the N first messages in the second manner comprises:
under the condition that the number of times of the received first messages sent by a first target object exceeds a second threshold value, displaying P pieces of the first messages sent by the first target object;
the target object comprises a first target object, and the first target object sends Q pieces of the first messages;
wherein P and Q are both positive integers, P is less than Q, and Q is less than or equal to N.
4. The method of claim 1, wherein the first message comprises at least one of a text message, a voice message, and a picture message.
5. The method of claim 1, further comprising:
in the case that the N repeated first messages comprise voice messages, converting the voice messages into text messages corresponding to the voice messages;
or, in the case that the N repeated first messages include a picture message, recognizing text information in the picture message, and converting into a text message corresponding to the picture message.
6. An electronic device, comprising:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting the number of target objects for sending N repeated first messages under the condition of receiving the N repeated first messages;
the first processing module is used for processing the N first messages in a first mode under the condition that the number of the target objects is larger than a threshold value; and the number of the first and second groups,
the second processing module is used for processing the N first messages in a second mode under the condition that the number of the target objects is smaller than or equal to a threshold value;
wherein N is a positive integer greater than 1.
7. The electronic device of claim 6, wherein the first processing module is further configured to:
displaying M first messages under the condition that the number of received first messages exceeds a first threshold value;
wherein M is a positive integer and M is less than N.
8. The electronic device of claim 6, wherein the second processing module is further configured to:
under the condition that the number of times of the received first messages sent by a first target object exceeds a second threshold value, displaying P pieces of the first messages sent by the first target object;
the target object comprises a first target object, and the first target object sends Q pieces of the first messages;
wherein P and Q are both positive integers, P is less than Q, and Q is less than or equal to N.
9. The electronic device of claim 6, wherein the first message comprises at least one of a text message, a voice message, and a picture message.
10. The electronic device of claim 6, further comprising a conversion module,
the conversion module is used for converting the voice message into a text message corresponding to the voice message under the condition that the N repeated first messages comprise the voice message;
or, in the case that the N repeated first messages include a picture message, recognizing text information in the picture message, and converting into a text message corresponding to the picture message.
CN202010312869.5A 2020-04-20 2020-04-20 Message processing method and electronic equipment Active CN111614544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312869.5A CN111614544B (en) 2020-04-20 2020-04-20 Message processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312869.5A CN111614544B (en) 2020-04-20 2020-04-20 Message processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111614544A true CN111614544A (en) 2020-09-01
CN111614544B CN111614544B (en) 2022-03-25

Family

ID=72204655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312869.5A Active CN111614544B (en) 2020-04-20 2020-04-20 Message processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111614544B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860213A (en) * 2021-03-09 2021-05-28 腾讯科技(深圳)有限公司 Audio processing method, storage medium and electronic equipment
CN113132122A (en) * 2021-04-16 2021-07-16 网易(杭州)网络有限公司 Group information processing method and device, storage medium and electronic equipment
CN113141296A (en) * 2021-03-26 2021-07-20 维沃移动通信有限公司 Message display method and device and electronic equipment
CN115016683A (en) * 2021-08-13 2022-09-06 北京字跳网络技术有限公司 Information display method, information sending method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530372A (en) * 2015-12-03 2016-04-27 小米科技有限责任公司 Message display method and apparatus and terminal device
CN106533899A (en) * 2016-09-30 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Information display processing method, device and system
CN107577512A (en) * 2017-08-25 2018-01-12 维沃移动通信有限公司 A kind of message display method, mobile terminal and computer-readable recording medium
CN107704613A (en) * 2017-10-23 2018-02-16 深圳市金立通信设备有限公司 A kind of approaches to IM, terminal and computer-readable recording medium
WO2018057203A1 (en) * 2016-09-21 2018-03-29 Microsoft Technology Licensing, Llc Notifications of action items in messages
CN107911283A (en) * 2017-11-20 2018-04-13 珠海市魅族科技有限公司 Message display method and device, computer installation and computer-readable recording medium
CN108881624A (en) * 2018-05-30 2018-11-23 维沃移动通信有限公司 A kind of message display method and terminal device
CN109587031A (en) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 Data processing method
CN110086935A (en) * 2019-04-26 2019-08-02 维沃移动通信有限公司 Message treatment method and mobile terminal
CN110505141A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device, readable medium and the electronic equipment of instant communication information

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530372A (en) * 2015-12-03 2016-04-27 小米科技有限责任公司 Message display method and apparatus and terminal device
WO2018057203A1 (en) * 2016-09-21 2018-03-29 Microsoft Technology Licensing, Llc Notifications of action items in messages
CN106533899A (en) * 2016-09-30 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Information display processing method, device and system
CN107577512A (en) * 2017-08-25 2018-01-12 维沃移动通信有限公司 A kind of message display method, mobile terminal and computer-readable recording medium
CN109587031A (en) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 Data processing method
CN107704613A (en) * 2017-10-23 2018-02-16 深圳市金立通信设备有限公司 A kind of approaches to IM, terminal and computer-readable recording medium
CN107911283A (en) * 2017-11-20 2018-04-13 珠海市魅族科技有限公司 Message display method and device, computer installation and computer-readable recording medium
CN110505141A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device, readable medium and the electronic equipment of instant communication information
CN108881624A (en) * 2018-05-30 2018-11-23 维沃移动通信有限公司 A kind of message display method and terminal device
CN110086935A (en) * 2019-04-26 2019-08-02 维沃移动通信有限公司 Message treatment method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHENGZHOU FU,等: ""Cross-Platform Instant Messaging System"", 《2015 12TH WEB INFORMATION SYSTEM AND APPLICATION CONFERENCE (WISA)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860213A (en) * 2021-03-09 2021-05-28 腾讯科技(深圳)有限公司 Audio processing method, storage medium and electronic equipment
CN112860213B (en) * 2021-03-09 2023-08-25 腾讯科技(深圳)有限公司 Audio processing method and device, storage medium and electronic equipment
CN113141296A (en) * 2021-03-26 2021-07-20 维沃移动通信有限公司 Message display method and device and electronic equipment
CN113132122A (en) * 2021-04-16 2021-07-16 网易(杭州)网络有限公司 Group information processing method and device, storage medium and electronic equipment
CN115016683A (en) * 2021-08-13 2022-09-06 北京字跳网络技术有限公司 Information display method, information sending method and device

Also Published As

Publication number Publication date
CN111614544B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN111343081B (en) Information display method and electronic equipment
CN111614544B (en) Message processing method and electronic equipment
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN108924037B (en) Display method of rich media communication RCS message and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN108494665B (en) Group message display method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN112689201B (en) Barrage information identification method, barrage information display method, server and electronic equipment
CN108616448B (en) Information sharing path recommendation method and mobile terminal
CN108334196B (en) File processing method and mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109412932B (en) Screen capturing method and terminal
CN108600089B (en) Expression image display method and terminal equipment
CN109816759B (en) Expression generating method and device
CN109166164B (en) Expression picture generation method and terminal
CN108765522B (en) Dynamic image generation method and mobile terminal
CN107819936B (en) Short message classification method, mobile terminal and storage medium
CN108520760B (en) Voice signal processing method and terminal
CN112217713B (en) Method and device for displaying message
CN111314206B (en) Information processing method and electronic equipment
CN110213439B (en) Message processing method and terminal
CN109819331B (en) Video call method, device and mobile terminal
CN111158562A (en) False touch prevention method and electronic equipment
CN108319409B (en) Application program control method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant