Image processing method and device, electronic equipment, storage medium and vehicle

By performing rotation and translation processing on the orientation angle difference and pixel distance of the fisheye camera image, and fusing the feature images of the current and historical moments, the problem of fisheye camera imaging distortion affecting feature extraction is solved, and the accuracy and accuracy of feature extraction are improved. Integrity.

CN118587446AInactive Publication Date: 2024-09-03BEIJING CO WHEELS TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310228474.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The imaging distortion of the fisheye camera leads to unsatisfactory feature extraction results in surround-view images, which affects the accuracy of subsequent prediction models.

Method used

By obtaining the feature image of the current moment and the historical moment, calculate the orientation angle difference and pixel distance of the reference object in the global coordinate system, perform rotation and translation processing, and fuse the two to generate the target feature image.

Benefits of technology

The adverse effects of fisheye camera imaging distortion on feature extraction are reduced, and the accuracy and completeness of feature extraction are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587446A
    Figure CN118587446A
Patent Text Reader

Abstract

The invention relates to an image processing method and device, electronic equipment, a storage medium and a vehicle, and relates to the field of image processing.The method comprises the steps that a first feature image at the current moment and a stored second feature image at the historical moment are obtained; obtaining an orientation angle difference value and a pixel distance of the reference object moving from a historical moment to a current moment in a global coordinate system; performing rotation and translation processing on the second feature image according to the orientation angle difference value and the pixel distance; and fusing the second feature image after rotation and translation processing with the first feature image to obtain a target feature image. According to the embodiment of the invention, the adverse effect of imaging distortion of the fisheye camera on feature extraction is reduced, and the feature extraction effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing, and in particular to an image processing method, device, electronic device, storage medium and vehicle. Background Art

[0002] With the evolution of fisheye cameras, surround view images with a large field of view have begun to be used in multiple scenarios, including intelligent driving, monitoring, robotics and other fields. Compared with standard lenses, the lenses in fisheye cameras can obtain a larger field of view. Generally, a single fisheye camera can obtain a surround view image with a field of view of more than 180 degrees. Therefore, a small number of fisheye cameras in actual scenes can obtain a surround view image covering a complete 360-degree surround view. However, fisheye camera imaging will be distorted, resulting in serious distortion of the surround view image. The result of feature extraction of the surround view image is not ideal. These features will also affect the accuracy of the subsequent prediction model output results. Therefore, how to use the surround view image to extract effective features and reduce the adverse effects of fisheye camera imaging distortion on feature extraction has become a technical problem that needs to be solved in the field of image processing. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an image processing method, device, electronic device, storage medium and vehicle, which can reduce the adverse effects of fisheye camera imaging distortion on feature extraction.

[0004] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:

[0005] In a first aspect, the present disclosure provides an image processing method, the method comprising:

[0006] Acquire a first characteristic image at a current moment and a second characteristic image at a stored historical moment, wherein the first characteristic image and the second characteristic image are both obtained by extracting features based on a surround view image;

[0007] Obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system;

[0008] Rotate and translate the second feature image according to the orientation angle difference and the pixel distance;

[0009] The second feature image after rotation and translation processing is fused with the first feature image to obtain a target feature image.

[0010] As an optional implementation of the embodiment of the present disclosure, obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system includes:

[0011] In the world coordinate system, obtaining a first orientation angle and a first position of the reference object at the current moment, and a second orientation angle and a second position at the historical moment;

[0012] Calculating the orientation angle difference between the first orientation angle and the second orientation angle in the global coordinate system, and calculating an actual moving distance from the second position to the first position;

[0013] A camera intrinsic parameter and a camera extrinsic parameter are obtained, and the actual moving distance is converted into the pixel distance according to the camera intrinsic parameter and the camera extrinsic parameter.

[0014] As an optional implementation of the embodiment of the present disclosure, obtaining the first feature image at the current moment includes:

