Mask control method and device, computer device, storage medium and mask

CN117815565BActive Publication Date: 2026-09-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311759285.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2026-09-15
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

[0004]基于此,有必要针对上述无法准确控制面罩中光源发生器件的工作状态这一技术问题,提供一种面罩控制方法、装置、计算机设备、计算机可读存储介质以及面罩

Benefits of technology

[0013] The aforementioned mask control method, device, computer equipment, and storage medium, after all pressure sensors installed on the mask frame detect pressure values ​​(i.e., after the detection results of each pressure sensor preliminarily determine that the user may remove the mask), control the operation of each distance sensor installed on the mask body. The distance sensor measures the distance to the measurement points on the user's face, thus avoiding misjudgment of mask removal behavior due to slight mask movement (not related to mask removal) when there is no possibility of removal, leading to incorrect control of the light source generator's operating state. Furthermore, the operating state of the light source generator installed on the mask can be controlled based on the real-time measurement distance of each distance sensor. In other words, by combining the detection results of each pressure sensor and each distance sensor, it is possible to accurately determine whether the user is removing the mask, thereby accurately controlling the operating state of the light source generator within the mask.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117815565B_ABST
    Figure CN117815565B_ABST
Patent Text Reader

Abstract

The application relates to a mask control method and device, computer equipment and a storage medium, and a mask. The mask control method comprises the following steps: in the case that each pressure sensor arranged on a mask wearing frame detects a pressure value, controlling each distance sensor arranged on a mask body to start running; the distance sensor is used for measuring the distance to a face measuring point of a use object; and based on the real-time measuring distance of each distance sensor, the working state of a light source generating device arranged on the mask body is controlled. The working state of the light source generating device in the mask can be accurately controlled by adopting the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of instrument control technology, and in particular to a mask control method, device, computer equipment, storage medium, and mask. Background Technology

[0002] In traditional phototherapy / beauty masks, to ensure that the light emitted by the mask is turned off simultaneously when the user removes the mask, thus avoiding glare to the user's eyes and affecting the user experience, the distance sensor in the mask is usually set with high detection accuracy (low distance threshold). This allows the light emitted by the mask to be automatically turned off when the distance sensor detects that the distance between the mask and the user's face is greater than the distance threshold.

[0003] However, the high detection accuracy of traditional technologies has certain limitations. Even slight shaking of the mask caused by actions other than mask removal can misinterpret this as mask removal, leading to the accidental shutdown of the mask's illumination light. Therefore, traditional mask control methods cannot accurately control the operating state of the light source within the mask. Summary of the Invention

[0004] Therefore, it is necessary to provide a mask control method, device, computer equipment, computer-readable storage medium, and mask to address the aforementioned technical problem of the inability to accurately control the working state of the light source generating device in the mask.

[0005] In a first aspect, this application provides a mask control method, comprising:

[0006] When all pressure sensors installed on the face mask holder detect pressure values, the system controls the operation of all distance sensors installed on the face mask body; the distance sensors are used to measure the distance to the measurement points on the user's face.

[0007] The operating state of the light source generating device set on the mask body is controlled based on the real-time measured distance of each distance sensor.

[0008] Secondly, this application also provides a mask control device, comprising:

[0009] The distance sensor control module is used to control the operation of each distance sensor installed on the face mask body when all pressure sensors installed on the face mask frame detect pressure values; the distance sensors are used to measure the distance to the measurement points on the face of the user.

[0010] The light source generating device control module is used to control the working state of the light source generating device set on the mask body based on the real-time measured distance of each distance sensor.

[0011] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the above-described mask control method.

[0012] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the aforementioned mask control method.

[0013] The aforementioned mask control method, device, computer equipment, and storage medium, after all pressure sensors installed on the mask frame detect pressure values ​​(i.e., after the detection results of each pressure sensor preliminarily determine that the user may remove the mask), control the operation of each distance sensor installed on the mask body. The distance sensor measures the distance to the measurement points on the user's face, thus avoiding misjudgment of mask removal behavior due to slight mask movement (not related to mask removal) when there is no possibility of removal, leading to incorrect control of the light source generator's operating state. Furthermore, the operating state of the light source generator installed on the mask can be controlled based on the real-time measurement distance of each distance sensor. In other words, by combining the detection results of each pressure sensor and each distance sensor, it is possible to accurately determine whether the user is removing the mask, thereby accurately controlling the operating state of the light source generator within the mask.

