Image processing method and device, electronic equipment and storage medium

By real-time acquisition and block processing of rear view images and parking trajectory images in the vehicle system, image matching and rendering optimization are performed, which solves the problem of traditional vehicle reversing image processing solutions occupying too many hardware resources and avoids image rendering during parking. Stuttering improves user experience.

CN118741016APending Publication Date: 2024-10-01CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310316502.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional vehicle reversing image processing solutions occupy too many vehicle hardware resources, causing image rendering lags during parking and affecting user experience.

Method used

In the parking state, the rear view image and parking track image collected by the vehicle camera are obtained in real time. After block processing, image matching is performed to determine the target matching image for normal rendering. Other block images are rendered in reduced frames. Through the sliding window and waiting The overlapping block window queue determines window overlap and optimizes the image processing process.

Benefits of technology

It reduces the occupation of vehicle hardware resources, avoids image rendering freezes during parking, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741016A_ABST
    Figure CN118741016A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and device, electronic equipment and a storage medium, and relates to the technical field of image processing. The method comprises the steps that under the condition that a vehicle is in a parking state, a plurality of rearview images collected by a plurality of vehicle-mounted cameras and a predicted parking track image are obtained in real time; performing block processing on each rear-view image and the parking track image to obtain a plurality of rear-view block images and a plurality of parking track block images; carrying out image matching on the plurality of parking track block images in the plurality of rear-view block images, and determining a target matching image which is successfully matched in the plurality of rear-view block images; and performing normal rendering on the target matching image, and performing frame reduction rendering on other block images. According to the image processing method provided by the embodiment of the invention, the resource occupation of the vehicle-mounted terminal can be reduced, and the problem of image rendering lagging when the vehicle is parked is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of image processing technology, and in particular to an image processing method, device, electronic device and storage medium. Background Art

[0002] At present, the in-vehicle reversing image display transmits the reversing image to the driver through the in-vehicle display screen, which is mainly used to assist the driver to observe the actual situation behind the vehicle when parking and reversing.

[0003] The traditional reversing image solution uses a separate image processing chip to collect images from the vehicle's rearview camera, and then displays them on the vehicle's display after calibration, algorithm processing, splicing and other image algorithms. This process will occupy the hardware resources of the vehicle itself, and the image processing process is a very resource-intensive process, which greatly affects the operation of the entire vehicle and the user experience.

[0004] Therefore, how to solve the problem of image rendering jamming when the vehicle is parked and reduce the resource usage of the vehicle computer is a technical problem to be solved urgently in the present invention. Summary of the invention

[0005] The embodiments of the present invention provide an image processing method, device, electronic device and storage medium, which are intended to reduce the resource occupation of a vehicle computer and avoid the problem of image rendering jamming when the vehicle is parked.

[0006] A first aspect of an embodiment of the present invention provides an image processing method, the method comprising:

[0007] When the vehicle is in a parking state, multiple rear-view images captured by multiple on-board cameras and predicted parking trajectory images are acquired in real time;

[0008] Each rear-view image and the parking track image are processed into blocks to obtain a plurality of rear-view block images and a plurality of parking track block images;

[0009] Performing image matching among the plurality of parking track block images and determining a successfully matched target matching image among the plurality of rear-view block images;

[0010] The target matching image is rendered normally, and other block images are rendered at a reduced frame rate; wherein the other block images are images other than the target matching image in the multiple rear-view block images.

[0011] Optionally, performing image matching on the plurality of parking trajectory block images among the plurality of rear-view block images to determine a successfully matched target matching image among the plurality of rear-view block images includes:

[0012] Each parking track block image is used as a sliding block window, and each rear view block image is used as a block window to be overlapped;

[0013] Arrange the plurality of sliding block windows in order from left to right to obtain a sliding window;

[0014] Arrange the plurality of block windows to be overlapped in order from left to right to obtain a queue of block windows to be overlapped;

[0015] The sliding window is sequentially judged to overlap with the queue of partitioned windows to be overlapped, and the overlapping windows are determined;

[0016] A target matching image is determined according to the overlapping window.

[0017] Optionally, the step of sequentially determining whether the sliding window overlaps with the queue of blocked windows to be overlapped includes:

[0018] When the steering wheel of the vehicle turns right, the sliding windows are sequentially subjected to window overlap judgment in the order of the queue of windows of the to-be-overlapped blocks from right to left;

[0019] When the steering wheel of the vehicle turns left, the sliding windows are subjected to window overlap judgment in sequence from left to right in the queue of windows of the to-be-overlapped blocks.

[0020] Optionally, the step of performing block processing on each rear view image and the parking trajectory image to obtain a plurality of rear view block images and a plurality of parking trajectory block images includes:

[0021] Dividing each rear-view image into a first number of equal parts to obtain a second number of rear-view block images;

[0022] Dividing the parking trajectory image into a third number of parking trajectory block images;

