Lighting equipment control method, unmanned aerial vehicle equipment and storage medium

The drone equipment obtains the lighting conditions in the area to be detected and plans the flight path, which solves the problem of electricity bill loss caused by factory employees forgetting to turn off the lighting equipment, and achieves the effect of shutting down the equipment in a timely manner and reducing electricity bill loss.

CN120066080APending Publication Date: 2025-05-30GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510216681.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In manufacturing, factory employees often forget to turn off lighting equipment, resulting in lost electricity bills and increased company costs.

Method used

UAV equipment is used to control lighting equipment. By obtaining the lighting conditions of the area to be detected, determining the area that needs to be closed, planning the flight path, and closing the lighting equipment according to the path.

Benefits of technology

The lighting equipment is shut down in time, reducing electricity bills and losses, and reducing company costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066080A_ABST
    Figure CN120066080A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of energy saving, and discloses a lighting equipment control method, unmanned aerial vehicle equipment and a storage medium, the method is applied to the unmanned aerial vehicle equipment, and the method comprises the following steps: obtaining the lighting condition of each to-be-detected area, according to the lighting condition of each to-be-detected area, determining a to-be-turned-off area in which the lighting equipment needs to be turned off in the to-be-detected area; path planning is carried out according to the area position of each to-be-closed area, and a flight path is obtained; and moving to the current to-be-turned-off area according to the flight path, and turning off the lighting equipment in the current to-be-turned-off area. Therefore, lighting equipment can be turned off in time, and electric charge loss is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy-saving technology, and in particular to a lighting equipment control method, a drone equipment and a storage medium. Background Art

[0002] In the manufacturing industry, factories play an important role in production. A large number of employees need to use a large number of lighting equipment. Many employees may forget to turn off the lighting equipment, resulting in electricity loss and increased costs for the company (for example, a large number of personnel need to be equipped with a large number of dormitories, and there will be balcony lights on the balcony of the dormitory. Employees may forget to turn off the balcony lights when they go to bed at night). Therefore, how to turn off the lighting equipment in time is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of this application is to provide a lighting equipment control method, drone equipment and storage medium, aiming to solve the technical problem of how to shut down the lighting equipment in a timely manner in the prior art.

[0004] To achieve the above object, the present application provides a lighting device control method, which is applied to a drone device and includes the following steps:

[0005] Obtaining the lighting conditions of each area to be detected, and determining the area to be closed in the area to be detected where the lighting equipment needs to be closed according to the lighting conditions of each area to be detected;

[0006] Performing path planning according to the regional location of each of the areas to be closed to obtain a flight path;

[0007] Move to the current area to be closed according to the flight path, and turn off the lighting equipment in the current area to be closed.

[0008] In one embodiment, the step of performing path planning according to the area position of each area to be closed to obtain a flight path includes:

[0009] Determine the current area to be planned and the remaining areas to be planned based on each of the areas to be closed;

[0010] Determine the interval distance between the remaining area to be planned and the current area to be planned according to the area position of each area to be closed;

[0011] Sorting the remaining areas to be planned according to the interval distance, and selecting the next area to be planned from the remaining areas to be planned based on the distance sorting result;

[0012] Path planning is performed according to the area position of the current area to be planned and the area position of the next area to be planned to obtain a flight path.

[0013] In one embodiment, the step of determining the current area to be planned and the remaining areas to be planned based on each area to be closed includes:

[0014] Perform area division on each area to be closed to obtain divided areas;

[0015] Determine the distribution density of the areas to be closed within each divided area, and perform degree sorting on each divided area based on each distribution density;

[0016] Select a target divided area from each divided area according to the degree sorting result, and determine the starting area to be planned from the target divided area;

[0017] Use the starting area to be planned as the current area to be planned, and determine the remaining areas to be planned according to the current area to be planned.

[0018] In one embodiment, the step of selecting the next area to be planned from the remaining areas to be planned based on the distance sorting result includes:

[0019] Select the nearest area to be planned from the remaining areas to be planned based on the distance sorting result;

[0020] When the number of the nearest areas to be planned is one, use the nearest area to be planned as the next area to be planned;

[0021] When the number of the nearest areas to be planned is at least two, select the next area to be planned from the nearest areas to be planned according to the reference direction.

[0022] In one embodiment, a detection device is provided in the area to be detected, and the detection device is connected to the UAV device;

[0023] After the step of turning off the lighting device for the current area to be closed, the following is further included:

[0024] When turning off the lighting device for the current area to be closed, determine whether an entry instruction sent by the detection device is received, where the entry instruction is an instruction generated when a person enters the corresponding area to be detected;

[0025] If so, use the area to be detected corresponding to the entry instruction as the area with personnel, and when the current area to be closed is the area with personnel, re-obtain the lighting condition of the current area to be closed, and turn off the lighting device according to the lighting condition of the current area to be closed.

[0026] In one embodiment, when the current area to be closed is the area with people present, the step of re-obtaining the lighting condition of the current area to be closed includes:

[0027] Determine whether the area with people present is on the path of the remaining flight path;

[0028] If so, adjust the remaining flight path according to the position of the area with people present, and when the current area to be closed is the area with people present, re-obtain the lighting condition of the current area to be closed;

[0029] If not, turn off the lighting equipment according to the remaining flight path, and when the remaining flight path is completed, use the area with people present as the current area to be closed, and re-obtain the lighting condition of the current area to be closed.

[0030] In one embodiment, the step of re-obtaining the lighting condition of the current area to be closed when the current area to be closed is the area with people present includes:

[0031] When the current area to be closed is the area with people present, determine whether a leave instruction sent by the detection device is received, where the leave instruction is an instruction generated when the person leaves the corresponding area to be detected;

[0032] If so, re-obtain the lighting condition of the current area to be closed.

[0033] In one embodiment, after the step of determining whether a leave instruction sent by the detection device is received, it further includes:

[0034] If not, turn off the lighting equipment according to the remaining flight path, and when the remaining flight path is completed, use the area with people present as the current area to be closed, and when the leave instruction sent by the detection device is received, re-obtain the lighting condition of the current area to be closed.

[0035] In addition, to achieve the above object, the present application also proposes a drone device, where the drone device includes: a memory, a processor, and a lighting equipment control program stored on the memory and executable on the processor. When the lighting equipment control program is executed by the processor, it implements the steps of the lighting equipment control method as described above.

[0036] In addition, to achieve the above object, the present application also proposes a storage medium, where a lighting equipment control program is stored on the storage medium. When the lighting equipment control program is executed by a processor, it implements the steps of the lighting equipment control method as described above.

[0037] The present application provides a lighting device control method, a drone device, and a storage medium. The method is applied to the drone device, and the method includes the following steps: obtaining the lighting conditions of each area to be detected, and determining the areas to be closed where the lighting devices need to be turned off in the areas to be detected according to the lighting conditions of each area to be detected; performing path planning according to the regional positions of each area to be closed to obtain a flight path; moving to the current area to be closed according to the flight path, and turning off the lighting devices in the current area to be closed.

[0038] Since the present application can first obtain the lighting conditions of each area to be detected, determine the areas to be closed where the lighting devices are not turned off according to the lighting conditions, then perform path planning for the light-off operation according to the regional positions of each area to be closed to obtain a flight path, and finally move to the corresponding current area to be closed according to the flight path to perform the lighting device turning-off operation. Therefore, the lighting devices can be turned off in time, reducing the electricity cost loss. Description of the Drawings

[0039] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without creative efforts.

[0041] Figure 1 It is a block diagram of the drone device for the hardware operating environment related to the solution of the embodiment of the present application;

[0042] Figure 2 It is a schematic flowchart of the first embodiment of the lighting device control method of the present application;

[0043] Figure 3 It is a schematic diagram of flight path planning in the first embodiment of the lighting device control method of the present application;

[0044] Figure 4 It is a schematic flowchart of the second embodiment of the lighting device control method of the present application;

[0045] Figure 5 It is a schematic flowchart of the third embodiment of the lighting device control method of the present application;

[0046] Figure 6 It is a schematic diagram of the structure of the detection device and the drone device in the lighting device control method of the present application;

[0047] Figure 7This is a schematic diagram of flight path planning in the third embodiment of the lighting device control method of the present application.

[0048] The realization, functional features, and advantages of the purpose of the present application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners

[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] Refer to Figure 1 , Figure 1 This is a block diagram of a drone device for the hardware operating environment involved in the embodiment solution of the present application.

[0051] As Figure 1 shown, the drone device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include an interface for connecting a display screen (Display), and optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. For the wired interface of the user interface 1003, it may be a USB interface or the like in the present application. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable memory (Non-volatile Memory, NVM), such as a disk memory or a flash memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0052] Those skilled in the art can understand that Figure 1 the structure shown in

[0053] It should also be emphasized that, as Figure 1 shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a lighting device control program.

[0054] In Figure 1In the drone device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the drone device calls the lighting device control program stored in the memory 1005 through the processor 1001, and executes the steps of the lighting device control method provided in the embodiment of the present application.

[0055] It should be noted that in the manufacturing industry, factories play an important role in production. A large number of employees need to use a large number of lighting equipment. Many employees may forget to turn off the lighting equipment, resulting in electricity loss and increased costs for the company (for example, a large number of personnel need to be equipped with a large number of dormitories, and there will be balcony lights on the balcony of the dormitory. Employees may forget to turn off the balcony lights when they go to bed at night). Therefore, how to turn off the lighting equipment in time is a technical problem that needs to be solved urgently.

[0056] Therefore, in order to solve the above defects, this embodiment provides a lighting equipment control method, which can first obtain the lighting conditions of each area to be detected, and determine the area to be turned off where the lighting equipment is not turned off according to the lighting conditions, then plan the path of the light-off operation according to the area position of each area to be turned off, obtain the flight path, and finally move to the corresponding current area to be turned off according to the flight path to turn off the lighting equipment. In this way, the lighting equipment can be turned off in time to reduce electricity consumption.

[0057] For ease of understanding, the following combination Figures 2 to 7 The lighting equipment control method provided in the embodiment of the present application is introduced in detail.

[0058] The present application provides a lighting device control method, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the lighting device control method of the present application.

[0059] In this embodiment, the lighting device control method includes the following steps:

[0060] Step S10: obtaining the lighting conditions of each area to be detected, and determining the area to be closed in the area to be detected where the lighting equipment needs to be closed according to the lighting conditions of each area to be detected.

[0061] It should be understood that the method of this embodiment can be applied to any scenario that requires lighting device control, wherein the lighting device can be any device for providing lighting, such as a lighting lamp, etc. This embodiment does not limit this.

[0062] It should also be understood that the execution subject of the method in this embodiment can be a device with data processing, program running, and lighting device control functions, such as the above-mentioned drone device, etc. This embodiment does not limit this. For the convenience of subsequent description, this embodiment uses the drone device to illustrate this embodiment and the following embodiments. Therefore, the above method in this embodiment can be specifically applied to the processor 1001 in the drone device. However, for the convenience of understanding, this embodiment still uses the drone device for description.

[0063] It should be emphasized that since the drone device needs to press the switch to achieve the light-off operation in this embodiment, a telescopic structure can be provided on the drone device in this embodiment, that is, the drone device further includes a telescopic structure. This telescopic structure can be a structure for pressing the switch through telescoping, such as a telescopic rod, etc. This embodiment does not limit this. And in this embodiment, the above telescopic structure can be set at any position on the drone device that is convenient for pressing the switch. This embodiment also does not limit this. The selected telescopic structure in this embodiment can also be connected to the above-mentioned processor 1001, and the telescopic structure can be controlled by the processor 1001 to telescope, so as to press the switch.

[0064] It should be noted that the above-mentioned area to be detected can be any area where the above-mentioned lighting device is installed. Since this embodiment controls the lighting device on the dormitory balcony, the above-mentioned area to be detected in this embodiment can be the dormitory balcony.

[0065] It should also be noted that the above-mentioned area to be closed can be the area to be detected where the user forgets to turn off the lighting device and the drone device needs to turn off the lighting device. That is, in this embodiment, it can be the dormitory balcony where the lighting device needs to be turned off.

[0066] In actual use, the drone device can first obtain the lighting conditions of all areas to be detected. That is, the drone device can be provided with a photographing module, and the photographing module is connected to the processor 1001. The photographing module takes pictures of all areas to be detected (that is, the balconies of the entire dormitory building), and then the captured image can be subjected to grayscale processing and feature extraction to determine the brightness value of each pixel in the captured image. By setting a preset brightness threshold, if the number of pixels with a brightness value higher than the preset brightness threshold is higher than the preset pixel number threshold, it can be determined that the lighting device at this position is not turned off. Therefore, this area to be detected can be used as the above-mentioned area to be closed.

[0067] Both the above-mentioned preset brightness threshold and the preset pixel number threshold can be set according to the actual situation by oneself. This embodiment does not limit this.

[0068] Step S20: Perform path planning according to the regional positions of the areas to be closed to obtain a flight path.

[0069] It is understandable that the above regional location can be the location where the area to be closed is located. Since the dormitory building in this embodiment has multiple floors, the above regional location can be the location of each dormitory balcony in the dormitory building, that is, which floor and which household. The above flight path can be the path that the UAV device flies when turning off the lighting devices in each area to be closed, that is, the flight path for turning off the balcony lights of each dormitory balcony.

[0070] Refer to Figure 3 , Figure 3 which is a schematic diagram of flight path planning in the first embodiment of the lighting device control method of the present application. As Figure 3 shown, in actual use, when the UAV device determines all the areas to be closed (that is, Figure 3 the dormitory balconies with lights turned off in the figure), it can perform path planning according to the regional locations of each area to be closed to obtain the flight path of the UAV device (that is, the flight path in Figure 3 the figure). This path planning can be carried out in the way of the shortest path. Of course, it can also be carried out in other ways. This embodiment does not limit this. And Figure 3 the dormitory balconies with lights turned off in the figure can be the areas to be detected where the user has timely turned off the lights.

[0071] Step S30: Move to the current area to be closed along the flight path, and turn off the lighting device in the current area to be closed.

[0072] It should be understood that the above current area to be closed can be the area to be closed where the UAV device is performing the operation of turning off the lighting device. In actual use, when the UAV device obtains the flight path, it can start the operation of turning off the lighting device. The UAV device can fly along the flight path to the first area to be closed (that is, the dormitory balcony to be closed), take this area to be closed as the above current area to be closed. After identifying the location of the switch of the lighting device through the photographing module, then control the telescopic structure to press the switch to complete the operation of turning off the lighting device. Then fly along the flight path to the next area to be closed (that is, the next dormitory balcony to be closed), take this area to be closed as the above current area to be closed, and perform the operation of turning off the lighting device according to the same above steps until the operation of turning off the lighting device is performed on all areas to be closed (that is, on all dormitory balconies to be closed), and then it can return to the starting point.

[0073] It should be emphasized that after the drone device completes the operation of turning off the lighting device, it is possible that employees enter the dormitory balcony and turn on the lights and then forget to turn them off. Therefore, in this embodiment, the above drone device can perform inspections at certain preset time nodes. Exemplarily, for example, at 1:00 am, after taking pictures of each area to be detected, perform the operation of turning off the lighting device, and at 3:00 am, take pictures of each area to be detected again and then perform the operation of turning off the lighting device. Specifically, the preset time nodes can be set according to the actual situation, and this embodiment does not limit this.

[0074] In this embodiment, the drone device can first obtain the lighting conditions of each area to be detected, and determine the areas to be closed where the lighting devices are not turned off according to the lighting conditions. Then, based on the regional positions of each area to be closed, plan the path for the operation of turning off the lights to obtain a flight path. Finally, move to the corresponding current area to be closed according to this flight path to perform the operation of turning off the lighting device. Thus, the lighting device can be turned off in time to reduce the power consumption.

[0075] Reference Figure 4 , Figure 4 is a schematic flowchart of the second embodiment of the lighting device control method of the present application. Based on the above first embodiment, the second embodiment of the lighting device control method of the present application is proposed.

[0076] In order to obtain a relatively short flight path, thereby further reducing the power consumption, as Figure 4 shown, in this embodiment, the step of planning the path based on the regional positions of each area to be closed to obtain a flight path includes:

[0077] Step S21: Determine the current area to be planned and the remaining areas to be planned based on each area to be closed.

[0078] It should be noted that the above areas to be planned can be the areas where the flight path needs to be planned, that is, the above areas to be closed, or can also be understood as the dormitory balconies with the balcony lights not turned off. The above current area to be planned can be the area to be closed where the path is currently being planned, or can also be understood as the dormitory balcony with the balcony light not turned off where the current planning is being carried out. The above remaining areas to be planned can be the remaining areas to be closed in the areas to be closed after the path planning has been completed, or can also be understood as the dormitory balconies with the balcony lights not turned off among the dormitory balconies with the balcony lights not turned off except for the dormitory balconies where the planning has been completed.

[0079] Step S22: Determine the distance interval between the remaining areas to be planned and the current area to be planned according to the regional positions of each area to be closed;

[0080] Step S23: Sort the remaining areas to be planned according to the interval distance, and select the next area to be planned from the remaining areas to be planned based on the distance sorting result.

[0081] It can be understood that the above interval distance can be the distance between the currently planned area and the remaining areas to be planned, that is, the distance between the currently planned dormitory balcony and the remaining dormitory balconies. The above next area to be planned can be the area to be closed of the unclosed lighting equipment that needs to be planned next, that is, the dormitory balcony with the unclosed balcony light that needs to be planned next.

[0082] Step S24: Perform path planning based on the area location of the currently planned area and the area location of the next area to be planned to obtain a flight path.

[0083] In actual use, the drone device in this embodiment can perform path planning in the manner of the shortest interval distance. That is, it can first determine the currently planned area and the remaining areas to be planned, and determine the interval distance between each remaining area to be planned and the currently planned area according to the area location of each area to be closed, that is, determine the distance between the remaining dormitory balconies to be planned and the currently planned dormitory balcony. Then sort the interval distances, and select the area to be planned with the shortest interval distance from the remaining areas to be planned as the next area to be planned. Finally, perform path planning on the area location of the currently planned area and the area location of the next area to be planned. After all the areas to be planned are planned, a flight path can be obtained.

[0084] Furthermore, considering that when there are at least two areas to be planned with the shortest interval distance from the currently planned area in the remaining areas to be planned, in order to reduce energy consumption, in this embodiment, the step of selecting the next area to be planned from the remaining areas to be planned based on the distance sorting result includes:

[0085] Step S231: Select the nearest area to be planned from the remaining areas to be planned based on the distance sorting result;

[0086] Step S232: When the number of the nearest areas to be planned is one, use the nearest area to be planned as the next area to be planned;

[0087] Step S233: When the number of the nearest areas to be planned is at least two, select the next area to be planned from the nearest areas to be planned according to the reference direction.

[0088] It should be understood that the above nearest area to be planned can be the area to be closed with the shortest interval distance from the currently planned area. It can also be understood as the dormitory balcony to be closed with the shortest distance from the currently planned dormitory balcony.

[0089] It should also be understood that the above reference direction can be the flight direction of the UAV device during path planning. Since this embodiment is applied to the dormitory balcony, and generally dormitories are distributed in a grid pattern. For example Figure 3 As shown, that is, each dormitory is distributed in a grid form. Therefore, during path planning, it can generally be planned according to the above reference direction, and the reference direction can be any one of from bottom to top, from top to bottom, from left to right, or from right to left. And the reference direction can be determined according to the first area to be planned and the second area to be planned.

