Illuminating lamp regulation and control method, device and equipment and storage medium
By installing test pieces on the road and dynamically adjusting the number and brightness of the lighting fixtures, the problem of the suburban road lighting system working for a long time during the darkness is solved, and the effect of energy saving and maintenance cost reduction is achieved.
Patent Information
- Application Number
- CN202411872053.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-12-18
AI Technical Summary
On suburban roads and mountain roads with small traffic and low traffic, the road lighting system is in a continuous working state for a long time during the night, resulting in waste of energy and increasing the maintenance and maintenance costs of the lighting system.
By dividing the areas along the driving lane and the sidewalk, and installing driving detection parts and pedestrian detection parts, the existence of vehicles and pedestrians is detected in real time, and the number and brightness of lighting fixtures are dynamically adjusted according to the vehicle speed and pedestrian position, and the lighting fixtures are turned on or brightened only when needed.
It effectively reduces excessive or continuous lighting of lighting fixtures, reduces energy waste, and reduces maintenance and repair costs of road lighting systems.
Smart Images

Figure CN119907169A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic digital data processing, and in particular to a method, device, equipment and storage medium for controlling road lighting fixtures. Background Art
[0002] With economic development, urban population increases, and municipal roads develop rapidly. In order to ensure driving safety, municipal roads are equipped with lighting systems. According to relevant regulations and pedestrian and vehicle needs, municipal roads will be equipped with motor vehicle lighting, sidewalk lighting, non-motor vehicle lane lighting and other lighting systems. The number of lighting lamps is huge. Due to the needs of vehicles and pedestrians at night, the lighting system needs to work continuously at night. The road lighting system is to ensure a good visual environment for various vehicle drivers and pedestrians at night, so as to ensure traffic safety, improve transportation efficiency, and facilitate people's lives.
[0003] At present, for some roads with small traffic and pedestrian flow, especially suburban roads and mountain roads, there are long periods of time at night when there are no vehicles or pedestrians, but the road lighting has been in continuous working state, resulting in energy waste and increasing the maintenance and repair costs of the road lighting system. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, equipment and storage medium for regulating road lighting fixtures, so as to solve the problem in the prior art that for some roads with small vehicle and pedestrian flow, especially suburban roads and mountain roads, there are long periods of time at night when there are no vehicles and pedestrians, but the road lighting is always in a continuous working state, resulting in energy waste and increasing the maintenance and repair costs of the road lighting system.
[0005] In order to achieve the above objectives, this application provides the following technical solutions:
[0006] A method for regulating a road lighting fixture, wherein the road lighting fixture comprises a plurality of lane lighting fixtures evenly arranged along a lane based on the same scene, and each lane lighting fixture is equipped with a driving detection component, and the regulating method comprises:
[0007] Step S1, dividing the lane into a plurality of continuous driving areas along the driving radial center line of the lane, each driving area including a lane lighting fixture;
[0008] Step S2, defining a set of a plurality of consecutive natural numbers, wherein each natural number in the set corresponds to a number of consecutively lit lane lighting lamps;
[0009] Step S3, defining a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval;
[0010] Step S4, dividing the driving speed interval into a plurality of driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting quantity, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting quantity also increases linearly;
[0011] Step S5, obtaining the current driving speed of the currently traveling vehicle through adjacent driving detection components;
[0012] Step S6, obtaining a driving speed sub-interval matching the current driving speed and a corresponding number of continuous lightings;
[0013] Step S7, detecting the driving area where the current vehicle is located through all driving detection components and defining it as a vehicle-occupied area;
[0014] Step S8, starting from the area with the vehicle, turning on or brightening the lane lighting lamps that match the corresponding continuous lighting quantity along the driving direction of the current vehicle.
[0015] As a further improvement of the present application, the road lighting fixture further includes a plurality of sidewalk lighting fixtures evenly arranged along the sidewalk based on the same scene, each sidewalk lighting fixture is equipped with a pedestrian detection element, and the control method further includes:
[0016] Step S10, dividing the sidewalk into a plurality of continuous pedestrian areas along the pedestrian radial center line of the sidewalk, each pedestrian area including a sidewalk lighting fixture;
[0017] Step S20, detecting the pedestrian area where the current pedestrian is located through all pedestrian detection components and defining it as a pedestrian area;
[0018] Step S30, starting from the pedestrian area, turning on or brightening a preset number of pedestrian sidewalk lighting fixtures along two directions of the sidewalk.
[0019] As a further improvement of the present application, step S30, starting from the pedestrian area and turning on or brightening a preset number of pedestrian sidewalk lighting fixtures in two directions of the sidewalk, includes:
[0020] Step S301, in a clear sunlight environment and with all pedestrian lighting fixtures turned off, first image data of each pedestrian area is obtained respectively;
[0021] Step S302, obtaining the first image brightness average value of each first image data by using a visual algorithm;
[0022] Step S303, in a night environment with all lighting fixtures turned on, respectively acquiring second image data of each pedestrian area;
[0023] Step S304, obtaining the second image brightness average value of each second image data by using the visual algorithm;
[0024] Step S305, defining at least two continuous brightness intervals in order from low to high according to the value of the visible light brightness;
[0025] Step S306, defining a viewing distance weight coefficient based on each brightness interval, and the magnitudes of all viewing distance weight coefficients decrease from large to small as the values of all visible light brightness increase from low to high;
[0026] Step S307, classifying all first image brightness averages and all second image brightness averages into all brightness intervals by a classification algorithm, obtaining a first weight coefficient based on each first image brightness average, and obtaining a second weight coefficient based on each second image brightness average;
[0027] Step S308, obtaining a coefficient difference between the first weight coefficient and the second weight coefficient of the pedestrian area, and determining whether the coefficient difference exceeds a preset difference threshold. If the coefficient difference exceeds the preset difference threshold, executing step S309;
[0028] Step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along two directions of the sidewalk until the difference with the coefficient does not exceed a preset difference threshold.
[0029] As a further improvement of the present application, step S302, obtaining the first image brightness average value of each first image data by a visual algorithm, includes:
[0030] Step S3021, import the cv2 software package through the python import statement;
[0031] Step S3022, reading each first image data respectively through the cv2.imread function of the cv2 software package and storing it in the img variable;
[0032] Step S3023, converting all first image data in the img variable into a first grayscale image through the cv2.cvtColor function of the cv2 software package and storing the image in the gray variable;
[0033] Step S3024, obtaining the first average brightness of each first grayscale image in the gray variable through the cv2.mean function of the cv2 software package and storing it in the average_brightness variable;
[0034] Step S3025, defining all first average brightnesses in the average_brightness variable as average brightnesses of all first images.
[0035] As a further improvement of the present application, step S304, obtaining the second image brightness average value of each second image data by using the visual algorithm, includes:
[0036] Step S3041, initializing the img variable, the gray variable, and the average_brightness variable;
[0037] Step S3042, reading each second image data respectively through the cv2.imread function and storing them into the img variable;
[0038] Step S3043, converting all the second image data in the img variable into a second grayscale image through the cv2.cvtColor function and storing it in the gray variable;
[0039] Step S3044, obtaining the second average brightness of each second grayscale image in the gray variable through the cv2.mean function and storing it in the average_brightness variable;
[0040] Step S3045, defining all second average brightnesses in the average_brightness variable as average brightnesses of all second images.
[0041] As a further improvement of the present application, step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed the preset difference threshold, and then including:
[0042] Step S100, obtaining the sunrise time of the area where the scene is located;
[0043] Step S200, generating a lamp off signal based on the sunrise time;
[0044] Step S300: Turn off all lane lighting fixtures and all sidewalk lighting fixtures according to the shutdown signal.
[0045] As a further improvement of the present application, step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed the preset difference threshold, and then including:
[0046] Step S1000, real-time monitoring of the lighting intensity of all lane lighting fixtures and all sidewalk lighting fixtures;
[0047] Step S2000, defining a lane lighting fixture with a lighting intensity of zero and a sidewalk lighting fixture with a lighting intensity of zero as a faulty lighting fixture;
[0048] Step S3000, obtaining the geographic location of the faulty lighting fixture and sending it to an external monitoring terminal.
[0049] In order to achieve the above objectives, this application also provides the following technical solutions:
[0050] A control device for a road lighting fixture, the control device is applied to the control method as described above, and the control device comprises:
[0051] A lane division module, used to divide the lane into a plurality of continuous driving areas along the driving radial center line of the lane, each driving area including a lane lighting fixture;
[0052] A continuous lighting quantity definition module, used to define a set of several continuous natural numbers, each natural number in the set corresponds to a continuous lighting quantity based on the lane lighting fixture;
[0053] A driving speed interval definition module is used to define a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval;
[0054] A driving speed interval division module, used to divide the driving speed interval into a plurality of driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting quantity, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting quantity also increases linearly;
[0055] A current vehicle speed acquisition module is used to acquire the current speed of the current vehicle through adjacent vehicle detection components;
[0056] The current vehicle speed matching module is used to obtain the vehicle speed sub-interval that matches the current vehicle speed and the corresponding number of consecutive lights;
[0057] A vehicle area definition module is used to detect the driving area where the current vehicle is located through all driving detection components and define it as a vehicle area;
[0058] The lane lighting fixture starting module is used to start or brighten the lane lighting fixtures matching the corresponding continuous lighting quantity along the driving direction of the current vehicle with the vehicle area as the starting area.
[0059] In order to achieve the above objectives, this application also provides the following technical solutions:
[0060] An electronic device includes a processor and a memory coupled to the processor, wherein the memory stores program instructions executable by the processor; when the processor executes the program instructions stored in the memory, the control method of the road lighting fixture as described above is implemented.
[0061] To achieve the above objectives, this application also provides the following technical solutions:
[0062] A storage medium stores program instructions, and when the program instructions are executed by a processor, the control method of the road lighting fixture as described above can be implemented.
[0063] The present application divides a driving lane into several continuous driving areas along the driving radial center line of the driving lane, each driving area includes a driving lane lighting fixture; defines a set of several continuous natural numbers, each natural number in the set corresponds to a continuous lighting number based on the driving lane lighting fixture; defines a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; divides the driving speed interval into several driving speed sub-intervals on average, each driving speed sub-interval corresponds to a continuous lighting number, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting number also increases linearly; obtains the current driving speed of the current driving vehicle through adjacent driving detection components; obtains the driving speed sub-interval matching the current driving speed and the corresponding continuous lighting number; detects the driving area where the current driving vehicle is located through all driving detection components and defines it as a vehicle area; takes the vehicle area as the starting area and turns on or brightens the driving lane lighting fixtures matching the corresponding continuous lighting number along the driving direction of the current driving vehicle. The present application determines the number of street lights to be turned on or brightened by identifying the real-time speed of moving vehicles, thereby reducing the energy waste caused by excessive or continuous lighting of lighting fixtures, and at the same time reducing the maintenance and repair costs of the road lighting system. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic diagram of the steps of an embodiment of a method for controlling a lighting fixture of the present application;
[0065] Figure 2 This is a functional module diagram of an embodiment of a control device for a lighting fixture of the present application;
[0066] Figure 3 This is a schematic diagram of the structure of an embodiment of the electronic device of the present application;
[0067] Figure 4 This is a schematic diagram of the structure of an embodiment of the storage medium of the present application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] The terms "first", "second" and "third" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications in the embodiments of the present application (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0070] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0071] like Figure 1 As shown, this embodiment provides an embodiment of a method for regulating road lighting fixtures. In this embodiment, the road lighting fixture includes a plurality of lane lighting fixtures evenly arranged along the lane based on the same scene, and each lane lighting fixture is equipped with a driving detection component.
[0072] Preferably, the lane lighting fixtures are mostly in the form of street lamps, and there are several street lamps on a road. In order to realize the "brightening" function described below in this embodiment, all street lamps may have at least two lighting intensities with increasing lighting brightness, such as a first gear with a lighting intensity of 200 lux, a second gear with a lighting intensity of 400 lux, a third gear with a lighting intensity of 600 lux, and so on. Lamps with lighting intensity gear switching are mature existing technologies, and this embodiment will not repeat the detailed structures, models, etc. of various lamps.
[0073] It is worth noting that the above examples are only used to provide numerical examples for the "brightness enhancement" function, and the above numerical values are not used to limit this embodiment, and the same applies below.
[0074] Specifically, the control method comprises the following steps:
[0075] Step S1, dividing the driving lane into a plurality of continuous driving areas along the driving radial center line of the driving lane, each driving area includes a driving lane lighting fixture.
[0076] Preferably, the driving radial center line is the dividing line, and step S1 is to divide the road perpendicular to the dividing line along the dividing line, rather than directly using the dividing line to divide the road, so as to ensure that one street lamp can have one plot.
[0077] Step S2, defining a set of several consecutive natural numbers, each natural number in the set corresponds to a consecutive lighting quantity of the lane lighting fixtures.
[0078] Preferably, if the set starts from 0, it means that the street lights are not turned on or brightened when the vehicle speed is 0; if the set starts from 1, it means that one street light is turned on or brightened when the vehicle speed is 0, and the street light is located in the block where the vehicle is located; if the set starts from 2, it means that two street lights are turned on or brightened when the vehicle speed is 0, and the two street lights are located in a block in front of the block where the vehicle is located and one block in front of the vehicle; that is, the number of street lights turned on or brightened increases sequentially from the block where the vehicle is located to the front, and so on.
[0079] Step S3, defining a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval.
[0080] Preferably, the purpose of setting the speed limit as the maximum value of the interval in step S3 is to encourage drivers to abide by the law and not to exceed the speed limit.
[0081] Step S4, the driving speed interval is evenly divided into a plurality of driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting number, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting number also increases linearly.
[0082] For example, suppose the speed limit on a suburban road is 70km / h. If the suburban road has no center line, the maximum speed is 40 kilometers per hour; if there is only one motor vehicle lane in the same direction, the maximum speed is 70 kilometers per hour.
[0083] Then, the relationship between the driving speed sub-interval and the number of consecutive lightings can be set in the form of the following Table 1:
[0084]
[0085]
[0086] Table 1: Relationship between driving speed sub-range and the number of consecutive lights.
[0087] Step S5, obtaining the current driving speed of the currently traveling vehicle through adjacent driving detection components.
[0088] Preferably, the current driving speed can be calculated by the time difference between two consecutive street lamps when the vehicle passes by them, and the distance between two consecutive street lamps can be directly measured, which can be obtained by dividing the distance by the time difference.
[0089] Step S6, obtaining a driving speed sub-interval matching the current driving speed and a corresponding number of continuous lightings.
[0090] For example, a vehicle passes the kth streetlight at 50 km / h. Through the above steps, it is obtained that 9 streetlights need to be turned on or brightened, and 8 more blocks are counted from the block where the vehicle is located, and the streetlights of a total of 9 blocks are turned on or brightened; the vehicle passes the k+1th streetlight at 40 km / h. Through the above steps, it is obtained that 8 streetlights need to be turned on or brightened, and 7 more blocks are counted from the block where the vehicle is located, and the streetlights of a total of 8 blocks are turned on or brightened. At this time, due to the kth streetlight to The k+8th street lights (9 in total) are all turned on or brightened. When counting from the k+1th street light, there are exactly 8 blocks to the k+8th street light. At this time, there is no need to turn on or brighten the subsequent street lights. However, since the vehicle has reached the k+1th street light, the kth street light needs to be turned off or dimmed. That is, if the street lights that have been turned on and brightened still need to be turned on or brightened in the next judgment, no action will be taken, otherwise they will be turned off or dimmed. It is worth noting that the vehicle used as the judgment basis is constantly moving, and the reference point needs to be updated in real time.
[0091] Step S7, detecting the driving area where the current vehicle is located through all driving detection components and defining it as an area with vehicles.
[0092] Step S8, starting from the area with vehicles, turning on or brightening the lane lighting lamps that match the corresponding continuous lighting quantity along the driving direction of the current vehicle.
[0093] Preferably, step S7 is an activation step of steps S1 to S6, and step S8 is a result step generated after steps S1 to S6 are activated.
[0094] It is worth noting that the vehicle continuously activates steps S1 to S6 through the detection of vehicle areas at different locations through step S7, so as to achieve a real-time update effect.
[0095] Furthermore, step S1 to step S8 are control steps based on vehicles, and this embodiment further provides control steps based on pedestrians.
[0096] Specifically, the road lighting fixture also includes a plurality of sidewalk lighting fixtures evenly arranged along the sidewalk based on the same scene, and each sidewalk lighting fixture is equipped with a pedestrian detection component.
[0097] Then, the control method further comprises the following steps:
[0098] Step S10, dividing the sidewalk into a plurality of continuous pedestrian areas along the pedestrian radial center line of the sidewalk, each pedestrian area including a sidewalk lighting fixture.
[0099] Step S20: Detect the pedestrian area where the current pedestrian is located through all pedestrian detection components and define it as a pedestrian area.
[0100] Step S30, starting from the pedestrian area, turning on or brightening a preset number of pedestrian sidewalk lighting fixtures along two directions of the sidewalk.
[0101] Preferably, since the speed of pedestrians is slower than that of vehicles, this embodiment directly turns on or brightens a certain number of street lights (for example, two blocks forward and two blocks backward of the pedestrian area as the base block, for a total of five), or sets the number of lights to be turned on or brightened through the following steps to ensure that the sidewalk has good lighting brightness.
[0102] Further, step S30, starting from the pedestrian area, turns on or brightens a preset number of pedestrian sidewalk lighting fixtures in two directions along the sidewalk, including:
[0103] Step S301, in a clear sunlight environment and with all pedestrian sidewalk lighting fixtures turned off, first image data of each pedestrian area is obtained respectively.
[0104] Step S302: Obtain the first image brightness average value of each first image data by using a visual algorithm.
[0105] Step S303 , acquiring second image data of each pedestrian area in a night environment with all lighting fixtures turned on.
[0106] Preferably, the first image data and the second image data can be directly captured by an external camera terminal without difficulty, but the same shooting angle should be adopted as much as possible to ensure the accuracy of subsequent brightness detection.
[0107] Step S304: obtaining the second image brightness average value of each second image data by using a visual algorithm.
[0108] Step S305 , defining at least two continuous brightness intervals in order from low to high according to the numerical value of the visible light brightness.
[0109] For example, four brightness intervals may be defined in sequence, namely [0, 100), [100, 300), [300, 500), and [500, +∞), and the critical value may be adjusted according to actual needs.
[0110] Step S306, defining a viewing distance weight coefficient based on each brightness interval, and the magnitudes of all viewing distance weight coefficients decrease from large to small as the values of all visible light brightness increase from low to high.
[0111] Preferably, since the brightness increases in sequence, the first interval represents the least bright interval, and the weight coefficients of the above four intervals may be 4, 3, 2, and 1 respectively.
[0112] Step S307, classifying all first image brightness averages and all second image brightness averages into all brightness intervals through a classification algorithm, obtaining a first weight coefficient based on each first image brightness average, and obtaining a second weight coefficient based on each second image brightness average.
[0113] Preferably, the classification algorithm of this embodiment adopts Naive Bayes classification to prevent subjective errors in manual classification.
[0114] Step S308, obtaining the coefficient difference between the first weight coefficient and the second weight coefficient of the pedestrian area, and determining whether the coefficient difference exceeds a preset difference threshold. If the coefficient difference exceeds the preset difference threshold, executing step S309.
[0115] Preferably, the preset threshold can be set to half of the median of all weight coefficients. Using the above 4, 3, 2, 1, the median is 2.5, and half of the median is 1.25.
[0116] Step S309, starting from the pedestrian area, each sidewalk lighting fixture is turned on in sequence along the two directions of the sidewalk until the difference with the coefficient does not exceed the preset difference threshold.
[0117] Preferably, the street lights around the reference point can enhance the illumination brightness of the reference point.
[0118] Furthermore, in step S302, the first image brightness average value of each first image data is obtained by using a visual algorithm, including:
[0119] Step S3021, import the cv2 software package through the python import statement.
[0120] Step S3022, read each first image data respectively through the cv2.imread function of the cv2 software package and store it in the img variable.
[0121] Step S3023: convert all first image data in the img variable into a first grayscale image through the cv2.cvtColor function of the cv2 software package and store it in the gray variable.
[0122] Step S3024, using the cv2.mean function of the cv2 software package, obtain the first average brightness of each first grayscale image in the gray variable and store it in the average_brightness variable.
[0123] Step S3025, defining all first average brightnesses in the average_brightness variable as average brightnesses of all first images.
[0124] Preferably, the above steps S3021 to S3025 can be implemented by the following code:
[0125]
[0126] Furthermore, step S304, obtaining the second image brightness average value of each second image data by using a visual algorithm, includes:
[0127] Step S3041, initialize the img variable, gray variable, and average_brightness variable.
[0128] Step S3042, read each second image data respectively through the cv2.imread function and store it in the img variable.
[0129] Step S3043: Convert all second image data in the img variable into a second grayscale image through the cv2.cvtColor function and store it in the gray variable.
[0130] Step S3044, using the cv2.mean function, obtain the second average brightness of each second grayscale image in the gray variable and store it in the average_brightness variable.
[0131] Step S3045, defining all second average brightnesses in the average_brightness variable as average brightnesses of all second images.
[0132] Preferably, the codes of step S3041 to step S3045 are the same as the codes of step S3021 to step S3025 described above.
[0133] Further, step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed the preset difference threshold, and then including:
[0134] Step S100, obtaining the sunrise time of the area where the scene is located.
[0135] Step S200: generating a lamp shut-off signal based on the sunrise time.
[0136] Step S300: turning off all lane lighting fixtures and all sidewalk lighting fixtures according to the turning-off signal.
[0137] Further, step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed the preset difference threshold, and then including:
[0138] Step S1000, real-time monitoring of the lighting intensity of all lane lighting fixtures and all sidewalk lighting fixtures.
[0139] Step S2000: defining a lane lighting fixture with a lighting intensity of zero and a sidewalk lighting fixture with a lighting intensity of zero as faulty lighting fixtures.
[0140] Step S3000, obtaining the geographic location of the faulty lighting fixture and sending it to an external monitoring terminal.
[0141] This embodiment divides the driving lane into several continuous driving areas along the driving radial center line of the driving lane, and each driving area includes a driving lane lighting fixture; defines a set of several continuous natural numbers, each natural number in the set corresponds to a continuous lighting number based on the driving lane lighting fixture; defines a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; divides the driving speed interval into several driving speed sub-intervals on average, each driving speed sub-interval corresponds to a continuous lighting number, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting number also increases linearly; obtains the current driving speed of the current driving vehicle through adjacent driving detection components; obtains the driving speed sub-interval matching the current driving speed and the corresponding continuous lighting number; detects the driving area where the current driving vehicle is located through all driving detection components and defines it as a vehicle area; takes the vehicle area as the starting area, and turns on or brightens the driving lane lighting fixtures matching the corresponding continuous lighting number along the driving direction of the current driving vehicle. This embodiment determines the number of street lights to be turned on or brightened by identifying the real-time speed of the moving vehicle, thereby reducing the energy waste caused by excessive or continuous lighting of lighting fixtures and reducing the maintenance and repair costs of the road lighting system.
[0142] like Figure 2 As shown, this embodiment provides an embodiment of a control device for road lighting fixtures. In this embodiment, the control device is applied to the control method as in the above embodiment.
[0143] Specifically, the control device includes a lane division module 1, a continuous lighting quantity definition module 2, a driving speed interval definition module 3, a driving speed interval division module 4, a current vehicle speed acquisition module 5, a current vehicle speed matching module 6, a vehicle area definition module 7, and a lane lighting fixture activation module 8, which are electrically connected in sequence.
[0144] The lane division module 1 is used to divide the lane into several continuous driving areas along the driving radial center line of the lane, and each driving area includes a lane lighting fixture; the continuous lighting quantity definition module 2 is used to define a set of several continuous natural numbers, and each natural number in the set corresponds to a continuous lighting quantity based on the lane lighting fixture; the driving speed interval definition module 3 is used to define the driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; the driving speed interval division module 4 is used to evenly divide the driving speed interval into several driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting quantity, and as the driving speed increases, the number of continuous lighting increases. The driving speed of the vehicle speed sub-interval increases linearly, and the number of continuous lightings also increases linearly; the current vehicle speed acquisition module 5 is used to obtain the current driving speed of the current vehicle through the adjacent driving detection components; the current vehicle speed matching module 6 is used to obtain the driving speed sub-interval matching the current driving speed, and the corresponding number of continuous lightings; the vehicle area definition module 7 is used to detect the driving area where the current driving vehicle is located through all driving detection components and define it as a vehicle area; the lane lighting fixture turning on module 8 is used to turn on or brighten the lane lighting fixtures that match the corresponding number of continuous lightings along the driving direction of the current vehicle with the vehicle area as the starting area.
[0145] Furthermore, the road lighting control lamp also includes a sidewalk division module, a pedestrian area module, and a sidewalk lighting control module which are electrically connected in sequence; the sidewalk division module can be electrically connected to the lane division module 1, and can also be electrically connected to the lane lighting fixture activation module 8.
[0146] Among them, the sidewalk division module is used to divide the sidewalk into several continuous pedestrian areas along the pedestrian radial center line of the sidewalk, and each pedestrian area includes a sidewalk lighting fixture; the pedestrian area module is used to detect the pedestrian area where the current pedestrian is located through all pedestrian detection components and define it as a pedestrian area; the pedestrian sidewalk lighting fixture control module is used to open or brighten a preset number of pedestrian sidewalk lighting fixtures in two directions of the sidewalk with the pedestrian area as the starting area.
[0147] Furthermore, the pedestrian walkway lighting fixture control module specifically includes a first row of sidewalk lighting fixture control submodule, a second row of sidewalk lighting fixture control submodule, a third row of sidewalk lighting fixture control submodule, a fourth row of sidewalk lighting fixture control submodule, a fifth row of sidewalk lighting fixture control submodule, a sixth row of sidewalk lighting fixture control submodule, a seventh row of sidewalk lighting fixture control submodule, an eighth row of sidewalk lighting fixture control submodule, and a ninth row of sidewalk lighting fixture control submodule, which are electrically connected in sequence; the first row of sidewalk lighting fixture control submodule is electrically connected to the pedestrian area module.
[0148] Among them, the first sidewalk lighting fixture control submodule is used to obtain the first image data of each pedestrian area in a clear sunlight environment and the sidewalk lighting fixtures are not turned on; the second sidewalk lighting fixture control submodule is used to obtain the first image brightness average value of each first image data through a visual algorithm; the third sidewalk lighting fixture control submodule is used to obtain the second image data of each pedestrian area in a night environment and all lighting fixtures are turned on; the fourth sidewalk lighting fixture control submodule is used to obtain the second image brightness average value of each second image data through a visual algorithm; the fifth sidewalk lighting fixture control submodule is used to define at least two consecutive brightness intervals in order from low to high according to the numerical value of the visible light brightness; the sixth sidewalk lighting fixture control submodule is used to define based on each brightness interval a sight distance weight coefficient, the sizes of all sight distance weight coefficients are from large to small as the values of all visible light brightness are from low to high; the seventh row of sidewalk lighting fixture control submodule is used to classify all first image brightness averages and all second image brightness averages into all brightness intervals through a classification algorithm, and obtain a first weight coefficient based on each first image brightness average, and obtain a second weight coefficient based on each second image brightness average; the eighth row of sidewalk lighting fixture control submodule is used to obtain the coefficient difference between the first weight coefficient and the second weight coefficient of the pedestrian area, and determine whether the coefficient difference exceeds the preset difference threshold; the ninth row of sidewalk lighting fixture control submodule is used to, if the coefficient difference exceeds the preset difference threshold, start from the pedestrian area along the two directions of the sidewalk to turn on each sidewalk lighting fixture one by one until the coefficient difference does not exceed the preset difference threshold.
[0149] Furthermore, the second-row sidewalk lighting fixture control submodule specifically includes a first sidewalk lighting fixture control unit, a second sidewalk lighting fixture control unit, a third sidewalk lighting fixture control unit, a fourth sidewalk lighting fixture control unit, and a fifth sidewalk lighting fixture control unit, which are electrically connected in sequence; the first sidewalk lighting fixture control unit is electrically connected to the first-row sidewalk lighting fixture control submodule, and the fifth sidewalk lighting fixture control unit is electrically connected to the third-row sidewalk lighting fixture control submodule.
[0150] Among them, the first sidewalk lighting fixture control unit is used to import the cv2 software package through the python import statement; the second sidewalk lighting fixture control unit is used to read each first image data respectively through the cv2.imread function of the cv2 software package and store it in the img variable; the third sidewalk lighting fixture control unit is used to convert all the first image data in the img variable into a first grayscale image through the cv2.cvtColor function of the cv2 software package and store it in the gray variable; the fourth sidewalk lighting fixture control unit is used to obtain the first average brightness of each first grayscale image in the gray variable respectively through the cv2.mean function of the cv2 software package and store it in the average_brightness variable; the fifth sidewalk lighting fixture control unit is used to define all the first average brightnesses in the average_brightness variable as the average brightness of all first images.
[0151] Furthermore, the fourth row of sidewalk lighting fixture control submodule specifically includes a sixth sidewalk lighting fixture control unit, a seventh sidewalk lighting fixture control unit, an eighth sidewalk lighting fixture control unit, a ninth sidewalk lighting fixture control unit, and a tenth sidewalk lighting fixture control unit, which are electrically connected in sequence; the sixth sidewalk lighting fixture control unit is electrically connected to the third row of sidewalk lighting fixture control submodule, and the tenth sidewalk lighting fixture control unit is electrically connected to the fifth row of sidewalk lighting fixture control submodule.
[0152] Among them, the sixth sidewalk lighting fixture control unit is used to initialize the img variable, the gray variable, and the average_brightness variable; the seventh sidewalk lighting fixture control unit is used to read each second image data respectively through the cv2.imread function and store it in the img variable; the eighth sidewalk lighting fixture control unit is used to convert all the second image data in the img variable into a second grayscale image through the cv2.cvtColor function and store it in the gray variable; the ninth sidewalk lighting fixture control unit is used to obtain the second average brightness of each second grayscale image in the gray variable respectively through the cv2.mean function and store it in the average_brightness variable; the tenth sidewalk lighting fixture control unit is used to define all the second average brightnesses in the average_brightness variable as the average brightness of all second images.
[0153] Furthermore, the control device also includes a scene sunrise time acquisition module, a lamp shutoff signal generation module, and a lighting fixture shutoff module that are electrically connected in sequence; the scene sunrise time acquisition module is electrically connected to the ninth row of sidewalk lighting fixture control sub-module.
[0154] Among them, the scene sunrise time acquisition module is used to obtain the sunrise time of the area where the scene is located; the lamp off signal generation module is used to generate a lamp off signal based on the sunrise time; the lighting fixture off module is used to turn off all lane lighting fixtures and all sidewalk lighting fixtures according to the off signal.
[0155] Furthermore, the control device also includes a lighting fixture lighting intensity monitoring module, a fault lighting fixture definition module, and a fault lighting fixture sending module, which are electrically connected in sequence; the lighting fixture lighting intensity monitoring module is electrically connected to the ninth row of sidewalk lighting fixture control sub-module.
[0156] Among them, the lighting fixture lighting intensity monitoring module is used to monitor the lighting intensity of all lane lighting fixtures and all sidewalk lighting fixtures in real time; the faulty lighting fixture definition module is used to define lane lighting fixtures with zero lighting intensity and sidewalk lighting fixtures with zero lighting intensity as faulty lighting fixtures; the faulty lighting fixture sending module is used to obtain the geographic location of the faulty lighting fixture and send it to the external monitoring end.
[0157] It should be noted that this embodiment is a functional module item embodiment based on the above method embodiment. For additional contents such as the optimization, expansion, and example illustration of this embodiment, please refer to the above method embodiment, and this embodiment will not be repeated.
[0158] This embodiment divides the driving lane into several continuous driving areas along the driving radial center line of the driving lane, and each driving area includes a driving lane lighting fixture; defines a set of several continuous natural numbers, each natural number in the set corresponds to a continuous lighting number based on the driving lane lighting fixture; defines a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; divides the driving speed interval into several driving speed sub-intervals on average, each driving speed sub-interval corresponds to a continuous lighting number, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting number also increases linearly; obtains the current driving speed of the current driving vehicle through adjacent driving detection components; obtains the driving speed sub-interval matching the current driving speed and the corresponding continuous lighting number; detects the driving area where the current driving vehicle is located through all driving detection components and defines it as a vehicle area; takes the vehicle area as the starting area, and turns on or brightens the driving lane lighting fixtures matching the corresponding continuous lighting number along the driving direction of the current driving vehicle. This embodiment determines the number of street lights to be turned on or brightened by identifying the real-time speed of the moving vehicle, thereby reducing the energy waste caused by excessive or continuous lighting of lighting fixtures and reducing the maintenance and repair costs of the road lighting system.
[0159] Figure 3 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3As shown, the electronic device 9 includes a processor 91 and a memory 92 coupled to the processor 91 .
[0160] The memory 92 stores program instructions for implementing the lighting fixture control method of any of the above embodiments.
[0161] The processor 91 is used to execute the program instructions stored in the memory 92 to adjust the road lighting fixtures.
[0162] The processor 91 may also be referred to as a CPU (Central Processing Unit). The processor 91 may be an integrated circuit chip having the ability to process signals. The processor 91 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0163] Further, Figure 4 This is a schematic diagram of the structure of a storage medium according to an embodiment of the present application. Figure 4 The storage medium 10 of the embodiment of the present application stores program instructions 101 that can implement all the above methods, wherein the program instructions 101 can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0164] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0165] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A method for regulating road lighting fixtures, wherein the road lighting fixtures include a plurality of lane lighting fixtures evenly arranged along a lane based on the same scene, each lane lighting fixture is equipped with a driving detection component, characterized in that: The control method comprises: Step S1, dividing the lane into a plurality of continuous driving areas along the driving radial center line of the lane, each driving area including a lane lighting fixture; Step S2, defining a set of a plurality of consecutive natural numbers, wherein each natural number in the set corresponds to a number of consecutively lit lane lighting lamps; Step S3, defining a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; Step S4, dividing the driving speed interval into a plurality of driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting number, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting number also increases linearly; Step S5, obtaining the current driving speed of the currently traveling vehicle through adjacent driving detection components; Step S6, obtaining a driving speed sub-interval matching the current driving speed and a corresponding number of continuous lightings; Step S7, detecting the driving area where the current vehicle is located through all driving detection components and defining it as a vehicle-occupied area; Step S8, starting from the area with the vehicle, turning on or brightening the lane lighting lamps that match the corresponding continuous lighting quantity along the driving direction of the current vehicle.
2. The control method according to claim 1, wherein the road lighting fixture further comprises a plurality of sidewalk lighting fixtures evenly arranged along the sidewalk in the same scene, each sidewalk lighting fixture is equipped with a pedestrian detection element, characterized in that: The control method further comprises: Step S10, dividing the sidewalk into a plurality of continuous pedestrian areas along the pedestrian radial center line of the sidewalk, each pedestrian area including a sidewalk lighting fixture; Step S20, detecting the pedestrian area where the current pedestrian is located through all pedestrian detection components and defining it as a pedestrian area; Step S30, starting from the pedestrian area, turning on or brightening a preset number of pedestrian sidewalk lighting fixtures along two directions of the sidewalk.
3. The control method according to claim 2, characterized in that: Step S30, starting from the pedestrian area and turning on or brightening a preset number of pedestrian sidewalk lighting fixtures in two directions of the sidewalk, comprises: Step S301, in a clear sunlight environment and with all pedestrian lighting fixtures turned off, first image data of each pedestrian area is obtained respectively; Step S302, obtaining the first image brightness average value of each first image data by using a visual algorithm; Step S303, in a night environment with all lighting fixtures turned on, respectively acquiring second image data of each pedestrian area; Step S304, obtaining the second image brightness average value of each second image data by using the visual algorithm; Step S305, defining at least two continuous brightness intervals in order from low to high according to the value of the visible light brightness; Step S306, defining a viewing distance weight coefficient based on each brightness interval, and the magnitudes of all viewing distance weight coefficients decrease from large to small as the values of all visible light brightness increase from low to high; Step S307, classifying all first image brightness averages and all second image brightness averages into all brightness intervals by a classification algorithm, obtaining a first weight coefficient based on each first image brightness average, and obtaining a second weight coefficient based on each second image brightness average; Step S308, obtaining a coefficient difference between the first weight coefficient and the second weight coefficient of the pedestrian area, and determining whether the coefficient difference exceeds a preset difference threshold. If the coefficient difference exceeds the preset difference threshold, executing step S309; Step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along two directions of the sidewalk until the difference with the coefficient does not exceed a preset difference threshold.
4. The control method according to claim 3, characterized in that: Step S302, obtaining the first image brightness average value of each first image data by using a visual algorithm, including: Step S3021, import the cv2 software package through the python import statement; Step S3022, reading each first image data respectively through the cv2.imread function of the cv2 software package and storing it in the img variable; Step S3023, converting all first image data in the img variable into a first grayscale image through the cv2.cvtColor function of the cv2 software package and storing the image in the gray variable; Step S3024, obtaining the first average brightness of each first grayscale image in the gray variable through the cv2.mean function of the cv2 software package and storing it in the average_brightness variable; Step S3025, defining all first average brightnesses in the average_brightness variable as average brightnesses of all first images.
5. The control method according to claim 4, characterized in that: Step S304, obtaining the second image brightness average value of each second image data by using the visual algorithm, including: Step S3041, initializing the img variable, the gray variable, and the average_brightness variable; Step S3042, reading each second image data respectively through the cv2.imread function and storing them into the img variable; Step S3043, converting all the second image data in the img variable into a second grayscale image through the cv2.cvtColor function and storing it in the gray variable; Step S3044, obtaining the second average brightness of each second grayscale image in the gray variable through the cv2.mean function and storing it in the average_brightness variable; Step S3045, defining all second average brightnesses in the average_brightness variable as average brightnesses of all second images.
6. The control method according to claim 3, characterized in that: Step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed a preset difference threshold, and then comprising: Step S100, obtaining the sunrise time of the area where the scene is located; Step S200, generating a lamp off signal based on the sunrise time; Step S300: Turn off all lane lighting fixtures and all sidewalk lighting fixtures according to the shutdown signal.
7. The control method according to claim 1, characterized in that: Step S309, starting from the pedestrian area, successively turning on each sidewalk lighting fixture along the two directions of the sidewalk until the difference with the coefficient does not exceed a preset difference threshold, and then comprising: Step S1000, real-time monitoring of the lighting intensity of all lane lighting fixtures and all sidewalk lighting fixtures; Step S2000, defining a lane lighting fixture with a lighting intensity of zero and a sidewalk lighting fixture with a lighting intensity of zero as a faulty lighting fixture; Step S3000, obtaining the geographic location of the faulty lighting fixture and sending it to an external monitoring terminal.
8. A control device for road lighting fixtures, the control device being applied to the control method according to any one of claims 1 to 7, characterized in that: The control device comprises: A lane division module, used to divide the lane into a plurality of continuous driving areas along the driving radial center line of the lane, each driving area including a lane lighting fixture; A continuous lighting quantity definition module, used to define a set of several continuous natural numbers, each natural number in the set corresponds to a continuous lighting quantity based on the lane lighting fixture; A driving speed interval definition module is used to define a driving speed interval with zero as the minimum value of the interval and the speed limit of the current road as the maximum value of the interval; A driving speed interval division module, used to divide the driving speed interval into a plurality of driving speed sub-intervals, each driving speed sub-interval corresponds to a continuous lighting quantity, and as the driving speed of the driving speed sub-interval increases linearly, the continuous lighting quantity also increases linearly; A current vehicle speed acquisition module is used to acquire the current speed of the current vehicle through adjacent vehicle detection components; The current vehicle speed matching module is used to obtain the vehicle speed sub-interval that matches the current vehicle speed and the corresponding number of consecutive lights; A vehicle area definition module is used to detect the driving area where the current vehicle is located through all driving detection components and define it as a vehicle area; The lane lighting fixture starting module is used to start or brighten the lane lighting fixtures matching the corresponding continuous lighting quantity along the driving direction of the current vehicle with the vehicle area as the starting area.
9. An electronic device, characterized in that: It comprises a processor and a memory coupled to the processor, wherein the memory stores program instructions executable by the processor; when the processor executes the program instructions stored in the memory, the control method as described in any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed by the processor, the control method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Streetlight network control method and network structure thereof
CN102421219A
Road streetlamp control method
CN105889882A
Urban road illumination control system based on intelligent street lamp
CN114040553A
Street lamp safety energy-saving control method based on visual identification
CN115499979A
Control device for road illumination, control program, and system
JP2014060127A