[0023] The second number is different from the third number, and the first number is different from the third number.

[0024] Optionally, the parking trajectory image is obtained by the following steps:

[0025] The parking trajectory image is obtained through model analysis based on the vehicle body state information acquired in real time; the vehicle body state information includes at least one of the following: wheel angle information, vehicle body pitch angle, angular velocity information, acceleration information, speed information, a space model established by the vehicle body, and vehicle body positioning information.

[0026] Optionally, the method further includes:

[0027] Check the resource parameters of the vehicle computer's hardware resources;

[0028] When the resource parameter does not exceed the parameter threshold, the plurality of rear-view block images are rendered normally;

[0029] The normally rendering of the target matching image and the reduced frame rendering of other block images include:

[0030] When the resource parameter exceeds the parameter threshold, the target matching image is rendered normally, and the other block images are rendered at a reduced frame rate.

[0031] Optionally, the method further includes:

[0032] The target matching image rendered normally and the other block images rendered at a reduced frame rate are displayed.

[0033] A second aspect of an embodiment of the present invention provides an image processing device, the device comprising:

[0034] An image acquisition module, used to acquire multiple rear-view images captured by multiple on-board cameras and predicted parking trajectory images in real time when the vehicle is in a parking state;

[0035] An image segmentation module, used for segmenting each rear view image and the parking track image into blocks to obtain a plurality of rear view segmented images and a plurality of parking track segmented images;

[0036] An image matching module, used for performing image matching among the plurality of parking track block images and determining a successfully matched target matching image among the plurality of rear-view block images;

[0037] An image rendering module is used to render the target matching image normally and render other block images at a reduced frame rate; wherein the other block images are images other than the target matching image in the multiple rear-view block images.

[0038] Optionally, the image matching module includes:

[0039] A window determination module, used for treating each parking track block image as a sliding block window and treating each rear view block image as a block window to be overlapped;

[0040] A sliding window determination module, used for arranging the plurality of sliding block windows in order from left to right to obtain a sliding window;

[0041] A window queue determination module, used for arranging the plurality of block windows to be overlapped in order from left to right to obtain a block window queue to be overlapped;

[0042] A window overlap module is used to perform window overlap judgment on the sliding window and the queue of block windows to be overlapped in sequence to determine the overlapping windows;

[0043] The image matching submodule is used to determine a target matching image according to the overlapping window.

[0044] Optionally, the window overlapping module includes:

[0045] A first window overlapping submodule is used for, when the steering wheel of the vehicle turns right, sequentially performing window overlap judgment on the sliding windows according to the sequence of the to-be-overlapped block windows queue from right to left;

[0046] The second window overlapping submodule is used for determining the window overlap of the sliding window in sequence from left to right of the queue of the to-be-overlapped block windows when the steering wheel of the vehicle turns left.

[0047] Optionally, the image segmentation module includes:

[0048] A first image dividing submodule is used to divide each rear view image into a first number of equal parts to obtain a second number of rear view divided images;

[0049] A second image block submodule, configured to equally divide the parking trajectory image into a third number of parking trajectory block images;

[0050] The second number is different from the third number, and the first number is different from the third number.

[0051] Optionally, the device further includes a parking trajectory determination module, which is used to predict and obtain the parking trajectory image, wherein the parking trajectory determination module includes:

[0052] A model prediction module is used to obtain the parking trajectory image through model analysis based on the vehicle body state information acquired in real time; the vehicle body state information includes at least one of the following: wheel angle information, vehicle body pitch angle, angular velocity information, acceleration information, speed information, a space model established by the vehicle body, and vehicle body positioning information.

[0053] Optionally, the device further comprises:

[0054] A detection module is used to detect resource parameters of the hardware resources of the vehicle computer;

[0055] A first rendering module, configured to render the plurality of rear-view block images normally when the resource parameter does not exceed a parameter threshold;

[0056] The image rendering module comprises:

[0057] The second rendering module is used to perform normal rendering on the target matching image and perform frame reduction rendering on the other block images when the resource parameter exceeds the parameter threshold.

[0058] Optionally, the device further comprises:

[0059] The image display module is used to display the target matching image rendered normally and the other block images rendered at a reduced frame rate.

[0060] A third aspect of an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, an image processing method according to the first aspect of the embodiment of the present invention is implemented.

[0061] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the image processing method of the first aspect of the embodiment of the present invention is implemented.