[0090] Exemplarily, continuing as Figure 3 shown, if there are six areas to be planned, that is, there are six dormitory balconies with the lights not turned off, which are respectively denoted as dormitory balcony ① to dormitory balcony ⑥. If the first area to be planned is the leftmost dormitory balcony on the second floor (i.e., Figure 3 dormitory balcony ① in the figure), and the second area to be planned is the second dormitory balcony from left to right on the third floor (i.e., Figure 3 dormitory balcony ② in the figure), then after path planning, it can be determined that the reference direction can be from bottom to top, that is, from the row of dormitories on the lower layer to the row of dormitories on the top layer in sequence, or it can be from left to right, that is, from the leftmost column of dormitories to the rightmost column of dormitories in sequence. And since the fourth dormitory balcony from left to right on the third floor (i.e., Figure 3 dormitory balcony ③ in the figure) and the second dormitory balcony from left to right on the fifth floor (i.e., Figure 3 dormitory balcony ⑥ in the figure) have the same distance from dormitory balcony ②. If the reference direction is from bottom to top at this time, the dormitory balcony ③ on the same layer can be used as the next area to be planned. If the reference direction is from left to right, the dormitory balcony ⑥ in the same column can be used as the next area to be planned. In this embodiment Figure 3 the reference direction from bottom to top is used for illustration, that is, the sequence of the flight path is dormitory balcony ① → dormitory balcony ② → dormitory balcony ③ → dormitory balcony ④ → dormitory balcony ⑤ → dormitory balcony ⑥.

[0091] During actual use, when the UAV device performs distance sorting, the area to be planned with the shortest distance can be first selected as the above-mentioned nearest area to be planned. When there is only one nearest area to be planned, the nearest area to be planned can be directly used as the next area to be planned; when there are at least two nearest areas to be planned, the nearest area to be planned that is more in line with the reference direction can be selected as the next area to be planned according to the pre-determined reference direction, so as to reduce energy consumption.

[0092] Furthermore, in order to further reduce energy consumption, in this embodiment, the step of determining the current area to be planned and the remaining areas to be planned based on each of the areas to be closed includes:

[0093] Step S211: Divide each of the to-be-closed areas to obtain divided areas.

[0094] It should be noted that the above-mentioned divided areas can be areas where there are adjacent to-be-closed areas, that is, areas where there are adjacent dormitory balconies to be closed.

[0095] Exemplarily, continuing as Figure 3 shown, since dormitory balcony ① is adjacent to dormitory balcony ②, dormitory balconies ③, ④, and ⑤ are adjacent, and dormitory balcony ⑥ is separate. Therefore, after determining the to-be-closed areas, the above-mentioned drone device can divide the areas according to the adjacent relationship of each to-be-closed area, and divide the adjacent to-be-closed areas into one divided area, that is, dormitory balcony ① and dormitory balcony ② are divided into one divided area, denoted as divided area 1, dormitory balconies ③, ④, and ⑤ are divided into one divided area, denoted as divided area 2, and dormitory balcony ⑥ is separately used as one divided area, denoted as divided area 3.

[0096] Step S212: Determine the distribution density of the to-be-closed areas within each of the divided areas, and sort each of the divided areas based on each of the distribution densities;

[0097] Step S213: Select a target divided area from each of the divided areas according to the sorting result of the degree, and determine a starting area to be planned from the target divided area.

[0098] It can be understood that the above-mentioned distribution density can be the density of the distribution of the to-be-closed areas within each divided area, that is, the number of dormitory balconies to be closed in each divided area. Continuing as Figure 3 shown, within divided area 1, since there are two dormitory balconies to be closed, the corresponding distribution density can be 2. Within divided area 2, since there are three dormitory balconies to be closed, the corresponding distribution density can be 3. Within divided area 3, since there is one dormitory balcony to be closed, the corresponding distribution density can be 1.

[0099] After obtaining each distribution density, sorting can be performed, and the divided area with the highest distribution density is selected from the obtained sorting result of the degree as the above-mentioned target divided area. This target divided area can be the area for selecting the first area to be planned, that is, the area for selecting the first dormitory to be planned, and the above-mentioned starting area to be planned can be the first area to be planned.

[0100] Continuing with the above example, since the distribution density of divided area 2 is the highest, divided area 2 can be used as the above-mentioned target divided area, and a starting area to be planned is selected from this target divided area.

[0101] Specifically, when selecting the starting area to be planned from the target divided area, this embodiment can be selected in the manner of the above-mentioned reference direction, and specifically, the reference direction can be determined according to the area position of the starting area to be planned. Continuing with the above example, since there are dormitory balconies ③, ④, and ⑤ in the divided area 2, when selecting the starting area to be planned, the area to be closed with a boundary can be selected as the starting area to be planned according to the area position of each area to be closed. That is, since dormitory balcony ④ is located on the far right, dormitory balcony ④ can be used as the above-mentioned starting area to be planned, that is, as the starting point of the flight path.

[0102] Step S214: Use the starting area to be planned as the current area to be planned, and determine the remaining areas to be planned according to the current area to be planned.

[0103] After determining the starting area to be planned, the starting area to be planned can be used as the current area to be planned, and the remaining areas to be closed can be used as the above-mentioned remaining areas to be planned, and path planning can be performed in the manner of the shortest spacing distance, so as to obtain the flight path.

[0104] Exemplarily, continuing based on Figure 3 As shown, if the path planning is performed in the manner of the above-mentioned distribution density, the order of the obtained flight path is successively dormitory balcony ④ → dormitory balcony ③ → dormitory balcony ⑤ → dormitory balcony ② → dormitory balcony ① → dormitory balcony ⑥. And the previously determined flight path is dormitory balcony ① → dormitory balcony ② → dormitory balcony ③ → dormitory balcony ④ → dormitory balcony ⑤ → dormitory balcony ⑥. Since in this embodiment, the drone device can preferentially close the divided areas with a higher density, that is, preferentially close dormitory balcony ④, dormitory balcony ③, and dormitory balcony ⑤, more balcony lights of dormitory balconies can be turned off faster, further reducing energy consumption.