[0014] Fifthly, this application also provides a face mask, comprising:

[0015] The mask body is equipped with multiple distance sensors and a light source generator; the distance sensors are used to measure the distance to the measurement points on the face of the user, and the light source generator is used to emit illumination light;

[0016] A face mask holder connected to the face mask body is equipped with multiple pressure sensors; the pressure sensors are used to detect the pressure applied by the user to the face mask holder when the user removes the face mask.

[0017] The controller is connected to each pressure sensor, each distance sensor, and the light source generator, and is used to control the working state of the light source generator according to the above-mentioned mask control method.

[0018] The aforementioned face mask includes a face mask body, a face mask frame connected to the face mask body, and a controller. The face mask body is equipped with multiple distance sensors and a light source generator. The distance sensors are used to measure the distance to the measurement points on the face of the user. The light source generator is used to emit illumination light. The face mask frame is equipped with multiple pressure sensors. The pressure sensors are used to detect the pressure applied by the user to the face mask frame when the user removes the face mask. The controller is connected to each pressure sensor, each distance sensor, and the light source generator respectively, and is used to control the working state of the light source generator according to the aforementioned face mask control method. Therefore, during operation, the aforementioned face mask can first determine whether the user is likely to remove the face mask based on the detection results of each pressure sensor. Then, if the user is likely to remove the face mask, the operating state of the light source generator in the face mask can be controlled based on the measurement results of each distance sensor. This avoids misjudging the user's face mask removal behavior due to slight shaking of the face mask (which is not likely to be done) and thus incorrectly controlling the operating state of the light source generator. Therefore, the aforementioned face mask can accurately control the operating state of the light source generator in the face mask during operation. Attached Figure Description

[0019] Figure 1 This is a diagram illustrating the application environment of the mask control method in one embodiment;

[0020] Figure 2 This is a flowchart illustrating a mask control method in one embodiment;

[0021] Figure 3 This is a schematic diagram showing the distribution of distance sensors in one embodiment;

[0022] Figure 4 This is a side view of the face mask when it is removed in one embodiment;

[0023] Figure 5 This is a side view of the face mask when it is removed in another embodiment;

[0024] Figure 6 This is a side view of the face mask when it is removed in yet another embodiment;

[0025] Figure 7 This is a flowchart illustrating the mask control method in another embodiment;

[0026] Figure 8 This is a structural block diagram of a mask control device in one embodiment;

[0027] Figure 9 This is an internal structural diagram of a computer device in one embodiment;

[0028] Figure 10 This is a schematic diagram of a face mask in one embodiment. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0030] Unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0031] It should be noted that when an element is referred to as being "fixed to" or "set on" another element, it can be directly on the other element or there may be an intervening element. When an element is considered to be "connected to" another element, it can be directly connected to the other element or there may be an intervening element. The terms "vertical," "horizontal," "upper," "lower," "left," "right," and similar expressions used in this application are for illustrative purposes only and do not represent the only possible implementation.

[0032] The mask control method provided in this application embodiment can be applied to, for example, Figure 1 The mask 100 shown includes a controller 102, a pressure sensor 104, a distance sensor 106, and a light source generator 108. The controller 102 is connected to the pressure sensor 104, the distance sensor 106, and the light source generator 108. When all pressure sensors on the mask holder detect pressure values, the controller 102 controls the distance sensors 106 on the mask body 100 to start operating. The distance sensors 106 measure the distance to measurement points on the user's face. Furthermore, the controller 102 can control the operating state of the light source generator 108 on the mask 100 based on the real-time measurement distance of each distance sensor 106. The number of light source generators 108 can be multiple.

[0033] In one embodiment, such as Figure 2 As shown, a mask control method is provided, which is applied to... Figure 1Taking the controller in the example, the following steps are included:

[0034] Step 202: When all pressure sensors installed on the mask holder detect pressure values, control the operation of all distance sensors installed on the mask body; the distance sensors are used to measure the distance to the measurement points on the face of the user.

[0035] The system includes multiple pressure sensors. Each distance sensor has its own corresponding facial measurement point, and each distance sensor is used to measure the distance between itself and its corresponding facial measurement point.