[0062] Through the image processing method provided by the embodiment of the present invention, when the vehicle is in a parking state, multiple rear-view images captured by multiple on-board cameras and predicted parking trajectory images are obtained in real time; each rear-view image and parking trajectory image is processed in blocks to obtain multiple rear-view block images and multiple parking trajectory block images; multiple parking trajectory block images are matched among multiple rear-view block images to determine the successfully matched target matching images among the multiple rear-view block images; the target matching images are rendered normally, and other block images are rendered at reduced frames. In this embodiment, the rear-view image and parking trajectory image obtained in real time are divided into blocks, and image matching is performed, so that targeted rendering is performed based on the successfully matched target matching images, so that the successfully matched rear-view block images can be rendered normally, and the unmatched rear-view block images are rendered at reduced frames, thereby solving the problem of vehicle hardware resource occupation to a certain extent, avoiding the image rendering jam when the vehicle is parked, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0064] Figure 1is a flow chart of an image processing method shown in one embodiment of the present invention;

[0065] Figure 2 is a schematic diagram of a parking trajectory image provided by an embodiment of the present invention;

[0066] Figure 3 is a flow chart of an image processing method during a vehicle parking process shown in one embodiment of the present invention;

[0067] Figure 4 is a structural block diagram of an image processing device provided by an embodiment of the present invention;

[0068] Figure 5 It is a schematic diagram of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] refer to Figure 1 , Figure 1 FIG. 1 is a flow chart of an image processing method according to an embodiment of the present invention. Figure 1 As shown, the image processing method of this embodiment can be used in a vehicle system, wherein the vehicle system can at least include a monitoring module, a data processing module, a planning control module, an image processing module, a vehicle display module, etc. The image processing method of this embodiment may include the following steps:

[0071] Step S11: when the vehicle is in a parking state, a plurality of rear view images captured by a plurality of vehicle-mounted cameras and a predicted parking trajectory image are acquired in real time.

[0072] In this embodiment, the monitoring module of the vehicle system can monitor the state of the vehicle in real time. The monitoring module of this embodiment is mainly used for monitoring the state of the vehicle and collecting vehicle data. The parking state of this embodiment is the parking and reversing state. When the monitoring module monitors that the vehicle is in the parking state, the video data collected by multiple on-board cameras of the current vehicle can be obtained in real time. Among them, the on-board camera of this embodiment can be a camera for shooting the rear of the vehicle. Specifically, the monitoring module can send a shooting instruction to the on-board camera, and the on-board camera performs real-time video shooting of the rear position of the vehicle according to the shooting instruction, collects real-time video data, and returns it to the monitoring module, so that the monitoring module obtains multiple rear-view images collected by the multiple on-board cameras, wherein, at the same time, each camera corresponds to a rear-view image collected by it.

[0073] At the same time, when the vehicle is in the parking state, the planning and control module of the vehicle system will also make a real-time prediction of the parking trajectory of the vehicle, generate a predicted parking trajectory image in real time, and send the parking trajectory image to the monitoring module, so that the monitoring module can obtain the predicted parking trajectory image in real time. Among them, the parking trajectory image of this embodiment is a predicted image of the parking trajectory of the vehicle body during the parking process.

[0074] Step S12: each rear view image and the parking track image are processed into blocks to obtain a plurality of rear view block images and a plurality of parking track block images.

[0075] In this embodiment, after the monitoring module obtains multiple rear-view images taken by multiple vehicle-mounted cameras and the parking trajectory image in real time, it will send the multiple rear-view images and the parking trajectory image to the data processing module of the vehicle system. The data processing module of this embodiment is mainly used for image data segmentation and matching. After the data processing module obtains multiple rear-view images and parking trajectory images, it will perform block processing on each of the multiple rear-view images and the parking trajectory image, thereby obtaining multiple rear-view block images and multiple parking trajectory block images. Among them, the rear-view block image of this embodiment is a part of the rear-view image, and the parking trajectory block image is a part of the parking trajectory image.

[0076] Step S13: performing image matching on the plurality of parking track block images among the plurality of rear-view block images, and determining a successfully matched target matching image among the plurality of rear-view block images.

[0077] In this embodiment, after obtaining a plurality of rear-view block images and a plurality of parking track block images, the data processing module will perform image matching on the rear-view block images and the parking track block images. Specifically, the plurality of parking track block images are image matched among the plurality of rear-view block images, so as to determine a successfully matched target matching image among the plurality of rear-view block images, wherein the target matching image in this embodiment is a rear-view block image that successfully matches the parking track block image among the plurality of rear-view block images.

[0078] Furthermore, in this embodiment, each parking track segmented image in the plurality of parking track segmented images may be image matched with each rear view segmented image in the plurality of rear view segmented images, so as to determine a successfully matched target matching image in the plurality of rear view segmented images. In this embodiment, partial image matching or complete image matching is regarded as a successful image matching.

[0079] Step S14: Render the target matching image normally and render other block images at reduced frame rates; wherein the other block images are images other than the target matching image in the plurality of rear-view block images.

[0080] In this embodiment, after the data processing module determines the target matching image in the multiple rear-view block images, it will also determine other block images based on the rear-view block images and the target matching image, wherein the other block images in this embodiment are images other than the target matching image in the multiple rear-view block images. In this way, after determining the target matching image and other block images, the data processing module will also compress the target matching image and other block images and send them to the image processing module, that is, the data processing module will compress the multiple rear-view block images and send them to the image processing module.

