Illumination control method and device based on tunnel obstacles
The method and device for tunnel lighting control address visual adaptation issues by precisely adjusting lighting based on obstacle detection and environmental conditions, improving safety by ensuring consistent brightness and clear visibility.
Patent Information
- Application Number
- CN202510484974.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-07-15
AI Technical Summary
Traditional tunnel lighting systems cause drivers to adapt to visually when vehicles enter or leave the tunnel, distract their attention, reduce their perception of the road environment, and pose safety hazards.
By acquiring the tunnel image, detecting the outline of the obstacle, performing tunnel graphic feature segmentation, determining the road surface of the obstacle, constructing brightness design values, adjusting the luminous power of the lamp, performing grayscale feedback correction, and selecting appropriate lighting strategies to control the lamp.
Accurate positioning of obstacles is achieved, ensuring consistency of brightness inside and outside the tunnel, providing a clear field of view, and improving the safety of drivers and passengers.
Smart Images

Figure CN120321855A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tunnel lighting, and in particular, to a lighting control method and device based on tunnel obstacles. Background Art
[0002] In tunnel lighting technology, traditional tunnel lighting systems maintain a constant lighting brightness both during the day and at night. When a vehicle is driving, when entering a tunnel from a high-brightness external environment or from a relatively dim external environment, the driver needs to experience a period of visual adaptation. During this period, there is a lack of sufficient information and clear vision, which not only distracts the driver's attention, reduces the perception ability of the road ahead and the surrounding environment, but also makes it difficult for the driver to quickly judge whether there are emergencies such as traffic accidents, road construction, vehicle failures or obstacles when just entering the tunnel, resulting in potential life safety problems for the driver and passengers during the driving process.
[0003] Therefore, there is an urgent need for a lighting control method and device based on tunnel obstacles to solve the potential life safety problems for the driver and passengers during the driving process. Summary of the Invention
[0004] The purpose of the present invention is to provide a lighting control method and device based on tunnel obstacles to improve the above problems. To achieve the above purpose, the technical solutions adopted by the present invention are as follows:
[0005] In a first aspect, the present application provides a lighting control method based on tunnel obstacles, including:
[0006] Obtain tunnel acquisition images;
[0007] Perform object detection on the tunnel acquisition images to obtain obstacle contours;
[0008] Draw a tunnel graph for the tunnel, obtain multiple feature slices by performing feature segmentation on the tunnel graph, and determine the actual road surface position of the obstacle through each feature slice to obtain the actual road surface position of the obstacle;
[0009] Construct a brightness design value based on the actual road surface position of the obstacle and the current brightness inside the tunnel, and construct the designed luminous power of the lighting fixture through the brightness design value and the configuration information of the lighting fixture;
[0010] Calculate the actual ground brightness value from the numerical values of three channels in the tunnel acquisition images, and perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller through the designed luminous power of the lighting fixture and the actual ground brightness value to obtain the lighting target brightness value;
[0011] Based on the target brightness value of the lighting, the brightness outside the tunnel is judged to obtain multiple brightness environments, and different preset lighting strategies are selected through the multiple brightness environments to control the lighting fixtures.
[0012] In a second aspect, the present application also provides a lighting control device based on tunnel obstacles, including:
[0013] An acquisition module, configured to acquire tunnel acquisition images;
[0014] A detection module, configured to perform target detection on the tunnel acquisition images to obtain obstacle contours;
[0015] A position module, configured to draw a tunnel graph of the tunnel, obtain multiple feature slices by performing feature segmentation on the tunnel graph, and determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle;
[0016] A construction module, configured to construct a brightness design value based on the actual road surface position of the obstacle and the current in-tunnel brightness of the tunnel, and construct a designed luminous power of the lighting fixture through the brightness design value and the configuration information of the lighting fixture;
[0017] A correction module, configured to calculate the actual ground brightness value from the numerical values of three channels in the tunnel acquisition images, and perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller through the designed luminous power of the lighting fixture and the actual ground brightness value to obtain the target brightness value of the lighting;
[0018] A control module, configured to judge the brightness outside the tunnel according to the target brightness value of the lighting to obtain multiple brightness environments, and select different preset lighting strategies through the multiple brightness environments to control the lighting fixtures.
[0019] In a third aspect, the present application also provides a lighting control device based on tunnel obstacles, including:
[0020] A memory, configured to store a computer program;
[0021] A processor, configured to implement the steps of the lighting control method based on tunnel obstacles when executing the computer program.
[0022] In a fourth aspect, the present application also provides a medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned lighting control method based on tunnel obstacles are implemented.
[0023] The beneficial effects of the present invention are:
[0024] Through the tunnel feature segmentation technology, the present invention realizes the accurate and efficient positioning of the actual road surface position of the obstacle, determines the designed luminous power of the lamp according to the actual road surface position of the obstacle and the current brightness inside the tunnel, judges the brightness value of the in-tunnel lighting controller according to the designed luminous power of the lamp, and then finely adjusts the brightness value of the in-tunnel lighting controller through gray-scale feedback correction, so as to ensure that the actual lighting brightness is highly consistent with the target brightness value, realizing the ultimate accuracy of brightness adjustment, effectively avoiding the phenomenon of over-bright or over-dark lighting. On this basis, the present invention accurately judges the brightness outside the tunnel according to the target lighting brightness value, controls the lighting lamps by adopting different lighting strategies according to the judgment results, and provides clear vision conditions to solve the problem of the life safety of drivers and passengers during driving.
[0025] Other features and advantages of the present invention will be described in the following specification, and part of them will become obvious from the specification, or can be understood by implementing the embodiments of the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the written specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0027] Figure 1 It is a schematic flow chart of the lighting control method based on tunnel obstacles described in the embodiments of the present invention;
[0028] Figure 2 It is a schematic structural diagram of the lighting control device based on tunnel obstacles described in the embodiments of the present invention.
[0029] Reference numerals in the figure: 800, lighting control device based on tunnel obstacles; 801, processor; 802, memory; 803, multimedia component; 804, I / O interface; 805, communication component. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0031] It should be noted that like reference numerals and letters denote like items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive distinction and cannot be construed as indicating or implying relative importance.
[0032] Embodiment 1:
[0033] This embodiment provides a lighting control method based on tunnel obstacles.
[0034] See Figure 1 , which shows that this method includes steps S1 to S6, including:
[0035] S1: Obtain tunnel acquisition images;
[0036] In this step, the tunnel acquisition images include target images containing obstacles in the tunnel.
[0037] S2: Perform target detection on the tunnel acquisition images to obtain obstacle contours;
[0038] In this step, a target detection algorithm is used to detect the tunnel acquisition images to obtain obstacle contours;
[0039] S3: Draw a tunnel graph for the tunnel, obtain multiple feature slices by performing feature segmentation on the tunnel graph, and determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle;
[0040] To clarify the specific acquisition method of the actual road surface position of the obstacle, steps S31 to S35 are included in step S3, specifically:
[0041] S31: Obtain actual tunnel marking points;
[0042] In this step, the actual tunnel marking points are circular or rectangular reflective markings or warning lamps powered on, which are clearly shown in the captured tunnel image. The actual tunnel marking points are markers that are significantly different from the surrounding tunnel environment and have different specifications from the lighting fixtures. The actual tunnel marking points are installed on the left, right, and top of the tunnel respectively. Each actual tunnel marking point has a unique number, and the distance between each actual tunnel marking point and the tunnel entrance is recorded.
[0043] S32: Draw a two-dimensional graph of the tunnel, simulate it by combining the actual size and geometric shape of the tunnel to obtain a tunnel graph;
[0044] S33: Mark multiple key points on the tunnel graph based on the actual tunnel marking points to obtain multiple tunnel features;
[0045] S34: Segment each tunnel feature according to a preset tunnel slicing algorithm to obtain multiple feature slices;
[0046] In this step, multiple feature slices S n (n = 0, 1, 2...), the slice of the tunnel entrance is S0, and the multiple feature slices include the current slice and the next slice S k-1 .
[0047] Among them, the tunnel feature segmentation technology realizes accurate and efficient positioning of the actual road surface position of obstacles.
[0048] S35: Determine the position of the obstacle contour according to each feature slice to obtain the actual road surface position of the obstacle.
[0049] The feature slices include a first feature slice and a second feature slice;
[0050] To clarify the specific acquisition method of the actual road surface position of the obstacle, steps S35 includes S351 to S355, specifically:
[0051] S351: Determine the coordinates of the obstacle contour according to the first feature slice and the second feature slice to obtain an obstacle segment;
[0052] In this step, the next slice S k-1 is the complement k in the current slice S which is a paragraph P k . When the obstacle contour completely exists in the current slice S k but does not completely exist in the adjacent next slice S k-1 , it is considered that the obstacle exists in the complement of the slice In it, obtain the paragraph P where the obstacle is located k ;
[0053] Among them, the paragraph where the obstacle is located is the obstacle paragraph, the current slice is the first feature slice, and the next slice is the second feature slice.
[0054] S352: Mark the vertices of the obstacle paragraph to obtain paragraph marking points;
[0055] In this step, the paragraph marking points include: the upper left corner A(x1, y1), the upper right corner B(x2, y2), the lower left corner C(x3, y3), the lower right corner D(x4, y4), and the midpoint M(x m , y m );
[0056] S353: Mark the vertices of the actual road surface of the tunnel to obtain road surface marking points;
[0057] In this step, the road surface marking points include: the first corner (0, 0), the second corner (W, 0), the third corner (W, T), and the fourth corner (0, T);
[0058] S354: Input the paragraph marking points and the road surface marking points into the machine learning software library to obtain a perspective transformation matrix;
[0059] In this step, input the upper left corner A(x1, y1), the upper right corner B(x2, y2), the lower left corner C(x3, y3), the lower right corner D(x4, y4), the first corner (0, 0), the second corner (W, 0), the third corner (W, t), and the fourth corner (0, T) into the function "cv2.getPerspectiveTransform" of the OpenCV library to obtain a perspective transformation matrix;
[0060] The perspective transformation matrix is:
[0061]
[0062] In the above formula (1), H represents the perspective transformation matrix, a 11 ~a 13 , a 21 ~a 23 and a 31 ~a 33 all represent calculated constants;
[0063] Among them, the function "cv2.getPerspectiveTransform" of the OpenCV library is the machine learning software library.
[0064] S355: Calculate based on the inverse matrix in the perspective transformation matrix and the edges of the obstacle contour to obtain the actual road surface position of the obstacle.
[0065] In this step, the edge coordinates of the obstacle contour are:
[0066]
[0067] In the above formula (2), represents the transformed coordinate vector, represents the coordinate vector before transformation, and H -1 represents the inverse matrix in the perspective transformation matrix;
[0068] Among them, the transformed coordinate vector is: the three-dimensional coordinates of the obstacle at the actual road surface position; the coordinate vector before transformation is: x m and y m represent the midpoint M(x m , y m ) of the lowest side of the obstacle contour in the two-dimensional coordinates of the image, and 1 represents the constant term in homogeneous coordinates;
[0069] The actual road surface position of the obstacle paragraph is Further calculate the position N(x n , y n ) of the obstacle in the entire actual road surface of the tunnel to obtain the actual road surface position of the obstacle
[0070] S4: Construct a brightness design value based on the actual road surface position of the obstacle and the current brightness inside the tunnel. Through the brightness design value and the configuration information of the lighting fixtures, obtain the designed luminous power of the fixtures;
[0071] To clarify the specific acquisition method of the designed luminous power of the fixtures, steps S4 includes S41 to S43, specifically:
[0072] S41: Construct a distance based on the actual road surface position of the obstacle and the preset position of the obstacle before the stopping sight distance to obtain the stopping sight distance;
[0073] In this step, the actual road surface position of the obstacle is recorded as the end point, and the position of the obstacle before the stopping sight distance is the position of the obstacle before a stopping sight distance R, which is recorded as the starting point.
[0074] S42: Construct a brightness based on the current brightness inside the tunnel, the stopping sight distance, and the preset maximum opening brightness of the tunnel to obtain the brightness design value;
[0075] In this step, the brightness design value is:
[0076]
[0077] In the above formula (3), L represents the luminance design value, L0 represents the current tunnel luminance, L max represents, c represents the number of lighting steps in the stopping sight distance R, k represents the number of the section where the obstacle is located, T represents the length of the obstacle section, represents the two-dimensional coordinates of the actual road surface position of the obstacle, R represents the stopping sight distance, y represents the position variable in the tunnel, and i represents the number of a certain intermediate step;
[0078] Among them, each obstacle section is a lighting step, and the length of the obstacle section is the length of the lighting step; the position variable in the tunnel is used to determine which lighting step interval the current position is in.
[0079] S43: Calculate based on the luminance design value, the road surface width of the tunnel, and the configuration information of the lighting fixtures to obtain the designed luminous power of the fixtures.
[0080] The designed luminous power of the fixtures is:
[0081]
[0082] In the above formula (4), W L represents the designed luminous power of the fixtures, L represents the luminance design value, W represents the road surface width of the tunnel, S represents the spacing of the lighting fixtures, ρ represents the illuminance / power coefficient of the fixtures, τ represents the ground reflection coefficient, η represents the utilization coefficient of the fixtures, M represents the maintenance coefficient of the fixtures, and ω represents the fixture layout coefficient.
[0083] S5: Calculate the actual ground luminance value from the three-channel numerical values in the acquired tunnel image, and perform gray-scale feedback correction on the luminance value of the in-tunnel lighting controller through the designed luminous power of the fixtures and the actual ground luminance value to obtain the lighting target luminance value;
[0084] To clarify the specific acquisition method of the lighting target luminance value, steps S51 to S55 are included in step S5, specifically:
[0085] S51: Obtain the camera parameter information;
[0086] In this step, the camera parameter information includes the camera aperture number and the exposure time.
[0087] S52: Perform numerical processing on the three channels in the acquired tunnel image to obtain the gray-scale value of each pixel point;
[0088] In this step, the gray-scale value of the pixel point is:
[0089] Gray = 0.299×R + 0.587×G + 0.114×B (5)
[0090] In the above formula (5), R, G, and B are the values of the red, green, and blue channels respectively, and 0.299, 0.587, and 0.114 represent the value ranges;
[0091] Among them, the value range is (0, 255). The average value of the gray values Gray of each pixel point is calculated to obtain the average gray value of all pixel points, and the average gray value of all pixel points is H.
[0092] S53: According to the gray value of each pixel point and the preset detection distance, combined with the camera parameter information, perform brightness calculation to obtain the actual ground brightness value;
[0093] In this step, the actual ground brightness value is:
[0094]
[0095] In the above formula (6), L1 represents the actual ground brightness value, F represents the camera aperture number, T p represents the exposure time, δ, m, and v all represent constants related to the camera attributes, H represents the average gray value of all pixel points, and d H represents the detection distance;
[0096] Among them, the detection distance is the distance from the center of the obstacle section to the camera used to capture the tunnel acquisition image.
[0097] S54: Under the designed luminous power of the lamp, determine whether to correct the brightness value of the in - tunnel lighting controller. When correcting the brightness value of the in - tunnel lighting controller, construct it through the actual ground brightness value and the preset designed ground brightness to obtain the lamp correction value;
[0098] To clarify the specific acquisition method of the lamp correction value, steps S54 includes S541 to S543, specifically:
[0099] S541: Under the designed luminous power of the lamp, when the actual ground brightness value is less than the preset designed ground brightness, it is necessary to correct the brightness value of the in - tunnel lighting controller;
[0100] In this step, the actual ground brightness value is L1, and the designed ground brightness is L2.
[0101] S542: Based on the actual ground brightness value and the designed ground brightness, perform difference calculation to obtain the ground brightness difference;
[0102] In this step, the ground brightness difference is:
[0103] ΔL = L1 - L2 (7)
[0104] In the above formula (7), ΔL represents the ground brightness difference, L1 represents the actual ground brightness value, and L2 represents the designed ground brightness.
[0105] S543: Calculate according to the ground brightness difference, the road surface width of the tunnel, and the in - tunnel lighting fixture configuration information to obtain the fixture correction value.
[0106] In this step, the fixture correction value is as follows:
[0107]
[0108] In the above formula (8), ΔW L represents the fixture correction value, ΔL represents the ground brightness difference, W represents the road surface width of the tunnel, S represents the spacing of lighting fixtures, ρ represents the illuminance / power coefficient of the fixture, τ represents the ground reflection coefficient, η represents the fixture utilization coefficient, M represents the fixture maintenance coefficient, and ω represents the fixture layout coefficient.
[0109] Among them, the illuminance / power coefficient of the fixture, the fixture utilization coefficient, the fixture maintenance coefficient, and the fixture layout coefficient are the in - tunnel lighting fixture configuration information.
[0110] S55: Perform gray - scale feedback correction on the brightness value of the in - tunnel lighting controller according to the fixture correction value to obtain the lighting target brightness value.
[0111] In this step, the brightness value of the in - tunnel lighting controller is finely adjusted, so as to ensure that the actual lighting brightness is highly consistent with the target brightness value, achieving extremely precise brightness adjustment and effectively avoiding the phenomenon of over - bright or over - dim lighting.
[0112] S6: Judge the brightness outside the tunnel according to the lighting target brightness value to obtain multiple brightness environments, and control the lighting fixtures by selecting different preset lighting strategies through the multiple brightness environments.
[0113] To clarify the specific acquisition method of controlling the lighting fixtures by adopting a certain strategy, steps S6 includes S61 to S64, specifically:
[0114] S61: Obtain real - time traffic flow data;
[0115] In this step, the real - time traffic flow data is V, and the real - time traffic flow data is obtained through a traffic flow sensor.
[0116] S62: Determine the real-time brightness outside the tunnel according to the lighting target brightness value and a preset brightness threshold to obtain the current brightness environment, where the current brightness environment includes the daytime environment outside the tunnel and the nighttime environment outside the tunnel;
[0117] In this step, the real-time brightness outside the tunnel is E, and the brightness threshold is 100 cd / m 2 ;
[0118] Among them, when E ≥ 100 cd / m 2 the environment outside the tunnel is the daytime environment, and when E ≤ 100 cd / m 2 the environment outside the tunnel is the nighttime environment.
[0119] S63: Based on the daytime environment outside the tunnel, calculate the entrance section lighting brightness value by calculating the real-time brightness outside the tunnel and the entrance section brightness reduction coefficient of the tunnel, and control the lighting fixtures respectively through the entrance section lighting brightness value and a preset daytime lighting control strategy;
[0120] In this step, the entrance section lighting brightness value is:
[0121] L th = k × E (9)
[0122] In the above formula (9), L th represents the entrance section lighting brightness value, k represents the entrance section brightness reduction coefficient, and E represents the real-time brightness outside the tunnel;
[0123] Among them, the value range of the entrance section brightness reduction coefficient is 0.01 - 0.07;
[0124] The daytime lighting control strategy is: the maximum brightness is enabled in the middle section of the tunnel, and the lighting fixtures in the enhanced section, transition section and exit section of the tunnel are turned off.
[0125] S64: Based on the nighttime environment outside the tunnel, judge by a preset traffic flow threshold and the real-time traffic flow data to obtain a traffic flow classification result, and control the lighting fixtures through the traffic flow classification result.
[0126] To clarify the specific acquisition method of how to control the lighting fixtures in the nighttime environment outside the tunnel, steps S64 includes S641 to S644, specifically:
[0127] S641: Based on the nighttime environment outside the tunnel, evaluate the real-time traffic flow according to a preset traffic flow threshold to obtain a traffic flow classification result, where the traffic flow classification result includes the first traffic flow, the second traffic flow and the third traffic flow;
[0128] In this step, when the one-way traffic volume V ≥ 1200 veh / (h·ln) or the two-way traffic volume V ≥ 650 veh / (h·ln), the first traffic volume is considered; when the one-way traffic volume V ≤ 350 veh / (h·ln) or the two-way traffic volume V ≤ 180 veh / (h·ln), the second traffic volume is considered; when the one-way traffic volume 350 veh / (h·ln) ≤ V ≤ 1200 veh / (h·ln) or the two-way traffic volume 180 veh / (h·ln) ≤ V ≤ 650 veh / (h·ln), the third traffic volume is considered.
[0129] S642: According to the first traffic volume, adopt the maximum illumination brightness strategy for the middle section of the tunnel, and at the same time turn off the lighting fixtures in the enhanced section, transition section and exit section of the tunnel;
[0130] S643: According to the second traffic volume, turn off the lighting fixtures in the middle section, enhanced section, transition section and exit section of the tunnel, and enable the stepped lighting system;
[0131] S644: According to the third traffic volume, obtain the illumination brightness value of the middle section of the tunnel by means of the preset interpolation method, and at the same time turn off the lighting fixtures in the enhanced section, transition section and exit section of the tunnel, and enable the stepped lighting system.
[0132] In the step, by accurately judging the brightness outside the tunnel, different lighting strategies are adopted according to the judgment results to control the lighting fixtures, providing clear vision conditions to solve the problem of the life safety of drivers and passengers during driving; the paragraph P where the obstacle is located k is transmitted to the remote control center, and the control center notifies the relevant management staff to enter the obstacle area of the tunnel to handle the obstacles in the tunnel.
[0133] Embodiment 2:
[0134] This embodiment provides an illumination control device based on tunnel obstacles, and the device includes:
[0135] An acquisition module for acquiring tunnel acquisition images;
[0136] A detection module for performing target detection on the tunnel acquisition images to obtain the obstacle contour;
[0137] A position module for drawing a tunnel graph of the tunnel, obtaining a plurality of feature slices by feature slicing the tunnel graph, and determining the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle;
[0138] To clarify the specific acquisition method of the position module, specifically:
[0139] A first acquisition unit for acquiring actual tunnel marking points;
[0140] A drawing unit for performing two-dimensional graph drawing on the tunnel, simulating in combination with the actual size and geometric shape of the tunnel to obtain a tunnel graph;
[0141] A marking unit for marking multiple key points on the tunnel graph based on the actual tunnel marking points to obtain multiple tunnel features;
[0142] A slicing unit for slicing each of the tunnel features according to a preset tunnel slicing algorithm to obtain multiple feature slices;
[0143] A position unit for determining the position of the obstacle contour based on each of the feature slices to obtain the actual road surface position of the obstacle.
[0144] A construction module for constructing a brightness design value based on the actual road surface position of the obstacle and the current in-tunnel brightness of the tunnel, and constructing through the brightness design value and the configuration information of the lighting fixtures to obtain the designed luminous power of the fixtures;
[0145] To clarify the specific acquisition method of the construction module, specifically:
[0146] A first construction unit for constructing a stopping sight distance based on the actual road surface position of the obstacle and the position of the obstacle before the stopping sight distance preset;
[0147] A second construction unit for constructing a brightness design value according to the current in-tunnel brightness of the tunnel, the stopping sight distance and the preset maximum opening brightness of the tunnel;
[0148] A third construction unit for calculating based on the brightness design value, the road surface width of the tunnel and the configuration information of the lighting fixtures to obtain the designed luminous power of the fixtures.
[0149] A correction module for calculating the actual ground brightness value from the numerical values of three channels in the tunnel acquisition image, and performing gray-scale feedback correction on the brightness value of the in-tunnel lighting controller through the designed luminous power of the fixtures and the actual ground brightness value to obtain the lighting target brightness value;
[0150] A control module for judging the brightness outside the tunnel according to the lighting target brightness value to obtain multiple brightness environments, and controlling the lighting fixtures by selecting different preset lighting strategies through the multiple brightness environments.
[0151] To clarify the specific acquisition method of the control module, specifically:
[0152] A second acquisition unit, configured to acquire real-time traffic flow data;
[0153] A judgment unit, configured to judge the real-time brightness outside the tunnel according to the lighting target brightness value and a preset brightness threshold to obtain the current brightness environment, where the current brightness environment includes a daytime environment outside the tunnel and a nighttime environment outside the tunnel;
[0154] A first control unit, configured to calculate an entrance section lighting brightness value based on the daytime environment outside the tunnel by calculating the real-time brightness outside the tunnel and a brightness reduction coefficient of the entrance section of the tunnel, and control the lighting fixtures respectively through the entrance section lighting brightness value and a preset daytime lighting control strategy;
[0155] A second control unit, configured to obtain a traffic flow classification result based on the nighttime environment outside the tunnel by judging a preset traffic flow threshold and the real-time traffic flow data, and control the lighting fixtures through the traffic flow classification result.
[0156] It should be noted that regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0157] Embodiment 3:
[0158] Corresponding to the above method embodiment, a lighting control device based on tunnel obstacles is further provided in this embodiment. A lighting control device based on tunnel obstacles described below can be correspondingly referred to with a lighting control method based on tunnel obstacles described above.
[0159] Figure 2 It is a block diagram of a lighting control device 800 based on tunnel obstacles shown according to an exemplary embodiment. As Figure 2 shown, the lighting control device 800 based on tunnel obstacles may include: a processor 801, a memory 802. The lighting control device 800 based on tunnel obstacles may further include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.
[0160] Among them, the processor 801 is used to control the overall operation of the tunnel obstacle-based lighting control device 800 to complete all or part of the steps in the above-mentioned tunnel obstacle-based lighting control method. The memory 802 is used to store various types of data to support the operation of the tunnel obstacle-based lighting control device 800. These data may include, for example, instructions for any application or method operating on the tunnel obstacle-based lighting control device 800, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, and so on. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. The multimedia component 803 may include a screen and an audio component. Among them, the screen may be a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or sent through the communication component 805. The audio component further includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the tunnel obstacle-based lighting control device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them. Therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, and an NFC module.
[0161] In an exemplary embodiment, the lighting control device 800 based on tunnel obstacles may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the above-described lighting control method based on tunnel obstacles.
[0162] Embodiment 4:
[0163] Corresponding to the above method embodiment, in this embodiment, a medium is further provided, and a medium described below can be correspondingly referred to with a lighting control method based on tunnel obstacles described above.
[0164] A medium stores a computer program, and when the computer program is executed by a processor, the steps of the lighting control method based on tunnel obstacles in the above method embodiment are implemented.
[0165] Specifically, the medium may be various media 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 disc that can store program codes.
[0166] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention may have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0167] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope
[0168] disclosed by the present invention can easily think of changes or replacements and should be covered by the protection scope of the present invention.
[0169] Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A lighting control method based on tunnel obstacles, characterized in that, Including: Obtain tunnel acquisition images; Perform object detection on the tunnel acquisition images to obtain obstacle contours; Draw a tunnel graph for the tunnel. By performing feature segmentation on the tunnel graph, obtain multiple feature slices. Determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle; Construct a brightness design value based on the actual road surface position of the obstacle and the current brightness inside the tunnel. Through the brightness design value and the configuration information of the lighting fixtures, construct the designed luminous power of the fixtures; Calculate the actual ground brightness value from the numerical values of the three channels in the tunnel acquisition images. Through the designed luminous power of the fixtures and the actual ground brightness value, perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller to obtain the lighting target brightness value; Judge the brightness outside the tunnel according to the lighting target brightness value to obtain multiple brightness environments. Control the lighting fixtures by selecting preset different lighting strategies through the multiple brightness environments.
2. The lighting control method based on tunnel obstacles according to claim 1, characterized in that drawing a tunnel graph for the tunnel. By performing feature segmentation on the tunnel graph, obtain multiple feature slices. Determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle, including: Obtain the actual marked points of the tunnel; Draw a two-dimensional graph of the tunnel, and simulate it in combination with the actual size and geometric shape of the tunnel to obtain a tunnel graph; Mark multiple key points on the tunnel graph based on the actual marked points of the tunnel to obtain multiple tunnel features; Segment each tunnel feature according to a preset tunnel slicing algorithm to obtain multiple feature slices; Determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle.
3. The lighting control method based on tunnel obstacles according to claim 2, characterized in that the feature slices include a first feature slice and a second feature slice. Determine the position of the obstacle contour through each feature slice to obtain the actual road surface position of the obstacle, including: Determine the coordinates of the obstacle contour according to the first feature slice and the second feature slice to obtain an obstacle segment; Mark the vertices of the obstacle segment to obtain segment marked points; Mark the vertices of the actual road surface of the tunnel to obtain road surface marked points; Input the segment marked points and the road surface marked points into a machine learning software library to obtain a perspective transformation matrix; Based on the inverse matrix in the perspective transformation matrix and the edge of the obstacle contour, calculate to obtain the actual road surface position of the obstacle.
4. The lighting control method based on tunnel obstacles according to claim 1, characterized in that constructing a brightness design value based on the actual road surface position of the obstacle and the current brightness inside the tunnel. Through the brightness design value and the configuration information of the lighting fixtures, construct the designed luminous power of the fixtures, including: Construct a stopping sight distance based on the actual road surface position of the obstacle and the preset position of the obstacle in front of the stopping sight distance. Construct a brightness design value according to the current brightness inside the tunnel, the stopping sight distance, and the preset maximum opening brightness of the tunnel. Perform calculations based on the brightness design value, the road surface width of the tunnel, and the configuration information of the lighting fixtures to obtain the designed luminous power of the fixtures.
5. The lighting control method based on tunnel obstacles according to claim 4, characterized in that, calculate the actual ground brightness value from the numerical values of three channels in the image collected from the tunnel, and perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller through the designed luminous power of the fixtures and the actual ground brightness value to obtain the lighting target brightness value, including: Obtain the camera parameter information. Perform numerical processing on the three channels in the image collected from the tunnel to obtain the gray-scale value of each pixel point. Perform brightness calculation based on the gray-scale value of each pixel point, the preset detection distance, and the camera parameter information to obtain the actual ground brightness value. Under the designed luminous power of the fixtures, determine whether to correct the brightness value of the in-tunnel lighting controller. When correcting the brightness value of the in-tunnel lighting controller, construct a fixture correction value through the actual ground brightness value and the preset ground design brightness. Perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller according to the fixture correction value to obtain the lighting target brightness value.
6. The lighting control method based on tunnel obstacles according to claim 5, characterized in that, under the designed luminous power of the fixtures, determine whether to correct the brightness value of the in-tunnel lighting controller. When correcting the brightness value of the in-tunnel lighting controller, construct a fixture correction value through the actual ground brightness value and the preset ground design brightness, including: Under the designed luminous power of the fixtures, when the actual ground brightness value is less than the preset ground design brightness, it is necessary to correct the brightness value of the in-tunnel lighting controller. Perform difference calculation based on the actual ground brightness value and the ground design brightness to obtain the ground brightness difference. Perform calculations based on the ground brightness difference, the road surface width of the tunnel, and the in-tunnel lighting fixture configuration information to obtain the fixture correction value.
7. An illumination control device based on tunnel obstacles, characterized in that, Including: An acquisition module for acquiring images collected from the tunnel. A detection module for performing target detection on the images collected from the tunnel to obtain the obstacle contour. A position module for drawing a tunnel graph of the tunnel, obtaining multiple feature slices by performing feature segmentation on the tunnel graph, and determining the actual road surface position of the obstacle by each feature slice for the obstacle contour. A construction module for constructing a brightness design value based on the actual road surface position of the obstacle and the current brightness inside the tunnel, and constructing the designed luminous power of the fixtures through the brightness design value and the configuration information of the lighting fixtures. A correction module, which is used to calculate the actual ground brightness value from the numerical values of three channels in the tunnel acquisition image, and perform gray-scale feedback correction on the brightness value of the in-tunnel lighting controller through the designed luminous power of the lamp and the actual ground brightness value to obtain the target lighting brightness value; A control module, which is used to judge the brightness outside the tunnel according to the target lighting brightness value to obtain multiple brightness environments, and control the lighting lamps by selecting different preset lighting strategies through the multiple brightness environments.
8. The lighting control device based on tunnel obstacles according to claim 7, characterized in that the position module includes: A first acquisition unit, which is used to acquire the actual marked points of the tunnel; A drawing unit, which is used to draw a two-dimensional graph of the tunnel, and simulate it in combination with the actual size and geometric shape of the tunnel to obtain a tunnel graph; A marking unit, which is used to mark multiple key points on the tunnel graph based on the actual marked points of the tunnel to obtain multiple tunnel features; A slicing unit, which is used to slice each of the tunnel features according to a preset tunnel slicing algorithm to obtain multiple feature slices; A position unit, which is used to determine the position of the obstacle contour according to each of the feature slices to obtain the actual road surface position of the obstacle.
9. The lighting control method based on tunnel obstacles according to claim 7, characterized in that, A construction module, including: A first construction unit, which is used to construct a distance based on the actual road surface position of the obstacle and the preset position of the obstacle before the stopping sight distance to obtain the stopping sight distance; A second construction unit, which is used to construct a brightness based on the current in-tunnel brightness of the tunnel, the stopping sight distance and the preset maximum opening brightness of the tunnel to obtain a brightness design value; A third construction unit, which is used to calculate based on the brightness design value, the road surface width of the tunnel and the configuration information of the lighting lamps to obtain the designed luminous power of the lamps.
10. The lighting control device based on tunnel obstacles according to claim 7, characterized in that the control module includes: A second acquisition unit, which is used to acquire real-time traffic flow data; A judgment unit, which is used to judge the real-time brightness outside the tunnel according to the target lighting brightness value and a preset brightness threshold to obtain the current brightness environment, and the current brightness environment includes the daytime environment outside the tunnel and the nighttime environment outside the tunnel; A first control unit, which is used to calculate the entrance section lighting brightness value based on the daytime environment outside the tunnel by calculating the real-time brightness outside the tunnel and the brightness reduction coefficient of the entrance section of the tunnel, and control the lighting lamps respectively through the entrance section lighting brightness value and a preset daytime lighting control strategy; A second control unit, which is used to judge a traffic flow classification result based on the nighttime environment outside the tunnel by judging a preset traffic flow threshold and the real-time traffic flow data, and control the lighting lamps through the traffic flow classification result.