Movatterモバイル変換


[0]ホーム

URL:


CN111970403B - Event reminding method and device, electronic equipment and storage medium - Google Patents

Event reminding method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN111970403B
CN111970403BCN202010754554.6ACN202010754554ACN111970403BCN 111970403 BCN111970403 BCN 111970403BCN 202010754554 ACN202010754554 ACN 202010754554ACN 111970403 BCN111970403 BCN 111970403B
Authority
CN
China
Prior art keywords
user
memo
target
event
minimum distance
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
CN202010754554.6A
Other languages
Chinese (zh)
Other versions
CN111970403A (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.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development 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 Beijing Sensetime Technology Development Co LtdfiledCriticalBeijing Sensetime Technology Development Co Ltd
Priority to CN202010754554.6ApriorityCriticalpatent/CN111970403B/en
Publication of CN111970403ApublicationCriticalpatent/CN111970403A/en
Application grantedgrantedCritical
Publication of CN111970403BpublicationCriticalpatent/CN111970403B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The application provides an event reminding method, an event reminding device, electronic equipment and a storage medium, wherein the method comprises the following steps: obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; acquiring a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions; and executing a corresponding memorandum event according to the behavior state, the target distance value and the current behavior state for reminding. According to the embodiment of the application, the trigger of the memorandum based on the geographic position is realized, and the accuracy of sending the prompt to the user is improved.

Description

Event reminding method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to an event reminding method and apparatus, an electronic device, and a storage medium.
Background
The event alert application is an application with a high use frequency in the existing terminal device, for example: memorandum, calendar, notepad, etc., are generally used to record the note contents or backlog in life or work. Most of the existing event reminding applications take time as a trigger condition, and when the current time reaches the trigger time of a memo reminding event, terminal equipment sends out reminding to a user in the forms of ring, vibration, screen flashing and the like. However, for the situation that the backlog handling time is difficult to estimate, the user cannot make an effective plan, and thus cannot set an accurate trigger time in the application, and even if the reminder is given in an approximate time, the possibility that the user forgets to handle the backlog is high, which makes it difficult to accurately send the reminder to the user in the prior art.
Disclosure of Invention
In view of the above problems, the present application provides an event reminding method, an event reminding device, an electronic device, and a storage medium, which are beneficial to accurately sending a reminder to a user.
In order to achieve the above object, a first aspect of the embodiments of the present application provides an event reminding method, including:
acquiring the current geographic position of a user;
obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1;
acquiring a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions;
and executing a corresponding memorandum event according to the behavior state, the target distance value and the current behavior state to remind.
With reference to the first aspect, in a possible implementation manner, the obtaining a target distance value according to distances between the current geographic location and the n trigger locations includes:
determining a minimum distance value from the distances between the current geographic position and the n trigger positions every time the distances between the current geographic position and the n trigger positions are obtained;
and acquiring the target distance value according to the minimum distance value.
With reference to the first aspect, in a possible implementation manner, the obtaining the target distance value according to the minimum distance value includes:
acquiring m minimum distance values in a preset time period; m is an integer greater than or equal to 1;
under the condition that the m minimum distance values all correspond to the same memo event in the n memo events, obtaining target values of the m minimum distance values;
determining a target value of the m minimum distance values as the target distance value.
With reference to the first aspect, in a possible implementation manner, the obtaining the current behavior state of the user according to the distance between the current geographic location and the n trigger locations includes:
determining the time for acquiring the minimum distance value contained in the m minimum distance values under the condition that the m minimum distance values all correspond to the same memo event in the n memo events;
and performing straight line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user.
With reference to the first aspect, in a possible implementation manner, the performing straight line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user includes:
acquiring points with the time of each minimum distance value as an abscissa and each minimum distance value as an ordinate to form a point set in a time (t) -distance (d) plane coordinate system;
fitting a linear equation according to the set of points: d (t) ═ k × t + b; wherein k is the slope of the linear equation d (t), and b is a constant;
and determining the current behavior state according to the value of the slope k.
With reference to the first aspect, in a possible implementation manner, the determining the current behavior state according to a value of a slope k includes:
determining that the current behavior state is away if the value of the slope k is greater than 0; determining the current behavior state as entry when the value of the slope k is less than 0; in the case where the value of the slope k is equal to 0, the current behavior state is determined to be stay.
With reference to the first aspect, in a possible implementation manner, the executing a corresponding memo event according to the behavior state, the target distance value, and the current behavior state to perform a reminder includes:
determining the same memo event corresponding to the m minimum distance values as a target memo event;
acquiring the behavior state of the target memo event;
and executing the target memo event for reminding under the condition that the target distance value is smaller than or equal to a first threshold value and the behavior state of the target memo event is the same as the current behavior state.
With reference to the first aspect, in one possible implementation manner, each of the n memo events further includes a reminding action, and the reminding action includes one or more of a ring tone, a vibration, a text, a screen flash, and a voice; the executing the target memo event for reminding comprises the following steps:
executing the reminding action of the target memo event to remind; and under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology.
After executing the target memo event for reminding, the method further comprises the following steps:
deleting the target memo event from a first storage queue; the first storage queue is used for storing the memo events created by the user.
With reference to the first aspect, in a possible implementation manner, after obtaining m minimum distance values within a preset time period, the method further includes:
adding m minimum distance values and memo events corresponding to the m minimum distance values to a second storage queue; the second storage queue is used for storing the minimum distance value determined from the distances between the current geographical position and the n trigger positions and the memo event corresponding to the minimum distance value each time the distance between the current geographical position and the n trigger positions is acquired;
and deleting the first minimum distance value stored in the second storage queue and the memo event corresponding to the minimum distance value under the condition that the length of the second storage queue is greater than a second threshold value.
With reference to the first aspect, in a possible implementation manner, the memo events in the n memo events further have corresponding face information of the user to be reminded; the method further comprises the following steps:
acquiring a face image of the user;
carrying out face recognition on the face image to obtain face information of the user;
and if the target user face information matched with the face information of the user exists in the face information of the user to be reminded, executing a memorandum event corresponding to the target user face information for reminding.
With reference to the first aspect, in a possible implementation manner, before acquiring the face image of the user, the method further includes:
receiving a memo event created by the memo event creator through a local application;
or
And receiving the memo event which is sent by the server and created by the memo event creator through another terminal device.
With reference to the first aspect, in a possible implementation manner, the acquiring a face image of the user includes:
acquiring the face image under the condition that the face of the user is detected through a face detection algorithm;
the performing face recognition on the face image to obtain the face information of the user includes:
extracting feature information of the face image through a neural network to obtain face information of the user;
the method further comprises the following steps:
acquiring the similarity between the face information of the user and the face information of the user to be reminded;
and determining the face information of the user to be reminded, of which the similarity is greater than or equal to a third threshold value, as the face information of the target user.
With reference to the first aspect, in a possible implementation manner, the executing a memo event corresponding to the target user face information for prompting includes:
executing the reminding action of the memorandum event corresponding to the face information of the target user to remind; under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology;
after executing the memo event corresponding to the target user face information for reminding, the method further comprises the following steps:
and deleting the memo events corresponding to the face information of the target user from the first storage queue.
A second aspect of the embodiments of the present application provides an event notification apparatus, including:
the geographic position acquisition module is used for acquiring the current geographic position of the user;
the distance calculation module is used for acquiring the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1;
a comparison parameter obtaining module, configured to obtain a target distance value and a current behavior state of the user according to distances between the current geographic location and the n trigger locations;
and the first event execution module is used for executing a corresponding memorandum event to remind according to the behavior state, the target distance value and the current behavior state.
A third aspect of embodiments of the present application provides an electronic device, which includes an input device, an output device, and a processor, and is adapted to implement one or more instructions; and a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of the method of the first aspect.
A fourth aspect of embodiments of the present application provides a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the steps of the method according to the first aspect.
The method comprises the steps of obtaining the current geographic position of a user; obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; acquiring a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions; and executing a corresponding memorandum event according to the behavior state, the target distance value and the current behavior state to remind. Therefore, information such as the target distance value and the current behavior state of the user is obtained based on the geographic position of the user, the memorandum events are executed according to the preset behavior state, the target distance value and the current behavior state of the user of each memorandum event, the trigger of the memorandum based on the geographic position is realized, and the accuracy rate of sending the prompt to the user is higher compared with the existing trigger based on time.
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. 1 is a schematic flowchart of an event reminding method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a first store queue according to an embodiment of the present disclosure;
fig. 3 is an exemplary diagram illustrating that all minimum distance values in a second storage queue correspond to the same memo event according to an embodiment of the present disclosure;
FIG. 4a is an exemplary graph of a linear equation with exit as a behavior state provided by an embodiment of the present application;
FIG. 4b is an exemplary graph of a line equation with an entered behavior state provided by an embodiment of the present application;
FIG. 4c is an exemplary graph of a linear equation with dwell as a behavior state provided by an embodiment of the present application;
fig. 5 is a schematic flowchart of another event reminding method according to an embodiment of the present application;
FIG. 6 is a diagram illustrating an example of a second store queue according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another event reminding method according to an embodiment of the present application;
fig. 8 is an exemplary diagram of a first terminal device creating a memo event for a second terminal device according to an embodiment of the present application;
FIG. 9 is a diagram of an example of another first store queue according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an event reminder device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another event reminder device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another event reminder device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
The terms "comprising" and "having," and any variations thereof, as appearing in the specification, claims, and drawings of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
The embodiment of the application provides an event reminding scheme, so that the reminding accuracy rate of a user is improved when the existing terminal equipment executes a memo event in a memo, in specific implementation, the memo event in the memo is triggered based on the geographic position or face information, compared with the existing scheme taking time as a trigger condition, the reminding accuracy is higher, even if the user is difficult to estimate the handling time of the to-do matters, accurate reminding can be achieved, and the user is not easy to forget the to-do matters.
The event reminding method provided by the embodiment of the application is explained in detail below with reference to the related drawings. Referring to fig. 1, fig. 1 is a schematic flow chart of an event reminding method according to an embodiment of the present application, where the event reminding method is applied to a terminal device, for example: as shown in fig. 1, the mobile phone, tablet, wearable device, terminal device installed on the entrance door of the resident, terminal device at the gate passageway, and vehicle-mounted terminal device that the user carries in daily life include steps S11-S14:
and S11, acquiring the current geographic position of the user.
In the embodiment of the present application, the current geographic Location of the user, that is, the coordinates (x0, y0) of the Location of the user, may be obtained in real time through an LBS (Location Based Services) function.
S12, obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1.
In the embodiment of the present application, the coordinates (xn, yn) of the trigger position, that is, the location of the trigger memo event en, are used to execute the memo event en corresponding to the trigger position (xn, yn) when the distance between the geographic position where the user is located and the trigger position (xn, yn) determined within a certain time (for example, T seconds) is less than or equal to a first threshold, where the first threshold may be dynamically set. The behavior state kn includes that the user leaves the trigger position (xn, yn) or enters the trigger position (xn, yn) or stays at the trigger position (xn, yn) for a certain time. The user creates memo events en through an application program (such as a memo) on the terminal device, and specifies a trigger position (xn, yn) of each memo event en through a map-like application program, and specifies a behavior state kn of each memo event en (the value of kn is defined to be greater than 0 for leaving, and less than 0 for entering, and equal to 0 for staying, for example, the trigger position of the memo event e1 created by A is company, then k1 is 1 for executing the memo event e1 when A leaves the company, k1 is-1 for executing the memo event e1 when A enters the company, and k1 is 0 for executing the memo event e1 when A stays for a long time), and a reminding action (for example, reminding manners such as ring tone, vibration, text, screen flash, voice and the like), the terminal device adds each memo event en created by the user to a first storage queue Q, wherein, the first storage queue Q is used to store all the memo events created by the memo event creator, where the memo event creator may be the user or a person other than the user, for example: family members, colleagues, etc. As shown in fig. 2, the first storage queue Q stores n memo events e1, e2, …, en, trigger positions (xn, yn) corresponding to each memo event en, an action state kn, and a reminding action pn, where the trigger position corresponding to each memo event en may be one of the n trigger positions, or may be a plurality of the n trigger positions. Optionally, the trigger condition of each memo event en may be a trigger position (xn, yn), the face information fn of the user to be reminded, or "trigger position (xn, yn) + the face information fn of the user to be reminded".
After the current geographical location of the user is obtained in step S11, the distances between the current geographical location and the n trigger locations (x1, y1), (x2, y2) … (xn, yn) of the n memo events in the first storage queue Q are calculated respectively based on the interface provided by the LBS, so as to obtain n distances.
S13, obtaining a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions.
In the embodiment of the present application, the target distance value refers to a distance value used when subsequently comparing with the set first threshold, and the current behavior state of the user refers to whether the user currently enters the trigger position (xn, yn) of the memo event en, leaves the trigger position (xn, yn) of the memo event en, or stays at the trigger position (xn, yn) of the memo event en within a certain time. After n distance values are obtained, a minimum distance value dmin is determined from the n distance values, and as shown in fig. 3, if m minimum distance values dmin determined within a preset time period (for example, T seconds) all correspond to the same memo event e1, that is, dmin1, dmin2, …, and dmin are distances between the current geographic position of the user and the trigger position (x1, y1) of the memo event e1, the target distance value dmin may be determined from the m determined minimum distance values dmin.
In obtaining the current behavior state of the user, the current behavior state of the user may be obtained by performing straight line fitting according to each minimum distance value dmin of the m minimum distance values dmin and the generation time of each minimum distance value dmin. Specifically, with each minimum distance value dmin as an ordinate and the generation time of each minimum distance value dmin as an abscissa, a point set (t1, dmin1), (t2, dmin2), …, (tm, dmin) in the time (t) -distance (d) of the planar coordinate system is obtained, and a straight line equation d (t) ═ k + b is fitted according to the point set in the time (t) -distance (d) of the planar coordinate system, where k is a slope of a straight line and b is a constant, when a value of the slope k is greater than 0, the current behavior state of the user is represented as a trigger position (x1, y1) corresponding to a leave memo event e1, and the straight line equation is shown in fig. 4a, and similarly, when a value of the slope k is less than 0, the current behavior state of the user is represented as a trigger position (x1, y1) corresponding to an enter memo event 1, and the straight line equation is shown in fig. 4b, when a value of the slope k is equal to 0, the current behavior state of the user is represented as staying at the trigger position (x1, y1) corresponding to the memo event e1 within a certain time, and the straight line equation is shown in fig. 4 c. Alternatively, a least squares method may be used to fit the line, i.e. the slope k and constant b of the line equation d (t) are solved by summing the squared errors from points in the set of points to the line.
And S14, executing corresponding memorandum events according to the behavior state, the target distance value and the current behavior state for reminding.
In this embodiment of the present application, under the condition that m minimum distance values all correspond to the same memo event e1, determine memo event e1 as a target memo event, after obtaining a target distance value and a current behavior state of a user, compare the target distance value with a first distance value, determine whether the target distance value is less than or equal to a first threshold, simultaneously, match a behavior state kn of the target memo event with the current behavior state of the user, if the target distance value is less than or equal to the first threshold, and match the behavior state kn of the target memo event with the current behavior state of the user, for example: and if the user leaves, executing the target memo event to remind the user.
Specifically, the reminding action of each memo event en may include one or more of a combination of ring tone, vibration, text, flashing screen and voice, and the reminding action of the target memo event, that is, the target memo event is executed, for example: the method can be used for carrying out Text reminding, namely, after work, a pharmacy purchases a mask, or voice reminding can be added at the same time, Text contents which are added in advance are converted into voice for broadcasting through a TTS (Text To Speech) technology, wherein the Text contents which are added in advance and need To be broadcasted in voice can be the same as or different from the contents of the Text reminding.
It can be seen that, in the embodiment of the application, the current geographic position of the user is obtained; obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; acquiring a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions; and executing a corresponding memorandum event according to the behavior state, the target distance value and the current behavior state for reminding. Therefore, information such as the target distance value and the current behavior state of the user is obtained based on the geographic position of the user, the memorandum events are executed according to the preset behavior state, the target distance value and the current behavior state of the user of each memorandum event, the trigger of the memorandum based on the geographic position is realized, and the accuracy rate of sending the prompt to the user is higher compared with the existing trigger based on time.
Referring to fig. 5, fig. 5 is a schematic flow chart of another event reminding method according to an embodiment of the present application, and as shown in fig. 5, the method includes steps S51-S56:
s51, acquiring the current geographic position of the user;
s52, obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1;
s53, determining a minimum distance value from the distances between the current geographic position and the n triggering positions every time the distances between the current geographic position and the n triggering positions are acquired;
s54, obtaining a target distance value according to the minimum distance value;
wherein, the obtaining the target distance value according to the minimum distance value includes:
acquiring m minimum distance values in a preset time period; m is an integer greater than or equal to 1;
under the condition that the m minimum distance values all correspond to the same memo event in the n memo events, obtaining target values of the m minimum distance values;
determining a target value of m of the minimum distance values as the target distance value.
In the specific embodiment of the application, each time the terminal device performs an operation of obtaining distances between a current geographic location and n trigger positions of n memo events, a minimum distance value is determined from the n distances, and at the same time, m minimum distance values obtained within the last T seconds (i.e., a preset time period) and a memo event corresponding to each minimum distance value are added to a second storage queue Qd, which may be specifically shown in fig. 6 and is mainly used to store a minimum distance value dmin and a corresponding memo event en determined from the n distances when the n distances are obtained each time. The terminal device detects every second whether m minimum distance values dmin in the second storage queue Qd all correspond to the same memo event en, and if m minimum distance values dmin all correspond to the same memo event en, determines a target value dminmed from m minimum distance values dmin1, dmin2, …, dmin, and optionally, the target value dminmed may be m minimum distance values dmin1, dmin2, …, a median, a mean, a mode, or any random value of dmin, and determines the target value dminmed as the target distance value. Preferably, the distance is determined by the median of m minimum distance values within a certain time period, which is beneficial to solving the problem of jump during LBS positioning and eliminating interference caused by inaccurate positioning.
S55, acquiring the current behavior state of the user according to the distance between the current geographic position and the n triggering positions;
and S56, executing corresponding memorandum events according to the behavior state, the target distance value and the current behavior state for reminding.
In one possible embodiment, after executing the target memo event for reminding, the method further comprises:
deleting the target tickler event from the first storage queue. In this embodiment, after the target memo event is executed, the target memo event is deleted from the first storage queue Q, which is beneficial to saving the storage space of the terminal device.
In a possible implementation, after obtaining m minimum distance values within a preset time period, the method further includes:
adding m minimum distance values and memo events corresponding to the m minimum distance values to a second storage queue;
and deleting the first minimum distance value stored in the second storage queue and the memo event corresponding to the minimum distance value under the condition that the length of the second storage queue is greater than a second threshold value.
In this embodiment, since the second storage queue Qd stores the minimum distance value dmin and the corresponding memo event en determined from the n distances each time the n distances are acquired, in order to facilitate the terminal device to determine whether the m minimum distance values within the latest T seconds in the second storage queue Qd correspond to the same memo event en, the length of the second storage queue Qd may be set to the second threshold T, and when the length of the second storage queue Qd is greater than the second threshold T, the first piece of data (i.e., a certain minimum distance value and a memo event corresponding to the minimum distance value) in the second storage queue Qd is deleted, so as to reduce the time consumed by the terminal device to detect the second storage queue Qd.
In a possible implementation manner, corresponding face information of a user to be reminded also exists in the memo events in the n memo events; as shown in fig. 7, the method further comprises:
and S71, acquiring the face image of the user.
And S72, carrying out face recognition on the face image to obtain the face information of the user.
In the embodiment of the application, the face information of the user to be reminded is the face information of the object to be reminded of the memo event, when the user is in the image acquisition range of the terminal equipment, the terminal equipment performs face detection through a face detection algorithm, and when the face of the user is detected, the face image of the user is acquired and subjected to face recognition so as to extract the face information of the user. Specifically, the face detection algorithm may be an anchor (anchor or anchor box) based algorithm, such as: a YOLO (young Only Look one, a glance target Detector), an SSD (Single Shot multi box Detector), a fast R-CNN (Faster candidate area Convolutional Neural network Detector), and the like, the face recognition may be implemented by a Neural network, such as a common residual error network ResNet, a U-type segmentation network U-Net, a recurrent Neural network rnn (recurrent Neural network), and the like, and the Neural network mainly performs feature information extraction on the input face image of the user through a feature extraction network thereof to obtain face information (i.e., a face feature value) of the user.
And S73, if the face information of the user to be reminded has the face information of the target user matched with the face information of the user, executing a memo event corresponding to the face information of the target user for reminding.
In the embodiment of the present application, the memo event creator may create a memo event through a local application (memo) on the terminal device, for example: and B, creating a memo event through an application program on the terminal equipment installed at the home entrance to remind the family member C to go out and take an umbrella, wherein the family member C is the user to be reminded. In some scenarios, the creator of the memo event may also create a memo event for another terminal device through an application on one terminal device, as shown in fig. 8, B may create a memo event for a second terminal device through a first terminal device, for example: b, creating a memo event through an application program on the first terminal device to remind the family member C to take a shopping bag when going out for shopping, submitting the created memo event to the server by the first terminal device, sending the memo event to the second terminal device of the family member C by the server, and executing the steps S71-S73 by the second terminal device.
Specifically, as shown in fig. 9, in the first storage queue, each of the n memo events has corresponding face information fn of the user to be reminded in addition to a corresponding trigger position (xn, yn), a behavior state kn, and a reminding action pn, and each of the face information fn of the user to be reminded can be extracted from a face image of the user to be reminded uploaded by a memo event creator.
After the face information of the user is obtained in step S72, the terminal device matches the face information of the user with the face information of the user to be reminded corresponding to each memo event in n memo events, calculates the similarity between the two, and determines the face information of the user to be reminded as the face information of the target user if the similarity between the face information of the user to be reminded corresponding to a certain memo event and the face information of the user is greater than or equal to a third threshold (e.g., 95%), for example: if the similarity between the face information f1 of the user to be reminded corresponding to the memo event e1 and the face information of the user is greater than or equal to a third threshold, determining the face information f1 of the user to be reminded as the face information of the target user, and if the user to be reminded of the memo event e1 is too much of the memo event creator B, determining that the user is too much of the memo event creator B, and executing the memo event e1 to remind the user of the too much of the memo event creator B.
Specifically, executing a memo event corresponding to the target user face information, that is, executing a reminding action of the memo event corresponding to the target user face information, for example: voice reminding can be performed, when the memo event creator B is too close To the terminal device, the terminal device detects the face of the memo event creator B, recognizes that the face information of the memo event creator B matches with the face information f1 of the user To be reminded of the memo event e1, and converts the Text content added in advance into voice for broadcasting through a TTS (Text To Speech) technology, for example: remind not to cook too late night, eat at restaurant.
In a possible implementation manner, after the reminding of the memo event corresponding to the face information of the target user is performed, the method further includes: and deleting the memo event corresponding to the target user face information from the first storage queue. In this embodiment, the memo events that have already been executed are deleted from the first storage queue to save the storage space of the terminal device.
It can be seen that, in the embodiment of the present application, the face image of the user is obtained; carrying out face recognition on the face image to obtain face information of the user; and if the target user face information matched with the face information of the user exists in the face information of the user to be reminded, executing a memorandum event corresponding to the face information of the target user to remind, so that the triggering of the memorandum based on the face information is realized, and compared with the existing triggering based on time, the accuracy rate of reminding the user is higher.
Based on the description of the above method embodiment, an event reminding device is further provided in an embodiment of the present application, please refer to fig. 10, where fig. 10 is a schematic structural diagram of an event reminding device provided in an embodiment of the present application, and as shown in fig. 10, the device includes:
a geographicposition obtaining module 1001 configured to obtain a current geographic position of a user;
adistance calculation module 1002, configured to obtain distances between the current geographic location and n trigger locations of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1;
a comparisonparameter obtaining module 1003, configured to obtain a target distance value and a current behavior state of the user according to distances between the current geographic location and the n trigger locations;
and a firstevent executing module 1004, configured to execute a corresponding memo event according to the behavior state, the target distance value, and the current behavior state to perform a prompt.
In a possible implementation manner, in terms of obtaining the target distance value according to the distance between the current geographic location and the n trigger locations, the comparisonparameter obtaining module 1003 is specifically configured to:
determining a minimum distance value from the distances between the current geographic position and the n trigger positions every time the distances between the current geographic position and the n trigger positions are obtained;
and acquiring the target distance value according to the minimum distance value.
In a possible implementation manner, in obtaining the target distance value according to the minimum distance value, the comparisonparameter obtaining module 1003 is specifically configured to:
acquiring m minimum distance values in a preset time period; m is an integer greater than or equal to 1;
under the condition that the m minimum distance values all correspond to the same memo event in the n memo events, obtaining target values of the m minimum distance values;
determining a target value of m of the minimum distance values as the target distance value.
In a possible implementation manner, in terms of obtaining the current behavior state of the user according to the distance between the current geographic location and the n trigger locations, the comparisonparameter obtaining module 1003 is specifically configured to:
determining the time for acquiring the minimum distance value contained in the m minimum distance values under the condition that the m minimum distance values all correspond to the same memo event in the n memo events;
and performing straight line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user.
In a possible embodiment, in terms of performing straight line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user, the comparisonparameter obtaining module 1003 is specifically configured to:
acquiring points with the time of each minimum distance value as an abscissa and each minimum distance value as an ordinate to form a point set in a time (t) -distance (d) plane coordinate system;
fitting a linear equation according to the set of points: d (t) ═ k × t + b; wherein k is the slope of the linear equation d (t), and b is a constant;
and determining the current behavior state according to the value of the slope k.
In a possible implementation manner, in determining the current behavior state according to the value of the slope k, the comparisonparameter obtaining module 1003 is specifically configured to:
determining that the current behavior state is away when the value of the slope k is greater than 0; determining the current behavior state as entry when the value of the slope k is less than 0; in the case where the value of the slope k is equal to 0, the current behavior state is determined to be stay.
In a possible implementation manner, in terms of executing a corresponding memo event according to the behavior state, the target distance value, and the current behavior state for prompting, the firstevent executing module 1004 is specifically configured to:
determining the same memo event corresponding to the m minimum distance values as a target memo event;
acquiring the behavior state of the target memo event;
and executing the target memo event for reminding under the condition that the target distance value is smaller than or equal to a first threshold value and the behavior state of the target memo event is the same as the current behavior state.
In a possible implementation manner, in executing the target memo event for reminding, the firstevent executing module 1004 is specifically configured to: executing the reminding action of the target memo event to remind; and under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology.
The firstevent execution module 1004 is further configured to: deleting the target memo event from a first storage queue; the first storage queue is used for storing the memo events created by the memo event creator.
In one possible implementation, thedistance calculation module 1002 is further configured to: adding m minimum distance values and memo events corresponding to the m minimum distance values to a second storage queue; the second storage queue is used for storing the minimum distance value determined from the distances between the current geographical position and the n trigger positions and the memo event corresponding to the minimum distance value each time the distance between the current geographical position and the n trigger positions is acquired;
and deleting the first minimum distance value stored in the second storage queue and the memo event corresponding to the minimum distance value under the condition that the length of the second storage queue is greater than a second threshold value.
In one possible embodiment, as shown in fig. 11, the apparatus further includes animage acquisition module 1005, aface recognition module 1006, and a secondevent execution module 1007;
animage acquisition module 1005, configured to acquire a face image of the user;
aface recognition module 1006, configured to perform face recognition on the face image to obtain face information of the user;
a secondevent executing module 1007, configured to execute a memo event corresponding to the face information of the target user for prompting if the face information of the target user matched with the face information of the user exists in the face information of the user to be prompted.
In one possible implementation, as shown in fig. 12, the apparatus further comprises a memoevent receiving module 1008, the memoevent receiving module 1008 is to:
receiving a memo event created by the memo event creator through a local application;
or
And receiving the memo event which is sent by the server and created by the memo event creator through another terminal device.
In a possible implementation, in terms of acquiring a face image of the user, theimage acquisition module 1005 is specifically configured to: acquiring the face image under the condition that the face of the user is detected through a face detection algorithm;
in terms of performing face recognition on the face image to obtain face information of the user, theface recognition module 1006 is specifically configured to:
extracting feature information of the face image through a neural network to obtain face information of the user;
theface recognition module 1006 is further configured to: acquiring the similarity between the face information of the user and the face information of the user to be reminded;
and determining the face information of the user to be reminded, of which the similarity is greater than or equal to a third threshold value, as the face information of the target user.
In a possible implementation manner, in the aspect of executing a memo event corresponding to the target user face information for reminding, the secondevent execution module 1007 is specifically configured to:
executing the reminding action of the memorandum event corresponding to the target user face information to remind; under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology;
the secondevent execution module 1007 is further configured to: and deleting the memo event corresponding to the target user face information from the first storage queue.
According to an embodiment of the present application, the units in the event reminder devices shown in fig. 10 to 12 may be respectively or entirely combined into one or several other units to form the event reminder device, or some unit(s) therein may be further split into multiple units with smaller functions to form the event reminder device, which may implement the same operation without affecting implementation of technical effects of 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 event-based reminder 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 multiple units.
According to another embodiment of the present application, the event alert apparatus shown in fig. 10 to 12 may be constructed by running a computer program (including program code) capable of executing the steps involved in the corresponding method shown in fig. 1, fig. 5 or fig. 7 on a general-purpose computing device 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) or the like and a storage element, and the event alert method of the embodiment of the present application may be implemented. 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 description of the method embodiment and the device embodiment, the embodiment of the application further provides an electronic device. Referring to fig. 13, the electronic device includes at least aprocessor 1301, aninput device 1302, anoutput device 1303, and acomputer storage medium 1304. Theprocessor 1301, theinput device 1302, theoutput device 1303, and thecomputer storage medium 1304 in the electronic device may be connected by a bus or other means.
Acomputer storage medium 1304 may be stored in the memory of the electronic device, thecomputer storage medium 1304 being for storing a computer program comprising program instructions, theprocessor 1301 being for executing the program instructions stored by thecomputer storage medium 1304. The processor 1301 (or CPU) is a computing core and a control core of the electronic device, and is adapted to implement one or more instructions, and in particular, to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function.
In one embodiment, theprocessor 1301 of the electronic device provided in this embodiment of the present application may be configured to perform a series of memo event reminding processes:
acquiring the current geographic position of a user;
obtaining the distance between the current geographic position and n trigger positions of n memo events; the memo events in the n memo events have corresponding trigger positions and behavior states; the behavior state is used for indicating that the user leaves, enters the trigger position or stays at the trigger position; n is an integer greater than or equal to 1;
acquiring a target distance value and the current behavior state of the user according to the distance between the current geographic position and the n triggering positions;
and executing a corresponding memorandum event according to the behavior state, the target distance value and the current behavior state for reminding.
In one embodiment,processor 1301 is configured to perform the obtaining of the target distance value according to the distance between the current geographic location and the n trigger locations, including:
determining a minimum distance value from the distances between the current geographic position and the n trigger positions every time the distances between the current geographic position and the n trigger positions are obtained;
and acquiring the target distance value according to the minimum distance value.
In another embodiment,processor 1301 performs the obtaining the target distance value according to the minimum distance value, including:
acquiring m minimum distance values in a preset time period; m is an integer greater than or equal to 1;
under the condition that the m minimum distance values all correspond to the same memo event in the n memo events, obtaining target values of the m minimum distance values;
determining a target value of m of the minimum distance values as the target distance value.
In another embodiment,processor 1301 executes the obtaining of the current behavior state of the user according to the distance between the current geographic position and the n trigger positions, including:
determining the time for acquiring the minimum distance value contained in the m minimum distance values under the condition that the m minimum distance values all correspond to the same memo event in the n memo events;
and performing straight line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user.
In another embodiment,processor 1301 performs the line fitting according to the time of the minimum distance value and the minimum distance value to obtain the current behavior state of the user, including:
acquiring points with the time of each minimum distance value as an abscissa and each minimum distance value as an ordinate to form a point set in a time (t) -distance (d) plane coordinate system;
fitting a linear equation according to the set of points: d (t) ═ k × t + b; wherein k is the slope of the linear equation d (t), and b is a constant;
and determining the current behavior state according to the value of the slope k.
In still another embodiment,processor 1301 performs the determining the current behavior state according to the value of slope k, including:
determining that the current behavior state is away if the value of the slope k is greater than 0; determining the current behavior state as entry when the value of the slope k is less than 0; in the case where the value of the slope k is equal to 0, the current behavior state is determined to be stay.
In another embodiment, the executing, by theprocessor 1301, the corresponding memo event to remind according to the behavior state, the target distance value and the current behavior state includes:
determining the same memo event corresponding to the m minimum distance values as a target memo event;
acquiring the behavior state of the target memo event;
and executing the target memo event for reminding under the condition that the target distance value is less than or equal to a first threshold value and the behavior state of the target memo event is the same as the current behavior state.
In another embodiment, each of the n memo events further includes a reminding action, and the reminding action includes one or more of a ring tone, a vibration, a text, a flashing screen, and a voice;processor 1301 executes the target memo event for reminding, including:
executing the reminding action of the target memo event to remind; and under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology.
Processor 1301 is also configured to: deleting the target memo event from a first storage queue; the first storage queue is used for storing the memo events created by the memo event creator.
In yet another embodiment,processor 1301 is further configured to: adding m minimum distance values and memo events corresponding to the m minimum distance values to a second storage queue; the second storage queue is used for storing the minimum distance value determined from the distances between the current geographical position and the n trigger positions and the memo event corresponding to the minimum distance value each time the distance between the current geographical position and the n trigger positions is acquired;
and deleting the first minimum distance value stored in the second storage queue and the memo event corresponding to the minimum distance value under the condition that the length of the second storage queue is greater than a second threshold value.
In another embodiment, the memo events in the n memo events further have corresponding face information of the user to be reminded;processor 1301 is further configured to:
acquiring a face image of the user;
carrying out face recognition on the face image to obtain face information of the user;
and if the target user face information matched with the face information of the user exists in the face information of the user to be reminded, executing a memorandum event corresponding to the target user face information for reminding.
In another embodiment, before acquiring the face image of the user, theprocessor 1301 is further configured to:
receiving a memo event created by the memo event creator through a local application program;
or
And receiving the memo event which is sent by the server and created by the memo event creator through another terminal device.
In another embodiment,processor 1301 executes the acquiring of the face image of the user, including: acquiring the face image under the condition that the face of the user is detected through a face detection algorithm;
theprocessor 1301 executes the face recognition on the face image to obtain face information of the user, including:
extracting feature information of the face image through a neural network to obtain face information of the user;
processor 1301 is further configured to: acquiring the similarity between the face information of the user and the face information of the user to be reminded; and determining the face information of the user to be reminded, of which the similarity is greater than or equal to a third threshold value, as the face information of the target user.
In another embodiment, theprocessor 1301 executing a memo event corresponding to the target user face information to remind, including:
executing the reminding action of the memorandum event corresponding to the target user face information to remind; under the condition that the reminding action comprises voice reminding, voice broadcasting is carried out through a TTS technology;
in another embodiment, after the memo event corresponding to the face information of the target user is executed for prompting, theprocessor 1301 is further configured to: and deleting the memo event corresponding to the target user face information from the first storage queue.
For example, the electronic device may be a mobile phone, a tablet computer, a server, a wearable device, an in-vehicle device, a door access device, and the like, the electronic device may include, but is not limited to, aprocessor 1301, aninput device 1302, anoutput device 1303, and acomputer storage medium 1304, theinput device 1302 may be a keyboard, a touch screen, and the like, and theoutput device 1303 may be a speaker, a display, a radio frequency transmitter, and the like. It will be appreciated by those skilled in the art that the schematic diagrams are merely examples of an electronic device and are not limiting of an electronic device and may include more or fewer components than those shown, or some components in combination, or different components.
It should be noted that, because the steps in the event reminding method are implemented when theprocessor 1301 of the electronic device executes the computer program, the embodiments of the event reminding method are all applicable to the electronic device, and all can achieve the same or similar beneficial effects.
An embodiment of the present application further provides a computer storage medium (Memory), which is a Memory device in an electronic device and is used to store programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution byprocessor 1301. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, there may be at least one computer storage medium located remotely from theprocessor 1301. In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed byprocessor 1301 to perform the corresponding steps described above with respect to the event reminder method.
Illustratively, the computer program of the computer storage medium includes computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that, since the computer program of the computer storage medium is executed by the processor to implement the steps in the event reminding method, all the embodiments of the event reminding method are applicable to the computer storage medium, and can achieve the same or similar beneficial effects.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