[0081] After obtaining the compressed multiple rear-view block images, the image processing module will decompress the compressed multiple rear-view block images to obtain the decompressed multiple rear-view block images. At this time, the target matching image in the multiple rear-view block images can be rendered normally, and the other block images in the multiple rear-view block images can be rendered with reduced frame rates. Among them, the normal rendering in this embodiment refers to the rendering processing without frame reduction processing.

[0082] In this embodiment, multiple rear-view images acquired in real time and parking trajectory images predicted in real time are processed in blocks to obtain multiple rear-view block images and multiple parking trajectory block images, and the block images are matched to perform targeted rendering for successfully matched target matching images, and reduced-frame rendering is performed for other unmatched block images, thereby reducing the occupation of vehicle hardware resources to a certain extent, avoiding image rendering jams when the vehicle is parked, and further improving the user experience.

[0083] In combination with the above embodiments, in one implementation, the present invention further provides an image processing method. In this method, the above step S13 may specifically include the following steps:

[0084] Step A: each parking track block image is used as a sliding block window, and each rear view block image is used as a block window to be overlapped.

[0085] In this embodiment, each parking track block image can be used as a sliding block window, and each rear view block image can be used as a block window to be overlapped. In this embodiment, the target matching image is determined by the window overlapping method. Specifically, each rear view block image is used as a target image, that is, a block window to be overlapped, so that each parking track block image is used as a sliding block window to judge whether the window can overlap with each block window to be overlapped in turn, until it is determined that the window overlaps.

[0086] Step B: Arrange the plurality of sliding block windows in order from left to right to obtain a sliding window.

[0087] In this embodiment, there are multiple sliding block windows, and the multiple sliding block windows can be arranged in order from left to right to combine to obtain a sliding window. In this embodiment, each parking track block image has its own corresponding position information. Therefore, in this embodiment, the multiple sliding block windows can be arranged in order from left to right according to the position information to combine to obtain a sliding window.

[0088] Step C: Arrange the plurality of block windows to be overlapped in order from left to right to obtain a queue of block windows to be overlapped.

[0089] In the present embodiment, there are multiple block windows to be overlapped, and the multiple block windows to be overlapped can be arranged in order from left to right, so as to combine to obtain a queue of block windows to be overlapped. Among them, each rear-view block image of the present embodiment also has its own corresponding position information. Specifically, each rear-view block image has its own corresponding position information in the rear-view image to which it belongs, and each rear-view image also has its own corresponding position information. Therefore, in the present embodiment, the multiple block windows to be overlapped can be arranged in order from left to right according to the position information of the rear-view block images corresponding to the multiple block windows to be overlapped and the position information of the rear-view image to which they belong, so as to combine to obtain a queue of block windows to be overlapped.

[0090] Step D: performing window overlap judgment on the sliding window and the queue of block windows to be overlapped in turn to determine the overlapping windows.

[0091] In this embodiment, after obtaining the sliding window and the queue of the block windows to be overlapped, the sliding window can be sequentially judged with the queue of the block windows to be overlapped to determine the overlapping window. Further, each sliding block window in the sliding window can be sequentially judged with each block window to be overlapped in the queue of the block windows to be overlapped in order to determine whether the window can overlap, so as to determine the window that can overlap, that is, the window that can overlap in the queue of the block windows to be overlapped is the overlapping window of this embodiment. Among them, the overlapping in this embodiment means that the images in the two windows being compared can partially match or completely match, that is, the images in the two windows being compared can partially overlap or completely overlap.

[0092] Step E: Determine the target matching image according to the overlapping window.

[0093] In this embodiment, after the overlapping window is determined from the queue of overlapping block windows, the target matching image can be determined according to the overlapping window, wherein specifically, the corresponding rear-view block image can be determined according to the overlapping window, so that the rear-view block image corresponding to the overlapping window is determined as the target matching image.

[0094] In this embodiment, each block image is used as a plurality of sequentially arranged windows, and the overlapping windows are determined by sequentially judging the window overlap to determine the target matching image. In this way, the window overlap is judged in sequence. Compared with target matching each parking trajectory block image with each rear-view block image, the number of image matching can be reduced as much as possible, further saving the hardware resources of the vehicle computer, thereby better solving the problem of image rendering jamming when the vehicle is parked.

[0095] In combination with the above embodiments, in one implementation, the present invention further provides an image processing method. In this method, the above step D may specifically include the following steps:

[0096] Step D1: when the steering wheel of the vehicle turns right, the sliding windows are subjected to window overlap judgment in sequence from right to left in the queue of windows of the to-be-overlapped blocks.