[0036] It should be noted that in this embodiment, when the user removes the mask, the pressure sensor installed on the mask holder will detect the pressure applied by the user, that is, the pressure sensor will detect the pressure value. During the mask's operation, the pressure sensor is in a continuous working state, that is, the pressure sensor will detect whether pressure is applied in real time and transmit the real-time detection data to the controller.

[0037] Optionally, when the user is wearing a face mask and the face mask is in working condition, the controller can acquire the real-time detection data of each pressure sensor, and when all pressure sensors installed on the face mask holder detect pressure values, it determines that the user has applied pressure to the face mask holder, that is, the user may remove the face mask, and then controls the distance sensors installed on the face mask to start operating.

[0038] Optionally, if real-time detection data determines that the user is unlikely to remove the mask, the controller can control the distance sensors to remain inactive.

[0039] Step 204: Based on the real-time measured distance of each distance sensor, control the working state of the light source generating device set on the mask body.

[0040] The number of light source generating devices is multiple.

[0041] Optionally, after controlling each distance sensor to start operating, the controller can control the working state of the light source generating device set on the mask body based on the real-time measured distance of each distance sensor, rather than just based on the real-time detection data of each pressure sensor or only based on the real-time measured distance of each distance sensor. Instead, it combines the real-time detection data of each pressure sensor and the real-time measurement data of each distance sensor to achieve accurate control of the working state of the light source generating device.

[0042] It is understandable that, in this embodiment, on the one hand, the distance sensors only start operating when the real-time detection data from each pressure sensor indicates a possibility of the user removing their mask. This allows the system to receive the real-time distance measurements from each distance sensor, preventing the light source generator from being incorrectly stopped emitting light when the user is not likely to remove their mask. On the other hand, by controlling the light source generator to stop emitting light promptly based on the real-time distance measurements from each distance sensor when the pressure sensors indicate a possibility of the user removing their mask, the system avoids the light shining into the user's eyes when they remove their mask, thus improving the user experience. Furthermore, in this embodiment, the distance sensors do not need to operate continuously; the controller only activates them when all pressure sensors on the mask holder detect pressure values, which helps reduce energy consumption.

[0043] The aforementioned mask control method only activates the distance sensors on the mask body after all pressure sensors on the mask frame have detected pressure values, i.e., after the detection results of each pressure sensor preliminarily determine that the user may remove the mask. These distance sensors measure the distance to the measurement points on the user's face, thus avoiding misinterpretations of mask removal due to slight mask movement (not mask removal) when there is no possibility of removal, which could lead to incorrect control of the light source generator. Furthermore, the operating state of the light source generator on the mask can be controlled based on the real-time measurement distance of each distance sensor. In other words, by combining the detection results of each pressure sensor and each distance sensor, it is possible to accurately determine whether the user is removing the mask, thereby accurately controlling the operating state of the light source generator within the mask.

[0044] In one embodiment, the operating state of the light source generating device disposed on the mask body is controlled based on the real-time measured distance of each distance sensor, including:

[0045] Obtain the reference measurement distance for each distance sensor separately;

[0046] Based on the comparison between the real-time measured distance of each distance sensor and the reference measured distance, the working state of the light source generating device set on the mask body is controlled.

[0047] Specifically, for each distance sensor, the reference measurement distance can be characterized as the distance between the distance sensor and the corresponding facial measurement point after the user has put on the mask and without removing the mask.

[0048] Optionally, when the controller detects that the mask has started operating (i.e., the user has finished wearing the mask and started using it), the controller can control the reference measurement distance of each distance sensor and save the reference measurement distance of each distance sensor for the current user.

[0049] Furthermore, when the controller determines that the user may remove the mask based on the pressure sensor, the controller can obtain the reference measurement distance of each distance sensor from the stored data. After receiving the real-time measurement distances measured by each distance sensor, the controller controls the working state of the light source device set on the mask body based on the comparison between the real-time measurement distance of each distance sensor and the reference measurement distance.

[0050] In this embodiment, for each distance sensor, when the mask is put on and the mask has just started working, the controller can first acquire and store the reference measurement distance measured by each distance sensor. Then, when it is determined by each pressure sensor that the user may remove the mask, the controller controls the working state of the light source device by comparing the real-time measurement distance of each distance sensor with the reference measurement distance.

[0051] In one exemplary embodiment, obtaining the reference measurement distance for each distance sensor includes:

[0052] In response to the mask's operating command, control all distance sensors to start operating;

[0053] For each distance sensor that has started operating, control the distance sensor to measure the distance to the measurement point on the face of the user multiple times to obtain multiple sets of initial measurement distances obtained by the distance sensor;

[0054] If the difference between any two initial measurement distances is less than or equal to the error threshold, the average of the multiple initial measurement distances is used as the reference measurement distance obtained by the distance sensor.

[0055] The mask activation command can be triggered by the user via a button on the mask or by the user through an application. The command indicates that the user has put on the mask and is ready to use it. During the determination of the reference measurement distance, the number of measurements taken by each distance sensor can be flexibly configured according to actual needs, and the error threshold can also be flexibly configured according to actual accuracy requirements.

[0056] Optionally, the controller can respond to the mask operation command and control each distance sensor to start operating, so as to promptly measure the reference measurement distance between each distance sensor and its corresponding facial measurement point after the user has put on the mask. That is, for each distance sensor that has started operating, the controller can control the distance sensor to measure the distance to the user's facial measurement point multiple times, obtaining multiple sets of initial measurement distances obtained by the distance sensor. Furthermore, if the difference between any two sets of initial measurement distances is less than or equal to the error threshold, the average of the multiple sets of initial measurement distances is used as the reference measurement distance obtained by the distance sensor.

[0057] For example, taking a face mask equipped with n distance sensors as an example, regarding the distance sensors ( i∈[1,n] The controller can control the distance sensor. The distance sensor was measured multiple times at set intervals. The distance to the corresponding facial measurement point; assuming the measurement is performed 3 times, the controller can obtain the distance sensor data. The three sets of initial measurement distances obtained , Furthermore, if , If the difference between any two groups is less than or equal to the error threshold, the controller can... , The average value is used as the reference measurement distance obtained by the distance sensor. .

[0058] Similarly, the controller can obtain information from the distance sensor in the same way. ... Each has its own baseline measurement distance.

[0059] In this embodiment, when the user puts on the mask and begins to use it, each distance sensor will determine the reference measurement distance between the distance sensor and the corresponding facial measurement point through multiple measurements. This can improve the accuracy of the obtained reference measurement distance, so that when comparing the reference measurement distance of each distance sensor with the real-time measurement distance, the working state of the light source device can be accurately controlled by comparing the results.

[0060] In another embodiment, the mask control method further includes:

[0061] In response to the mask's operating command, the control light source generator and various pressure sensors begin to operate.

[0062] Optionally, while the controller responds to the mask's operating command and controls the distance sensors installed on the mask body to start working, the controller also controls the light source generator installed on the mask body to start operating, that is, controls the light source generator to emit illumination light, and controls the pressure sensors to start operating and acquire the real-time detection data of each pressure sensor.

[0063] In this embodiment, when the mask starts working, the pressure sensors are simultaneously controlled to start operating, so as to detect in a timely manner whether the user may remove the mask during the process of wearing and using the mask, so as to adjust the working state of the light source device in a timely manner.

[0064] In another embodiment, the mask control method further includes:

[0065] Once the reference measurement distance of each distance sensor is obtained, control each distance sensor to stop operating.

[0066] Optionally, after obtaining the reference measurement distances of all distance sensors installed on the face mask, the controller can control all distance sensors to stop operating until, during the operation of the face mask, all pressure sensors installed on the face mask frame detect pressure values, at which point the controller will control each distance sensor to start operating.

[0067] In this embodiment, the distance sensors installed on the face mask do not need to operate continuously. The controller only activates the distance sensors when the user has put on the face mask and the mask begins to operate, and when all pressure sensors installed on the face mask holder detect pressure values. This reduces energy consumption and prevents the measurement data from the distance sensors from interfering with the controller's accurate control of the light source when the user is unlikely to remove the face mask.

[0068] In one exemplary embodiment, the mask control method further includes:

[0069] If the difference between two initial measured distances is greater than the error threshold, control each distance sensor to re-measure the distance.

[0070] Optionally, for each distance sensor, if the difference between two initial measurement distances among multiple sets of initial measurement distances collected by a certain distance sensor is greater than the error threshold, the controller can determine that there is a large measurement error in the process of measuring the reference distance and it needs to be remeasured. Therefore, the controller can control each distance sensor set on the mask body to remeasure the distance.

[0071] For example, taking a face mask equipped with n distance sensors, if the initial distance measurement is performed 3 times, for the distance sensors... In the distance sensor The three sets of initial measurement distances obtained , If the difference between any two sets exceeds the error threshold, the controller can adjust the distance sensor to ensure the accuracy of the reference measurement distance. ... The initial measurement distance was re-acquired for all of them.

[0072] In this embodiment, if the consistency of the initial measurement distances obtained by a certain distance sensor is poor, that is, if there is a large error between two sets of initial measurement distances, all distance sensors will be controlled to remeasure multiple sets of initial measurement distances. This ensures the accuracy of the reference measurement distance of each distance sensor, which is beneficial for accurately controlling the working state of the light source generating device in the future.

[0073] In one embodiment, based on the comparison between the real-time measured distance of each distance sensor and the reference measured distance, the operating state of the light source generating device disposed on the mask is controlled, including:

[0074] Based on the area where each distance sensor is located within the mask body, the distance sensors are divided into multiple groups;

[0075] For each group of distance sensors, determine the comparison result between the real-time measured distance and the reference measured distance for each distance sensor in the group;

[0076] Based on multiple comparison results within each group, the operating state of the light source generating device set on the mask body is controlled.

[0077] The grouping method of each distance sensor can be flexibly configured according to actual control requirements, including but not limited to the method shown in this embodiment.

[0078] Optionally, the controller can divide the distance sensors into multiple groups according to their respective areas within the mask body. For each group of distance sensors, the controller can determine the comparison result between the real-time measured distance and the reference measured distance for each distance sensor within the group, thus obtaining multiple comparison results within each group. If multiple comparison results within any group indicate that the user is removing the mask, the controller can control the working state of the light source generator set on the mask body, that is, control the light source generator to stop emitting illumination light. Otherwise, control the light source generator to maintain the working state of emitting illumination light.

[0079] For example, consider a face mask equipped with six distance sensors (three in the forehead area and three in the chin area) and multiple light source generating devices. Figure 3 As shown, the controller can divide multiple distance sensors into two groups: one group consists of distance sensors located in the forehead area of ​​the mask, and the other group consists of distance sensors located in the chin area of ​​the mask. If the distance sensors in the forehead area are... The distance sensors located in the chin area of ​​the mask are respectively , Corresponding real-time measurement distance Distance from reference measurement The difference between them is And so on. ~ The differences between the corresponding real-time measured distance and the reference measured distance are as follows: , Furthermore, in , , When the user removes their mask, the controller can stop the light source from emitting illumination; or, in the event that the user removes their mask, the controller can stop the light source from emitting illumination. In cases where the user removes their mask, the controller can stop the light source from emitting illumination; or... , Both indicate that the user is removing the mask, and the controller can control the light source to stop emitting illumination light.

[0080] Among them, with Figure 3 Taking the distribution area of ​​each distance sensor in the middle as an example, in only , , When both represent instances where the user object exhibits mask removal behavior, it can be understood as: the user object, through... Figure 4 The mask is removed in the manner shown, where the distance between the forehead area of ​​the mask and the forehead area of ​​the wearer is first increased; then, only when... When both represent instances where the user object exhibits mask removal behavior, it can be understood as: the user object, through... Figure 5 The mask is removed as shown, with the distance between the chin area of ​​the mask and the chin area of ​​the user increasing initially; then... , , When both represent instances where the user object exhibits mask removal behavior, it can be understood as: the user object, through... Figure 6 The mask is removed in the manner shown, where the distance between the forehead area of ​​the mask and the forehead area of ​​the user, and the distance between the chin area of ​​the mask and the chin area of ​​the user, are both increased simultaneously.

[0081] It should be noted that the distribution area and number of distance sensors, and the number and distribution area of ​​light source generating devices in this embodiment, include, but are not limited to, […]. Figure 3 As shown, Figure 3 The face mask shown does not limit this application.

[0082] In this embodiment, on the one hand, considering the different mask-removal habits of users, the distance sensors are grouped, and the operating state of the light source generator is controlled based on the comparison results of each distance sensor within each group. On the other hand, control based on the comparison results of multiple distance sensors within a group ensures the accuracy of control over the light source generator. Furthermore, compared to traditional technologies that rely solely on the measurement results of a single or a small number of distance sensors for control, this embodiment adds more distance sensors, further ensuring the accuracy of control over the light source generator.

[0083] In one exemplary embodiment, based on multiple comparison results within each group, the operating state of the light source generating device disposed on the mask body is controlled, including:

[0084] For each group of distance sensors, if the real-time measured distance of each distance sensor in the group is greater than the reference measured distance, and the difference between the real-time measured distance and the reference measured distance is greater than the difference threshold, the light source generating device set on the mask body will stop emitting illumination light.

[0085] The difference threshold can be flexibly configured according to the actual control accuracy. In this embodiment, the difference threshold can be set to a smaller value. Since the control process in this embodiment is based on the pressure sensor determining that the user is removing the mask, it can avoid interference caused by non-mask removal behavior in traditional technology. Therefore, setting the difference threshold to a smaller value in this embodiment can further improve the control accuracy.

[0086] Optionally, for each group of distance sensors, if the real-time measured distance of each distance sensor in the group is greater than the reference measured distance, and the difference between the real-time measured distance and the reference measured distance is greater than the difference threshold, the controller can determine that the comparison result corresponding to each distance sensor in the group indicates that the user has mask removal behavior. Furthermore, the controller can control the light source generating device set on the mask to stop emitting illumination light.

[0087] For example, with Figure 3 For example, in the face mask, , , If all values ​​are greater than 0 and all values ​​are greater than the difference threshold, the controller can control the light source generator located on the mask to stop emitting illumination light; or, in If all values ​​are greater than 0 and all values ​​are greater than the difference threshold, the controller can control the light source generator located on the mask to stop emitting illumination light; or, in , , If all values ​​are greater than 0 and all values ​​are greater than the difference threshold, the controller can control the light source generator set on the mask to stop emitting illumination light.

[0088] In this embodiment, if all distance sensors in any group detect that the real-time measured distance is greater than the reference measured distance and the difference between the real-time measured distance and the reference measured distance is large, it can promptly and accurately determine that the user is removing the mask, and then promptly and accurately control the light source generating device to stop emitting illumination light.

[0089] In another embodiment, such as Figure 7 The diagram shows a complete flow chart of a face mask control method, which mainly includes the following steps:

[0090] The controller can respond to the mask's operating command, controlling all distance sensors, pressure sensors, and light source generators installed on the mask to start operating, and controlling each distance sensor to start distance measurement. At the same time, it counts the number of measurements taken by each distance sensor, and at this time, the count result is 0.

[0091] Furthermore, after waiting for the interval set for each measurement, the count is incremented by one, and it is determined whether the current count equals the number of measurements. If not, the count is incremented again after the interval. If equal, the multiple initial measurement distances obtained by each distance sensor are compared to determine if the difference between any two initial measurement distances exceeds the error threshold. If so, the process returns to the step of controlling each distance sensor to start distance measurement. If not, for each distance sensor, the average of the multiple initial measurement distances obtained by that distance sensor is used as the reference measurement distance obtained by that distance sensor, thereby determining the reference measurement distance obtained by each distance sensor and controlling each distance sensor to stop working.

[0092] Furthermore, the controller can determine whether all pressure sensors have detected pressure values. If so, it controls all distance sensors to start operating and acquires the real-time measured distance from each sensor. Otherwise, it controls all light source generators to continue emitting illumination. The controller can pre-group all distance sensors. Therefore, the controller can determine if there exists a group where the difference between the real-time measured distance and the reference measured distance for each distance sensor is greater than a threshold difference. If so, it controls the light source generators to stop emitting illumination; otherwise, it controls all light source generators to continue emitting illumination.

[0093] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0094] Based on the same inventive concept, this application also provides a mask control device for implementing the mask control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more mask control device embodiments provided below can be found in the limitations of the mask control method described above, and will not be repeated here.

[0095] In one embodiment, such as Figure 8 As shown, a mask control device is provided, including: a distance sensor control module 802 and a light source generating device control module 804, wherein:

[0096] The distance sensor control module 802 is used to control the operation of each distance sensor installed on the face mask body when all pressure sensors installed on the face mask frame detect pressure values; the distance sensor is used to measure the distance to the measurement points on the face of the user.

[0097] The light source generating device control module 804 is used to control the working state of the light source generating device set on the mask body based on the real-time measured distance of each distance sensor.

[0098] The aforementioned mask control device only activates the distance sensors on the mask body after all pressure sensors on the mask frame have detected pressure values, i.e., after the detection results of each pressure sensor preliminarily determine that the user may remove the mask. These distance sensors measure the distance to the measurement points on the user's face, thus avoiding misinterpretation of mask removal behavior due to slight mask movement (not related to mask removal) when there is no possibility of removal, which could lead to incorrect control of the light source generator. Furthermore, the device can control the operation of the light source generator on the mask based on the real-time measurement distance of each distance sensor. In other words, by combining the detection results of each pressure sensor and each distance sensor, it can accurately determine whether the user is removing the mask, thereby accurately controlling the operation of the light source generator within the mask.

[0099] In one embodiment, the light source generating device control module is further configured to acquire the reference measurement distance of each distance sensor respectively; and control the working state of the light source generating device set on the mask body based on the comparison result of the real-time measurement distance of each distance sensor and the reference measurement distance.