a comparison parameter obtaining module, configured to obtain a target distance value and a current behavior state of the user according to distances between the current geographic location and the n trigger locations; the target value is the median of m minimum distance values, and m is an integer greater than 1; the current behavior state is obtained by performing straight line fitting according to each minimum distance value in the m minimum distance values and the generation time of each minimum distance value, when the value of the slope k of a straight line is greater than 0, the current behavior state of the user is shown to be away, when the value of the slope k is less than 0, the current behavior state of the user is shown to be in, and when the value of the slope k is equal to 0, the current behavior state of the user is shown to be stopped;
CN202010754554.6A2020-07-302020-07-30Event reminding method and device, electronic equipment and storage mediumActiveCN111970403B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010754554.6ACN111970403B (en)2020-07-302020-07-30Event reminding method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010754554.6ACN111970403B (en)2020-07-302020-07-30Event reminding method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN111970403A CN111970403A (en)2020-11-20
CN111970403Btrue CN111970403B (en)2022-07-08

Family

ID=73364087

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010754554.6AActiveCN111970403B (en)2020-07-302020-07-30Event reminding method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN111970403B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116259162A (en)*2022-12-302023-06-13海尔优家智能科技(北京)有限公司Prompting method and device for prompting content, storage medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106250149A (en)*2016-07-292016-12-21乐视控股(北京)有限公司A kind of based reminding method and terminal
CN111106997A (en)*2019-12-302020-05-05北京三快在线科技有限公司Message reminding method, device, equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2007066106A (en)*2005-08-312007-03-15Fujitsu Ltd Route guidance device
US8942729B2 (en)*2012-02-022015-01-27Apple Inc.Location based methods, systems, and program products for performing an action at a user device
CN102595322B (en)*2012-03-192018-11-30Vid拓展公司 Method and device for reminding user by using mobile terminal based on set position
CN102932736A (en)*2012-10-222013-02-13深圳市中兴移动通信有限公司Regional alarm method and system based on location based services
CN102970654A (en)*2012-11-142013-03-13广东欧珀移动通信有限公司 A geographical location-based event reminder method and device
CN104408959B (en)*2014-10-272017-06-16小米科技有限责任公司Reminding method, device and terminal
CN106453558B (en)*2016-10-132019-11-05北京京东尚科信息技术有限公司A kind of information-pushing method, device and terminal
CN106921797A (en)*2017-02-142017-07-04北京小米移动软件有限公司Information prompting method and device
CN109587326B (en)*2018-11-092021-08-10深圳壹账通智能科技有限公司Prompting method and device of mobile terminal, storage medium and computer equipment
CN110601929A (en)*2019-08-292019-12-20恒大智慧科技有限公司Event reminding method and system and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106250149A (en)*2016-07-292016-12-21乐视控股(北京)有限公司A kind of based reminding method and terminal
CN111106997A (en)*2019-12-302020-05-05北京三快在线科技有限公司Message reminding method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN111970403A (en)2020-11-20

