CN108388403B - Method and terminal for processing message - Google Patents

Method and terminal for processing message Download PDF

Info

Publication number
CN108388403B
CN108388403B CN201810122301.XA CN201810122301A CN108388403B CN 108388403 B CN108388403 B CN 108388403B CN 201810122301 A CN201810122301 A CN 201810122301A CN 108388403 B CN108388403 B CN 108388403B
Authority
CN
China
Prior art keywords
message
user
parameter
physiological characteristic
target object
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
CN201810122301.XA
Other languages
Chinese (zh)
Other versions
CN108388403A (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 CN201810122301.XA priority Critical patent/CN108388403B/en
Publication of CN108388403A publication Critical patent/CN108388403A/en
Application granted granted Critical
Publication of CN108388403B publication Critical patent/CN108388403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0362Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 1D translations or rotations of an operating part of the device, e.g. scroll wheels, sliders, knobs, rollers or belts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/174Facial expression recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The embodiment of the invention provides a method and a terminal for processing a message, which are applied to the technical field of communication and can solve the problems of complicated operation process and time consumption of the conventional message disturbance-free function. The method comprises the following steps: receiving a first input of a user to the first message, wherein the first input is an input of the user for viewing the first message; responding to the first input, acquiring a first physiological characteristic parameter of the user, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, and the physiological characteristic parameter is used for indicating that the emotion of the user is a positive emotion or a negative emotion; and under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, controlling a message non-disturbing function corresponding to a target object to be in an on state in a first time period, wherein the target object is an object interacting with the user for a first message, or a message type to which the first message belongs, or a program for receiving the first message.

Description

Method and terminal for processing message
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a terminal for processing messages.
Background
With the development of communication technology, the intelligent degree of terminals such as mobile phones and tablet computers is continuously improved so as to meet various requirements of users. For example, the user has an increasing need for flexibility in the message do not disturb function of the terminal.
In the prior art, when a user uses a communication application in a terminal, the user may require the terminal to implement a message do not disturb function. Specifically, a chat group in a communication application program of the terminal corresponds to an option of a message disturbance-free function; the user can input the option, so that the terminal does not prompt the user when the chat group receives the message, for example, the prompt information of the message is not displayed, or the prompt voice of the message is not played, and the like, thereby realizing the message disturbance-free function.
The method has the problems that in a scene that the terminal realizes the message disturbance-free function, the user inputs options of the message disturbance-free function corresponding to one or more chat groups respectively, and the terminal can be triggered not to prompt the user when the one or more chat groups receive the message. Therefore, the process of using the message do not disturb function by the terminal is complicated and time-consuming.
Disclosure of Invention
The embodiment of the invention provides a method and a terminal for processing a message, and aims to solve the problems of complex and time-consuming operation process of the conventional message no-disturbance function.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for processing a message, where the method includes: receiving a first input of a user to the first message, wherein the first input is an input of the user for viewing the first message; responding to the first input, acquiring a first physiological characteristic parameter of the user, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, and the physiological characteristic parameter is used for indicating that the emotion of the user is a positive emotion or a negative emotion; and under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, controlling a message non-disturbing function corresponding to a target object to be in an on state in a first time period, wherein the target object is an object interacting with the user for a first message, or a message type to which the first message belongs, or a program for receiving the first message.
In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal includes: the device comprises a receiving module, an obtaining module and a control module; the receiving module is used for receiving a first input of a user to the first message, wherein the first input is an input for the user to view the first message; the acquisition module is used for responding to the first input received by the receiving module, acquiring a first physiological characteristic parameter of the user, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, and the physiological characteristic parameter is used for indicating that the emotion of the user is a positive emotion or a negative emotion; and the control module is used for controlling the message non-disturbing function corresponding to the target object to be in an open state in the first time period under the condition that the first physiological characteristic parameter acquired by the acquisition module indicates that the emotion of the user is a negative emotion, wherein the target object is an object for interacting the first message with the user, or is a message type to which the first message belongs, or is a program for receiving the first message.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for processing a message 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, which, when executed by a processor, implements the steps of the method for processing a message according to the first aspect.
In the embodiment of the invention, in a scene that a user inputs a message displayed by a terminal, the terminal can determine whether the user needs to be prompted when the terminal subsequently receives other messages in a target object of a message object according to the emotion of the user inputting the message, namely, the message non-disturbing function corresponding to the target object is in an on state or an off state. Therefore, the terminal can automatically switch the state of the message no-disturbance function corresponding to the target object according to the requirement of the user, and the user does not need to manually trigger the terminal to switch the state of the message no-disturbance function corresponding to the target object. Therefore, the problems that the operation of the process of using the message disturbance-free function by the terminal is complicated and time-consuming can be solved, and the flexibility of the application of the message disturbance-free function of the terminal is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for processing a message according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a method for processing a message according to an embodiment of the present invention;
fig. 4 is a third schematic flowchart of a method for processing a message according to an embodiment of the present invention;
FIG. 5 is a fourth flowchart illustrating a method for processing a message according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal according to an embodiment of 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.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first message and the second message, etc. are for distinguishing different messages, not for describing a specific order of the messages.
According to the method and the terminal for processing the message, provided by the embodiment of the invention, when the user needs to switch the state (namely the on state or the off state) of the message disturbance-free function, the terminal can automatically switch the state of the message disturbance-free function according to the time period of the preset time duration, and the user does not need to manually set the state to trigger the terminal switching. Therefore, the problems that the operation of the process of using the message disturbance-free function by the terminal is complicated and time-consuming can be solved.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the method for processing a message according to the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application. For example, applications such as a system setup application, a system chat application, and a system camera application. And the third-party setting application, the third-party camera application, the third-party chatting application and other application programs.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for processing a message provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for processing a message may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the method for processing the message provided by the embodiment of the invention by running the software program in the android operating system.
The method for processing a message according to the embodiment of the present invention is described in detail below with reference to the flowchart of the method for processing a message shown in fig. 2. Wherein, although the logical order of the methods of processing messages provided by embodiments of the present invention is shown in a method flow diagram, in some cases, the steps shown or described may be performed in an order different than here. For example, the method of processing a message shown in fig. 2 may include steps 201 to 203:
step 201, a terminal receives a first input of a first message from a user, where the first input is an input of the user to view the first message.
It should be noted that the message provided in the embodiment of the present invention may be a message received by a terminal and sent by another terminal or a server. In addition, the message provided by the embodiment of the present invention may be a message received by a program (e.g., an application program) installed in the terminal.
For example, the message in the communication application (such as a chat application, referred to as a chat application) is a message received when the terminal interacts with another terminal, and the message pushed by the browser application or the shopping application may be a message received when the terminal interacts with the server.
Generally, when a new message is received by the terminal, a prompt message of the message can be displayed on the terminal, and a prompt voice corresponding to the message can be played. Specifically, the terminal may display a prompt message of the message or the message in a notification bar of the terminal, or the terminal may display the message in an interface where an application to which the message belongs is located.
It can be understood that the first input of the first message by the user may be input of a prompt message of the first message displayed in a notification bar of the terminal by the user, or input of the first message displayed in the notification bar of the terminal, or input of the first message displayed in an interface where a program to which the message belongs is located.
Optionally, the first input of the first message by the user may include the user inputting the first message, so that the terminal displays the first message; and the time length of the first message displayed by the terminal is longer than a certain time length. Therefore, the terminal can determine that the user views the first message, and the influence of the input of the first message triggered by the user by mistake on the implementation of the method is avoided.
It should be noted that the terminal provided in the embodiment of the present invention may have a touch screen, and the touch screen may be configured to receive an input from a user and display a content corresponding to the input to the user in response to the input. The first input may be a touch screen input, a fingerprint input, a gravity input, a key input, or the like. The touch screen input is input such as press input, long press input, slide input, click input, hover input (input by a user near the touch screen) of the touch screen of the terminal by the user. The fingerprint input is input by a user to a sliding fingerprint, a long-press fingerprint, a single-click fingerprint, a double-click fingerprint and the like of a fingerprint recognizer of the terminal. The gravity input is input such as shaking of a user in a specific direction of the terminal, shaking of a specific number of times, and the like. The key input corresponds to a single-click input, a double-click input, a long-press input, a combination key input, and the like of the user for a power key, a volume key, a Home key, and the like of the terminal. Specifically, the embodiment of the present invention does not specifically limit the manner of the first input, and may be any realizable manner.
Step 202, responding to the first input, the terminal acquires a first physiological characteristic parameter of the user, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message.
The physiological characteristic parameter provided by the embodiment of the invention is used for indicating that the emotion of the user is a positive emotion or a negative emotion.
For example, the positive emotion may be happiness, excitement, and the like, and the negative emotion may be anger, hurt, and the like, which is not particularly limited in the embodiment of the present invention.
And 203, under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, the terminal controls the message non-disturbing function corresponding to the target object to be in an on state in a first time period.
It can be understood that, when the user inputs (e.g. clicks) a message received by the terminal, if the emotion of the user is a negative emotion such as anger, it indicates that the user needs the terminal to receive another message in the target object of the message again without prompting the user.
The target object is an object for interacting a first message with a user, or a message type to which the first message belongs, or a program for receiving the first message. Wherein messages in one target object may be referred to as messages having a common attribute.
For example, the communication application installed in the terminal generally includes a plurality of chat groups, one chat group may be a target object, and the user may obtain a message in one chat group, such as the first message. Wherein, a chat group can be a chat group of a user and another user, or a chat group of a user and another users, or a chat group of a user and a public number (i.e. a specific user).
Optionally, the communication application may be a target object, and at this time, the first message may be a message in any chat group in the communication application.
Illustratively, the messages received (or pushed) in the browser application or shopping application installed in the terminal may be different types of messages.
For example, the message types of the browser application push message may include an advertisement type and an information type (e.g., news information); in this case, the advertisement type and the information type may be respectively a target object, and the first message may be a message of the advertisement type or the information type pushed by the browser application. For example, the message types of the shopping application push message may include a last new reminder type (new reminder on product), a logistics reminder type, and the like. At this time, the last new reminder type and the logistics reminder type may be respectively a target object, and the first message may be a message of the last new reminder type and the logistics reminder type pushed by the shopping application.
Optionally, the browser application or the shopping application may be a target object, and in this case, the first message may be a message of any message type in the browser application, or the first message may be a message of any message type in the shopping application.
In summary, the target object may be a partial message received by one application installed in the terminal, or a complete message received by one application. The description of the target object in the embodiment of the present invention may include, but is not limited to, the above example of the target object, and may also be other objects that can be implemented, which is not described herein again.
Optionally, an application may provide an object for indicating that the target object is an object in the application, which interacts with the user for the first message, or a message type to which the first message in the application belongs, or an option of the application, so that the user may input the option to indicate the corresponding target object of the terminal.
The terminal can control the message do-not-disturb function corresponding to the target object to be in an open state in a first time period.
In addition, a target object may correspond to identification information for uniquely identifying the target object. For example, when a chat group in the communication application is a target object (denoted as target object 1), the terminal may record identification information corresponding to the target object, such as push _ message _ a (denoted as identification information 1).
Optionally, if the message do-not-disturb function corresponding to the target object in the current terminal is in a closed state, the message do-not-disturb function corresponding to the terminal control target object is in an open state in the first time period, and the message do-not-disturb function corresponding to the terminal control target object may be switched from the closed state to the open state in the first time period.
If the message do-not-disturb function corresponding to the target object in the current terminal is in an on state, the message do-not-disturb function corresponding to the terminal control target object is in an on state in the first time period, and the message do-not-disturb function corresponding to the terminal control target object can be kept in the on state in the first time period.
Optionally, the duration of the first time period may be preset by a terminal, or may be manually set by a user.
It can be understood that, after the message do-not-disturb function corresponding to the terminal control target object is in the on state in the first time period, if the user does not input the message after the first message in the target object in the first time period, the terminal will control the message do-not-disturb function corresponding to the target object to be in the off state after the first time period.
It should be noted that, in a scenario where a user inputs a message displayed on a terminal, the terminal may determine, according to an emotion of the user inputting the message, whether the user needs to be prompted when the terminal subsequently receives another message in a target object of a message object, that is, the message do-not-disturb function corresponding to the target object is in an on state or in an off state. Therefore, the terminal can automatically switch the state of the message no-disturbance function corresponding to the target object according to the requirement of the user, and the user does not need to manually trigger the terminal to switch the state of the message no-disturbance function corresponding to the target object. Therefore, the problems that the operation of the process of using the message disturbance-free function by the terminal is complicated and time-consuming can be further solved, and the flexibility of the application of the message disturbance-free function of the terminal is improved.
In a possible implementation manner, in the method for processing a message according to the embodiment of the present invention, the physiological parameter may be one or more characteristic parameters capable of reflecting an emotion of a user. For example, in the method for processing a message according to the embodiment of the present invention, the physiological parameter of the user may include at least one of a facial expression parameter, a speech parameter (e.g., a intonation parameter), and a pulse parameter.
It should be noted that the terminal may collect the physiological characteristic signal of the user, and process the physiological characteristic signal to obtain the physiological characteristic parameter of the user. Namely, the user terminal can judge the emotion of the user through the physiological characteristics of the user.
Illustratively, the terminal can acquire facial expression characteristic signals of a user through image acquisition equipment such as a camera and the like, and filter, smooth and the like the facial expression characteristic signals to obtain facial expression characteristic parameters of the user; the terminal can acquire the voice characteristic signal of the user through voice acquisition equipment such as a microphone and the like, and filter, smooth and the like the voice characteristic signal to obtain the voice characteristic parameter of the user; the terminal can acquire the pulse characteristic signal of the user through equipment such as wearable equipment connected with the terminal, and the pulse characteristic signal is subjected to filtering, smoothing and other processing to obtain the pulse characteristic parameter of the user.
It should be noted that the embodiment of the present invention does not specifically describe the emotion of the user in mapping the physiological characteristics of the user, and can be implemented by the related technical personnel. In addition, the physiological characteristics corresponding to the physiological characteristic parameters of the user provided by the embodiment of the present invention include, but are not limited to, the examples in the above embodiments, for example, the physiological characteristics such as blood pressure, blood flow and skin temperature of the user may also be used.
Optionally, when the physiological characteristic parameters of the user acquired by the terminal are multiple, the terminal may perform normalization processing (for example, normalization to a value interval of 0 to 100) on the multiple physiological characteristic parameters, and perform weighting and averaging processing on the multiple physiological characteristic parameters after the normalization processing to obtain final physiological characteristic parameters. The physiological characteristic parameters with higher weight in the multiple physiological characteristic parameters reflect the emotion of the user more accurately.
It should be noted that, with the method for processing a message provided in the embodiment of the present invention, the terminal may determine an accurate emotion of the user according to various physiological characteristic parameters of the user, so that the state of the message no-disturb function corresponding to the target object determined by the terminal according to the emotion of the user meets the requirement of the user. Therefore, the flexibility of the application of the message non-disturbing function of the terminal is further improved.
In a possible implementation manner, as shown in fig. 3, a schematic method flow diagram of a method for processing a message according to an embodiment of the present invention is provided. In the method for processing a message shown in fig. 3, the step 203 may include steps 204 and 205:
and 204, under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, the terminal acquires the target number.
The target number is the sum of the number of the first messages and the number of the N second messages, the N second messages are N messages which are continuous before the first messages in the target object, the physiological characteristic parameter corresponding to one second message indicates that the emotion of the user is a negative emotion, and N is a positive integer.
It should be noted that, when the terminal receives an input of a user to a message displayed by the terminal and the emotion of the user is a negative emotion, the terminal may record the message, add identification information corresponding to a target object where the message is located to the message, and record or update the number of messages in the target object.
For example, the first message may be an ith message in the target object received by the terminal, and the N second messages may be 1 st to i-1 st messages in the target object received by the terminal, that is, N ═ i-1. When the terminal displays the 1 st message to the i-1 st message in the target object 1 and the emotion of the user inputting the i-1 messages is negative emotion, the terminal can record each message in the i-1 messages, add identification information 1 to each message, and update the number of the messages in the target object 1. For example, after the user inputs the i-1 th message in the target object 1 displayed by the terminal, the number of messages in the target object 1 is i-1. After the user inputs the ith message in the target object 1 displayed by the terminal, the terminal may record the ith message, add identification information 1, and update the number of messages (denoted as { push _ message _ a _ i, count }) in the target object 1 from i-1 to i, that is, the target number is { push _ message _ a _ i, count } ═ i.
In addition, if the user inputs a message in the target object displayed by the terminal under a negative emotion, the terminal may record the negative indication information of the message, for example, after the user inputs the ith message in the target object 1 displayed by the terminal, the terminal may record the negative indication information of the ith message as { push _ message _ a _ i, N }. Accordingly, it is assumed that after the i +1 th message in the target object 1 displayed by the terminal is input by the user in a positive emotion, the terminal can record the negative indication information of the i +1 th message as { push _ message _ a _ i, Y }.
Step 205, under the condition that the target number is in the first number interval, the terminal controls the message do-not-disturb function corresponding to the target object to be in an on state within a first time period of a first preset time length.
The first quantity interval is one of at least one preset quantity interval, and one preset time corresponds to one preset quantity interval.
It will be appreciated that the greater the number of messages that have been entered by the user in a target object in the terminal under negative emotions, the longer the period of time that the user needs the target object to be in the on state. That is, the greater the number of the first messages, the longer the duration of the first period of time representing that the user demands the target object to be in the on state. Further, if the number of the first messages is larger than a certain value, it indicates that the message do-not-disturb function corresponding to the target object is required by the user to be permanently in an on state.
Illustratively, the at least one preset number interval may include [1, 5 ], [5, 8 ], [8, 10 ], [10, 12), [12, + ∞) ] and the like, where the preset time duration corresponding to the preset number interval [1, 5%) is 2 hours, the preset time duration corresponding to the preset number interval [5, 8%) is 3 hours, the preset time duration corresponding to the preset number interval [8, 10%) is 4 hours, the preset time duration corresponding to the preset number interval [10, 12%) is 5 hours, and the preset time duration corresponding to the preset number interval [12, + ∞) ] is infinite.
Optionally, the method may further include step 206 before step 204, that is, step 203 may include step 206, step 204, and step 205.
Step 206, the terminal determines that the physiological characteristic parameter indicates that the emotion of the user is a negative emotion.
For example, when the physiological characteristic parameter is within a certain value range (denoted as value range 1), the physiological characteristic parameter is used for indicating that the emotion of the user is positive emotion; when the physiological characteristic parameter is in another preset numerical range (marked as numerical range 2), the physiological characteristic parameter is used for indicating that the emotion of the user is a negative emotion. The numerical values in the numerical range 1 and the numerical range 2 are different from each other.
It should be noted that, with the method for processing a message provided in the embodiment of the present invention, the terminal may adjust the duration of the message do-not-disturb function corresponding to the target object in the on state according to the requirement of the user, which is beneficial to further improve the flexibility of the application of the message do-not-disturb function of the terminal.
In a possible implementation manner, in the method for processing a message provided by the embodiment of the present invention, step 203 may further include step 207 and step 208. Specifically, step 203 may include step 204, step 207, and step 208. Fig. 4 is a schematic flowchart of another method for processing a message according to an embodiment of the present invention. In the method for processing a message shown in fig. 4, step 203 may include steps 204, 207, and 208:
and step 207, the terminal acquires a first negative rank parameter corresponding to the first physiological characteristic parameter.
It should be noted that, in the method for processing a message provided in the embodiment of the present invention, the parameter that reflects the duration that the target object in the user demand terminal is in the message do not disturb function may also be a negative rating parameter corresponding to the physiological characteristic parameter of the user.
And step 208, under the condition that the first condition is met, the terminal controls the message non-disturbing function corresponding to the target object to be in an open state within a first time period of a first preset time length.
Wherein the first condition is at least one of: the target number is located in a first number interval, the first negative rating parameter is located in a first rating parameter interval, and absolute values of the first negative rating parameter and the second negative parameter are located in a first difference interval.
The first grade parameter interval is one of at least one preset grade parameter interval, the first difference interval is one of at least one preset difference interval, and one preset time length corresponds to one preset grade parameter interval and one preset difference interval. The second negative rank parameter corresponds to a second physiological characteristic parameter corresponding to a previous message of the first message in the target subject, for example, the second physiological characteristic parameter is corresponding to the i-1 th message.
For example, after a message (for example, the ith message) in the target object 1 displayed by the terminal is input by the user, the terminal may further record a negative rating parameter (denoted as { push _ message _ a _ i, Level } corresponding to the physiological characteristic parameter when the message is input by the user.
It can be understood that the more negative the emotion of the user is in a message inputted by the user in a target object in the terminal under negative emotion, the longer the period of time for which the user needs the target object to be in an on state is. That is, the greater the negative rating parameter corresponding to the physiological characteristic parameter is, the longer the duration of the first time period in which the user demand target object is in the on state is. Further, if the negative rank parameter is greater than a certain value, it indicates that the message do-not-disturb function corresponding to the user demand target object is permanently in an on state.
Similarly, when the user inputs two continuous messages in the target object displayed by the terminal under the negative emotion, if the change of the negative rank parameter corresponding to the physiological characteristic parameter of the user in the two inputs is large, the longer the time period of the time period that the user needs the target object to be in the on state is. Further, if the change of the negative rank parameter corresponding to the physiological characteristic parameter at the two times of input reaches a certain degree, it indicates that the message non-disturbing function corresponding to the user demand target object is permanently in an on state.
Optionally, the terminal adjusts a duration that the message do not disturb function corresponding to the target object is in the on state when all the conditions in the first condition are satisfied.
Similarly, in the above embodiment of the present invention, reference may be made to the description of step 208 in the above embodiment for step 205, which is not described herein again.
It should be noted that, with the method for processing a message provided in the embodiment of the present invention, the terminal may not only adjust the duration of the message no-disturb function corresponding to the target object in the on state according to the number of messages that have been input by the user in the target object under the negative emotion, but also adjust the passive degree of the message that has been input by the user under the negative emotion, so as to better meet the user requirement. Therefore, the flexibility of the application of the message non-disturbing function of the terminal is further improved.
In a possible implementation manner, as shown in fig. 5, a schematic flowchart of another method of the method for processing a message according to the embodiment of the present invention is provided. In conjunction with fig. 2 and fig. 5, the method for processing messages, after the step 202, may further include a step 209:
and 209, under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a positive emotion, the terminal controls the message disturbance-free function corresponding to the target object to be in a closed state.
For example, when the user has input a message (e.g. the (i + 1) th message) in the target object displayed by the terminal in a positive emotion, the terminal may delete the number of messages in the target object in which the message is recorded in the terminal (e.g., { push _ message _ a, count }), the negative indication information corresponding to each message in the target object (e.g., { push _ message _ a, N }), and the negative rating parameter (e.g., { push _ message _ a _ i, Level }).
It should be noted that, in the method for processing a message provided in the embodiment of the present invention, the terminal automatically switches the message do-not-disturb function corresponding to the target object to be in a closed state according to the needs of the user, which is beneficial to further improve the flexibility of the application of the message do-not-disturb function of the terminal.
In a possible implementation manner, the method for processing a message provided in the embodiment of the present invention may include, before the step 201, a step 210:
and step 210, under the condition that the second condition is met, the state of the terminal control target object is a preset state.
Wherein the second condition is at least one of: the current position of the terminal is a preset position, the current system time of the terminal is preset time, and the terminal receives a second input of the user, wherein the second input is used for triggering the terminal to control the state of the target object to be a preset state, and the preset state is a necessary condition for the terminal to acquire physiological characteristic parameters corresponding to the message in the target object.
For example, the preset location may be a location where a company of the user is located or a location set by another user; the preset time may be the working time of the user, etc.
For example, in the setting application of the terminal in the embodiment of the present invention, an option for supporting a user to trigger the state of the terminal control target object to be a preset state may be provided, so that the user inputs the option to trigger the state of the terminal control target object to be the preset state.
It can be understood that when the state of the terminal is a preset state, the terminal can collect physiological characteristic parameters of a user when receiving a message in a target object, and automatically switch the on state and the off state of the message non-disturbing function corresponding to the target object according to the user requirement; when the state of the terminal is not the preset state, the user needs to manually trigger the terminal to switch the on and off states of the message non-disturbing function corresponding to the target object.
It should be noted that, with the method for processing a message provided in the embodiment of the present invention, when a user does not need to automatically switch a state of a message do not disturb function corresponding to a target object, the terminal may control the state of the target object to be not a preset state. Therefore, the flexibility of the application of the message non-disturbing function of the terminal is further improved.
Fig. 6 is a schematic structural diagram of a possible terminal according to an embodiment of the present invention. The terminal 60 shown in fig. 6 includes: a receiving module 601, an obtaining module 602 and a control module 603; the receiving module 601 is configured to receive a first input of the first message from the user, where the first input is an input of the user to view the first message; an obtaining module 602, configured to obtain a first physiological characteristic parameter of the user in response to the first input received by the receiving module 601, where the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, and the physiological characteristic parameter is used to indicate that the emotion of the user is a positive emotion or a negative emotion; a control module 603, configured to, when the first physiological characteristic parameter obtained by the obtaining module 602 indicates that the emotion of the user is a negative emotion, control a message do-not-disturb function corresponding to a target object to be in an on state in a first time period, where the target object is an object interacting with the user for a first message, or a message type to which the first message belongs, or a program receiving the first message.
Optionally, the physiological characteristic parameter includes at least one of a facial expression characteristic parameter, a voice characteristic parameter, and a pulse characteristic parameter.
Optionally, the obtaining module 602 is further configured to, after obtaining the first physiological characteristic parameter of the user, obtain the target number when the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion; wherein the target number is the sum of the number of messages of the first message and N second messages, the N second messages being N messages associated with the target object and received consecutively before the first message, and the physiological characteristic parameter corresponding to one second message indicates that the emotion of the user is a negative emotion, N being a positive integer; the control module 603 is specifically configured to, when the target number is within the first number interval, control the message do-not-disturb function corresponding to the target object to be in an on state within a first time period of a first preset time duration; the first quantity interval is one of at least one preset quantity interval, and one preset time corresponds to one preset quantity interval.
Optionally, the obtaining module 602 is further configured to obtain a first negative rating parameter corresponding to the first physiological characteristic parameter after the obtaining module 602 obtains the first physiological characteristic parameter of the user; the control module 603 is specifically configured to, when a first condition is met, control the message do-not-disturb function corresponding to the target object to be in an on state within a first time period of a first preset time duration; the first condition is at least one of: the target number is located in a first number interval, the first negative rating parameter is located in a first rating parameter interval, and the absolute values of the first negative rating parameter and the second negative parameter are located in a first difference interval; the first grade parameter interval is one of at least one preset grade parameter interval, the first difference interval is one of at least one preset difference interval, and one preset time length corresponds to one preset grade parameter interval and one preset difference interval; the second negative rank parameter corresponds to a second physiological characteristic parameter corresponding to a previous message of the first message in the target subject.
Optionally, the control module 603 is further configured to, after the obtaining module 602 obtains the first physiological characteristic parameter of the user, control the message do-not-disturb function corresponding to the target object to be in an off state when the first physiological characteristic parameter indicates that the emotion of the user is a positive emotion.
Optionally, the control module 603 is further configured to, before the receiving module 601 receives the first input of the first message from the user, control the state of the target object to be a preset state under the condition that the second condition is met; the second condition includes at least one of: the current position of the terminal 60 is a preset position, the system time of the current terminal 60 is preset time, and the terminal 60 receives a second input of the user, wherein the second input is used for triggering the state of the target object to be a preset state; the preset state is a necessary condition for the terminal 60 to acquire the physiological characteristic parameter corresponding to the message in the target object.
The terminal 60 provided in the embodiment of the present invention can implement each process implemented by the terminal in the foregoing method embodiments, and is not described here again to avoid repetition.
According to the terminal provided by the embodiment of the invention, in a scene that a user inputs a message displayed by the terminal, the terminal can determine whether the user needs to be prompted when the terminal subsequently receives other messages in a target object of a message object according to the emotion of the user inputting the message, namely, the message disturbance-free function corresponding to the target object is in an open state or a closed state. Therefore, the terminal can automatically switch the state of the message no-disturbance function corresponding to the target object according to the requirement of the user, and the user does not need to manually trigger the terminal to switch the state of the message no-disturbance function corresponding to the target object. Therefore, the problems that the operation of the process of using the message disturbance-free function by the terminal is complicated and time-consuming can be solved, and the flexibility of the application of the message disturbance-free function of the terminal is improved.
Fig. 7 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention, where the terminal 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 terminal configuration shown in fig. 7 is not intended to be limiting, and that the terminal 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 terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the user input unit 107 is configured to receive a first input of the first message from the user; a processor 110, configured to obtain a first physiological characteristic parameter of the user in response to the first input received by the user input unit 107, where the first physiological characteristic parameter is a physiological characteristic parameter of the first message object, and the physiological characteristic parameter is used to indicate that the emotion of the user is a positive emotion or a negative emotion; and under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, controlling a message non-disturbing function corresponding to a target object to be in an on state in a first time period, wherein the target object is an object interacting with the user for a first message, or is a type of the first message, or is an application receiving the first message.
According to the terminal provided by the embodiment of the invention, in a scene that a user inputs a message displayed by the terminal, the terminal can determine whether the user needs to be prompted when the terminal subsequently receives other messages in a target object of a message object according to the emotion of the user inputting the message, namely, the message disturbance-free function corresponding to the target object is in an open state or a closed state. Therefore, the terminal can automatically switch the state of the message no-disturbance function corresponding to the target object according to the requirement of the user, and the user does not need to manually trigger the terminal to switch the state of the message no-disturbance function corresponding to the target object. Therefore, the problems that the operation of the process of using the message disturbance-free function by the terminal is complicated and time-consuming can be solved, and the flexibility of the application of the message disturbance-free function of the terminal is improved.
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 terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
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 terminal 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 terminal 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 a backlight when the terminal 100 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; 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 terminal. 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. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 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 terminal 100 or may be used to transmit data between the terminal 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 terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 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 terminal. 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 terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned method for processing a message, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 above method for processing a message, 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 (14)

1. A method of processing a message, comprising:
receiving a first input of a first message from a user, wherein the first input is an input of the user for viewing the first message;
responding to the first input, acquiring a first physiological characteristic parameter of the user and a first negative grade parameter corresponding to the first physiological characteristic parameter, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, the physiological characteristic parameter is used for indicating that the emotion of the user is a positive emotion or a negative emotion, and the first negative grade parameter is used for reflecting the duration of a time period when a message non-disturbing function corresponding to a target object is in an on state;
under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, controlling a message non-disturbing function corresponding to the target object to be in an on state within a first time period of a first preset time period, wherein the target object is an object for interacting the first message with the user, or is a message type to which the first message belongs, or is a program for receiving the first message;
the controlling, when the first physiological characteristic parameter indicates that the emotion of the user is a negative emotion, a message do-not-disturb function corresponding to the target object to be in an on state within a first time period of a first preset time period includes:
acquiring a first negative grade parameter corresponding to the first physiological characteristic parameter;
under the condition that a first condition is met, controlling a message disturbance avoiding function corresponding to a target object to be in an open state within a first time period of a first preset time length;
wherein the first condition comprises at least one of: the target number is located in a first number interval, the first negative rating parameter is located in a first rating parameter interval, and the absolute values of the first negative rating parameter and the second negative rating parameter are located in a first difference interval;
the target number is the sum of the number of the first messages and the number of the N second messages, the N second messages are N messages which are related to the target object and are continuously received before the first messages, the physiological characteristic parameter corresponding to one second message indicates that the emotion of the user is a negative emotion, the first number interval is one of at least one preset number interval, one preset duration corresponds to one preset number interval, and N is a positive integer.
2. The method of claim 1, wherein the physiological characteristic parameters comprise at least one of facial expression characteristic parameters, voice characteristic parameters, and pulse characteristic parameters.
3. The method according to claim 1 or 2, wherein after acquiring the first physiological characteristic parameter of the user, the method further comprises:
in case the first physiological characteristic parameter indicates that the mood of the user is a negative mood, a target number is obtained.
4. The method of claim 3,
the first grade parameter interval is one of at least one preset grade parameter interval, the first difference interval is one of at least one preset difference interval, and one preset duration corresponds to one preset grade parameter interval and one preset difference interval;
the second negative rank parameter corresponds to a second physiological characteristic parameter corresponding to a previous message of the first message in the target subject.
5. The method of claim 4, wherein after obtaining the first physiological characteristic parameter of the user, further comprising:
and under the condition that the first physiological characteristic parameter indicates that the emotion of the user is a positive emotion, controlling a message disturbance-free function corresponding to the target object to be in a closed state.
6. The method of claim 5, wherein prior to receiving the first input of the first message by the user, further comprising:
controlling the state of the target object to be a preset state under the condition that a second condition is met;
the second condition includes at least one of: the position of a current terminal is a preset position, the system time of the current terminal is preset time, and the terminal receives a second input of a user, wherein the second input is used for triggering the state of the target object to be the preset state;
the preset state is a necessary condition for acquiring physiological characteristic parameters corresponding to the messages in the target object.
7. An apparatus for processing messages, comprising: the device comprises a receiving module, an obtaining module and a control module;
the receiving module is used for receiving a first input of a first message from a user, wherein the first input is an input of the user for viewing the first message;
the obtaining module is used for responding to the first input received by the receiving module, obtaining a first physiological characteristic parameter of the user and a first negative grade parameter corresponding to the first physiological characteristic parameter, wherein the first physiological characteristic parameter is a physiological characteristic parameter corresponding to the first message, the physiological characteristic parameter is used for indicating that the emotion of the user is a positive emotion or a negative emotion, and the first negative grade parameter is used for reflecting the duration of a time period when a message non-disturbing function corresponding to a target object is in an on state;
the control module is configured to control, when the first physiological characteristic parameter acquired by the acquisition module indicates that an emotion of a user is a negative emotion, a message non-disturbing function corresponding to the target object to be in an on state within a first time period of a first preset time period, where the target object is an object interacting with the user for the first message, or is a message type to which the first message belongs, or is a program for receiving the first message;
the control module is specifically used for acquiring a first negative grade parameter corresponding to the first physiological characteristic parameter; under the condition that a first condition is met, controlling a message disturbance avoiding function corresponding to a target object to be in an open state within a first time period of a first preset time length;
wherein the first condition comprises at least one of: the target number is located in a first number interval, the first negative ranking parameter is located in a first ranking parameter interval, absolute values of the first negative ranking parameter and the second negative ranking parameter are located in a first difference interval, the target number is the sum of the number of the first messages and the number of the N second messages, the N second messages are N messages which are related to the target object and are continuously received before the first messages, physiological characteristic parameters corresponding to the second messages indicate that the emotion of the user is a negative emotion, the first number interval is one of at least one preset number interval, one preset duration corresponds to one preset number interval, and N is a positive integer.
8. The apparatus of claim 7, wherein the physiological characteristic parameters comprise at least one of facial expression characteristic parameters, voice characteristic parameters, and pulse characteristic parameters.
9. The apparatus according to claim 7 or 8, wherein the obtaining module is further configured to obtain the target number after obtaining the physiological parameter of the user, in a case that the first physiological parameter indicates that the emotion of the user is a negative emotion.
10. The apparatus of claim 9,
the first grade parameter interval is one of at least one preset grade parameter interval, the first difference interval is one of at least one preset difference interval, and one preset duration corresponds to one preset grade parameter interval and one preset difference interval;
the second negative rank parameter corresponds to a second physiological characteristic parameter corresponding to a previous message of the first message in the target subject.
11. The apparatus according to claim 10, wherein the control module is further configured to control the message do-not-disturb function corresponding to the target object to be in an off state in a case where the first physiological characteristic parameter of the user is acquired by the acquisition module and indicates that the emotion of the user is a positive emotion.
12. The apparatus of claim 11,
the control module is further used for controlling the state of the target object to be a preset state under the condition that a second condition is met;
the second condition includes at least one of: the current position of the terminal is a preset position, the current system time of the terminal is preset time, and the terminal receives a second input of a user, wherein the second input is used for triggering the state of the target object to be the preset state;
the preset state is a necessary condition for acquiring physiological characteristic parameters corresponding to the messages in the target object.
13. A terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method of processing messages according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of processing messages according to any one of claims 1 to 6.
CN201810122301.XA 2018-02-07 2018-02-07 Method and terminal for processing message Active CN108388403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810122301.XA CN108388403B (en) 2018-02-07 2018-02-07 Method and terminal for processing message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810122301.XA CN108388403B (en) 2018-02-07 2018-02-07 Method and terminal for processing message

Publications (2)

Publication Number Publication Date
CN108388403A CN108388403A (en) 2018-08-10
CN108388403B true CN108388403B (en) 2020-05-12

Family

ID=63074367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810122301.XA Active CN108388403B (en) 2018-02-07 2018-02-07 Method and terminal for processing message

Country Status (1)

Country Link
CN (1) CN108388403B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866112A (en) * 2018-08-14 2020-03-06 阿里巴巴集团控股有限公司 Response sequence determination method, server and terminal equipment
CN111199752B (en) * 2019-12-27 2023-08-22 歌尔科技有限公司 Security monitoring method and device, wearable device and storage medium
US11283751B1 (en) * 2020-11-03 2022-03-22 International Business Machines Corporation Using speech and facial bio-metrics to deliver text messages at the appropriate time
CN112637409B (en) * 2020-12-21 2022-05-06 维沃移动通信有限公司 Content output method and device and electronic equipment
CN113794803B (en) * 2021-08-06 2023-02-24 维沃移动通信(杭州)有限公司 Unread message prompting method, unread message prompting device, electronic equipment and unread message prompting medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593049A (en) * 2013-11-01 2014-02-19 小米科技有限责任公司 Method, device and terminal device for processing reminding message
CN104750380A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Information processing method and electronic equipment
CN104035558A (en) * 2014-05-30 2014-09-10 小米科技有限责任公司 Terminal device control method and device
CN115756154A (en) * 2014-09-02 2023-03-07 苹果公司 Semantic framework for variable haptic output
CN106990842B (en) * 2017-03-30 2019-12-03 维沃移动通信有限公司 A kind of method and mobile terminal shielding notification message

Also Published As

Publication number Publication date
CN108388403A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN108845853B (en) Application program starting method and mobile terminal
CN108388403B (en) Method and terminal for processing message
CN110062105B (en) Interface display method and terminal equipment
CN109857494B (en) Message prompting method and terminal equipment
CN110445924B (en) Network task execution method and terminal equipment
CN109471690B (en) Message display method and terminal equipment
CN108391008B (en) Message reminding method and mobile terminal
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN110752981B (en) Information control method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN111163224B (en) Voice message playing method and electronic equipment
CN108881719B (en) Method for switching shooting mode and terminal equipment
CN110971510A (en) Message processing method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN108536349B (en) Icon management method and mobile terminal
CN108008892B (en) Function starting method and terminal
CN110012151B (en) Information display method and terminal equipment
CN108597495B (en) Method and device for processing voice data
CN111124569A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108345421B (en) Icon display method and mobile terminal
CN112217713B (en) Method and device for displaying message
CN107765954B (en) Application icon updating method, mobile terminal and server
CN109992941B (en) Authority management method and terminal equipment

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