Image processing method, storage medium, controller and vehicle
By performing perspective transformation and image fusion on the monocular wide-angle camera image, mapping it to a three-dimensional surface and converting it into two dimensions, the problem of over-stretching of the edge perspective distortion of the monocular wide-angle camera image is solved, and the optimization of the image ratio and the reduction of perspective distortion are achieved. reduce.
Patent Information
- Application Number
- CN202410728819.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-06
AI Technical Summary
The perspective distortion in the original image produced by the monocular wide-angle camera at the center of the visual field and the edge of the visual field does not conform to the proportion of the human eye's visual angle, resulting in over-stretching of edge targets.
By obtaining the original image, perform perspective transformation, generate images from multiple perspectives, fuse them, map them to the target three-dimensional surface, convert them to a two-dimensional surface, and finally crop the optimized original image to balance the perspective center and field of view. Edge distortion.
The optimized proportions of edge objects in the image are in line with human vision, reducing perspective distortion and making the image more consistent with the subjective perception of the human eye.
Smart Images

Figure CN118297819B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an image processing method and a storage medium, a controller and a vehicle. Background Art
[0002] The original image from the monocular wide-angle camera has a small central perspective distortion in front of the center of the camera's field of view, and a large perspective distortion at the edge of the field of view. The over-stretching phenomenon of the edge objects in the original image from the monocular wide-angle camera caused by the relevant de-distortion algorithm does not conform to the proportion of the human eye's field of view. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art to at least some extent. To this end, one object of the present invention is to provide an image processing method to balance the image distortion at the center of the viewing angle and the edge of the viewing angle, reduce the perspective distortion, and make the objects at the edge of the optimized original image appear in a proportion that conforms to the human eye's vision.
[0004] A second object of the present invention is to provide a computer-readable storage medium.
[0005] A third objective of the present invention is to provide an electronic device.
[0006] A fourth object of the present invention is to provide a vehicle.
[0007] To achieve the above-mentioned objectives, the first aspect of the present invention proposes an image processing method, which includes: acquiring an original image; performing a perspective transformation on the original image to obtain images of multiple perspectives; and performing image fusion on the original image and the images of multiple perspectives to obtain an optimized original image.
[0008] According to the image processing method of the embodiment of the present invention, the perspective of the original image is transformed, and the original image and multiple images after the perspective transformation are fused to balance the image distortion at the perspective center and the edge of the field of view, reduce the perspective distortion, and make the objects at the edge of the optimized original image appear in a proportion that conforms to the human eye vision.
[0009] In addition, the image processing method proposed in the above embodiment of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the image fusion of the original image and the images of multiple perspectives to obtain an optimized original image includes: mapping the original image and the images of multiple perspectives onto a target three-dimensional surface to obtain a three-dimensional surface image; converting the three-dimensional surface image into a two-dimensional surface image, and obtaining the optimized original image based on the two-dimensional surface image.
[0011] According to an embodiment of the present invention, the multiple viewing angles are virtual viewing angles obtained by rotating based on the central viewing angle of the original image.
[0012] According to one embodiment of the present invention, the original image is an image captured by a monocular camera, and the multiple viewing angles include: based on the central viewing angle of the original image, turning around the X-axis to a positive preset angle and a negative preset angle, turning around the Y-axis to the positive preset angle and the negative preset angle, turning around X+ to a 45° direction of Y+ to the positive preset angle, turning around X+ to a 135° direction of Y+ to the positive preset angle, turning around X+ to a 225° direction of Y+ to the positive preset angle, and turning around X+ to a 315° direction of Y+ to the positive preset angle.
[0013] According to an embodiment of the present invention, the target three-dimensional surface is determined according to the horizontal resolution, vertical resolution and distortion parameters of the camera corresponding to the original image.
[0014] According to an embodiment of the present invention, converting the three-dimensional curved surface image into a two-dimensional curved surface image includes: using a front view of the three-dimensional curved surface image as the two-dimensional curved surface image.
[0015] According to an embodiment of the present invention, obtaining the optimized original image based on the two-dimensional curved surface image includes: cutting out an image of the largest rectangular area inscribed in the two-dimensional curved surface image as the optimized original image.
[0016] To achieve the above objectives, a second aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the image processing method of the first aspect of the present invention is implemented.
[0017] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a controller, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, an image processing method as in the first aspect of the present invention is implemented.
[0018] To achieve the above-mentioned purpose, a fourth embodiment of the present invention proposes a vehicle, comprising a monocular camera and a controller as proposed in the third embodiment of the present invention.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of an image processing method according to an embodiment of the present invention;
[0021] Figure 2 is a flow chart of performing image fusion according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of different viewing angles of a monocular camera according to a specific embodiment of the present invention;
[0023] Figure 4 The embodiment of the present invention is for Figure 2 Edge images at different perspectives;
[0024] Figure 5 is a schematic diagram of coordinate mapping of an image processing method according to an embodiment of the present invention;
[0025] Figure 6 It is a mapping effect diagram of a three-dimensional curved surface image according to a specific embodiment of the present invention;
[0026] Figure 7 is a schematic diagram of a target three-dimensional surface according to a specific embodiment of the present invention;
[0027] Figure 8 It is a three-view drawing of a target three-dimensional surface according to an embodiment of the present invention;
[0028] Fig. 9 is an optimized original image according to a specific embodiment of the present invention;
[0029] Fig.10 It is a rear view of combining and composing multiple perspectives according to a specific embodiment of the present invention;
[0030] FIG11( a ) is a first example image after optimization using the relevant distortion optimization technique;
[0031] FIG11( b ) is a first example image optimized by an embodiment of the present invention;
[0032] FIG12( a ) is a second example image after being optimized using the correlation distortion optimization technique;
[0033] FIG12( b ) is a second example image optimized by the embodiment of the present invention;
[0034] FIG13( a ) is a third example image after optimization using the correlation distortion optimization technique;
[0035] FIG13( b ) is a third example image optimized by the embodiment of the present invention;
[0036] Fig.14 is a flowchart of image processing according to another specific embodiment of the present invention;
[0037] Fig.15 is a schematic diagram of an image processing system according to a specific embodiment of the present invention;
[0038] Fig.16 is a structural block diagram of a controller according to an embodiment of the present invention;
[0039] Fig.17 Schematic diagram of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0041] The following is attached to the instruction manual Figure 1-17 And specific implementation methods are described in detail the image processing method, storage medium, controller and vehicle of the embodiments of the present invention.
[0042] 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 may include:
[0043] S101, obtaining an original image;
[0044] S102, performing perspective transformation on the original image to obtain images of multiple perspectives;
[0045] S103, performing image fusion on the original image and the images from multiple perspectives to obtain an optimized original image.
[0046] The original image in the embodiment of the present invention is a wide-angle image captured by a monocular wide-angle camera.
[0047] In order to optimize the transition stretching of edge objects in the original image of a monocular wide-angle camera, the embodiment of the present invention simulates the rotation of the human eye, performs multiple perspective transformations on the original image collected by the monocular wide-angle camera, and obtains central perspective imaging at multiple different perspectives (edge images at multiple different perspectives). The original image and multiple edge images are fused to optimize the objects at the edge of the original image without transition stretching, so that the optimized original image meets the proportion of human eye vision.
[0048] In one embodiment of the present invention, Figure 2 As shown, the original image and the images of multiple perspectives are fused to obtain an optimized original image, which may include:
[0049] S201, mapping the original image and the images from multiple perspectives onto a target three-dimensional surface to obtain a three-dimensional surface image;
[0050] S202, converting the three-dimensional curved surface image into a two-dimensional curved surface image, and obtaining an optimized original image according to the two-dimensional curved surface image.
[0051] Specifically, according to the mapping relationship between the original image and the images of multiple perspectives, the original image and the images of multiple perspectives are mapped onto the target three-dimensional surface, and then the mapped three-dimensional surface image is converted into two dimensions. The optimized original image is obtained based on the converted two-dimensional surface image. Objects at the edge of the optimized original image will not be over-stretched, which conforms to the proportion of human eye vision.
[0052] The embodiment of the present invention transforms the perspective of the original image, maps the original image and images of multiple perspectives onto a target three-dimensional surface, converts the obtained three-dimensional surface image into two dimensions, and obtains an optimized original image based on the converted two-dimensional surface image to balance the image distortion at the perspective center and the edge of the field of view, reduce perspective distortion, and make objects at the edge of the optimized original image appear in a proportion that conforms to human vision.
[0053] In the embodiment of the present invention, the two-dimensional coordinates of a pixel point in the original image captured by the camera model of the viewing angle O are , and its corresponding three-dimensional world coordinate point is , the relationship between the two is shown as follows:
[0054]
[0055] in, is the horizontal focal length of the camera, is the vertical focal length of the camera, R is the rotation matrix, and T is the translation matrix.
[0056] In one embodiment of the present invention, the multiple viewing angles are virtual viewing angles obtained by rotating based on the central viewing angle of the original image.
[0057] In a specific embodiment of the present invention, the original image is an image captured by a monocular camera, and the multiple viewing angles may include: based on the central viewing angle of the original image, turning around the X-axis to a positive preset angle and a negative preset angle, turning around the Y-axis to a positive preset angle and a negative preset angle, turning around the X+ deviation from the Y+ direction of 45° to a positive preset angle, turning around the X+ deviation from the Y+ direction of 135° to a positive preset angle, turning around the X+ deviation from the Y+ direction of 225° to a positive preset angle, and turning around the X+ deviation from the Y+ direction of 315° to a positive preset angle.
[0058] As a specific embodiment, Figure 3 As shown, the original image is an image captured by a monocular camera at a viewing angle O. The camera viewing angle O is rotated around the X axis to a positive preset angle. , can be converted to the virtual camera view B; turn around the X axis to the negative preset angle , can be converted to the virtual camera perspective G; turn around the Y axis to the positive preset angle , can be converted to the virtual camera perspective D; turn around the Y axis to the negative preset angle , you can switch to the virtual camera view E; turn to the preset angle at 45° from X+ to Y+ , can be converted to the virtual camera view C; turn around the 315° direction of X+ and Y+ to the positive preset angle , can be converted to the virtual camera perspective A; turn around the 225° direction of X+ and Y+ to the positive preset angle , can be converted to the virtual camera perspective F; turn around the X+ deviated Y+ 135° direction to the positive preset angle , converted to the virtual camera perspective H. By converting the camera to different virtual perspectives, the central imaging under different virtual perspectives can be obtained, that is, Figure 4 Images A~H are shown.
[0059] The embodiment of the present invention utilizes perspective imaging models under different perspectives to convert the original image to different perspectives to obtain images under different perspectives.
[0060] Specifically, when the O view is turned around the X axis to the positive preset angle To the viewing angle G (the following rotations all use the right-handed spiral coordinate system), the two-dimensional coordinates of a pixel point in the viewing angle G imaging are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown in the following formula.
[0061] ,in, , .
[0062] Specifically, when the angle of view is turned from the O angle around the X axis to the negative preset angle To view B, the two-dimensional coordinates of a pixel point in the image of view B are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown in the following formula;
[0063] ,in , .
[0064] Specifically, when the O viewpoint is turned around the Y axis to the positive preset angle To view angle E, the two-dimensional coordinates of a pixel point in the image of view angle E are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown as follows:
[0065] ,in , .
[0066] Specifically, when the O viewpoint turns around the Y axis to a negative preset angle To the viewing angle D, the two-dimensional coordinates of a pixel point in the imaging of viewing angle D are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown as follows:
[0067] ,in , .
[0068] Specifically, when rotating around the X axis from the O perspective by a negative preset angle Then rotate around the Y axis to a negative preset angle To view A, the two-dimensional coordinates of a pixel point in the image of view A are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown as follows:
[0069] ,in , .
[0070] Specifically, when rotating around the X axis from the O perspective by a positive preset angle After the angle, rotate around the Y axis to the preset angle To the viewing angle H, the two-dimensional coordinates of a pixel point in the imaging of viewing angle H are , and its corresponding imaging coordinate point of viewing angle O is , the relationship between the two is shown in the following formula;
[0071] ,in , .
[0072] The derivation of directions C and F is omitted here.
[0073] It should be noted that the O perspective can also be converted to other virtual perspectives, and the embodiment of the present invention does not limit the conversion angle of the monocular camera O perspective. When the O perspective is converted to other virtual perspectives, the perspective imaging model corresponding to the virtual perspective can be used to obtain the edge image under the virtual perspective.
[0074] After the original image is converted to a viewing angle, the central image under the corresponding viewing angle can be obtained. Figure 5 .
[0075] When the central images at the O and A-H viewing angles (images at the A-H viewing angles) obtained after the viewing angle conversion in the above specific embodiment are mapped onto the umbrella surface, Figure 4 The area arrangement relationship shown in the figure is mapped, and the original image and the central image of the A~H perspective are mapped to Figure 5 The target three-dimensional curved surface (target umbrella surface model) is shown, thereby obtaining a three-dimensional curved surface image corresponding to the original image. Figure 6 This is a mapping effect diagram of a three-dimensional curved surface image according to a specific embodiment.
[0076] When mapping the original image and edge images of multiple perspectives to the target three-dimensional surface, the embodiment of the present invention preliminarily establishes the following according to the horizontal resolution, vertical resolution and distortion of the monocular camera: Figure 7 The target three-dimensional surface (3D umbrella model) is shown.
[0077] In an embodiment of the present invention, the target three-dimensional surface is determined according to the horizontal resolution, vertical resolution and distortion parameters of the camera corresponding to the original image.
[0078] In an embodiment of the present invention, Figure 8 As shown, the target three-dimensional surface is expressed by the following formula:
[0079]
[0080]
[0081]
[0082] in, is the front view equation of the target 3D surface, are the parameters of the front view equation of the target 3D surface, is the curvature equation of the top view of the target three-dimensional surface, are the quadratic coefficient, linear coefficient and constant term of the curvature equation of the top view of the target three-dimensional surface, is the curvature equation of the target 3D surface side view angle, are the quadratic coefficient, linear coefficient and constant term of the curvature equation of the target three-dimensional surface side view angle.
[0083] Specifically, are the parameters of the target 3D surface, Determined according to the horizontal resolution and vertical resolution of the monocular camera, Determined according to the distortion parameters of the monocular camera.
[0084] As a specific example, the parameters of the target three-dimensional surface are set as follows: , , is the width of the original image, is the height of the original image. Applicable to a certain sample camera, Set to , In order to simplify the target three-dimensional surface Can be set to 0, that is , , , .
[0085] It should be noted that Setting it to 0 simplifies the target 3D surface. In practice, it will be adjusted based on the camera distortion. When adjusting the image quality, the user can make adjustments based on the subjective judgment of the human eye and the empirical value to obtain the parameter value that is subjectively felt to be consistent with the perception of the human eye.
[0086] In the embodiment of the present invention, when the preset angle is , , when the edge images of multiple perspectives include edge images of eight perspectives, the three-dimensional surface image is expressed by the following formula:
[0087]
[0088]
[0089]
[0090] in, is the horizontal coordinate of the three-dimensional surface image, is the vertical coordinate of the three-dimensional surface image, is the depth coordinate of the three-dimensional surface image, is the horizontal coordinate of the original image and the edge image, is the ordinate of the original image and the edge image.
[0091] In the embodiment of the present invention, the parameters of the target three-dimensional surface are Refers to the distance from the viewpoint to the umbrella surface. In this example, Set as .
[0092] Specifically, when the preset angle is , , using the above formula, according to the image coordinates of the original image of the O perspective and the edge image of the A~H perspective, the image coordinates of the original image of the O perspective and the edge image of the A~H perspective can be transferred to the three-dimensional surface to obtain the three-dimensional coordinates of the three-dimensional surface image.
[0093] In an embodiment of the present invention, converting a three-dimensional curved surface image into a two-dimensional curved surface image includes: using a front view of the three-dimensional curved surface image as a two-dimensional curved surface image.
[0094] Specifically, when converting a 3D surface image to 2D, the apparent depth is set to 0. Set it to 0, and map the 3D surface image back to 2D by taking the 3D surface image as the front view image.
[0095] In an embodiment of the present invention, obtaining an optimized original image according to a two-dimensional curved surface image includes: cutting out an image of a maximum inscribed rectangular area of the two-dimensional curved surface image as the optimized original image.
[0096] Specifically, according to the principle of the largest inscribed rectangle of a two-dimensional curved surface image, effective pixels in a rectangular area are cropped from the two-dimensional curved surface image to obtain the final image (the optimized original image). Figure 7 and Fig. 9 In the A area, we can see Fig. 9 The perspective distortion at the edge is effectively reduced. Fig.10 It is a back view of combining and composing multiple viewing angles according to a specific embodiment.
[0097] FIG11 (a), FIG12 (a) and FIG13 (a) are example diagrams after distortion optimization of the related art, and FIG11 (b), FIG12 (b) and FIG13 (b) are example diagrams after optimization using the embodiment of the present invention. Referring to FIG11 (a) and FIG11 (b), the length of the car at the edge of FIG11 (a) is much greater than the length of the car next to it. The length ratio of the car at the edge of FIG11 (b) to the length of the car next to it conforms to the subjective visual perception of the human eye, and the edge perspective distortion is improved. Referring to FIG12 (a) and FIG12 (b), and referring to FIG13 (a) and FIG13 (b). The edge pillars of FIG12 (a) and FIG13 (a) are too wide, and the perspective distortion is large. The edge perspective distortion of FIG12 (b) and FIG13 (b) is reduced.
[0098] The image processing method of the embodiment of the present invention includes perspective transformation, umbrella imaging (mapping of the target three-dimensional surface), cropping, and optimization of perspective distortion, thereby solving the distortion of the monocular wide-angle camera carried by the intelligent vision system.
[0099] The image processing method of the embodiment of the present invention simulates the rotation of the human eye for a monocular camera with a fixed viewing angle, performs multi-view central imaging of the entire field of view, takes the center of the viewing angle as the center point, and shrinks the edge image toward the center point to shrink the strong perspective distortion at the edge of the image, achieves different proportions of scaling from the edge of the image to the center of the image, and obtains an image with smaller perspective distortion at the edge of the field of view.
[0100] In the image processing method of the embodiment of the present invention, the edge of the field of vision after visual conversion can also be processed as the center of the field of vision, and the multi-perspective images of the human eye are imaged as a whole by imitating the human brain (imitating the human brain's imaging of multiple perspective focusing center points of the human eye traversing the entire field of vision, and combining multi-perspective images (main focus imaging and peripheral light imaging)), and the image after eliminating edge perspective distortion conforms to human eye vision.
[0101] The image processing method of the embodiment of the present invention constructs an umbrella surface conversion model, which contains mapping factors for mapping a plane image to an umbrella surface image, and maps multiple plane images with multi-perspective imaging to the umbrella surface. The edges of the image with large perspective distortion are greatly shrunk according to human vision; the center of the image with small perspective distortion is copied 1:1 from the original image to repair the strong stretching phenomenon at the edge of the image. The 2D image is mapped to a 3D stereo surface, and then mapped back to a 2D image, and the perspective distortion at the edge of the image is shrunk. The 2D image is mapped to the surface of a 3D umbrella surface, and then a front view of the umbrella surface is taken to obtain a planar 2D image, so that the image obtains a larger pixel density in the center area and a smaller pixel density in the edge area, thereby achieving the effect of shrinking the strong perspective distortion at the edge of the image.
[0102] The image processing method of the embodiment of the present invention can be deployed on the vehicle platform, and can also be loaded on the vehicle-mounted mobile device for use in the visual monitoring system of the intelligent cockpit of the car, such as the Digital Video Recorder (DVR) and the Occupancy Monitoring System (OMS). The image processing method of the embodiment of the present invention can be used in the vehicle-mounted intelligent visual scene, and there is no large perspective distortion on the edge of the image. The objects in different areas of the camera field of view are evenly represented in the image, providing images that conform to the subjective perception of human vision, and providing users with a better visual experience and usage experience.
[0103] In line with the principle of achieving high-performance computing on mobile terminals, the above-mentioned image perspective transformation, mapping, and coordinate mapping relationships can be converted into a mapping table Map, which is loaded in the form of a neural network model when the algorithm library is initialized. Fig.14 As shown, by building the model offline, the offline model is loaded in the form of a neural network model when the algorithm library is initialized, so as to optimize the perspective distortion of the original image data collected by the monocular wide-angle camera and output the optimized original image. When building the model offline, a multi-view imaging model is established, a 3D model of the umbrella surface is established, and parameter configuration is completed. The original 2D image is mapped to the 3D umbrella surface image, the 2D front view image of the 3D image is obtained, the effective pixels are cropped, the biological neural network (NN) model is initialized and the map table is mapped to complete the model building.
[0104] Fig.15 This is the overall framework diagram of the imaging system based on the above image processing method. The algorithm framework for realizing the de-distortion remapping function of the video monocular wide-angle camera includes the SNPE model, remapping matrix, custom parameter entry, etc. Among them, Fig.15 The Android APP in the text refers to a specific business application in the Android system. The camera application business module refers to various specific camera businesses in the APP, such as camera photo preview, video recording, photo taking, and the data module of the camera screen required by the APP. The Android framework refers to the interface layer provided by the Android system to the APP to use system-related functions. The camera API (Application Programming Interface) refers to a collection of interface classes that provide APP with camera functions. Image data refers to the image data captured by the camera. The Android camera HAL (Hardware Abstraction Layer) is the interaction layer in the Android system that undertakes the operation of the camera function by the Android framework layer and the driver layer. The solid line with an arrow is the direction of the function interface call. The arrow points to the direction of the called interface location. The dotted line with an arrow is the data flow direction of the camera data.
[0105] The image processing method and the corresponding image system and device implemented in the present invention can be used in a mobile terminal or a PC.
[0106] The present invention provides a computer-readable storage medium.
[0107] In this embodiment, a computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned image processing method is implemented.
[0108] The invention provides a controller.
[0109] In this embodiment, the controller may include a memory and a processor, and a computer program is stored in the memory. The computer program is characterized in that when the computer program is executed by the processor, the image processing method as described above is implemented.
[0110] Fig.16 4 is a structural block diagram of a controller according to an embodiment of the present invention.
[0111] like Fig.16 As shown, the controller 500 includes: a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, such as through a bus 502. Optionally, the controller 500 may also include a transceiver 504. It should be noted that in actual applications, the transceiver 504 is not limited to one, and the structure of the controller 500 does not constitute a limitation on the embodiments of the present invention.
[0112] The processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor 501 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0113] The bus 502 may include a path to transmit information between the above components. The bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0114] The memory 503 is used to store a computer program corresponding to the image processing method of the above embodiment of the present invention, and the computer program is controlled and executed by the processor 501. The processor 501 is used to execute the computer program stored in the memory 503 to implement the content shown in the above method embodiment.
[0115] Among them, the controller 500 includes but is not limited to: mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.16 The controller 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0116] The computer-readable storage medium and the controller of the embodiment of the present invention use the above-mentioned image processing method to make the objects at the edge of the optimized original image appear in a proportion that conforms to human vision.
[0117] The present invention provides a vehicle.
[0118] Fig.17 FIG. 1 is a schematic diagram of a vehicle according to an embodiment of the present invention. Fig.17 As shown, the vehicle 1000 includes a monocular camera and the controller 500 described above.
[0119] The vehicle of the embodiment of the present invention utilizes the above-mentioned image processing method to make the objects at the edge of the optimized original image appear in a proportion that conforms to human vision.
[0120] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0121] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0122] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0123] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0124] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0125] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0126] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0127] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. An image processing method, characterized in that: The method comprises: Get the original image; Performing a perspective transformation on the original image to obtain images of multiple perspectives; Performing image fusion on the original image and the images from multiple perspectives to obtain an optimized original image; The multiple viewing angles are virtual viewing angles obtained by rotating based on the central viewing angle of the original image; The original image is an image captured by a monocular camera, and the multiple viewing angles include: based on the central viewing angle of the original image, the virtual viewing angles are turned around the X axis to a positive preset angle and a negative preset angle, around the Y axis to the positive preset angle and the negative preset angle, around X+ to a 45° direction of Y+ to the positive preset angle, around X+ to a 135° direction of Y+ to the positive preset angle, around X+ to a 225° direction of Y+ to the positive preset angle, and around X+ to a 315° direction of Y+ to the positive preset angle.
2. The image processing method according to claim 1, characterized in that: The step of fusing the original image with the images of multiple viewing angles to obtain an optimized original image includes: Mapping the original image and the images from multiple viewing angles onto a target three-dimensional surface to obtain a three-dimensional surface image; The three-dimensional curved surface image is converted into a two-dimensional curved surface image, and an optimized original image is obtained according to the two-dimensional curved surface image.
3. The image processing method according to claim 2, characterized in that: The target three-dimensional surface is determined according to the horizontal resolution, vertical resolution and distortion parameters of the camera corresponding to the original image.
4. The image processing method according to claim 2, characterized in that: The converting the three-dimensional curved surface image into a two-dimensional curved surface image comprises: The front view of the three-dimensional curved surface image is used as the two-dimensional curved surface image.
5. The image processing method according to claim 4, characterized in that: The step of obtaining an optimized original image according to the two-dimensional curved surface image comprises: The image of the largest inscribed rectangular area of the two-dimensional curved surface image is cut out as the optimized original image.
6. 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 5 is implemented.
7. A controller, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, the image processing method according to any one of claims 1 to 5 is implemented.
8. A vehicle, characterized in that: Comprises a monocular camera and a controller as claimed in claim 7.
Citation Information
Patent Citations
Fisheye image processing method and device, equipment and storage medium
CN109741241A