Similar Documents

PublicationPublication DateTitle
CN109147797B (en)Customer service method, device, computer equipment and storage medium based on voiceprint recognition
US9436816B2 (en)Supplementing biometric identification with device identification
CN110060674B (en)Table management method, device, terminal and storage medium
CN105528403B (en)Target data identification method and device
CN111611390B (en)Data processing method and device
CN104575537A (en)Music switching method and user equipment
CN109003607B (en)Voice recognition method, voice recognition device, storage medium and electronic equipment
CN110096590A (en)A kind of document classification method, apparatus, medium and electronic equipment
WO2019062358A1 (en)Application program control method and terminal device
CN111970403B (en)Event reminding method and device, electronic equipment and storage medium
CN103763430B (en)A kind of event-prompting method, device and terminal unit
US11622227B2 (en)Location tracking with loitering logic
CN108600559B (en) Control method, device, storage medium and electronic device for silent mode
CN108922520B (en)Voice recognition method, voice recognition device, storage medium and electronic equipment
CN112417318A (en)Method and device for determining state of interest point, electronic equipment and medium
CN111402617A (en)Site information determination method, device, terminal and storage medium
CN108572746B (en)Method, apparatus and computer readable storage medium for locating mobile device
CN110738267A (en)Image classification method and device, electronic equipment and storage medium
US8934880B2 (en)Movement detection system for a portable device such as a portable phone
CN111428806B (en)Image tag determining method and device, electronic equipment and storage medium
CN110471538B (en)Input prediction method and device
CN107580107A (en)A kind of position reminding method, apparatus, computer installation and storage medium
CN106649698B (en) Information processing method and information processing device
CN113488002B (en)Abnormal screen brightness adjusting method and device, electronic equipment and medium
CN108989551A (en)Position indicating method, device, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp