Detection device, method and system
By introducing the switching mechanism of the first and second recognition states and the partition recognition in the detection device, the problem of misjudgment of the existing detection device in a multi-person environment is solved, and higher judgment accuracy and efficiency are achieved.
Patent Information
- Application Number
- CN202510629341.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2025-08-08
AI Technical Summary
Existing detection devices are prone to misjudgment in multi-person environments, especially when identifying people close or away, it is impossible to accurately distinguish whether there are other people within the specified boundary, resulting in a low degree of intelligence in the intelligent control system.
A detection device is adopted to comprehensively judge whether the person is located within the specified boundary by switching between the first recognition state and the second recognition state, and to determine whether the person is located within the designated boundary by switching between the first recognition state and the second recognition state, and to improve judgment accuracy and efficiency through partition interval recognition.
It improves the accuracy of judgments of approaching events and staying away from events in a multi-person environment, reduces misjudgment, enhances anti-misjudgment ability, and adapts to complex and changeable usage needs.
Smart Images

Figure CN120447089A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent sensing technology, and in particular to a detection device, method and system. Background Art
[0002] Integrating sensing functions into electrical equipment is the key to achieving intelligence, especially for electrical equipment such as lighting and air conditioning that are directly linked to people's living comfort.
[0003] However, existing detection devices suffer from low accuracy, resulting in a low level of intelligence in intelligent control systems that rely on their detection results, impacting user experience. Specifically, existing detection devices rely on analyzing the trends of people near boundaries to identify approaching and departing people. Generally, motion-based human detection devices prioritize identifying the person with the largest movement within the space. When there are multiple people in the space, a departure event may be triggered by the departure of a single person with a larger movement, even though there are still people in the space. Summary of the Invention
[0004] One object of the present invention is to provide a detection device, method and system, in which the judgment result of the approaching event / faraway event of the detection device will not only rely on the trend of people crossing the boundary, but will make a comprehensive judgment based on whether there are still people within the boundary after the people cross the boundary, so that when there are multiple targets in the current space, the judgment result of the approaching event / faraway event will be more accurate, further improving the ability to resist misjudgment.
[0005] Another object of the present invention is to provide a detection device, method and system, wherein after the detection device identifies that someone is approaching, it will continue to determine whether the person's location is within the specified boundary. If it is identified that the person's location is not within the specified boundary, it will not immediately trigger the person to move away, but instead start a delay to determine whether the person's location is outside the specified boundary within a delay period; if so, it is determined that someone is moving away, thereby effectively avoiding the situation where there are still people in the current space but it is mistakenly judged that someone is moving away.
[0006] Another object of the present invention is to provide a detection device, method and system, in which when the current space is determined to be empty, it will directly trigger the person to leave, without relying on the judgment of whether the human body has crossed the specified boundary, so as to improve the judgment accuracy of the person leaving event.
[0007] Another object of the present invention is to provide a detection device, method and system, wherein the detection device can form a current space based on multiple intervals selected by the spatial configuration data, so that the user can freely select the target detection area covered by the current space based on actual needs and configure the current space by sending the spatial configuration data.
[0008] Another object of the present invention is to provide a detection device, method and system, wherein the detection device determines approach / distance by identifying between partitions, which can further improve the judgment efficiency and accuracy.
[0009] To achieve at least one of the above objectives, according to a first aspect of the present invention, a detection device is provided, which is suitable for being arranged in a space to detect whether there is someone in the current space; the detection device includes a processing module, which is configured to work:
[0010] A first recognition state is used to detect whether there is anyone in the current space after determining that there is no one in the current space; and a second recognition state is used to detect whether there is anyone in the current space after determining that there is someone in the current space;
[0011] The processing module is further configured to: after switching from the first recognition state to the second recognition state, if it is recognized that the position of a person is within a specified boundary, it is recognized as a person approaching.
[0012] Optionally, the processing module is further configured to: after identifying a person approaching, continuously determine whether the person's location is within a specified boundary;
[0013] If it is determined that the person's location is not within the specified boundary, it is determined within a delay period whether the person's location is outside the specified boundary; if so, it is determined that the person is moving away.
[0014] Optionally, the processing module is further configured to: after identifying that someone is approaching, if the second identification state is switched to the first identification state, it is identified as someone moving away.
[0015] Optionally, the detection device further includes:
[0016] The data acquisition module is used to acquire the space configuration data; the space configuration data is from the interval L1 to L m Generated after being freely selected; among them, L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals, where m is an integer greater than 1;
[0017] The processing module is further configured to:
[0018] A current space is formed based on the space configuration data; the current space is composed of all selected intervals.
[0019] Optionally, the processing module determines whether the person's location is outside a specified boundary within a delay period, specifically for:
[0020] If the state of no one in all selected intervals within the specified boundary lasts longer than the delay period, it is recognized that someone has left.
[0021] Optionally, the delay period is set to 1 second to 20 seconds.
[0022] According to a second aspect of the present invention, there is provided a detection method, comprising:
[0023] Detect whether there is anyone in the current space;
[0024] If it is determined that there is no one in the current space, detecting whether there is anyone in the current space in the first recognition state; and if it is determined that there is someone in the current space, detecting whether there is anyone in the current space in the second recognition state;
[0025] After switching from the first recognition state to the second recognition state, if the person's location is recognized to be within the specified boundary, it is recognized as a person approaching.
[0026] Optionally, the detection method further comprises: after identifying that a person is approaching, continuously determining whether the person's location is within a specified boundary;
[0027] If it is determined that the person's location is not within the specified boundary, it is determined within a delay period whether the person's location is outside the specified boundary; if so, it is determined that the person is moving away.
[0028] Optionally, the detection method further includes: after identifying that someone is approaching, if the second identification state is switched to the first identification state, it is identified that someone is moving away.
[0029] Optionally, the detection method further includes:
[0030] Get space configuration data; the space configuration data is from interval L1 to L m Generated after being freely selected; among them, L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals, where m is an integer greater than 1;
[0031] A current space is formed based on the space configuration data; the current space is composed of all selected intervals.
[0032] Optionally, determining whether the person's location is outside a specified boundary within a delay period includes:
[0033] If the state of no one in all selected intervals within the specified boundary lasts longer than the delay period, it is recognized that someone has left.
[0034] According to a third aspect of the present invention, there is provided a control system comprising:
[0035] A detection device, wherein the detection device is the detection device provided in the first aspect, or is used to implement the detection method provided in the second aspect;
[0036] A controlled device is operably coupled to the detection device so as to be directly or indirectly operated by the detection device to change a working state.
[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without inventive work.
[0039] Figure 1 This is a schematic diagram of the structure of a control system in an embodiment of the present invention;
[0040] Figure 2 is a schematic structural diagram of a detection device according to an embodiment of the present invention;
[0041] Figure 3 is a scene schematic diagram of the current space setting method in an embodiment of the present invention;
[0042] Figure 4 is a flow chart of a detection method in an embodiment of the present invention;
[0043] Figure 5 、 Figure 6 is a flow chart of a detection method in the first embodiment of the present invention;
[0044] Figure 7 、 Figure 8 is a flow chart of a detection method in the second embodiment of the present invention;
[0045] Figure 9 、 Figure 10 is a flow chart of a detection method in the third embodiment of the present invention;
[0046] Figure 11 This is a schematic diagram of an application scenario in the fourth embodiment of the present invention;
[0047] Figures 12 to 14 is a flow chart of a detection method in a fourth embodiment of the present invention;
[0048] Figure 15It is a schematic diagram of the physical structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The embodiments of the present invention will be described in detail below. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. It should be understood that in the description of all embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0050] Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0051] See also Figure 1 , shows a schematic structural diagram of a control system proposed by the present invention, wherein the control system is suitable for being set in a space to intelligently control the environmental state of the space (such as turning on and off lights, turning on and off air conditioning, etc.), as shown in FIG. Figure 1 It can be seen that the control system includes at least a detection device 100 and a controlled device 200; the controlled device 200 is directly or indirectly operably coupled to the detection device 100 to establish a communication connection relationship between the two; wherein the detection device 100 is used to detect whether there is someone in the current space, and according to the detection results (for example, determining that there is someone in the current space, determining that there is no one in the current space, the time the current space maintains someone, the time the current space maintains no one, someone is leaving the current space, someone is approaching the current space, etc.), the controlled device 200 is linked to perform corresponding operations, and then the controlled device 200 can perform intelligent linkage work based on the detection results of the current space by the detection device 100 to perform intelligent adjustment of the spatial environment state.
[0052] It should be noted that the "coupling" involved here and in the following text should be understood in a broad sense. For example, it can be an electrical connection or mutual communication, or it can be indirectly connected through an intermediate medium to form a linkage relationship, or it can be the internal connection of two elements or the interaction relationship between the two elements. Furthermore, any connection method that can achieve an operable coupling relationship between the detection device 100 and the controlled device 200 can be used as an optional solution of this embodiment. In one example, the detection device 100 and the controlled device 200 are integrated into one device, and then establish an operable coupling relationship of direct electrical connection through, for example, IIC, serial port communication, etc. In another example, the detection device 100 and the controlled device 200 are separately set, and are wirelessly connected through any wireless communication protocol such as Bluetooth communication protocol, WIFI communication protocol, ZIGBEE communication protocol, etc. to establish an operable coupling relationship. In another example, the detection device 100 and the controlled device 200 are separately provided and are connected by wired communication methods such as power line communication (PLC) and KNX to establish an operable coupling relationship.
[0053] The controlled device 200 can be understood as any intelligent device that can be controlled by wireless control signals and / or wired control signals to perform related operations to change its working state. Examples include, but are not limited to, lighting equipment, air conditioners, speakers, curtain companions, smart window actuators, smart wall switches, etc. The operations that can be performed include, but are not limited to, being controlled to enter a certain working state, such as turning on or off a light, turning on or off an air conditioner, turning on or off a speaker, opening or closing curtains, or opening or closing a window.
[0054] It is understood that the specific type and executable functions of the controlled device 200 can be arbitrarily varied based on the application field of the detection device 100 or changes in the detection target, without departing from the scope of the embodiments of the present invention. For ease of description, the majority of the following embodiments will be described using a lighting device as the controlled device 200. It is understood that the lighting device should at least have the functions of turning the light on and off.
[0055] The space can be understood as an area associated with the spatial environment that the user wants to control. For example, if the user wants to operate the lighting equipment through the detection device 100, the space should be at least a partial area within the range covered by the lighting area of the lighting equipment or an adjacent area; the current space should be understood as at least a partial area in the entire space, and then when the detection device 100 detects that there is someone in the current space, it can link the lighting equipment to perform corresponding operations to change the lighting status of the area that the user wants to control.
[0056] In addition, it should be noted that Figure 1 The structural diagram of a detection device 100 and a controlled device 200 is only given as an example; however, in an actual control system, the number of the detection device 100 and the controlled device 200 can be multiple, for example, multiple controlled devices 200 are controlled by one detection device 100, or multiple controlled devices 200 are controlled separately by the detection device 100, or one controlled device 200 is controlled by multiple detection devices 100.
[0057] The detection device 100 can be understood as a component or combination of components that is suitable for being set in a space to identify whether there is a person in the current space based on detecting the movement in the current space. The current space should be the entire space or at least a part of the space; Figure 2 As shown, the detection device 100 includes a processing module 102 and a detection module 101. The detection module 101 and the processing module 102 are communicably connected, wherein the connection mode may be, for example but not limited to, serial communication or IIC.
[0058] The processing module 102 should be understood as any component or combination of components that can perform data analysis, judgment, and processing. In a specific example, the processing module 102 may include a single-chip microcomputer, a system-on-chip (SoC) integrating an MCU and RF (e.g., a Bluetooth module, a WiFi module, a ZigBee module, etc.), or a conversion circuit composed of discrete components.
[0059] The detection module 101 is used to obtain motion signals in the current space and provide them to the processing module 102 for the processing module 102 to determine whether there is a person in the current space. The motion signal can be understood as any data that can be used to support the processing module 102 in analyzing and determining whether there is a person in the current space.
[0060] In one example, the detection module 101 may perform preliminary processing after acquiring the motion signal, and preliminarily obtain a motion signal representing whether there is a person in the space, and then send the motion signal to the processing module 102 .
[0061] In another example, the detection module 101 may also only obtain the raw data of the motion signal in the space and send it to the processing module 102. The processing module 102 processes and analyzes these data according to a preset algorithm to determine whether there is a person in the space.
[0062] In a further example, Figure 2As shown, the detection module 101 can be a single-mode sensor that only has a microwave-based radar module. During operation, it radiates detection microwaves (e.g., frequency-modulated continuous waves) into the current space, receives response echoes generated based on the detection microwaves, and then analyzes the response echoes to obtain Doppler intermediate frequency (IF) signal data indicating frequency and phase changes between the detection microwaves and the response echoes. This IF Doppler signal data can be transmitted to the processing module 102 as an action signal indicating whether there is any movement in the current space. The processing module 102 analyzes the action signal to determine whether there is a person in the current space.
[0063] In another further example, the detection device 100 can also be a dual-mode sensor including a microwave-based radar module and an infrared pyroelectric sensor based on infrared radiation; when a dual-mode sensor is used, the working principle of the radar module can still be understood with reference to the example of the aforementioned single-mode sensor, and the infrared pyroelectric sensor can be used as an auxiliary detection to improve the detection accuracy of the human body.
[0064] In addition, it should be noted that the detection device 100 is also used to implement a detection method involved later. Furthermore, the relevant description of the detection method later can be understood as a description of the working process, function, and specific implementation method of the software and / or hardware of the detection device 100. For the embodiments of the detection method corresponding to the detection device 100 of the same embodiment, this document will no longer provide a detailed explanation. The effects, principles, functions, etc. of the terms, features, etc. in the embodiments of the detection method can be understood by referring to the records of the embodiments of the corresponding detection device.
[0065] The inventors have discovered that the amplitude of human motion varies greatly in different states. For example, the amplitude of human motion is large when walking, and very small when sleeping (perhaps only the floating of chest breathing). Existing detection devices based on motion detection to identify whether there is a person are generally based on a fixed sensitivity for human detection, resulting in a single sensitivity that is not compatible with a variety of motion amplitudes and resulting in low recognition accuracy. The applicable scenarios are limited and cannot meet complex and changing usage requirements. Based on this, the detection device 100 provided by an embodiment of the present invention has a segmented sensitivity setting so that users can achieve rich and varied detection sensitivity configurations through different sensitivity settings.
[0066] Specifically, in one embodiment of the present invention, the processing module 102 is configured to operate:
[0067] A first recognition state is used to detect whether there is anyone in the current space after determining that there is no one in the current space; and a second recognition state is used to detect whether there is anyone in the current space after determining that there is someone in the current space;
[0068] Among them, the first recognition state has an adjustable first recognition threshold; the first recognition threshold represents the difficulty of triggering a person recognition result in the first recognition state, and the lower the value, the smaller the movement amplitude of the person that can be recognized in the first recognition state; the second recognition state has an adjustable second recognition threshold; the second recognition threshold represents the difficulty of triggering a person recognition result in the second recognition state, and the lower the value, the smaller the movement amplitude of the person that can be recognized in the second recognition state.
[0069] It should be noted that, based on this embodiment, after the processing module 102 begins operation, it will obtain motion signals in the current space through the detection module 101, and identify the current space as occupied when the motion signal exceeds a first recognition threshold. After confirming that the current space is occupied, it enters a second recognition state to compare the obtained motion signal with the second recognition threshold. When the motion signal does not exceed the second recognition threshold, it identifies the current space as unoccupied. After confirming that the current space is unoccupied, it re-enters the first recognition state to determine whether there is an individual based on the first recognition threshold. This alternation is repeated to achieve detection of whether there is an individual in the current space. In addition, it is worth noting that the aforementioned recognition of an individual in the current space cannot be simply equated with the aforementioned determination that there is an individual in the current space. Recognition of an individual in the current space can be understood as the processing module 102 determining that the motion signal exceeds the first recognition threshold or the second recognition threshold once, while determination that there is an individual in the current space should be understood as the processing module 102 determining that the motion signal exceeds the first recognition threshold or the second recognition threshold at least once. In other words, according to the solution provided in this embodiment, after the processing module 102 begins operation (after power-up), it will first enter the first recognition state to detect whether there is a person in the current space. After confirming that there is a person in the space, it will trigger the second recognition state to detect whether the person in the current space continues to exist (maintains an occupancy). The first and second recognition states are performed continuously and alternately. This allows the processing module 102 to adaptively adjust the sensitivity of triggering occupancy at different stages before and after the target enters the current space to meet different detection sensitivity requirements.
[0070] It can be further understood that the first recognition threshold is used by the processing module 102 to identify whether there is someone in the current space in the first recognition state. Changes in the value of the first recognition threshold can cause changes in the sensitivity of triggering someone in the first recognition state, that is, the larger the value of the first recognition threshold, the larger the movement amplitude required to identify someone in the current space in the first recognition state (that is, the lower the sensitivity), and the smaller the value of the first recognition threshold, the smaller the movement amplitude required to identify someone in the current space in the first recognition state (that is, the higher the sensitivity). Similarly, the second recognition threshold is used by the processing module 102 to identify whether there is continuously someone in the current space in the second recognition state. Changes in the value of the second recognition threshold can cause changes in the sensitivity of triggering someone in the second recognition state, that is, the larger the value of the second recognition threshold, the larger the movement amplitude required to identify someone in the current space in the second recognition state (that is, the lower the sensitivity), and the smaller the value of the second recognition threshold, the smaller the movement amplitude required to identify someone in the current space in the second recognition state (that is, the higher the sensitivity). The user can then adjust the trigger sensitivity of the first and second recognition states based on actual needs to improve the accuracy of human body detection.
[0071] In one example, the detection device 100 is set in a living room, bedroom and other spaces, and is linked to the lighting equipment. When the detection device 100 determines that there is someone in the current space, the lighting equipment is linked to turn on the light, and when it determines that there is no one in the current space, the lighting equipment is linked to turn off the light; the first recognition threshold is set to be greater than the second recognition threshold, that is, it has lower sensitivity in the first recognition state and higher sensitivity in the second recognition state. It is understandable that the amplitude of a person's movements when entering the current space is generally large (such as walking or running). Therefore, the first recognition state can avoid misidentifying small movements caused by interference sources (such as curtain micro-movement, fan interference, speaker vibration interference, etc.) through a higher first recognition threshold, while also being able to identify larger movements generated when the human body enters the current space, so as to enhance the anti-interference ability when triggering someone and improve the accuracy of triggering someone; and when the human body is in the current space, it is very likely to be almost motionless or slightly moving (for example, when sleeping or watching a movie, there may only be micro-movements caused by breathing and heartbeat). At this time, if the difficulty of triggering someone is still large, it may cause the small movements of the human body to be unable to be recognized. Therefore, when it is determined that there is someone in the current space, the second recognition state is entered to identify the human body's movements with a lower second recognition threshold, and then as long as the human body produces movements with the amplitude of a smile, it can be recognized, so as to improve the sensitivity of maintaining the presence of people and reduce the probability of misjudgment. In other words, after the processing module 102 begins operation (after power-on), it will first enter the first recognition state, using a higher first recognition threshold to detect whether there is a person in the current space. Once it is determined that there is a person in the space, it will trigger the second recognition state and turn on the lights. It will then use a lower second recognition threshold to detect whether the person in the current space continues to exist (maintaining a person). When it is determined that there is no one in the current space, it will enter the first recognition state and turn off the lights. The first and second recognition states are performed continuously and alternately, allowing the processing module 102 to adaptively adjust the sensitivity of triggering people at different stages before and after the target enters the current space, thereby achieving the effect of accurately triggering people and sensitively maintaining people.
[0072] In another example, the detection device 100 is set in a space such as a corridor or a hallway and is linked to the lighting equipment. When the detection device 100 determines that there is someone in the current space, the lighting equipment is linked to turn on the lights, and when it determines that there is no one in the current space, the lighting equipment is linked to turn off the lights. The first recognition threshold is set to be lower than the second recognition threshold, thereby having a higher sensitivity in the first recognition state and a lower sensitivity in the second recognition state. It is understandable that people passing through spaces such as corridors and hallways are generally short-lived. Therefore, the first recognition state, with a lower first recognition threshold, can quickly respond to turning on the lights to provide lighting when a person briefly passes through the current space, thereby optimizing the user experience. The second recognition state, with a higher second recognition threshold, can promptly switch to the recognition result of determining that there is no one after triggering a occupancy, so that the lights are promptly linked to turn off after briefly turning on the lights to illuminate the user. This prevents the lights from being delayed in being recognized as empty due to slight movement of curtains, fan interference, speaker vibration interference, etc., which wastes energy. In other words, after the processing module 102 begins operation (after power-up), it will first enter the first recognition state, detecting whether there is a person in the current space using a lower first recognition threshold. Once it determines that there is a person in the space, it will trigger the second recognition state and turn on the lights. It will then use the higher second recognition threshold to detect whether the person in the current space continues to exist (maintaining a person). When it determines that there is no person in the current space, it will enter the first recognition state and turn off the lights. The first and second recognition states are performed continuously and alternately, allowing the processing module 102 to adaptively adjust the sensitivity of triggering a person at different stages before and after the target enters the current space, thereby achieving the effect of rapid triggering of a person's response and high accuracy in maintaining a person's presence.
[0073] According to an embodiment of the present invention, the detection device 100 further includes: a data acquisition module 103 for acquiring spatial configuration data; the spatial configuration data is composed of intervals L1 to L m Generated after being freely selected; among them, L1~L m Represents the first to mth intervals of a space divided into m consecutive intervals, where m is an integer greater than 1. The processing module 102 is further configured to form the current space based on the spatial configuration data; the current space is composed of all selected intervals. Furthermore, the detection device 100 can form the current space based on the multiple intervals selected by the spatial configuration data, allowing the user to freely select the target detection area covered by the current space based on actual needs and configure the current space by issuing the spatial configuration data.
[0074] The data acquisition module 103 should be understood as any component or combination of components that can realize data transmission and reception. In a specific example, the data acquisition module 103 can be, for example, but not limited to, a WIFI communication unit, a Bluetooth communication unit or other radio frequency communication unit. In a further example, the detection device 100 can establish a communication connection with the user's mobile terminal through the data acquisition module 103, and an application (APP) corresponding to the detection device 100 is running on the mobile terminal. The user can freely select L1~L2 according to the target detection area actually needed to be detected through the user operation interface of the APP. m One or more intervals in the target detection area are then sent to the detection device 100 to form the current space that can cover the target detection area. Figure 3 As shown, in one example, L1~L m The space within 6m from the detection device is divided into intervals of 1 meter, that is, the L1 interval is [0m, 1m], the L2 interval is [1m, 2m], the L3 interval is [2m, 3m], the L4 interval is [3m, 4m], the L5 interval is [4m, 5m], and the L6 interval is [5m, 6m]. The user can arbitrarily select the target detection area (such as Figure 3 In the current space, three intervals from L2 to L4 are selected to meet actual needs.
[0075] In some embodiments, the processing module 102 is further used to: determine that the interval where the person is located is a trigger interval, and send trigger data representing the trigger interval to the outside, so that an electronic device receives the trigger data and displays the interval where the person is located. Furthermore, based on the solution provided by this embodiment, when a certain interval is triggered by someone, if it is not actually triggered by an action generated by the human body (for example, triggered by the fluttering of curtains), it is determined to be an interference source. The user can view the display of the trigger interval and remove the interval where the interference source is located from the current space to quickly shield the interference source area, that is, the current space configuration data is generated by the user after at least excluding the interval where the interference source is located and freely selecting from the remaining intervals. In one example, the user can view the triggering status of the current space in real time through the app user interface on the mobile phone. If it is found that a certain interval is triggered but not triggered by an action generated by the human body, it is determined that there is an interference source in the trigger interval, and then the area where the interference source is located is accurately shielded by not selecting the trigger interval as the target detection area.
[0076] Furthermore, the trigger data includes single trigger data; the single trigger data records the trigger interval where a person is located when switching from someone to no one, and / or the trigger interval where a person is located when switching from no one to someone, so that the electronic device can display the historical trigger record of the space. In other words, when the processing module 102 switches from determining that the current space is occupied to determining that the current space is unoccupied, and from determining that the current space is unoccupied to determining that the current space is occupied, a single trigger data reporting operation will be performed so that the user can view it through an electronic device, etc., and then the user can locate the location of the triggering interference source (the interference source that returns to normal after a short trigger) based on the historical record of the single trigger data, and then shield the triggering interference source.
[0077] Furthermore, the trigger data includes real-time trigger data; the real-time trigger data records the current status of all intervals in the current space (whether there are people or not), so that the electronic device can display the real-time status of the current space, so that the user can locate the position of the persistent interference source according to the display of the real-time trigger data for rapid shielding. It is understandable that if an interference source persists, the corresponding interval will continue to detect people and will not switch to an unmanned state, so the interference source in the interval will continue to exist, and such interference sources can be understood as persistent interference sources. For persistent interference sources, it may not be possible to view the location of the interference source through historical records (because historical records generally record the switching from someone to no one or from no one to someone), so by displaying real-time trigger data, the position of the persistent interference source can be quickly located for shielding.
[0078] In some embodiments, each interval L i The corresponding first sub-recognition threshold S is set 1i and the second sub-recognition threshold S 2i ;S 1i Used to define the interval L that the processing module 102 can recognize in the first recognition state i The size of the movement range of the middle person; S 2i Used to define the interval L that the processing module 102 can identify in the second identification state i The size of the movement amplitude of the person in the middle; i∈[1,m], S 11 ~S 1m The first recognition threshold S1, S 21 ~S 2m The second identification threshold S2 is formed. 11 ~S 1m can be adjusted within the first specified threshold range, S 21 ~S 2mThey can be adjusted within the second specified threshold range respectively, and the first specified threshold range and the second specified threshold range do not completely overlap, so that a wider range of sensitivity adjustment can be achieved by adjusting S1 and S2 to cover more complex usage scenarios.
[0079] One specific judgment method is described as follows:
[0080] When the processing module 102 identifies a person in the first recognition state, it identifies the current space as occupied if the motion signal exceeds the first recognition threshold. Specifically, if the motion signal exceeds the first sub-recognition threshold corresponding to any interval in the current space, it is determined that the motion signal exceeds the first recognition threshold; otherwise, it is determined that the motion signal does not exceed the first recognition threshold.
[0081] When the processing module 102 identifies whether a person is present in the second recognition state, if the motion signal exceeds the second recognition threshold, the processing module 102 identifies that a person is present in the current space. Specifically, if the motion signal exceeds the second sub-recognition threshold corresponding to any interval in the current space, the processing module 102 determines that the motion signal exceeds the second recognition threshold.
[0082] Furthermore, the data acquisition module 103 is further used to: acquire threshold configuration data; the threshold configuration data is generated by the user on an electronic device. 11 ~S 1m and S 21 ~S 2m The processing module 102 is further configured to: configure the data based on the threshold value (the defined S 11 ~S 1m ) Determine a first recognition threshold S1 of the first recognition state and a second recognition threshold S2 of the second recognition state.
[0083] Furthermore, based on this embodiment, the processing module 102 has the function of adjusting sensitivity by partition, that is, by refining the spatial segmentation, it is possible to achieve more refined sensitivity settings to adapt to more complex usage spaces. In other words, the user can raise or lower the first sub-recognition threshold and / or second sub-recognition threshold corresponding to any interval according to the spatial environment of the area actually to be detected, that is, reasonably set the triggering sensitivity for occupancy (the lower the first sub-recognition threshold, the higher the sensitivity, and vice versa) and the maintaining sensitivity for occupancy (the lower the second sub-recognition threshold, the higher the sensitivity, and vice versa) of each interval to achieve a finer-grained shielding effect and meet more diverse application requirements.
[0084] Furthermore, the processing module 102 is further configured to retain the first sub-recognition threshold and the second sub-recognition threshold corresponding to the unselected intervals, so that the user can quickly restore the previous settings later. For example, when the user sets the first sub-recognition threshold S of the first interval L1 for the first time, 11 Set to A, and set the second sub-recognition threshold S 21 If it is set to B and L1 is blocked during the second setting, when the user operates through the mobile phone, the S corresponding to L1 11 and S 21 It will not be operational, but you can view S 11 A, S 21 B, and further, if the user wants to restore the first setting of L1 later, it will be easier.
[0085] In some embodiments, the threshold configuration data is automatically generated by a user selecting one of a plurality of preset gears on an electronic device, and then according to this embodiment, the user can quickly switch to the corresponding sensitivity by selecting the preset gear. In one example, the electronic device is preset with four gears of high sensitivity, medium sensitivity, low sensitivity, and custom sensitivity, among which the three gears of high sensitivity, medium sensitivity, and low sensitivity are preset with corresponding S 11 ~S 1m and S 21 ~S 2m Threshold configuration data, users can directly match the preset threshold configuration data by selecting the corresponding gear, and users can freely adjust S 11 ~S 1m and S 21 ~S 2m You can set any threshold in the settings to achieve custom threshold configuration data. Based on this solution, users can quickly switch to the desired sensitivity by selecting high, medium, or low gears, and can also customize the sensitivity configuration by customizing the gears.
[0086] Furthermore, in any of the high sensitivity, medium sensitivity, and low sensitivity gear setting interfaces, if manipulation of the first recognition threshold or the second recognition threshold for any interval is detected, it will automatically switch to the custom sensitivity gear setting interface, and synchronize the corresponding first recognition threshold and second recognition threshold data to the custom sensitivity gear, so that users can make customized threshold settings based on the preset thresholds of the high sensitivity, medium sensitivity, and low sensitivity gears, making sensitivity adjustment more convenient.
[0087] In a further example, when the sensitivity is set by selecting a gear, the threshold configuration data includes the gear data and the corresponding preset threshold data that are sent down synchronously to prevent the gear and threshold from being confused due to network reasons (such as one of the gear data or preset threshold data being lost or delayed for a long time) when the two are sent down separately.
[0088] See also Figures 4 to 6 , the present invention is specifically explained according to a detection method provided by the above embodiment, such as Figure 4 As shown, the detection method includes at least step S1 and step S2, wherein:
[0089] S1. Detect whether there is anyone in the current space;
[0090] S2. If it is determined that there is no one in the current space, detecting whether there is anyone in the current space in the first recognition state; and if it is determined that there is someone in the current space, detecting whether there is anyone in the current space in the second recognition state;
[0091] Among them, the first recognition state has an adjustable first recognition threshold; the first recognition threshold represents the difficulty of triggering a person recognition result in the first recognition state, and the lower the value, the smaller the movement amplitude of the person that can be recognized in the first recognition state; the second recognition state has an adjustable second recognition threshold; the second recognition threshold represents the difficulty of triggering a person recognition result in the second recognition state, and the lower the value, the smaller the movement amplitude of the person that can be recognized in the second recognition state.
[0092] See Figure 5 According to an embodiment of the present invention, before detecting whether there is anyone in the current space, the method further includes:
[0093] S0, obtain space configuration data; the space configuration data is from interval L1 to L m Generated after being freely selected; among them, L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals, where m is an integer greater than 1;
[0094] A current space is formed based on the space configuration data; the current space is composed of all selected intervals.
[0095] See Figure 6 According to an embodiment of the present invention, the detection method further includes:
[0096] S3. Determine the interval where the person is located as a trigger interval, and send trigger data representing the trigger interval to the outside, so that an electronic device receives the trigger data and displays the interval where the person is located.
[0097] According to an embodiment of the present invention, the interval L iThe corresponding settings are:
[0098] The first sub-identification threshold S 1i , which represents the interval L that can be recognized in the first recognition state i The size of the movement amplitude of the middle person can be adjusted within the first specified threshold value. The lower the value, the smaller the movement amplitude can be recognized; and the second sub-recognition threshold S 2i , which represents the interval L that can be recognized in the second recognition state i The size of the person's movement range can be adjusted within a second specified threshold range. The lower the value, the smaller the movement range that can be recognized.
[0099] Among them, i∈[1,m], S 11 ~S 1m The first recognition threshold S1, S 21 ~S 2m The second identification threshold S2 is constituted; the first specified threshold range and the second specified threshold range do not completely overlap.
[0100] According to an embodiment of the present invention, the detection method further includes:
[0101] Get threshold configuration data; the threshold configuration data is generated by the user 11 ~S 1m 、S 21 ~S 2m generated after at least one free definition in ;
[0102] S1 and S2 are determined based on the threshold configuration data.
[0103] In addition, considering that existing detection devices generally switch states immediately when identifying a person, which easily leads to false triggering, an embodiment of the present invention also provides a detection device 100, which does not immediately output the detection result after identifying a person, so as to shield short-term interference.
[0104] Specifically, in one embodiment of the present invention, the processing module 102 is configured to operate in: a first recognition state, for detecting whether there is someone in the current space after determining that there is no one in the current space; and a second recognition state, for detecting whether there is someone in the current space after determining that there is someone in the current space;
[0105] Among them, the first recognition state detects whether there is someone in the current space, specifically for:
[0106] If it is identified that there is someone in the current space, the current space is detected within the first delay time. If so, it is determined that there is someone in the current space and enters the second recognition state; otherwise, it is determined that there is no one in the current space and the first recognition state is maintained.
[0107] Furthermore, in this way, the processing module 102 will not immediately determine that there is someone in the current space when it recognizes that there is someone, but will continue to confirm whether there is someone within the first delay time, thereby shielding some short-term interference (such as mosquitoes flying by, curtains blown up by the wind, etc.) to further improve the anti-interference ability.
[0108] According to an embodiment of the present invention, the processing module 102 is further configured to set the first delay time according to an instruction from an application. Furthermore, the first delay time can be freely set by the user according to needs. For example, when the detection device 100 is located in a space such as a corridor or an entrance, the first delay time can be appropriately increased to achieve the effect of a person briefly passing through the current space without triggering the controlled device 200. For another example, if the controlled device 200 is a lighting device, the light turns on when a person is detected in the current space and turns off when no one is detected in the current space. In this case, if a person briefly passes through the current space and the passing time does not exceed the first delay time, the person will not be determined to be present, and the light will not be turned on, thereby avoiding energy waste.
[0109] According to an embodiment of the present invention, processing module 102 detects occupancy within the current space during a first delay period. Specifically, the processing module 102 is configured to: start the first detection of occupancy in the current space and perform M interval detections before the end of the first delay period. If the M intervals yield a positive result, the current space is determined to be occupied; otherwise, the current space is determined to be unoccupied, where M is an integer greater than or equal to 1. Furthermore, based on this embodiment, processing module 102 determines occupancy within the current space through intermittent sampling during the first delay period to prevent the processing module from continuously sampling and detecting, which would accelerate aging and reduce the product's overall lifespan. Furthermore, performing M interval detections can also shield against transient interference to a certain extent, improving the product's anti-interference performance.
[0110] In one example, M is 1, and the processing module 102 detects whether there is someone in the current space during the first delay time. Specifically, the processing module 102 is configured to: identify whether there is someone in the current space at the end of the first delay time; if so, determine that there is someone in the current space; otherwise, determine that there is no one in the current space. Furthermore, in the first recognition state (i.e., the state of waiting for triggering a person when no one is present), the processing module 102 will start timing the first delay time when it first recognizes a person, and identify whether there is someone at the start and end of the first delay time. Only when a person is detected at the start and end of the first delay time will it be concluded that there is someone in the current space and enter the second recognition state (maintaining a person to wait for triggering a person-free state). The processing module 102 does not perform any detection between the start and end points to further slow down aging and reduce power consumption.
[0111] According to an embodiment of the present invention, Figure 2As shown, the detection module 101 of the detection device 100 directly uses a radar module, that is, the detection device 100 also includes a radar module, which is electrically connected to the processing module 102. The processing module 102 detects whether there is a person in the current space and is specifically configured to: obtain a motion signal in the current space through the radar module; the radar module sends the motion signal to the processing module 102, and the processing module 102 analyzes the motion signal to identify whether there is a person in the current space. The interval between the radar module sending the motion signal varies randomly to improve anti-interference performance by introducing natural random numbers. For example, the interval varies randomly within 60ms-100ms.
[0112] Based on the solution provided in this embodiment, the timing of the action signal sent by the radar module to the processing module 102 is not fixed, so as to improve the overall anti-interference capability in a random manner, and the task of introducing random numbers is completed by the radar module, which reduces the pressure on the processing module 102 to a certain extent, that is, reduces the load of the processing module 102 while improving the anti-interference capability.
[0113] In addition, according to an embodiment of the present invention, the detection device 100 has a networking function, so that the detection device 100 can achieve network connection with a controlled device connected to the same network (for example, a network where the same server is located) to interact and control data. The user can customize some control rules through the mobile phone and pre-store them in the server, where the control rule defines a mapping relationship between at least one detection result and at least one executable function of a controlled device 200. When the server receives the detection result reported by the detection device 100, the control result defined by the control rule that matches the detection result is sent to the controlled device 200, and the controlled device 200 performs corresponding operations based on the control result to realize the automatic linkage function based on the detection result.
[0114] The inventors have discovered that in actual use, when the detection device 100 is linked to the controlled device 200, there is often a need to temporarily disable the linkage function of the detection device 100. For example, after turning on a sweeping robot or going to bed, the linkage function of the detection device 100 needs to be disabled to prevent accidental activation. However, existing detection devices 100 do not have this function. Therefore, one embodiment of the present invention provides a detection device 100 in which the processing module 102 is configured to disable the reporting function based on the detection results obtained by the radar module according to a shutdown instruction from an application, so that the user can quickly disconnect the automatic linkage function of the detection device 100 when needed.
[0115] In one example, the processing module 102 controls the power supply of the radar module via a switch component. The switch component may be, for example, but not limited to, a switch component composed of an electronic switch such as a MOS transistor or a triode. When the processing module 102 receives the shutdown command, it disconnects the switch component to cut off the power supply to the radar module and ceases reporting any detection results related to the radar module. This prevents the processing module 102 from falsely detecting that the current space is empty during the radar module shutdown process, thereby causing a false trigger. However, directly shutting off the power supply of the radar module requires restarting the radar module when the automatic linkage function of the detection device 100 is reactivated. The radar module requires a certain amount of time to power back on (for example, some radar modules require 2 seconds to initialize). When the user reactivates the radar module, the initialization of the radar module may cause a response delay in the detection device 100, and the power-on process may also cause false triggering of the processing module. Based on this, in another example, an embodiment of the present invention provides a detection device 100 in which, upon receiving the shutdown command, the processing module 102 stops reporting detection results obtained by the radar module, but does not shut off the power supply of the radar module. That is, the radar module is still in normal working condition, but the processing module 102 no longer reports the relevant detection results (detection results such as whether there is someone in the current space, no one in the current space, the time when someone has been in the current space, the time when no one has been in the current space, someone is approaching, someone is moving away, etc.), so that the detection device 100 can only turn off the data reporting of the detection device 100 without turning off the power of the radar module, which solves the above problem very well.
[0116] In a further example, the detection device 100 can establish a communication connection with the user's mobile terminal through data acquisition modules such as a WIFI unit and a Bluetooth unit. An application (APP) corresponding to the detection device 100 is running on the mobile terminal. The user can operate the corresponding control on the interactive interface provided by the APP to issue the shutdown command, so that the user can quickly turn off the detection function of the detection device 100 with one click.
[0117] See also Figure 4 、 Figures 7 to 9 The present invention is specifically explained in accordance with a detection method provided by the above embodiment. It can be seen that the detection method at least includes step S1 and step S2, wherein:
[0118] S1. Detect whether there is anyone in the current space;
[0119] S2. If it is determined that there is no one in the current space, detecting whether there is anyone in the current space in the first recognition state; and if it is determined that there is someone in the current space, detecting whether there is anyone in the current space in the second recognition state;
[0120] Among them, the first recognition state detects whether there is someone in the current space, specifically for:
[0121] If it is identified that there is someone in the current space, the current space is detected within the first delay time. If so, it is determined that there is someone in the current space and enters the second recognition state; otherwise, it is determined that there is no one in the current space and the first recognition state is maintained.
[0122] See Figure 7 According to an embodiment of the present invention, in step S2, detecting whether there is someone in the current space within the first delay time specifically includes:
[0123] S21, taking the first time when the current space is recognized as having someone as the starting point of the first delay time, and identifying whether the current space is occupied at the end of the first delay time; if so, go to step S22; otherwise, go to step S23;
[0124] S22, determining that there are people in the current space;
[0125] S23. Determine that there is no one in the current space.
[0126] See Figure 8 According to an embodiment of the present invention, in step S1, detecting whether there is someone in the current space specifically includes:
[0127] S11. Obtaining an action signal of the current space; the action signal is generated by a radar module based on radar detection of the current space; the interval time of the radar module sending the action signal varies randomly;
[0128] S12: Analyze the motion signal to identify whether there is anyone in the current space.
[0129] In addition, considering the problem that the existing detection device will immediately trigger the unmanned state if it recognizes that there is no one while maintaining the occupied state, which is easy to cause misjudgment, an embodiment of the present invention provides a detection device 100, which improves the problem of mistriggered unmanned judgment by reasonably setting a second delay time.
[0130] Specifically, according to an embodiment of the present invention, the processing module 102 is configured to work:
[0131] A first recognition state is used to detect whether there is anyone in the current space after determining that there is no one in the current space; and a second recognition state is used to detect whether there is anyone in the current space after determining that there is someone in the current space;
[0132] The processing module 102 detects whether there is a person in the second recognition state, specifically for:
[0133] If it is determined that there is no one in the current space, the current space is detected within the second delay time.
[0134] Furthermore, according to this solution, when the processing module 102 switches from the first recognition state to the second recognition state (i.e., switching from determining that the current space is unoccupied to determining that the current space is occupied), it will continue to determine whether the current space remains occupied. To improve the accuracy of the determination of whether the current space remains occupied, after determining that the current space is unoccupied in the second recognition state, it will not immediately conclude that the current space is unoccupied. Instead, it will continue to determine within a second delay period. If the current space is still identified as occupied within the second delay period, it will determine that the current space is occupied and maintain the second recognition state; otherwise, it will determine that the current space is unoccupied and enter the first recognition state. This ensures the accuracy of the switch from the maintained occupied state to the unoccupied state and prevents the controlled device 200 from being falsely triggered due to this state switch event.
[0135] According to an embodiment of the present invention, the processing module 102 is further configured to set the second delay time according to an instruction from an application. Furthermore, the second delay time can be freely set by the user according to their needs. For example, when the detection device 100 is installed in a living room or bedroom, the second delay time can be appropriately increased to reduce the probability of the user being judged as unoccupied when the user is sleeping or watching a movie, thereby improving the user experience.
[0136] According to an embodiment of the present invention, detecting whether the current space is occupied during the second delay period is specifically performed as follows: taking the first recognition of the current space as unoccupied after switching to the second recognition state as the starting point of the second delay period, if the selected space is recognized as occupied N times within the second delay period, the selected space is determined to be occupied; otherwise, the selected space is determined to be unoccupied; N is an integer greater than or equal to 2. In other words, when the processing module 102 switches from determining that the current space is occupied to determining that the current space is unoccupied, it will maintain the determination that the current space is occupied only if it recognizes a person at least twice consecutively within the second delay period. If it fails to recognize a person twice consecutively (e.g., once, or twice non-consecutively), it will ignore the determination and continue counting until it expires without at least two consecutive recognitions of a person, at which point it switches to the determination that the current space is unoccupied. Compared to a solution that maintains the determination that the current space is occupied if it recognizes that the current space is occupied only once within the second delay period, this solution can further improve the accuracy of maintaining the determination that the current space is occupied and enhance the ability to resist false positives.
[0137] In one example, if T represents the second delay time, for example, T=10s, N=3, the specific working principle is: after the processing module 102 switches from the state of determining that there is no one in the current space to the state of determining that there is someone in the current space, it is necessary to enter the judgment of maintaining the state of someone (i.e., the second recognition state), at this time T=10s; subsequently, if there is always someone in the space, the processing module 102 will always recognize that there is someone in the current space and continue to maintain the state of someone (i.e., continue the second recognition state). When the person in the current space leaves, the processing module 102 will recognize that there is no one in the current space, and then use the first recognition as the current state. When the space is empty, T is triggered and the countdown starts from 10s. If the processing module 102 does not recognize that there is someone in the current space three times in a row within the 10s countdown, the processing module 102 will switch to the state of determining that there is no one in the current space after the 10s countdown ends; if the current space is recognized to be empty once or twice in a row within 10s, it will be ignored and the countdown will continue (instantaneous interference can be shielded); if the current space is recognized to be empty three times in a row within 10s, the timing of T will end with the third recognition of someone in the current space and T will be reset to 10s until the next recognition of no one arrives and the countdown of T is triggered again. Space
[0138] According to an embodiment of the present invention, there are intervals between the N times of identifying that there is someone in the selected space, that is, if there are N times of identifying that there is someone in the selected space at intervals within the second delay time, it is determined that there is someone in the selected space; the interval time can be set to 10-100ms, for example 50ms, and the processing module 102 will sample once every 50ms (for example, obtain the action signal of the radar module) and complete the judgment of whether there is someone or not within microseconds (for example, if the action signal exceeds the second recognition threshold, it is considered that there is someone, and if the action signal does not exceed the second recognition threshold, it is considered that there is no one), and thus the probability of the interference source with an action duration within 50ms not being identified will increase, thereby shielding the instantaneous interference to a certain extent.
[0139] Furthermore, in the actual implementation process, two timers can be set: a first timer and a second timer to realize the judgment of whether the action of someone is continuous, so as to further improve the anti-interference ability. Specifically, the first timer is used to sample the action signal once at each interval (for example, 50ms), and judge whether the action signal exceeds the second recognition threshold. If so, the second timer is started, which is used to continuously sample the interval time (for example, continuously sample 50ms) at a sampling rate of microseconds after identifying that there is someone in the current space, to judge whether the duration of the action lasts for the interval time. If so, it is identified as a person in the current space. By analogy, if it is identified as someone in the current space for three consecutive times, it is determined that there is someone in the current space, and the second recognition state is maintained to prevent the triggering of no one from causing a misjudgment. In this way, the interference source whose action duration is within the interval time will not be identified, further improving the ability to resist instantaneous interference.
[0140] According to an embodiment of the present invention, the processing module 102 is further configured to stop timing the delay period when it is identified for the Nth time that there is someone in the selected space, so as to reduce power consumption.
[0141] According to an embodiment of the present invention, the detection device 100 further includes a radar module electrically connected to the processing module 102. The processing module 102 detects whether a person is present in the current space by, for example, obtaining a motion signal in the current space via the radar module. The radar module transmits the motion signal to the processing module 102, which analyzes the motion signal to identify whether a person is present in the current space. The interval at which the radar module transmits the motion signal varies randomly, thereby improving anti-interference performance by introducing natural random numbers. For example, the interval varies randomly within a range of 60ms to 100ms.
[0142] Based on the solution provided in this embodiment, the timing of the action signal sent by the radar module to the processing module 102 is not fixed, so as to improve the overall anti-interference capability in a random manner, and the task of introducing random numbers is completed by the radar module, which reduces the pressure on the processing module 102 to a certain extent, that is, reduces the load of the processing module 102 while improving the anti-interference capability.
[0143] See also Figure 4 、 Figure 9 、 Figure 10 , the present invention is specifically explained according to a detection method provided by the above embodiment, such as Figure 3 As shown, the detection method includes at least step S1 and step S2, wherein:
[0144] S1. Detect whether there is anyone in the current space;
[0145] S2. If it is determined that there is no one in the current space, detecting whether there is anyone in the current space in the first recognition state; and if it is determined that there is someone in the current space, detecting whether there is anyone in the current space in the second recognition state;
[0146] Among them, such as Figure 9 As shown, in step S2, detecting whether there is a person in the second recognition state is specifically used to:
[0147] S24: If it is determined that there is no one in the current space, detect whether there is anyone in the current space within the second delay time.
[0148] Furthermore, if it is still recognized that there is someone in the current space within the second delay time, then go to step S25; otherwise, go to step S26;
[0149] S25, determining that there is someone in the current space and maintaining the second recognition state;
[0150] S26: Determine that there is no one in the current space and enter the first recognition state.
[0151] See Figure 10 According to an embodiment of the present invention, in step S24, the processing module detects whether there is someone in the selected space within the second delay time, specifically for:
[0152] S241. Determine whether a person is identified in the selected space N times within the second delay time; if so, go to step S242; otherwise, go to step S243;
[0153] S242: Determine if there is someone in the selected space;
[0154] S243, confirming that no one is in the selected space;
[0155] Wherein, N is an integer greater than or equal to 2.
[0156] According to an embodiment of the present invention, the first time that the selected space is identified as empty is used as the starting point of the second delay time, and the timing of the delay period is stopped when the selected space is identified as empty for the Nth time.
[0157] According to an embodiment of the present invention, detecting whether there is someone in the current space specifically includes:
[0158] Obtaining a motion signal of the current space; the motion signal is generated by a radar module based on radar detection of the current space; the interval time of the radar module sending the motion signal varies randomly;
[0159] The motion signal is analyzed to identify whether there is anyone in the current space.
[0160] In addition, the existing detection device 100's approaching and moving away recognition functions all rely on analyzing the trend of people near the boundary. The inventors have found that when the detection module 101 is implemented as a single-target detection solution such as a radar module, the detection module 101 will generally prioritize identifying the person with the largest movement amplitude in the current space. When there are multiple people in the current space, there may be a false judgment that a moving away event is triggered when there are still people in the current space but a person with a larger movement amplitude moves away. Based on this, an embodiment of the present invention proposes a detection device 100, whose approach / movement judgment does not rely on the movement trend of the human body near the boundary, but is based on whether there are people in the space within the boundary to make an approach / movement judgment, which can effectively avoid the above-mentioned problems.
[0161] Specifically, in one embodiment of the present invention, the processing module 102 is configured to work:
[0162] A first recognition state is used to detect whether there is anyone in the current space after determining that there is no one in the current space; and a second recognition state is used to detect whether there is anyone in the current space after determining that there is someone in the current space;
[0163] The processing module 102 is further configured to: after switching from the first recognition state to the second recognition state, if it is recognized that the location of a person is within a specified boundary, then recognize that a person is approaching.
[0164] Furthermore, according to this solution, when the current space switches from an unoccupied state to a maintained occupied state, even if a person crosses the designated boundary, the processing module 102 will not immediately output a "person approaching" event. The determination of an approaching / removing event will not only depend on the person's movement at the time of crossing the boundary, but will also be based on whether there are still people within the boundary after the person crosses the boundary. This makes the determination of approaching / removing events more accurate when there are multiple targets in the current space, further improving the ability to resist false positives. For example, when there are multiple people in the current space, if a person with a large movement crosses the designated boundary and moves away, the processing module 102 will recognize that the person's position is not within the boundary, but will not trigger a "person moving away" event. Instead, the processing module 102 will continue to determine whether there are people within the designated boundary within a delay period. Due to the presence of the delay period, the person who previously moved away will move further and further away from the detection device 100 during the delay period, and the impact of their movement on the processing module 102 will become smaller and smaller. Therefore, the processing module 102 will subsequently recognize that there are still people in the space within the boundary, and will not trigger a "person moving away" event.
[0165] The detection device 100 can obtain boundary data through a data acquisition module; the boundary data is used to define a designated boundary of approach / distance. The data acquisition module should be understood as any component or combination of components that can realize data transmission and reception. In a specific example, the data acquisition module can be, for example, but not limited to, a WIFI communication unit, a Bluetooth communication unit, or other radio frequency communication unit. In a further example, the detection device 100 can establish a communication connection with the user's mobile terminal through the data acquisition module. The mobile terminal runs an application (APP) corresponding to the detection device 100, and the user can freely set the designated boundary on the interactive interface provided by the app.
[0166] According to an embodiment of the present invention, the processing module 102 is further configured to: after identifying a person as approaching, continuously determine whether the person's location is within a specified boundary; if the person's location is not within the specified boundary, then determine whether the person's location is outside the specified boundary within a delay period; if so, then identify the person as moving away; otherwise, maintain the determination of a person approaching. Furthermore, based on this embodiment, when a person enters the specified boundary, it is identified as approaching, and the person's location is continuously tracked. If the person crosses the specified boundary and moves outside the specified boundary, the person moving away event is not immediately generated. Instead, the determination continues within the delay period to prevent the processing module 102 from frequently triggering the person approaching and person moving away events due to the person rapidly crossing the specified boundary.
[0167] The following explanation uses energy values to represent the amplitude of a person's movements. A larger energy value indicates a larger amplitude of movement, while a smaller energy value indicates a smaller amplitude of movement. Existing approaches / removals are determined by setting a boundary distance. When a person is detected crossing this boundary distance and the energy value gradually increases, it is determined as an approaching person. When a person is detected crossing this boundary distance and the energy value gradually decreases, it is determined as a moving away person. This results in: if multiple people are present in a current space, and some are watching a movie (lower energy values) and others are running (higher energy values), then when the runner leaves, it is likely that someone will be determined to be moving away, resulting in a misjudgment. The solution provided in this embodiment, however, after identifying an approaching person, continuously determines whether the person's location is within the specified boundary. If the person's location is not within the specified boundary, the moving away signal is not immediately triggered. Instead, a delay period is initiated to determine whether the person's location is outside the specified boundary. If so, the person is determined to be moving away. This effectively avoids the situation where someone is mistakenly identified as moving away even though there are still people in the current space.
[0168] According to an embodiment of the present invention, the detection device 100 has a networking function, so that the detection device 100 can achieve network connection with a controlled device connected to the same network (for example, a network where the same server is located) to interact and control data. The user can customize some control rules through the mobile phone and pre-store them in the server, where the control rule defines a mapping relationship between at least one detection result and at least one executable function of a controlled device 200. When the server receives the detection result reported by the detection device 100, the control result defined by the control rule that matches the detection result is sent to the controlled device 200, and the controlled device 200 performs corresponding operations based on the control result to realize the automatic linkage function based on the detection result.
[0169] The processing module 102 is further configured to report approaching or departing events as detection results to the server, thereby triggering executable functions of the corresponding controlled device 200 according to preset control rules. Furthermore, the delay period allows the controlled device 200 to have a delayed response after a person leaves. For example, if the controlled device 200 is a lighting device, the light will not be turned off immediately after determining that a person has left, but will be turned off after a delay period.
[0170] According to an embodiment of the present invention, the processing module 102 is further configured to: after identifying that someone is approaching, if the second recognition state is switched to the first recognition state, it is identified as someone moving away. Then, when the current space is determined to be empty, the person moving away event will be directly triggered without relying on the judgment of whether the human body has crossed the specified boundary, so as to improve the judgment accuracy of the person moving away event. That is, after the state of the current space is switched from occupied to unoccupied, regardless of whether the human body has crossed the boundary or whether there are other people in the boundary area, it will be determined as someone moving away. For example Figure 11 In the schematic diagram of the application scenario shown, the detection device 100 is set at the door, and the designated boundary is in the living room. There is a kitchen between the living room and the door. When a person is within the designated boundary, it will trigger someone approaching. At this time, if the person directly enters the kitchen, he will not cross the designated boundary again, but it will be recognized that there is no one in the entire current space, so it will also be recognized as someone leaving.
[0171] Furthermore, the processing module 102 can also obtain space configuration data through the data acquisition module; the space configuration data is composed of intervals L1 to L m Generated after being freely selected; among them, L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals, where m is an integer greater than 1; the processing module 102 is further used to: form a current space based on the space configuration data; the current space is composed of all selected intervals.
[0172] Furthermore, the detection device 100 can form a current space based on multiple intervals selected by the space configuration data, so that the user can freely select the target detection area covered by the current space based on actual needs and configure the current space by sending the space configuration data.
[0173] Furthermore, processing module 102 determines whether a person's location is outside a specified boundary within a delay period. Specifically, if all selected intervals within the specified boundary remain empty for longer than the delay period, the person is identified as moving away. This approach / movement determination is performed by segmenting the intervals, further improving the efficiency and accuracy of the determination. The delay period is set to 1 to 20 seconds, for example, 10 seconds, to improve the accuracy of moving away determination while maintaining a certain response speed, thereby enhancing the user experience.
[0174] In some embodiments, when the processing module 102 determines that the current space switches between occupied and unoccupied, it delays reporting the detection results to the network platform (server) for a specified time to alleviate abnormalities caused by data reporting congestion when the current space's state switches rapidly. Furthermore, when the current space's state switches rapidly, the corresponding data after the switch will not be reported immediately, but will be reported after a specified time delay to ensure that the previous data report is complete. For example, if the specified time is set to 1.5 seconds, if a person in the current space leaves and immediately reenters the current space, the processing module 102 will recognize that the current space has switched from occupied to unoccupied and perform the first data report. It will also immediately detect that the current space has switched from unoccupied to occupied. If the corresponding second data report is immediately performed, it will cause congestion in the second data report before the first data report is completed, which may lead to some unpredictable abnormalities (such as freezes, etc.). However, delaying the second data report for 1.5 seconds can ensure that the first data report is uploaded with a high probability within 1.5 seconds, thereby improving this problem.
[0175] Furthermore, the processing module 102 is configured to report the duration of absence to the network platform (server) in the first recognition state and the duration of presence to the network platform (server) in the second recognition state. The absence and presence durations can serve as detection results to trigger corresponding control rules to link relevant executable functions of the controlled devices. Furthermore, the processing module 102 is configured to report relevant data when the presence or absence duration changes by more than one minute, so that the user can promptly check the status of the current space.
[0176] See also Figure 4 、 Figures 12 to 14 The flowchart of a detection method provided by the present invention according to the above embodiment is shown. It can be seen that the detection method at least includes step S1 and step S2, wherein:
[0177] S1. Detect whether there is anyone in the current space;
[0178] S2. If it is determined that there is no one in the current space, detecting whether there is anyone in the current space in the first recognition state; and if it is determined that there is someone in the current space, detecting whether there is anyone in the current space in the second recognition state;
[0179] Among them, such as Figure 12 As shown, the detection method further includes:
[0180] S4. After switching from the first recognition state to the second recognition state, if the person's location is recognized to be within the specified boundary, it is recognized as a person approaching.
[0181] See Figure 13 According to an embodiment of the present invention, the detection method further includes:
[0182] S5. After recognizing that a person is approaching, continue to determine whether the person's location is within the specified boundary;
[0183] If it is determined that the person's location is not within the specified boundary, it is determined within a delay period whether the person's location is outside the specified boundary; if so, it is determined that the person is moving away.
[0184] See Figure 14 According to an embodiment of the present invention, S6, after recognizing that someone is approaching, if the second recognition state is switched to the first recognition state, it is recognized that someone is moving away.
[0185] According to an embodiment of the present invention, the detection method further includes:
[0186] Get space configuration data; the space configuration data is from interval L1 to L m Generated after being freely selected; among them, L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals, where m is an integer greater than 1;
[0187] A current space is formed based on the space configuration data; the current space is composed of all selected intervals.
[0188] According to an embodiment of the present invention, the processing module determines whether the person's location is outside the specified boundary within a delay period, specifically including:
[0189] If the state of no one in all selected intervals within the specified boundary lasts longer than the delay period, it is recognized that someone has left.
[0190] Figure 15 A schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 15 As shown, the electronic device may include: a processor 1510, a communication interface 1520, a memory 1530, and a communication bus 1540, wherein the processor 1510, the communication interface 1520, and the memory 1530 communicate with each other via the communication bus 1540. The processor 1510 may call the logic instructions in the memory 1530 to execute the detection method.
[0191] In this specification, reference to terms such as "some embodiments," "a specific implementation," "a specific implementation process," or "an example" means that the specific features, structures, materials, or characteristics described in conjunction with such embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the specific features, structures, materials, or characteristics described in conjunction with the schematic expressions of the above terms may be combined in any suitable manner in any one or more embodiments or examples.
[0192] It should also be noted that the above-mentioned embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments, that is, the technical solutions disclosed in the subsequent embodiments (in the order recorded in the text) should include the technical solutions recorded in the embodiment and the technical solutions recorded in all embodiments before the embodiment.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A detection device, adapted to be placed in a space to detect whether there is someone in the space; wherein the detection device comprises a processing module configured to: The first recognition state is to detect whether there is anyone in the current space after determining that there is no one in the current space; and the second recognition state is to detect whether there is anyone in the current space after determining that there is someone in the current space.
2. The detection device according to claim 1, wherein the current space is formed by a plurality of intervals that can be selected by the detection device according to the space configuration data, so that the user can freely select the target detection area covered by the current space based on actual needs and configure the current space by sending the space configuration data; the space configuration data is composed of intervals L1 to L m Generated after being freely selected; L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals; wherein the processing module is further used to: determine that the interval where the person is located is a trigger interval, and send trigger data representing the trigger interval to the outside, so that an electronic device receives the trigger data and displays the interval where the person is located.
3. The detection device according to claim 2, wherein the trigger data includes single trigger data; the single trigger data records the trigger interval where the person is located when switching from someone to no one, and / or the trigger interval where the person is located when switching from no one to someone, so that the electronic device can display the historical trigger records of the space.
4. The detection device according to claim 2, wherein the trigger data includes real-time trigger data; the real-time trigger data records the current status of all intervals in the current space, so that the electronic device can display the real-time status of the current space.
5. The detection device according to claim 1, wherein the processing module is further configured to: after switching from the first recognition state to the second recognition state, if the position of the person is recognized to be within the specified boundary, it is recognized as a person approaching.
6. The detection device according to claim 1, wherein: The processing module is further configured to: after identifying a person approaching, continuously determine whether the person's location is within a specified boundary; If it is determined that the person's location is not within the specified boundary, it is determined within a delay period whether the person's location is outside the specified boundary; if so, it is determined that the person is moving away.
7. A detection method comprising: Detect whether there is anyone in the current space; If it is determined that there is no one in the current space, detect whether there is anyone in the current space in the first recognition state; And, if it is determined that there is someone in the current space, whether there is someone in the current space is detected in the second recognition state.
8. The method according to claim 7, wherein: The current space is formed by a plurality of intervals that can be selected by the detection device according to the space configuration data, so that the user can freely select the target detection area covered by the current space based on actual needs and configure the current space by issuing the space configuration data; The space configuration data consists of intervals L1 to L m Generated after being freely selected; L1~L m Representing the first interval to the mth interval of a space divided into m consecutive intervals; The method further comprises: The interval where the person is located is determined as a trigger interval, and trigger data representing the trigger interval is sent outward, so that an electronic device receives the trigger data and displays the interval where the person is located.
9. The method according to claim 8, wherein the trigger data includes single trigger data; the single trigger data records the trigger interval where the person is located when switching from someone to no one, and / or the trigger interval where the person is located when switching from no one to someone, so that the electronic device can display the historical trigger records of the space.
10. The method according to claim 8, wherein the trigger data comprises real-time trigger data; the real-time trigger data records the current status of all intervals in the current space, so that the electronic device can display the real-time status of the current space.