[0100] In one embodiment, the mask control device further includes a reference measurement distance acquisition module, which is used to control each distance sensor to start running in response to the mask working command; for each distance sensor that has started running, the distance sensor is controlled to measure the distance to the measurement point on the face of the user multiple times to obtain multiple sets of initial measurement distances measured by the distance sensor; if the difference between any two sets of initial measurement distances is less than or equal to the error threshold, the average of the multiple sets of initial measurement distances is used as the reference measurement distance measured by the distance sensor.

[0101] In one embodiment, the mask control device further includes a working command response module, which is used to control the light source generator and each pressure sensor to start operating in response to the mask working command.

[0102] In one embodiment, the mask control device further includes a distance sensor control module, which controls each distance sensor to stop operating after obtaining its own reference measurement distance.

[0103] In one embodiment, the mask control device further includes a measurement control module, which is used to control each distance sensor to re-measure the distance if the difference between two sets of initial measurement distances is greater than an error threshold.

[0104] In one embodiment, the light source generating device control module is further configured to divide each distance sensor into multiple groups according to the area where each distance sensor is located in the mask body; for each group of distance sensors, determine the comparison result between the real-time measured distance and the reference measured distance of each distance sensor in the group; and control the working state of the light source generating device set in the mask body based on the multiple comparison results in each group.

[0105] In one embodiment, the light source generating device control module is further configured to control the light source generating device located on the mask body to stop emitting illumination light if, for each group of distance sensors, the real-time measured distance of each distance sensor in the group is greater than the reference measured distance and the difference between the real-time measured distance and the reference measured distance is greater than the difference threshold.

[0106] Each module in the aforementioned mask control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0107] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores mask control data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a mask control method.

[0108] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0109] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0110] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0111] In one embodiment, such as Figure 10 As shown, a face mask is provided, comprising:

[0112] The mask body is equipped with multiple distance sensors and a light source generator; the distance sensors are used to measure the distance to the measurement points on the face of the user, and the light source generator is used to emit illumination light;

[0113] A mask-wearing frame connected to the mask body is equipped with multiple pressure sensors; the pressure sensors are used to detect the pressure applied by the user to the mask-wearing frame when the user removes the mask.

[0114] The controller is connected to each pressure sensor, each distance sensor, and the light source generator, and is used to control the working state of the light source generator according to the mask control method described above.

[0115] The number of light source generating devices is multiple, and the number and distribution of light source generating devices, distance sensors, and pressure sensors include, but are not limited to, those mentioned above. Figure 10 The types shown are as follows.

[0116] Optionally, the frame includes multiple temple supports, each equipped with a pressure sensor.

[0117] Optionally, the mask body includes a light-blocking component for blocking external light from shining on the eyes of the user.