[0015] Acquire initial images collected by multiple surround view cameras at the current moment;

[0016] Obtaining camera intrinsic parameters and camera extrinsic parameters of the multiple surround view cameras;

[0017] According to the camera intrinsic parameters and camera extrinsic parameters, stitching the initial images to obtain a surround view image;

[0018] Feature extraction is performed on the surround view image to obtain the first feature image.

[0019] As an optional implementation of the embodiment of the present disclosure, rotating and translating the second feature image according to the orientation angle difference and the pixel distance includes:

[0020] Rotate the second feature image according to the orientation angle difference;

[0021] The rotated second feature image is translated according to the pixel distance.

[0022] As an optional implementation of the embodiment of the present disclosure, translating the rotated second feature image according to the pixel distance includes:

[0023] Get scale parameters;

[0024] Calculating a translation distance according to the pixel distance and the scale parameter;

[0025] The rotated second feature image is translated according to the translation distance.

[0026] As an optional implementation of the embodiment of the present disclosure, the second feature image after rotation and translation processing is fused with the first feature image to obtain a target feature image, including:

[0027] Splicing the second feature image after rotation and translation processing with the first feature image to obtain a feature splicing image;

[0028] Each pixel of the feature stitching image is traversed, and a pixel mean of the feature stitching image is calculated to obtain the target feature image.

[0029] As an optional implementation of the embodiment of the present disclosure, after fusing the second feature image after the rotation and translation processing with the first feature image to obtain the target feature image, the method further includes:

[0030] The current moment and the target feature image are stored correspondingly.

[0031] In a second aspect, the present disclosure provides an image processing device, the device comprising:

[0032] An acquisition module is used to acquire a first feature image at the current moment and a second feature image at a stored historical moment, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; and to acquire a direction angle difference and a pixel distance of a reference object from a historical moment to the current moment in a global coordinate system;

[0033] A processing module is used to rotate and translate the second feature image according to the orientation angle difference and the pixel distance; and fuse the second feature image after the rotation and translation with the first feature image to obtain a target feature image.

[0034] As an optional implementation of the embodiment of the present disclosure, the acquisition module obtains the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system, which is specifically used for:

[0035] In the world coordinate system, obtaining a first orientation angle and a first position of the reference object at the current moment, and a second orientation angle and a second position at the historical moment;

[0036] Calculating the orientation angle difference between the first orientation angle and the second orientation angle in the global coordinate system, and calculating an actual moving distance from the second position to the first position;

[0037] A camera intrinsic parameter and a camera extrinsic parameter are obtained, and the actual moving distance is converted into the pixel distance according to the camera intrinsic parameter and the camera extrinsic parameter.

[0038] As an optional implementation of the embodiment of the present disclosure, the acquisition module acquires the first feature image at the current moment, specifically for:

[0039] Acquire initial images collected by multiple surround view cameras at the current moment;

[0040] Obtaining camera intrinsic parameters and camera extrinsic parameters of the multiple surround view cameras;

[0041] According to the camera intrinsic parameters and camera extrinsic parameters, stitching the initial images to obtain a surround view image;

[0042] Feature extraction is performed on the surround view image to obtain the first feature image.

[0043] As an optional implementation of the embodiment of the present disclosure, the processing module rotates and translates the second feature image according to the orientation angle difference and the pixel distance, specifically for:

[0044] Rotate the second feature image according to the orientation angle difference;

[0045] The rotated second feature image is translated according to the pixel distance.

[0046] As an optional implementation of the embodiment of the present disclosure, the processing module translates the rotated second feature image according to the pixel distance, specifically for:

[0047] Get scale parameters;

[0048] Calculating a translation distance according to the pixel distance and the scale parameter;

[0049] The rotated second feature image is translated according to the translation distance.

[0050] As an optional implementation of the embodiment of the present disclosure, the processing module fuses the second feature image after rotation and translation processing with the first feature image to obtain a target feature image, which is specifically used to:

[0051] Splicing the second feature image after rotation and translation processing with the first feature image to obtain a feature splicing image;

[0052] Each pixel of the feature stitching image is traversed, and a pixel mean of the feature stitching image is calculated to obtain the target feature image.

[0053] As an optional implementation of the embodiment of the present disclosure, the processing module, after fusing the second feature image after the rotation and translation processing with the first feature image to obtain the target feature image, is further used to:

[0054] The current moment and the target feature image are stored correspondingly.

[0055] In a third aspect, the present disclosure provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the image processing method as described in the first aspect or any optional embodiment thereof.

[0056] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the image processing method as described in the first aspect or any optional embodiment thereof is implemented.

[0057] In a fifth aspect, a vehicle is provided, the vehicle comprising a vehicle collision detection device as described in the second aspect, or an electronic device as described in the third aspect. The vehicle is used to execute the image processing method provided in any embodiment of the present disclosure.

[0058] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0059] The present disclosure provides an image processing method, device, electronic device, storage medium and vehicle, wherein the method first obtains a first feature image at a current moment and a second feature image stored at a historical moment, and then obtains an orientation angle difference and a pixel distance of a reference object moving from a historical moment to the current moment in a global coordinate system; then the second feature image is rotated and translated according to the orientation angle difference and the pixel distance, and the rotated and translated second feature image and the first feature image are further fused to obtain a target feature image, which combines the first feature image at the current moment with the second feature image at a historical moment, contains comprehensive and true features, and reduces the adverse effects of fisheye camera imaging distortion on feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0062] Figure 1 A schematic diagram of a flow chart of an image processing method according to an embodiment of the present disclosure;

[0063] Figure 2A schematic diagram of a process for obtaining a first feature image provided by an embodiment of the present disclosure;

[0064] Figure 3 A structural diagram of an image processing device according to an embodiment of the present disclosure;

[0065] Figure 4 This is a structural diagram of an electronic device described in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0066] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0068] At present, in the field of intelligent driving, surround view cameras equipped with fisheye cameras are mostly used to collect environmental images around the vehicle body for parking space detection, obstacle detection, etc. The imaging of fisheye cameras is distorted, so the collected environmental images are severely distorted and contain a limited amount of effective image feature information, so the effect of feature extraction from such environmental images is not ideal. Therefore, how to extract effective features from surround view images and reduce the adverse effects of fisheye camera imaging distortion on feature extraction has become a technical problem that needs to be solved in the field of image processing.

[0069] In order to solve the above technical problems, the embodiments of the present disclosure provide an image processing method, device, electronic device, storage medium and vehicle, wherein the method comprises: first obtaining a first feature image at the current moment and a second feature image at a stored historical moment, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; then obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system, and then rotating and translating the second feature image according to the orientation angle difference and the pixel distance, and then fusing the rotated and translated second feature image with the first feature image to obtain a target feature image. The present disclosure rotates, translates and fuses the first feature image and the second feature image whose features have been extracted at the current moment and the historical moment based on the movement of the reference object to obtain a target feature image, and the image feature information contained in the target feature image is complete and true, which is conducive to further feature extraction and reduces the adverse effects of fisheye camera imaging distortion on feature extraction.

[0070] An image processing method provided in an embodiment of the present disclosure can be applied to a vehicle terminal. The operating system of the vehicle terminal may include Android, a mobile operating system (iOS) developed by Apple, an operating system (Windows) developed by Microsoft Corporation, etc., and the embodiment of the present disclosure is not limited to this.

[0071] It should be noted that the protection scope of the image processing method described in the embodiment of the present disclosure is not limited to the execution order of the steps listed in this embodiment, and all solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present disclosure are included in the protection scope of the present disclosure.

[0072] like Figure 1 As shown, Figure 1 The following is a flow chart of an image processing method according to an embodiment of the present disclosure. The method includes the following S101 to S104:

[0073] S101, obtaining a first characteristic image at a current moment and a second characteristic image at a stored historical moment.

[0074] The first feature image and the second feature image are both obtained by feature extraction based on the surround view image, the first feature image includes image features corresponding to the current moment, and the second feature image includes image features corresponding to the historical moment. Here, the surround view image for extracting the first feature image and the surround view image for extracting the second feature image are both collected using the same fisheye camera.

[0075] In some embodiments, Figure 2 As shown, Figure 2 The flowchart of obtaining the first characteristic image provided by the embodiment of the present disclosure includes the following steps S1011 to S1014:

[0076] S1011. Obtain an initial image captured by the fisheye camera at the current moment.

[0077] The fisheye camera here can be single or multiple, and each fisheye camera can capture an initial image; in this step, if there is a single fisheye camera, the fisheye camera can capture an initial image as the surround view image, and directly execute step S1014; if there are multiple fisheye cameras, execute steps S1012 and S1013 to obtain the surround view image after the multiple initial images are stitched together.

[0078] Optionally, the field of view of a fisheye camera exceeds 180 degrees, and four fisheye cameras are usually configured for image acquisition to cover a complete 360-degree surround field of view.

[0079] S1012: Obtain camera intrinsic parameters and camera extrinsic parameters of the fisheye camera.

[0080] Among them, the camera intrinsic parameters are parameters related to the camera's own characteristics, such as the camera's focal length, pixel size, etc.; the camera extrinsic parameters are parameters in the world coordinate system, such as the camera's position, rotation direction, etc.

[0081] S1013: stitching the collected initial images according to the camera intrinsic parameters and camera extrinsic parameters of the fisheye camera to obtain a surround view image.

[0082] Here, the initial images may be spliced ​​using an existing method.

[0083] S1014: Extract features from the surround view image to obtain a first feature image.

[0084] Optionally, a convolutional neural network (CNN) is used to extract features. The feature extraction method is not specifically limited in the embodiments of the present disclosure.

[0085] The above embodiment obtains a surround view image by stitching the initial image captured by the surround view camera, and then extracts features from the surround view image to obtain a first feature image at the current moment. Due to image distortion, the image feature information contained in the first feature image may contain errors.

[0086] In some embodiments, a second characteristic image of a stored historical moment is obtained, and the historical moment is a moment within a preset time period before the current moment. If the current moment is moment t, the historical moment is the previous moment t-1, moment t-2, etc. The preset time period is a time period pre-set based on actual needs.

[0087] The second characteristic image is obtained at the historical moment after alignment, splicing and fusion based on the characteristic images at the historical moment and before the historical moment.

[0088] The second characteristic image of a historical moment can be obtained, which can be the second characteristic image of a certain historical moment, or the second characteristic images of multiple historical moments, that is, the present disclosure does not specifically limit the number of second characteristic images. Optionally, the embodiment of the present disclosure obtains the second characteristic image of the previous moment. Image processing is performed on two consecutive frames of images, so that the characteristic information is effectively supplemented, and the effect of feature extraction is improved.

[0089] It should be noted that, at the initial moment, CNN is used to obtain the feature image at the initial moment, and the feature image at the initial moment is stored. Subsequently, as time goes by, for example, at the next moment of the initial moment, recorded as the first moment, the initial moment is the historical moment of the first moment, and the first feature image of the first moment and the second feature image stored at the initial moment are obtained to perform subsequent steps S102 to S104. At other moments after the initial moment, the corresponding feature image and the feature image corresponding to the historical moment are obtained, so as to use the feature image of the historical moment that has been dedistorted to process the currently obtained feature image.

[0090] S102, obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system.

[0091] In some embodiments, the reference object may be a moving object with multiple surround view cameras installed. The origin of the global coordinate system is the initial position of the reference object. For example, when performing parking space detection in a vehicle entry scenario, the vehicle can be used as a reference object, and the initial position of the vehicle is used as the origin of the global coordinate system.

