High beam and low beam control method and device, electronic equipment and storage medium

Multi-task recognition of the image in front of the vehicle is performed through deep learning technology, and the switching of high and low beams is controlled based on the vehicle light status, which solves the problem of inaccurate switching of high and low beams in the existing technology, improves the driving experience and recognition accuracy, and reduces costs. .

CN118790137AInactive Publication Date: 2024-10-18HOZON NEW ENERGY AUTOMOBILE CO LTD

Patent Information

Application Number
CN202410895809.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing automatic switching system for high and low beams is only based on photosensitive elements to sense the intensity of external light sources. It cannot adapt to various driving scenarios, resulting in inaccurate switching. It also requires high photosensitive elements, which increases the cost of use.

Method used

Using deep learning technology, by acquiring the image data in front of the vehicle, the neural network model is used to perform multi-task recognition, including headlight recognition, scene recognition and obstacle recognition, and the high and low beam switching is controlled based on the vehicle light status to improve the switching accuracy and reliability.

Benefits of technology

It improves the accuracy and reliability of high and low beam switching, is suitable for a variety of driving environments, reduces sensor deployment costs, and improves the night driving experience and recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118790137A_ABST
    Figure CN118790137A_ABST
Patent Text Reader

Abstract

The invention discloses a high beam and low beam control method and device, electronic equipment and a storage medium. The high beam and low beam control method comprises the steps of obtaining image data in front of a vehicle; multi-task recognition is carried out on the image data based on deep learning, environment information for different tasks is obtained, the tasks comprise a vehicle lamp recognition task, a scene recognition task and an obstacle recognition task, and the environment information comprises vehicle lamp information, scene information and obstacle information; and according to the environment information and / or the vehicle lamp state of the vehicle, the vehicle lamp of the vehicle is controlled to conduct high beam and low beam switching. According to the invention, various environment information is identified based on deep learning, and the switching of the high and low beams is comprehensively controlled by combining the current vehicle lamp state, so that the switching accuracy and reliability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of scene recognition, and in particular to a high-beam and low-beam control method and device, electronic equipment and storage medium. Background Art

[0002] With the development of automobile technology, more and more people use cars as a common means of transportation. For current trams, due to their limited mileage, most of them travel in urban and suburban areas without isolation belts. For night driving under such road conditions, it is easy to face oncoming vehicles and dark scenes. At this time, it is necessary to correctly turn on the corresponding high and low beam lights to provide lighting for the field of vision in front of the vehicle. At present, the automatic switching of high and low beam lights is mostly based on the photosensitive elements installed in front of the vehicle to sense the changes in the intensity of the external light source, and then judge whether it is necessary to turn on and switch the high and low beam lights according to the light intensity information. However, this method only considers the changes in the external light source, cannot adapt to a variety of scenarios, and easily causes inaccurate switching. In addition, this method has high requirements for photosensitive elements, and when there is a need for higher recognition accuracy, it invisibly increases the cost of use. Summary of the invention

[0003] The object of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.

[0004] To this end, the first purpose of the present invention is to propose a method for controlling high and low beam lights. The method collects images in front of the vehicle, uses a neural network model based on deep learning to identify various environmental information of the image, and then controls the switching of high and low beam lights in combination with the current state of the vehicle's lights, thereby improving the accuracy and reliability of the switching of high and low beam lights, meeting the recognition requirements of various different tasks, and being suitable for a variety of driving environments.

[0005] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a method for controlling high and low beam lights, the method comprising: acquiring image data in front of a vehicle; performing multi-task recognition on the image data based on deep learning to obtain environmental information for different tasks, wherein the tasks include headlight recognition tasks, scene recognition tasks and obstacle recognition tasks, and the environmental information includes headlight information, scene information and obstacle information; and controlling the headlights of the vehicle to switch between high and low beam lights according to the environmental information and / or the headlight status of the vehicle.

[0006] According to one embodiment of the present invention, the deep learning-based recognition model performs multi-task recognition on the image data to obtain environmental information in front of the vehicle, including: preprocessing the image data and performing feature extraction on the preprocessed image data to obtain target features in front of the vehicle; using a bidirectional fusion strategy to perform feature fusion on the extracted target features to form a fused feature map; constructing corresponding prediction branches based on the headlight recognition task, the scene recognition task and the obstacle recognition task to output the category, position and confidence of the headlights, the category of the scene, and the category and confidence of the obstacles for the fused feature map.

