Method and system for assisting driving processing, storage medium and program product
By using a feature extraction model that integrates the attention mechanism in lane line detection, the lane line related areas are strengthened, which solves the problem of difficulty in balancing the efficiency and accuracy of deep learning models in lane line detection, and improves the efficiency and accuracy of assisted driving processing. Spend.
Patent Information
- Application Number
- CN202410636759.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-22
AI Technical Summary
It is difficult for deep learning models to balance processing efficiency and detection accuracy in lane line detection, resulting in low efficiency of assisted driving processing.
The feature extraction model that integrates the attention mechanism is used to extract features from the image by specifying the attention area, strengthening the lane line-related areas and weakening the irrelevant areas, thereby improving the detection accuracy of the lane line positioning model.
It achieves higher lane line detection accuracy with fewer model parameters and improves the efficiency and accuracy of assisted driving processing.
Smart Images

Figure CN118537827A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent driving technology, and in particular to a method, system, storage medium and program product for assisted driving processing. Background Art
[0002] Lane line detection is one of the technologies in the field of intelligent driving technology. During the driving process of the car, the driver needs to drive according to the lane lines. The driving route is planned for the driver. When the car deviates from the lane lines, assisted driving can be performed.
[0003] In the related technology, lane line detection is performed based on a deep learning model, and assisted driving processing is performed based on the identified lane lines.
[0004] However, deep learning models are relatively complex and cannot strike a good balance between processing efficiency and detection accuracy. Summary of the invention
[0005] In order to solve the related technical problems, the present disclosure provides a method, system, storage medium and program product for assisted driving processing. The technical solution is as follows:
[0006] In a first aspect, a method for assisted driving processing is provided, the method being applied to a target vehicle, the target vehicle comprising a vehicle computer and a camera, the camera being installed at the front end of the target vehicle, the shooting direction of the camera being toward the front of the target vehicle, the method comprising:
[0007] The vehicle computer obtains the image captured by the camera;
[0008] The vehicle computer extracts features from the image based on a first feature extraction model of a fusion attention mechanism to obtain a first feature image, wherein the attention area corresponding to the first feature extraction model of the fusion attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area;
[0009] The vehicle computer inputs the first feature image into a lane line positioning model to obtain lane line position information output by the lane line positioning model;
[0010] If the lane line position information output by the lane line positioning model is not empty, the vehicle computer performs assisted driving processing based on the lane line position information.
[0011] In a possible implementation, the first feature extraction model based on the fusion attention mechanism extracts features from the image to obtain a first feature image, including:
[0012] The vehicle computer performs preprocessing on the image, wherein the preprocessing includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization;
[0013] The vehicle computer inputs the preprocessed image into a first feature extraction model integrating an attention mechanism to obtain a feature first image.
[0014] In a possible implementation, the method further includes:
[0015] The vehicle computer performs feature extraction on the image based on the second feature extraction model of the fusion attention mechanism to obtain a second feature image, wherein the attention area corresponding to the second feature extraction model of the fusion attention mechanism includes a third area, and the third area extends from the middle of the upper edge to the middle of the lower edge of the image area;
[0016] The vehicle computer inputs the second feature image into a road surface mark recognition model to obtain a road surface mark output by the road surface mark recognition model;
[0017] The vehicle computer performs assisted driving processing based on the lane line position information, including:
[0018] The vehicle computer performs assisted driving processing based on the lane line position information and the road surface markings.
[0019] In a possible implementation, the method further includes:
[0020] The vehicle computer inputs the image into an obstruction recognition model, and obtains the type of obstruction on the camera surface output by the obstruction recognition model;
[0021] The vehicle computer determines the target cleaning component corresponding to the type of the obstruction on the camera surface based on the pre-stored correspondence between the type of the obstruction and the cleaning component;
[0022] The vehicle computer controls the target cleaning component to clean the surface of the camera.
[0023] In a possible implementation, the types of obstructions include water droplet type, fog type, silt type and foreign matter type;
[0024] The cleaning components include a fan, a heater, a water gun and an electric brush;
[0025] In the corresponding relationship, the water drop type corresponds to the fan, the mist type corresponds to the heater, the sludge type corresponds to the water gun, and the foreign matter type corresponds to the electric brush.
[0026] In a possible implementation, the vehicle computer performs assisted driving processing based on the lane line position information, including:
[0027] When the vehicle computer determines that the lane line position information is partially missing, the lane line position information is supplemented to obtain supplemented lane line position information;
[0028] The vehicle computer performs assisted driving processing based on the completed lane line position information.
[0029] In a possible implementation, the lane line position information includes a plurality of lane line position points.
[0030] In a second aspect, a system for assisting driving processing is provided, the system comprising a vehicle computer and a camera, the camera being installed at the front end of the target vehicle, and the shooting direction of the camera being toward the front of the target vehicle;
[0031] The vehicle computer is used to obtain the image captured by the camera;
[0032] The vehicle computer is used to extract features from the image based on a first feature extraction model of a fused attention mechanism to obtain a first feature image, wherein the attention area corresponding to the first feature extraction model of the fused attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area;
[0033] The vehicle computer is used to input the first feature image into a lane line positioning model to obtain lane line position information output by the lane line positioning model;
[0034] The vehicle computer is used to perform assisted driving processing based on the lane line position information if the lane line position information output by the lane line positioning model is not empty.
[0035] In a possible implementation, the vehicle computer is used to:
[0036] Preprocessing the image, wherein the preprocessing includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization;
[0037] The preprocessed image is input into the first feature extraction model of the fused attention mechanism to obtain the feature first image.
[0038] In a possible implementation, the vehicle computer is further used for:
[0039] Based on the second feature extraction model of the fused attention mechanism, feature extraction is performed on the image to obtain a second feature image, wherein the attention area corresponding to the second feature extraction model of the fused attention mechanism includes a third area, and the third area extends from the middle of the upper edge to the middle of the lower edge of the image area;
[0040] Inputting the second feature image into a road surface marking recognition model to obtain a road surface marking output by the road surface marking recognition model;
[0041] Based on the lane line position information, assisted driving processing is performed, including:
[0042] Based on the lane line position information and the road surface markings, assisted driving processing is performed.
[0043] In a possible implementation, the vehicle computer is further used for:
[0044] Inputting the image into an occlusion recognition model to obtain an occlusion type on the camera surface output by the occlusion recognition model;
[0045] Determining a target cleaning component corresponding to the type of obstruction on the camera surface based on a pre-stored correspondence between the type of obstruction and the cleaning component;
[0046] The target cleaning component is controlled to clean the surface of the camera.
[0047] In a possible implementation, the types of obstructions include water droplet type, fog type, silt type and foreign matter type;
[0048] The cleaning components include a fan, a heater, a water gun and an electric brush;
[0049] In the corresponding relationship, the water drop type corresponds to the fan, the mist type corresponds to the heater, the sludge type corresponds to the water gun, and the foreign matter type corresponds to the electric brush.
[0050] In a possible implementation, the vehicle computer is used to:
[0051] When the vehicle computer determines that the lane line position information is partially missing, the lane line position information is supplemented to obtain supplemented lane line position information;
[0052] Assisted driving processing is performed based on the completed lane line position information.
[0053] In a possible implementation, the lane line position information includes a plurality of lane line position points.
[0054] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer program code. When the computer program code is executed by a computer device, the computer device executes the method provided by the first aspect and its possible implementation methods.
[0055] According to a fourth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by a computer device, the computer device executes the method provided by the first aspect and possible implementations thereof.
[0056] Using this method, the first area and the second area are the areas where lane lines are most likely to appear in the images taken by the front of the vehicle. These two areas are used as attention areas. The feature extraction model integrating the attention mechanism can strengthen the image areas related to the lane lines and weaken the image areas unrelated to the lane lines. In this way, the lane line positioning model can achieve higher detection accuracy with fewer model parameters, thereby better balancing processing efficiency and detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a structural diagram of a system for assisted driving processing provided by an embodiment of the present disclosure;
[0058] Figure 2 is a structural schematic diagram of a vehicle computer provided by an embodiment of the present disclosure;
[0059] Figure 3 is a structural schematic diagram of a camera provided by an embodiment of the present disclosure;
[0060] Figure 4 It is a schematic diagram of a processing flow of a method for assisted driving processing provided by an embodiment of the present disclosure;
[0061] Figure 5 is a schematic diagram of an attention area provided by an embodiment of the present disclosure;
[0062] Figure 6 is a schematic diagram of an anchor frame provided by an embodiment of the present disclosure;
[0063] Figure 7 is a schematic diagram of a processing flow of an assisted driving process provided by an embodiment of the present disclosure;
[0064] Figure 8 is a schematic diagram of an attention area provided by an embodiment of the present disclosure;
[0065] Fig. 9 is a schematic diagram of a processing flow of an assisted driving process provided by an embodiment of the present disclosure;
[0066] Fig.10is a schematic diagram of an attention area provided by an embodiment of the present disclosure;
[0067] Fig.11 is a schematic diagram of a processing flow of an assisted driving process provided by an embodiment of the present disclosure;
[0068] Fig.12 is a schematic diagram of a road width provided by an embodiment of the present disclosure;
[0069] Fig.13 is a schematic diagram of a road width provided by an embodiment of the present disclosure;
[0070] Fig.14 It is a schematic diagram of a processing flow for clearing obstructions on the surface of a camera provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] Lane line detection is one of the technologies in the field of intelligent driving technology. During the driving process of the car, the driver needs to drive according to the lane lines. The driving route is planned for the driver. When the car deviates from the lane lines, assisted driving can be performed.
[0072] The embodiment of the present disclosure provides a method for assisted driving processing. The execution subject of the method may be a target vehicle. The assisted driving processing system in the target vehicle may include a vehicle computer 110 and a camera 120. Figure 1 As shown, the camera 120 is installed at the front end of the target vehicle, and the shooting direction of the camera 120 is toward the front of the target vehicle.
[0073] The vehicle computer 110 includes functions capable of realizing communication between the target vehicle and other devices, such as Figure 2 As shown, a processor 210 , a memory 220 , a display component 230 and a communication component 240 may be included.
[0074] The processor 210 may be a central processing unit (CPU) or a system on chip (SoC), etc. The processor 210 may be used to process various operation instructions, for example, to perform assisted driving processing, etc.
[0075] The memory 220 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 220 may be used to store initial data, intermediate data, and result data used in the relevant processing process, for example, to store road markings and traffic signs.
[0076] The display component 230 can be an independent screen, or a screen integrated with the user device body, a projector, etc. The screen can be a touch screen or a non-touch screen (which can be displayed remotely), etc. The display component 230 is used to display the system interface, application interface, etc., for example, display lane lines, etc.
[0077] The communication component 240 may be a wired network connector, ultra wide band (UWB), wireless fidelity (WiFi) module, Bluetooth module, cellular network communication module, etc. The communication component 240 may be used to receive and send various instructions and data, for example, to obtain images captured by a camera, etc.
[0078] The camera 120 includes functions capable of communicating with the vehicle computer, such as Figure 3 As shown, a processor 310 , a memory 320 and a communication component 330 may be included.
[0079] The processor 310 may be a CPU or a SoC, etc. The processor 310 may be used to execute various instructions involved in the method, for example, to process instructions of a vehicle computer, etc.
[0080] The memory 320 may include various volatile memories or non-volatile memories, such as SSD, DRAM memory, etc. The memory 320 may be used to store pre-stored data, intermediate data, and result data in content type conversion and display processing, for example, to store captured images, etc.
[0081] The communication component 330 may be a wired network connector, UWB, WiFi module, Bluetooth module, cellular network communication module, etc. The communication component 330 may be used to receive various instructions and data, etc. For example, to send the captured image to the vehicle computer, etc.
[0082] The present disclosure provides a method for assisting driving. The processing flow of the method can be as follows: Figure 4 As shown, the following steps are included:
[0083] 401, the vehicle computer obtains the image captured by the camera.
[0084] Generally, there are multiple cameras installed on a car. The camera installed at the front of the target vehicle faces the front of the target vehicle and is used to capture the road conditions in front of the vehicle. The camera captures images in real time and sends them to the vehicle computer.
[0085] In addition, images can also be acquired through road surveillance videos.
[0086] 402 , the vehicle computer extracts features of the image based on the first feature extraction model integrating the attention mechanism to obtain a first feature image.
[0087] The vehicle computer can preprocess the image, which includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization. Grayscale refers to the degree of lightness or darkness of the image color. The grayscale processing method can be component method, maximum value method, average method, and weighted average method. Normalization is to convert the pixel value in the image to between 0 and 1. The vehicle computer inputs the preprocessed image into the first feature extraction model of the fusion attention mechanism.
[0088] The attention area corresponding to the first feature extraction model of the fusion attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area. Figure 5 As shown, AB and CD are two lane lines, and the two dotted boxes are the first area and the second area respectively.
[0089] First, perform initial feature extraction on the image to obtain an initial feature image. Input the initial feature image into the channel attention module to obtain a channel feature image. Input the channel feature image into the spatial attention module to obtain the first feature image.
[0090] The first feature extraction model that integrates the attention mechanism uses ResNet34 as the backbone network and contains 5 stages, that is, 5 convolution stages with different parameters, and performs feature extraction through multiple convolution layers. The attention mechanism is added to stage3, stage4, and stage5. The attention mechanism includes the channel attention mechanism and the spatial attention mechanism. The channel attention mechanism performs global maximum pooling and global average pooling operations on the image to obtain a feature vector, which is multiplied by the initial feature image to obtain a channel feature image. The spatial attention mechanism performs a convolution operation on the image to obtain a feature vector, which is multiplied by the channel feature image to obtain the first feature image. In this way, the feature image output by the first feature extraction model that integrates the attention mechanism can pay more attention to the image area with strong lane line features.
[0091] In addition, the first feature image output by the first feature extraction model integrating the attention mechanism can be input into a variable convolutional neural network to make the extraction of lane line features more accurate.
[0092] 403 , the vehicle computer inputs the first feature image into the lane line positioning model to obtain lane line position information output by the lane line positioning model.
[0093] The first feature image output by the above model is input into the lane line positioning model to obtain multiple lane line anchor frames. The lane line positioning model selects the anchor points of the lane lines in units of lines. A small square is an anchor frame, and the anchor frame of each line with lane lines is determined in units of lines. For example Figure 6 As shown, AB and CD are two lane lines, and the anchor boxes with lane lines in the bold rows are two black anchor boxes.
[0094] The lane line position information may include multiple lane line position points.
[0095] 404, if the lane line position information output by the lane line positioning model is not empty, the vehicle computer performs assisted driving processing based on the lane line position information.
[0096] When the vehicle computer determines that the lane line position information is partially missing, the lane line position information can be supplemented to obtain the supplemented lane line position information.
[0097] There are many ways to complete the lane line position information.
[0098] Method 1: When the vehicle computer determines that the lane line position information has a missing lane line position point, at least one lane line position point is inserted into multiple lane line position points based on the interpolation method to obtain the completed lane line position information. Specifically, the missing lane line position points can be completed using interpolation methods such as Lagrange interpolation method and Newton interpolation method.
[0099] Method 2: When the vehicle computer determines that there are missing lane line position points in the lane line position information, linear fitting is performed based on multiple lane line position points to obtain the lane line, and at least one lane line position point is inserted into the multiple lane line position points based on the lane line to obtain the completed lane line position information.
[0100] The vehicle computer performs assisted driving processing based on the completed lane line position information.
[0101] The completed lane line position information may be multiple lane line position points, and these multiple lane line position points may form a complete lane line. The vehicle computer performs assisted driving processing according to the position of the lane line to keep the vehicle driving within the lane line.
[0102] If the lane line position information output by the lane line positioning model is empty, the road edge position information can be extracted, and then assisted driving processing can be performed based on the road edge position information. The specific steps are described in detail in the following process.
[0103] In a possible implementation, the process of the vehicle computer performing the assisted driving process can also be as follows: Figure 7 As shown, the following steps are included:
[0104] 701, the vehicle computer obtains the image captured by the camera.
[0105] The camera captures images in real time and sends them to the vehicle computer.
[0106] In addition, images can also be acquired through road surveillance videos.
[0107] 702, the vehicle computer extracts features of the image based on the second feature extraction model integrating the attention mechanism to obtain a second feature image.
[0108] The vehicle computer can preprocess the image, which includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization. Grayscale refers to the degree of lightness or darkness of the image color, and the grayscale processing method can be component method, maximum value method, average method, and weighted average method. Normalization is to convert the pixel value in the image to between 0 and 1. The vehicle computer inputs the preprocessed image into the second feature extraction model of the fusion attention mechanism to obtain the second feature image output by the feature extraction model of the fusion attention mechanism.
[0109] The attention region corresponding to the second feature extraction model of the fusion attention mechanism includes a third region, and the third region extends from the middle of the upper edge to the middle of the lower edge of the image region. Figure 8 As shown, AB and CD are two lane lines, there is a deceleration road sign between the two lane lines, and the dotted box is the third area.
[0110] 703 , the vehicle computer inputs the second feature image into the road surface mark recognition model to obtain the road surface mark output by the road surface mark recognition model.
[0111] The second feature image is input into a road surface marking recognition model. The road surface marking recognition model may be a machine learning model, which may recognize road surface markings in the image and obtain road surface markings output by the road surface marking recognition model.
[0112] When the vehicle computer determines that a part of the road sign is missing, the road sign can be supplemented to obtain the supplemented road sign. The vehicle computer can pre-store images of various road signs, and the supplement method can be to calculate the similarity between the current image and the pre-stored road sign images, determine the pre-stored road sign images whose similarity exceeds the similarity threshold, and supplement the current image based on the pre-stored road sign images.
[0113] 704, the vehicle computer performs assisted driving processing based on the lane line position information and road markings.
[0114] The vehicle computer can perform assisted driving processing based on the road markings and the lane line position information determined by the above process. For example, when the vehicle computer recognizes a road marking in front of the car that indicates a deceleration, if the driver does not decelerate, the driver can be prompted to decelerate by voice, or the vehicle can decelerate automatically.
[0115] In a possible implementation, the process of the vehicle computer performing the assisted driving process can also be as follows: Fig. 9 As shown, the following steps are included:
[0116] 901, the vehicle computer obtains the image captured by the camera.
[0117] The camera captures images in real time and sends them to the vehicle computer.
[0118] In addition, images can also be acquired through road surveillance videos.
[0119] 902, the vehicle computer extracts features of the image based on the third feature extraction model integrating the attention mechanism to obtain a third feature image.
[0120] The vehicle computer can preprocess the image, which includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization. Grayscale refers to the degree of lightness or darkness of the image color, and the grayscale processing method can be component method, maximum value method, average method, and weighted average method. Normalization is to convert the pixel value in the image to between 0 and 1. The vehicle computer inputs the preprocessed image into the third feature extraction model of the fusion attention mechanism to obtain the third feature image output by the third feature extraction model of the fusion attention mechanism.
[0121] The attention region corresponding to the third feature extraction model of the fusion attention mechanism includes a fourth region, and the fourth region extends from the upper left edge of the image region to the upper right edge. Fig.10 As shown, AB and CD are two lane lines, there is a traffic sign with a speed limit of 60 kilometers per hour on the right lane line, and the dotted box is the fourth area.
[0122] 903, the vehicle computer inputs the third feature image into the traffic sign recognition model to obtain a traffic sign output by the traffic sign recognition model.
[0123] The third feature image is input into a traffic sign recognition model. The traffic sign recognition model may be a machine learning model, which can recognize traffic signs in the image and obtain traffic signs output by the traffic sign recognition model.
[0124] When the vehicle computer determines that a traffic sign is partially missing, the traffic sign can be supplemented to obtain a supplemented traffic sign. The vehicle computer can pre-store images of various traffic signs, and the supplementing method can be to calculate the similarity between the current image and the pre-stored traffic sign image, determine the pre-stored traffic sign image whose similarity exceeds a similarity threshold, and supplement the current image based on the image.
[0125] 904, the vehicle computer performs assisted driving processing based on the lane position information, road markings and traffic signs.
[0126] The vehicle computer can perform assisted driving processing based on traffic signs, lane line position information determined in the above process, and road markings. For example, when the vehicle computer recognizes a traffic sign prohibiting U-turns in front of the car, if the driver makes a U-turn, the driver can be prompted by voice that U-turns are prohibited ahead.
[0127] In a possible implementation, the process of the vehicle computer performing the assisted driving process can also be as follows: Fig.11 As shown, the following steps are included:
[0128] 1101. The vehicle computer inputs the first feature image into a road edge positioning model to obtain road edge position information output by the road edge positioning model.
[0129] In addition, the images captured by the camera can also be directly input into the road edge positioning model.
[0130] 1102, the vehicle computer performs assisted driving processing based on the road edge position information.
[0131] The vehicle computer determines the road width based on the road edge position information. The vehicle computer determines the lowest position of the two edge lines of the road in the image based on the road edge position information. For each edge line of the road, if the lowest position of the edge line is at the lower edge of the image, for example Fig.12 As shown, the vehicle computer determines the lowest position A and B as the reference position. If the lowest position of the edge line is at the side edge of the image, for example Fig.13 As shown, the vehicle computer extends the edge line and the lower edge of the image respectively, determines the intersection positions C and D of the edge line and the lower edge of the image as reference positions, and determines the distance between the two reference positions as the target reference width. The vehicle computer searches for the road width corresponding to the target reference width based on the correspondence between the pre-stored reference width and the road width, such as shown in Table 1, as the road width.
[0132] Table 1
[0133] Reference width Road width 5 cm 3 meters 6 cm 3.5 m …… ……
[0134] The vehicle computer performs assisted driving based on the road width.
[0135] The vehicle computer can select the current driving range according to the current road width. For example, if the road width is greater than or equal to twice the preset minimum lane width, the vehicle computer controls the target vehicle to drive on the right side of the road; if the road width is less than twice the preset lane width, the vehicle computer controls the target vehicle to drive in the middle of the road.
[0136] In a possible implementation, when there is an obstruction on the camera surface, the following can be performed: Fig.14 The process shown comprises the following steps:
[0137] 1401, the vehicle computer inputs the image into the occlusion recognition model, and obtains the occlusion type on the camera surface output by the occlusion recognition model.
[0138] The camera is installed outside the car, and there may be obstructions on the surface, for example, there may be rain obstruction when it rains, there may also be mud obstruction, etc. The vehicle computer inputs the image taken by the camera into the obstruction recognition model, which can be a machine learning model, to obtain the type of obstruction on the camera surface output by the obstruction recognition model.
[0139] 1402. The vehicle computer determines a target cleaning component corresponding to the type of obstruction on the camera surface based on a pre-stored correspondence between the type of obstruction and the cleaning component.
[0140] The correspondence between the types of obstructions and the cleaning components pre-stored in the vehicle computer can be shown in Table 2. The types of obstructions can include water droplet type, mist type, sludge type, and foreign matter type, etc. The cleaning components can include fans, heaters, water guns, and electric brushes, etc. In the correspondence, the water droplet type corresponds to the fan, the mist type corresponds to the heater, the sludge type corresponds to the water gun, and the foreign matter type corresponds to the electric brush. After determining the type of obstruction, determine the target cleaning component in the above correspondence.
[0141] Table 2
[0142] Type of occluder Cleaning parts Water drop type Fan Mist Type Heater …… ……
[0143] 1403, the vehicle computer controls the target cleaning component to clean the surface of the camera.
[0144] The vehicle computer can control the target cleaning component to clean the camera surface, so that the camera can capture images without obstructions.
[0145] In the disclosed embodiment, the first area and the second area are the areas where lane lines are most likely to appear in an image taken by the front of a general vehicle. These two areas are used as attention areas, and a feature extraction model integrating the attention mechanism can strengthen the image areas related to the lane lines and weaken the image areas unrelated to the lane lines. In this way, the lane line positioning model can achieve higher detection accuracy with fewer model parameters, thereby better balancing processing efficiency and detection accuracy.
[0146] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0147] The embodiment of the present disclosure also provides a system for assisting driving processing, the system includes a vehicle computer 110 and a camera 120, the camera is installed at the front end of a target vehicle, and the shooting direction of the camera is toward the front of the target vehicle;
[0148] The vehicle computer 110 is used to obtain the image captured by the camera 120. Specifically, the processing function of the above step 401 and other implicit steps can be implemented.
[0149] The vehicle computer 110 is used to extract features from the image based on the first feature extraction model of the fusion attention mechanism to obtain a first feature image, wherein the attention area corresponding to the first feature extraction model of the fusion attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area. Specifically, the processing function of the above step 402 and other implicit steps can be realized.
[0150] The vehicle computer 110 is used to input the first feature image into the lane line positioning model to obtain the lane line position information output by the lane line positioning model. Specifically, the processing function of the above step 403 and other implicit steps can be realized.
[0151] The vehicle computer 110 is used to perform assisted driving processing based on the lane line position information if the lane line position information output by the lane line positioning model is not empty. Specifically, the processing function of the above step 404 and other implicit steps can be realized.
[0152] In a possible implementation, the vehicle computer 110 is used to: preprocess the image, the preprocessing includes at least one of scaling processing of a specified ratio, grayscale processing, and normalization; input the preprocessed image into the first feature extraction model of the fusion attention mechanism to obtain a feature first image. Specifically, the processing function of the above step 402 and other implicit steps can be implemented.
[0153] In a possible implementation, the vehicle computer 110 is further used to: extract features from the image based on the second feature extraction model of the fusion attention mechanism to obtain a second feature image, wherein the attention area corresponding to the second feature extraction model of the fusion attention mechanism includes a third area, and the third area extends from the middle of the upper edge to the middle of the lower edge of the image area; input the second feature image into the road surface marking recognition model to obtain the road surface marking output by the road surface marking recognition model; perform assisted driving processing based on the lane line position information and the road surface marking. Specifically, the processing functions of the above steps 701, 702, 703, and 704, as well as other implicit steps, can be implemented.
[0154] In a possible implementation, the vehicle computer 110 is further used to: input the image into the occlusion recognition model to obtain the occlusion type on the surface of the camera 120 output by the occlusion recognition model; determine the target cleaning component corresponding to the occlusion type on the surface of the camera 120 based on the pre-stored correspondence between the occlusion type and the cleaning component; and control the target cleaning component to clean the camera surface. Specifically, the processing functions of the above steps 1401, 1402, and 1403, as well as other implicit steps, can be realized.
[0155] In a possible implementation, the types of obstructions include water droplet type, mist type, sludge type and foreign matter type; the cleaning components include a fan, a heater, a water gun and an electric brush; in the corresponding relationship, the water droplet type corresponds to the fan, the mist type corresponds to the heater, the sludge type corresponds to the water gun, and the foreign matter type corresponds to the electric brush. Specifically, the processing function of the above step 1402 and other implicit steps can be implemented.
[0156] In a possible implementation, the vehicle computer 110 is used to: when the vehicle computer determines that the lane line position information is partially missing, complete the lane line position information to obtain the completed lane line position information; and perform assisted driving processing based on the completed lane line position information. Specifically, the processing function of the above step 404 and other implicit steps can be implemented.
[0157] In a possible implementation, the lane line position information includes a plurality of lane line position points. Specifically, the processing function of the above step 403 and other implicit steps can be implemented.
[0158] In the disclosed embodiment, the first area and the second area are the areas where lane lines are most likely to appear in an image taken by the front of a general vehicle. These two areas are used as attention areas, and a feature extraction model integrating the attention mechanism can strengthen the image areas related to the lane lines and weaken the image areas unrelated to the lane lines. In this way, the lane line positioning model can achieve higher detection accuracy with fewer model parameters, thereby better balancing processing efficiency and detection accuracy.
[0159] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
[0160] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0161] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A method for assisting driving, characterized in that: The method is applied to a target vehicle, the target vehicle includes a vehicle computer and a camera, the camera is installed at the front end of the target vehicle, and the shooting direction of the camera is toward the front of the target vehicle. The method includes: The vehicle computer obtains the image captured by the camera; The vehicle computer extracts features from the image based on a first feature extraction model of a fusion attention mechanism to obtain a first feature image, wherein the attention area corresponding to the first feature extraction model of the fusion attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area; The vehicle computer inputs the first feature image into a lane line positioning model to obtain lane line position information output by the lane line positioning model; If the lane line position information output by the lane line positioning model is not empty, the vehicle computer performs assisted driving processing based on the lane line position information.
2. The method according to claim 1, characterized in that The first feature extraction model based on the fusion attention mechanism performs feature extraction on the image to obtain a first feature image, including: The vehicle computer performs preprocessing on the image, wherein the preprocessing includes at least one of scaling processing at a specified ratio, grayscale processing, and normalization; The vehicle computer inputs the preprocessed image into a first feature extraction model integrating an attention mechanism to obtain a feature first image.
3. The method according to claim 1, characterized in that: The method further comprises: The vehicle computer performs feature extraction on the image based on the second feature extraction model of the fusion attention mechanism to obtain a second feature image, wherein the attention area corresponding to the second feature extraction model of the fusion attention mechanism includes a third area, and the third area extends from the middle of the upper edge to the middle of the lower edge of the image area; The vehicle computer inputs the second feature image into a road surface mark recognition model to obtain a road surface mark output by the road surface mark recognition model; The vehicle computer performs assisted driving processing based on the lane line position information, including: The vehicle computer performs assisted driving processing based on the lane line position information and the road surface markings.
4. The method according to claim 1, characterized in that: The method further comprises: The vehicle computer inputs the image into an obstruction recognition model, and obtains the type of obstruction on the camera surface output by the obstruction recognition model; The vehicle computer determines the target cleaning component corresponding to the type of the obstruction on the camera surface based on the pre-stored correspondence between the type of the obstruction and the cleaning component; The vehicle computer controls the target cleaning component to clean the surface of the camera.
5. The method according to claim 4, characterized in that The types of obstructions include water droplet type, fog type, silt type and foreign matter type; The cleaning components include a fan, a heater, a water gun and an electric brush; In the corresponding relationship, the water drop type corresponds to the fan, the mist type corresponds to the heater, the sludge type corresponds to the water gun, and the foreign matter type corresponds to the electric brush.
6. The method according to claim 1, characterized in that The vehicle computer performs assisted driving processing based on the lane line position information, including: When the vehicle computer determines that the lane line position information is partially missing, the lane line position information is supplemented to obtain supplemented lane line position information; The vehicle computer performs assisted driving processing based on the completed lane line position information.
7. The method according to claim 1, characterized in that The lane line position information includes a plurality of lane line position points.
8. A system for assisting driving processing, characterized in that: The system includes a vehicle computer and a camera, wherein the camera is installed at the front end of the target vehicle, and the shooting direction of the camera is toward the front of the target vehicle; The vehicle computer is used to obtain the image captured by the camera; The vehicle computer is used to extract features from the image based on a first feature extraction model of a fused attention mechanism to obtain a first feature image, wherein the attention area corresponding to the first feature extraction model of the fused attention mechanism includes a first area and a second area, the first area extends from the middle of the upper edge of the image area to one end of the lower edge of the image area, and the second area extends from the middle of the upper edge of the image area to the other end of the lower edge of the image area; The vehicle computer is used to input the first feature image into a lane line positioning model to obtain lane line position information output by the lane line positioning model; The vehicle computer is used to perform assisted driving processing based on the lane line position information if the lane line position information output by the lane line positioning model is not empty.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code. When the computer program code is executed by a computer device, the computer device executes the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program product comprises a computer program code. When the computer program code is executed by a computer device, the computer device executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Fast lane line detection method for assisting obstacle filtering in ports and piers
CN113989779A
Lane line and passable area detection system and method, and terminal equipment
CN116030435A
Intelligent driving early warning system and method based on road condition recognition
CN116152768A
Lane line detection method and device, vehicle and storage medium
CN116343148A
Driving assistance method, storage medium, and vehicle
WO2022218140A1