[0105] Refer to Figure 5 , Figure 5 This is a schematic flowchart of the third embodiment of the lighting device control method of the present application. Based on the above embodiments, the third embodiment of the lighting device control method of the present application is proposed.

[0106] Considering that when the drone device is performing the light-off operation, personnel may enter other remaining dormitory balconies without turning off the lights to perform the light-off operation, thereby changing the lighting situation, and determining whether the lighting situation of the dormitory balconies where the personnel enter has changed, as Figure 5 As shown, in this embodiment, after the step of turning off the lighting device for the current area to be closed, the following steps are further included:

[0107] Step S40: When turning off the lighting device for the current area to be closed, determine whether an entry instruction sent by the detection device is received. The entry instruction is generated when a person enters the corresponding area to be detected.

[0108] It should be noted that in this embodiment, a detection device is provided in the area to be detected, and the detection device is connected to the drone device. For ease of understanding, refer to Figure 6 , Figure 6 which is a schematic structural diagram of the detection device and the drone device in the lighting device control method of the present application. As Figure 6 shown, in this embodiment, the above detection device may include: a trigger module, a processing module, and a first wireless module. The processing module is respectively connected to the trigger module and the first wireless module;

[0109] The trigger module can be a module for detecting whether a person passes by. For example, it can be in the way of stress detection or infrared detection, etc. This embodiment does not limit this, and the infrared detection method is used for illustration in this embodiment. Further, in actual use, the above trigger module may include an infrared sensor, and the infrared sensor can be set at the entrance of the area to be detected, for example, on the balcony door of the dormitory balcony to be detected. Then, when a person passes by the balcony door, the trigger module can detect that a person enters.

[0110] The above processing module can be a module with processing functions, such as a microprocessor, etc. This embodiment does not limit this. The above first wireless module can be a module with wireless data transmission functions, such as a Bluetooth module, a Wi-Fi module, etc. This embodiment does not limit this. When the trigger module detects that a person enters the dormitory balcony, the processing module can output the above entry instruction and transmit it to the drone device through the first wireless module.

[0111] Continue to refer to Figure 6 , in this embodiment, the drone device may include: a second wireless module, a processor, the above telescopic module, and the above photographing module. The processor is respectively connected to the second wireless module, the telescopic module, and the photographing module, and the first wireless module is also connected to the second wireless module.

[0112] Furthermore, during actual use, one such detection device can be arranged at the entrance of each area to be detected, and the second wireless module of the drone device can be connected to the first wireless modules of all the detection devices. When the drone device performs the operation of turning off the lighting device in the current area to be closed, it can determine whether it has received an entry instruction sent by the detection device in other areas to be detected; if it has received the instruction, it indicates that there are people entering other areas to be detected, that is, there are people entering the corresponding dormitory balcony, and the lighting situation may change; if it has not received the instruction, it indicates that there are no people entering other areas to be detected, that is, there are no people entering the corresponding dormitory balcony, and the lighting situation has not changed.

[0113] Step S50: If so, regard the area to be detected corresponding to the entry instruction as the area with people present. When the current area to be closed is the area with people present, re-obtain the lighting situation of the current area to be closed, and turn off the lighting device according to the lighting situation of the current area to be closed.

[0114] It can be understood that the above-mentioned area with people present can be the area to be detected after people enter, that is, it can be understood as the dormitory balcony after people enter.

[0115] In this embodiment, when the drone device performs the operation of turning off the lighting device in the current area to be closed, if it receives an entry instruction, it indicates that there are people entering other areas to be closed. Then, when the drone device flies into the area with people present, it can re-take pictures of the area with people present to obtain the corresponding lighting situation, and turn off the lighting device according to the lighting situation of the area with people present. That is, if the light is on, turn off the lighting device; if the light is off, it may be manually turned off by people. Then, regard the next area to be closed as the current area to be closed for the lighting device turning-off operation, that is, skip the area with people present.

[0116] Exemplarily, refer to Figure 7 , Figure 7 which is a schematic diagram of the flight path planning in the third embodiment of the lighting device control method of the present application. As Figure 7 shown, if when the drone device performs the operation of turning off the lights of dormitory balcony ②, then dormitory balcony ② is the current area to be closed. If at this time it receives an entry instruction sent by the detection device on dormitory balcony ④, it indicates that there are people entering dormitory balcony ④, and dormitory balcony ④ is the area with people present. Then, when the drone device performs the operation of turning off the lights of dormitory balcony ④, it can first take pictures of the lighting situation of dormitory balcony ④; if the light is on, it indicates that the people still have not turned off the lights, and then the telescopic structure can be used to turn off the lights of dormitory balcony ④; if the light is off, it indicates that it has been manually turned off by people, and then dormitory balcony ⑤ can be regarded as the current area to be closed for the lighting device turning-off operation, that is, directly skip dormitory balcony ④.

