Target detection method and device, electronic equipment and storage medium
By dynamically adjusting the primary and secondary working modes of the passive infrared sensor and radar sensor in the target detection device according to the operating scenario, the problems of long device startup time and increased power consumption are solved, and fast response and efficient detection are achieved.
Patent Information
- Application Number
- CN202511120630.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2045-08-12
AI Technical Summary
Existing target detection equipment needs to go through multiple detection processes of passive infrared sensors and radar sensors before starting, resulting in a long startup time for the equipment, failure to capture intrusion targets in time, and a significant increase in power consumption.
Dynamically adjust the primary and secondary working modes of the passive infrared sensor and radar sensor based on the device's operating scenario, giving priority to sensors with lower detection interference, avoiding high-frequency multi-round detection redundancy, shortening wake-up time, and reducing power consumption.
It improves the response speed of target detection equipment, reduces equipment startup time, reduces power consumption, extends equipment life, and improves the efficiency of equipment use in different scenarios.
Smart Images

Figure CN120610259B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of target detection, and in particular to a target detection method and device, an electronic device, and a storage medium. BACKGROUND
[0002] In the field of security monitoring, smart home, etc., target detection can timely perceive the existence of a target and trigger a corresponding device response. In related solutions, in order to improve the accuracy of target detection, a detection device combining a passive infrared sensor and a radar sensor is often used, specifically, a passive infrared sensor is first used to detect a target, and when the passive infrared sensor detects a signal, a radar is started for secondary detection, and then a device is woken up for target detection. Although the above-mentioned method improves the accuracy of device detection to a certain extent and reduces the occurrence of misjudgment, the starting of the device needs to go through a series of processes of passive infrared sensor detection and radar secondary detection, resulting in a long device startup time and causing the device to fail to timely capture an intruding target. SUMMARY
[0003] The present application provides a target detection method and device, an electronic device, and a storage medium to improve the response speed of a target device used for target detection.
[0004] According to an aspect of the present application, a target detection method is provided, wherein the method comprises:
[0005] detecting first information of a target device, the first information being used to indicate a device running scene type in which the target device is located;
[0006] determining second information of the target device according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, the interference degree of the passive infrared sensor and the radar sensor when each of them detects being associated with the device running scene type, the passive infrared sensor and the radar sensor each being used to detect whether a target object of a preset type enters a detection area of the target device;
[0007] performing running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the third information being used to indicate whether a target object of a preset type enters a detection area of the target device;
[0008] determining whether to wake up the target device to perform a target detection task according to the third information.
[0009] According to another aspect of the present application, a target detection device is provided, wherein the device comprises:
[0010] The detection module is configured to detect first information of the target device, the first information being used to indicate a device running scene type in which the target device is located.
[0011] The determination module is configured to determine second information of the target device according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, the passive infrared sensor and the radar sensor each having an interference degree in detection and being associated with the device running scene type, and the passive infrared sensor and the radar sensor each being used to detect whether a target object of a preset type enters a detection area of the target device.
[0012] The control module is configured to perform running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the passive infrared sensor and the radar sensor each having an interference degree in detection and being associated with the device running scene type, and the passive infrared sensor and the radar sensor each being used to detect whether a target object of a preset type enters a detection area of the target device.
[0013] The wake-up module is configured to determine whether to wake up the target device to perform a target detection task according to the third information.
[0014] According to another aspect of the present application, an electronic device is provided, which comprises:
[0015] at least one processor; and
[0016] a memory connected to the at least one processor in communication; wherein
[0017] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the target detection method according to any one of the embodiments of the present application.
[0018] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to perform the target detection method according to any one of the embodiments of the present application when the processor executes the computer instructions.
[0019] According to another aspect of the present application, a computer program product is provided, which comprises a computer program for enabling a processor to perform the target detection method according to any one of the embodiments of the present application when the processor executes the computer program.
[0020] The technical scheme of the embodiment of the present application detects first information for indicating a device running scene type in which a target device is located. The passive infrared sensor and the radar sensor associated with the target device are both used to detect whether a target object of a preset type enters a detection area of the target device. It is considered that the detection interference received by the passive infrared sensor and the radar sensor associated with the target device is associated with the device running scene type. Therefore, the main and auxiliary working modes of the passive infrared sensor and the radar sensor associated with the target device can be configured by the first information, and then the running strategy of the passive infrared sensor and the radar sensor associated with the target device is adjusted in real time. Therefore, in some device running scenes, only the passive infrared sensor or the radar sensor with low detection interference needs to be used for dominant detection, and the multiple detection redundancies caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection in some device running scenes are avoided. Therefore, the processing time of the passive infrared sensor and the radar sensor associated with the target device before the target device is woken up is reduced, and the response period from detection to wake-up is directly shortened. In this way, the target device can be woken up and execute a target detection task according to the third information for indicating whether a target object of a preset type enters a detection area of the target device more quickly. The target device can run in an optimal strategy in different device running scenes, and the use efficiency of the target device is finally improved. Moreover, the multiple detection redundancies caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection are not needed, and therefore the use time of the device is shortened and the power consumption of the device is reduced.
[0021] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0023] Figure 1 is a flowchart of a target detection method according to an embodiment of the present application;
[0024] Figure 2 is a flowchart of another target detection method according to an embodiment of the present application;
[0025] Figure 3 is a structural schematic diagram of a target detection device according to an embodiment of the present application;
[0026] Figure 4 It is a structural diagram of an electronic device for implementing the target detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Figure 1 A flowchart of a target detection method is provided for an embodiment of the present invention. This embodiment is applicable to situations where a passive infrared sensor and a radar sensor are used for pre-detection and a target detection device is awakened to perform a target detection task based on the pre-detection results. The method can be executed by a target detection device, which can be implemented in the form of hardware and / or software. The target detection device can be configured in any electronic device with network communication capabilities.
[0030] like Figure 1 As shown, the target detection method provided by the embodiment of the present invention may include the following process:
[0031] S110: Detect first information of a target device, where the first information is used to indicate a device operation scenario type in which the target device is located.
[0032] The target device can be a device performing a target detection task on a target object, for example, the target device can include a monitoring camera, a security terminal device, and the like. The target detection task can include automatic identification, positioning, and analysis of the contour and morphology of the target object in an image, a video stream, or a real-time scene. The device running scene type of the target device can be a scene classification constituted according to at least one multi-dimensional feature of the environment condition, the working state, the task target, and the interaction object of the target device in the device running process.
[0033] In S120, second information of the target device is determined according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, and the interference degree of the passive infrared sensor and the radar sensor when each of them detects being associated with the device running scene type. Both the passive infrared sensor and the radar sensor are used to detect whether a target object of a preset type enters a detection area of the target device.
[0034] The interference degree of the passive infrared sensor when detecting can be the degree of influence of external environmental factors, device signals, or self-working characteristics on the passive infrared sensor during the execution of the detection task, which quantitatively reflects the ability of the passive infrared sensor to maintain stable detection performance in the device running scene of the target device. For example, for the passive infrared sensor, it can be disturbed by the drastic change of the ambient temperature (such as direct sunlight, near a heating device), a non-target infrared radiation source (such as a heating appliance), resulting in false triggering or decreased detection sensitivity of the passive infrared sensor.
[0035] The interference degree of the radar sensor when detecting can be the degree of influence of external environmental factors, device signals, or self-working characteristics on the radar sensor during the execution of the detection task, which quantitatively reflects the ability of the radar sensor to maintain stable detection performance in the device running scene of the target device. For example, for the radar sensor, it can be disturbed by electromagnetic signals of other radio devices (such as microwave ovens, wireless intercoms), or the detection distance and angle can be deviated due to the multipath effect (interference signals formed after the signal is reflected by an object).
[0036] If the target device is always in an awake state, the target detection task will be continuously performed even without a target object, resulting in long-term high-load operation of hardware such as a processor and a camera, accelerating aging (such as lens wear, chip overheating loss, etc.), and continuous operation also produces a large amount of invalid data (such as images or videos of empty scenes), occupying storage resources and increasing the burden of subsequent data processing; taking a smart camera as an example, if the detection module of the smart camera is started all day long, it will significantly consume the power of the smart camera (especially for battery-powered target devices). If the target device is in a sleep state, the target device can turn off high-power components, and the power consumption of the target device can be reduced to a very low level, thereby greatly extending the battery life and reducing the frequency of charging or replacing the battery.
[0037] For the above case, the passive infrared sensor and the radar sensor associated with the target device can be used for detection. Only when the passive infrared sensor and the radar sensor detect that a target object enters the detection area of the target device, the target device is awakened to perform the target detection task. That is, the passive infrared sensor is used for detection, and when the passive infrared sensor detects a signal, the radar sensor is started for secondary detection. After the radar sensor detects, the target device is awakened to perform the target detection task.
[0038] Although the above wake-up method improves the detection accuracy to some extent, it also has obvious disadvantages. On the one hand, the time before the target device is started is too long. In actual application scenarios, the long startup time may cause the target device to fail to perform the target detection task in time, thereby failing to capture the target object in time, affecting the use effect of the target device. For example, in a security monitoring scenario, the key behavior of an intruding target may be missed. On the other hand, the passive infrared sensor and the radar sensor themselves consume a certain amount of power during operation. The above wake-up method causes the passive infrared sensor and the radar sensor to be frequently started and run for a long time, resulting in a significant increase in power consumption of the target device.
[0039] Considering that the passive infrared sensor and the radar sensor have different detection accuracy under different device running scenarios due to external interference, that is, in some device running scenario types, the detection interference received by the passive infrared sensor is greater than that received by the radar sensor. At this time, the detection accuracy of the passive infrared sensor may be greatly affected, and the effectiveness of the detection result of the passive infrared sensor is greatly reduced. Similarly, there are also some device running scenario types in which the detection interference received by the passive infrared sensor is less than that received by the radar sensor. At this time, the detection accuracy of the radar sensor may be greatly affected, and the effectiveness of the detection result of the radar sensor is greatly reduced.
[0040] To this end, the scheme provided in the present application determines the detection interference received by the passive infrared sensor and the radar sensor when each of them performs detection according to the device running scene type in which the target device is located. The detection interference received by the passive infrared sensor and the radar sensor when each of them performs detection affects the detection accuracy of the passive infrared sensor and the radar sensor when each of them performs detection. Determining the master-slave working mode of the passive infrared sensor and the radar sensor according to the detection interference received by the passive infrared sensor and the radar sensor when each of them performs detection can avoid the passive infrared sensor or the radar sensor being used when the detection accuracy of the passive infrared sensor or the radar sensor is greatly reduced, and can realize the preferential use of the sensor that receives less detection interference in the device running scene type, and can avoid the multi-round detection redundancy caused by the simultaneous use of the passive infrared sensor and the radar sensor for high-frequency detection as much as possible.
[0041] The passive infrared sensor and the radar sensor associated with the target device have different interference degrees when each of them performs detection in the device running scene type indicated by the first information, so that the influence degrees of the detection accuracy of the passive infrared sensor and the radar sensor associated with the target device when each of them performs detection in the device running scene type indicated by the first information are different. The passive infrared sensor and the radar sensor associated with the target device have different interference degrees in the same device running scene type. For example, the passive infrared sensor has high sensitivity to environmental temperature changes, and its interference degree will significantly increase in a temperature close to body temperature scene, and it may miss detection; while the radar sensor is not sensitive to temperature changes, but in a high-frequency electromagnetic environment (such as near a power transformation station), the degree of electromagnetic interference will be significantly higher than that of the passive infrared sensor.
[0042] The same sensor has different interference degrees in different device running scene types. The radar sensor has a low degree of multipath reflection interference in an open scene, but in a complex environment with many obstacles (such as a densely furnished indoor environment), the interference caused by multiple reflections of signals will greatly increase the degree of interference; while the passive infrared sensor has a low degree of interference in a scene with less shielding, but in a scene with curtains, smoke, and other shielding objects, the degree of interference will increase.
[0043] In S130, the passive infrared sensor and the radar sensor associated with the target device are controlled according to the second information to obtain third information, and the third information is used to indicate whether a target object of a preset type enters the detection area of the target device.
[0044] The main sensor corresponding to the main-aid working mode indicated by the second information is one of the passive infrared sensor and the radar sensor associated with the target device, and the auxiliary sensor corresponding to the main-aid working mode is the sensor other than the main sensor among the passive infrared sensor and the radar sensor associated with the target device. At this time, if the passive infrared sensor is the main sensor, the radar sensor is the auxiliary sensor; if the radar sensor is the main sensor, the passive infrared sensor is the auxiliary sensor.
[0045] Based on the main-aid working mode indicated by the second information, when the passive infrared sensor and the radar sensor associated with the target device are controlled to operate, the first working mode or the second working mode can be selected to control the passive infrared sensor and the radar sensor to operate, so as to realize the configuration result of the main sensor and the auxiliary sensor in the main-aid working mode to control the passive infrared sensor and the radar sensor, and avoid the multi-round detection redundancy caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency target detection.
[0046] Since the operation of the passive infrared sensor and the radar sensor is adaptively adjusted according to the device operation scene type, the start time of the target device can be greatly reduced, and the target object can be captured in time. At the same time, the operation control based on the main-aid mode can avoid the full-load work of the two sensors without distinction, so that the target device does not need to run the passive infrared sensor and the radar sensor at the same time for detection every time, and the more suitable sensor can be used as the main sensor for efficient operation in some device operation scene types, and the auxiliary sensor can be started as needed, so that the multi-layer detection can be avoided to significantly increase the power consumption of the target device, thereby greatly increasing the endurance time of the target device without the need for frequent battery replacement or charging.
[0047] The third information can be determined according to the detection results obtained by the passive infrared sensor and the radar sensor associated with the target device after the passive infrared sensor and the radar sensor associated with the target device are controlled to operate. Both the passive infrared sensor and the radar sensor are used to detect whether a target object of a preset type enters the detection area of the target device, so the third information reflects whether a target object of a preset type exists in the detection area of the target device.
[0048] Since the anti-interference capabilities of the passive infrared sensor and the radar sensor are different in different device operation scene types, the main-aid mode is dynamically set and controlled through the second information, so that the passive infrared sensor and the radar sensor associated with the target device can flexibly switch the detection strategy in diversified scenes, select the sensor suitable for the device operation scene type as the main sensor, and ensure that the third information can still be stably output in a complex environment.
[0049] As an optional but non-limiting implementation, the main sensor corresponding to the main-aid working mode indicated by the second information is a passive infrared sensor or a radar sensor associated with the target device, the auxiliary sensor corresponding to the main-aid working mode is a sensor other than the main sensor among the passive infrared sensor and the radar sensor associated with the target device, the main sensor is configured in an open state, and the auxiliary sensor is configured in a closed state or a reduced detection frequency state; whether the auxiliary sensor is adjusted from the closed state to the open state or whether the detection frequency needs to be restored is determined according to the detection accuracy when the main sensor is detecting.
[0050] Optionally, the main-aid working mode indicated by the second information is the first working mode or the second working mode, the first working mode indicates that the passive infrared sensor associated with the target device is the main sensor for leading detection and the radar sensor associated with the target device is the auxiliary sensor for auxiliary detection, and the second working mode indicates that the radar sensor associated with the target device is the main sensor for leading detection and the passive infrared sensor associated with the target device is the auxiliary sensor for auxiliary detection.
[0051] The main sensor corresponding to the main-aid working mode is configured in an open state, and the auxiliary sensor corresponding to the main-aid working mode is configured in a closed state or a reduced detection frequency state. Optionally, when the main sensor corresponding to the main-aid working mode is configured in an open state, the auxiliary sensor is configured in a closed state or a state in which the detection frequency is adjusted from a first value to a second value, and the first value is greater than the second value.
[0052] In a device running scene type in which the detection interference received by the passive infrared sensor is less than the detection interference received by the radar sensor, the first working mode is adopted, which can fully exert the advantage of the passive infrared sensor to detect whether a target object of a preset type enters the detection area of the target device; and in a device running scene type in which the detection interference received by the passive infrared sensor is greater than the detection interference received by the radar sensor, the second working mode is switched to, which can detect whether a target object of a preset type enters the detection area of the target device by means of the detection advantage of the radar sensor.
[0053] By explicitly indicating the main-aid working mode of the passive infrared sensor and the radar sensor through the second information, the target device can switch the roles of the main sensor and the auxiliary sensor according to the actual running scene. When in different running scenes, a more suitable sensor can be selected as the main sensor from the passive infrared sensor and the radar sensor according to the difference in interference received by the two sensors, so as to avoid the multi-round detection redundancy caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency target detection and shorten the startup time of the target device while ensuring the accuracy of target object detection.
[0054] The main sensor is a detection component that the target device relies on preferentially in a device operating scene type indicated by the second information. The detection accuracy of the main sensor directly reflects the reliability of the target device being woken up to perform a target detection task. When the detection accuracy of the main sensor is high, it means that the main sensor can stably and accurately complete the detection task, and the auxiliary sensor does not need to intervene. In this case, if the auxiliary sensor is in an off state, it continues to remain off, and there is no need to additionally restore the detection frequency (which may have been reduced previously to save energy or reduce resource occupation), thereby avoiding resource waste or signal conflict caused by unnecessary operation of the auxiliary sensor.
[0055] When the detection accuracy of the main sensor decreases (for example, false positives or false negatives occur due to external environmental interference, or the detection data deviation exceeds a set threshold), in order to ensure that the target device can be woken up to perform the target detection task in a timely manner, the auxiliary sensor needs to be adjusted. In this case, if the auxiliary sensor is in an off state, it is adjusted to an on state, and the auxiliary sensor is used for supplementary detection. If the auxiliary sensor is already on but the detection frequency has been reduced (for example, in a low-power mode), the normal detection frequency is restored, so that more intensive detection data can be used to assist in verifying or correcting the results of the main sensor.
[0056] The above scheme uses the detection accuracy of the main sensor as the basis for an adjustment mechanism, dynamically adjusts the operating state of the auxiliary sensor, ensures detection reliability, and achieves efficient use of resources. This not only avoids the increase in energy consumption caused by simultaneous and continuous operation of the passive infrared sensor and the radar sensor associated with the target device, but also timely fills the position when the performance of the main sensor fluctuates, ensuring that the target device always maintains the ability to be woken up stably in complex scenes.
[0057] S140, determining whether to wake up the target device to perform a target detection task according to the third information.
[0058] The core role of the third information is to determine whether a target object of a preset type has entered the detection area of the target device. When the third information indicates that a target object of a preset type has entered the detection area, it means that the target device needs to further perform a target detection task on the detection area. In this case, the target device in an inactive state (for example, in a sleep state or a low-power mode) is woken up, so that the target device starts and performs a target detection task to obtain detection result information (for example, at least one of a position, a movement trajectory, and a characteristic parameter) of the target object. If the third information indicates that no target object of a preset type has entered the detection area, it means that the target device does not need to perform a target detection task on the detection area. In this case, the target device remains in the original inactive state and is not woken up.
[0059] With the above scheme, the target device does not need to be in a detection state all the time, and is only woken up when the third information confirms that a target object enters, greatly reducing the energy consumption caused by invalid detection, especially for devices relying on battery power, which can significantly extend the battery life. Since the third information filters the existence of the target object in advance, the target device can directly detect the target object that has been confirmed to enter after being woken up, avoiding redundant detection of non-target scenes and improving the response speed and relevance of the detection task. The wake-up logic based on the third information can concentrate the device's computing, storage and other resources on effective detection tasks, reducing unnecessary resource occupation, improving the overall system efficiency, reducing device wear caused by continuous detection, prolonging the service life of the device, avoiding the high power consumption of intelligent devices integrated with multiple sensors, which generates a large amount of heat, affecting the stability and service life of other electronic components inside the device, thereby reducing the risk of device failure.
[0060] The technical scheme of the embodiment of the application detects first information for indicating the type of the device running scene in which the target device is located. The passive infrared sensor and the radar sensor associated with the target device are both used to detect whether a target object of a preset type enters the detection area of the target device. Considering that the detection interference received by the passive infrared sensor and the radar sensor associated with the target device is associated with the type of the device running scene, the first information can be used to configure the main and auxiliary working modes of the passive infrared sensor and the radar sensor associated with the target device, and then the running strategy of the passive infrared sensor and the radar sensor associated with the target device can be adjusted in real time, so that in some device running scenes, only the passive infrared sensor or the radar sensor with lower detection interference is used for dominant detection, avoiding the multiple detection redundancies caused by simultaneous use of the passive infrared sensor and the radar sensor for high-frequency detection in some device running scenes. As a result, the processing time of the passive infrared sensor and the radar sensor associated with the target device before the target device is woken up is reduced, and the response period from detection to wake-up is directly shortened. In this way, the target device can be woken up and perform target detection tasks more quickly according to the third information for indicating whether a target object of a preset type enters the detection area of the target device, so that the target device can operate with the optimal strategy in different device running scenes, and the use efficiency of the target device is ultimately improved. Moreover, the multiple detection redundancies caused by simultaneous use of the passive infrared sensor and the radar sensor for high-frequency detection are avoided, so the duration of device startup and use is shortened and the power consumption of the device is reduced.
[0061] Figure 2Another flowchart of the target detection method provided by the embodiment of the present application is shown in the figure. The technical solution of the embodiment is further optimized on the basis of the technical solution of the above-mentioned embodiment, and the process of determining the second information of the target device according to the first information in the above-mentioned embodiment is further optimized. The embodiment can be combined with each optional scheme in one or more of the above-mentioned embodiments.
[0062] As shown in the figure, the target detection method provided by the embodiment of the present application can include the following processes: Figure 2
[0063] S210, detecting first information of the target device, the first information being used to indicate a device running scene type in which the target device is located.
[0064] S220, in response to the reference device running scene type being the same as the device running scene type indicated by the first information in at least one device running scene type, obtaining a sensor configuration mode associated with the reference device running scene type, the sensor configuration mode being used to indicate a sensor that should be configured as a main sensor in the passive infrared sensor and the radar sensor associated with the target device under the reference device running scene type.
[0065] S230, determining second information of the target device according to the sensor configuration information associated with the reference device running scene type.
[0066] The second information is used to indicate a main-aid working mode of the passive infrared sensor and the radar sensor associated with the target device. The interference degree when the passive infrared sensor and the radar sensor detect respectively is associated with the device running scene type. Both the passive infrared sensor and the radar sensor are used to detect whether a target object of a preset type enters a detection area of the target device.
[0067] In the process of running of the target device, multiple device running scene types are involved. When it is detected that the reference device running scene type is the same as the device running scene type indicated by the first information in at least one device running scene type, the sensor configuration mode associated with the reference device running scene type can be directly obtained.
[0068] The sensor configuration mode is used to determine which one of the passive infrared sensor and the radar sensor associated with the target device should be configured as the main sensor when the target device runs in the reference device running scene type. For example, in an indoor low-light scene, it is determined in the reference device running scene type that the radar sensor should be configured as the main sensor. When the device running scene type indicated by the first information is also an indoor low-light scene, the radar sensor is configured as the main sensor.
[0069] After obtaining the sensor configuration information associated with the reference device running scene type, the second information of the target device can be generated according to the sensor configuration information associated with the reference device running scene type. The second information is about the active and passive working modes of the passive infrared sensor and the radar sensor associated with the target device under the device running scene type in which the target device is located.
[0070] With the above scheme, when the target scene type is the same as the reference scene type, the existing sensor configuration mode can be directly called without re-performing complex sensor configuration analysis. The sensor configuration mode associated with the reference device running scene type can avoid errors that may occur due to reconfiguration, ensure that the selection of the main sensor meets the actual needs under the scene, and reduce detection problems caused by improper configuration. Different device running scenes have different requirements for sensors. By reusing the reference configuration under the same scene, the target device can quickly adapt and select a suitable main sensor in various running scenes, so that the device can maintain good detection performance in different scenes and improve the versatility and flexibility of the device.
[0071] As an optional but non-limiting implementation scheme, the at least one device running scene type includes at least one of the following:
[0072] The first type of device running scene in which the temperature sensor built in the target device detects that the temperature of the area where the target device is located is not greater than a first temperature.
[0073] The second type of device running scene in which the temperature sensor built in the target device detects that the temperature of the area where the target device is located is greater than the first temperature.
[0074] The third type of device running scene in which the number of target objects of a preset type detected in the detection area of the target device within a unit time is greater than a preset number.
[0075] The fourth type of device running scene in which a plurality of temperature sensors arranged around the target device detect that a plurality of heat sources with a temperature greater than a second temperature exist in the surrounding area of the target device.
[0076] The fifth type of device running scene in which the passive infrared sensor meets a preset trigger condition, and the passive infrared sensor meeting the preset trigger condition includes that the number of triggers of the passive infrared sensor within a unit time is greater than a preset number, and the radar sensor detects the same target object after the passive infrared sensor detects a target object each time.
[0077] For the first type of device running scene and the second type of device running scene, the target device determines whether the target device is in the first type of device running scene (such as a winter low-temperature scene) or in the second type of device running scene (such as a summer high-temperature scene) through a built-in temperature sensor and time information. A time module in the target device records time information in real time, and the temperature sensor continuously collects environmental temperature data. According to the time information, the current season is determined, such as spring from March to May, summer from June to August, and the like, and the environmental temperature condition is determined in combination with the temperature data. When it is determined that it is winter and the temperature is lower than a first temperature (such as 5°C), it is determined that the device running scene in which the target device is located is a winter low-temperature scene; when it is determined that it is summer and the temperature is higher than the first temperature, it is determined that the device running scene in which the target device is located is a summer high-temperature scene.
[0078] For the third type of device running scene, if the target device detects that the number of target objects of a preset type in the detection area of the target device in a unit of time is greater than a preset number (which can be obtained by counting the triggering number of the passive infrared sensor and the radar sensor in a unit of time), it is indicated that the environment in which the target device is located is large, such as a shopping mall, a street, or the like. For example, the triggering number of the passive infrared sensor and the radar sensor in a unit of time (such as 1 minute) is counted, and when the triggering number exceeds a preset number threshold (such as 20 times), it is determined that the environment in which the target device is located has the third type of device running scene with too much movement.
[0079] For the fourth type of device running scene, a plurality of temperature sensors are arranged around the target device, and data of the temperature sensors are analyzed. When it is detected that the temperature of a plurality of regions is obviously higher than the normal environmental temperature and reaches a preset second temperature threshold (such as 40°C), it is determined that the environment in which the target device is located is the fourth type of device running scene adjacent to a plurality of heat sources.
[0080] For the fifth type of device running scene, during the running of the target device, if the passive infrared sensor is triggered for a plurality of times in a unit of time (the triggering number threshold can be set according to actual needs, such as 3 times), and the radar sensor detection also passes each time, it is indicated that the detection accuracy of the passive infrared sensor in the environment in which the target device is located is high. For example, the triggering number of the passive infrared sensor is recorded, and when the triggering number of the passive infrared sensor reaches a preset threshold (such as 3 times) in a unit of time (such as 5 minutes), and the radar sensor detection also passes each time, it is determined that the environment in which the target device is located is in the fifth type of device running scene with a plurality of triggered passive infrared sensors.
[0081] As an optional but non-limiting implementation solution, when the reference device running scenario is the first type device running scenario, the third type device running scenario, or the fifth type device running scenario, the main sensor corresponding to the main-aid working mode indicated by the second information is a passive infrared sensor; when the reference device running scenario is the second type device running scenario or the fourth type device running scenario, the main sensor corresponding to the main-aid working mode indicated by the second information is a radar sensor.
[0082] In the case where the reference device running scenario is the first type device running scenario, the environment temperature where the target device is located is relatively low. Since the infrared radiation signal is relatively obvious in the low-temperature environment, the main-aid working mode of the passive infrared sensor and the radar sensor associated with the target device can be adjusted to be that the passive infrared sensor is the main sensor for leading detection and the radar sensor is the auxiliary sensor for auxiliary detection. Through the above setting, unnecessary starting of the radar sensor is reduced, so as to shorten the starting time of the target device and reduce the power consumption of the target device.
[0083] In the case where the reference device running scenario is the second type device running scenario, the environment temperature where the target device is located is relatively high. Since the high temperature can cause detection interference to the detection of the passive infrared sensor, and the radar sensor is less affected by the temperature, the main-aid working mode of the passive infrared sensor and the radar sensor associated with the target device is adjusted to be that the radar sensor is the main sensor for leading detection and the passive infrared sensor is the auxiliary sensor for auxiliary detection, so as to realize continuous working detection of the radar sensor and auxiliary detection of the passive infrared sensor. Through the detection strategy with the radar sensor as the main sensor, not only unnecessary starting of the passive infrared sensor is reduced, but also invalid running of the passive infrared sensor under high-temperature interference is avoided, and power consumption is reduced.
[0084] In the case where the reference device running scenario is the third type device running scenario, to avoid starting delay and power consumption waste caused by excessive invalid detection, the radar sensor can be turned off, and only the passive infrared sensor is relied on for detection. Because in this environment, the radar sensor can generate excessive false alarms due to movement of a large number of non-preset type target objects, and frequent starting of the radar sensor can increase the processing time and power consumption of the target device, the passive infrared sensor can filter out part of the non-preset type target objects to a certain extent, so as to complete preliminary detection at a relatively low cost and a relatively fast speed, while reducing the overall power consumption of the target device.
[0085] In the case where the reference device running scenario is the fourth type device running scenario, when the target device detects that there are a large number of heat sources around (such as kitchen, industrial workshop and the like), since the heat sources will cause greater interference to the detection of the passive infrared sensor, leading to an increase in false positive rate, at this time the passive infrared sensor associated with the target device can be closed and only the radar sensor is used for detection. The radar sensor detects the target through electromagnetic waves and is not affected by the heat source, and can more accurately detect whether there is movement of the target object of the preset type in the detection area of the target device, thereby improving the detection efficiency and reducing the starting time of the target device. At the same time, closing the passive infrared sensor avoids the consumption of the electric quantity consumed by the invalid operation of the passive infrared sensor in the complex heat source environment, thereby reducing the power consumption of the target device.
[0086] In the case where the reference device running scenario is the fifth type device running scenario, since the radar sensor is triggered after each triggering of the passive infrared sensor, indicating that the detection accuracy of the passive infrared sensor is relatively high, at this time the primary and auxiliary working mode of the passive infrared sensor and the radar sensor associated with the target device can be adjusted to be that the passive infrared sensor is the main sensor for leading detection and the radar sensor is the auxiliary sensor for auxiliary detection. In the above primary and auxiliary working mode, the detection is relied on the passive infrared sensor, the radar sensor is closed or the detection frequency of the radar sensor is reduced, such as extending the detection interval of the radar sensor from 1 second to 5 seconds, and the detection result of the passive infrared sensor is taken as the main basis, and only when there is doubt about the detection result of the passive infrared sensor, the detection result of the radar sensor is started to assist in confirming. The above-mentioned manner can reduce the starting delay of the target device caused by multiple rounds of verification whether the target object enters the detection area, and at the same time reduce the device power consumption caused by the frequent starting and running of the radar sensor.
[0087] S240, performing running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the third information being used to indicate whether the target object of the preset type enters the detection area of the target device.
[0088] As an optional but not limited implementation scheme, performing running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information includes but is not limited to the following steps A1-A3:
[0089] Step A1, in response to the primary and auxiliary working mode indicated by the second information corresponding to the main sensor being the passive infrared sensor, starting to run the passive infrared sensor associated with the target device, and configuring the radar sensor associated with the target device to be in a closed state or to run in a reduced detection frequency.
[0090] Step A2, in response to the first signal detected by the passive infrared sensor satisfying the first preset condition, determining third information according to the first signal detected by the passive infrared sensor associated with the target device.
[0091] Step A3, in response to the first signal detected by the passive infrared sensor not satisfying the first preset condition, starting to run the radar sensor associated with the target device to detect a second signal, and determining the third information according to the first signal and the second signal; or, in response to the first signal detected by the passive infrared sensor not satisfying the first preset condition, obtaining a third signal detected by the radar sensor associated with the target device when the radar sensor is running at a reduced detection frequency, and determining the third information according to the first signal and the third signal.
[0092] With the above scheme, the performance of the device is improved by dynamically adapting the working mode of the main and auxiliary sensors. When the passive infrared sensor is used as the main sensor, the radar sensor is turned off or runs at a reduced frequency, which can reduce the energy consumption and signal conflict of the device. When the signal detected by the passive infrared sensor meets the condition, the information is directly determined by the data of the passive infrared sensor to ensure the response efficiency. When the signal detected by the passive infrared sensor does not meet the condition, the radar sensor is started or the result of the reduced detection is called to determine the information, which not only reduces the invalid energy consumption, but also improves the detection accuracy and reliability in complex scenes through the cooperation of multiple sensors, and enhances the environmental adaptability of the device.
[0093] As an optional but not limited implementation scheme, whether the first signal satisfies the first preset condition is determined according to whether the signal stability of the first signal is greater than a preset signal stability and whether the signal feature difference between the signal feature of the first signal and a preset signal feature is less than a preset feature difference. The preset signal stability is determined according to the signal state of the infrared radiation signal released by the target object of the preset type in the time dimension which is pre-acquired by the passive infrared sensor. The preset signal feature is determined according to the signal feature of the infrared radiation signal released by the target object of the preset type which is pre-acquired by the passive infrared sensor.
[0094] Optionally, the first signal satisfying the first preset condition includes that the signal stability of the first signal is greater than the preset signal stability and the signal feature difference between the signal feature of the first signal and the preset signal feature is less than the preset feature difference. The first signal satisfying the first preset condition includes that the signal stability of the first signal is not greater than the preset signal stability or the signal feature difference between the signal feature of the first signal and the preset signal feature is not less than the preset feature difference. The signal stability of the first signal can be described by the signal intensity fluctuation of the first signal.
[0095] With the above scheme, the detection reliability is improved through the accurate signal judgment mechanism, and the first signal is judged whether valid from the signal stability and feature difference dimensions based on the infrared radiation features (continuous regularity and specific signal features) of the preset type target, which not only avoids single dimension misjudgment, but also effectively filters environmental interference and reduces passive infrared sensor false triggering, while providing accurate judgment basis for subsequent main and auxiliary sensor cooperation, ensuring more accurate target recognition in complex scenes and improving the anti-interference ability and decision reliability of equipment detection.
[0096] As another optional but not limited implementation scheme, the passive infrared sensor and the radar sensor associated with the target device are controlled according to the second information to obtain third information, including but not limited to the following steps B1-B3:
[0097] Step B1, in response to the main sensor corresponding to the main and auxiliary working mode indicated by the second information being a radar sensor, starting to run the radar sensor associated with the target device, and configuring the passive infrared sensor associated with the target device to be in a closed state or to reduce the detection frequency and then running.
[0098] Step B2, in response to the fourth signal detected by the radar sensor satisfying the second preset condition, determining the third information according to the fourth signal detected by the radar sensor associated with the target device.
[0099] Step B3, in response to the fourth signal detected by the radar sensor not satisfying the second preset condition, starting to run the passive infrared sensor associated with the target device to detect a fifth signal, and determining the third information according to the fourth signal and the fifth signal; or, in response to the fourth signal detected by the radar sensor not satisfying the second preset condition, obtaining a sixth signal detected by the passive infrared sensor associated with the target device when running at a reduced detection frequency, and determining the third information according to the fourth signal and the sixth signal.
[0100] With the above scheme, the device detection reliability and energy efficiency are improved by dynamically switching the main and auxiliary sensor working mode. When the radar sensor is used as the main sensor, the passive infrared sensor is closed or runs at a reduced frequency, reducing invalid energy consumption and interference sources. When the signal detected by the radar sensor meets the condition, the detection result of the radar sensor is directly used to ensure efficient detection. When the signal detected by the radar sensor does not meet the condition, the passive infrared sensor is linked (started or called to reduce the frequency) to generate a detection result, making up for the shortcomings of a single sensor. In this way, the advantages of the radar sensor in resisting specific interference are realized, and the scene adaptability limitations are avoided through the cooperation of the two sensors, achieving a balance between detection accuracy improvement and energy consumption optimization in complex environments.
[0101] As an optional but non-limiting implementation solution, whether the fourth signal meets the second preset condition is determined according to whether a difference between a motion feature of the target object indicated by the fourth signal and a preset motion feature is less than a preset motion difference, the motion feature of the target object being obtained by previously detecting a preset type of target object by the radar sensor, and the motion feature of the target object including a motion speed and a motion direction of the target object.
[0102] The above scheme can accurately quantify the difference in the motion feature of the target object, and compare the motion feature indicated by the fourth signal with the motion feature of the preset type of target object obtained by the radar sensor in advance. The result of whether the difference in the motion feature of the target object is less than the preset motion difference can avoid the ambiguity of the traditional judgment, effectively filter the interference of the non-pre-set type of target object, and reduce the misjudgment. Meanwhile, the accurate capturing capability of the radar sensor for the motion feature ensures the fine description of the motion state of the target object, and improves the identification accuracy and response timeliness of the target object in a complex scene.
[0103] S250, determining whether to wake up the target device to perform the target detection task according to the third information.
[0104] On the basis of the above-mentioned embodiments, optionally, the target detection method provided by the embodiments of the present application can further include the following process:
[0105] According to the second information, the detection weight of the passive infrared sensor associated with the target device and the detection weight of the radar sensor associated with the target device are adjusted, and the third information is calculated according to the detection weight of the passive infrared sensor and the detection weight of the radar sensor.
[0106] According to the characteristics of different device running scenes, the detection weights of the passive infrared sensor and the radar sensor are reasonably allocated, the advantages of the passive infrared sensor and the radar sensor are fully utilized, the detection accuracy of whether there is a target object in the detection area of the target device is ensured, and the false alarm and missed alarm situations are reduced.
[0107] The technical scheme of the embodiment of the present application detects first information for indicating a device running scene type in which a target device is located. Both the passive infrared sensor and the radar sensor associated with the target device are used to detect whether a target object of a preset type enters a detection area of the target device. It is considered that the detection interference received by the passive infrared sensor and the radar sensor associated with the target device is associated with the device running scene type. Therefore, the main and auxiliary working modes of the passive infrared sensor and the radar sensor associated with the target device can be configured by the first information, and the running strategy of the passive infrared sensor and the radar sensor associated with the target device is adjusted in real time. Thus, in some device running scenes, only the passive infrared sensor or the radar sensor with low detection interference is used for dominant detection, and the multiple detection redundancies caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection in some device running scenes are avoided. As a result, the processing time of the passive infrared sensor and the radar sensor associated with the target device before the target device is woken up is reduced, and the response period from detection to wake-up is directly shortened. In this way, the target device can be woken up and perform a target detection task according to third information for indicating whether a target object of a preset type enters a detection area of the target device. The target device can be operated in an optimal strategy in different device running scenes, and the use efficiency of the target device is improved. Moreover, the multiple detection redundancies caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection are not required, and thus the use time of the device is shortened and the power consumption of the device is reduced.
[0108] Figure 3 A flowchart of a target detection method is provided for the embodiment of the present application. The embodiment can be applied to a case where a passive infrared sensor and a radar sensor are used for pre-detection, and a target detection device is woken up to perform a target detection task according to a pre-detection result. The target detection device can be implemented in the form of hardware and / or software, and can be configured in any electronic device with network communication function.
[0109] As shown in Figure 3 , the target detection device provided by the embodiment of the present application can include the following:
[0110] The detection module 310 is configured to detect first information of a target device, and the first information is used to indicate a device running scene type in which the target device is located.
[0111] The determining module 320 is configured to determine second information of the target device according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, the passive infrared sensor and the radar sensor each having an interference degree when detecting and a device running scene type being associated, and the passive infrared sensor and the radar sensor each being used to detect whether a target object of a preset type enters a detection area of the target device.
[0112] The control module 330 is configured to perform running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the third information being used to indicate whether a target object of a preset type enters a detection area of the target device.
[0113] The wake-up module 340 is configured to determine whether to wake up the target device to perform a target detection task according to the third information.
[0114] In the above embodiment, optionally, the master sensor corresponding to the master-slave working mode is the passive infrared sensor or the radar sensor associated with the target device, the auxiliary sensor corresponding to the master-slave working mode is a sensor other than the master sensor among the passive infrared sensor and the radar sensor associated with the target device, the master sensor is configured in an open state, and the auxiliary sensor is configured in a closed state or a reduced detection frequency, and whether the auxiliary sensor is adjusted from the closed state to the open state or whether the detection frequency needs to be restored is determined according to a detection accuracy when the master sensor detects.
[0115] In the above embodiment, optionally, the determining of the second information of the target device according to the first information comprises:
[0116] In response to a reference device running scene type in the at least one device running scene type being the same as a device running scene type indicated by the first information, obtaining a sensor configuration mode associated with the reference device running scene type, the sensor configuration mode being used to indicate a sensor that should be configured as a master sensor among the passive infrared sensor and the radar sensor associated with the target device in the reference device running scene type.
[0117] Determining the second information of the target device according to the sensor configuration information associated with the reference device running scene type.
[0118] In the above embodiment, optionally, the at least one device running scene type comprises at least one of the following:
[0119] The temperature sensor built in the target device detects that a temperature of an area where the target device is located is not greater than a first temperature, and a first type device running scene is detected. The temperature sensor built in the target device detects that a temperature of an area where the target device is located is not greater than a first temperature, and a first type device running scene is detected.
[0120] a second type of device running scenario in which a temperature sensor built in the target device detects that the temperature of the area where the target device is located is greater than a first temperature;
[0121] a third type of device running scenario in which the number of target objects of a preset type detected in the detection area of the target device per unit time is greater than a preset number;
[0122] a fourth type of device running scenario in which a plurality of temperature sensors arranged around the target device detect that there are a plurality of heat sources with a temperature greater than a second temperature in the surrounding area of the target device;
[0123] a fifth type of device running scenario in which the passive infrared sensor meets a preset triggering condition, the passive infrared sensor meeting the preset triggering condition including that the number of times the passive infrared sensor is triggered per unit time is greater than a preset number, and the radar sensor detects the same target object after the passive infrared sensor detects a target object each time the passive infrared sensor is triggered.
[0124] Optionally, in the above embodiments, when the reference device running scenario is the first type of device running scenario, the third type of device running scenario, or the fifth type of device running scenario, the main sensor corresponding to the main-aid working mode indicated by the second information is a passive infrared sensor.
[0125] When the reference device running scenario is the second type of device running scenario or the fourth type of device running scenario, the main sensor corresponding to the main-aid working mode indicated by the second information is a radar sensor.
[0126] Optionally, in the above embodiments, the passive infrared sensor and the radar sensor associated with the target device are controlled according to the second information to obtain third information, including:
[0127] In response to the main sensor corresponding to the main-aid working mode indicated by the second information being a passive infrared sensor, the passive infrared sensor associated with the target device is started to run, and the radar sensor associated with the target device is configured to be in an off state or to run at a reduced detection frequency.
[0128] In response to the first signal detected by the passive infrared sensor meeting a first preset condition, the third information is determined according to the first signal detected by the passive infrared sensor associated with the target device.
[0129] In response to the first signal detected by the passive infrared sensor not meeting the first preset condition, the radar sensor associated with the target device is started to run to detect a second signal, and the third information is determined according to the first signal and the second signal; or,
[0130] In response to the first signal detected by the passive infrared sensor not satisfying the first preset condition, a third signal detected by the radar sensor associated with the target device when operating at a reduced detection frequency is acquired, and the third information is determined according to the first signal and the third signal.
[0131] On the basis of the above-mentioned embodiments, optionally, whether the first signal satisfies the first preset condition is determined according to whether the signal stability of the first signal is greater than a preset signal stability and whether the signal feature difference between the signal feature of the first signal and a preset signal feature is less than a preset feature difference, the preset signal stability is determined according to the infrared radiation signal released by the target object of a preset type and pre-acquired by the passive infrared sensor in a time dimension, the signal feature is determined according to the signal feature of the infrared radiation signal released by the target object of a preset type and pre-acquired by the passive infrared sensor.
[0132] On the basis of the above-mentioned embodiments, optionally, the passive infrared sensor and the radar sensor associated with the target device are controlled according to the second information to obtain third information, including:
[0133] In response to the main sensor corresponding to the main and auxiliary working mode indicated by the second information being the radar sensor, the radar sensor associated with the target device is started to operate, and the passive infrared sensor associated with the target device is configured to be in an off state or to operate at a reduced detection frequency;
[0134] In response to the fourth signal detected by the radar sensor satisfying a second preset condition, the third information is determined according to the fourth signal detected by the radar sensor associated with the target device;
[0135] In response to the fourth signal detected by the radar sensor not satisfying the second preset condition, the passive infrared sensor associated with the target device is started to operate to detect a fifth signal, and the third information is determined according to the fourth signal and the fifth signal; or,
[0136] In response to the fourth signal detected by the radar sensor not satisfying the second preset condition, a sixth signal detected by the passive infrared sensor associated with the target device when operating at a reduced detection frequency is acquired, and the third information is determined according to the fourth signal and the sixth signal.
[0137] On the basis of the above-mentioned embodiments, optionally, whether the fourth signal meets the second preset condition is judged according to whether a difference between a motion feature of the target object indicated by the fourth signal and a preset motion feature is less than a preset motion difference, the motion feature of the target object being obtained by previously detecting a target object of a preset type by a radar sensor, and the motion feature of the target object including a motion speed and a motion direction of the target object.
[0138] On the basis of the above-mentioned embodiments, optionally, the method further comprises:
[0139] adjusting, according to the second information, a detection weight of the passive infrared sensor associated with the target device and a detection weight of the radar sensor associated with the target device, for calculating the third information according to the detection weight of the passive infrared sensor and the detection weight of the radar sensor.
[0140] The technical scheme of the embodiments of the present application detects the first information for indicating the device running scene type in which the target device is located, and both the passive infrared sensor and the radar sensor associated with the target device are used to detect whether a target object of a preset type enters a detection area of the target device. It is considered that the detection interference received by the passive infrared sensor and the radar sensor associated with the target device is associated with the device running scene type, so that the master-slave working mode of the passive infrared sensor and the radar sensor associated with the target device can be configured according to the first information, and then the running strategy of the passive infrared sensor and the radar sensor associated with the target device can be adjusted in real time, so that in some device running scenes, only the passive infrared sensor or the radar sensor with low detection interference is used for dominant detection, and the multi-round detection redundancy caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection in some device running scenes is avoided. Therefore, the processing time of the passive infrared sensor and the radar sensor associated with the target device before the target device is awakened and started is reduced, and the response period from detection to awakening is directly shortened. In this way, the target device can decide whether to be awakened and perform a target detection task according to the third information for indicating whether a target object of a preset type enters a detection area of the target device, so that the target device can run with an optimal strategy in different device running scenes, and the use efficiency of the target device is ultimately improved. Moreover, the multi-round detection redundancy caused by simultaneously using the passive infrared sensor and the radar sensor for high-frequency detection is not needed, so the time length of device starting use is also shortened, and the device power consumption is reduced.
[0141] The target detection device provided in the embodiments of the present application can execute the target detection method provided in any of the embodiments of the present application, has the corresponding functions and advantages of executing the target detection method, and the detailed process is described with reference to the related operations of the target detection method in the foregoing embodiments.
[0142] It is to be noted that the units and modules included in the above apparatus are only divided according to the function logic, and are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the function units are only for the convenience of mutual differentiation, and do not serve to limit the protection scope of the embodiments of the present application.
[0143] Figure 4 A structural diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing devices, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the present application described and / or claimed in this document.
[0144] As shown in Figure 4 The electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0145] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, a speaker, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0146] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as the object detection method.
[0147] In some embodiments, the object detection method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the object detection method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the object detection method by any other suitable means, such as by means of firmware.
[0148] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0149] Computer programs used to implement the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0150] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0151] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0152] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain network, and the Internet.
[0153] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS (Virtual Private Server) service.
[0154] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which are not limited herein.
[0155] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A target detection method characterized by, The method comprises: detecting first information of a target device, the first information being used to indicate a device running scene type in which the target device is located; determining second information of the target device according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, the interference degrees of the passive infrared sensor and the radar sensor when detecting respectively being associated with the device running scene type, the passive infrared sensor and the radar sensor both being used to detect whether a target object of a preset type enters a detection area of the target device; controlling running of the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the third information being used to indicate whether the target object of the preset type enters the detection area of the target device; determining whether to wake up the target device to perform a target detection task according to the third information.
2. The method of claim 1, wherein, The master sensor corresponding to the master-slave working mode is the passive infrared sensor or the radar sensor associated with the target device, the auxiliary sensor corresponding to the master-slave working mode is the sensor other than the master sensor among the passive infrared sensor and the radar sensor associated with the target device, the master sensor is configured in an open state, and the auxiliary sensor is configured in a closed state or a reduced detection frequency, and whether the auxiliary sensor is adjusted from the closed state to the open state or whether the detection frequency needs to be restored is determined according to a detection accuracy when the master sensor detects.
3. The method according to claim 1 or 2, characterized in that, The determining of the second information of the target device according to the first information comprises: in response to a reference device running scene type in at least one device running scene type being the same as the device running scene type indicated by the first information, obtaining a sensor configuration mode associated with the reference device running scene type, the sensor configuration mode being used to indicate that, under the reference device running scene type, a sensor among the passive infrared sensor and the radar sensor associated with the target device should be configured as a master sensor; determining the second information of the target device according to the sensor configuration information associated with the reference device running scene type.
4. The method of claim 3, wherein, The at least one device running scene type comprises at least one of: a first type device running scene in which a temperature sensor built in the target device detects that a temperature of an area in which the target device is located is not greater than a first temperature; a second type device running scene in which the temperature sensor built in the target device detects that the temperature of the area in which the target device is located is greater than the first temperature; a third type device running scene in which a number of target objects of a preset type detected in a detection area of the target device in a unit time is greater than a preset number; a fourth type device running scene in which a plurality of temperature sensors arranged around the target device detect that a plurality of heat sources with a temperature greater than a second temperature exist in a surrounding area of the target device; The fifth type of device running scenario when the passive infrared sensor meets a preset trigger condition, the passive infrared sensor meeting the preset trigger condition including the passive infrared sensor triggering more than a preset number of times per unit time, and the radar sensor detecting the same target object after the passive infrared sensor detects a target object each time.
5. The method of claim 4, wherein, When the reference device running scenario is the first type of device running scenario, the third type of device running scenario, or the fifth type of device running scenario, the primary sensor corresponding to the primary and secondary working modes indicated by the second information is a passive infrared sensor; When the reference device running scenario is the second type of device running scenario or the fourth type of device running scenario, the primary sensor corresponding to the primary and secondary working modes indicated by the second information is a radar sensor.
6. The method of claim 2, wherein, According to the second information, the passive infrared sensor and the radar sensor associated with the target device are controlled to obtain third information, including: In response to the primary sensor corresponding to the primary and secondary working modes indicated by the second information being a passive infrared sensor, the passive infrared sensor associated with the target device is started and run, and the radar sensor associated with the target device is configured to be in a closed state or run at a reduced detection frequency; In response to the first signal detected by the passive infrared sensor meeting a first preset condition, the third information is determined according to the first signal detected by the passive infrared sensor associated with the target device; In response to the first signal detected by the passive infrared sensor not meeting the first preset condition, the radar sensor associated with the target device is started and run to detect a second signal, and the third information is determined according to the first signal and the second signal; or, In response to the first signal detected by the passive infrared sensor not meeting the first preset condition, a third signal detected by the radar sensor associated with the target device when running at a reduced detection frequency is obtained, and the third information is determined according to the first signal and the third signal.
7. The method of claim 6, wherein, Whether the first signal meets the first preset condition is determined according to whether the signal stability of the first signal is greater than a preset signal stability and whether the signal feature difference between the signal feature of the first signal and a preset signal feature is less than a preset feature difference, the preset signal stability is determined according to the infrared radiation signal released by the passive infrared sensor pre-acquired from a target object of a preset type, which presents a continuous and regular signal state in the time dimension, and the preset signal feature is determined according to the signal feature of the infrared radiation signal released by the passive infrared sensor pre-acquired from a target object of a preset type.
8. The method of claim 2, wherein, According to the second information, the passive infrared sensor and the radar sensor associated with the target device are controlled to obtain third information, including: In response to the primary sensor corresponding to the primary and secondary working modes indicated by the second information being a radar sensor, the radar sensor associated with the target device is started and run, and the passive infrared sensor associated with the target device is configured to be in a closed state or run at a reduced detection frequency; in response to the fourth signal detected by the radar sensor satisfying a second preset condition, determining the third information according to the fourth signal detected by the radar sensor associated with the target device; in response to the fourth signal detected by the radar sensor not satisfying the second preset condition, starting to run the passive infrared sensor associated with the target device to detect a fifth signal, and determining the third information according to the fourth signal and the fifth signal; or in response to the fourth signal detected by the radar sensor not satisfying the second preset condition, obtaining a sixth signal detected by the passive infrared sensor associated with the target device when the passive infrared sensor is running at a reduced detection frequency, and determining the third information according to the fourth signal and the sixth signal.
9. The method of claim 8, wherein, Whether the fourth signal satisfies the second preset condition is determined according to whether a difference between a motion feature of a target object indicated by the fourth signal and a preset motion feature is less than a preset motion difference, the motion feature of the target object being obtained by previously detecting a target object of a preset type by a radar sensor, and the motion feature of the target object including a motion speed and a motion direction of the target object.
10. The method of claim 6 or 8, wherein, The method further includes: adjusting a detection weight of the passive infrared sensor associated with the target device and a detection weight of the radar sensor associated with the target device according to the second information, so as to calculate the third information according to the detection weight of the passive infrared sensor and the detection weight of the radar sensor.
11. A target detection apparatus characterized by comprising: The apparatus includes: a detection module configured to detect first information of a target device, the first information being used to indicate a device running scene type in which the target device is located; a determination module configured to determine second information of the target device according to the first information, the second information being used to indicate a master-slave working mode of a passive infrared sensor and a radar sensor associated with the target device, an interference degree of each of the passive infrared sensor and the radar sensor when detecting being associated with the device running scene type, and the passive infrared sensor and the radar sensor both being used to detect whether a target object of a preset type enters a detection area of the target device; a control module configured to perform running control on the passive infrared sensor and the radar sensor associated with the target device according to the second information to obtain third information, the third information being used to indicate whether the target object of the preset type enters the detection area of the target device; a wake-up module configured to determine whether to wake up the target device to perform a target detection task according to the third information.
12. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the target detection method in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the target detection method in any one of claims 1-10 when executed.
Citation Information
Patent Citations
Low-power-consumption target monitoring device, method and system
CN113109806A
Environment adaptive perception target tracking method, system and equipment
CN117522922A