Monitoring method, device, electronic device and storage medium
By dividing the smart light control area into multiple sub-regions, and using point cloud data and sensor information to determine the target location, multi-mode control of smart lights is realized, the problem of single existing smart light control mode is solved, meeting the diverse needs of users and achieving energy conservation and environmental protection.
Patent Information
- Application Number
- CN202211122217.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-09-15
AI Technical Summary
The existing smart light control mode is single, which cannot meet the users' multi-mode control needs for smart lights under different behaviors.
By dividing the preset area into multiple sub-regions, each sub-region sets up a sensor to obtain point cloud data in real time to determine whether there is someone, and controls the working mode of the smart light based on the sub-region where the target is located, including power saving, eye protection and rest modes.
Multi-mode control of smart lights is realized to meet the different behavioral needs of users, while achieving energy conservation and environmental protection.
Smart Images

Figure CN115474318B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to an intelligent lamp monitoring method and device. Background Art
[0002] Smart home applications have become more and more widespread. For example, by monitoring whether there are people in a certain area, the electrical equipment in the corresponding area can be controlled, and the corresponding electrical equipment can be turned on or off according to the detection results. However, the existing monitoring mode is single and it is easy to have control errors and cannot meet the needs of users.
[0003] For example, when the ambient light is less than a preset value and someone is detected in the bedroom area, the smart lights in the bedroom area are controlled to be turned on or off. However, the control mode of existing smart lights is single, which basically controls the smart lights to be turned on when someone is in the bedroom and turned off when no one is there. For example, Chinese invention patent CN201610336918.2, a control device and a control method for smart lights in a bedroom scene, specifically discloses a main control module, and a motion detection device, an infrared sensing device and a wifi module respectively connected to the main control module; the motion detection device is installed in the bedroom, and when a standing or sitting person is detected in the bedroom, an input The infrared sensing device outputs a first detection signal to the main control module; when detecting that a human body is leaning on the bed, the infrared sensing device outputs a second detection signal to the main control module; when receiving the second detection signal but not receiving the first detection signal, the bedside lamp is turned on and the control signal is output to the wifi module; when receiving the first detection signal and the second detection signal at the same time, the bedside lamp is turned off and the control signal is output to the wifi module; the main lamp and the bedside lamp are intelligently controlled. This solution realizes the light of the human body in different situations by switching the control of the main lamp and the bedside lamp, but the control of the same smart lamp is single when the human body has different behaviors in the bedroom, which cannot meet the needs. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a monitoring method, device, electronic device and storage medium, which can effectively control the smart lights in a certain area and realize multi-mode control according to the functional modules of the preset area.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a monitoring method, which includes the following steps: dividing the preset area into multiple sub-areas, each sub-area is provided with an orientation presence sensor; acquiring point cloud data of the preset area in real time; judging whether there is a target in the preset area according to the point cloud data, the target includes an adult or a child; when it is judged that there is a target in the preset area, confirming the sub-area where the target is located according to the information detected by the orientation presence sensor of each sub-area; and controlling the working mode of the smart light according to the sub-area where the target is located, the working mode of the smart light includes a first mode: turning on the first preset time, power saving mode; a second mode: turning on the second preset time, eye protection mode; a third mode: turning on the third preset time, rest mode. By monitoring the preset area, when a target appears in the preset area, the working mode of the smart light is controlled according to the sub-area where the target is located, so as to realize multi-mode control of the smart light and meet the needs of users.
[0006] Preferably, when it is determined that there is a target in the preset area, confirming the sub-area where the target is located according to the information detected by the position presence sensor of each sub-area specifically includes the following steps: obtaining the actual distance L between the sub-area position presence sensor and the target in real time n and the actual angle A with the target n , where n>0; filter the actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screening n ; According to the actual distance L after screening n And the angle A after screening n The target actual average distance value V1 and the target actual average angle value V2 are calculated; and the sub-area where the target is located is determined according to the target actual average distance value V1 and the target actual average angle value V2 and the preset distance value and preset range value of each sub-area.
[0007] Preferably, the actual screening distance L n and the actual angle S n , and record the actual distance L after screening n And the angle A after screening n Specifically include the following steps: determine the actual distance L n Is it less than or equal to the preset maximum distance? n When the distance is less than or equal to the preset maximum distance, the actual distance L is determined. n Is it greater than the preset minimum distance? When the actual distance L n When it is greater than the preset minimum distance, the actual distance L is determined n The corresponding actual angle S n Is it less than or equal to the preset maximum angle? nWhen the angle is less than or equal to the preset maximum angle, the actual distance L is determined. n The corresponding actual angle S n Is it greater than the preset minimum angle? n When the angle is greater than the preset minimum angle, the actual distance L after screening is recorded. n And the actual distance L n The corresponding actual angle A n .
[0008] Preferably, judging whether there is a target in the preset area according to the point cloud data, the target including an adult or a child specifically comprises the following steps: determining an area of interest and key frame data according to the point cloud data; and confirming whether there is a target in the preset area according to the area of interest and the key frame data.
[0009] The present invention also provides a monitoring device, which includes: a division module, used to divide the preset area into multiple sub-areas, each sub-area is provided with an azimuth presence sensor; an acquisition module, used to acquire point cloud data of the preset area in real time; a judgment module, used to judge whether there is a target in the preset area according to the point cloud data, and the target includes an adult or a child; a confirmation module, used to confirm the sub-area where the target is located according to the information detected by the azimuth presence sensor of each sub-area when it is judged that there is a target in the preset area; and a control module, used to control the working mode of the smart light according to the sub-area where the target is located, and the working mode of the smart light includes a first mode: turning on the first preset time, power saving mode; a second mode: turning on the second preset time, eye protection mode; and a third mode: turning on the third preset time, rest mode.
[0010] Preferably, the confirmation module includes: an acquisition submodule for acquiring in real time the actual distance L between the sub-area position presence sensor and the target n and the actual angle A with the target n , where n>0;
[0011] The screening submodule is used to screen the actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screening n ; The calculation submodule is used to calculate the actual distance L after screening n And the angle A after screening n The actual average distance value V1 and the actual average angle value V2 of the target are calculated; the first confirmation submodule is used to determine the sub-area where the target is located according to the actual average distance value V1 and the actual average angle value V2 of the target and the preset distance value and preset range value of each sub-area.
[0012] Preferably, the screening submodule comprises: a first judging unit, configured to judge the actual distance Ln Is the actual distance L less than or equal to the preset maximum distance? The second judgment unit is used to determine whether the actual distance L is less than or equal to the preset maximum distance. n When the distance is less than or equal to the preset maximum distance, the actual distance L is determined. n Is it greater than the preset minimum distance? The third judgment unit is used to determine whether the actual distance L n When it is greater than the preset minimum distance, the actual distance L is determined n The corresponding actual angle S n Is the actual angle S less than or equal to the preset maximum angle? n When the angle is less than or equal to the preset maximum angle, the actual distance L is determined. n The corresponding actual angle S n Is it greater than the preset minimum angle? Recording unit, used when the actual angle S n When the angle is greater than the preset minimum angle, the actual distance L after screening is recorded. n And the actual distance L n The corresponding actual angle A n .
[0013] Optionally, the judgment module includes: a determination submodule, used to determine the region of interest and key frame data according to the point cloud data; and a second confirmation submodule, used to confirm whether there is a target in the preset area according to the region of interest and the key frame data.
[0014] The present invention further provides an electronic device, characterized in that the electronic device comprises:
[0015] A memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the monitoring method.
[0016] The present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the monitoring method.
[0017] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: the present invention proposes a monitoring method, which divides a preset area into multiple sub-areas, and determines whether there are people in the preset area based on point cloud data, and confirms the sub-area where people are active by obtaining information detected by the azimuth existence sensor of each sub-area, and controls the working mode of the smart light according to the function corresponding to the sub-area, which not only achieves energy saving and environmental protection, but also realizes multiple mode control of the smart light. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flow chart of an embodiment of a monitoring method according to the present application;
[0020] Figure 2 yes Figure 1 A flowchart of a specific implementation of step S400;
[0021] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S420;
[0022] Figure 4 is a module diagram of an embodiment of a monitoring device according to the present application;
[0023] Figure 5 yes Figure 4 A module diagram of a specific implementation of the confirmation module;
[0024] Figure 6 yes Figure 5 A module diagram of a specific implementation of the screening submodule;
[0025] Figure 7 It is a schematic diagram of the structure of an electronic device of a preferred embodiment of the monitoring method of the present invention. DETAILED DESCRIPTION
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0029] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the monitoring method of the present invention, comprising:
[0030] S100, dividing the preset area into a plurality of sub-areas, each sub-area being provided with an azimuth presence sensor;
[0031] In the embodiment of the present invention, the monitoring system is provided with an image acquisition device of a preset area. After acquiring the image of the preset area, the area to be monitored is first divided into multiple sub-areas according to functions, such as a bedroom bed, a desk, a bedside table and a wardrobe, etc. Therefore, the position of the bed is divided into a rest area, the position of the desk is divided into a study area, and the bedside table and the wardrobe are divided into temporary areas. An azimuth presence sensor is arranged above each area, and the azimuth presence sensor can be a millimeter wave sensor;
[0032] S200, real-time acquisition of point cloud data of a preset area;
[0033] In an embodiment of the present invention, point cloud data of an area to be monitored is acquired by a digital camera.
[0034] S300, judging whether there is a target in the preset area according to the point cloud data, the target including an adult or a child;
[0035] In an embodiment of the present invention, a region of interest is determined based on point cloud data, and the region of interest can be determined to be a person or an animal. Then, based on the key frame data in the power supply data, it can be determined that the target is a person. Specifically, humans and animals have different characteristics, which can be confirmed by extracting the key frame data in the cloud point data.
[0036] S400, when it is determined that there is a target in the preset area, confirming the sub-area where the target is located according to information detected by the azimuth presence sensor of each sub-area;
[0037] In an embodiment of the present invention, the detection information of the azimuth presence sensor is stored in a memory. When a target appears in a preset area, the corresponding detection information of each azimuth presence sensor in the memory is read, and the sub-area where the target is located can be confirmed based on the detection information.
[0038] S500, controlling the working mode of the smart light according to the sub-area where the target is located, the working mode of the smart light includes a first mode: turning on the first preset time, power saving mode, for example, when the target is detected to be located at the bedside table and the wardrobe, this is usually to temporarily take clothes or things, therefore, at this time, the smart light can be turned on and in energy saving mode, and the turning on time is the first preset time, the first preset time can be determined according to the user's usual activity time in front of the wardrobe or a time set in advance manually, but is not limited thereto;
[0039] Second mode: turn on the second preset time, eye protection mode. For example, when the target is detected to be in front of the desk, it is usually to study in front of the desk. Therefore, the smart light can be turned on and the eye protection mode can be turned on. The second preset time can be based on the usual study time or a time set in advance by humans, but is not limited thereto.
[0040] The third mode: turn on the third preset time, the rest mode. For example, when the target is detected to be in bed, it usually needs to rest. At this time, the smart light can be turned on and set to the rest mode. In this mode, the smart light can be turned on in a soft state or in an off state. When in the soft state, the preset time for turning on can be set manually, but is not limited to this.
[0041] The method of the present invention divides a preset area into multiple sub-areas, and determines whether there are people in the preset area based on point cloud data, confirms the sub-area where people are active by obtaining information detected by the azimuth presence sensor in each sub-area, and controls the working mode of the smart light according to the function corresponding to the sub-area. This not only achieves energy saving and environmental protection, but also realizes multiple mode control of the smart light.
[0042] Figure 2 Flow chart of a specific implementation of step S400. In this embodiment, step S400 specifically includes the following steps:
[0043] S410, obtaining the actual distance L between the sub-area position sensor and the target in real time n and the actual angle A with the target n , where n>0;
[0044] S420, screening actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screeningn ;
[0045] S430, based on the actual distance L after screening n And the angle A after screening n Calculate the target actual average distance value V1 and the target actual average angle value V2;
[0046] S440, determining the sub-region where the target is located according to the target actual average distance value V1 and the target actual average angle value V2 and the preset distance value and preset range value of each sub-region.
[0047] In the implementation manner of the present invention, the sub-area in which the target is located can be determined by the detection distance and angle of the azimuth presence sensor. The detection by the azimuth presence sensor is not only efficient but also accurate.
[0048] Figure 3 4 is a flowchart of a specific implementation of step S420. In this embodiment, step S420 specifically includes the following steps:
[0049] S421, determine the actual distance L n Is it less than or equal to the preset maximum distance? n If the actual distance L is less than or equal to the preset maximum distance, the process proceeds to step S422. n If it is greater than the preset maximum distance, the process proceeds to step S421;
[0050] In an embodiment of the present invention, the preset maximum distance may be a setting of the farthest distance detected by the corresponding orientation presence sensor. By setting the maximum distance, some detection error data and unreasonable data are filtered out.
[0051] S422, determine the actual distance L n Is it greater than the preset minimum distance? n If the distance is greater than the preset minimum distance, the process proceeds to step S423; otherwise, the process proceeds to step S421;
[0052] S423, determine the actual distance L n The corresponding actual angle S n Is it less than or equal to the preset maximum angle? n If it is less than or equal to the preset maximum angle, the process proceeds to step S424, otherwise the process proceeds to step S421;
[0053] S424, determine the actual distance L n The corresponding actual angle S n Is it greater than the preset minimum angle? nIf it is greater than the preset minimum angle, then go to step S425, otherwise go to step S421;
[0054] S425, record the actual distance L after screening n And the actual distance L n The corresponding actual angle A n .
[0055] For the above Figure 1 The present application provides a schematic diagram of a monitoring method according to an embodiment of the present invention. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0056] like Figure 4 As shown, the monitoring device 600 described in this embodiment includes:
[0057] A division module 610 is used to divide the preset area into a plurality of sub-areas, each sub-area is provided with an azimuth presence sensor;
[0058] An acquisition module 620 is used to acquire point cloud data of a preset area in real time;
[0059] A determination module 630 is used to determine whether there is a target in the preset area according to the point cloud data, and the target includes an adult or a child;
[0060] In an embodiment of the present invention, the judgment module includes a determination submodule and a second confirmation submodule, the determination submodule is used to determine the area of interest and key frame data based on the point cloud data; the second confirmation submodule is used to confirm whether there is a target in the preset area based on the area of interest and key frame data.
[0061] A confirmation module 640, for, when it is determined that there is a target in a preset area, confirming the sub-area where the target is located according to the information detected by the position sensor of each sub-area;
[0062] The control module 650 is used to control the working mode of the smart light according to the sub-area where the target is located. The working modes of the smart light include a first mode: turning on the first preset time, power saving mode; a second mode: turning on the second preset time, eye protection mode; and a third mode: turning on the third preset time, rest mode.
[0063] In the embodiment of the present invention, please refer to Figure 5 , is a structural diagram of a specific implementation of the confirmation module 640, the confirmation module 640 includes:
[0064] The acquisition submodule 641 is used to obtain the actual distance L between the sub-area position sensor and the target in real time. n and the actual angle A with the targetn , where n>0;
[0065] The screening submodule 642 is used to screen the actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screening n ;
[0066] The calculation submodule 643 is used to calculate the actual distance L after filtering. n And the angle A after screening n Calculate the target actual average distance value V1 and the target actual average angle value V2;
[0067] The first confirmation submodule 644 is used to determine the sub-region where the target is located according to the target actual average distance value V1 and the target actual average angle value V2 and the preset distance value and preset range value of each sub-region.
[0068] In the embodiment of the present invention, please refer to Figure 6 , is a structural diagram of a specific implementation of the screening submodule 642, wherein the screening submodule 642 includes:
[0069] The first judgment unit 6421 is used to judge the actual distance L n Is it less than or equal to the preset maximum distance?
[0070] The second judgment unit 6422 is used to determine the actual distance L n When the distance is less than or equal to the preset maximum distance, the actual distance L is determined. n Is it greater than the preset minimum distance?
[0071] The third judgment unit 6423 is used to determine the actual distance L n When it is greater than the preset minimum distance, the actual distance L is determined n The corresponding actual angle S n Is it less than or equal to the preset maximum angle?
[0072] The fourth judgment unit 6424 is used to determine the actual angle S n When the angle is less than or equal to the preset maximum angle, the actual distance L is determined. n The corresponding actual angle S n Is it greater than the preset minimum angle?
[0073] Recording unit 6425, used when the actual angle S n When the angle is greater than the preset minimum angle, the actual distance L after screening is recorded. n And the actual distance L n The corresponding actual angle A n .
[0074] Figure 7 The electronic device 1 is a schematic diagram of the structure of the electronic device of the preferred embodiment of the data determination method of the present invention. The electronic device 1 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0075] The electronic device 1 may also be, but is not limited to, any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad or voice control device, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPPV), an intelligent wearable device, a robot, etc.
[0076] The electronic device 1 may also be a computing device such as a desktop computer, a notebook, a palm computer, or a cloud server.
[0077] The network where the electronic device 1 is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0078] In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and a computer program stored in the memory 12 and executable on the processor 13, such as a data determination program.
[0079] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the electronic device 1 may also include input and output devices, network access devices, buses, etc.
[0080] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 13 is the computing core and control center of the electronic device 1, and uses various interfaces and lines to connect various parts of the entire electronic device 1, and executes the operating system of the electronic device 1 and various installed applications, program codes, etc.
[0081] The processor 13 executes the operating system of the electronic device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned various data determination method embodiments, for example Figure 1 Steps S100, S200, S300, S400, S500 are shown.
[0082] Alternatively, the processor 13 implements the functions of each module / unit in the above-mentioned device embodiments when executing the computer program, for example: dividing the preset area into multiple sub-areas, each sub-area is provided with an azimuth presence sensor; acquiring point cloud data of the preset area in real time; judging whether there is a target in the preset area according to the point cloud data, the target includes an adult or a child; when it is judged that there is a target in the preset area, confirming the sub-area where the target is located according to the information detected by the azimuth presence sensor of each sub-area; and controlling the working mode of the smart light according to the sub-area where the target is located, the working mode of the smart light includes a first mode: turning on the first preset time, power saving mode; a second mode: turning on the second preset time, eye protection mode; a third mode: turning on the third preset time, rest mode.
[0083] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a division module 610, an acquisition module 620, a judgment module 630, a confirmation module 640, and a control module 650.
[0084] The memory 12 can be used to store the computer program and / or module, and the processor 13 realizes various functions of the electronic device 1 by running or executing the computer program and / or module stored in the memory 12, and calling the data stored in the memory 12. The memory 12 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 12 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmarP Media Card, SMC), a secure digital (Secure DigiPal, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0085] The memory 12 may be an external memory and / or an internal memory of the electronic device 1. Further, the memory 12 may be a circuit with a storage function in an integrated circuit without a physical form, such as a RAM (Random-Access Memory), a FIFO (FirsP In FirsP Out of Hundreds ...
[0086] If the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0087] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media do not include electric carrier signals and telecommunication signals.
[0088] Combination Figure 1 The memory 12 in the electronic device 1 stores a plurality of instructions to implement a data determination method, and the processor 13 can execute the plurality of instructions to implement: dividing the preset area into a plurality of sub-areas, each sub-area is provided with an azimuth presence sensor; acquiring point cloud data of the preset area in real time; judging whether there is a target in the preset area according to the point cloud data, the target includes an adult or a child; when it is judged that there is a target in the preset area, confirming the sub-area where the target is located according to the information detected by the azimuth presence sensor of each sub-area; and controlling the working mode of the smart light according to the sub-area where the target is located, the working mode of the smart light includes a first mode: turning on the first preset time, power saving mode; a second mode: turning on the second preset time, eye protection mode; a third mode: turning on the third preset time, rest mode.
[0089] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0090] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods when implementing.
[0091] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0092] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0093] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A monitoring method, characterized in that: The monitoring method comprises the following steps: Divide the preset area into a plurality of sub-areas, each sub-area is provided with an azimuth presence sensor; Get point cloud data of preset areas in real time; Determine whether there is a target in the preset area based on the point cloud data, and the target includes an adult or a child; When it is determined that there is a target in the preset area, the sub-area where the target is located is confirmed based on the information detected by the position sensor of each sub-area; and Controlling the working mode of the smart light according to the sub-area where the target is located, the working mode of the smart light comprising a first mode: turning on for a first preset time, a power saving mode; Second mode: start the second preset time, eye protection mode; The third mode: start the third preset time, the rest mode, when it is determined that there is a target in the preset area, confirming the sub-area where the target is located according to the information detected by the position sensor of each sub-area specifically includes the following steps: Real-time acquisition of the actual distance L between the sub-area position sensor and the target n and the actual angle A with the target n , where n>0; Filter actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screening n ; According to the actual distance L after screening n And the angle A after screening n Calculate the target actual average distance value V1 and the target actual average angle value V2; Determine the sub-area where the target is located according to the target actual average distance value V1 and the target actual average angle value V2 and the preset distance value and preset range value of each sub-area; The actual screening distance L n and the actual angle S n , and record the actual distance L after screening n And the angle A after screening n The specific steps include: Determine the actual distance L n Is it less than or equal to the preset maximum distance? When the actual distance L n When the distance is less than or equal to the preset maximum distance, the actual distance L is determined. n Is it greater than the preset minimum distance? When the actual distance L n When it is greater than the preset minimum distance, the actual distance L is determined n The corresponding actual angle S n Is it less than or equal to the preset maximum angle? When the actual angle S n When the angle is less than or equal to the preset maximum angle, the actual distance L is determined. n The corresponding actual angle S n Is it greater than the preset minimum angle? When the actual angle S n When the angle is greater than the preset minimum angle, the actual distance L after screening is recorded. n And the actual distance L n The corresponding actual angle A n .
2. The monitoring method according to claim 1, characterized in that: The method of determining whether there is a target in the preset area according to the point cloud data, wherein the target includes an adult or a child, specifically comprises the following steps: Determine the region of interest and key frame data based on the point cloud data; Confirm whether there is a target in the preset area based on the area of interest and key frame data.
3. A monitoring device, characterized in that: The monitoring device comprises: A division module, used to divide a preset area into a plurality of sub-areas, each sub-area being provided with an azimuth presence sensor; An acquisition module is used to acquire point cloud data of a preset area in real time; A judgment module, used to judge whether there is a target in a preset area according to the point cloud data, and the target includes an adult or a child; A confirmation module, for, when it is determined that there is a target in a preset area, confirming the sub-area where the target is located according to information detected by the position sensor of each sub-area; and A control module, used to control the working mode of the smart light according to the sub-area where the target is located, wherein the working mode of the smart light includes a first mode: turning on for a first preset time, a power saving mode; Second mode: start the second preset time, eye protection mode; The third mode: start the third preset time, rest mode; the confirmation module includes: The acquisition submodule is used to obtain the actual distance L between the sub-area position sensor and the target in real time n and the actual angle A with the target n , where n>0; The screening submodule is used to screen the actual distance L n and the actual angle A n , and record the actual distance L after screening n And the angle A after screening n ; The calculation submodule is used to calculate the actual distance L after screening n And the angle A after screening n Calculate the target actual average distance value V1 and the target actual average angle value V2; A first confirmation submodule is used to determine the sub-area where the target is located according to the target actual average distance value V1 and the target actual average angle value V2 and the preset distance value and preset range value of each sub-area; The screening submodule includes: a first judgment unit, which is used to judge the actual distance L n Is it less than or equal to the preset maximum distance? The second judgment unit is used to determine the actual distance L n When the distance is less than or equal to the preset maximum distance, the actual distance L is determined. n Is it greater than the preset minimum distance? The third judgment unit is used to determine the actual distance L n When it is greater than the preset minimum distance, the actual distance L is determined n The corresponding actual angle S n Is it less than or equal to the preset maximum angle? The fourth judgment unit is used to determine the actual angle S n When the angle is less than or equal to the preset maximum angle, the actual distance L is determined. n The corresponding actual angle S n Is it greater than the preset minimum angle? Recording unit, used when the actual angle S n When the angle is greater than the preset minimum angle, the actual distance L after screening is recorded. n And the actual distance L n The corresponding actual angle A n .
4. The monitoring device according to claim 3, characterized in that: The judging module comprises: A determination submodule is used to determine the region of interest and key frame data based on the point cloud data; The second confirmation submodule is used to confirm whether there is a target in the preset area according to the area of interest and the key frame data.
5. An electronic device, characterized in that: The electronic device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the monitoring method as described in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the monitoring method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Control devices and methods for smart lights in bedroom settings
CN105764219B
Intelligent lighting method and device, intelligent control device and storage medium
CN113329545A