[0007] According to one embodiment of the present invention, the residual network Resnet-10 is used to extract the target features.

[0008] According to an embodiment of the present invention, the high and low beam control method further includes: acquiring a learning speed of each task, and adjusting a weight value of each task according to the learning speed.

[0009] According to one embodiment of the present invention, the weight of each task is calculated using the following formula:

[0010]

[0011] Among them, T is a hyperparameter used to adjust the difference in weights of different tasks, K is the sum of task weights, t is the number of iterations, and λ k is the weight of the kth task, ω k (t-1) is the learning speed of the kth task at time t-1;

[0012] Among them, the learning speed of the kth task at time t-1 is calculated using the following formula:

[0013]

[0014] Among them, L k (t-1) is the loss value of the kth task at time t-1, L k (t-2) is the loss value of the kth task at time t-2, ω k (t-1) is the learning speed of the kth task at time t-1.

[0015] According to an embodiment of the present invention, the control of the vehicle's lights to switch between high and low beams according to the environmental information and / or the vehicle's light state includes: when the identified scene information is a non-lighting scene, controlling the low beam of the vehicle to be turned off; when the identified scene information is a high beam scene, if the obstacle information and the light information are not identified, controlling the high beam to be turned on; when the identified scene information is a low beam scene, if the light state is high beam on, controlling the high beam to be turned off and the low beam to be turned on, or if the light state is not on, controlling the low beam to be turned on, or if the light state is low beam on, keeping the current light state unchanged. If it is a low beam scene, determining the current light state, if the current light is high beam, switching the current high beam state to low beam, and if the light is not currently on, turning the light on to low beam.

[0016] According to one embodiment of the present invention, the high and low beam control method further includes: after controlling the high beam to be turned on, if the obstacle information or the vehicle light information is identified, controlling the high beam to be turned off and the low beam to be turned on, and after the obstacle information and / or the vehicle light information is not identified, controlling the high beam to be switched back on.

[0017] To achieve the above-mentioned purpose, the second aspect of the present invention provides a high and low beam control device, which includes: an acquisition unit, used to acquire image data in front of a vehicle; an identification unit, used to perform multi-task recognition on the image data using a recognition model based on deep learning, and obtain environmental information for different tasks, wherein the multiple tasks include headlight recognition tasks, scene recognition tasks and obstacle recognition tasks, and the environmental information includes headlight information, scene information and obstacle information; a switching unit, used to control the headlights of the vehicle to switch between high and low beams according to the environmental information and / or the headlight status of the vehicle.

[0018] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the high and low beam control method described in the embodiment of the first aspect of the present invention is implemented.

[0019] To achieve the above-mentioned purpose, a computer-readable storage medium is proposed in the fourth aspect of the present invention, and when the computer program is executed by a processor, the high and low beam control method described in the first aspect of the present invention is implemented.

[0020] The high and low beam control method of the present invention has the following advantages:

[0021] 1) Multi-task recognition of vehicle driving environment based on deep learning can meet different task requirements and is suitable for recognition in various driving environments, improving recognition accuracy and reliability, especially for night driving, which improves the driving experience.

[0022] 2) For the balance of multiple tasks, a dynamic loss adjustment strategy is introduced to balance the learning of different tasks, improve the learning accuracy, and ensure the real-time control of high and low beam lights.

[0023] 3) The layout of sensors is reduced, effectively reducing the application cost.

[0024] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0026] Figure 1 is a schematic flow chart of a method for controlling high and low beam lights according to an exemplary embodiment;

[0027] Figure 2 is a schematic diagram of a residual network Resnet-10 structure according to an exemplary embodiment;

[0028] Figure 3 is a schematic diagram of a feature fusion process according to an exemplary embodiment;

[0029] Figure 4 is a schematic block diagram of a high and low beam lamp control device according to an exemplary embodiment; and

[0030] Figure 5 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0032] A method and device for controlling high and low beam lights, an electronic device, and a storage medium according to an embodiment of the present invention will be described below with reference to the accompanying drawings.

[0033] Figure 1It is a flow chart of a high and low beam control method according to an exemplary embodiment. It should be noted that the high and low beam control method of the embodiment of the present invention can be applied to the high and low beam control device of the embodiment of the present invention, and the high and low beam control device can be configured on an electronic device or in a server. Among them, the electronic device can be a PC or a mobile terminal. The embodiment of the present invention does not impose too many restrictions on this.