[0097] In this embodiment, the steering condition of the steering wheel during the parking process of the vehicle can be determined by the monitoring module. When the monitoring module determines that the steering wheel of the vehicle is turning right during the parking process of the vehicle, the monitoring module can send a right turn signal to the data processing module. The data processing module, based on the received right turn signal, performs window overlap judgment on the sliding window in the order of the queue of the to-be-overlapped blocks from right to left when performing window overlap judgment.

[0098] Step D2: when the steering wheel of the vehicle turns left, the sliding windows are subjected to window overlap judgment in sequence from left to right in the queue of windows of the to-be-overlapped blocks.

[0099] In this embodiment, when the monitoring module determines that the steering wheel of the vehicle is turning left during the parking process, the monitoring module can send a left turn signal to the data processing module. The data processing module will perform window overlap judgment on the sliding window in the order of the queue of block windows to be overlapped from left to right when performing window overlap judgment based on the received left turn signal.

[0100] In this embodiment, when making window overlap judgments, the overlapping block window queues to be overlapped will be selected in sequence from right to left or from left to right according to the steering situation of the steering wheel, so that the corresponding position can be intelligently selected for advance judgment according to the steering situation of the vehicle body, thereby further reducing the number of window overlap judgments and saving vehicle hardware resources.

[0101] In combination with the above embodiments, in one implementation, the present invention further provides an image processing method. In this method, the above step S12 may specifically include the following steps:

[0102] Step E: Divide each rear-view image into a first number of equal parts to obtain a second number of rear-view block images.

[0103] In this embodiment, when a plurality of rear-view images are divided into blocks, the rear-view images may be divided equally. Specifically, each rear-view image may be divided equally by a first number to obtain a second number of rear-view block images. The first number of this embodiment may be freely set according to actual conditions or manual experience, and this embodiment does not impose any limitation on the specific value of the first number. The second number of this embodiment is the product of the first number and the number of rear-view images. For example, the first number may be 3. In one embodiment, each rear-view image is divided into three equal parts. Then, when there are 3 rear-view images at each moment, that is, when there are 3 vehicle-mounted cameras, the second number of this embodiment is 9.

[0104] Step F: dividing the parking trajectory image into a third number of parking trajectory block images.

[0105] In this embodiment, when dividing a plurality of parking trajectory images, the parking trajectory images may be averaged, and specifically, the parking trajectory images may be averaged into a third number. For example, in one embodiment, the third number may be 2 or 4. The first number in this embodiment may be freely set according to actual conditions or manual experience, and this embodiment does not impose any limitation on the specific value of the first number.

[0106] In one embodiment, the second number is different from the third number, and the first number is also different from the third number. The difference between the first number and the third number indicates that the average number of blocks of the rear view image is different from the average number of blocks of the parking track image, so that a more accurate image matching effect between the block images can be achieved. The difference between the second number and the third number indicates that the number of rear view block images is different from the number of parking track block images, so as to ensure that there are both successfully matched images and unsuccessfully matched images in the multiple rear view block images, so that targeted rendering processing can be performed based on the rear view block images through the image processing method provided in this embodiment.

[0107] In combination with the above embodiments, in one implementation, the present invention also provides an image processing method. In this method, the “parking trajectory image” can be obtained by the following steps:

[0108] Step G: obtaining the parking trajectory image through model analysis based on the vehicle body state information acquired in real time.

[0109] In this embodiment, the monitoring module may detect the current vehicle's body state in real time, thereby collecting the current vehicle's body state information, and sending the body state information to the planning control module. The body state information of this embodiment may include at least one of the following: wheel angle information, body pitch angle, angular velocity information, acceleration information, speed information, a space model established by the body, and positioning information of the body. The space model established by the body is the collected body kinematic model.

[0110] After the planning control module receives the current vehicle body state information in real time, it can process the vehicle body state information in real time through the pre-trained vehicle body trajectory prediction model, thereby obtaining the parking trajectory image output by the model, and sending the predicted parking trajectory image to the data processing module in real time. The vehicle body trajectory prediction model of this embodiment can be any model for predicting the vehicle parking trajectory, and this embodiment does not impose any limitation on this.

[0111] Furthermore, in one embodiment, the predicted parking trajectory image may include a vehicle body posture coverage line and a parking warning line. In an automatic parking scenario, the parking trajectory image may also include an automatic parking brake line. Figure 2 As shown, Figure 2 is a schematic diagram of a parking trajectory image provided by an embodiment of the present invention. In this embodiment, the multiple vehicle-mounted cameras include a left rear-view camera, and the rear-view image is divided into three parts. Among them, Figure 2The left left in the figure represents the rear view segmented image on the left after the rear view image segmentation is captured by the left rear view camera, the left middle represents the rear view segmented image in the middle after the rear view image segmentation is captured by the left rear view camera, and the left and right represent the rear view segmented images on the right after the rear view image segmentation is captured by the left rear view camera. Figure 2 The outline of the largest rectangular box in the image is the predicted vehicle posture coverage line in the parking trajectory image. The first horizontal line from the bottom to the top is the automatic parking brake line, and the second horizontal line from the bottom to the top is the parking alarm line.