[0117] Further, considering that when the drone device performs the lighting device closing operation in the area where there are people, there may be a situation where the people have not left yet and the lights are still needed. Therefore, in this embodiment, the step of re-obtaining the lighting condition of the current area to be closed when the current area to be closed is the area where there are people includes:

[0118] Step S51: When the current area to be closed is the area where there are people, determine whether a departure instruction sent by the detection device is received. The departure instruction is an instruction generated when the people leave the corresponding area to be detected;

[0119] Step S52: If so, re-obtain the lighting condition of the current area to be closed.

[0120] It should be understood that the above departure instruction can be an instruction generated by the detection device when the people leave the area to be detected. That is, it can be understood as an instruction generated when the people leave the dormitory balcony, and it can still be implemented by the above trigger module. This embodiment will not elaborate on this.

[0121] Further, considering that when the departure instruction is not received, it may be because the people have not finished using the dormitory balcony yet. Therefore, in this embodiment, after the step of determining whether a departure instruction sent by the detection device is received, it further includes:

[0122] If not, then close the lighting device according to the remaining flight path. When the remaining flight path is completed, take the area where there are people as the current area to be closed, and when the departure instruction sent by the detection device is received, re-obtain the lighting condition of the current area to be closed.

[0123] In actual use, when the drone device moves to the area where there are people, the area where there are people can be taken as the current area to be closed, and it is determined whether a departure instruction sent by the detection device in this area where there are people is received at this time;

[0124] If not, it can be explained that the people are still in the area to be detected at this time, that is, the people are still on the dormitory balcony. Then, the next area to be closed can be taken as the current area to be closed for the lighting device closing operation, that is, skip the area where there are people, close the lighting device for the remaining areas to be closed according to the remaining flight path, and after completing all the remaining flight paths, return to the area where there are people, take the area where there are people as the current area to be closed, and determine whether the departure instruction has been received at this time. If so, it can be explained that the people have left, and then re-obtain the lighting condition of the current area to be closed. If not, it can be explained that the people have not left yet, and then return to the take-off point to wait for the next inspection;

[0125] If received, it can indicate that the person has left the area to be detected at this time, that is, the person has left the dormitory balcony. Then, the area where the person exists can be photographed again to obtain the corresponding lighting situation, so as to determine whether the balcony light is turned off when the person leaves, and the lighting device can be turned off according to the lighting situation of the area where the person exists, that is, turn it off when it is not turned off.

[0126] Further, considering that the area to be detected of the entering person may be an area to be closed that has been determined before, or may be a new area to be detected, that is, continue to be based on Figure 7 , the dormitory balcony of the entering person may be dormitory balcony ④ in the dormitory balconies that have been determined to have the lights on before, or may be one of the other dormitory balconies with the lights off, such as Figure 7 dormitory balcony ⑦ or dormitory balcony ⑧ in

[0127] Step S53: Determine whether the area where the person exists is on the path of the remaining flight path.

[0128] It should be noted that the above remaining flight path can be the path corresponding to the area to be closed after the current area to be closed in the flight path. As Figure 3 shown, if the current area to be closed is dormitory balcony ②, the above remaining flight path can be the path corresponding to dormitory balcony ③ → dormitory balcony ④ → dormitory balcony ⑤ → dormitory balcony ⑥ after dormitory balcony ②, that is, Figure 3 the flight path corresponding to after dormitory balcony ② in

[0129] Step S54: If so, adjust the remaining flight path according to the regional position of the area where the person exists, and when the current area to be closed is the area where the person exists, re-obtain the lighting situation of the current area to be closed;

[0130] Step S55: If not, turn off the lighting device according to the remaining flight path, and when the remaining flight path is completed, use the area where the person exists as the current area to be closed, and re-obtain the lighting situation of the current area to be closed.

[0131] In actual use, when the UAV device receives the entry instruction sent by the detection device, it can first determine whether the area where the person exists corresponding to the entry instruction is on the path of the remaining flight path;

[0132] If so, it can be explained that the area with people present is located on the flight path of the UAV device. The lighting device can be turned off together, and the remaining flight path can be adjusted according to the area position of the area with people present, that is, the area with people present is incorporated into the remaining flight path to generate a new flight path. When the area to be turned off currently is the area with people present, the lighting status of the current area to be turned off is obtained again.

[0133] If not, it can be explained that the area with people present is not located on the flight path of the UAV. Therefore, after the remaining flight path is completed first, that is, after the lighting devices of the remaining areas to be turned off are turned off according to the previous flight path, then return to the area with people present, take the area with people present as the current area to be turned off, and obtain the lighting status of the current area to be turned off again.

[0134] Exemplarily, continue based on Figure 7 , if the current area to be turned off is the dormitory balcony ②, and at this time, an entry instruction sent by the detection device of the dormitory balcony ⑦ is received, it can be determined that the dormitory balcony ⑦ is located on the path passed by the remaining flight path. Therefore, the remaining flight path can be adjusted so that after the balcony light of the dormitory balcony ② is turned off, the UAV device flies to the dormitory balcony ⑦ to perform the balcony light turning-off operation, and then flies to the dormitory balcony ③ to continue the balcony light turning-off operation.

