Human body static detection method and device, computer equipment and storage medium
By using ultrasonic signal detection technology in intelligent devices, we calculate the variance and maximum value of ultrasonic observation data, determine the distance between the human body and the device, solving the problem of low infrared sensing detection accuracy, and achieving more accurate human body detection and equipment status control , avoiding screen closure.
Patent Information
- Application Number
- CN202411197965.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, infrared sensing detection technology is costly and has limited accuracy when detecting human bodies in smart devices, especially when the user is in a focused mode or wears heavy clothing, which may cause screen failure to be accidentally.
The speakers and microphones that come with smart devices emit and receive ultrasonic signals. By calculating the variance and maximum value of ultrasonic observation data, the spatial distance between the target object and the device is determined, and the working status of the device is controlled to improve the accuracy of human detection. .
Improve the accuracy of human body detection in focus mode, avoid equipment screen erroneous shutdown caused by false detection, reduce detection cost, and improve detection accuracy.
Smart Images

Figure CN119087538A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of living body perception technology, and specifically to a human body static detection method, device, computer equipment and storage medium. Background Art
[0002] In the application scenarios of smart devices, in order to improve the battery life of smart devices and ensure the security of the content on the smart device screen after the user leaves, a human body sensing detection device is usually added to the smart device. The human body sensing detection device detects whether there is a human body on the smart device terminal, and controls the working state of the smart device according to the detection results. In the prior art, infrared detection technology is usually used for human body perception detection, but this traditional infrared sensing often requires the installation of multiple devices at multiple angles, the detection cost is high, and the angle and accuracy of infrared detection are limited.
[0003] Therefore, the built-in speakers and microphones of smart devices can be used to send and receive ultrasonic signals, and based on this, it can be determined whether there is human activity, thereby controlling the working state of the smart device. However, this method requires the detection of certain activities of the user's body parts, and when the user is in a focused mode such as watching a movie or thinking, especially when the user is wearing heavy clothes, the rise and fall of the user's chest when breathing is also difficult to detect, which may cause the smart device to be accidentally turned off. Summary of the invention
[0004] In view of this, multiple embodiments of this specification are dedicated to providing a human body static detection method, apparatus, computer device, storage medium and computer program product to improve the accuracy of human body detection using ultrasound in focus mode to a certain extent.
[0005] The implementation mode of this specification proposes a human body static detection method, which is applied to a smart device, and the smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit. The method includes: controlling the ultrasonic transmitting unit to transmit an ultrasonic signal, and collecting a preset number of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflected signal in an ultrasonic echo signal received by the ultrasonic receiving unit; calculating the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; when the ultrasonic observation difference value is less than or equal to a preset threshold value, determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool; when the spatial distance is less than or equal to the preset distance, controlling the smart device to be in a working state.
[0006] The implementation mode of this specification proposes a human body static detection device, which is applied to an intelligent device. The intelligent device includes an ultrasonic transmitting unit and an ultrasonic receiving unit. The human body static detection device includes: a signal acquisition unit, which is used to control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset number of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflected signal in an ultrasonic echo signal received by the ultrasonic receiving unit; a variance calculation unit, which is used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; a distance measurement unit, which is used to determine the spatial distance between the target object and the intelligent device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is less than or equal to a preset threshold; and a device control unit, which is used to control the intelligent device to be in a working state when the spatial distance is less than or equal to the preset distance.
[0007] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the above embodiment when executing the computer program.
[0008] The embodiments of this specification provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiments is implemented.
[0009] The embodiments of this specification provide a computer program product, including computer instructions, and the computer instructions are used to enable a computer to execute the method described in the above embodiments.
[0010] The implementation method of this specification sends an ultrasonic signal through the microphone of the smart device, and then the speaker receives the echo signal reflected by the target object in the environment, and collects ultrasonic observation data representing the ultrasonic reflection signal in the echo signal into a dynamic resource pool, and then calculates the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value. When the ultrasonic observation difference value is less than or equal to a preset threshold, the spatial distance between the target object and the smart device is determined according to the maximum value of the ultrasonic observation data in the dynamic resource pool. Then, when the spatial distance is less than or equal to the preset distance, the smart device is controlled to be in a working state, so that when the user is in focus mode, ultrasound can be used for distance measurement to identify whether obstacles around the smart device can be detected, thereby improving the accuracy of human body detection using ultrasound in focus mode to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 Shown is a schematic flow chart of a human body static detection method provided in one embodiment.
[0012] Figure 2 Shown is a schematic diagram of a human body static detection device provided in one embodiment.
[0013] Figure 3 Shown is a schematic diagram of a computer device provided by an embodiment. DETAILED DESCRIPTION
[0014] In order to enable those skilled in the art to better understand the solution of this specification, the technical solution in the implementation of this specification will be clearly and completely described below in conjunction with the drawings in the implementation of this specification. Obviously, the described implementation is only a part of the implementation of this specification, not all of the implementations. Based on the implementation in this specification, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0015] In the application scenarios of smart devices, in order to improve the battery life of smart devices and ensure the security of the content on the smart device screen after the user leaves, a human body sensing detection device is usually added to the smart device. The human body sensing detection device detects whether there is a human body on the smart device terminal, and controls the working state of the smart device according to the detection results. In the prior art, infrared detection technology is usually used for human body perception detection, but this traditional infrared sensing often requires the installation of multiple devices at multiple angles, the detection cost is high, and the angle and accuracy of infrared detection are limited.
[0016] Therefore, the built-in speakers and microphones of smart devices can be used to send and receive ultrasonic signals, and based on this, it can be determined whether there is human activity, thereby controlling the working state of the smart device. However, this method requires the detection of certain activities of the user's body parts, and when the user is in a focused mode such as watching a movie or thinking, especially when the user is wearing heavy clothes, the rise and fall of the user's chest when breathing is also difficult to detect, which may cause the smart device to be accidentally turned off.
[0017] Therefore, the embodiments of this specification provide a human body static detection method to improve the accuracy of human body detection using ultrasound in focus mode to a certain extent, and avoid the smart device being accidentally turned off because the user is in focus mode.
[0018] See also Figure 1 The embodiment of this specification provides a human body static detection method, which is applied to a smart device. The smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit. The method includes the following steps.
[0019] Step S110: Control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit.
[0020] In some cases, ultrasonic waves are generated by ultrasonic sensors and propagated into the air or medium. When ultrasonic waves encounter the surface of an object, part of the wave energy will be reflected back by the surface of the object to form a reflected wave. For ultrasonic reflection, when the transmitted ultrasonic wave encounters a stationary object, the frequency of the reflected wave is the same as the frequency of the transmitted wave. However, if the object itself is in motion, such as moving closer to or farther away from the transmitter or receiver, the frequency of the reflected wave will change. Therefore, the reflected signal received by the ultrasonic receiving unit can be used to determine whether there is human activity around the smart device.
[0021] In this embodiment, the smart device refers to an electronic device that can connect and interact with other devices or systems through the Internet or other wireless communication technologies. These devices usually have certain intelligent functions, such as data analysis, automated operation and artificial intelligence technology. The smart device can be a laptop, a mobile phone, a learning machine, a server, etc.
[0022] In this embodiment, the ultrasonic transmitting unit is usually made of piezoelectric ceramic material, such as strontium tantalum titanate (PZT), which has a piezoelectric effect. This means that when an electric field is applied, the piezoelectric material will produce mechanical deformation, that is, vibration or compression. This mechanical deformation causes the atoms in the material to rearrange, thereby generating sound waves. The generated sound waves will propagate to the object being detected through the air or medium at a specific frequency and amplitude.
[0023] In this embodiment, the ultrasonic receiving unit generally also includes a piezoelectric ceramic piece or crystal. When the transmitted ultrasonic wave encounters the surface or internal structure of the object to be measured, part of the energy will return to the ultrasonic receiving unit in the form of a reflected wave. After the piezoelectric material of the receiving unit receives the reflected ultrasonic wave, it will produce a tiny mechanical vibration. This mechanical vibration is converted into an electrical signal through the piezoelectric effect. The vibration of the piezoelectric material will produce a voltage change between the electrodes, and this change is the received ultrasonic signal. The received electrical signal will first be amplified by an amplifier to enhance the strength and clarity of the signal. Subsequently, it will pass through a signal processing system to measure the characteristics of the signal, such as the amplitude of the signal, time delay, etc.
[0024] In this embodiment, first, the intelligent device can control the ultrasonic transmitting unit (such as a speaker) to emit a sound signal outward, where the sound signal can be an ultrasonic signal between 18.5kHZ and 22kHZ. Then, the ultrasonic receiving unit can receive these echo signals reflected from the surfaces of objects in these spaces, and then determine the ultrasonic observation data representing the reflected signals of the target objects in the echo signals. Each frame of ultrasonic signal emitted can correspond to multiple frames of ultrasonic observation data at different locations. Then, the reflected signal (ultrasonic observation data) representing a position can be stored in a dynamic resource pool.
[0025] In this embodiment, the dynamic resource pool can be an array or vector of fixed length. When the dynamic resource pool is full of ultrasonic observation data, whenever new ultrasonic observation data enters the tail of the dynamic resource pool, the ultrasonic observation data at the head of the dynamic resource pool needs to be deleted first, and the remaining ultrasonic observation data is moved forward one position one by one.
[0026] Step S120: Calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value.
[0027] In this embodiment, variance is a statistic that measures the degree of dispersion of a data set. It calculates the average of the squares of the differences between the data points and the mean. The larger the variance, the more dispersed the data points are; the smaller the variance, the more concentrated the data points are.
[0028] In this embodiment, the ultrasonic observation data reflects the change of the reflected signal in the echo signal. For the reflected signals of the same material at the same location, they should be uniform as a whole, that is, the data points of each ultrasonic observation data should be relatively concentrated. Therefore, the variance can be used to measure whether the data has changed. If the variance is large, it means that there are human activities around the smart device. Therefore, the variance of the ultrasonic observation data detected over a period of time can be used to determine whether there are human activities around the smart device.
[0029] Step S130: When the ultrasonic observation difference value is less than or equal to a preset threshold, determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool.
[0030] In this embodiment, if the ultrasonic observation difference value is less than or equal to the preset threshold, it means that there is no human activity around the smart device or the movement is very small. At this time, the spatial distance between the smart device and the obstacle can be measured based on "TOF". If the spatial distance is less than or equal to the preset threshold, it means that the user may still be around the smart device; if the spatial distance is greater than the preset threshold, it means that the user is far away from the smart device.
[0031] Step S140: When the spatial distance is less than or equal to a preset distance, control the smart device to be in a working state.
[0032] In this implementation, if the spatial distance is less than or equal to the preset threshold, it means that the user may still be around the smart device. In this case, in order to ensure the user experience, the smart device needs to be kept in working state.
[0033] In some implementations, the method may further include: when the spatial distance is greater than a preset distance, controlling the smart device to be in a screen-off state.
[0034] In this embodiment, if the spatial distance is greater than the preset threshold, it means that the user is far away from the smart device. At this time, in order to minimize the power consumption of the smart device and to consider the security of the information stored in the smart device, the smart device needs to be locked and its screen can be turned off, thereby ensuring the security of the user's data on the one hand and reducing the power consumption of the smart device to a certain extent on the other hand.
[0035] In some embodiments, the method may further include: determining a threshold of the Kalman filter based on the ultrasonic observation difference value with the smallest value among multiple ultrasonic observation difference values within a preset time period; performing Kalman filtering on the ultrasonic observation difference value according to the threshold of the Kalman filter to obtain a target ultrasonic observation difference value; accordingly, in the step of determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool, it may include: when the target ultrasonic observation difference value is less than or equal to the preset threshold, determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool.
[0036] In this embodiment, in the process of continuously updating the variance, due to the influence of environmental noise, human body detection based on the change of the observed value will have errors, and it is difficult to define the threshold of human presence and absence. Therefore, this embodiment uses the Kalman filtering method to filter the variance to eliminate the influence of environmental noise on the detection results. Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output ultrasonic observation values. Its function is filtering, and its purpose is to reduce the influence of noise and interference on data measurement.
[0037] The Kalman equation adopted in this embodiment is as follows:
[0038] (1) Prediction part:
[0039] The covariance of the system estimate at time K = the system covariance at time k-1 + the process noise covariance, that is:
[0040]
[0041] (2) Kalman gain equation:
[0042] Kalman gain = system estimation covariance at time k / (system estimation covariance at time k + observation noise covariance), that is:
[0043]
[0044] (3) Update the optimal value solution:
[0045] The optimal value of the state at time k = the predicted value of the state + Kalman gain * (measured value - predicted value of the state), that is:
[0046]
[0047] Specifically, in the process of updating the variance, it is necessary to retain the minimum value Var of the variance over a period of time min During this period of time, a certain multiple of the minimum variance value Var during this period of time min *K var Set as the threshold of Kalman filter, that is, the preset threshold.
[0048] Among them, K var The setting range is 10-20 times. Variance indicates the discreteness of data. The variance data in the unmanned state is relatively stable, mainly concentrated near a value, and the variance is small. The noise in the environment only makes the data fluctuate slightly larger. This part of the fluctuation can be included by 10-20 times the minimum variance. var By setting it within the above range, the filtered target ultrasonic observation difference value can be obtained. Therefore, when the target ultrasonic observation difference value is less than or equal to the preset threshold, it can be determined that there is no one around the smart device or the user's movement is very small. At this time, it is necessary to further detect the distance between the smart device and the obstacle.
[0049] In some embodiments, the method may further include: controlling the smart device to be in a working state when the target ultrasound observation difference value is greater than a preset threshold.
[0050] In this embodiment, when the target ultrasonic observation difference value is greater than or equal to the preset variance, it indicates that there are human activities around the smart device, and the smart device can be controlled to be in a working state. If the smart device is in a screen-off state at this time, the smart device can be activated.
[0051] In some embodiments, determining the spatial distance between the target object and the smart device based on the maximum value of the ultrasonic observation data in the dynamic resource pool may include: determining the emission time of the ultrasonic signal corresponding to the maximum value of the ultrasonic observation data, and the receiving time when the ultrasonic observation data is received; determining the two-way transmission time of the ultrasonic signal in the air based on the receiving time and the emission time; and determining the spatial distance between the target object and the smart device based on the two-way transmission time and the speed at which sound is transmitted in the air.
[0052] In this embodiment, since sound is not penetrating, it will be reflected after encountering an obstacle, so that the ultrasonic receiving unit (microphone) of the smart device can receive it. The intensity of this reflected signal has a certain relationship with the distance of the obstacle and the material of the obstacle. In general, the closer the distance between the obstacle and the smart device, the stronger the intensity of the reflected signal received by the ultrasonic receiving unit. Smart devices are often faced with a relatively open environment with few obstacles around them. Therefore, it can be judged based on the distance between the target object and the smart device. If the distance between the target object represented by the strongest ultrasonic observation data and the smart device is far, it means that it may be a reflection signal of a wall, bookcase, etc.; if the distance between the target object represented by the strongest ultrasonic observation data and the smart device is close, it may be that only the people around the device are in focus mode.
[0053] In this embodiment, the method for measuring the spatial distance can be based on the emission time of the ultrasonic signal and the receiving time of the ultrasonic signal. Specifically, the number of samples corresponding to the emission time of a certain frame of ultrasonic signal is 32, and the number of samples at the time of receiving the ultrasonic observation data is 128, where the frequency of echo signal acquisition is 48,000 ultrasonic signals per second, then the two-way transmission time is (128-32) / 48000=0.002 (seconds), and according to the propagation speed of sound in the air is 340 meters / second, the spatial distance between the target object and the smart device is 340×0.002 / 2=0.34 meters. At this time, the distance between the target object and the smart device is 0.34 meters. If the preset distance is 0.5 meters, it means that there may be someone around the user at this time, so keep the smart device in working state.
[0054] In some implementations, the method may further include: calculating an average value of the difference between a maximum value and a minimum value of the ultrasound observation data in the dynamic resource pool within a preset time period; and multiplying the average value by a preset multiple to determine a preset threshold.
[0055] In this embodiment, the minimum absolute difference mean of the ultrasonic observation values is calculated, and the minimum absolute difference mean is multiplied by a preset multiple to obtain a preset threshold; then, the ultrasonic observation difference value is compared with the preset threshold. If the ultrasonic observation difference value is greater than or equal to the preset threshold, it is determined that human activity is detected around the smart device; otherwise, continue to determine whether there is human activity at the next time node.
[0056] In this embodiment, the preset multiple is 20-30 times. The mean absolute deviation indicates the degree of dispersion of data around the mean. By continuously updating the minimum mean absolute deviation, the minimum mean absolute deviation is relatively small in a quiet environment; the minimum mean absolute deviation is larger in a noisy environment. The larger the preset multiple, the smaller the range of detecting whether there are human activities around the smart device.
[0057] See also Figure 2 In some embodiments, a human body static detection device may be provided, the human body static detection device is applied to a smart device, the smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the human body static detection device may include: a signal acquisition module, a variance calculation module, a distance measurement module, and a device control module.
[0058] A signal acquisition module is used to control the ultrasonic transmitting unit to transmit ultrasonic signals and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflected signal in the ultrasonic echo signal received by the ultrasonic receiving unit.
[0059] The variance calculation module is used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain the ultrasonic observation difference value.
[0060] The distance measurement module is used to determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is less than or equal to a preset threshold.
[0061] The device control module is used to control the smart device to be in a working state when the spatial distance is less than or equal to a preset distance.
[0062] The specific functions and effects achieved by the human body static detection device can be explained with reference to other embodiments of this specification, and will not be repeated here. Each module in the human body static detection device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0063] See also Figure 3 In some implementations, a computer device may be provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps in the implementation are implemented.
[0064] In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the embodiments are implemented.
[0065] In some implementations, a computer program product may be provided, including computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the above implementations.
[0066] Those of ordinary skill in the art can understand that all or part of the processes in the implementation method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the implementation methods of the methods described. Among them, any reference to memory, storage, database or other media used in the various implementations provided in this specification may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0067] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] The descriptions of the various embodiments of this specification are made in a progressive manner. Different embodiments focus on describing the parts that are different from other embodiments. After reading this specification, a person skilled in the art can know that the various embodiments in this specification, as well as the various technical features disclosed in the embodiments, can be combined in more ways. To make the description concise, not all possible combinations of the various technical features in the 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.
[0069] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0070] The multiple embodiments in this specification emphasize the parts that are different from other embodiments, and the various embodiments can be explained in comparison with each other. Any combination of the multiple embodiments in this specification by technicians in the relevant field based on general technical knowledge is included in the disclosure scope of this specification.
[0071] The above description is only an implementation method of this case and is not intended to limit the scope of protection of the claims of this case. For those skilled in the art, this case may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this case should be included in the scope of the claims of this case.
Claims
1. A human body static detection method, characterized in that: The human body static detection method is applied to a smart device, the smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the method includes: Controlling the ultrasonic transmitting unit to transmit an ultrasonic signal, and collecting a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit; Calculating the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; When the ultrasonic observation difference value is less than or equal to a preset threshold, determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool; When the spatial distance is less than or equal to the preset distance, the smart device is controlled to be in a working state.
2. The method according to claim 1, characterized in that The method further comprises: When the spatial distance is greater than a preset distance, the smart device is controlled to be in a screen-off state.
3. The method according to claim 1, characterized in that The method further comprises: Determining a threshold of Kalman filtering based on the ultrasonic observation difference value with the smallest value among the plurality of ultrasonic observation difference values within a preset time period; Performing Kalman filtering on the ultrasonic observation difference value according to the threshold of the Kalman filter to obtain a target ultrasonic observation difference value; Accordingly, the step of determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool includes: When the target ultrasonic observation difference value is less than or equal to a preset threshold, the spatial distance between the target object and the smart device is determined according to the maximum value of the ultrasonic observation data in the dynamic resource pool.
4. The method according to claim 3, characterized in that The method further comprises: When the target ultrasonic observation difference value is greater than a preset threshold, the smart device is controlled to be in a working state.
5. The method according to claim 1, characterized in that Determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool includes: Determine the time of transmitting the ultrasonic signal corresponding to the maximum value of the ultrasonic observation data, and the time of receiving the ultrasonic observation data; Determine a two-way transmission time of the ultrasonic signal in the air based on the receiving time and the transmitting time; The spatial distance between the target object and the smart device is determined according to the two-way transmission time and the speed at which sound is transmitted in the air.
6. The method according to claim 1, characterized in that The method further comprises: Calculate the average value of the difference between the maximum value and the minimum value of the ultrasonic observation data in the dynamic resource pool within a preset time period; The average value is multiplied by a preset multiple to determine a preset threshold.
7. A human body static detection device, characterized in that: The human body static detection device is applied to a smart device, the smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the human body static detection device includes: A signal acquisition module, used to control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit; A variance calculation module, used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; A distance measurement module, configured to determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is less than or equal to a preset threshold; The device control module is used to control the smart device to be in a working state when the spatial distance is less than or equal to a preset distance.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 6.