[0034] like Figure 1 As shown, the high and low beam control method includes:

[0035] Step S110, acquiring image data in front of the vehicle.

[0036] Specifically, the present invention uses a vehicle-mounted camera to collect real-time image data in front of the vehicle. For example, a vehicle-side forward-looking telephoto and short-focus camera is used for image collection. The short-focus camera can capture more image information about the scene, such as the shape of the road ahead, the light intensity, and the information of the street lights ahead. The image collected by the telephoto camera includes more detailed information and positioning information, such as the shape and position of the headlights, the intensity and position of the light spot, etc.

[0037] Step S120, performing multi-task recognition on the image data based on deep learning to obtain environmental information for different tasks, wherein the tasks include a headlight recognition task, a scene recognition task, and an obstacle recognition task, and the environmental information includes headlight information, scene information, and obstacle information.

[0038] Specifically, the present invention adopts a deep learning method, that is, a neural network model is used to adopt a multi-task recognition method to identify multiple feature information in the image, and because the present invention is aimed at high and low beam control, the present invention needs to identify environmental information related to high and low beam control, for example, information about the headlights in front of the vehicle, obstacle information and scene information in which the vehicle is located.

[0039] Step S130: Control the vehicle's lights to switch between high and low beams according to the environmental information and / or the state of the vehicle's lights.

[0040] Specifically, after acquiring a plurality of information in front of the vehicle, the present invention further combines the current state of the vehicle and comprehensively determines the control of the high and low beam lights of the vehicle according to the identified plurality of environmental information.

[0041] The embodiment of the present invention recognizes the environmental information contained in the image based on deep learning, thereby controlling the high and low beam lights to turn on or off according to the environmental information and the current state of the vehicle. Compared with the prior art, the present invention comprehensively considers multiple environmental information and effectively improves the control accuracy. At the same time, the present invention uses a neural network model to recognize environmental information, with a fast recognition speed and high recognition accuracy, especially for night driving conditions, which improves the driving experience.

[0042] The above steps are further introduced and explained below in conjunction with the accompanying drawings.

[0043] In a preferred embodiment, the multi-task recognition of the image data based on deep learning is performed to obtain the environmental features in front of the vehicle, including: preprocessing the image data, and extracting features from the preprocessed image data to obtain target features in front of the vehicle; using a bidirectional fusion strategy to fuse the extracted target features to form a fused feature map; constructing corresponding prediction branches based on the headlight recognition task, the scene recognition task and the obstacle recognition task to respectively output the category, position and confidence of the headlight, the category and confidence of the scene, and the category and confidence of the obstacle for the fused feature map.

[0044] The present invention performs multi-task recognition based on deep learning. The structure of a neural network model based on deep learning is specifically introduced below with reference to the accompanying drawings.

[0045] Specifically, the neural network model includes: a backbone network, a fusion network, and a head network, wherein the backbone network is used to extract target features from the collected image data. The fusion network preferably adopts a bidirectional feature pyramid network (BiFPN) to fuse the extracted features based on a bidirectional fusion strategy. The head network divides different prediction branches based on different recognition tasks. For example, the present invention includes prediction outputs for scenes, headlights, and obstacles. Therefore, it can be divided into scene branches, headlight branches, and obstacle branches, so that each branch outputs corresponding prediction results. For example, the headlight branch predicts and outputs the category, position, and confidence of the headlights, the scene branch predicts and outputs the category of the scene and the confidence of each category, and the obstacle branch predicts and outputs the category, position, and confidence of the obstacle. The output for the position actually outputs the target box of the feature to represent the position of the feature.

[0046] Preferably, for feature extraction, the present invention preferably adopts the residual network Resnet-10.

[0047] For example, considering that the recognition algorithm of the present invention needs to be deployed on a vehicle, the real-time requirement is high, so it is necessary to reduce the cost of deploying the recognition algorithm and realize the lightweight algorithm. Therefore, the present invention preferably uses the residual network Resnet-10 to achieve a balance between extraction accuracy and real-time performance.

[0048] Figure 2 A schematic diagram of the structure of a residual network Resnet-10 is shown, as Figure 2 As shown in the figure, the feature extraction of the residual network Resnet-10 mainly includes three stages: Stage 1, Stage 2 and Stage 3. For Stage 1, it includes convolution layer (CONV), batch normalization (Batch Norm), activation function (ReLU) and maximum pooling (Max Pool). Among them, the convolution layer is used to perform preliminary feature extraction on the image in front of the vehicle, and capture low-level features such as the edge of the image through convolution operation. The image is multiplied by convolution to extract multiple features contained in the image. Batch normalization further standardizes the extracted feature data, thereby accelerating the training recognition process and improving the stability of recognition. The activation function is used to introduce nonlinearity so that the residual network can express more complex features. Maximum pooling is used for downsampling, reducing the data dimension, while retaining important features. For Stage 2 and Stage 3, these two processes include convolution block (Conv Block) and identity mapping block (ID Block) respectively. Among them, the convolution block includes multiple convolution layers, batch normalization and activation function. The output of the convolution block is directly added to the input of the module through a skip connection. Assuming the input is x and the output of the convolution block is F(x), the output of the residual module is y=F(x)+x. This formula means that the network learns F(x) to make y closer to the true value. The design of this structure enables the convolutional neural network to be more efficient in processing image data and to capture feature information at different levels. For the Output Stage, it includes average pooling (AvgPool), which is used to perform global average pooling on the feature map to reduce the dimension of the feature map.

[0049] Therefore, the multi-residual network structure of Resnet-10 is adopted, and the initial convolution layer is used to extract the basic edge and texture information of the image in front of the vehicle. As the number of subsequent layers increases, the convolution layer in Resnet can further capture more detailed features in the image, such as the shape and light intensity of the headlights. The residual module can retain and enhance the detailed features of the headlights through multiple convolutions and nonlinear transformations, combined with shortcut connections, so that the residual network can better separate and identify the type and position of the headlights. Through multi-layer convolution and pooling operations, the extracted fine features (such as the shape of the headlights, light intensity and position, etc.) are extracted and amplified layer by layer, and finally high-level features including detailed positioning information and semantic information are obtained, which is conducive to subsequent scene recognition and headlight type recognition.

[0050] For the fusion network, the present invention preferably uses a bidirectional feature pyramid network (BiFPN) to fuse features of different scales. Figure 3 As shown, the present invention adds a bidirectional cross-scale link and introduces an additional weight for different scales based on the original fusion structure, so that the fusion network can learn the importance of different scale features for output prediction. This is more suitable for multi-task learning of subsequent prediction networks, so that each task can learn to identify the corresponding features and improve the recognition accuracy.

[0051] Figure 3 P2, P3, P4, and P5 in the figure represent feature maps at different levels. These feature maps come from different layers of the convolutional network mentioned above. The higher the layer, the smaller the scale of the feature map and the higher the feature level. Feature maps at different levels can capture information at different scales. For example, P2 can capture more details, such as edge texture and light intensity, while P5 can capture more abstract concepts, such as objects and shapes.

[0052] The fusion network of the present invention adopts a bidirectional fusion from top to bottom and from bottom to top. Figure 3 The top-down path in , which starts from the high-level feature map (such as P5), and fuses downward layer by layer, adopting this path fusion method can pass high-level semantic information to the low-level feature map layer by layer. The output of P5 is passed to P4, and P4 is passed to P3, and so on. This process helps to introduce more high-level semantic information into the feature map of the lower layer. Figure 3 The bottom-up path in the algorithm starts from the low-level feature map (such as P2) and fuses upward layer by layer. This path fusion can pass fine-grained detail information to the high-level feature map layer by layer. The output of P2 is passed to P3, P3 is passed to P4, and so on. This process can help introduce more detail information in the high-level feature map.

[0053] Figure 3The feature fusion layers in are N2, N3, N4, and N5. The fusion strategy includes horizontal connections, which directly extract features from the feature maps of the corresponding layers (for example, from P2 to N2). These connections retain the original feature information; and vertical connections, which pass information through top-down and bottom-up paths to fuse feature maps at different levels. Feature maps at different levels are fused through element-by-element addition of feature maps or other fusion operations (such as convolution, weighted average, etc.) to form new feature maps N2, N3, N4, and N5.

[0054] The embodiment of the present invention effectively combines feature map information of different scales through a bidirectional weighted feature fusion pyramid. The top-down path enhances the semantic information of the low-level feature map, while the bottom-up path retains the detail information of the high-level feature map. Finally, the feature map after feature fusion has rich information. In the process of driving at night, it is relatively important to accurately identify the road environment (vehicles, headlights and street lights, etc.), and the application of BiFPN will make the identification of these elements more accurate. BiFPN effectively reduces redundant information in the feature fusion process and improves the efficiency of feature extraction and processing. For multi-task learning (such as scene detection and headlight detection), BiFPN enables each task to learn the most suitable features through weighted feature fusion. The feature requirements between different tasks can be adaptively adjusted through the network, thereby improving the overall performance and synergy of each task. BiFPN's bidirectional cross-scale links and weighted feature fusion mechanism enable the network to maintain stable recognition performance when facing different environmental conditions (such as day and night changes, weather changes). This provides a guarantee for the stability and reliability of automatic high and low beam switching in various driving scenarios.

[0055] As for the head network, it has been mentioned that different prediction branches are established according to different tasks. The headlight branch is used to detect the headlights in front of the vehicle and output the category of the headlights, the target frame of the headlights, and the confidence of the headlights. The categories of headlights include headlights, taillights, turn signals, brake lights, and street lights. The target frame of the headlights is used to determine the position of the headlights in the image. The confidence of the headlights is used to evaluate the credibility of the detection results. For different headlight detections, it is only necessary to modify the corresponding categories and input the corresponding data into the model for training, so as to identify different headlight categories. The scene branch is used to predict and output the category of the current scene and its confidence. The scene categories include high beam scene, low beam scene, and no light scene. For different scenes, it is only necessary to modify the corresponding categories and train the corresponding data into the model, so as to identify different categories and obtain the probability values ​​of the corresponding categories. Similarly, the obstacle branch is used to predict the category, location, and confidence of the obstacle. Taking scene recognition as an example, the features extracted and fused by the backbone and neck will be input into the scene branch in the head network. For example, the main structure of the scene branch can be composed of two convolutional layers and an average pooling. The input features are first subjected to the first convolution and pooling to extract higher-level features and compress the features. Then, the features are converted into the probabilities of each scene category through the second convolution layer and softmax. Finally, the category with the largest probability is taken out, which is the classification result of the currently recognized scene.

[0056] The embodiment of the present invention adopts multi-task recognition to simultaneously process multiple task recognition requirements, thereby improving the overall recognition efficiency of the model and ensuring the recognition accuracy of each task, thereby meeting the requirements for high and low beam control accuracy, being suitable for various driving scenarios, and ensuring stability and reliability in various scenarios.

[0057] In a preferred embodiment, the high and low beam control method further includes: obtaining a learning speed of each task, and adjusting a weight value of each task according to the learning speed.

[0058] For example, it has been mentioned above that the present invention adopts multi-task output, but for multiple tasks, since the difficulty of learning each task is different, there will be a greater difference in learning speed between tasks, and there will be a problem of over-learning of a task or under-learning of a task, which will affect the overall recognition accuracy of the model. Therefore, the present invention adopts a dynamic Loss adjustment strategy to adjust the weight of each task, so as to balance the recognition speed between each task. For example, by obtaining the loss value of the task, when the loss value drops too fast, it means that the learning speed is faster. At this time, the weight of the task needs to be increased, otherwise the weight of the task needs to be reduced.

[0059] More preferably, the weight of each task is calculated using the following formula:

[0060]

[0061] Among them, T is a hyperparameter used to adjust the difference in weights of different tasks, K is the sum of task weights, t is the number of iterations, and λ k is the weight of the kth task, ω k (t-1) is the learning speed of the kth task at time t-1;

[0062] Among them, the learning speed of the kth task at time t-1 is calculated using the following formula:

[0063]

[0064] Among them, L k (t-1) is the loss value of the kth task at time t-1, L k (t-2) is the loss value of the kth task at time t-2, ω k (t-1) is the learning speed of the kth task at time t-1.

[0065] For example, the weight calculation in the embodiment of the present invention adopts the Softmax method, and the sum of the weights K is related to the number of tasks. For example, if there are two tasks in this study, K takes a value of 2. T is a hyperparameter used to adjust the degree of difference in the weights of different tasks. By adjusting the T value, the uniformity of weight distribution can be controlled. When the T value is high, the task weights are more evenly distributed, while when the T value is low, the task weights reflect the relative decline rate (learning speed) more.