[0092] In some embodiments, first, in the world coordinate system, the first orientation and the first position of the reference object at the current moment, as well as the second orientation and the second position of the reference object at the historical moment are obtained, and then the orientation angle difference α between the first orientation angle and the second orientation angle in the global coordinate system is calculated, and the actual moving distance from the second position to the first position is calculated, and then the camera intrinsic parameters and the camera extrinsic parameters are obtained, and the actual moving distance of the reference object in the world coordinate system is converted into the pixel distance (pix) in the global coordinate system according to the camera intrinsic parameters and the camera extrinsic parameters. Thus, the change of feature information in the feature image is determined based on the actual position change of the reference object.

[0093] S103: rotating and translating the second feature image according to the orientation angle difference and the pixel distance.

[0094] In some embodiments, the second feature image at the historical moment is rotated according to the orientation angle difference α, and then the scale parameter (scale) is obtained, and the translation distance is calculated according to the pixel distance and the scale parameter. The translation distance (trans) is calculated according to the following formula (1):

[0095]

[0096] Furthermore, the second feature image rotated by α degrees is translated according to the translation distance trans.

[0097] The second feature image at the historical moment is rotated and translated based on the actual position change of the reference object, so as to be aligned with the first feature image and the second feature image at the current moment, so as to facilitate subsequent feature fusion.

[0098] S104: Fusing the rotated and translated second feature image with the first feature image to obtain a target feature image.

[0099] In some embodiments, the second feature image and the first feature image after rotation and translation are first spliced ​​to obtain a feature spliced ​​image, and then each pixel of the feature spliced ​​image is traversed to calculate the pixel mean of the feature spliced ​​image. The pixel mean reflects the image features, and then a target feature image is obtained. The second feature image and the first feature image after image alignment are feature fused. The obtained target feature image contains real and comprehensive image feature information, and can extract more and more effective image feature information.

[0100] In some embodiments, the target feature image is stored corresponding to the current moment, and is used as the feature image of the historical moment in the subsequent process for feature alignment, feature splicing and feature fusion, which can achieve feature extraction based on multi-frame feature images and improve the effect of feature extraction.

[0101] In the disclosed embodiment, taking into account the movement of the reference object, the surround view image collected by the surround view camera at a certain moment is distorted, resulting in a large error in the feature information contained in other areas of the feature image at that moment except the central area, especially in the four corners of the feature image. The feature information contained in the feature images obtained at multiple moments changes with the movement of the vehicle. Therefore, based on the change in the position of the reference object, the feature images at multiple moments are aligned, spliced, and fused. The obtained target feature image combines the feature information corresponding to multiple moments, and the feature information is more real and comprehensive, thereby improving the effect of feature extraction.

[0102] In summary, the disclosed embodiment provides an image processing method, which first obtains a first feature image at the current moment and a second feature image at a stored historical moment, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; then the reference object is obtained in the global coordinate system, from the historical moment to the current moment, by the orientation angle difference and the pixel distance, and then the second feature image is rotated and translated according to the orientation angle difference and the pixel distance, and then the rotated and translated second feature image is fused with the first feature image to obtain a target feature image. The disclosed method rotates, translates and fuses the first feature image and the second feature image whose features have been extracted at the current moment and the historical moment based on the movement of the reference object to obtain a target feature image, and the image feature information contained in the target feature image is complete and true, which is conducive to further feature extraction and reduces the adverse effects of fisheye camera imaging distortion on feature extraction.

[0103] like Figure 3 As shown, Figure 3 This is a structural diagram of an image processing device according to an embodiment of the present disclosure, the device comprising:

[0104] The acquisition module 301 is used to acquire a first feature image at the current moment and a second feature image at a stored historical moment, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; and to acquire a direction angle difference and a pixel distance of a reference object from a historical moment to the current moment in a global coordinate system;