[0118] The aforementioned face mask includes a face mask body, a face mask frame connected to the face mask body, and a controller. The face mask body is equipped with multiple distance sensors and a light source generator. The distance sensors are used to measure the distance to the measurement points on the face of the user. The light source generator is used to emit illumination light. The face mask frame is equipped with multiple pressure sensors. The pressure sensors are used to detect the pressure applied by the user to the face mask frame when the user removes the face mask. The controller is connected to each pressure sensor, each distance sensor, and the light source generator respectively, and is used to control the working state of the light source generator according to the aforementioned face mask control method. Therefore, during operation, the aforementioned face mask can first determine whether the user is likely to remove the face mask based on the detection results of each pressure sensor. Then, if the user is likely to remove the face mask, the operating state of the light source generator in the face mask can be controlled based on the measurement results of each distance sensor. This avoids misjudging the user's face mask removal behavior due to slight shaking of the face mask (which is not likely to be done) and thus incorrectly controlling the operating state of the light source generator. Therefore, the aforementioned face mask can accurately control the operating state of the light source generator in the face mask during operation.

[0119] It should be noted that the user / user information (including but not limited to user / user device information, user / user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0120] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0121] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A mask control method characterized by, The method includes: When all pressure sensors installed on the face mask holder detect pressure values, the system controls the operation of all distance sensors installed on the face mask body; these distance sensors are used to measure the distance to the measurement points on the user's face. Each distance sensor's reference measurement distance is acquired separately; According to the area where each distance sensor is located in the mask body, the distance sensors are divided into multiple groups; For each group of distance sensors, the comparison result between the real-time measured distance and the reference measured distance of each distance sensor in the group is determined. Based on multiple comparison results within each group, the working state of the light source generating device set on the mask body is controlled.

2. The method according to claim 1, characterized in that, The step of acquiring the reference measurement distance for each of the distance sensors includes: In response to the mask operation command, control each of the distance sensors to start operating; For each of the distance sensors that has started operating, the distance sensor is controlled to measure the distance to the facial measurement points of the user multiple times, so as to obtain multiple sets of initial measurement distances measured by the distance sensor; If the difference between any two sets of initial measurement distances is less than or equal to the error threshold, the average of the multiple sets of initial measurement distances is used as the reference measurement distance obtained by the distance sensor.

3. The method according to claim 2, characterized in that, The method further includes: In response to the mask operation command, the light source generator and each of the pressure sensors are controlled to start operating.

4. The method according to claim 2, characterized in that, The method further includes: Once the reference measurement distance of each distance sensor is obtained, control each distance sensor to stop operating.

5. The method according to claim 2, characterized in that, The method further includes: If the difference between two sets of initial measured distances is greater than the error threshold, control each distance sensor to re-measure the distance.

6. The method according to claim 1, characterized in that, The process of controlling the operating state of the light source generating device located on the mask body based on multiple comparison results within each group includes: For each group of distance sensors, if the real-time measured distance of each distance sensor in the group is greater than the reference measured distance, and the difference between the real-time measured distance and the reference measured distance is greater than the difference threshold, the light source generating device set on the mask body is controlled to stop emitting illumination light.

7. A mask control device, characterized in that, The device includes: The distance sensor control module is used to control the operation of each distance sensor installed on the face mask body when all pressure sensors installed on the face mask frame detect pressure values; the distance sensors are used to measure the distance to the measurement points on the face of the user. The light source generating device control module is used to acquire the reference measurement distance of each of the distance sensors; divide each distance sensor into multiple groups according to the area where each distance sensor is located in the mask body; for each group of distance sensors, determine the comparison result between the real-time measurement distance and the reference measurement distance of each distance sensor in the group; and control the working state of the light source generating device set in the mask body based on the multiple comparison results in each group.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A face mask, characterized in that, include: The mask body is equipped with multiple distance sensors and a light source generator; the distance sensors are used to measure the distance to the measurement points on the face of the user, and the light source generator is used to emit illumination light; A mask fitting frame connected to the mask body is provided with multiple pressure sensors; the pressure sensors are used to detect the pressure applied by the user to the mask fitting frame when the user removes the mask; A controller, which is connected to each of the pressure sensors, each of the distance sensors and the light source generating device respectively, is used to control the working state of the light source generating device according to the mask control method according to any one of claims 1-6.

11. The face mask according to claim 10, characterized in that, The face mask holder includes: Multiple temple supports, each of which is equipped with a pressure sensor.

12. The face mask according to claim 10, characterized in that, The mask body includes: A light-shielding component for blocking external light from shining on the eyes of the user.

Citation Information

Patent Citations

  • Head-mounted display device and adjusting method thereof

    CN108124468A

  • Beauty mask control method, beauty mask, head-mounted device and storage medium

    CN116942088A