CN111158481B - Prompting method and device and computer readable storage medium - Google Patents

Prompting method and device and computer readable storage medium Download PDF

Info

Publication number
CN111158481B
CN111158481B CN201911387563.XA CN201911387563A CN111158481B CN 111158481 B CN111158481 B CN 111158481B CN 201911387563 A CN201911387563 A CN 201911387563A CN 111158481 B CN111158481 B CN 111158481B
Authority
CN
China
Prior art keywords
detection
detection mode
period
prompting
prompt
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
CN201911387563.XA
Other languages
Chinese (zh)
Other versions
CN111158481A (en
Inventor
贺思颖
刘杉
李松南
陈家君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911387563.XA priority Critical patent/CN111158481B/en
Publication of CN111158481A publication Critical patent/CN111158481A/en
Application granted granted Critical
Publication of CN111158481B publication Critical patent/CN111158481B/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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/011Emotion or mood input determined on the basis of sensed human body parameters such as pulse, heart rate or beat, temperature of skin, facial expressions, iris, voice pitch, brain activity patterns

Abstract

The embodiment of the application discloses a prompting method, a prompting device and a computer readable storage medium. The method comprises the following steps: the method comprises the steps of acquiring detection time of a detected target behavior under the condition that the target behavior meeting a prompt condition is detected, immediately outputting first prompt information if the detection time belongs to a detection time interval of a first detection mode, counting the times of detecting the target behavior in the detection time interval of a second detection mode if the detection time belongs to a detection time interval of the second detection mode, and outputting second prompt information in a prompt time interval associated with the detection time interval of the second detection mode, wherein the duration of the detection time interval of the second detection mode is greater than the duration of the detection time interval of the first detection mode. Therefore, the two detection modes are executed in parallel, the first detection mode is executed in partial time, the prompting times can be effectively reduced, and the prompting has flexibility.

Description

Prompting method and device and computer readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for prompting and a computer-readable storage medium.
Background
In daily life, scenes are often presented in which a prompt is required when a certain behavior is detected. For example, a scenario in which a prompt is made when a sitting error of the user is detected, a scenario in which a prompt is made when an illegal operation is detected, or the like. When prompting, an immediate prompting mode is usually adopted, namely prompt information is output immediately once a certain behavior is detected. For example, once a sitting posture error of the user is detected, prompt information is output immediately, and the prompt information is used for prompting the user that the current sitting posture is wrong and asking for timely adjustment.
The immediate prompt mode has the risk of too frequent prompt times, possibly triggering the conflicting emotion of the user, and further directly closing the prompt function.
Disclosure of Invention
The embodiment of the application discloses a prompting method, a prompting device and a computer readable storage medium, which can effectively reduce the prompting times and enable the prompting to have flexibility.
In a first aspect, an embodiment of the present application provides a prompting method, where the method includes:
under the condition that a target behavior meeting a prompt condition is detected, acquiring detection time for detecting the target behavior;
if the detection time belongs to the detection time period of a first detection mode, immediately outputting first prompt information, wherein the first prompt information is used for indicating that the target behavior is detected in the detection time period of the first detection mode;
if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode;
wherein a duration of the detection period of the second detection mode is greater than a duration of the detection period of the first detection mode.
In a second aspect, an embodiment of the present application provides a prompting device, where the prompting device includes:
the processing unit is used for acquiring the detection time of the target behavior under the condition that the target behavior meeting the prompt condition is detected;
the output unit is used for immediately outputting first prompt information if the detection time belongs to the detection time interval of a first detection mode, wherein the first prompt information is used for indicating that the target behavior is detected in the detection time interval of the first detection mode; and if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode, and the duration of the detection time period of the second detection mode is longer than that of the detection time period of the first detection mode.
In a third aspect, an embodiment of the present application provides a prompting device, including a processor, a memory, and a communication interface, where the processor, the memory, and the communication interface are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing one or more instructions adapted to be loaded by a processor and execute the method of the first aspect.
According to the embodiment of the application, under the condition that the target behavior meeting the prompt condition is detected, the detection time of the detected target behavior is obtained, if the detection time belongs to the detection time interval of the first detection mode, the first prompt information is immediately output, if the detection time belongs to the detection time interval of the second detection mode, the times of detecting the target behavior in the detection time interval of the second detection mode are counted, and the second prompt information is output in the prompt time interval, wherein the duration of the detection time interval of the second detection mode is longer than the duration of the detection time interval of the first detection mode. Therefore, the embodiment of the application can effectively reduce the prompting times by executing the two detection modes in parallel, so that the prompting has flexibility.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a is a schematic view of a sitting posture scene of a user at work according to an embodiment of the present application;
fig. 1b is a schematic diagram of a prompt scenario provided in the embodiment of the present application;
fig. 2 is a flow chart of detection time interval division of a first detection mode according to an embodiment of the present disclosure;
fig. 3 is a flow chart of detection time interval division of a second detection mode according to an embodiment of the present application;
fig. 4a is a schematic diagram illustrating a detection period division of a first detection mode according to an embodiment of the present disclosure;
fig. 4b is a schematic diagram of detection time interval division of another first detection mode according to the embodiment of the present application;
fig. 4c is a schematic diagram of detection time interval division of a second detection mode according to an embodiment of the present application;
fig. 4d is a schematic diagram of detection time interval division of another second detection mode according to the embodiment of the present application;
fig. 4e is a schematic diagram of detection time interval division of another second detection mode according to the embodiment of the present application;
fig. 5 is a flowchart of a prompting method provided in an embodiment of the present application;
fig. 6a is a schematic diagram of an exemplary prompting manner of first prompt information provided in an embodiment of the present application;
fig. 6b is a schematic diagram of an exemplary prompting manner of second prompting information provided in the embodiment of the present application;
FIG. 7a is a schematic diagram of a detection time provided in an embodiment of the present application;
FIG. 7b is a schematic diagram of another detection time provided in the embodiment of the present application;
fig. 8 is a schematic structural diagram of a prompting device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a prompting device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application relates to the step of sending out prompt information when a prompt device detects target behaviors. The target behavior refers to a wrong behavior or an illegal behavior of the detected object. Fig. 1a is a schematic view of a sitting posture scene of a user during work according to an embodiment of the present application, in fig. 1a, a detection object is a user 105, and a target behavior specifically refers to an incorrect sitting posture occurring in the user 105. The wrong sitting posture 101 is a situation that the user 105 is humpback and is too close to the screen when working, and the situation of myopia, lumbar disc herniation and the like can be caused when the user works with the wrong sitting posture for a long time; the wrong sitting posture 102 is a situation that the user 105 has a waist collapse and is too close to the screen when working, and the situation of myopia, shoulder shrugging and the like can be caused when the user works for a long time with the wrong sitting posture; the wrong sitting posture 103 is a situation that the user 105 lies down after working, and the long-term working with the wrong sitting posture may cause lumbar disc herniation and the like. It should be noted that the sitting errors 101 to 103 are three exemplary sitting errors, and in practical applications, the sitting errors include, but are not limited to, the sitting errors 101 to 103 in fig. 1 a. The correct sitting posture 104 is an exemplary standard sitting posture, that is, when the user 105 is sitting incorrectly 101-103, the prompting device determines that the user 105 has the target behavior (wrong behavior), when the user 105 keeps the correct sitting posture 104, the sitting posture requirement is met, and the prompting device does not determine that the user 105 has the target behavior (wrong behavior). Fig. 1a illustrates an example of a sitting error of the user 105 during work, but also a sitting error of a child during work or reading. In other scenarios, the detection object may be a person or an object, and the target behavior may be other behaviors. For example, in a scenario of fatigue detection, the detection object is a person, and the target behavior may specifically be that the eye-closing time exceeds a preset time period.
Fig. 1b is a schematic diagram of a prompt scenario provided in the embodiment of the present application. The prompting device 106 detects the sitting posture of the user 105, acquires the current time when the user is detected to have the wrong sitting posture, and determines the detection mode corresponding to the current time. And reminding the user according to a reminding mode in the detection mode. The reminding mode can include but is not limited to: the reminding mode comprises one or more of short message or mail reminding, ringing reminding, light flicker reminding, vibration reminding and the like. The configuration of the prompting device 106 shown in fig. 1b is for example and not intended to limit the embodiments of the present application. The prompting device 106 may be mounted on a terminal device carrying the sensing device or a wearable device carrying the sensing device. The sensing device can be an infrared sensing device, a photoelectric sensing device and the like which can be used for sensing a target behavior (sitting posture). The terminal device may be a terminal device with a prompt function, such as a smart phone (e.g., an Android phone), a tablet computer, a Mobile Internet Device (MID), and the like. Wearable equipment can be the equipment that possesses the prompt facility such as intelligent bracelet, intelligent necklace, smart glasses. Optionally, the prompting device 106 may also be mounted on a terminal device connected to a sensor, and the sensor may be an infrared sensor, a photoelectric sensor, or the like that can be used to sense a target behavior. The terminal equipment can also be terminal equipment with a prompt function, such as an intelligent Bluetooth sound box, an AI robot, an intelligent alarm clock and the like.
A prompting method provided by the present application is described in detail below.
Referring to fig. 2, fig. 2 is a flow chart illustrating a detection time interval division of a first detection mode according to an embodiment of the present disclosure. The detection period dividing method of the first detection mode described in the embodiment of the present application may be applied to the presentation apparatus 106 shown in fig. 1 b. The detection time interval division method of the first detection mode comprises the following steps:
201. the prompting device acquires the total detection time period.
The total detection time period refers to the total time length for detecting the target behavior. The target behavior refers to the error behavior of the detection object in the total detection time. For example, the sitting posture of the user is detected while the user works, the detected object is the user, and the target behavior (wrong behavior) is the wrong sitting posture of the user in the total detection period. For another example, fatigue detection is performed on the user while the user is working, the detected object is the user, and the target behavior (error behavior) is that the single eye-closing time of the user in the total detection period exceeds 1 second.
In one embodiment, the total detection time period may be a time period set by default in the prompting device, or may be a total detection time period set manually by the user according to actual conditions. For example, 15 minutes, 20 minutes, 30 minutes, or 8 hours, etc. It should be noted that after the total detection time period is obtained, the forward-time counting mode may be adopted, and the backward-time counting mode may also be adopted. For example, the total time period is 15 minutes, the start time is 0 minutes, and the end time is 15 minutes; alternatively, the start time is 15 minutes and the end time is 0 minutes.
202. The prompting device determines the number M of detection periods of the first detection mode and the duration of the detection periods of the first detection mode.
The first detection mode is an instant prompt mode, that is, if the target behavior is detected within the detection period of the first detection mode, the first prompt information may be immediately output, and the first prompt information is used to indicate that the target behavior is detected within the detection period of the first detection mode. Wherein M is a positive integer greater than 0, and the sum of the durations of the detection periods of the M first detection modes is less than the total detection period. As shown in fig. 4a, the detection period of the first detection mode is not from beginning to end in the total detection period, i.e. the detection period of the first detection mode is not continuous and the time lengths of any two periods are the same. Therefore, the risk that the prompting times are too frequent in the first detection mode can be reduced.
In one embodiment, the number M of detection periods of the first detection mode and the duration of the detection periods of the first detection mode may be calculated by proportionally calculating the total detection period. For example, the number M of detection periods of the first detection mode and the duration of the detection period of the first detection mode are obtained by converting the total detection period into units of minutes and dividing by 10. For example, assuming that the total detection period is 20 minutes, the number M of detection periods of the first detection mode is 2, and the duration of the detection period of the first detection mode is 2 minutes. The number M of detection periods of the first detection mode and the duration of the detection periods of the first detection mode may also be manually set by the user according to actual circumstances.
203. The prompting device randomly selects M time periods with the same duration as the detection time period of the first detection mode from the total detection time period as the detection time period of the first detection mode.
Wherein the detection periods of the respective first detection modes do not overlap with each other. In one embodiment, the prompting device divides the total detection time interval according to the duration of the detection time interval of the first detection mode, and then randomly selects M detection time intervals determined as the first detection mode in the divided time intervals by adopting a random algorithm. The stochastic algorithm may include, but is not limited to, the Shewood (Sherwood) algorithm, the Las Vegas (Las Vegas) algorithm, the Monte Carlo (Monte Carlo) algorithm. The detection time period can be prevented from being predicted by a user and cheated in the detection time period by randomly selecting the time period. For example, in sitting posture detection, after a detection period is predicted by a user, the user keeps a correct sitting posture in the detection period, and continues to adopt an incorrect sitting posture outside the detection period.
Optionally, the starting time of the first detection period of the first detection mode is the same as the starting time of the total period. When the detection is started, the user usually does not completely enter the concentration state, and in the time period, the prompt is carried out as long as the target behavior of the user appears, so that the prompt purpose can be achieved, and the user does not feel disturbed when working.
In another embodiment, the user only needs to set the duration of the detection period of the first detection mode, and does not need to set the total detection period. After a user sets a prompt, the prompt device determines the detection time interval of the first detection mode according to the duration of the detection time interval of the first detection mode and the time interval frequency threshold. Specifically, as shown in fig. 4b, assuming that the duration of the detection period of the first detection mode is Y and the period frequency threshold is X, the prompting device determines a detection period of the first detection mode within the time of X × Y by using a random algorithm within each time of X × Y until the user turns off the prompt. Wherein X is a positive number greater than 0 and Y is a positive integer greater than 0.
Referring to fig. 3, fig. 3 is a flow chart illustrating a detection time interval division of a second detection mode according to an embodiment of the present disclosure. The detection period dividing method of the second detection mode described in the embodiment of the present application may be applied to the presentation apparatus 106 shown in fig. 1 b. The detection time interval division method of the second detection mode comprises the following steps:
301. the prompting device acquires the total detection time period.
The specific implementation manner of step 301 is the same as that of step 201 in fig. 2, and is not described herein again.
302. The prompting device averagely divides the total detection time interval into N detection time intervals of the second detection mode according to the number N of the detection time intervals of the second detection mode.
If the target behavior is detected in the detection period of the second detection mode, the prompting device counts the number of times the target behavior is detected in the detection period of the second detection mode, and outputs second prompting information in the prompting period related to the detection period of the second detection mode, wherein the second prompting information is used for indicating the number of times the target behavior is detected in the detection period of the second detection mode. For example, assuming that the detection period of the second detection mode is 5 minutes, the target behavior is detected at 1 minute, 3 minutes, 4 minutes, 20 seconds, and 6 minutes. Since the 6 th minute does not belong to the detection period of the second detection mode, the number of target behaviors finally counted in the detection period of the second detection mode is 3, that is, outputting the second prompt information in the prompt period associated with the detection period of the second detection mode indicates that the number of target behaviors detected in the detection period of the second detection mode is 3.
The duration of the detection period of the second detection mode may be calculated according to a first proportional threshold, for example, the duration of the detection period of the second detection mode is 10% of the duration of the total period. Similarly, the duration of the prompting period of the second detection mode may be calculated according to a second proportional threshold, and the second proportional threshold may be the same as or different from the first proportional threshold. For example, the duration of the presentation period of the second detection mode is 10% or 5% of the duration of the detection period of the second detection mode. The duration of the detection period of the second detection mode and the duration of the prompt period of the second detection mode may also be manually set by the user according to actual conditions.
In one embodiment, as shown in fig. 4c, each detection period of the second detection mode is followed by a prompt period of the adjacent (associated) second detection mode for outputting the second prompt message, i.e. detection period 1 of the second detection mode is associated with prompt period 1 of the second detection mode, and similarly, detection period 2 of the second detection mode is associated with prompt period 2 of the second detection mode. And if the detection time of the target behavior is detected to belong to the prompt time interval of the second detection mode, not counting the times of the target behavior.
In another embodiment, as shown in fig. 4d, each detection period of the second detection mode is followed by a prompt period of the adjacent (associated) second detection mode for outputting the second prompt message, the prompt period coinciding with the next period of the detection period of the second detection mode associated with the prompt period. The detection periods of two adjacent second detection modes are continuous, and the duration of the detection period of any two second detection modes is the same. If the detection time of the target behavior is detected to belong to the prompt time interval 1 of the second detection mode, the detection time of the target behavior also belongs to the detection time interval 2 of the second detection mode, so that the times of the target behavior are counted, and second prompt information is output in the prompt time interval 2 of the second detection mode related to the detection time interval 2 of the second detection mode.
Optionally, the user only needs to set the duration of the detection period of the second detection mode, and does not need to set the total detection period. The prompting device calculates the duration of the prompting period of the second detection mode related to the detection period of the second detection mode according to the second proportional threshold. As shown in fig. 4e, after the user sets the prompt, after the detection period 1 of the second detection mode and the prompt period 1 of the second detection mode associated therewith are ended, the detection period 2 of the second detection mode and the prompt period 2 of the second detection mode associated therewith are continuously entered until the user turns off the prompt.
In an actual scene, after a period of time for starting to set a prompt, the user gradually enters a concentration state, and in the concentration state, although the user has a target behavior, the user does not want to be disturbed at the moment, namely does not want to be disturbed by the prompt in the serious work. The second detection mode counts the target behaviors of the user in a certain time period and carries out centralized reminding in a certain time period. Therefore, the second detection mode can reduce the prompting times, and the conflict emotion of the user caused by excessive prompting is avoided.
Referring to fig. 5, fig. 5 is a schematic flow chart of a prompting method according to an embodiment of the present disclosure. The prompting method described in the embodiment of the present application can be applied to the prompting device 106 shown in fig. 1 b. The prompting method comprises the following steps:
501. the prompting device acquires the detection time when the target behavior is detected.
Wherein, the detection time refers to the time when the target behavior is detected. The detection time can be acquired by the prompting device from a detection device carried by the prompting device, or can be received from a detection device connected with the prompting device. For example, if the target behavior is detected in the 1 st minute 30 seconds after the start of the presentation, the detection time is 1 minute 30 seconds.
502. If the detection time belongs to the detection time interval of the first detection mode, the prompt device immediately outputs first prompt information.
In one embodiment, the prompting device determines whether the acquired detection time belongs to the detection period of the first detection mode. If the detection time belongs to the detection time interval of the first detection mode, the prompt device immediately outputs first prompt information. As shown in fig. 6a, fig. 6a is a schematic diagram illustrating an exemplary prompting manner of the first prompting message. The time displayed in the prompt box 601 is used for setting the timing time after the start for the user, the prompt box 602 is used for displaying the first prompt information, and the operation box 603 is used for exiting the prompt. And if the detection time does not belong to the detection time interval of the first detection mode, not outputting the first prompt message. For example, if the detection time is 1 minute 30 seconds and 2 minutes 15 seconds, respectively, and the detection time period of the first detection mode is 0 to 2 minutes, the prompting device outputs the first prompting message in 1 minute 30 seconds. Since 2 minutes and 15 seconds do not belong to the detection period of the first detection mode, the first prompt information is not output for 2 minutes and 15 seconds.
503. If the detection time belongs to the detection time period of the second detection mode, the prompting device counts the times of detecting the target behavior in the detection time period of the second detection mode, and outputs second prompting information in the prompting time period related to the detection time period of the second detection mode.
In one embodiment, as shown in fig. 4c, the prompting device determines whether the acquired detection time belongs to the detection period of the second detection mode. If the detection time belongs to the detection time period of the second detection mode, the prompting device counts the times of detecting the target behavior in the detection time period of the second detection mode, and outputs second prompting information in the prompting time period related to the detection time period of the second detection mode. As shown in fig. 6b, fig. 6b is a schematic diagram illustrating an exemplary prompting manner of the second prompting message. The time displayed in the prompt box 601 is used for setting the timing time after the start for the user, the prompt box 604 is used for displaying the second prompt information, and the operation box 603 is used for exiting the prompt. And if the detection time does not belong to the detection time interval of the second detection mode, not counting the times of the target behaviors.
In another embodiment, as shown in fig. 4d, the detection periods of the second detection modes are connected to each other, and it is understood that the detection time of the prompting device belongs to the detection period of the second detection mode, and therefore the number of target behaviors is counted.
Therefore, in the embodiment of the application, the first detection mode and the second detection mode are executed in parallel, so that the prompt can be performed on the user, the prompt times can be effectively reduced, and the prompt has flexibility.
Referring to fig. 7a, fig. 7a is a schematic diagram illustrating a detection time belonging to the detection time period of the first detection mode and belonging to the detection time period of the second detection mode. At this time, the prompting device outputs the first prompting information, and counts the times of the target behaviors in the detection period of the second detection mode. Then, the prompting apparatus outputs the second prompt information at a second detection mode prompt period adjacent thereto (associated therewith) after the detection period of the second detection mode.
In one embodiment, the prompting device determines the target prompting times in the second detection mode prompting period according to the times of the target behaviors in the detection period of the second detection mode and the interval threshold value. Specifically, the quotient of the number of times of the target behavior in the detection period of the second detection mode divided by the interval threshold is the number of times to be prompted in the prompt period of the second detection mode. The prompting device judges the number of times of pending prompting, and if the number of times of pending prompting is greater than or equal to a number threshold, the number threshold is determined as the target number of times of prompting; and if the number of times of pending prompt is less than the number threshold, determining the number of times of pending prompt as the target prompt number. Wherein, the interval threshold and the time threshold are positive integers larger than 0.
For example, assuming that the number of times of the target behavior in the detection period of the second detection mode is 50, the interval threshold is 5, and the number threshold is 6, the value of the number of times of pending prompting is 10, and since the number of times of pending prompting is 10> the number threshold 6, the final number of times of target prompting is 6.
Optionally, a corresponding relationship between the number of times of the target behavior in the detection period of the second detection mode and the prompt duration of the second prompt message is established. Specifically, when the number of times of the target behavior in the detection period of 0< the second detection mode is less than or equal to a1, the second prompt information prompt duration is B1 seconds; when A1< the number of times of target behaviors in the detection period of the second detection mode is less than or equal to A2, the prompt duration of the second prompt message is B2 seconds; a2< the number of times of the target action within the detection period of the second detection mode, the second prompt information prompt duration is B3 seconds. Wherein A1, A2, B1, B2 and B3 are positive integers, and A1< A2, B1< B2< B3. Table 1 is an exemplary table of correspondence between the number of target behaviors and the prompting duration of the second prompting message.
TABLE 1
Target action number range Duration of prompt
(0,10] 5s
(10,30] 10s
(30,∞) 20s
As can be seen from table 1, assuming that the number of times of the target behavior in the detection period of the second detection mode is 18 times, the presentation time length of the second presentation information is 10 seconds.
Referring to fig. 7b, fig. 7b is a schematic diagram illustrating the detection time belonging to the detection time period of the first detection mode and belonging to the prompt time period of the second detection mode. In an actual scene, taking the prompting device as a mobile phone as an example, since the detection time belongs to the prompting time period of the second detection mode, the mobile phone may output the second prompting information in one or more of short message or mail prompting, ring prompting, light flicker prompting, vibration prompting and other prompting manners. The user may look down or up to look at the motion of the phone when finding that the phone is vibrating or ringing, and may also detect the target behavior. Therefore, the second prompt information is output, and the first prompt information is not output. The prompting mode of the second prompting message is the same as that of the second prompting message in fig. 7a, and is not described herein again.
Optionally, the user may also select one of the first detection mode and the second detection mode to prompt in accordance with the actual situation requirement of the user. When the first detection mode is selected for prompting, if the detection time belongs to the detection time interval of the first detection mode, the first prompt information is immediately output; and when the second detection mode is selected for prompting, counting the times of detecting the target behaviors in the detection time interval of the second detection mode if the detection time belongs to the detection time interval of the second detection mode, and outputting second prompting information in the prompting time interval related to the detection time interval of the second detection mode. The specific implementation manner is the same as that in step 502 and step 503 of fig. 5, and is not described herein again.
While the method of the embodiments of the present application has been described in detail above, to facilitate better implementation of the above-described aspects of the embodiments of the present application, the apparatus of the embodiments of the present application is provided below accordingly.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a prompting device provided in the present application, where the prompting device can be mounted on the prompting device in the above method embodiment. The prompting device shown in fig. 8 may be used to perform some or all of the functions in the method embodiments described above with respect to fig. 2, 3, and 5. Wherein, the detailed description of each unit is as follows:
a processing unit 801, configured to, in a case where a target behavior satisfying a prompt condition is detected, acquire a detection time at which the target behavior is detected;
an output unit 802, configured to immediately output first prompt information if the detection time belongs to a detection period of a first detection mode, where the first prompt information is used to indicate that the target behavior is detected within the detection period of the first detection mode; and if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode, and the duration of the detection time period of the second detection mode is longer than that of the detection time period of the first detection mode.
In an embodiment, the processing unit 801 is further configured to:
if the detection time belongs to the detection time interval of the first detection mode and the detection time interval of the second detection mode, immediately outputting the first prompt information through the output unit 802, and counting the number of times of detecting the target behavior in the detection time interval of the second detection mode;
outputting the second prompt information through the output unit 802 within a prompt period associated with the detection period of the second detection mode.
In an embodiment, the processing unit 801 is further configured to:
if the detection time belongs to the detection time interval of the first detection mode and belongs to the prompt time interval associated with the detection time interval of the second detection mode, the second prompt information is output through the output unit 802.
In an embodiment, the processing unit 801 further outputs, through the output unit 802, second prompt information in a prompt period associated with the detection period of the second detection mode, specifically to:
determining target prompting times according to the times of detecting the target behaviors in the detection time period of the second detection mode;
according to the target prompting times, outputting second prompting information through the output unit 802 in a prompting time period associated with the detection time period of the second detection mode.
In an embodiment, the processing unit 801 is further configured to determine a target prompting time according to the number of times that the target behavior is detected in the detection period of the second detection mode, and specifically configured to:
performing operation processing according to the interval threshold and the times of detecting the target behavior in the detection period of the second detection mode to obtain the times of undetermined prompting;
if the number of times of prompting to be determined is larger than or equal to the number threshold, determining the number threshold as a target number of times of prompting;
and if the number of times of pending prompting is smaller than the number threshold, determining the number of times of pending prompting as a target number of times of prompting.
In an embodiment, the detection period of the first detection mode is any one of at least two periods obtained by dividing the detection total period according to the period division rule of the first detection mode, and two adjacent periods of the at least two periods are discontinuous and have the same duration.
In an embodiment, the detection period of the second detection mode is any one of at least two periods obtained by dividing the total detection period according to the period division rule of the second detection mode, and two adjacent periods of the at least two periods are continuous and have the same duration.
According to an embodiment of the present application, some steps involved in the prompting method shown in fig. 2, fig. 3 and fig. 5 can be executed by each unit in the prompting device shown in fig. 8. For example, steps 201 to 203 shown in fig. 2 may be performed by the processing unit 801 shown in fig. 8. Steps 301 to 302 shown in fig. 3 may be performed by the processing unit 801 shown in fig. 8. Step 501 shown in fig. 5 may be performed by the processing unit 801 shown in fig. 8, and step 502 and step 503 may be performed by the output unit 802 shown in fig. 8. The units in the presentation apparatus shown in fig. 8 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effect of the embodiments of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the prompting device may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present application, the presentation apparatus as shown in fig. 8 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods as shown in fig. 2, 3 and 5 on a general-purpose computing apparatus such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM) and a storage element, and implementing the presentation method of the embodiment of the present application. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
Based on the same inventive concept, the principle and the beneficial effect of the problem solving of the prompting device provided in the embodiment of the present application are similar to the principle and the beneficial effect of the problem solving of the prompting device in the embodiment of the method of the present application, and for the sake of brevity, the principle and the beneficial effect of the implementation of the method can be referred to, and are not described herein again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a prompting device according to an exemplary embodiment of the present application, where the prompting device at least includes a processor 901, a communication interface 902, and a memory 903. The processor 901, the communication interface 902, and the memory 903 may be connected by a bus or in other manners, and in this embodiment of the application, the connection by the bus is taken as an example. The processor 901 (or Central Processing Unit, CPU) is a computing core and a control core of the terminal, and can analyze various instructions in the terminal and process various data of the terminal, for example: the CPU can be used for analyzing a power-on and power-off instruction sent to the terminal by a user and controlling the terminal to carry out power-on and power-off operation; the following steps are repeated: the CPU may transmit various types of interactive data between the internal structures of the terminal, and so on. The communication interface 902 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.), and may be controlled by the processor 901 to transmit and receive data; the communication interface 902 may also be used for transmission and interaction of data inside the terminal. A Memory 903(Memory) is a Memory device in the terminal for storing programs and data. It is understood that the memory 903 herein can include both the built-in memory of the terminal and, of course, the expansion memory supported by the terminal. The memory 903 provides storage space that stores the operating system of the terminal, which may include, but is not limited to: android system, iOS system, Windows Phone system, etc., which are not limited in this application.
In the embodiment of the present application, the processor 901 executes the executable program code in the memory 903 to perform the following operations:
under the condition that a target behavior meeting a prompt condition is detected, acquiring detection time of the target behavior through the communication interface 902;
if the detection time belongs to the detection time period of a first detection mode, immediately outputting first prompt information, wherein the first prompt information is used for indicating that the target behavior is detected in the detection time period of the first detection mode;
if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode;
wherein a duration of the detection period of the second detection mode is greater than a duration of the detection period of the first detection mode.
As an alternative embodiment, the processor 901 further performs the following operations:
if the detection time belongs to the detection time interval of the first detection mode and the detection time interval of the second detection mode, immediately outputting the first prompt information, and counting the times of detecting the target behavior in the detection time interval of the second detection mode;
outputting the second prompt information within a prompt period associated with the detection period of the second detection mode.
As an alternative embodiment, the processor 901 further performs the following operations:
and if the detection time belongs to the detection time interval of the first detection mode and belongs to the prompt time interval associated with the detection time interval of the second detection mode, outputting the second prompt information.
As an optional implementation manner, the specific implementation manner of the processor 901 outputting the second prompt information in the prompt period associated with the detection period of the second detection mode is:
determining target prompting times according to the times of detecting the target behaviors in the detection time period of the second detection mode;
and outputting second prompt information in a prompt time interval associated with the detection time interval of the second detection mode according to the target prompt times.
As an optional implementation manner, the specific implementation manner of determining, by the processor 901, the number of times of target prompting according to the number of times of target behavior detected in the detection period of the second detection mode is as follows:
performing operation processing according to the interval threshold and the times of detecting the target behavior in the detection period of the second detection mode to obtain the times of undetermined prompting;
if the number of times of prompting to be determined is larger than or equal to the number threshold, determining the number threshold as a target number of times of prompting;
and if the number of times of pending prompting is smaller than the number threshold, determining the number of times of pending prompting as a target number of times of prompting.
As an optional implementation manner, the detection period of the first detection mode is any one of at least two periods obtained by dividing the detection total period according to the period division rule of the first detection mode, and two adjacent periods of the at least two periods are discontinuous and have the same duration.
As an optional implementation manner, the detection period of the second detection mode is any one of at least two periods obtained by dividing the detection total period according to the period division rule of the second detection mode, and two adjacent periods of the at least two periods are continuous and have the same time length.
Based on the same inventive concept, the principle and the beneficial effect of the problem solving of the prompting device provided in the embodiment of the present application are similar to the principle and the beneficial effect of the problem solving of the prompting device in the embodiment of the method of the present application, and for the sake of brevity, the principle and the beneficial effect of the implementation of the method can be referred to, and are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where one or more instructions are stored in the computer-readable storage medium, and the one or more instructions are adapted to be loaded by a processor and to execute the prompting method described in the above method embodiment.
The present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the prompting method described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for prompting, the method comprising:
under the condition that a target behavior meeting a prompt condition is detected, acquiring detection time for detecting the target behavior;
if the detection time belongs to the detection time period of a first detection mode, immediately outputting first prompt information, wherein the first prompt information is used for indicating that the target behavior is detected in the detection time period of the first detection mode;
if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode;
wherein a duration of the detection period of the second detection mode is greater than a duration of the detection period of the first detection mode.
2. The method of claim 1, further comprising:
if the detection time belongs to the detection time interval of the first detection mode and the detection time interval of the second detection mode, immediately outputting the first prompt information, and counting the times of detecting the target behavior in the detection time interval of the second detection mode;
outputting the second prompt information within a prompt period associated with the detection period of the second detection mode.
3. The method of claim 1, further comprising:
and if the detection time belongs to the detection time interval of the first detection mode and belongs to the prompt time interval associated with the detection time interval of the second detection mode, outputting the second prompt information.
4. The method of claim 1, wherein outputting second prompting information during a prompting period associated with the detection period of the second detection mode comprises:
determining target prompting times according to the times of detecting the target behaviors in the detection time period of the second detection mode;
and outputting second prompt information in a prompt time interval associated with the detection time interval of the second detection mode according to the target prompt times.
5. The method of claim 4, wherein determining a target number of prompts based on a number of times the target behavior is detected within a detection period of the second detection mode comprises:
performing operation processing according to the interval threshold and the times of detecting the target behavior in the detection period of the second detection mode to obtain the times of undetermined prompting;
if the number of times of prompting to be determined is larger than or equal to a number threshold, determining the number threshold as a target number of times of prompting;
and if the number of times of pending prompting is smaller than the number threshold, determining the number of times of pending prompting as a target number of times of prompting.
6. The method according to any one of claims 1 to 5, wherein the detection period of the first detection mode is any one of at least two periods obtained by dividing the detection total period according to the period division rule of the first detection mode, and two adjacent periods of the at least two periods are not continuous and have the same duration.
7. The method according to any one of claims 1 to 5, wherein the detection period of the second detection mode is any one of at least two periods obtained by dividing the detection total period according to the period division rule of the second detection mode, and two adjacent periods of the at least two periods are consecutive and have the same duration.
8. A reminder device, comprising:
the processing unit is used for acquiring the detection time of the target behavior under the condition that the target behavior meeting the prompt condition is detected;
the output unit is used for immediately outputting first prompt information if the detection time belongs to the detection time interval of a first detection mode, wherein the first prompt information is used for indicating that the target behavior is detected in the detection time interval of the first detection mode; and if the detection time belongs to the detection time period of a second detection mode, counting the times of detecting the target behaviors in the detection time period of the second detection mode, and outputting second prompt information in a prompt time period associated with the detection time period of the second detection mode, wherein the second prompt information is used for indicating the times of detecting the target behaviors in the detection time period of the second detection mode, and the duration of the detection time period of the second detection mode is longer than that of the detection time period of the first detection mode.
9. A hinting apparatus comprising a processor, a memory and a communication interface, the processor, the memory and the communication interface being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform the method of any of claims 1 to 7.
CN201911387563.XA 2019-12-27 2019-12-27 Prompting method and device and computer readable storage medium Active CN111158481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911387563.XA CN111158481B (en) 2019-12-27 2019-12-27 Prompting method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911387563.XA CN111158481B (en) 2019-12-27 2019-12-27 Prompting method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111158481A CN111158481A (en) 2020-05-15
CN111158481B true CN111158481B (en) 2021-10-26

