Intelligent identification system using wide-angle camera
The intelligent identification system corrects image distortion in wide-angle cameras using correction patterns and coordinate transformations, improving the accuracy of distance calculations for safe driving.
Patent Information
- Application Number
- JP2024002027U
- Authority / Receiving Office
- JP · JP
- Patent Type
- Utility models
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2034-06-21
AI Technical Summary
Wide-angle cameras in vehicles suffer from image distortion, making it difficult for in-vehicle computers to accurately calculate distances to surrounding objects, which affects safe driving judgments.
An intelligent identification system using a wide-angle camera that corrects image distortion through a process involving image correction patterns, screen rotation, lens pitch and yaw angle corrections, and coordinate transformations, utilizing matrices to convert wide-angle image coordinates to world coordinates.
The system accurately corrects image distortion, enabling the in-vehicle computer to calculate distances to surrounding objects, thereby enhancing the accuracy of safe driving judgments.
Smart Images

Figure 0003247959000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an intelligent identification system that applies a wide-angle camera. [Background technology]
[0002] Safe driving is a very important issue for vehicle drivers and passengers. Currently, the industry provides many technologies to assist safe driving. For example, a vehicle is equipped with many wide-angle cameras to capture images in each direction of the vehicle. Also, for example, an on-board computer receives the images captured by the wide-angle cameras and uses them to determine whether the current vehicle is moving safely.
[0003] However, the image captured by the wide-angle camera is subject to image distortion, that is, the image captured by the wide-angle camera is distorted, so that the in-vehicle computer has difficulty in accurately judging the current road conditions. For example, the in-vehicle computer has difficulty in accurately calculating the distance between the driver's vehicle and surrounding objects (vehicles), which affects the in-vehicle computer's judgment of the current road conditions.
[0004] Therefore, in order to perform image recognition appropriately, an intelligent recognition system that employs a wide-angle camera that corrects image distortion captured by the wide-angle camera is desired. Summary of the Invention [Problem to be solved by the invention]
[0005] The embodiment of the present invention provides an intelligent recognition system using a wide-angle camera, which can correct image distortion caused by the wide-angle camera. [Means for solving the problem]
[0006] According to some embodiments of the present invention, an intelligent identification system using a wide-angle camera includes a wide-angle camera, a memory for storing a plurality of commands, and an on-board computer including a processor for loading in the commands to perform the following steps: providing an image correction pattern; photographing an image correction pattern by the wide-angle camera to obtain a correction pattern image; and performing screen rotation correction, lens pitch angle correction, inverse perspective projection and lens yaw angle correction on the wide-angle camera based on a correction formula to straighten a plurality of grids in the correction pattern image and convert a plurality of wide-angle image coordinates in the correction pattern image into a plurality of world coordinates. The correction formula used in the correction step is as follows: JPEG0003247959000002.jpg29170However, X w , Y w , Z w represents the 3D coordinate of the world coordinate system, and X i , Y i represents the two-dimensional coordinates of the wide-angle image coordinate axis, matrix A is the lens rotation correction matrix, matrix B is the lens pitch correction and inverse perspective projection matrix, matrix C is the lens yaw correction matrix, and matrix D is the coordinate transformation matrix, which is expressed as follows: JPEG0003247959000003.jpg89170However, θ yaw is the lens yaw angle, and θ pitch is the lens pitch angle, and θ roll is the lens roll angle, H is the height of the wide-angle camera, and Z c is the camera depth, and K x is the proportional constant between the pixel coordinate in the X-axis direction of the image and the world coordinate, and K y is the proportionality constant between pixel coordinates and world coordinates in the Y-axis direction of the image, w is the width of the image (e.g., in pixels), and h is the height of the image (e.g., in pixels).
[0007] In some embodiments, the wide-angle camera is a fisheye lens camera.
[0008] In some embodiments, the image correction pattern includes a black and white checkered pattern.
[0009] In some embodiments, when the image correction pattern is photographed by a wide-angle camera, the wide-angle camera is mounted on a vehicle and the image correction pattern is mounted on the ground beside the vehicle.
[0010] In some embodiments, the image correction pattern extends along the ground. [Brief description of the drawings]
[0011] [Figure 1] FIG. 2 is a schematic diagram showing an image captured by a wide-angle camera. [Diagram 2] 2 is a flow diagram illustrating a method for correcting an image of a wide-angle camera according to an embodiment of the present invention; [Diagram 3] 3 shows an image correction pattern according to an embodiment of the present invention. [Figure 4] 4 shows a photographing form of an image correction pattern according to an embodiment of the present invention. [Diagram 5] 4 shows a straightened wide-angle image according to an embodiment of the present invention. [Figure 6] 1 illustrates a grid width based restoration of a wide-angle image according to an embodiment of the present invention. [Figure 7] 1 illustrates a grid length based restoration of a wide angle image according to an embodiment of the present invention. [Figure 8] 4 illustrates the roll angle rotation of a wide-angle image according to an embodiment of the present invention. [Figure 9] 1 illustrates a wide-angle camera image correction system according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Please refer to FIG. 1, which is a schematic diagram showing an image 100 captured by a wide-angle camera. The wide-angle camera is installed on the driver's vehicle to capture the road conditions around the driver's vehicle, and transmits the captured image 100 to an on-board computer, which determines whether the driver's vehicle is too close to other vehicles / objects. Specifically, the on-board computer detects an object 110 in the image 100, determines whether the object 110 is too close to the driver's vehicle, and further determines whether to issue a warning. However, since the image 100 captured by the wide-angle camera is distorted, it is difficult for the on-board computer to accurately calculate the distance between the driver's vehicle and the surrounding object 110 and accurately issue a warning.
[0013] Please refer to FIG. 2, which is a flow diagram showing an intelligent identification method 200 using a wide-angle camera according to an embodiment of the present invention. The intelligent identification method 200 using a wide-angle camera is used to correct image data of an image 100 captured by the wide-angle camera. For example, the coordinate data in the image 100 can be corrected to accurately correspond to the coordinates of the camera, and the on-board computer can accurately calculate the distance between the driver's vehicle and the surrounding objects. In the intelligent identification method 200 using a wide-angle camera, first, as shown in FIG. 3, a step 210 of providing an image correction pattern 300 is performed. In this embodiment, the image correction pattern 300 includes a black and white checkered pattern. Specifically, the black checks 312 and the white checks 314 are arranged at intervals in a matrix form to form the image correction pattern 300, but the embodiment of the present invention is not limited thereto. In some embodiments, the image correction pattern 300 is formed into a corrected version, but the embodiment of the present invention is not limited thereto.
[0014] Returning to FIG. 2, after step 210, step 220 is subsequently performed by using a wide-angle camera to capture the image correction pattern 300 on the correction version, as shown in FIG. 4. In this embodiment, the wide-angle camera 410 is installed on the side of the vehicle 420, for example, on the rearview mirror. The wide-angle camera 410 may be, for example, a fisheye lens, but the embodiment of the present invention is not limited thereto. The correction version is installed on the ground on the side of the vehicle 420, so that the image correction pattern 300 and the vehicle 420 are aligned and extend along the ground. In this embodiment, in order for the wide-angle camera 410 to capture the image correction pattern 300 accurately, the center line 310C of the image correction pattern 300 and the center line 420C of the vehicle 420 are parallel to each other.
[0015] In some embodiments, the wide-angle camera 410 is mounted behind the vehicle 420, but the compensated version is mounted on the ground behind the vehicle 420 so that the image compensation pattern 300 and the vehicle 420 are aligned and extend along the ground so that the wide-angle camera 410 can accurately capture the image compensation pattern 300.
[0016] Returning to FIG. 2, after step 220, step 230 is performed to correct the correction pattern image captured by step 220. In the correction step, the internal parameters and external parameters of the wide-angle camera 410 are calculated based on a correction formula, and a corresponding coordinate transformation matrix is obtained. Specifically, the correction step of step 230 performs screen rotation correction, lens pitch angle correction, inverse perspective projection, and lens yaw angle correction on the wide-angle camera 410 based on the correction formula to straighten multiple grids in the correction pattern image, and convert the wide-angle image coordinates in the correction pattern image into world coordinates. Since the world coordinates have the camera as the origin, the distance between the driver's vehicle and surrounding objects can be calculated. The correction formula used in the embodiment of the present application is as follows: JPEG0003247959000004.jpg31170 However, X w , Y w , Z w represents the 3D coordinate of the world coordinate system, and X i , Yi represents the two-dimensional coordinates of the wide-angle image coordinate axis, matrix A is the lens rotation correction matrix, matrix B is the lens pitch correction and inverse perspective projection matrix, matrix C is the lens yaw correction matrix, and matrix D is the coordinate transformation matrix, which is expressed as follows: JPEG0003247959000005.jpg90170.
[0017] Where θ yaw is the lens yaw angle, and θ pitch is the lens pitch angle, and θ roll is the lens roll angle, H is the height of the wide-angle camera, and Z c is the camera depth, and K x is the proportional constant between the pixel coordinate in the X-axis direction of the image and the world coordinate, and K y is the proportionality constant between pixel coordinates and world coordinates in the Y-axis direction of the image, w is the width of the image (e.g., in pixels), and h is the height of the image (e.g., in pixels).
[0018] The design of the above matrix A, matrix B, matrix C, and matrix D (hereinafter collectively referred to as transformation matrix) takes into account internal parameters (camera distortion correction) and external parameters (pitch / yaw / roll angle calculation) to correct the distorted wide-angle image. For example, as shown in FIG. 5, the distorted wide-angle image is corrected and straightened when processed in step 230 of the embodiment of the present application. Specifically, the wide-angle image in FIG. 5 has grids that represent the distortion of the wide-angle image. These grids are straightened when processed in step 230 of the embodiment of the present application. Also, for example, as shown in FIG. 6, the width of the visually deformed grid is restored by the yaw angle correction in step 230 of the embodiment of the present application. Also, for example, as shown in FIG. 7, the length of the visually deformed grid is restored by the pitch angle correction in step 230 of the embodiment of the present application. Also, for example, as shown in FIG. 8, step 230 of the embodiment of the present application performs roll angle rotation on the entire screen.
[0019] By inputting the known coordinate values (world coordinates / wide-angle image coordinates) of the position in the corrected version into the above correction formula, a transformation matrix is obtained, and then X w , Y w , Z w (3D coordinates on the world coordinate axis) and X i , Y i (wide-angle image coordinate axis) can be obtained. When a user uses the wide-angle camera 410 to take a picture, the in-vehicle computer can correct the wide-angle image taken by the wide-angle camera 410 using the above transformation matrix and calculate the distance between the driver's vehicle and surrounding objects.
[0020] For example, in some embodiments, when the wide-angle camera 410 is corrected by the intelligent identification method 200 using the wide-angle camera, a transformation matrix of the wide-angle camera 410 is obtained. The transformation matrix is written to the on-board computer, and then, in a later stage of the vehicle traveling, the on-board computer can correct the wide-angle image captured by the wide-angle camera 410 according to the transformation matrix in the storage device, and calculate the distance between the driver's vehicle and surrounding objects.
[0021] Please refer to FIG. 9, which shows an intelligent identification system 900 using a wide-angle camera according to an embodiment of the present invention. The intelligent identification system 900 using a wide-angle camera includes a memory 910 and a processor 920. The memory 910 stores a number of commands, and the processor 920 is electrically connected to the memory 910 so as to load in the commands and perform the intelligent identification method 200 using the wide-angle camera. In some embodiments, the intelligent identification system 900 using a wide-angle camera is actually a computer device, and can receive a wide-angle image captured by the wide-angle camera 410, and perform the intelligent identification method 200 using the wide-angle camera to correct the wide-angle image captured by the wide-angle camera 410, thereby obtaining the above transformation matrix.
[0022] To sum up, the intelligent identification system 900 using the wide-angle camera of the embodiment of the present invention adopts the lens rotation correction matrix (Matrix A), the lens pitch correction and inverse perspective projection matrix (Matrix B), the lens yaw correction matrix (Matrix C) and the coordinate transformation matrix (Matrix D) to correct the image of the wide-angle camera, eliminate image distortion, and calculate the distance between each object in the image and the coordinate origin (camera). In this way, the accuracy of the on-board computer's judgment of the distance between the driver's vehicle and surrounding objects can be improved, and the on-board computer can easily identify each object in the image, greatly improving the driver's driving safety.
[0023] Although the present invention has been disclosed above based on the embodiments, the above embodiments do not limit the present invention, and anyone skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be based on what is defined in the attached utility model claims. [Explanation of symbols]
[0024] 100:Image 110: Object 200: Intelligent identification method using wide-angle camera 210~230: Process 300: Image correction pattern 312: Black check 314: White check 310C: Center line 410: Wide-angle camera 420:Vehicle 420C: Center line 900: Intelligent identification system using wide-angle camera 910:Memory 920: Processor
Claims
1. With a wide-angle camera, an on-board computer including a memory for storing a plurality of commands; and a processor that loads in the commands and is electrically connected to the memory to perform the following steps: providing an image correction pattern; photographing the image correction pattern by the wide-angle camera to obtain a correction pattern image; and performing screen rotation correction, lens pitch angle correction, inverse perspective projection, and lens yaw angle correction on the wide-angle camera based on a correction formula to straighten a plurality of grids in the correction pattern image and convert a plurality of wide-angle image coordinates in the correction pattern image into a plurality of world coordinates; Equipped with The correction formula used in the correction step is as follows: However, X w , Y w , Z w represents the three-dimensional coordinate of the world coordinate system, and X i , Y i represents a two-dimensional coordinate of the wide-angle image coordinate axis, matrix A is a lens rotation correction matrix, matrix B is a lens pitch correction and inverse perspective projection matrix, matrix C is a lens yaw correction matrix, and matrix D is a coordinate transformation matrix, which is expressed as follows: Where θ yaw is the lens yaw angle, and θ pitch is the lens pitch angle, and θ roll is the lens roll angle, H is the height of the wide-angle camera, and Z c is the camera depth, and K x is a proportional constant between pixel coordinates in the X-axis direction of the image and world coordinates, and K y is the proportional constant between the pixel coordinate in the Y-axis direction of the image and the world coordinate, w is the width of the image, and h is the height of the image.
2. The intelligent identification system using a wide-angle camera according to claim 1 , wherein the wide-angle camera is a fisheye lens camera.
3. The intelligent identification system using a wide-angle camera according to claim 1 , wherein the image correction pattern includes a black and white checkered pattern.
4. 2. The intelligent identification system using a wide-angle camera according to claim 1, wherein when the image correction pattern is photographed by the wide-angle camera, the wide-angle camera is installed on a vehicle, and the image correction pattern is installed on a ground near the vehicle.
5. The intelligent identification system using a wide-angle camera according to claim 4 , wherein the image correction pattern extends along the ground.