[0112] In one embodiment, the target matching image in the rear-view block image determined after image matching is an image after image fusion processing, and the target matching image is an image after successful matching and image fusion of the matched rear-view block image and the parking track block image. Therefore, the target matching image may include the vehicle body position coverage line, so that when the subsequent rendering is performed for display, the driver can perform parking assistance according to the displayed vehicle body position coverage line.

[0113] It should be noted that the image processing provided in any of the above embodiments can be applied to any vehicle parking scenario, such as a manual parking scenario, an automatic parking scenario, or an unmanned parking scenario. This embodiment does not impose any restrictions on this scenario.

[0114] In combination with the above embodiments, in one implementation, the present invention also provides an image processing method. In this method, in addition to the above steps, the following steps may also be included:

[0115] Step H: Detect resource parameters of the vehicle computer's hardware resources.

[0116] In this embodiment, the monitoring module can also monitor the hardware resources of the vehicle computer in real time to detect the resource parameters of the hardware resources of the vehicle computer in real time. The resource parameters can be specified as needed, such as memory parameters, cache parameters, computing resource parameters, etc., and this embodiment does not impose any restrictions on this.

[0117] Step I: When the resource parameter does not exceed the parameter threshold, the plurality of rear-view block images are rendered normally.

[0118] In this embodiment, parameter thresholds corresponding to resource parameters are also pre-set, and each resource parameter corresponds to its own parameter threshold, for example, a memory parameter corresponds to a memory parameter threshold, a cache parameter corresponds to a cache parameter threshold, a computing resource parameter corresponds to a computing resource parameter threshold, etc. The parameter threshold of this embodiment is the maximum parameter value when the resource load is not overloaded.

[0119] Therefore, when it is determined that the resource parameter does not exceed the parameter threshold, it indicates that the hardware resources of the current vehicle computer have not been overloaded and there are excess hardware resources available for use. Therefore, in this embodiment, when the resource parameter does not exceed the parameter threshold, the image processing module can render the multiple received rear-view block images normally.

[0120] In this embodiment, the above step S14 may specifically include step J:

[0121] Step J: When the resource parameter exceeds the parameter threshold, the target matching image is rendered normally, and the other block images are rendered at a reduced frame rate.

[0122] In this embodiment, only when the monitoring module determines that the resource parameters exceed the parameter threshold, the monitoring module will send an early warning notification to the image processing module. The image processing module will normally render the target matching image among the multiple rear-view block images received according to the early warning notification, and perform reduced frame rendering on other block images among the multiple rear-view block images.

[0123] In this embodiment, the hardware resources of the vehicle computer can be monitored in real time, so as to determine whether to render all rear-view block images normally or only render the target matching images normally and render other block images at a reduced frame rate based on the resource situation, thereby flexibly adapting the hardware resources of the vehicle computer.

[0124] In combination with the above embodiments, in one implementation, the present invention also provides an image processing method. In this method, in addition to the above steps, the following steps may also be included:

[0125] Step K: displaying the target matching image rendered normally and the other block images rendered at a reduced frame rate.

[0126] In this embodiment, after the image processing module renders the image, the rendered image data can be sent to the vehicle display module, so that the vehicle display module displays the image according to the rendered image data, thereby making it possible to display the normally rendered target matching image and other block images rendered by reduced frame rates on the vehicle display screen, thereby completing the real-time display of the vehicle-mounted reversing parking image to assist the driver in parking and reversing.

[0127] In another embodiment, Figure 3 As shown, Figure 3 The figure is a flow chart of an image processing method during a vehicle parking process shown in one embodiment of the present invention.

[0128] exist Figure 3In the method, when the vehicle is detected to be in a parking state, the method starts, and then multiple vehicle cameras are turned on, such as the rear view camera, the left rear camera (i.e., the left rear view camera), and the right rear camera (i.e., the right rear view camera), to take multiple rear view images, and divide the camera window to obtain multiple rear view block images. Then, the current posture information of the current vehicle is obtained in real time, and the model prediction is performed to obtain the parking trajectory image in real time; then the parking trajectory image is divided to obtain the middle baseline of the parking trajectory image, and the middle baseline is bidirectionally extended to divide multiple parking trajectory block images. Then, the obtained multiple rear view block images are matched and fused with the multiple parking trajectory block images to obtain a successfully matched matching fusion window, thereby obtaining a fusion output (i.e., a target matching image), and finally the fusion output is compressed and transmitted to the vehicle display module, so that the target matching image is rendered normally and displayed, and other block images except the target matching image are rendered and displayed at reduced frames, and the method ends.

[0129] Specifically, when performing window matching fusion, as shown in Table 1 below, Table 1 is a selected window table for successful dynamic matching, which represents the rule matching related to the trajectory prediction corresponding to the vehicle and the picture occupied by the vehicle shooting.