[0135] If the current area to be turned off is the dormitory balcony ②, and at this time, an entry instruction sent by the detection device of the dormitory balcony ⑧ is received, it can be determined that the dormitory balcony ⑧ is not located on the path passed by the remaining flight path. Therefore, the flight can continue along the remaining flight path first, that is, fly to the dormitory balcony ③ to perform the light turning-off operation, and until the balcony light of the dormitory balcony ⑥ is turned off, then fly to the dormitory balcony ⑧ to perform the light turning-off operation.

[0136] In addition, an embodiment of the present application further provides a storage medium, on which a lighting device control program is stored. When the lighting device control program is executed by a processor, the steps of the lighting device control method as described above are implemented.

[0137] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without further limitations, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0138] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.

[0139] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory / random access memory, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application.

[0140] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A lighting equipment control method, characterized in that: The method is applied to a drone device, and the method comprises the following steps: Obtaining the lighting conditions of each area to be detected, and determining the area to be closed in the area to be detected where the lighting equipment needs to be closed according to the lighting conditions of each area to be detected; Performing path planning according to the regional location of each of the areas to be closed to obtain a flight path; Move to the current area to be closed according to the flight path, and turn off the lighting equipment in the current area to be closed.

2. The lighting device control method according to claim 1, characterized in that: The step of performing path planning according to the area positions of each area to be closed to obtain a flight path comprises: Determine the current area to be planned and the remaining areas to be planned based on each of the areas to be closed; Determine the interval distance between the remaining area to be planned and the current area to be planned according to the area position of each area to be closed; Sorting the remaining areas to be planned according to the interval distance, and selecting the next area to be planned from the remaining areas to be planned based on the distance sorting result; Path planning is performed according to the area position of the current area to be planned and the area position of the next area to be planned to obtain a flight path.

3. The lighting device control method according to claim 2, characterized in that: The step of determining the current area to be planned and the remaining areas to be planned based on the areas to be closed includes: Dividing each of the areas to be closed into regions to obtain divided regions; Determining the distribution density of the areas to be closed in each of the divided areas, and ranking the divided areas based on the distribution density; Select a target partition area from each of the partition areas according to the degree ranking result, and determine a starting area to be planned from the target partition area; The starting area to be planned is used as the current area to be planned, and the remaining area to be planned is determined according to the current area to be planned.

4. The lighting device control method according to claim 2, characterized in that: The step of selecting the next area to be planned from the remaining areas to be planned based on the distance sorting result comprises: Selecting the nearest area to be planned from the remaining areas to be planned based on the distance sorting result; When the number of the nearest area to be planned is one, taking the nearest area to be planned as the next area to be planned; When the number of the nearest areas to be planned is at least two, the next area to be planned is selected from the nearest areas to be planned according to a reference direction.

5. The lighting device control method according to any one of claims 1 to 4, characterized in that: The area to be inspected is provided with a detection device, and the detection device is connected to the drone device; After the step of shutting down the lighting device in the current area to be shut down, the method further includes: When the lighting device of the current area to be closed is turned off, it is determined whether an entry instruction sent by the detection device is received, where the entry instruction is a instruction generated when a person enters the corresponding area to be detected; If so, the area to be detected corresponding to the entry instruction is regarded as the area where people exist, and when the current area to be closed is the area where people exist, the lighting status of the current area to be closed is re-acquired, and the lighting equipment is turned off according to the lighting status of the current area to be closed.

6. The lighting device control method according to claim 5, characterized in that: When the current area to be closed is the area where people are present, the step of re-obtaining the lighting status of the current area to be closed includes: Determining whether the area where people exist is on the path of the remaining flight path; If yes, the remaining flight path is adjusted according to the position of the area with personnel, and when the current area to be closed is the area with personnel, the lighting status of the current area to be closed is re-acquired; If not, the lighting equipment is turned off according to the remaining flight path, and when the remaining flight path is completed, the area where people exist is used as the current area to be closed, and the lighting status of the current area to be closed is re-acquired.

7. The lighting device control method according to claim 5, characterized in that: When the current area to be closed is the area where people are present, the step of re-obtaining the lighting status of the current area to be closed includes: When the current area to be closed is the area where people exist, determining whether a leaving instruction sent by the detection device is received, the leaving instruction being an instruction generated when the person leaves the corresponding area to be detected; If so, the lighting status of the current area to be closed is re-acquired.

8. The lighting device control method according to claim 7, characterized in that: After the step of determining whether the leaving instruction sent by the detection device is received, the method further includes: If not, the lighting equipment is turned off according to the remaining flight path, and when the remaining flight path is completed, the area where people exist is used as the current area to be closed, and when the leave instruction sent by the detection device is received, the lighting status of the current area to be closed is re-obtained.

9. A drone device, characterized in that: The drone device includes: a memory, a processor, and a lighting device control program stored in the memory and executable on the processor. When the lighting device control program is executed by the processor, the steps of the lighting device control method as described in any one of claims 1 to 8 are implemented.

10. A storage medium, characterized in that: The storage medium stores a lighting device control program, and when the lighting device control program is executed by the processor, the steps of the lighting device control method according to any one of claims 1 to 8 are implemented.