[0105] The processing module 302 is used to rotate and translate the second feature image according to the orientation angle difference and the pixel distance; and fuse the second feature image after the rotation and translation with the first feature image to obtain a target feature image.

[0106] As an optional implementation of the embodiment of the present disclosure, the acquisition module 301 obtains the orientation angle difference and pixel distance of the reference object moving from a historical moment to a current moment in the global coordinate system, and is specifically used to: obtain the first orientation angle and the first position of the reference object at the current moment, and the second orientation angle and the second position of the reference object at the historical moment in the world coordinate system; calculate the orientation angle difference between the first orientation angle and the second orientation angle in the global coordinate system, and calculate the actual moving distance from the second position to the first position; obtain camera intrinsic parameters and camera extrinsic parameters, and convert the actual moving distance into the pixel distance based on the camera intrinsic parameters and the camera extrinsic parameters.

[0107] As an optional implementation of the embodiment of the present disclosure, the acquisition module 301 acquires the first feature image at the current moment, and is specifically used to: acquire the initial images captured by multiple surround-view cameras at the current moment; acquire the camera intrinsic parameters and camera extrinsic parameters of the multiple surround-view cameras; splice the initial images to obtain the surround-view image according to the camera intrinsic parameters and camera extrinsic parameters; and perform feature extraction on the surround-view image to obtain the first feature image.

[0108] As an optional implementation of the embodiment of the present disclosure, the processing module 302 rotates and translates the second feature image according to the orientation angle difference and the pixel distance, and is specifically used to: rotate the second feature image according to the orientation angle difference; translate the rotated second feature image according to the pixel distance.

[0109] As an optional implementation of the embodiment of the present disclosure, the processing module 302 translates the rotated second feature image according to the pixel distance, and is specifically used to: obtain a scale parameter; calculate a translation distance according to the pixel distance and the scale parameter; and translate the rotated second feature image according to the translation distance.

[0110] As an optional implementation of the embodiment of the present disclosure, the processing module 302 fuses the second feature image after rotation and translation processing with the first feature image to obtain a target feature image, and is specifically used to: splice the second feature image after rotation and translation processing with the first feature image to obtain a feature splicing image; traverse each pixel of the feature splicing image, and calculate the pixel mean of the feature splicing image to obtain the target feature image.

[0111] As an optional implementation of the embodiment of the present disclosure, the processing module 302, after fusing the second feature image after rotation and translation processing with the first feature image to obtain a target feature image, is further used to: store the current moment and the target feature image in correspondence.

[0112] The disclosed embodiment provides an image processing device, which first acquires a first feature image at the current moment and a second feature image at a stored historical moment by an acquisition module, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; then the reference object is obtained in the global coordinate system, from the historical moment to the current moment, by the orientation angle difference and the pixel distance, and then the processing module rotates and translates the second feature image according to the orientation angle difference and the pixel distance, and then the rotated and translated second feature image is fused with the first feature image to obtain a target feature image. The disclosed device rotates, translates and fuses the first feature image and the second feature image whose features have been extracted at the current moment and the historical moment based on the movement of the reference object to obtain a target feature image, and the image feature information contained in the target feature image is complete and true, which is conducive to further feature extraction and reduces the adverse effects of fisheye camera imaging distortion on feature extraction.

[0113] like Figure 4 As shown, Figure 4 This is a structural diagram of an electronic device according to an embodiment of the present disclosure. The embodiment of the present disclosure provides an electronic device, which includes: a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the computer program is executed by the processor 401, each process of the image processing method in the above method embodiment is implemented. And the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0114] The embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the image processing method in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0115] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0116] The embodiment of the present disclosure provides a vehicle, which includes the above-mentioned image processing device or the above-mentioned electronic device. The vehicle is used to execute the image processing method provided by any embodiment of the present disclosure.