[0066] In an embodiment of the present invention, the dynamic Loss adjustment strategy allows the weight of each task to be dynamically adjusted according to its learning speed, which can balance the training progress of fast learning and slow learning tasks, and avoid the problem of over-learning of some tasks and under-learning of other tasks. And when the loss of a task decreases slowly, its weight will increase accordingly, and the model will invest more learning resources in this task. This mechanism ensures that each task can fully learn the corresponding features and improves the overall recognition accuracy. This is especially important for scene recognition and headlight detection tasks, because the learning difficulty and feature requirements of these two tasks are different. In this way, the dynamic Loss adjustment strategy makes the training and recognition process adaptive, and the adjustment strategy can be implemented according to the learning situation of different tasks.

[0067] In a preferred embodiment, the controlling of the vehicle's lights to switch between high and low beams according to the environmental information and / or the vehicle's light status includes: when the identified scene information is a no-lights scene, controlling the vehicle's low beams to turn off; when the identified scene information is a high beam scene, if the obstacle information and light information are not identified, controlling the high beams to turn on; when the identified scene information is a low beam scene, if the light status is high beam on, controlling the high beam to turn off and the low beam to turn on, or if the light status is that the light is not on, controlling the low beam to turn on, or if the light status is that the light is on, keeping the current light status unchanged.

[0068] For example, after scene information, headlight information, and obstacle information are output based on deep learning, the output information can be used to determine how to switch between high and low beams. Specifically, if the output is a no-lights scene, it means that the current external light intensity is good, so the high and low beams can be turned off at this time. When the output is a high-beam scene, it means that the current external light conditions are poor, and the high beams need to be turned on to facilitate the driver to observe the situation ahead. At this time, it is further determined whether there are obstacles and headlights. If not, the high beams can be turned on. If they exist, such as a car meeting in front, turning on the high beams will affect the driving light of the oncoming car, so the high beams cannot be turned on in this case. If the low-beam scene is output, it is necessary to determine the current state of the headlights and switch according to the current state of the headlights.

[0069] More preferably, the high and low beam control method also includes: after controlling the high beam to be turned on, if the obstacle information or the vehicle light information is identified, controlling the high beam to be turned off and the low beam to be turned on, and after the obstacle information and / or the vehicle light information is not identified, controlling the high beam to be switched back on.

[0070] In the embodiment of the present invention, by controlling the high and low beam lights according to the logic judgment for different outputs, the high and low beam light switching requirements in more application environments can be met, and the control accuracy can be improved.

[0071] In summary, the method provided by the present invention has the following advantages:

[0072] 1) Multi-task recognition of vehicle driving environment based on deep learning can meet different task requirements and is suitable for recognition in various driving environments, improving recognition accuracy and reliability, especially for night driving, which improves the driving experience.

[0073] 2) For the balance of multiple tasks, a dynamic loss adjustment strategy is introduced to balance the learning of different tasks, improve the learning accuracy, and ensure the real-time control of high and low beam lights.

[0074] 3) The layout of sensors is reduced, effectively reducing the application cost.

[0075] 4) The resnet_10 lightweight network is introduced to effectively extract features; BiFPN is used to effectively fuse features of different scales, and weights are introduced to allow the network to adaptively learn the importance of features to the output, and multi-task recognition is used to meet the requirements of different tasks, ensuring accuracy while having a high detection speed.

[0076] Based on the same inventive concept as the above-mentioned high and low beam control method, an embodiment of the present invention provides a high and low beam control device, such as Figure 4 As shown, the device 400 includes: an acquisition unit 410, which is used to acquire image data in front of the vehicle; an identification unit 420, which is used to perform multi-task identification on the image data based on deep learning to obtain environmental information for different tasks, wherein the multiple tasks include a headlight identification task, a scene identification task and an obstacle identification task, and the environmental information includes headlight information, scene information and obstacle information; a switching unit 430, which is used to control the headlights of the vehicle to switch between high and low beams according to the environmental information and / or the headlight status of the vehicle. .

[0077] The specific implementation contents and advantages of the high and low beam control device of the present invention can be referred to the embodiment of the high and low beam control method mentioned above, which will not be elaborated herein.

[0078] Accordingly, an embodiment of the present invention further provides an electronic device, such as Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present invention. The electronic device in the embodiment of the present invention may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0079] like Figure 5As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0080] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0081] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention provides a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present invention are executed.

[0082] It should be noted that the computer-readable medium of the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0083] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0084] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0085] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains image data in front of the vehicle; performs multi-task recognition on the image data based on deep learning to obtain environmental information for different tasks, wherein the tasks include headlight recognition tasks, scene recognition tasks and obstacle recognition tasks, and the environmental information includes headlight information, scene information and obstacle information; and controls the headlights of the vehicle to switch between high and low beams according to the environmental information and / or the headlight status of the vehicle.