Family

ID=70558954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911387563.XA Active CN111158481B (en) 2019-12-27 2019-12-27 Prompting method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111158481B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225235B (en) * 2023-05-04 2023-08-08 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487649A (en) * 2014-09-19 2016-04-13 华为技术有限公司 Prompt method and mobile terminal
CN108449491A (en) * 2018-03-09 2018-08-24 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109558008A (en) * 2018-11-30 2019-04-02 腾讯科技(深圳)有限公司 Control method, device, computer equipment and storage medium
CN109819402A (en) * 2019-01-08 2019-05-28 李超豪 For supervising the method and its system that improve study habit
CN109864706A (en) * 2019-01-08 2019-06-11 廖旺才 Reminding method, device, computer equipment and the storage medium of user state information

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2535864Y (en) * 2000-06-05 2003-02-12 郑虎荣 Anti-myopia promptor capable of self-recording use state
US6975231B2 (en) * 2001-01-23 2005-12-13 Amron Corporation Systems and methods for improving hand hygiene compliance
TWI427567B (en) * 2011-07-04 2014-02-21 Oriental Inst Technology Anti-sitting device
CN104035550B (en) * 2013-03-07 2017-12-22 腾讯科技(深圳)有限公司 Information provides mode switching method and device
CN103400476B (en) * 2013-07-30 2016-04-20 步步高教育电子有限公司 A kind of sitting posture prompting method and device
CN204629135U (en) * 2014-09-26 2015-09-09 北京国电电科院检测科技有限公司 Intelligent flashlight
CN105741507A (en) * 2014-12-08 2016-07-06 西安天动数字科技有限公司 Screen distance detection prevention shortsightedness prompting device
CN105844867A (en) * 2016-03-18 2016-08-10 广东小天才科技有限公司 Method and device for correcting user sitting posture
CN106028429B (en) * 2016-04-28 2020-02-07 上海创功通讯技术有限公司 Mobile terminal and message prompting method thereof
WO2018013968A1 (en) * 2016-07-14 2018-01-18 Brightday Technologies, Inc. Posture analysis systems and methods
CN107566358B (en) * 2017-08-25 2020-10-30 腾讯科技(深圳)有限公司 Risk early warning prompting method, device, medium and equipment
CN107393261A (en) * 2017-09-18 2017-11-24 信利光电股份有限公司 A kind of method of writing desk and sitting posture prompting
CN109686063A (en) * 2019-02-27 2019-04-26 南京晓庄学院 A kind of education child sitting gesture intelligence calibrating installation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487649A (en) * 2014-09-19 2016-04-13 华为技术有限公司 Prompt method and mobile terminal
CN108449491A (en) * 2018-03-09 2018-08-24 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109558008A (en) * 2018-11-30 2019-04-02 腾讯科技(深圳)有限公司 Control method, device, computer equipment and storage medium
CN109819402A (en) * 2019-01-08 2019-05-28 李超豪 For supervising the method and its system that improve study habit
CN109864706A (en) * 2019-01-08 2019-06-11 廖旺才 Reminding method, device, computer equipment and the storage medium of user state information

