Mailbox alarm method and system, electronic equipment and storage medium
The six-axis sensor detects the difference between the movement data of the mailbox door and the internal information, which solves the problem that the mailbox cannot be detected in real time, realizes the abnormal alarm function, and ensures the safety and timeliness of the mailbox.
Patent Information
- Application Number
- CN202511144479.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-15
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-08-15
AI Technical Summary
Existing mailboxes lack intelligent detection capabilities and are unable to know in real time whether the mailbox door is opened, resulting in the inability to check items in a timely manner and the risk of mail being stolen.
A six-axis sensor is used to detect the motion data of the mailbox door, and the abnormal state is judged based on the internal information difference, and an alarm message is sent through the communication module.
The abnormal alarm function of the mailbox is realized, ensuring the security and timeliness of the mailbox and preventing mail from being stolen or foreign objects from entering.
Smart Images

Figure CN120708378A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mailbox alarms, and in particular to a mailbox alarm method, system, electronic device, and storage medium. Background Art
[0002] Most mailboxes currently available are simple physical containers, serving only the basic purpose of storing mail and other items. They lack the ability to intelligently detect whether the mailbox door is open. This prevents users from knowing in real time whether the mailbox door has been opened (e.g., whether mail has been delivered or removed). This not only makes it difficult to check the contents promptly, but can even lead to mail theft. Therefore, implementing an alarm system for mailboxes informing users of any abnormalities is a pressing issue. Summary of the Invention
[0003] The embodiments of the present application provide a mailbox alarm method, system, electronic device and storage medium, which realize the abnormal alarm function of the mailbox.
[0004] In a first aspect, an embodiment of the present application provides a mailbox alarm method, which is applied to a mailbox alarm device, wherein the mailbox alarm device includes a six-axis sensor and a communication module, and the mailbox alarm device is disposed inside a target mailbox. The method includes: Obtaining internal information of a first mailbox of the target mailbox; detecting target motion data of a mailbox door of the target mailbox by the six-axis sensor; Determine a target detection result according to the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; When the target detection result includes that the mailbox door is opened, obtaining the second mailbox internal information of the target mailbox; Determining target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; The target alarm information is sent to the administrator via the communication module to ensure mailbox security.
[0005] In a second aspect, an embodiment of the present application provides a mailbox alarm system, which is applied to a mailbox alarm device, wherein the mailbox alarm device includes a six-axis sensor and a communication module, and the mailbox alarm device is disposed inside a target mailbox. The system includes: an acquisition unit, an anomaly detection unit, and an alarm unit, wherein: The acquisition unit is configured to acquire internal information of a first mailbox of the target mailbox; and detect target motion data of a mailbox door of the target mailbox by using the six-axis sensor; The abnormality detection unit is configured to determine a target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; The acquisition unit is further configured to acquire the second mailbox internal information of the target mailbox when the target detection result includes that the mailbox door is opened; The alarm unit is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and send the target alarm information to the management personnel through the communication module to ensure the safety of the mailbox.
[0006] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application.
[0008] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0009] The implementation of this application has the following beneficial effects: It can be seen that the mailbox alarm method described in this application first confirms whether the mailbox door is open through a six-axis sensor, and then compares the difference in internal information before and after the door is opened to determine whether there is an abnormality (such as mail theft, foreign objects intrusion, etc.). After confirming the existence of the abnormality, an early warning operation is performed through the communication module, thereby realizing the abnormal alarm function of the mailbox. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0011] Figure 1 This is a structural diagram of a mailbox alarm device provided in an embodiment of the present application; Figure 2This is a structural diagram of another mailbox alarm device provided in an embodiment of the present application; Figure 3 This is a scenario application diagram of a mailbox alarm device provided by an embodiment of the present application; Figure 4 This is a flowchart of a mailbox alarm method provided by an embodiment of the present application; Figure 5 This is a flow chart of a method for determining a target detection result provided in an embodiment of the present application; Figure 6 is a flowchart of another method for determining target detection results provided in an embodiment of the present application; Figure 7 This is a structural diagram of a mailbox alarm system provided by an embodiment of the present application; Figure 8 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0012] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0013] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0014] It should be understood that the term "and / or" in this document is merely a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document indicates that the associated objects are in an "or" relationship. The "plurality" appearing in the embodiments of this application refers to two or more.
[0015] In the embodiments of the present application, "at least one item" or similar expressions refers to any combination of these items, including any combination of single items or plural items, and refers to one or more, and multiple refers to two or more. For example, at least one item (item) of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0016] The "connection" appearing in the embodiments of the present application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not impose any limitations on this.
[0017] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0018] The electronic devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile internet devices (MIDs) or wearable devices, etc. The above are only examples and not exhaustive, including but not limited to the above devices.
[0019] Of course, the electronic device can also be a mailbox alarm device.
[0020] The following describes the relevant contents, concepts, meanings, technical issues, technical solutions, beneficial effects, etc. involved in the embodiments of this application.
[0021] First, some professional terms involved in this application are explained: A six-axis sensor is a composite sensor that integrates a three-axis accelerometer and a three-axis gyroscope. It can simultaneously detect two states of motion of an object in three-dimensional space. The three-axis accelerometer can measure the linear acceleration of an object in the X, Y, and Z directions, reflecting the speed of the object's movement (such as the push and pull force and speed increase or decrease when opening a door). The three-axis gyroscope can measure the angular velocity of an object around the X, Y, and Z axes, reflecting the speed of the object's rotational movement (such as the rate of change of the rotation angle when opening a door). In this application, the six-axis sensor is used to detect the opening and closing of the mailbox door (such as whether it is rotating, the rotation speed, and the push and pull force), providing data support for determining whether the mailbox door is open.
[0022] Mailbox alarm: refers to the function of detecting abnormal status of the mailbox (such as the mailbox door being illegally opened, internal items being stolen, foreign objects appearing, etc.) through sensors and transmitting abnormal information to managers or users.
[0023] See also Figure 1 , Figure 1 : This is a schematic diagram of the structure of a mailbox alarm device provided in an embodiment of the present application; it can be seen that the mailbox alarm device may include a six-axis sensor, a communication module, a control module, etc., which are not limited here, wherein: The six-axis sensor is used to collect data. It integrates a three-axis accelerometer and a three-axis gyroscope. It can detect the motion data of the mailbox door (acceleration, angular velocity changes) and identify "whether the mailbox door is open" (such as the motion characteristics when rotating, pushing or pulling); it can convert the motion data into electrical signals and transmit them to the communication module and / or control module in real time.
[0024] The communication module is used to transmit data. Common types include 4G modules, WiFi modules, and Bluetooth modules. It can receive "alarm instructions" from the control module and send information (such as "mailbox door abnormally opened") to the management personnel.
[0025] The control module coordinates the operations of other modules and is typically composed of a single-chip microcontroller or embedded chip. It receives and analyzes data from the six-axis sensor (to determine the mailbox door's motion status) to determine whether to trigger an alarm. If an alarm is triggered, it sends a "send alarm" command to the communication module.
[0026] It needs to be explained that in order to save costs, the structure of the mailbox alarm device can be simplified, the control module of the mailbox alarm device can be removed, and a cloud server can be used instead. The communication module can communicate with the cloud server, and the cloud server receives real-time data uploaded by the communication module (for example, the motion data of the mailbox door, etc.), and analyzes the data to determine whether to trigger an alarm, thereby realizing the functional replacement of the control module.
[0027] See also Figure 2 , Figure 2 This is a structural diagram of another mailbox alarm device provided in an embodiment of the present application; it can be seen that in addition to including a six-axis sensor, a communication module, and a control module, the mailbox alarm device can also include a power module, which supplies power to the mailbox alarm device.
[0028] See also Figure 3 , Figure 3This is a scenario application diagram of a mailbox alarm device provided by an embodiment of the present application. It can be seen that the mailbox alarm device is installed on the inner side wall of the target mailbox (in an area close to the door but not affecting the door's opening and closing) to prevent external damage. At the same time, it is close to the movement area of the door, making it convenient for the six-axis sensor to detect the movement of the door (such as rotation, acceleration / angular velocity changes during pushing and pulling). When someone attempts to open the "mailbox door", the mailbox alarm device can execute the mailbox alarm method provided by the embodiment of the present application, as follows: Obtaining internal information of a first mailbox of the target mailbox; detecting target motion data of a mailbox door of the target mailbox by the six-axis sensor; Determine a target detection result according to the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; When the target detection result includes that the mailbox door is opened, obtaining the second mailbox internal information of the target mailbox; Determining target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; The target alarm information is sent to the administrator via the communication module to ensure mailbox security.
[0029] It should be explained that the above-mentioned mailbox alarm device can also execute part or all of the steps of the mailbox alarm method provided in the embodiment of the present application.
[0030] See also Figure 4 , Figure 4 This is a flowchart of a mailbox alarm method provided by an embodiment of the present application. The method is applied to a mailbox alarm device (hereinafter referred to as the device), which may include a six-axis sensor and a communication module. The mailbox alarm device is disposed inside a target mailbox. The method includes but is not limited to the following steps: S401: Obtain internal information of a first mailbox of the target mailbox.
[0031] In the embodiment of the present application, a six-axis sensor can be used to detect the movement state of the mailbox door (such as acceleration, angular velocity changes). When the door is detected to move from rest to movement (linear acceleration suddenly changes from 0), it is determined that the door opening has started. When the door is detected to return from movement to rest (linear acceleration returns to 0 and lasts for a certain period of time, such as 2 seconds), it is determined that the door opening has ended. The time difference between the start and end of the door opening is calculated to obtain the first door opening duration. In addition, a weighing sensor can be installed at the bottom of the target mailbox or under the mail carrying surface, and the pressure change is used to reflect the number of mails. The weighing data is obtained by the weighing sensor detection. The weighing sensor can be physically or communicatively connected to the communication module, thereby transmitting the weighing data to the above-mentioned device. Each time new mail is added, the weight increases, and the device can adjust the weight according to the unit mail weight (which can be pre-set Weight, such as the average weight of ordinary letters and small parcels), calculate the change in the number of mails (the weight change value is divided by the unit mail weight and rounded up), add the change in the number of mails and the initial mail quantity to obtain the first mail quantity. Similarly, the device may also include an environmental sensor, which detects the environmental data around the target mailbox through the environmental sensor to obtain the first environmental data. Specifically, the environmental data may include at least one of the following: temperature, humidity, light intensity, etc., which are not limited here. For example, assuming that the environmental data is temperature, the environmental sensor may be a temperature sensor, which detects the temperature around the target mailbox through the temperature sensor to obtain temperature data, that is, the first environmental data. Finally, the internal information of the first mailbox can be composed of the first door opening duration, the first mail quantity, and the first environmental data.
[0032] S402: Detect target motion data of the mailbox door of the target mailbox using the six-axis sensor.
[0033] In an embodiment of the present application, the six-axis sensor can be integrated with a three-axis accelerometer and a three-axis gyroscope; the six-axis sensor can be rigidly fixed on the inside of the mailbox door, close to the hinge (the rotation axis of the mailbox door), so that the X, Y, and Z axes of the six-axis sensor are consistent with the movement direction of the mailbox door (for example, the X-axis can point to the width direction of the mailbox door, the Y-axis can point to the height direction of the mailbox door, and the Z-axis can point to the thickness direction of the mailbox door), which facilitates subsequent data analysis.
[0034] In a specific embodiment, the sampling frequency of the six-axis sensor can be set first, for example, 50~100 Hz (i.e., data is collected 50~100 times per second) to ensure that the details of the rapid door opening action are captured. Then, the six-axis sensor is operated at the set sampling frequency to collect linear acceleration and angular velocity data of the mailbox door of the target mailbox. Specifically, the linear acceleration of the mailbox door on the X, Y, and Z axes can be collected by a three-axis accelerometer to obtain three linear acceleration data, and the angular velocity of the mailbox door on the X, Y, and Z axes can be collected by a three-axis gyroscope to obtain three angular velocity data, thereby obtaining target motion data.
[0035] S403. Determine a target detection result according to the target motion data; the target detection result includes one of the following: the mailbox door is opened, and the mailbox door is not opened.
[0036] Optionally, the target motion data includes: 3 linear acceleration data and 3 angular velocity data, each linear acceleration data corresponds to one angular velocity data, please refer to Figure 5 , Figure 5 This is a flow chart of a method for determining a target detection result provided by an embodiment of the present application. Step S403, determining the target detection result based on the target motion data, may include: Figure 5 Steps shown: A1. Determine the maximum linear acceleration corresponding to the three linear acceleration data and the maximum angular velocity corresponding to the three angular velocity data; A2. when the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; A3. When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, determine the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data to obtain first linear acceleration data; determine the angular velocity data corresponding to the first linear acceleration data to obtain first angular velocity data; and determine the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.
[0037] In the embodiment of the present application, the first preset linear acceleration and the first preset angular velocity can be preset in advance or defaulted.
[0038] In a specific embodiment, the maximum linear acceleration corresponding to the three linear acceleration data and the maximum angular velocity corresponding to the three angular velocity data can be determined. Specifically, the data in the three linear acceleration data can be compared two by two to find the maximum value therein, that is, the maximum linear acceleration. Similarly, the data in the three angular velocity data can be compared two by two to find the maximum value therein, that is, the maximum angular velocity. When the maximum linear acceleration is greater than the first preset linear acceleration, and / or the maximum angular velocity is greater than the first preset angular velocity, the target detection result can be determined as the mailbox door is open.
[0039] When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, the linear acceleration data corresponding to the maximum linear acceleration in the three linear acceleration data can be determined to obtain the first linear acceleration data. Specifically, it can be determined to which axis the maximum linear acceleration belongs, and the linear acceleration data corresponding to the axis can be recorded as the first linear acceleration data. Then, the angular velocity data corresponding to the first linear acceleration data is determined to obtain the first angular velocity data. Specifically, the target axis (one of the three axes X, Y, and Z) corresponding to the first linear acceleration data can be determined. Then, the corresponding angular velocity data can be found from the three angular velocity data according to the target axis, that is, the first angular velocity data. For example, if the target axis corresponding to the first linear acceleration data is the X axis, the angular velocity data corresponding to the X axis can be found from the three angular velocity data, that is, the first angular velocity data. Finally, the target detection result can be determined based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.
[0040] In this way, when the maximum linear acceleration (such as the impact force of violently pushing the door) exceeds the first preset linear acceleration, or the maximum angular velocity (such as the speed of rapid rotation of the door) exceeds the first preset angular velocity, it is directly determined that "the mailbox door is open". No complicated calculation is required to quickly determine that "the door is open", avoiding missed reports due to delays; when the motion data does not exceed the preset threshold (such as the door is lightly pushed but not fully opened, or slightly shaking), a secondary judgment is made based on the axis data corresponding to the maximum linear acceleration and the axis angular velocity data, thereby avoiding misjudgment.
[0041] Optionally, the first linear acceleration data includes multiple linear accelerations, and the multiple linear accelerations correspond to multiple first sampling times; the first angular velocity data includes multiple angular velocities, and the multiple angular velocities correspond to multiple second sampling times. Step A3, determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data, may include the following steps: B1. When the maximum linear acceleration is greater than the second preset linear acceleration, fitting is performed based on the multiple linear accelerations and the multiple first sampling times to obtain a first acceleration line; the abscissa of the first acceleration line is time, and the ordinate is linear acceleration; and the second preset linear acceleration is less than the first preset linear acceleration; B2. Fitting the multiple angular velocities and the multiple second sampling times to obtain a first angular velocity line, wherein the abscissa of the first angular velocity line is time and the ordinate is angular velocity; B3. Determine the target detection result according to the first acceleration line and the first angular velocity line; B4. When the maximum linear acceleration is not greater than the second preset linear acceleration, determine that the target detection result includes that the mailbox door is not opened.
[0042] In the embodiment of the present application, the second preset linear acceleration can be preset in advance or defaulted.
[0043] In a specific embodiment, when the maximum linear acceleration is greater than the second preset linear acceleration, fitting can be performed based on multiple linear accelerations and multiple first sampling times to obtain a first acceleration line. Specifically, each linear acceleration and its corresponding first sampling time can be combined to obtain multiple first coordinate points. Then, a straight line fitting method (for example, the least squares method) can be used to fit these multiple first coordinate points to obtain a first acceleration line. Then, fitting can be performed based on multiple angular velocities and multiple second sampling times to obtain a first angular velocity line. Specifically, the method for obtaining the first angular velocity line can be the same as the method for obtaining the first acceleration line. Then, the target detection result can be determined based on the first acceleration line and the first angular velocity line.
[0044] When the maximum linear acceleration is not greater than the second preset linear acceleration, the object detection result may be determined as the mailbox door is not opened.
[0045] In this way, when the maximum linear acceleration is not greater than the second preset linear acceleration, it is directly determined that "the mailbox door is not open" without the need for subsequent fitting analysis, thereby reducing the computing power consumption of the device (especially suitable for battery-powered low-power devices) and avoiding misjudging environmental vibrations as door opening actions. In addition, when the maximum linear acceleration is greater than the second preset linear acceleration, the data is fitted and analyzed to obtain the target detection result.
[0046] Optionally, step B3, determining the target detection result according to the first acceleration line and the first angular velocity line, may include the following steps: C1. Determine a first slope corresponding to the first acceleration line and a second slope corresponding to the first angular velocity line; C2. determining a ratio between the first slope and the second slope; C3. If the ratio is less than or equal to 0, determining that the target detection result is that the mailbox door is open; C4. If the ratio is greater than 0, determining a slope difference between the first slope and the second slope to obtain a target slope difference; C5. When the target slope difference is greater than a preset slope difference, determining that the target detection result is that the mailbox door is opened; C6. When the target slope difference is not greater than the preset slope difference, predicting the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration based on the first acceleration line to obtain a first predicted moment; C7. Determine a first time length between the first predicted moment and the current moment; C8. If the first time length is not greater than a preset time length, determining that the target detection result includes that the mailbox door is opened; C9. If the first time length is greater than the preset time length, predicting the time when the angular velocity of the mailbox door reaches the first preset angular velocity based on the first angular velocity line to obtain a second predicted time; C10. Determine a second time length between the second predicted moment and the current moment; C11. If the second time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; C12. If the second time length is not greater than the preset time length, determine that the target detection result includes that the mailbox door is opened.
[0047] In the embodiment of the present application, the preset slope difference and the preset duration can be preset or defaulted in advance.
[0048] In a specific embodiment, the first slope corresponding to the first acceleration line and the second slope corresponding to the first angular velocity line can be determined. Specifically, the first linear equation y=ax+b of the first acceleration line can be obtained, where y is the linear acceleration value, x is the time point, a is the first slope, and b is the intercept. The first slope can be obtained according to the first linear equation. Similarly, the second slope can also be obtained. Then, the ratio between the first slope and the second slope can be determined, as follows: Ratio = first slope / second slope; The above formula yields a ratio. If the ratio is less than or equal to 0, it means the acceleration trend (first slope) and the angular velocity trend (second slope) are in opposite directions, or there is no trend in either direction (e.g., the first slope is 0). In this case, the target detection result can be determined to be that the mailbox door is open. For example, suppose the user initially pushes the door with considerable force (acceleration increases over time, the first slope is positive), and the door begins to rotate (angular velocity increases over time, the second slope is positive). The user then reduces the force (acceleration decreases over time, the first slope becomes negative), but the door continues to accelerate due to inertia (angular velocity continues to increase, the second slope remains positive). In this case, the first slope is negative and the second slope is positive, and the ratio is less than 0. However, the door is clearly in a "continuously open" state. Therefore, the target detection result can be determined to be that the mailbox door is open.
[0049] If the ratio is greater than 0, the slope difference between the first and second slopes can be determined to obtain the target slope difference. Specifically, the target slope difference can be obtained by subtracting the second slope from the first slope. When the target slope difference is greater than the preset slope difference, it indicates that the rate of change of acceleration and the rate of change of angular velocity are significantly different. For example, assuming the acceleration slope is 3.0 and the angular velocity slope is 0.5, the difference of 2.5 is greater than the preset slope difference of 1.0. This difference does not exist in "non-door opening motion" but rather indicates an "unsteady state" that may occur during the door opening process (such as uneven force or a door hinge suddenly smoothing after being stuck). In this case, the target detection result can be determined to be that the mailbox door is open.
[0050] When the target slope difference is not greater than the preset slope difference, the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration can be predicted based on the first acceleration line to obtain the first predicted moment. Specifically, the first preset linear acceleration can be substituted into the first linear equation for calculation to obtain the first predicted moment; then, the first time length between the first predicted moment and the current moment can be determined, for example, the first time length can be obtained by subtracting the current moment from the first predicted moment; if the first time length is not greater than the preset time length, it means that the linear acceleration of the mailbox door can reach the first preset linear acceleration in a shorter time, thereby achieving door opening, and then it can be determined that the target detection result includes that the mailbox door has been opened.
[0051] If the first time length is greater than the preset time length, the moment when the angular velocity of the mailbox door reaches the first preset angular velocity can be predicted based on the first angular velocity line to obtain a second predicted moment. Specifically, the second straight line equation corresponding to the first angular velocity line can be obtained, and the first preset angular velocity can be substituted into the second straight line equation for calculation to obtain the second predicted moment; then, the second time length between the second predicted moment and the current moment can be determined, for example, the second time length can be obtained by subtracting the current moment from the second predicted moment; if the second time length is greater than the preset time length, it is determined that the target detection result includes that the mailbox door is not opened.
[0052] If the second time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
[0053] In this way, the mailbox door status is judged through the multi-level progressive logic of "slope ratio → difference threshold → time prediction", and the "non-door opening movement" is filtered layer by layer to reduce misjudgment and improve the accuracy of mailbox door status judgment.
[0054] Optionally, when the target slope difference is not greater than the preset slope difference, the method may further include the following steps: D1. Determine the combined acceleration data corresponding to the three linear acceleration data; D2. Determine a second acceleration line corresponding to the combined acceleration data; the abscissa of the second acceleration line is time, and the ordinate is the combined acceleration; D3. Determine a maximum combined acceleration corresponding to the combined acceleration data and a third slope corresponding to the second acceleration line; D4. Determine the resultant angular velocity data corresponding to the three angular velocity data; D5. Determine a second angular velocity line corresponding to the resultant angular velocity data; the abscissa of the second angular velocity line is time, and the ordinate is the resultant angular velocity; D6. Determine a maximum angular velocity corresponding to the angular velocity data, and a fourth slope corresponding to the second angular velocity line; D7. Determine the target detection result according to the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.
[0055] In an embodiment of the present application, the combined acceleration data corresponding to the three linear acceleration data can be determined first. Specifically, the three linear acceleration data correspond to the accelerations of the object (mailbox door) in the X-axis, Y-axis, and Z-axis directions in the three-dimensional space, respectively. These three accelerations are perpendicular to each other and together constitute the motion acceleration vector of the object (mailbox door) in space. The three linear acceleration data can be synthesized according to the principle of space vector synthesis to obtain the combined acceleration data; then, the second acceleration line corresponding to the combined acceleration data can be determined. Specifically, the method for obtaining the second acceleration line can be the same as the method for obtaining the first acceleration line, which will not be repeated here.
[0056] Furthermore, the maximum combined acceleration corresponding to the combined acceleration data and the third slope corresponding to the second acceleration line can be determined. Specifically, the maximum value in the combined acceleration data, that is, the maximum combined acceleration, can be found. Then, the third straight line equation corresponding to the second acceleration line can be obtained, and the third slope can be determined based on the third straight line equation; then, the combined angular velocity data corresponding to the three angular velocity data can also be determined. Specifically, the method for obtaining the combined angular velocity data can be the same as the method for obtaining the combined acceleration data, which will not be repeated here.
[0057] Then, the second angular velocity line corresponding to the combined angular velocity data can be determined. Specifically, the method for obtaining the second angular velocity line can be the same as the method for obtaining the first angular velocity line, which will not be repeated here; then, the maximum combined angular velocity corresponding to the combined angular velocity data and the fourth slope corresponding to the second angular velocity line can be determined. Specifically, the maximum value in the combined angular velocity data, that is, the maximum combined angular velocity, can be found. Then, the fourth straight line equation corresponding to the second angular velocity line can be obtained, and the fourth slope can be determined based on the fourth straight line equation; finally, the target detection result can be determined based on the maximum combined acceleration, the third slope, the maximum combined angular velocity and the fourth slope.
[0058] In this way, by synthesizing the three linear acceleration data (angular velocity data), the combined acceleration data (combined angular velocity data) is obtained, which integrates the linear motion intensity (rotational intensity) of the X, Y, and Z axes, avoiding missed judgments caused by "single-axis data does not exceed the standard but multi-axis superposition is severe."
[0059] Optional, see Figure 6 , Figure 6 is a flowchart of another method for determining target detection results provided by an embodiment of the present application, step D7, determining the target detection result according to the maximum combined acceleration, the third slope, the maximum combined angular velocity and the fourth slope, may include Figure 6 Steps shown: E1. When the maximum combined acceleration is greater than the first preset linear acceleration, and / or the maximum combined angular velocity is greater than the first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; E2. When the maximum resultant acceleration is not greater than the first preset linear acceleration, and the maximum resultant angular velocity is not greater than the first preset angular velocity, obtaining a target motion duration corresponding to the target motion data; E3. Determine the total target rotation angle according to the target motion duration and the second angular velocity line; E4. If the total rotation angle of the target is greater than a preset rotation angle, determining that the target detection result includes that the mailbox door is open; E5. If the target total rotation angle is not greater than the preset rotation angle, determining an average combined angular velocity corresponding to the combined angular velocity data; and determining a third time length based on the target total rotation angle, the average combined angular velocity, and the preset rotation angle. E6. If the third time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; E7. If the third time length is not greater than the preset time length, determine that the target detection result includes that the mailbox door is opened.
[0060] In the embodiment of the present application, the preset rotation angle may be preset in advance or defaulted, for example, the preset rotation angle may be 60 degrees.
[0061] In a specific embodiment, when the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, it indicates that the mailbox door is subjected to a large thrust or impact force, causing the door to move from a stationary state to a moving state in a short period of time and will soon be opened. In this case, it can be determined that the target detection result includes that the mailbox door is opened; When the maximum resultant acceleration is not greater than the first preset linear acceleration, and the maximum resultant angular velocity is not greater than the first preset angular velocity, the target motion duration corresponding to the target motion data can be obtained. Specifically, the acquisition time of each data in the target motion data can be obtained first, and multiple acquisition times can be obtained. The earliest time and the latest time among the multiple acquisition times are determined, and the target motion duration can be obtained by subtracting the earliest time from the latest time. Then, the target total rotation angle can be determined according to the target motion duration and the second angular velocity straight line. Specifically, the second angular velocity straight line can be integrated within the target motion duration to obtain the target total rotation angle. If the target total rotation angle is greater than the preset rotation angle, it is determined that the target detection result includes that the mailbox door is open.
[0062] If the target total rotation angle is not greater than the preset rotation angle, the average value of the combined angular velocity data, that is, the average combined angular velocity, can be calculated; then, the third time length can be determined based on the target total rotation angle, the average combined angular velocity and the preset rotation angle. Specifically, the target total rotation angle can be subtracted from the preset rotation angle to obtain the target angle difference, and then the target angle difference can be divided by the average combined angular velocity to obtain the third time length; if the third time length is greater than the preset time length, it is determined that the target detection result includes that the mailbox door is not open.
[0063] If the third time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
[0064] In this way, when the maximum combined acceleration (maximum combined angular velocity) exceeds the first preset linear acceleration (first preset angular velocity), the door is directly judged to be open. Otherwise, whether the door is open is judged based on the target total rotation angle and the preset rotation angle. If the target total rotation angle is greater than the preset rotation angle, the door is judged to be open. If the target total rotation angle is not greater than the preset rotation angle, the door is judged to be not open, filtering out "meaningless small shakes", thereby improving the accuracy of the judgment.
[0065] S404: When the target detection result includes that the mailbox door is opened, obtain the second mailbox internal information of the target mailbox.
[0066] In an embodiment of the present application, when the target detection result includes that the mailbox door is open, the internal information of the second mailbox of the target mailbox can be obtained. Specifically, the method for obtaining the internal information of the second mailbox can be the same as the method for obtaining the internal information of the first mailbox, which will not be repeated here.
[0067] S405: Determine target alarm information according to the internal information of the first mailbox and the internal information of the second mailbox.
[0068] In the embodiment of the present application, the difference information between the internal information of the first mailbox and the internal information of the second mailbox can be determined, and the target alarm information can be determined based on the difference information.
[0069] Optionally, the first mailbox internal information includes: the first mail quantity, the first door opening duration, and the first environmental data; the second mailbox internal information includes: the second mail quantity, the second door opening duration, and the second environmental data; and determining the target alarm information based on the first mailbox internal information and the second mailbox internal information may include the following steps: S51. Determine the difference between the second number of mail items and the first number of mail items to obtain a target number difference; S52. Determine a first anomaly score corresponding to the target quantity difference; S53: Determine the difference between the second door opening duration and the first door opening duration to obtain a target duration difference; S54, determining a second anomaly score corresponding to the target duration difference; S55. Determine a third anomaly score based on the first anomaly score and the second anomaly score; S56. Determine the deviation between the second environmental data and the first environmental data to obtain a target deviation; S57, determining a target adjustment coefficient corresponding to the target deviation; S58. Adjust the third anomaly score according to the target adjustment coefficient to obtain a target anomaly score; S59: Determine a target anomaly level corresponding to the target anomaly score; S510: Determine the target alarm information corresponding to the target abnormality level.
[0070] In the embodiment of the present application, the anomaly score represents a quantitative indicator of the anomaly of the target mailbox. The value range of the anomaly score can be 0~10, where the higher the anomaly score, the greater the possibility that the target mailbox has an anomaly (for example, emails are stolen).
[0071] In a specific embodiment, the target quantity difference can be obtained by subtracting the first quantity of mails from the second quantity of mails; then, the first anomaly score corresponding to the target quantity difference can be determined. For example, a mapping relationship between a preset quantity difference and anomaly score can be pre-stored, and the first anomaly score corresponding to the target quantity difference can be determined based on the mapping relationship; then, the target duration difference can be obtained by subtracting the first door opening duration from the second door opening duration; then, the second anomaly score corresponding to the target duration difference can be determined. Similarly, a mapping relationship between a preset duration difference and anomaly score can be pre-stored, and the second anomaly score corresponding to the target duration difference can be determined based on the mapping relationship.
[0072] Furthermore, a third anomaly score can be determined based on the first anomaly score and the second anomaly score. Specifically, the first anomaly score and the second anomaly score can be directly added to obtain the third anomaly score. Alternatively, a first weight (e.g., 0.7) corresponding to the first anomaly score and a second weight (e.g., 0.3) corresponding to the second anomaly score can be determined, and the sum of the first weight and the second weight is 1. A weighted operation is performed based on the first anomaly score, the second anomaly score, the first weight, and the second weight to obtain the third anomaly score. Then, the deviation between the second environment data and the first environment data can be determined as follows: Target deviation = (second environment data - first environment data) / first environment data × 100%; According to the above formula, the target deviation can be obtained; then, the target adjustment coefficient corresponding to the target deviation can be determined. Specifically, a mapping relationship between a preset deviation and an adjustment coefficient can be pre-stored, and the target adjustment coefficient corresponding to the target deviation can be determined based on the mapping relationship, wherein the target adjustment coefficient can range from 0 to 0.15; then, the third anomaly score can be adjusted according to the target adjustment coefficient, as follows: Target anomaly score = third anomaly score × (1 + target adjustment coefficient); According to the above formula, the target anomaly score can be obtained; then, the target anomaly level corresponding to the target anomaly score can be determined. Specifically, the target anomaly level can be determined according to the size of the target anomaly score. For example, when the target anomaly score is between 0 and 3, the corresponding target anomaly level is a low anomaly level. When the target anomaly score is between 4 and 7, the corresponding target anomaly level is a medium anomaly level. When the target anomaly score is between 8 and 10, the corresponding target anomaly level is a high anomaly level. Finally, the target alarm information corresponding to the target anomaly level can be determined. Specifically, the corresponding target alarm information can be generated according to the level of the target anomaly level. The mapping relationship between the preset anomaly level and the alarm information can be pre-stored, and the target alarm information corresponding to the target anomaly level can be determined based on the mapping relationship.
[0073] S406: Send the target alarm information to the administrator via the communication module to ensure mailbox security.
[0074] In an embodiment of the present application, the target alarm information can be sent in the form of text messages, emails, mobile phone pop-ups, voice prompts, etc. The communication module sends the target alarm information to the management personnel to prompt the management personnel to conduct a security check on the target mailbox, thereby ensuring the safety of the mailbox. For example, the target alarm information can be "[xx Community Smart Mailbox Warning] An abnormality occurred in the mailbox No. x in Building x at x time: 2 items were reduced after the door was opened, suspected of being stolen. Please go and check immediately."
[0075] It can be seen that the mailbox alarm method described in this application first confirms whether the mailbox door is open through a six-axis sensor, and then compares the difference in internal information before and after the door is opened to determine whether there is an abnormality (such as mail theft, foreign objects intrusion, etc.). After confirming the existence of the abnormality, an early warning operation is performed through the communication module, thereby realizing the abnormal alarm function of the mailbox.
[0076] See also Figure 7 , Figure 7 : is a structural diagram of a mailbox alarm system provided in an embodiment of the present application; the mailbox alarm system 700 can be applied to a mailbox alarm device, the mailbox alarm device including a six-axis sensor and a communication module, the mailbox alarm device being disposed inside a target mailbox, the mailbox alarm system 700 including: an acquisition unit 701, an anomaly detection unit 702, and an alarm unit 703, wherein: The acquisition unit 701 is configured to acquire internal information of a first mailbox of the target mailbox; and detect target motion data of a mailbox door of the target mailbox by using the six-axis sensor; The abnormality detection unit 702 is configured to determine a target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; The acquisition unit 701 is further configured to acquire the second mailbox internal information of the target mailbox when the target detection result includes that the mailbox door is opened; The alarm unit 703 is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and send the target alarm information to the management personnel through the communication module to ensure the safety of the mailbox.
[0077] Optionally, the target motion data includes: three linear acceleration data and three angular velocity data, each linear acceleration data corresponds to one angular velocity data. In determining the target detection result based on the target motion data, the abnormality detection unit 702 is specifically configured to: Determining a maximum linear acceleration corresponding to the three linear acceleration data and a maximum angular velocity corresponding to the three angular velocity data; When the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, determine the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data to obtain first linear acceleration data; determine the angular velocity data corresponding to the first linear acceleration data to obtain first angular velocity data; and determine the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.
[0078] Optionally, the first linear acceleration data includes multiple linear accelerations, and the multiple linear accelerations correspond to multiple first sampling times; the first angular velocity data includes multiple angular velocities, and the multiple angular velocities correspond to multiple second sampling times; in determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data, the abnormality detection unit 702 is specifically configured to: When the maximum linear acceleration is greater than the second preset linear acceleration, fitting is performed based on the multiple linear accelerations and the multiple first sampling times to obtain a first acceleration line; the abscissa of the first acceleration line is time, and the ordinate is linear acceleration; and the second preset linear acceleration is less than the first preset linear acceleration; Fitting is performed according to the multiple angular velocities and the multiple second sampling times to obtain a first angular velocity line, wherein the abscissa of the first angular velocity line is time and the ordinate is angular velocity; determining the target detection result according to the first acceleration line and the first angular velocity line; When the maximum linear acceleration is not greater than the second preset linear acceleration, it is determined that the target detection result includes that the mailbox door is not opened.
[0079] Optionally, in determining the target detection result according to the first acceleration line and the first angular velocity line, the abnormality detection unit 702 is specifically configured to: Determining a first slope corresponding to the first acceleration line and a second slope corresponding to the first angular velocity line; determining a ratio between the first slope and the second slope; If the ratio is less than or equal to 0, determining that the target detection result is that the mailbox door is open; If the ratio is greater than 0, determining a slope difference between the first slope and the second slope to obtain a target slope difference; When the target slope difference is greater than a preset slope difference, determining that the target detection result is that the mailbox door is opened; When the target slope difference is not greater than the preset slope difference, predicting the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration according to the first acceleration line to obtain a first predicted moment; Determining a first time length between the first predicted moment and the current moment; If the first time length is not greater than a preset time length, determining that the target detection result includes that the mailbox door is opened; If the first time length is greater than the preset time length, predicting the time when the angular velocity of the mailbox door reaches the first preset angular velocity based on the first angular velocity line to obtain a second predicted time; Determining a second time length between the second predicted moment and the current moment; If the second time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; If the second time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
[0080] Optionally, when the target slope difference is not greater than the preset slope difference, the mailbox alarm system 700 is further configured to: Determine the combined acceleration data corresponding to the three linear acceleration data; Determine a second acceleration line corresponding to the combined acceleration data; the abscissa of the second acceleration line is time, and the ordinate is combined acceleration; Determining a maximum combined acceleration corresponding to the combined acceleration data and a third slope corresponding to the second acceleration line; Determining the resultant angular velocity data corresponding to the three angular velocity data; Determine a second angular velocity line corresponding to the resultant angular velocity data; the abscissa of the second angular velocity line is time, and the ordinate is the resultant angular velocity; determining a maximum angular velocity corresponding to the angular velocity data and a fourth slope corresponding to the second angular velocity line; The target detection result is determined according to the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.
[0081] Optionally, in determining the target detection result according to the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope, the abnormality detection unit 702 is specifically configured to: When the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; When the maximum resultant acceleration is not greater than the first preset linear acceleration, and the maximum resultant angular velocity is not greater than the first preset angular velocity, acquiring a target motion duration corresponding to the target motion data; Determining a total target rotation angle according to the target motion duration and the second angular velocity straight line; If the total rotation angle of the target is greater than a preset rotation angle, determining that the target detection result includes that the mailbox door is open; If the target total rotation angle is not greater than the preset rotation angle, determining an average combined angular velocity corresponding to the combined angular velocity data; determining a third time length according to the target total rotation angle, the average combined angular velocity, and the preset rotation angle; If the third time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; If the third time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
[0082] Optionally, the first mailbox internal information includes: the first mail quantity, the first door opening duration, and the first environmental data; the second mailbox internal information includes: the second mail quantity, the second door opening duration, and the second environmental data; in determining the target alarm information based on the first mailbox internal information and the second mailbox internal information, the alarm unit 703 is specifically configured to: determining a difference between the second number of mail items and the first number of mail items to obtain a target number difference; Determining a first anomaly score corresponding to the target quantity difference; Determine the difference between the second door opening duration and the first door opening duration to obtain a target duration difference; Determining a second anomaly score corresponding to the target duration difference; determining a third anomaly score based on the first anomaly score and the second anomaly score; determining a deviation between the second environmental data and the first environmental data to obtain a target deviation; Determining a target adjustment coefficient corresponding to the target deviation; Adjusting the third anomaly score according to the target adjustment coefficient to obtain a target anomaly score; Determining a target anomaly level corresponding to the target anomaly score; Determine the target alarm information corresponding to the target abnormality level.
[0083] In a specific implementation, the mailbox alarm system 700 described in the embodiment of the present invention may also execute other implementations described in the mailbox alarm method provided in the above embodiment of the present invention, which will not be described in detail here.
[0084] See also Figure 8 , Figure 8 : is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor, a memory, a communication interface, and one or more programs. The processor, memory, and communication interface may be interconnected via a bus. The one or more programs are stored in the memory and configured to be executed by the processor. In an embodiment of the present application, the electronic device may be applied to a mailbox alarm device, the mailbox alarm device including a six-axis sensor and a communication module. The mailbox alarm device is disposed inside a target mailbox. The program includes instructions for executing the following steps: Obtaining internal information of a first mailbox of the target mailbox; detecting target motion data of a mailbox door of the target mailbox by the six-axis sensor; Determine a target detection result according to the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; When the target detection result includes that the mailbox door is opened, obtaining the second mailbox internal information of the target mailbox; Determining target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; The target alarm information is sent to the administrator via the communication module to ensure mailbox security.
[0085] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0086] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.
[0087] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0088] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0090] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0091] The steps of the method or algorithm described in the embodiments of the present application can be implemented in hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device or a management device. Of course, the processor and storage medium can also exist as discrete components in the terminal device or the management device.
[0092] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
[0093] The aforementioned computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium accessible by a computer or a data storage device such as a server or data center that integrates one or more available media.
[0094] The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0095] The modules / units included in the various devices and products described in the above embodiments may be software modules / units, hardware modules / units, or partly software modules / units and partly hardware modules / units. For example, for various devices and products applied to or integrated into a chip, the modules / units included therein may all be implemented in the form of hardware such as circuits, or at least part of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated into a chip module, the modules / units included therein may all be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least part of the modules / units may be It is implemented in the form of a software program, which runs on the processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal equipment, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or different components in the terminal equipment, or at least some modules / units can be implemented in the form of a software program, which runs on the processor integrated inside the terminal equipment, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0096] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only a specific implementation method of the embodiments of the present application and is not intended to limit the scope of protection of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.
Claims
1. A mailbox alarm method, characterized in that: Applied to a mailbox alarm device, the mailbox alarm device includes a six-axis sensor and a communication module, and the mailbox alarm device is arranged inside a target mailbox. The method includes: Obtaining internal information of a first mailbox of the target mailbox; detecting target motion data of a mailbox door of the target mailbox by the six-axis sensor; Determine a target detection result according to the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; When the target detection result includes that the mailbox door is opened, obtaining the second mailbox internal information of the target mailbox; Determining target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; The target alarm information is sent to the administrator via the communication module to ensure mailbox security.
2. The method according to claim 1, wherein The target motion data includes: 3 linear acceleration data and 3 angular velocity data, each linear acceleration data corresponds to one angular velocity data, and determining the target detection result according to the target motion data includes: Determining a maximum linear acceleration corresponding to the three linear acceleration data and a maximum angular velocity corresponding to the three angular velocity data; When the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, determine the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data to obtain first linear acceleration data; determine the angular velocity data corresponding to the first linear acceleration data to obtain first angular velocity data; and determine the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.
3. The method according to claim 2, wherein The first linear acceleration data includes a plurality of linear accelerations corresponding to a plurality of first sampling times; the first angular velocity data includes a plurality of angular velocities corresponding to a plurality of second sampling times; The determining the target detection result according to the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data includes: When the maximum linear acceleration is greater than the second preset linear acceleration, fitting is performed based on the multiple linear accelerations and the multiple first sampling times to obtain a first acceleration line; the abscissa of the first acceleration line is time, and the ordinate is linear acceleration; and the second preset linear acceleration is less than the first preset linear acceleration; Fitting is performed according to the multiple angular velocities and the multiple second sampling times to obtain a first angular velocity line, wherein the abscissa of the first angular velocity line is time and the ordinate is angular velocity; determining the target detection result according to the first acceleration line and the first angular velocity line; When the maximum linear acceleration is not greater than the second preset linear acceleration, it is determined that the target detection result includes that the mailbox door is not opened.
4. The method according to claim 3, wherein The determining the target detection result according to the first acceleration line and the first angular velocity line includes: Determining a first slope corresponding to the first acceleration line and a second slope corresponding to the first angular velocity line; determining a ratio between the first slope and the second slope; If the ratio is less than or equal to 0, determining that the target detection result is that the mailbox door is open; If the ratio is greater than 0, determining a slope difference between the first slope and the second slope to obtain a target slope difference; When the target slope difference is greater than a preset slope difference, determining that the target detection result is that the mailbox door is opened; When the target slope difference is not greater than the preset slope difference, predicting the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration according to the first acceleration line to obtain a first predicted moment; Determining a first time length between the first predicted moment and the current moment; If the first time length is not greater than a preset time length, determining that the target detection result includes that the mailbox door is opened; If the first time length is greater than the preset time length, predicting the time when the angular velocity of the mailbox door reaches the first preset angular velocity based on the first angular velocity line to obtain a second predicted time; Determining a second time length between the second predicted moment and the current moment; If the second time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; If the second time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
5. The method according to claim 4, wherein When the target slope difference is not greater than the preset slope difference, the method further includes: Determine the combined acceleration data corresponding to the three linear acceleration data; Determine a second acceleration line corresponding to the combined acceleration data; the abscissa of the second acceleration line is time, and the ordinate is combined acceleration; Determining a maximum combined acceleration corresponding to the combined acceleration data and a third slope corresponding to the second acceleration line; Determining the resultant angular velocity data corresponding to the three angular velocity data; Determine a second angular velocity line corresponding to the resultant angular velocity data; the abscissa of the second angular velocity line is time, and the ordinate is the resultant angular velocity; determining a maximum angular velocity corresponding to the angular velocity data and a fourth slope corresponding to the second angular velocity line; The target detection result is determined according to the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.
6. The method according to claim 5, wherein The determining the target detection result according to the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope includes: When the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, determining that the target detection result includes that the mailbox door is opened; When the maximum resultant acceleration is not greater than the first preset linear acceleration, and the maximum resultant angular velocity is not greater than the first preset angular velocity, acquiring a target motion duration corresponding to the target motion data; Determining a total target rotation angle according to the target motion duration and the second angular velocity straight line; If the total rotation angle of the target is greater than a preset rotation angle, determining that the target detection result includes that the mailbox door is open; If the target total rotation angle is not greater than the preset rotation angle, determining an average combined angular velocity corresponding to the combined angular velocity data; determining a third time length according to the target total rotation angle, the average combined angular velocity, and the preset rotation angle; If the third time length is greater than the preset time length, determining that the target detection result includes that the mailbox door is not opened; If the third time length is not greater than the preset time length, it is determined that the target detection result includes that the mailbox door is opened.
7. The method according to any one of claims 1 to 6, wherein: The first mailbox internal information includes: the first mail quantity, the first door opening duration, and the first environmental data; the second mailbox internal information includes: the second mail quantity, the second door opening duration, and the second environmental data; the target alarm information is determined based on the first mailbox internal information and the second mailbox internal information, including: determining a difference between the second number of mail items and the first number of mail items to obtain a target number difference; Determining a first anomaly score corresponding to the target quantity difference; Determine the difference between the second door opening duration and the first door opening duration to obtain a target duration difference; Determining a second anomaly score corresponding to the target duration difference; determining a third anomaly score based on the first anomaly score and the second anomaly score; determining a deviation between the second environmental data and the first environmental data to obtain a target deviation; Determining a target adjustment coefficient corresponding to the target deviation; Adjusting the third anomaly score according to the target adjustment coefficient to obtain a target anomaly score; Determining a target anomaly level corresponding to the target anomaly score; Determine the target alarm information corresponding to the target abnormality level.
8. A mailbox alarm system, characterized in that: Applied to a mailbox alarm device, the mailbox alarm device includes a six-axis sensor and a communication module, the mailbox alarm device is set inside the target mailbox, the system includes: an acquisition unit, an abnormality detection unit, and an alarm unit, wherein: The acquisition unit is configured to acquire internal information of a first mailbox of the target mailbox; and detect target motion data of a mailbox door of the target mailbox by using the six-axis sensor; The abnormality detection unit is configured to determine a target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is opened, the mailbox door is not opened; The acquisition unit is further configured to acquire the second mailbox internal information of the target mailbox when the target detection result includes that the mailbox door is opened; The alarm unit is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and send the target alarm information to the management personnel through the communication module to ensure the safety of the mailbox.
9. An electronic device, characterized in that: include: a processor, a memory, a communication interface, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, wherein the programs include instructions for executing the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Door lock device and control method
CN111754656A
Intelligent door and window opening and closing detection alarm device and detection method thereof
CN111915826A
Sensor assembly for tank cars
US20070120665A1
Tracking system to track the movement of a door
US20200109589A1
Intrusion detection system and intrusion detection method for door or window
WO2021219747A1