[0086] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] The units involved in the embodiments of the present invention may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0089] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0090] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.

[0092] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0093] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for controlling high and low beam lights, characterized in that: The high and low beam lamp control method comprises: Acquire image data in front of the vehicle; Performing multi-task recognition on the image data based on deep learning to obtain environmental information for different tasks, wherein the tasks include a headlight recognition task, a scene recognition task, and an obstacle recognition task, and the environmental information includes headlight information, scene information, and obstacle information; According to the environmental information and / or the status of the vehicle's lights, the vehicle's lights are controlled to switch between high and low beams.

2. The high and low beam light control method according to claim 1, characterized in that: The performing multi-task recognition on the image data based on deep learning to obtain the environment information in front of the vehicle includes: Preprocessing the image data, and performing feature extraction on the preprocessed image data to obtain target features in front of the vehicle; A bidirectional fusion strategy is used to fuse the extracted target features to form a fused feature map; Based on the vehicle headlight recognition task, the scene recognition task and the obstacle recognition task, corresponding prediction branches are constructed to output the category, position and confidence of the vehicle headlight, the category of the scene and the category and confidence of the obstacle for the fused feature map.

3. The high and low beam light control method according to claim 2, characterized in that: The residual network Resnet-10 is used to extract the target features.

4. The high and low beam light control method according to claim 1, characterized in that: The high and low beam lamp control method further includes: A learning speed of each task is obtained, and a weight value of each task is adjusted according to the learning speed.

5. The high and low beam light control method according to claim 4, characterized in that: The weight of each task is calculated using the following formula: Among them, T is a hyperparameter used to adjust the difference in weights of different tasks, K is the sum of task weights, t is the number of iterations, and λ k is the weight of the kth task, ω k (t-1) is the learning speed of the kth task at time t-1; Among them, the learning speed of the kth task at time t-1 is calculated using the following formula: Among them, L k (t-1) is the loss value of the kth task at time t-1, L k (t-2) is the loss value of the kth task at time t-2, ω k (t-1) is the learning speed of the kth task at time t-1.

6. The high and low beam light control method according to claim 1, characterized in that: The step of controlling the vehicle's headlights to switch between high and low beams according to the environmental information and / or the headlight status of the vehicle includes: When the identified scene information is a no-lights scene, controlling the low beam headlights of the vehicle to be turned off; When the identified scene information is a high beam scene, if the obstacle information and the vehicle light information are not identified, controlling the high beam to be turned on; In the case where the identified scene information is a low beam scene, if the vehicle light state is that the high beam is on, the high beam is controlled to be turned off and the low beam is turned on, or if the vehicle light state is that the vehicle light is not turned on, the low beam is controlled to be turned on, or if the vehicle light state is that the low beam is on, the current vehicle light state is kept unchanged.

7. The high and low beam control method according to claim 6, characterized in that: The high and low beam lamp control method further includes: After the high beam is controlled to be turned on, if the obstacle information or the vehicle light information is identified, the high beam is controlled to be turned off and the low beam is turned on. When the obstacle information and / or the vehicle light information is not identified, the high beam is controlled to be switched back on.

8. A high and low beam light control device, characterized in that: The high and low beam lamp control device comprises: An acquisition unit, used for acquiring image data in front of the vehicle; a recognition unit, configured to perform multi-task recognition on the image data based on deep learning to obtain environmental information for different tasks, wherein the tasks include a headlight recognition task, a scene recognition task, and an obstacle recognition task, and the environmental information includes headlight information, scene information, and obstacle information; A switching unit is used to control the vehicle's lights to switch between high and low beams according to the environmental information and / or the state of the vehicle's lights.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the high and low beam control method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the high and low beam control method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Weak supervision fine-grained image recognition method based on visual self-attention mechanism

    CN111539469A

  • High beam and low beam switching control method, storage medium and electronic equipment

    CN114789689A

  • Image direction determination method and device, electronic equipment and medium

    CN116052181A

  • Light control method and device

    CN117104125A

  • Target detection and identification method and device, electronic equipment and storage medium

    CN117876831A

Cited By

  • Vehicle high beam and low beam switching method and system, vehicle and storage medium

    CN119283762A