[0130] Serial number Left Left Left center about Back left Back Back right right left Middle right Right 1 · · · · 2 · · · · 3 · · · · 4 · · · · 5 · · · · 6 · · · ·

[0131] Table 1

[0132] Among them, the continuous “.” in Table 1 represents the overlapping windows that are matched successfully. In Table 1, there are three cameras, namely, the rear-view camera, the left rear-view camera, and the right rear-view camera. Each rear-view image is divided into three blocks. The left-left represents the rear-view block image on the left of the rear-view image blocks collected by the left rear-view camera, the left-middle represents the rear-view block image in the middle of the rear-view image blocks collected by the left rear-view camera, the left-right represents the rear-view block image on the right of the rear-view image blocks collected by the left rear-view camera, and the left-right represents the rear-view block image on the right of the rear-view image blocks collected by the left rear-view camera. The rear view block image on the left of the rear view image block captured by the rear view camera, the rear middle represents the rear view block image in the middle of the rear view image block captured by the rear view camera, the rear right represents the rear view block image on the right of the rear view image block captured by the rear view camera, the right left represents the rear view block image on the left of the rear view image block captured by the right rear view camera, the right middle represents the rear view block image in the middle of the rear view image block captured by the right rear view camera, and the right right represents the rear view block image on the right of the rear view image block captured by the right rear view camera. And, in this embodiment, the parking trajectory image is divided into 4 parking trajectory block images. It can be seen from Table 1 that as time goes by, the 4 overlapping windows hit move to the right in turn, and targeted image fusion and interception are performed based on this, which can dynamically and locally render the parking display image in a targeted manner.

[0133] In order to solve the problem of image processing occupying limited hardware resources, the image processing method of this embodiment establishes a dynamic local display image rule, divides the display area into certain blocks according to the established rules, and then renders in a targeted manner. This method reduces the hardware resource usage, and from the perspective of algorithm rule optimization, reduces the jamming phenomenon of the vehicle computer during image rendering and the hardware selection parameter standards.

[0134] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0135] Based on the same inventive concept, an embodiment of the present invention provides an image processing device 400. Figure 4 , Figure 4 FIG. 1 is a structural block diagram of an image processing device provided by an embodiment of the present invention. Figure 4 As shown, the device 400 includes:

[0136] The image acquisition module 401 is used to acquire multiple rear-view images captured by multiple vehicle-mounted cameras and predicted parking trajectory images in real time when the vehicle is in a parking state;

[0137] An image segmentation module 402 is used to segment each rear view image and the parking track image into blocks to obtain a plurality of rear view segmented images and a plurality of parking track segmented images;

[0138] An image matching module 403 is used to perform image matching on the plurality of parking track block images among the plurality of rear-view block images, and determine a successfully matched target matching image among the plurality of rear-view block images;

[0139] The image rendering module 404 is used to perform normal rendering on the target matching image and perform frame-reducing rendering on other block images; wherein the other block images are images other than the target matching image in the multiple rear-view block images.

[0140] Optionally, the image matching module 403 includes:

[0141] A window determination module, used to use each parking track block image as a sliding block window and each rear view block image as a block window to be overlapped;

[0142] A sliding window determination module, used for arranging the plurality of sliding block windows in order from left to right to obtain a sliding window;

[0143] A window queue determination module, used for arranging the plurality of block windows to be overlapped in order from left to right to obtain a block window queue to be overlapped;

[0144] A window overlap module is used to perform window overlap judgment on the sliding window and the queue of block windows to be overlapped in sequence to determine the overlapping windows;

[0145] The image matching submodule is used to determine a target matching image according to the overlapping window.

[0146] Optionally, the window overlapping module includes:

[0147] A first window overlapping submodule is used for, when the steering wheel of the vehicle turns right, sequentially performing window overlap judgment on the sliding windows according to the sequence of the to-be-overlapped block windows queue from right to left;

[0148] The second window overlapping submodule is used for determining the window overlap of the sliding window in sequence from left to right of the queue of the to-be-overlapped block windows when the steering wheel of the vehicle turns left.

[0149] Optionally, the image segmentation module 402 includes:

[0150] A first image dividing submodule is used to divide each rear view image into a first number of equal parts to obtain a second number of rear view divided images;

[0151] A second image block submodule, configured to equally divide the parking trajectory image into a third number of parking trajectory block images;

[0152] The second number is different from the third number, and the first number is different from the third number.

[0153] Optionally, the device 400 includes a parking trajectory determination module, which is used to predict and obtain the parking trajectory image, wherein the parking trajectory determination module includes:

[0154] A model prediction module is used to obtain the parking trajectory image through model analysis based on the vehicle body state information acquired in real time; the vehicle body state information includes at least one of the following: wheel angle information, vehicle body pitch angle, angular velocity information, acceleration information, speed information, a space model established by the vehicle body, and vehicle body positioning information.