Also Published As

Publication number Publication date
CN111158481A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN107343096B (en) Information reminding method and device, storage medium and electronic equipment
CN105282343A (en) Smart sleep reminding method and smart sleep reminding device
US20220346704A1 (en) Systems and methods for automated stress monitoring and intervention
US10105066B2 (en) Method and apparatus for controlling alarms
CN106453867A (en) Alarm clock control method and device
CN111158481B (en) Prompting method and device and computer readable storage medium
CN106484240A (en) Smart machine and eye protection alarm set and method
CN106200359A (en) Alarm clock prompting method, device and terminal
CN107515765B (en) Alarm turn-off method, system and terminal equipment
CN105100875B (en) A kind of control method and device of recording of multimedia information
CN106326065B (en) Terminal use duration management method and device
CN115755564A (en) Alarm clock control method based on sleep stage prediction, radar and storage medium
US20180199876A1 (en) User Health Monitoring Method, Monitoring Device, and Monitoring Terminal
CN110794092A (en) Sensor, control method, device and equipment thereof, and air quality monitoring equipment
KR102177740B1 (en) Method for estimating congnitive ability, system thereof and wearable device therefor
CN114173094A (en) Video monitoring method and device, computer equipment and storage medium
CN111637975B (en) Wrist temperature measuring method and device, wearable device and storage medium
CN111176440B (en) Video call method and wearable device
CN112819084A (en) Method and device for determining target sleep information
CN111479016A (en) Terminal use duration reminding method and device, terminal and storage medium
CN104572459B (en) A kind of information prompting method and device
CN110806909A (en) Method and device for determining page frame dropping information of application program and electronic equipment
CN112558901A (en) Time reminding method, screen sharing method and device
JP7230392B2 (en) Schedule management device and schedule management method
CN114187075A (en) Information pushing method, device, equipment and medium

Legal Events

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