Intelligent bathroom mirror-based multi-detection device collaboration method and system, and storage medium
By acquiring facial images of the smart bathroom mirror and the location information of the detection device, a trigger area is generated, which solves the problem of data classification errors caused by accidental triggering of the detection device, and improves the accuracy of detection data and user experience.
Patent Information
- Application Number
- CN202311094322.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2043-08-28
AI Technical Summary
In home use of smart bathroom mirrors, when multiple detection devices are monitoring the body, accidental triggering can lead to incorrect classification of the detection data, reducing the user experience.
By acquiring data to be stored, facial image information, and the location information of the detection device, trigger area information is generated. Combined with facial location information, the accuracy of data storage is determined, and data that truly belongs to the target user is distinguished.
It effectively distinguishes test data, reduces misclassification, and improves the accuracy of test data and user experience.
Smart Images

Figure CN117275037B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a multi-detection device cooperation method and system based on a smart bathroom mirror and a storage medium. BACKGROUND
[0002] The bathroom mirror is a general daily necessity for modern people. A clear and bright smart bathroom mirror can not only bring good mood to the user, but also bring convenience to life. With the development of technology, people's requirements for smart bathroom mirrors are becoming higher and higher.
[0003] In the daily use of the smart bathroom mirror, the user usually detects the body condition by using multiple detection devices (such as a body weight instrument, a skin detection instrument and a blood oxygen instrument), and then the multiple detection devices will transmit the detection data to the smart bathroom mirror. After receiving the detection data, the smart bathroom mirror will display the detection data to the user through the display screen in the smart bathroom mirror.
[0004] At present, in the home use of the smart bathroom mirror, when a user is using a detection device to detect the body condition, the application scenario of the smart bathroom mirror will only revolve around the user, that is, the detection data detected by the multiple detection devices will be classified to the user. If another user mistakenly touches another detection device when the user uses a detection device to detect the body condition, the smart bathroom mirror will classify the body condition of the other user to the user being detected, which reduces the accuracy of the detection data displayed by the smart bathroom mirror and causes poor user experience, which needs to be further improved. SUMMARY
[0005] Therefore, the embodiments of the present application provide a multi-detection device cooperation method and system based on a smart bathroom mirror and a storage medium to solve the problem of poor user experience in the prior art.
[0006] In a first aspect, the embodiments of the present application provide a multi-detection device cooperation method based on a smart bathroom mirror, which is suitable for a smart bathroom mirror. The smart bathroom mirror is in communication connection with multiple detection devices. The method comprises the following steps:
[0007] Obtaining to-be-warehoused data information, face image information of a target user and first position information of the detection device, wherein the to-be-warehoused data information is used to describe the detection data sent by the detection device, and the first position information is used to describe the first position of the detection device relative to the smart bathroom mirror;
[0008] Generating first trigger area information of the detection device according to the first position information and a preset first trigger distance value;
[0009] According to the face image information, second position information of the target user is determined, wherein the second position information is used to describe a second position of the target user relative to the intelligent bathroom mirror;
[0010] According to the first trigger area information and the second position information, it is determined whether the to-be-warehoused data information is stored into the preset user database.
[0011] Compared with the prior art, the beneficial effects are that: the intelligent bathroom mirror based multi-detection device cooperation method provided by the embodiment of the application can acquire the to-be-warehoused data information, the face image information and the first position information; then, according to the first position information and the first trigger distance value, the first trigger area information is generated; then, according to the face image information, the second position information is determined; then, according to the first trigger area information and the second position information, it is determined whether the to-be-warehoused data information is stored into the user database, so that the to-be-warehoused data information that really belongs to the target user and the to-be-warehoused data information that does not really belong to the target user are effectively distinguished, the situation that the detection data of another user is classified to the target user is reduced, the use experience is effectively improved, and the problem of poor use experience is solved to a certain extent.
[0012] In a second aspect, the embodiment of the application provides an intelligent bathroom mirror based multi-detection device cooperation system, which is suitable for an intelligent bathroom mirror, the intelligent bathroom mirror is in communication connection with a plurality of detection devices, and the system comprises:
[0013] A to-be-warehoused data information acquisition module is configured to acquire to-be-warehoused data information, face image information of a target user and first position information of a detection device, wherein the to-be-warehoused data information is used to describe detection data sent by the detection device, and the first position information is used to describe a first position of the detection device relative to the intelligent bathroom mirror;
[0014] A first trigger area information generation module is configured to generate first trigger area information of the detection device according to the first position information and a preset first trigger distance value.
[0015] A position information determination module is configured to determine second position information of the target user according to the face image information, wherein the second position information is used to describe a second position of the target user relative to the intelligent bathroom mirror.
[0016] An information storage module is configured to determine whether the to-be-warehoused data information is stored into a preset user database according to the first trigger area information and the second position information.
[0017] In a third aspect, the embodiment of the application provides a terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0018] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps of the method in the first aspect.
[0019] It can be understood that the beneficial effects of the second aspect to the fourth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced.
[0021] Figure 1 is a flowchart of a multi-detection device cooperation method provided by an embodiment of the present application;
[0022] Figure 2 is a flowchart of step S200 in the multi-detection device cooperation method provided by an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0024] Figure 4 is a flowchart of step S400 in the multi-detection device cooperation method provided by an embodiment of the present application;
[0025] Figure 5 is a flowchart of step S430 in the multi-detection device cooperation method provided by an embodiment of the present application;
[0026] Figure 6 is a flowchart of step S4391 in the multi-detection device cooperation method provided by an embodiment of the present application;
[0027] Figure 7 is a module block diagram of a multi-detection device cooperation system provided by an embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following description, specific details such as specific system structures, techniques, etc. are presented in order to thoroughly understand the embodiments of the present application. However, it should be clear for those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits and methods are omitted to avoid unnecessary details that hinder the description of the present application.
[0030] In the description of the present application and the appended claims, the terms "first", "second", "third", etc. are used only to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0031] In the present application, the reference "one embodiment" or "some embodiments" means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.
[0032] In order to illustrate the technical solutions described in the present application, the following will be described by specific embodiments.
[0033] Please refer to Figure 1 , Figure 1 is a flowchart of the multi-detection device cooperation method based on the intelligent bathroom mirror provided in the embodiments of the present application. In the present embodiment, the execution subject of the multi-detection device cooperation method is a terminal device. It can be understood that the types of the terminal device include but are not limited to mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) and the like, and the specific type of the terminal device is not limited in the embodiments of the present application.
[0034] Please refer to Figure 1 , the multi-detection device cooperation method provided in the embodiments of the present application includes but is not limited to the following steps:
[0035] In S100, the to-be-warehoused data information, the facial image information of the target user and the first position information of the detection device are acquired.
[0036] Without loss of generality, the multi-detection device cooperation method is applicable to a smart bathroom mirror, which is in communication connection with a plurality of detection devices. The smart bathroom mirror can be provided with a login system. When a user logs in, the detection data detected by the plurality of detection devices will be classified to the current logged-in user. The target user can be the current logged-in user, and the detection device can be a body weight instrument, a skin detector or a blood oxygen meter. In home use, there can be a situation that a non-target user accidentally touches a detection device, so it is necessary to only classify the detection data that really belongs to the target user to the target user. The data information to be warehoused is used to describe the detection data sent by the detection device, that is, the detection data obtained based on the detection device and to be classified to the target user. The first position information is used to describe the first position of the detection device relative to the smart bathroom mirror.
[0037] Specifically, the smart bathroom mirror can be pre-installed with at least one high-precision camera. When the smart bathroom mirror is installed with a plurality of high-precision cameras, the plurality of high-precision cameras can be arranged horizontally and equidistantly. The terminal device can obtain facial image information of the target user based on the preset high-precision camera. The facial image information is used to describe the facial image of the target user, that is, the facial image of the user obtained by the high-precision camera. After the smart bathroom mirror receives the detection data just detected by the detection device, the terminal device can determine the detection data just received as the data information to be warehoused. The smart bathroom mirror and the plurality of detection devices can use Bluetooth technology for data transmission and communication. The terminal device can use the received signal strength indication (RSSI) positioning technology to obtain the first position information of the detection device.
[0038] In S200, the first trigger area information of the detection device is generated according to the first position information and the preset first trigger distance value.
[0039] Specifically, the terminal device can generate the first trigger area information of the detection device according to the first position information and the preset first trigger distance value. The first trigger area information is used to describe the area in which the target user can trigger the detection device to detect his own body condition. If the target user is outside the area, but the smart bathroom mirror receives the detection data sent by the detection device, it indicates that the detection data does not really belong to the target user, and the detection data of the non-target user should not be classified to the target user.
[0040] In some possible implementations, in order to improve the accuracy of the first trigger area information, please refer to Figure 2 , step S200 includes but is not limited to the following steps:
[0041] In S210, the first virtual sphere area information is generated according to the first position information and the preset first trigger distance value.
[0042] Exemplarily, please refer to Figure 3 an application scenario of a target user as an example from a top view, Figure 3 the skin detector in FIG. 1 is placed on a table; after the terminal device acquires the first position information, the terminal device can take the first position information as the center and generate first virtual sphere region information with a preset first trigger distance value as the radius, where the first virtual sphere region information is used to describe a region surrounded by a sphere with the first position information as the center and the first trigger distance value as the radius, i.e. Figure 3 the region surrounded by the dashed circle in FIG. 1, and the first trigger distance value can be 15 cm or 20 cm.
[0043] In S220, first trigger region information of the detection device is generated according to the first virtual sphere region information.
[0044] Specifically, the first trigger region information is used to describe a region surrounded by a circumscribed square of a sphere, the side length of the circumscribed square is equal to the diameter of the sphere, and each face of the circumscribed square is tangent to the sphere; after the terminal device generates the first virtual sphere region information, the terminal device can generate the first trigger region information of the detection device according to the first virtual sphere region information.
[0045] In S300, second position information of the target user is determined according to the face image information.
[0046] Specifically, the second position information is used to describe a second position of the target user relative to the smart bathroom mirror; the terminal device can determine the second position information of the target user according to the face image information by using a preset monocular ranging algorithm, for example, determine that the target user is located at 0.5 m in front of the smart bathroom mirror.
[0047] Without loss of generality, when the smart bathroom mirror is installed with multiple high-precision cameras, the terminal device can first determine a high-precision camera closest to the target user, and then determine the second position information of the target user based on the face image captured by the high-precision camera; in a possible implementation manner, the terminal device can acquire the face image captured by each high-precision camera, respectively determine the second position information of the target user, and then select the second position information with the smallest value (i.e., the target user is closest to the smart bathroom mirror) from the multiple second position information as the finally determined second position information.
[0048] In S400, it is determined whether to store the to-be-warehoused data information into a preset user database according to the first trigger region information and the second position information.
[0049] Specifically, after the terminal device determines the second position information, the terminal device can determine whether to store the to-be-warehoused data information into the preset user database according to the first trigger area information and the second position information, thereby effectively screening the to-be-warehoused data information, reducing the case that the physical condition of other users is classified to the target user, improving the accuracy of the detection data displayed by the intelligent bathroom mirror, and effectively improving the use experience.
[0050] In some possible implementation manners, in order to effectively improve the use experience, please refer to Figure 4 , step S400 includes but is not limited to the following steps:
[0051] In S410, it is determined whether the second position information is located in the first trigger area information.
[0052] Specifically, the terminal device can first determine whether the second position information is located in the first trigger area information.
[0053] In S420, if the second position information is located outside the first trigger area information, it is determined that the to-be-warehoused data information is invalid data information.
[0054] Specifically, the invalid data information is used to describe the to-be-warehoused data information that is not stored into the user database, thereby facilitating the distinction between the to-be-warehoused data information that really belongs to the target user and the to-be-warehoused data information triggered by other users; if the second position information is located outside the first trigger area information, the terminal device can determine that the to-be-warehoused data information is invalid data information.
[0055] In S430, if the second position information is located in the first trigger area information, it is determined to store the to-be-warehoused data information into the user database.
[0056] Specifically, if the second position information is located in the first trigger area information, the terminal device can determine to store the to-be-warehoused data information into the user database, thereby classifying the to-be-warehoused data information that really belongs to the target user to the target user.
[0057] In some possible implementation manners, in order to further improve the use experience, please refer to Figure 5 , step S430 includes but is not limited to the following steps:
[0058] In S431, if the second position information is located in the first trigger area information, the historical detection data of the target user is obtained based on the user database.
[0059] The user database is used to store data of the user, the historical detection data is used to describe detection data stored in the user database and of the same type as the to-be-stored data information, the historical detection data can be detection data stored in the user database last time, and the type can be weight, skin moisture, and blood oxygen saturation; for example, when the type of the to-be-stored data information is weight, the type of the historical detection data is also weight, and when the type of the to-be-stored data information is blood oxygen saturation, the type of the historical detection data is also blood oxygen saturation.
[0060] Specifically, if the second position information is located in the first trigger area information, the terminal device can obtain the historical detection data of the target user based on the user database.
[0061] In S432, data difference information is generated according to a difference between the to-be-stored data information and the historical detection data.
[0062] Specifically, the terminal device can generate the data difference information according to the difference between the to-be-stored data information and the historical detection data; for example, when the to-be-stored data information is 79 kg and the historical detection data is 68 kg, the data difference information is 8 kg, and when the to-be-stored data information is 53 kg and the historical detection data is 68 kg, the data difference information is -15 kg.
[0063] In S433, the data difference information is compared with a preset trust threshold value.
[0064] Specifically, the trust threshold value can be a numerical range; after the terminal device generates the data difference information, the terminal device can compare the data difference information with the preset trust threshold value, and the value of the trust threshold value can be set according to various types; for example, when the type of the data difference information is weight, the trust threshold value can be 0 kg to 6 kg.
[0065] In S434, if the data difference information is less than the trust threshold value, it is determined that the to-be-stored data information is stored in the user database.
[0066] Specifically, if the data difference information is less than the trust threshold value, the terminal device can determine that the to-be-stored data information is stored in the user database; for example, when the data difference information is 3 kg and the trust threshold value is 0 kg to 6 kg, the terminal device can store the to-be-stored data information of 3 kg in the user database.
[0067] In S435, if the data difference information is greater than or equal to the trust threshold value, second virtual sphere area information is generated according to the first position information and a preset second trigger distance value.
[0068] Specifically, if the data difference value information is greater than or equal to the trust threshold value, the terminal device can generate second virtual sphere region information according to the first position information and a preset second trigger distance value, wherein the second trigger distance value is a preset multiple of the first trigger distance value, and the value of the preset multiple is a positive number less than 1 and greater than 0; for example, when the first trigger distance value is 15 centimeters and the value of the multiple is 0.5, the second trigger distance value is 7.5 centimeters. The specific processing process of generating the second virtual sphere region information can refer to the similar content in step S210, and thus will not be described in detail.
[0069] In S436, second trigger region information of the detection device is generated according to the second virtual sphere region information.
[0070] Specifically, after the terminal device generates the second virtual sphere region information, the terminal device can generate second trigger region information of the detection device according to the second virtual sphere region information, wherein the specific processing process of generating the second trigger region information can refer to the similar content in step S220, and thus will not be described in detail.
[0071] In S437, it is determined whether the second position information is located within the second trigger region information.
[0072] Specifically, after the terminal device generates the second trigger region information, the terminal device can determine whether the second position information is located within the second trigger region information.
[0073] In S438, if the second position information is located outside the second trigger region information, a suspicious label is added to the to-be-stored data information, and the to-be-stored data information is determined as suspicious data information.
[0074] Specifically, the suspicious data information is used to describe the to-be-stored data information after the suspicious label is added; if the second position information is located outside the second trigger region information, the terminal device can add a suspicious label to the to-be-stored data information, and determine the to-be-stored data information as suspicious data information, so as to realize screening out the to-be-stored data information which is initially determined to belong to the target user and has a large fluctuation relative to the historical detection data, improve the intuitiveness of the detection data, and improve the use experience.
[0075] In S439, it is determined to store the suspicious data information into the user database.
[0076] Specifically, after the terminal device determines that the to-be-stored data information is suspicious data information, the terminal device can determine to store the suspicious data information with the suspicious label added into the user database.
[0077] In S4391, if the second position information is located within the second trigger region information, it is determined to store the to-be-stored data information into the user database.
[0078] Specifically, if the second position information is located in the second trigger area information, the terminal device can determine to store the to-be-warehoused data information into the user database, thereby facilitating the classification of the to-be-warehoused data information that is relatively large in fluctuation relative to the historical detection data but actually belongs to the target user to the target user.
[0079] In some possible implementation manners, in order to further improve the use experience, please refer to Figure 6 After step S4391, the method further includes but is not limited to the following steps:
[0080] In S510, comprehensive report information is generated according to the to-be-warehoused data information, the historical detection data and the data difference value information.
[0081] Specifically, the terminal device can generate comprehensive report information according to the to-be-warehoused data information, the historical detection data and the data difference value information.
[0082] In S520, the terminal device controls the display device preset on the smart bathroom mirror to display the comprehensive report information.
[0083] Specifically, after the terminal device generates the comprehensive report information, the terminal device can control the display device preset on the smart bathroom mirror to display the comprehensive report information, so that the target user can intuitively know the body condition of the target user, and the use experience of the user is improved.
[0084] The implementation principle of the embodiment of the method for cooperation of the plurality of detection devices based on the smart bathroom mirror is as follows: the terminal device can first acquire to-be-warehoused data information, face image information of a target user and first position information of a detection device; then generate first trigger area information of the detection device according to the first position information and a preset first trigger distance value; then determine second position information of the target user according to the face image information; and then determine whether to store the to-be-warehoused data information into a preset user database according to the first trigger area information and the second position information, so as to effectively distinguish the to-be-warehoused data information that actually belongs to the target user from the to-be-warehoused data information that does not actually belong to the target user, reduce the situation that the body detection data of another user is classified to the target user, improve the accuracy of the detection data, and effectively improve the use experience.
[0085] It should be noted that the sequence numbers of the steps in the above embodiments do not mean the execution sequence, and the execution sequence of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments.
[0086] Embodiments of the present application also provide a smart bathroom mirror-based multi-detection device coordination system, which is suitable for a smart bathroom mirror, the smart bathroom mirror is in communication connection with a plurality of detection devices, for the convenience of description, only parts related to the present application are shown, such as shown in the figure, the system 70 comprises: Figure 7
[0087] To-be-stored data information acquisition module 71: used for acquiring to-be-stored data information, face image information of a target user, and first position information of a detection device, wherein the to-be-stored data information is used for describing detection data sent by the detection device, and the first position information is used for describing a first position of the detection device relative to the smart bathroom mirror;
[0088] First trigger area information generation module 72: used for generating first trigger area information of the detection device according to the first position information and a preset first trigger distance value;
[0089] Position information determination module 73: used for determining second position information of the target user according to the face image information, wherein the second position information is used for describing a second position of the target user relative to the smart bathroom mirror;
[0090] Information storage module 74: used for determining whether to store the to-be-stored data information into a preset user database according to the first trigger area information and the second position information.
[0091] Optionally, the first trigger area information generation module 72 comprises:
[0092] First virtual sphere area information generation sub-module: used for generating first virtual sphere area information according to the first position information and the preset first trigger distance value, wherein the first virtual sphere area information is used for describing a region surrounded by a sphere with the first position information as a center and the first trigger distance value as a radius;
[0093] First trigger area information generation sub-module: used for generating the first trigger area information of the detection device according to the first virtual sphere area information, wherein the first trigger area information is used for describing a region surrounded by a circumscribed square corresponding to the sphere.
[0094] Optionally, the information storage module 74 comprises:
[0095] Position information judgment sub-module: used for judging whether the second position information is located within the first trigger area information;
[0096] Invalid data information determination sub-module: used for determining that the to-be-stored data information is invalid data information if the second position information is located outside the first trigger area information, wherein the invalid data information is used for describing to-be-stored data information which is not stored into the user database;
[0097] The information storage submodule is configured to store the to-be-warehoused data information into the user database if the second position information is located in the first trigger area information.
[0098] Optionally, the information storage submodule comprises:
[0099] The historical detection data acquisition unit is configured to acquire historical detection data of the target user based on the user database if the second position information is located in the first trigger area information, wherein the historical detection data is used to describe detection data that has been stored in the user database and is of the same type as the to-be-warehoused data information.
[0100] The data difference information generation unit is configured to generate data difference information according to a difference between the to-be-warehoused data information and the historical detection data.
[0101] The trust threshold comparison unit is configured to compare the data difference information with a preset trust threshold.
[0102] The information storage unit is configured to store the to-be-warehoused data information into the user database if the data difference information is less than the trust threshold.
[0103] The virtual sphere area information generation unit is configured to generate second virtual sphere area information according to the first position information and a preset second trigger distance value if the data difference information is greater than or equal to the trust threshold, wherein the second trigger distance value is a preset multiple of the first trigger distance value, and the preset multiple is a positive number less than 1 and greater than 0.
[0104] The trigger area information generation unit is configured to generate second trigger area information of the detection device according to the second virtual sphere area information.
[0105] The position information judgment unit is configured to judge whether the second position information is located in the second trigger area information.
[0106] The suspicious data information determination unit is configured to add a suspicious label to the to-be-warehoused data information and determine the to-be-warehoused data information as suspicious data information if the second position information is located outside the second trigger area information, wherein the suspicious data information is used to describe the to-be-warehoused data information after the suspicious label is added.
[0107] The suspicious data information storage unit is configured to store the suspicious data information into the user database.
[0108] The information storage unit is configured to store the to-be-warehoused data information into the user database if the second position information is located in the second trigger area information.
[0109] Optionally, the system 70 further comprises:
[0110] Comprehensive report information generation module: used to generate comprehensive report information based on the data to be entered into the database, historical test data, and data difference information;
[0111] Comprehensive report information display module: Used to control the display device preset on the smart bathroom mirror to display comprehensive report information.
[0112] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.
[0113] This application also provides a terminal device, such as... Figure 8 As shown, the terminal device 80 in this embodiment includes: a processor 81, a memory 82, and a computer program 83 stored in the memory 82 and executable on the processor 81. When the processor 81 executes the computer program 83, it implements the steps in the above-described traffic processing method embodiment, for example... Figure 1 Steps S100 to S400 are shown; or, when processor 81 executes computer program 83, it implements the functions of each module in the above-described device, for example... Figure 7 The functions of modules 71 to 74 are shown.
[0114] The terminal device 80 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device, and includes, but is not limited to, a processor 81 and a memory 82. Those skilled in the art will understand that... Figure 8 This is merely an example of terminal device 80 and does not constitute a limitation on terminal device 80. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 80 may also include input / output devices, network access devices, buses, etc.
[0115] The processor 81 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0116] The memory 82 can be an internal storage unit of the terminal device 80, for example, a hard disk or a memory of the terminal device 80, and can also be an external storage device of the terminal device 80, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 80. Further, the memory 82 can include both the internal storage unit and the external storage device of the terminal device 80. The memory 82 can also store the computer program 83 and other programs and data required by the terminal device 80, and can be used to temporarily store data that has been output or will be output.
[0117] An embodiment of the present application further provides a computer readable storage medium, which stores a computer program. The computer program, when executed by a processor, can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable code, or some intermediate form. The computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium, etc.
[0118] The above are preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, any equivalent changes made according to the methods, principles and structures of the present application should be covered within the protection scope of the present application.
Claims
1. A multi-detection device collaborative method based on a smart bathroom mirror, applicable to smart bathroom mirrors, wherein the smart bathroom mirror is communicatively connected to multiple detection devices, characterized in that, The method includes: The system acquires data to be added to the database, facial image information of the target user, and first location information of the detection device. The data to be added to the database describes the detection data sent by the detection device, and the first location information describes the first position of the detection device relative to the smart bathroom mirror. Based on the first location information and the preset first trigger distance value, the first trigger area information of the detection device is generated; Based on the facial image information, a second location information of the target user is determined, wherein the second location information is used to describe the second location of the target user relative to the smart bathroom mirror; Based on the first trigger area information and the second location information, determine whether to store the data to be added to the database in a preset user database; The step of determining whether to store the data to be added to the database in a preset user database based on the first trigger area information and the second location information includes: Determine whether the second location information is located within the first trigger area information; If the second location information is outside the first trigger area information, then the data information to be added to the database is determined to be invalid data information, wherein the invalid data information is used to describe the data information to be added to the database that is not stored in the user database; If the second location information is located within the first trigger area information, then it is determined that the data information to be stored in the database will be stored in the user database. Wherein, the step of determining to store the data to be added to the user database if the second location information is located within the first triggering area information includes: If the second location information is located within the first triggering area information, then based on the user database, the historical detection data of the target user is obtained, wherein the historical detection data is used to describe the detection data that has been stored in the user database and is of the same type as the data information to be added to the database; Data difference information is generated based on the difference between the data to be added to the database and the historical detection data; Compare the data difference information with a preset trust threshold; If the data difference information is less than the trust threshold, then it is determined that the data information to be added to the database will be stored in the user database. If the data difference information is greater than or equal to the trust threshold, then a second virtual sphere area information is generated based on the first location information and a preset second trigger distance value, wherein the second trigger distance value is a preset multiple of the first trigger distance value, and the preset multiple is a positive number less than 1 and greater than 0. Based on the second virtual sphere region information, the second trigger region information of the detection device is generated; Determine whether the second location information is located within the second trigger area information; If the second location information is outside the second trigger area information, then a questionable tag is added to the data information to be entered into the database, and the data information to be entered into the database is determined to be questionable data information. The questionable data information is used to describe the data information to be entered into the database after the questionable tag is added. The questionable data information will be stored in the user database. If the second location information is located within the second trigger area information, then it is determined that the data information to be added to the database will be stored in the user database.
2. The method according to claim 1, characterized in that, The step of generating the first trigger area information of the detection device based on the first location information and a preset first trigger distance value includes: Based on the first location information and a preset first trigger distance value, first virtual sphere region information is generated, wherein the first virtual sphere region information is used to describe the region enclosed by a sphere centered on the first location information and with the first trigger distance value as its radius; Based on the first virtual sphere region information, the first trigger region information of the detection device is generated, wherein the first trigger region information is used to describe the region enclosed by the circumscribed square corresponding to the sphere.
3. The method according to claim 1, characterized in that, After determining that the data to be added to the database will be stored in the user database if the second location information is located within the second trigger area information, the method further includes: A comprehensive report is generated based on the data to be added to the database, the historical detection data, and the data difference information. The control unit preset on the smart bathroom mirror displays the comprehensive report information.
4. A multi-detection device collaborative system based on a smart bathroom mirror, applicable to smart bathroom mirrors, wherein the smart bathroom mirror communicates with multiple detection devices, characterized in that, The system includes: The data to be entered module is used to acquire data to be entered, facial image information of the target user, and first location information of the detection device. The data to be entered describes the detection data sent by the detection device, and the first location information describes the first position of the detection device relative to the smart bathroom mirror. First trigger area information generation module: used to generate first trigger area information of the detection device based on the first location information and a preset first trigger distance value; Location information determination module: used to determine the second location information of the target user based on the facial image information, wherein the second location information is used to describe the second position of the target user relative to the smart bathroom mirror; Information storage module: used to determine whether to store the data to be added to the database in a preset user database based on the first trigger area information and the second location information; The information storage module includes: Location information determination submodule: used to determine whether the second location information is located within the first trigger area information; Invalid data information determination submodule: used to determine that the data information to be added to the database is invalid data information if the second location information is located outside the first trigger area information, wherein the invalid data information is used to describe the data information to be added to the database that is not stored in the user database; Information storage submodule: used to determine to store the data information to be stored in the user database if the second location information is located within the first trigger area information; The information storage submodule includes: Historical detection data acquisition unit: used to acquire historical detection data of the target user based on the user database if the second location information is located within the first trigger area information, wherein the historical detection data is used to describe detection data that has been stored in the user database and is of the same type as the data information to be added to the database; Data difference information generation unit: used to generate data difference information based on the difference between the data to be entered into the database and the historical detection data; Trust threshold comparison unit: used to compare the data difference information with a preset trust threshold; Information storage unit: used to determine to store the data information to be added to the user database if the data difference information is less than the trust threshold; Virtual sphere region information generation unit: If the data difference information is greater than or equal to the trust threshold, then based on the first position information and a preset second trigger distance value, generate second virtual sphere region information, wherein the second trigger distance value is a preset multiple of the first trigger distance value, and the preset multiple is a positive number less than 1 and greater than 0; Trigger area information generation unit: used to generate second trigger area information of the detection device based on the second virtual sphere area information; Location information determination unit: used to determine whether the second location information is located within the second trigger area information; The questionable data information determination unit is used to add a questionable tag to the data information to be entered into the database if the second location information is located outside the second trigger area information, thereby determining the data information to be entered into the database as questionable data information, wherein the questionable data information is used to describe the data information to be entered into the database after the questionable tag is added; Questionable data information storage unit: used to determine whether to store the questionable data information in the user database; Information storage unit: used to determine to store the data information to be added to the user database if the second location information is located within the second trigger area information.
5. The system according to claim 4, characterized in that, The first trigger area information generation module includes: First virtual sphere region information generation submodule: used to generate first virtual sphere region information based on the first position information and a preset first trigger distance value, wherein the first virtual sphere region information is used to describe the region enclosed by a sphere centered on the first position information and with the first trigger distance value as its radius; First trigger area information generation submodule: used to generate first trigger area information of the detection device based on the first virtual sphere area information, wherein the first trigger area information is used to describe the area enclosed by the circumscribed square corresponding to the sphere.
6. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 3.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Bathroom electric appliance system and data management method based on same
CN106502108A
Intelligent kitchen control method and device, electronic equipment and storage medium
CN111427287A