[0155] Optionally, the device 400 further includes:

[0156] A detection module is used to detect resource parameters of the hardware resources of the vehicle computer;

[0157] A first rendering module, configured to render the plurality of rear-view block images normally when the resource parameter does not exceed a parameter threshold;

[0158] The image rendering module 404 includes:

[0159] The second rendering module is used to perform normal rendering on the target matching image and perform frame reduction rendering on the other block images when the resource parameter exceeds the parameter threshold.

[0160] Optionally, the device 400 further includes:

[0161] The image display module is used to display the target matching image rendered normally and the other block images rendered at a reduced frame rate.

[0162] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the image processing method described in any of the above embodiments of the present invention are implemented.

[0163] Based on the same inventive concept, another embodiment of the present invention provides an electronic device 500, such as Figure 5 shown. Figure 5 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device comprises a memory 502, a processor 501 and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the image processing method according to any of the above embodiments of the present invention when executing the computer program.

[0164] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Furthermore, embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0167] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0168] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0170] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0171] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0172] The above is a detailed introduction to an image processing method, device, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An image processing method, characterized in that: The method comprises: When the vehicle is in a parking state, multiple rear-view images captured by multiple on-board cameras and predicted parking trajectory images are acquired in real time; Each rear-view image and the parking track image are processed into blocks to obtain a plurality of rear-view block images and a plurality of parking track block images; Performing image matching among the plurality of parking track block images and determining a successfully matched target matching image among the plurality of rear-view block images; The target matching image is rendered normally, and other block images are rendered at a reduced frame rate; wherein the other block images are images other than the target matching image in the multiple rear-view block images.

2. The image processing method according to claim 1, characterized in that: The performing image matching among the plurality of parking track block images and determining a successfully matched target matching image among the plurality of rear view block images comprises: Each parking track block image is used as a sliding block window, and each rear view block image is used as a block window to be overlapped; Arrange the plurality of sliding block windows in order from left to right to obtain a sliding window; Arrange the plurality of block windows to be overlapped in order from left to right to obtain a queue of block windows to be overlapped; The sliding window is sequentially judged to overlap with the queue of partitioned windows to be overlapped, and the overlapping windows are determined; A target matching image is determined according to the overlapping window.

3. The image processing method according to claim 2, characterized in that: The step of sequentially performing window overlap judgment on the sliding window and the queue of block windows to be overlapped comprises: When the steering wheel of the vehicle turns right, the sliding windows are sequentially subjected to window overlap judgment in the order of the queue of windows of the to-be-overlapped blocks from right to left; When the steering wheel of the vehicle turns left, the sliding windows are subjected to window overlap judgment in sequence from left to right in the queue of windows of the to-be-overlapped blocks.

4. The image processing method according to claim 1, characterized in that: The step of performing block processing on each rear view image and the parking track image to obtain a plurality of rear view block images and a plurality of parking track block images comprises: Dividing each rear-view image into a first number of equal parts to obtain a second number of rear-view block images; Dividing the parking trajectory image into a third number of parking trajectory block images; The second number is different from the third number, and the first number is different from the third number.

5. The image processing method according to claim 1, characterized in that: The parking trajectory image is obtained by the following steps: The parking trajectory image is obtained through model analysis based on the vehicle body state information acquired in real time; the vehicle body state information includes at least one of the following: wheel angle information, vehicle body pitch angle, angular velocity information, acceleration information, speed information, a space model established by the vehicle body, and vehicle body positioning information.

6. The image processing method according to claim 1, characterized in that: The method further comprises: Check the resource parameters of the vehicle computer's hardware resources; When the resource parameter does not exceed the parameter threshold, the plurality of rear-view block images are rendered normally; The normally rendering of the target matching image and the reduced frame rendering of other block images include: When the resource parameter exceeds the parameter threshold, the target matching image is rendered normally, and the other block images are rendered at a reduced frame rate.

7. The image processing method according to any one of claims 1 to 6, characterized in that: The method further comprises: The target matching image rendered normally and the other block images rendered at a reduced frame rate are displayed.

8. An image processing device, characterized in that: The device comprises: An image acquisition module, used to acquire multiple rear-view images captured by multiple on-board cameras and predicted parking trajectory images in real time when the vehicle is in a parking state; An image segmentation module, used for segmenting each rear view image and the parking track image into blocks to obtain a plurality of rear view segmented images and a plurality of parking track segmented images; An image matching module, used for performing image matching among the plurality of parking track block images and determining a successfully matched target matching image among the plurality of rear-view block images; An image rendering module is used to render the target matching image normally and render other block images at a reduced frame rate; wherein the other block images are images other than the target matching image in the multiple rear-view block images.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by the processor, the image processing method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image processing method according to any one of claims 1 to 7 is implemented.