Control method and device for outdoor LED lamp

文档序号:1255268 发布日期:2020-08-21 浏览:7次 中文

阅读说明:本技术 一种户外led灯的控制方法及装置 (Control method and device for outdoor LED lamp ) 是由 翁震娣 于 2020-05-26 设计创作,主要内容包括:为了解决目前高杆灯不能很好满足绿色环保的要求的问题,本发明提供了一种户外LED灯的控制方法及装置,该方法包括获取多个公园广场的实验图像,所述实验图像为不同时间公园广场的图像;分析所述多个实验图像,找出所述实验图像中人活动区域;确定第一状态下,所述人活动区域中椭圆轮廓的第一数量;获取公园广场的第一图像,分析所述第一图像中人活动区域的椭圆轮廓的第二数量;比较所述第一数量和第二数量;根据所述第一数量和第二数量的比较结果,控制所述户外LED灯的亮度。本申请根据公园广场上人数的多少,自动控制LED灯的亮度,既实现了照明的目的,也符合绿色环保的要求。(In order to solve the problem that the existing high-pole lamp cannot well meet the requirements of green environmental protection, the invention provides a control method and a control device of an outdoor LED lamp, wherein the method comprises the steps of obtaining experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times; analyzing the plurality of experimental images to find out the human activity area in the experimental images; determining a first number of elliptical contours in the human activity area in a first state; acquiring a first image of a park square, and analyzing a second number of elliptical contours of a human activity area in the first image; comparing the first number to the second number; and controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity. The number of people on this application is according to the park square, and the luminance of automatic control LED lamp has both realized the purpose of illumination, also accords with green's requirement.)

1. A control method of an outdoor LED lamp is characterized by comprising the following steps:

acquiring experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times;

analyzing the plurality of experimental images to find out the human activity area in the experimental images;

determining a first number of elliptical contours in the human activity area in a first state;

acquiring a first image of a park square, and analyzing a second number of elliptical contours of a human activity area in the first image;

comparing the first number to the second number;

and controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

2. The method of claim 1, wherein said determining a first number of elliptical contours in the human activity area in a first state comprises:

in the experimental image in the first state, extracting edge information in the human activity area, and determining a first number of elliptical contours in the human activity area according to whether points in the edge information conform to the elliptical parameters.

3. The method of claim 2, wherein the first state comprises a time of eight to ten nights.

4. The method of any one of claims 1-3, wherein said controlling the brightness of the outdoor LED light based on the comparison of the first number and the second number comprises:

when the second quantity is larger than or equal to the first quantity, the brightness of the outdoor LED lamp is kept unchanged;

when the second number is smaller than the first number, determining the difference between the second number and the first number;

when the difference value between the second quantity and the first quantity is in a first gradient, the brightness of the outdoor LED lamp is reduced by 10%;

when the difference value between the second quantity and the first quantity is in a second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on;

when the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more.

5. The method of controlling an outdoor LED lamp according to any one of claims 1-3, further comprising:

acquiring a first sound decibel of an outdoor LED lamp within a first distance;

comparing the first sound decibel with a preset sound decibel, wherein the preset sound decibel is the decibel in the first state;

and controlling the brightness of the outdoor LED lamp according to the comparison result of the first sound decibel and the preset sound decibel and the comparison result of the second quantity and the first quantity.

6. The method of claim 5, wherein the controlling the brightness of the outdoor LED lamp according to the comparison result of the first sound decibel and the preset sound decibel and the comparison result of the second number and the first number comprises:

when the second quantity is larger than or equal to the first quantity and the first sound decibel is larger than or equal to a preset sound decibel, keeping the brightness of the outdoor LED lamp unchanged;

when the first sound decibel is smaller than the preset sound decibel, determining the difference value between the first sound decibel and the preset sound decibel;

when the difference value between the second quantity and the first quantity is in a first gradient and the difference value between the first sound decibel and the preset sound decibel is in the first gradient, the brightness of the outdoor LED lamp is reduced by 10%;

when the difference value between the second quantity and the first quantity is in a second gradient and the difference value between the first sound decibel and the preset sound decibel is in the second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on;

when the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more.

7. A control device of an outdoor LED lamp is characterized by comprising:

the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring experimental images of a plurality of park squares, and the experimental images are images of the park squares at different times;

the analysis unit is used for analyzing the plurality of experimental images and finding out the human activity area in the experimental images;

a determining unit for determining a first number of elliptical contours in the human activity area in a first state;

a second acquisition unit, configured to acquire a first image of a park square, and analyze a second number of elliptical contours of a human activity area in the first image;

a comparison unit for comparing the first number and the second number;

and the control unit is used for controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

8. The control device of an outdoor LED lamp according to claim 7, characterized in that the determination unit is configured to:

in the experimental image in the first state, extracting edge information in the human activity area, and determining a first number of elliptical contours in the human activity area according to whether points in the edge information conform to the elliptical parameters.

9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.

10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-6 are implemented when the program is executed by the processor.

Technical Field

The invention relates to the field of information processing, in particular to a method and a device for controlling an outdoor LED lamp.

Background

The high-pole lamp is a novel lighting device and generally comprises a lamp cap, a pole body and a base, wherein the lamp cap is provided with an LED lamp, a high-voltage sodium lamp and the like; the rod body is cylindrical and is made by rolling a steel plate, and the height of the rod body is generally more than 15 meters. High-pole lights are increasingly used, for example, in park squares, city squares, stations, etc. Often someone dances, plays the badminton, plays shuttlecock etc. night on the park square, and the demand that people were thrown light on has been satisfied to the high pole lamp, but, when meetting weather such as strong wind, rainy day, low temperature, people on the park square can reduce, but high pole lamp luminance is the same with at ordinary times, leads to the electric energy extravagant, can not fine satisfy green's requirement.

Disclosure of Invention

In order to solve the problem that the existing high-pole lamp cannot well meet the requirements of green environmental protection, the embodiment of the application provides a control method and a control device of an outdoor LED lamp, the brightness of the LED lamp is automatically controlled according to the number of people in a park square, the purpose of illumination is achieved, and the requirements of green environmental protection are met.

In a first aspect, an embodiment of the present application provides a method for controlling an outdoor LED lamp, including:

acquiring experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times;

analyzing the plurality of experimental images to find out the human activity area in the experimental images;

determining a first number of elliptical contours in the human activity area in a first state;

acquiring a first image of a park square, and analyzing a second number of elliptical contours of a human activity area in the first image;

comparing the first number to the second number;

and controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

Wherein said determining a first number of elliptical contours in the region of human activity in a first state comprises:

in the experimental image in the first state, extracting edge information in the human activity area, and determining a first number of elliptical contours in the human activity area according to whether points in the edge information conform to the elliptical parameters.

Wherein the first state comprises eight to ten hours at night.

Wherein the controlling the brightness of the outdoor LED lamp according to the comparison result of the first number and the second number comprises:

when the second quantity is larger than or equal to the first quantity, the brightness of the outdoor LED lamp is kept unchanged;

when the second number is smaller than the first number, determining the difference between the second number and the first number;

when the difference value between the second quantity and the first quantity is in a first gradient, the brightness of the outdoor LED lamp is reduced by 10%;

when the difference value between the second quantity and the first quantity is in a second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on;

when the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more.

Wherein, still include:

acquiring a first sound decibel of an outdoor LED lamp within a first distance;

comparing the first sound decibel with a preset sound decibel, wherein the preset sound decibel is the decibel in the first state;

and controlling the brightness of the outdoor LED lamp according to the comparison result of the first sound decibel and the preset sound decibel and the comparison result of the second quantity and the first quantity.

Wherein, according to the comparison result of the first sound decibel and the preset sound decibel, the comparison result of the second quantity and the first quantity, the brightness of the outdoor LED lamp is controlled, and the method comprises the following steps:

when the second quantity is larger than or equal to the first quantity and the first sound decibel is larger than or equal to a preset sound decibel, keeping the brightness of the outdoor LED lamp unchanged;

when the first sound decibel is smaller than the preset sound decibel, determining the difference value between the first sound decibel and the preset sound decibel;

when the difference value between the second quantity and the first quantity is in a first gradient and the difference value between the first sound decibel and the preset sound decibel is in the first gradient, the brightness of the outdoor LED lamp is reduced by 10%;

when the difference value between the second quantity and the first quantity is in a second gradient and the difference value between the first sound decibel and the preset sound decibel is in the second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on;

when the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more.

In a second aspect, an embodiment of the present application provides a control device for an outdoor LED lamp, including:

the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring experimental images of a plurality of park squares, and the experimental images are images of the park squares at different times;

the analysis unit is used for analyzing the plurality of experimental images and finding out the human activity area in the experimental images;

a determining unit for determining a first number of elliptical contours in the human activity area in a first state;

a second acquisition unit, configured to acquire a first image of a park square, and analyze a second number of elliptical contours of a human activity area in the first image;

a comparison unit for comparing the first number and the second number;

and the control unit is used for controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

Wherein the determination unit is configured to:

in the experimental image in the first state, extracting edge information in the human activity area, and determining a first number of elliptical contours in the human activity area according to whether points in the edge information conform to the elliptical parameters.

In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used for implementing the steps of any one of the above methods when executed by a processor.

In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the methods described above when executing the program.

The control method and the control device for the outdoor LED lamp have the following beneficial effects:

the method comprises the steps of obtaining experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times; analyzing the plurality of experimental images to find out the human activity area in the experimental images; determining a first number of elliptical contours in a region of human activity in a first state; acquiring a first image of the park square, and analyzing a second number of elliptical contours of the human activity area in the first image; comparing the first number to the second number; according to the comparison result of the first quantity and the second quantity, the brightness of the outdoor LED lamp is controlled, so that the brightness of the LED lamp is automatically controlled according to the number of people in the park square, the purpose of illumination is achieved, and the requirement of environmental protection is met.

Drawings

Fig. 1 is a schematic flow chart of a control method of an outdoor LED lamp according to an embodiment of the present application;

fig. 2 is another schematic flow chart of a control method of an outdoor LED lamp according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of a control device of an outdoor LED lamp according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

The present application is further described with reference to the following figures and examples.

In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.

The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

Fig. 1 is a schematic flow chart of a control method of an outdoor LED lamp according to an embodiment of the present application, and fig. 2 is a schematic flow chart of another control method of an outdoor LED lamp according to an embodiment of the present application, as shown in fig. 1-2, the control method of an outdoor LED lamp according to an embodiment of the present application includes the steps of: s101, acquiring experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times; s103, analyzing the plurality of experimental images to find out a human activity area in the experimental images; s105, determining a first number of elliptical contours in a human activity area in a first state; s107, acquiring a first image of the park square, and analyzing a second number of elliptical outlines of the human activity area in the first image; s109, comparing the first quantity with the second quantity; and S111, controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity. Each step is described below.

S101, acquiring experimental images of a plurality of park squares, wherein the experimental images are images of the park squares at different times.

In this step, image acquisition device is installed to the lamp holder portion of high-pole lamp, acquires the experimental image in a plurality of park squares through this image acquisition device, and this image acquisition device acquires the experimental image in a plurality of park squares through the angle of overlooking. The position of the image acquisition device is unchanged, so the angle of the acquired image is also fixed. The experimental images are images of park squares at different times, for example, images of squares with more than eight to ten people at night and images of squares with less than twelve to two people at noon, and the moving areas of people in the images can be obtained by comparing the images of squares at different times.

S103, analyzing the plurality of experimental images and finding out the human activity area in the experimental images.

By comparing the images of squares at different times, for example, the images of squares with eight to ten people at night and the images of squares with twelve to two people at noon, the difference between the two images can be found out, so that the moving area of people in the images, namely the moving area of people on the park square, can be obtained.

S105, determining a first number of elliptical contours in the human activity area in the first state.

The first state includes, for example, a time of eight to ten nights, that is, a time point of many people. Because the image acquisition device obtains the experimental image of a plurality of park squares through the angle of overlooking, that is the camera is with the angle of overlooking collection square people's image, in the image of gathering, people's head is the ellipse, through obtaining the first quantity of oval outline in the people's active area, just can obtain people's quantity. This step includes, for example, step S1051: in the experimental image in the first state, edge information in the human activity area is extracted, and a first number of elliptical contours in the human activity area is determined according to whether points in the edge information conform to the elliptical parameters. The ellipse parameters comprise the center of the ellipse, the major axis and the minor axis of the ellipse, and the included angle between the major axis of the ellipse and the horizontal direction.

S107, acquiring a first image of the park square, and analyzing a second number of elliptical outlines of the human activity area in the first image; s109, comparing the first quantity with the second quantity; and S111, controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

The image acquisition device installed through the lamp holder part of high-pole lamp acquires the first image of park square. The second number of elliptical contours of the region of human activity in the first image, i.e. the number of people on the square at the moment the first image was acquired, is then analyzed.

Controlling the brightness of the outdoor LED lamp according to the comparison result of the first number and the second number, for example, includes: when the second quantity is larger than or equal to the first quantity, the brightness of the outdoor LED lamp is kept unchanged; when the second number is smaller than the first number, namely, the number of people on the square at the present moment is less than that of people at ordinary times, determining the difference value between the second number and the first number; when the difference value between the second quantity and the first quantity is in a first gradient, the brightness of the outdoor LED lamp is reduced by 10%; when the difference value between the second quantity and the first quantity is in a second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on; the ranges of the first gradient and the second gradient may be determined experimentally or empirically.

When the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more, so that the brightness of the outdoor LED lamp is reduced to a certain degree and is not reduced any more, and a basic lighting function is guaranteed.

In some embodiments, the control method of the outdoor LED lamp further includes: acquiring a first sound decibel of an outdoor LED lamp within a first distance; comparing the first sound decibel with a preset sound decibel, wherein the preset sound decibel is the decibel in the first state; and controlling the brightness of the outdoor LED lamp according to the comparison result of the first sound decibel and the preset sound decibel and the comparison result of the second quantity and the first quantity. The first state includes, for example, time points from eight to ten nights, that is, time points at which there are more people, and if the current sound decibels are lower than the sound decibels in the first state, it indicates that there are fewer people than in the first state. The preset sound decibels can be obtained in advance, the sound decibels in the first distance of the outdoor LED lamp are collected from eight to ten points at night, the sound decibels can be collected for multiple times, and then the average value is calculated.

Controlling the brightness of the outdoor LED lamp according to the comparison result between the first sound decibel and the preset sound decibel, the comparison result between the second quantity and the first quantity, for example, the controlling method includes: when the second quantity is larger than or equal to the first quantity and the first sound decibel is larger than or equal to a preset sound decibel, keeping the brightness of the outdoor LED lamp unchanged; when the first sound decibel is smaller than the preset sound decibel, determining the difference value between the first sound decibel and the preset sound decibel; when the difference value between the second quantity and the first quantity is in a first gradient and the difference value between the first sound decibel and the preset sound decibel is in the first gradient, the brightness of the outdoor LED lamp is reduced by 10%; when the difference value between the second quantity and the first quantity is in a second gradient and the difference value between the first sound decibel and the preset sound decibel is in the second gradient, the brightness of the outdoor LED lamp is reduced by 20%; and so on; when the brightness of the outdoor LED lamp is reduced to the threshold value, the brightness of the outdoor LED lamp is not reduced any more. Thus, the accuracy of the control of the LED lamp is improved.

As shown in fig. 3, the present application also provides a control device for an outdoor LED lamp, including: a first acquiring unit 201, configured to acquire experimental images of a plurality of park squares, where the experimental images are images of the park squares at different times; the analysis unit 202 is used for analyzing the plurality of experimental images and finding out the human activity area in the experimental images; a determining unit 203 for determining a first number of elliptical contours in the human activity area in the first state; a second obtaining unit 204, configured to obtain a first image of the park square, and analyze a second number of elliptical contours of the person activity area in the first image; a comparing unit 205 for comparing the first number and the second number; and the control unit 206 is used for controlling the brightness of the outdoor LED lamp according to the comparison result of the first quantity and the second quantity.

Wherein the determination unit is configured to: in the experimental image in the first state, edge information in the human activity area is extracted, and a first number of elliptical contours in the human activity area is determined according to whether points in the edge information conform to the elliptical parameters.

In the present application, embodiments of a control apparatus for an outdoor LED lamp are substantially similar to embodiments of a control method for an outdoor LED lamp, and please refer to the description of the embodiments of the control method for an outdoor LED lamp.

It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.

Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.

The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the program is executed by a processor to realize the steps of the outdoor LED lamp control method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.

Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, such as a laptop computer, a desktop computer, a workstation, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers, as shown in fig. 4. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The electronic device of the present application comprises a processor 401, a memory 402, an input means 403 and an output means 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus 405 or otherwise. The memory 402 has stored thereon a computer program which is executable on the processor 401, and the processor 401 when executing the program realizes the above-mentioned steps of the method for controlling an outdoor LED lamp.

The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the data processing electronic apparatus, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input device. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. Display devices may include, but are not limited to, Liquid Crystal Displays (LCDs), Light Emitting Diode (LED) displays, plasma displays, and touch screens.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种照明和可见光通信可独立控制的LED驱动电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!