Disclosure of Invention
The application mainly aims to provide a lighting rule determining method and device to solve the problem that the light brightness of an intelligent pole cannot be automatically adjusted in the related technology.
In order to achieve the above object, in a first aspect, the present application provides a lighting rule determination method applied to a smart stick, the method including:
acquiring road condition images of a road in real time through a camera;
generating uploading information containing a road condition image, wherein the uploading information further comprises identification time and an identification area of the road condition image;
sending the uploaded information to a server so that the server can perform image recognition on the road condition image to determine a flow value on the road, calling a flow threshold value based on the identification time and the identification area, comparing the flow value with the flow threshold value, and generating and feeding back a brightness control instruction according to a comparison result;
and adjusting the brightness of the lamp light according to the received brightness control instruction.
Optionally, the flow value comprises a vehicle flow and/or a human flow.
Optionally, the method further comprises:
and acquiring a current illuminance value, wherein the uploaded information comprises the current illuminance value, so that the server generates a brightness control instruction by combining the comparison result and the current illuminance value.
In a second aspect, the present application further provides a lighting rule determining method, applied to a server, including:
receiving uploaded information sent by a smart bar, wherein the smart bar acquires road condition images of a road in real time through a camera to generate the uploaded information comprising the road condition images, and the uploaded information further comprises identification time and identification areas of the road condition images;
performing image recognition on the road condition image, determining a flow value on the road, and calling a flow threshold value based on the identification time and the identification area;
comparing the flow value with the flow threshold value;
generating a brightness control instruction according to the comparison result;
and feeding the brightness control instruction back to the intelligent rod so that the intelligent rod adjusts the brightness of the lamplight according to the received brightness control instruction.
Optionally, the flow value comprises a vehicle flow and/or a human flow.
Optionally, the uploaded information further includes a current illuminance value collected by the smart stick, and the generating of the brightness control instruction according to the comparison result includes:
and combining the comparison result with the current illumination value to generate a brightness control instruction.
Optionally, the generating a brightness control instruction by combining the comparison result and the current illuminance value includes:
determining whether the current illuminance value meets a preset illuminance value;
when the current illumination value accords with a preset illumination value, generating a brightness control instruction for closing the brightness of the lamplight;
when the current illuminance value is lower than a preset illuminance value, determining whether the flow value is lower than the flow threshold value;
when the flow value is lower than the flow threshold value, generating a brightness control instruction for reducing the light brightness or closing the light brightness;
and when the flow value is not lower than the flow threshold value, generating a brightness control instruction for improving the brightness of the lamp light.
Optionally, before the determining whether the flow value is below the flow threshold, the method further comprises:
when the current illumination value is lower than a preset illumination value, determining whether the identification area belongs to a designated area;
when the identification area belongs to a designated area, generating a brightness control instruction for increasing the illuminance of the street lamp to the preset illuminance value;
when the identified region does not belong to a designated region, performing the step of determining whether the flow value is below the flow threshold.
In a third aspect, the present application also provides an illumination rule determination device applied to a smart stick, the device including:
the acquisition module is used for acquiring road condition images of roads in real time through the camera;
the generating module is used for generating uploading information containing the road condition image, wherein the uploading information further comprises identification time and an identification area of the road condition image;
the sending module is used for sending the uploading information to a server so that the server can perform image recognition on a road condition image, determine a flow value on the road, call a flow threshold value based on the identification time and the identification area, compare the flow value with the flow threshold value, and generate and feed back a brightness control instruction according to a comparison result;
and the adjusting module is used for adjusting the brightness of the lamplight according to the received brightness control instruction.
In a fourth aspect, the present application also provides a computer-readable storage medium storing computer code that, when executed, performs the illumination rule determination method described above.
In the lighting rule determining method provided by the application, a camera is used for acquiring road condition images of a road in real time; generating uploading information containing a road condition image, wherein the uploading information further comprises identification time and an identification area of the road condition image; sending the uploaded information to a server so that the server can perform image recognition on the road condition image to determine a flow value on the road, calling a flow threshold value based on the identification time and the identification area, comparing the flow value with the flow threshold value, and generating and feeding back a brightness control instruction according to a comparison result; and adjusting the brightness of the lamp light according to the received brightness control instruction. Like this, gather the flow information of road conditions through the wisdom pole, the rethread server is adjusted road lighting luminance according to flow information, has realized the automatic allotment's of wisdom pole light luminance purpose, through carrying out reasonable regulation to light, has reached energy saving's beneficial effect. Thereby solved the unable automatic allotment's of light luminance of wisdom pole technical problem among the correlation technique.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
According to an aspect of the present application, an illumination rule determining method is provided in an embodiment of the present application, the method is applied to a smart stick, fig. 1 is a schematic flow chart of the illumination rule determining method provided in the embodiment of the present application, as shown in fig. 1, the method includes thefollowing steps 110 to 140:
and 110, acquiring road condition images of the road in real time through a camera.
The intelligent pole can shoot the road in real time through the camera to obtain the road condition image, wherein, thereby this camera can adopt infrared camera to shoot the road condition under the condition of dark day, perhaps, when no light source illumination, when having the object to move on the road surface, can detect through the radar, and then open light, the road condition image of rethread camera real-time acquisition road.
And 120, generating uploading information containing the road condition image, wherein the uploading information further comprises the identification time and the identification area of the road condition image.
Specifically, the time of the photographed road condition image is used for generating the identification time corresponding to the road condition image, the area of the photographed road condition image is used for generating the identification area corresponding to the road condition image, and uploading information including the road condition image, the identification time and the identification area is generated.
And 130, sending the uploaded information to the server so that the server performs image recognition on the road condition image, determines a flow value on the road, calls a flow threshold value based on the identification time and the identification area, compares the flow value with the flow threshold value, and generates and feeds back a brightness control instruction according to the comparison result.
Specifically, the generated uploading information is sent to a server, the server analyzes the uploading information, then image recognition is carried out on the analyzed road condition image, and a flow value on the road is determined, wherein optionally, the flow value comprises traffic flow and/or pedestrian flow, namely, vehicles and individuals are recognized in the road condition image, a flow threshold value corresponding to the identification time and the identification area is called, the flow value and the flow threshold value are compared, and then a brightness control instruction is generated and fed back according to the comparison result.
And 140, adjusting the brightness of the lamp light according to the received brightness control command.
Specifically, the smart stick executes the brightness control command to adjust the brightness of the light (e.g., adjusting the brightness of the light includes maintaining the brightness of the light, increasing the brightness of the light, decreasing the brightness of the light, turning off the light, etc.) after receiving the brightness control command.
In a possible implementation manner, a lighting rule determining method provided by the embodiment of the present application further includes:
and acquiring a current illuminance value, wherein the uploaded information comprises the current illuminance value, so that the server generates a brightness control instruction by combining the comparison result and the current illuminance value.
Specifically, the current illumination value is the current illumination value of the intelligent pole and can be collected through the photosensitive sensor, and the server generates a brightness control instruction by combining the comparison result and the current illumination value, so that the aim of adjusting the light brightness of the intelligent pole is fulfilled.
Optionally, generating the brightness control instruction by combining the comparison result and the current illuminance value includes:
determining whether the current illuminance value meets a preset illuminance value;
when the current illumination value accords with a preset illumination value, generating a brightness control instruction for closing the brightness of the lamplight;
when the current illuminance value is lower than the preset illuminance value, determining whether the flow value is lower than a flow threshold value;
when the flow value is lower than the flow threshold value, generating a brightness control instruction for reducing the light brightness or closing the light brightness;
and when the flow value is not lower than the flow threshold value, generating a brightness control instruction for improving the brightness of the lamp light.
Optionally, before determining whether the flow rate value is lower than the flow rate threshold, a lighting rule determination method provided in an embodiment of the present application further includes:
when the current illumination value is lower than the preset illumination value, determining whether the identification area belongs to the designated area;
when the identification area belongs to the designated area, generating a brightness control instruction for improving the illuminance of the street lamp to a preset illuminance value;
when the identified region does not belong to the designated region, performing the step of determining whether the flow value is below a flow threshold.
In the lighting rule determining method provided by the application, a camera is used for acquiring road condition images of a road in real time; generating uploading information containing a road condition image, wherein the uploading information further comprises identification time and an identification area of the road condition image; sending the uploaded information to a server so that the server can perform image recognition on the road condition image, determine a traffic value on the road, call a traffic threshold value based on the identification time and the identification area, compare the traffic value with the traffic threshold value, and generate and feed back a brightness control instruction according to a comparison result; and adjusting the brightness of the lamp light according to the received brightness control instruction. Like this, gather the flow information of road conditions through the wisdom pole, the rethread server is adjusted road lighting luminance according to flow information, has realized the automatic allotment's of wisdom pole light luminance purpose, through carrying out reasonable regulation to light, has reached energy saving's beneficial effect. Thereby solved the unable automatic allotment's of light luminance of wisdom pole technical problem among the correlation technique.
Based on the same technical concept, the present application further provides a lighting rule determining method, which is applied to a server, fig. 2 is a schematic flow chart of another lighting rule determining method provided in the embodiment of the present application, and as shown in fig. 2, the method includes the following steps 210 to 210:
210, receiving upload information sent by the smart bar, wherein the smart bar acquires road condition images of a road in real time through a camera to generate upload information containing the road condition images, and the upload information further comprises identification time and identification areas of the road condition images;
220, carrying out image recognition on the road condition image, determining a flow value on the road, and calling a flow threshold value based on the identification time and the identification area;
230, comparing the flow value with the flow threshold value;
240, generating a brightness control instruction according to the comparison result;
and 250, feeding the brightness control instruction back to the intelligent rod so that the intelligent rod adjusts the brightness of the lamp light according to the received brightness control instruction.
The intelligent pole can shoot the road in real time through the camera to obtain the road condition image, wherein, thereby this camera can adopt infrared camera to shoot the road condition under the condition of dark day, perhaps, when no light source illumination, when having the object to move on the road surface, can detect through the radar, and then open light, the road condition image of rethread camera real-time acquisition road. And then, generating identification time corresponding to the road condition image at the time of the shot road condition image, generating an identification area corresponding to the road condition image at the area of the shot road condition image, and further generating uploading information comprising the road condition image, the identification time and the identification area. And then, sending the generated uploading information to a server, analyzing the uploading information by the server, then carrying out image recognition on the analyzed road condition image, determining a flow value on the road, wherein optionally, the flow value comprises the traffic flow and/or the pedestrian flow, namely, identifying a vehicle and a person in the road condition image, calling a corresponding identification time and a flow threshold value of an identification area, comparing the flow value with the flow threshold value, and then generating and feeding back a brightness control instruction according to the comparison result. Thereafter, the smart stick executes the brightness control command to adjust the light brightness (e.g., adjusting the light brightness includes maintaining the light brightness, increasing the light brightness, decreasing the light brightness, turning off the light, etc.) after receiving the brightness control command.
Optionally, the uploaded information further includes a current illuminance value collected by the smart stick, and the brightness control instruction is generated according to the comparison result, including:
and combining the comparison result with the current illuminance value to generate a brightness control instruction.
Specifically, the current illumination value is the current illumination value of the intelligent pole and can be collected through the photosensitive sensor, and the server generates a brightness control instruction by combining the comparison result and the current illumination value, so that the aim of adjusting the light brightness of the intelligent pole is fulfilled.
Optionally, generating the brightness control instruction by combining the comparison result and the current illuminance value includes:
determining whether the current illuminance value meets a preset illuminance value;
when the current illumination value accords with a preset illumination value, generating a brightness control instruction for closing the brightness of the lamplight;
when the current illuminance value is lower than the preset illuminance value, determining whether the flow value is lower than a flow threshold value;
when the flow value is lower than the flow threshold value, generating a brightness control instruction for reducing the light brightness or closing the light brightness;
and when the flow value is not lower than the flow threshold value, generating a brightness control instruction for improving the brightness of the lamp light.
Optionally, before determining whether the flow value is below the flow threshold, the method further comprises:
when the current illumination value is lower than the preset illumination value, determining whether the identification area belongs to the designated area;
when the identification area belongs to the designated area, generating a brightness control instruction for improving the illuminance of the street lamp to a preset illuminance value;
when the identified region does not belong to the designated region, performing the step of determining whether the flow value is below a flow threshold.
In the lighting rule determining method provided by the application, the intelligent pole is used for collecting the traffic information of the road condition, and then the server is used for adjusting the road lighting brightness according to the traffic information, so that the purpose of automatically allocating the lighting brightness of the intelligent pole is achieved, and the beneficial effect of saving energy is achieved by reasonably adjusting the lighting. Thereby solved the unable automatic allotment's of light luminance of wisdom pole technical problem among the correlation technique.
Based on the same technical concept, an embodiment of the present application further provides an illumination rule determining apparatus, which is applied to a smart stick, and fig. 3 is a schematic structural diagram of the illumination rule determining apparatus provided in the embodiment of the present application, as shown in fig. 3, the apparatus includes:
theacquisition module 10 is used for acquiring road condition images of roads in real time through a camera;
thegeneration module 20 is configured to generate upload information including a road condition image, where the upload information further includes an identification time and an identification area of the road condition image;
the sendingmodule 30 is configured to send the uploaded information to the server, so that the server performs image recognition on the road condition image, determines a traffic value on the road, calls a traffic threshold value based on the identification time and the identification area, compares the traffic value with the traffic threshold value, and generates and feeds back a brightness control instruction according to a comparison result;
and the adjustingmodule 40 is used for adjusting the brightness of the lamp light according to the received brightness control instruction.
Specifically, in the illumination rule determining apparatus provided in the embodiment of the present application, the working process of each module is the same as that of the illumination rule determining method provided in the embodiment of the present application, and is not described herein again.
Based on the same technical concept, embodiments of the present application also provide a computer-readable storage medium storing computer code, and when the computer code is executed, the lighting rule determination method described above is executed.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data.
Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.