[0117] The embodiment of the present disclosure provides a computer program product, which stores a computer program. When the computer program is executed by a processor, the various processes of the image processing method in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0118] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0119] In several embodiments provided by the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0120] In the present disclosure, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0121] In the present disclosure, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0122] In the present disclosure, computer-readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0123] It should be noted that, in this article, relational terms such as "first" and "second" 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 term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or 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 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 device including the elements.

[0124] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An image processing method, characterized in that: include: Acquire a first characteristic image at a current moment and a second characteristic image at a stored historical moment, wherein the first characteristic image and the second characteristic image are both obtained by extracting features based on a surround view image; Obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system; Rotate and translate the second feature image according to the orientation angle difference and the pixel distance; The second feature image after rotation and translation processing is fused with the first feature image to obtain a target feature image.

2. The method according to claim 1, characterized in that The method of obtaining the orientation angle difference and pixel distance of the reference object from the historical moment to the current moment in the global coordinate system includes: In the world coordinate system, obtaining a first orientation angle and a first position of the reference object at the current moment, and a second orientation angle and a second position at the historical moment; Calculating the orientation angle difference between the first orientation angle and the second orientation angle in the global coordinate system, and calculating an actual moving distance from the second position to the first position; A camera intrinsic parameter and a camera extrinsic parameter are obtained, and the actual moving distance is converted into the pixel distance according to the camera intrinsic parameter and the camera extrinsic parameter.

3. The method according to claim 1, characterized in that The obtaining of the first feature image at the current moment includes: Acquire initial images collected by multiple surround view cameras at the current moment; Obtaining camera intrinsic parameters and camera extrinsic parameters of the multiple surround view cameras; According to the camera intrinsic parameters and camera extrinsic parameters, stitching the initial images to obtain a surround view image; Feature extraction is performed on the surround view image to obtain the first feature image.

4. The method according to claim 1, characterized in that: The rotating and translating processing of the second feature image according to the orientation angle difference and the pixel distance includes: Rotate the second feature image according to the orientation angle difference; The rotated second feature image is translated according to the pixel distance.

5. The method according to claim 4, characterized in that The translating the rotated second feature image according to the pixel distance includes: Get scale parameters; Calculate the translation distance according to the pixel distance and the scale parameter; The rotated second feature image is translated according to the translation distance.

6. The method according to claim 1, characterized in that The step of fusing the second feature image after the rotation and translation processing with the first feature image to obtain the target feature image includes: Splicing the second feature image after rotation and translation processing with the first feature image to obtain a feature splicing image; Each pixel of the feature stitching image is traversed, and a pixel mean of the feature stitching image is calculated to obtain the target feature image.

7. The method according to claim 1, characterized in that After fusing the second feature image after the rotation and translation processing with the first feature image to obtain the target feature image, the method further includes: The current moment and the target feature image are stored correspondingly.

8. An image processing device, characterized in that: include: An acquisition module is used to acquire a first feature image at the current moment and a second feature image at a stored historical moment, wherein the first feature image and the second feature image are both obtained by extracting features based on the surround image; and to acquire a direction angle difference and a pixel distance of a reference object from a historical moment to the current moment in a global coordinate system; A processing module, used for rotating and translating the second feature image according to the orientation angle difference and the pixel distance; The second feature image after rotation and translation processing is fused with the first feature image to obtain a target feature image.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the image processing method according to any one of claims 1 to 7 when executed by the processor.

10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the image processing method according to any one of claims 1 to 7 is implemented.

11. A vehicle, characterized in that: include: An image processing device as claimed in claim 8, or an electronic device as claimed in claim 10.

Citation Information

Patent Citations

  • Image processing device, image processing method, program, and imaging device

    CN102714696A

  • Panoramic image generation method and system in driving look-around system and storage medium

    CN111275621A

  • Method and device for measuring position of moving object at road end

    CN113884099A

  • Camera calibration method, electronic device, storage medium, and road side device

    US20220222857A1

  • Calibration method and apparatus for distance measurement device and camera fusion system

    WO2022262332A1