1. Field of the Invention
The present invention relates to an image calibration system and a calibration method of a stereo camera, and particularly to an image calibration system and a calibration method of a stereo camera that can utilize a calibration pattern with a plurality of feature points provided by a manufacturer of the stereo camera and intrinsic parameters of the stereo camera to compensate shift of extrinsic parameters of the stereo camera.
2. Description of the Prior Art
To make a stereo camera generate good quality three-dimensional images, the stereo camera usually needs higher mechanism and optical accuracy, wherein before the stereo camera is shipped, a manufacturer of the stereo camera can maintain the above mentioned higher mechanism and optical accuracy required by the stereo camera during a manufacturing process of the stereo camera. However, after the stereo camera is shipped, the above mentioned higher mechanism and optical accuracy required by the stereo camera may not be maintained due to a usage environment or a usage way of the stereo camera (e.g. the usage environment or the usage way of the stereo camera can change positions or capture image angles of left/right eye image capture units of the stereo camera, or make lenses of the left/right eye image capture units have distortion). Therefore, after the stereo camera is shipped and a user operates the stereo camera for a period of time, the stereo camera needs to be executed an camera calibration process to compensate shift of the mechanism and optical accuracy of the stereo camera.
Calibration methods provided by the prior art mainly utilize a checkerboard test pattern, and so on to repeatedly execute the camera calibration process on the stereo camera. However, most of the calibration methods provided by the prior art can be properly executed by professional trained technicians and automatic equipments during the manufacturing process of the stereo camera. Therefore, when the stereo camera needs to be executed the camera calibration process after the user operates the stereo camera for a period time, the user may need to return the stereo camera to the manufacturer of the stereo camera. Thus, the prior art is inconvenient and time-consuming, and needs addition cost for the user.
An embodiment provides a calibration method of a stereo camera, wherein the stereo camera includes a left eye image capture unit and a right eye image capture unit. The calibration method includes controlling the left eye image capture unit and the right eye image capture unit to execute an image capture operation on a calibration pattern with a plurality of feature points to generate at least one left eye image and at least one right eye image, respectively; extracting a plurality of first feature points and a plurality of second feature points corresponding to the plurality of feature points to a memory from the at least one left eye image and the at least one right eye image, respectively; loading intrinsic parameters of the stereo camera to the memory; calculating camera calibration parameters corresponding to extrinsic parameters of the stereo camera according to the plurality of first feature points, the plurality of second feature points, and the intrinsic parameters; and executing an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters, respectively.
Another embodiment provides a calibration method of a stereo camera, wherein the stereo camera includes a left eye image capture unit, a right eye image capture unit, and a memory. The calibration method includes controlling the left eye image capture unit and the right eye image capture unit to execute an image capture operation on a calibration pattern with a plurality of feature points to generate at least one left eye image and at least one right eye image, respectively; extracting a plurality of first feature points and a plurality of second feature points corresponding to the plurality of feature points to the memory from the at least one left eye image and the at least one right eye image, respectively; calculating camera calibration parameters corresponding to extrinsic parameters of the stereo camera according to the plurality of first feature points, the plurality of second feature points, and intrinsic parameters of the stereo camera stored in the memory; and executing an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters, respectively.
Another embodiment provides a calibration method of a stereo camera, wherein the stereo camera includes a left eye image capture unit and a right eye image capture unit. The calibration method includes utilizing a numerical optimization method and extrinsic parameters and intrinsic parameters of the stereo camera to execute an automatic calibration operation on the left eye image capture unit and the right eye image capture unit; calculating camera calibration parameters corresponding to the extrinsic parameters of the stereo camera; executing an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera, respectively; and utilizing a cost function cost function to determine whether calibration of the left eye image capture unit and the right eye image capture unit meets a predetermined standard according to a difference between a calibrated left eye image and a calibrated right eye image generated by the left eye image capture unit and the right eye image capture unit executing an image capture operation on a calibration pattern, respectively.
Another embodiment provides an image calibration system. The image calibration system includes a stereo camera and a calibration pattern. The stereo camera includes a left eye image capture unit, a right eye image capture unit, a memory, and a processor. The calibration pattern has a plurality of feature points. The processor controls the left eye image capture unit and the right eye image capture unit to execute an image capture operation on the calibration pattern to generate at least one left eye image and at least one right eye image respectively, extracts a plurality of first feature points and a plurality of second feature points corresponding to the plurality of feature points to the memory from the at least one left eye image and the at least one right eye image respectively, calculates camera calibration parameters corresponding to extrinsic parameters of the stereo camera according to the plurality of first feature points, the plurality of second feature points, and intrinsic parameters of the stereo camera, and executes an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters, respectively.
Another embodiment provides an image calibration system. The image calibration system includes a stereo camera and a calibration pattern. The stereo camera includes a left eye image capture unit and a right eye image capture unit. The calibration pattern has a plurality of feature points. The stereo camera is electrically connected to a device outside the stereo camera to execute an camera calibration process, wherein a processor of the device controls the left eye image capture unit and the right eye image capture unit to execute an image capture operation on the calibration pattern to generate at least one left eye image and at least one right eye image respectively, extracts a plurality of first feature points and a plurality of second feature points corresponding to the plurality of feature points to a memory of the device from the at least one left eye image and the at least one right eye image respectively, loads intrinsic parameters of the stereo camera to the memory, calculates camera calibration parameters corresponding to extrinsic parameters of the stereo camera according to the plurality of first feature points and the plurality of second feature points, and the intrinsic parameters, and executes the camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters, respectively.
Another embodiment provides an image calibration system. The image calibration system includes a stereo camera and a calibration pattern. The stereo camera includes a left eye image capture unit, a right eye image capture unit, and a processor. The processor utilizes a numerical optimization method and intrinsic parameters and extrinsic parameters of the stereo camera to execute an automatic calibration operation on the left eye image capture unit and the right eye image capture unit, calculates camera calibration parameters corresponding to the extrinsic parameters of the stereo camera after the processor executes the automatic calibration operation, executes an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera respectively, and utilizes a cost function to determine whether calibration of the left eye image capture unit and the right eye image capture unit meets a predetermined standard according to a difference between a calibrated left eye image and a calibrated right eye image generated by the left eye image capture unit and the right eye image capture unit executing an image capture operation on the calibration pattern respectively after the processor executes the camera calibration process.
Another embodiment provides an image calibration system. The image calibration system includes a stereo camera and a calibration pattern. The stereo camera includes a left eye image capture unit and a right eye image capture unit. The stereo camera is electrically connected to a device outside the stereo camera to execute an camera calibration process, wherein a processor of the device loads intrinsic parameters and extrinsic parameters of the stereo camera, utilizes a numerical optimization method and the intrinsic parameters and the extrinsic parameters of the stereo camera to execute an automatic calibration operation on the left eye image capture unit and the right eye image capture unit, calculates camera calibration parameters corresponding to the extrinsic parameters of the stereo camera after the processor executes the automatic calibration operation, executes the camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera respectively, and utilizes a cost function to determine whether calibration of the left eye image capture unit and the right eye image capture unit meets a predetermined standard according to a difference between a calibrated left eye image and a calibrated right eye image generated by the left eye image capture unit and the right eye image capture unit executing an image capture operation on the calibration pattern respectively after the processor executes the camera calibration process.
Another embodiment provides an image calibration system. The image calibration system includes a stereo camera, wherein the stereo camera includes a left eye image capture unit, a right eye image capture unit, and a processor, wherein the processor is electrically connected to the left eye image capture unit and the right eye image capture unit, and the stereo camera has intrinsic parameters. The processor controls the left eye image capture unit and the right eye image capture unit to execute an image capture operation on a calibration pattern with a plurality of feature points to generate a plurality of first feature points and a plurality of second feature points corresponding to the plurality of feature points, calculates camera calibration parameters corresponding to the stereo camera according to the plurality of first feature points, the plurality of second feature points, and the intrinsic parameters, and executes an camera calibration process on the left eye image capture unit and the right eye image capture unit according to the camera calibration parameters.
The present invention provides an image calibration system and a calibration method of a stereo camera. Because extrinsic parameters (or intrinsic parameters and the extrinsic parameters) of the stereo camera may shift due to a usage environment, a usage way, or a usage condition of the stereo camera after the stereo camera is shipped and operated for a period of time by a user, resulting in mechanism and optical accuracy of the stereo camera being reduced, the image calibration system and the calibration method provided by the present invention are suitable for the stereo camera which is shipped and operated for a period of time by the user. Because the present invention utilizes a calibration pattern with a plurality of feature points (printed in a board or displayed on a display) provided by a manufacturer of the stereo camera and the intrinsic parameters of the stereo camera to compensate shift of the extrinsic parameters of the stereo camera, and the present invention can also utilize a numerical optimization method provided by the prior art and the intrinsic parameters and the extrinsic parameters of the stereo camera to execute an automatic calibration operation on a left eye image capture unit and a right eye image capture unit of the stereo camera, compared to the prior art, the present invention is more convenient and inexpensive for the user and the user does not need a professional skill to execute the present invention.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Step 200: Start.
Step 202: After the stereo camera 100 is shipped and operates for a period of time, the processor 1204 controls the left eye image capture unit 102 and the right eye image capture unit 104 to execute an image capture operation on a calibration pattern 130 with 9 feature points FP1-FP9 to generate the left eye image 140 and the right eye image 150, respectively.
Step 204: The processor 1204 extracts 9 first feature points FFP1-FFP9 and 9 second feature points SFP1-SFP9 corresponding to the 9 feature points FP1-FP9 to the memory 1202 from the left eye image 140 and the right eye image 150, respectively.
Step 206: The processor 1204 loads intrinsic parameters of the stereo camera 100 to the memory 1202.
Step 208: The processor 1204 calculates camera calibration parameters corresponding to extrinsic parameters of the stereo camera 100 according to the 9 first feature points FFP1-FFP9, the 9 second feature points SFP1-SFP9, and the intrinsic parameters of the stereo camera 100.
Step 210: The processor 1204 executes a camera calibration process on the left eye image capture unit 102 and the right eye image capture unit 104 according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100, respectively.
Step 212: End.
After the stereo camera 100 is shipped and operates for a period of time, the extrinsic parameters of the stereo camera 100 may shift due to a usage environment, a usage way, or a usage condition of the stereo camera 100, resulting in mechanism and optical accuracy of the stereo camera 100 being reduced, wherein the extrinsic parameters of the stereo camera 100 include a position of the left eye image capture unit 102, a position of the right eye image capture unit 104, a distance between the left eye image capture unit 102 and the right eye image capture unit 104, a relative rotation angle between the left eye image capture unit 102 and the right eye image capture unit 104, and a relative skew between the left eye image capture unit 102 and the right eye image capture unit 104. Therefore, the stereo camera 100 needs to be executed the camera calibration process to compensate shift of the extrinsic parameters of the stereo camera 100. In Step 202, after the device 120 is electrically connected to the stereo camera 100, the processor 1204 can control the left eye image capture unit 102 and the right eye image capture unit 104 to execute the image capture operation on the calibration pattern 130 with the 9 feature points FP1-FP9 to generate the left eye image 140 and the right eye image 150, respectively, wherein the calibration pattern 130 is printed on a flat board 160 (as shown in
Please refer to
Step 600: Start.
Step 602: After the stereo camera 100 is shipped and operates for a period of time, the processor 1204 controls the left eye image capture unit 102 and the right eye image capture unit 104 to execute an image capture operation on the calibration pattern 130 with the 9 feature points FP1-FP9 to generate a plurality of left eye images and a plurality of right eye images, respectively.
Step 604: The processor 1204 executes a noise reduction operation on the plurality of left eye images and the plurality of right eye images, respectively.
Step 606: The processor 1204 extracts a plurality of first feature points and a plurality of second feature points corresponding to the 9 feature points FP1-FP9 to the memory 1202 from a plurality of noise-reduced left eye images and a plurality of noise-reduced right eye images, respectively.
Step 608: The processor 1204 loads the intrinsic parameters of the stereo camera 100 to the memory 1202.
Step 610: The processor 1204 calculates camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100 according to the plurality of first feature points, the plurality of second feature points, and the intrinsic parameters of the stereo camera 100.
Step 612: The processor 1204 executes a camera calibration process on the left eye image capture unit 102 and the right eye image capture unit 104 according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100, respectively.
Step 614: End.
Differences between the embodiment in
Please refer to
Step 700: Start.
Step 702: After the stereo camera 100 is shipped and operates for a period of time, the processor 1204 controls the left eye image capture unit 102 and the right eye image capture unit 104 to execute an image capture operation on the calibration pattern 130 with the 9 feature points FP1-FP9 to generate a plurality of left eye images and a plurality of right eye images, respectively.
Step 704: The processor 1204 executes a noise reduction operation on the plurality of left eye images and the plurality of right eye images, respectively.
Step 706: The processor 1204 extracts a plurality of first feature points and a plurality of second feature points corresponding to the 9 feature points FP1-FP9 to the memory 1202 from a plurality of noise-reduced left eye images and a plurality of noise-reduced right eye images, respectively.
Step 708: The processor 1204 loads the intrinsic parameters of the stereo camera 100 to the memory 1202.
Step 710: The processor 1204 calculates camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100 according to the plurality of first feature points, the plurality of second feature points, and the intrinsic parameters of the stereo camera 100.
Step 712: The processor 1204 executes a camera calibration process on the left eye image capture unit 102 and the right eye image capture unit 104 according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100, respectively.
Step 714: The processor 1204 utilizes a cost function to determine whether calibration of the left eye image capture unit 102 and the right eye image capture unit 104 meets a predetermined standard; if yes, go to Step 720; if no, go to Step 716.
Step 716: The processor 1204 utilizes a numerical optimization method to execute an automatic calibration operation on the left eye image capture unit 102 and the right eye image capture unit 104.
Step 718: The processor 1204 calculates new camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100, go to Step 712.
Step 720: End.
Differences between the embodiment in
Please refer to
Step 800: Start.
Step 802: The processor 1204 loads the intrinsic parameters and the extrinsic parameters of the stereo camera 100 to the memory 1202.
Step 804: The processor 1204 utilizes a numerical optimization method to execute an automatic calibration operation on the left eye image capture unit 102 and the right eye image capture unit 104.
Step 806: The processor 1204 calculates camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100.
Step 808: The processor 1204 executes a camera calibration process on the left eye image capture unit 102 and the right eye image capture unit 104 according to the camera calibration parameters corresponding to the extrinsic parameters of the stereo camera 100, respectively
Step 810: The processor 1204 utilizes a cost function to determine whether calibration of the left eye image capture unit 102 and the right eye image capture unit 104 meets a predetermined standard; if yes, go to Step 812; if no, go to Step 804;
Step 812: End.
Differences between the embodiment in
To sum up, because the extrinsic parameters (or the intrinsic parameters and the extrinsic parameters) of the stereo camera may shift due to the usage environment, the usage way, or the usage condition of the stereo camera after the stereo camera is shipped and operated for a period of time by the user, resulting in mechanism and optical accuracy of the stereo camera being reduced, the image calibration system and the calibration method provided by the present invention are suitable for the stereo camera which is shipped and operated for a period of time by the user. Because the present invention utilizes a calibration pattern with a plurality of feature point (printed in the board or displayed on the display) provided by the manufacturer of the stereo camera and the intrinsic parameters of the stereo camera to compensate shift of the extrinsic parameters of the stereo camera, and the present invention can also utilize the numerical optimization method provided by the prior art and the intrinsic parameters and the extrinsic parameters of the stereo camera to execute the automatic calibration operation on the left eye image capture unit and the right eye image capture unit, compared to the prior art, the present invention is more convenient and inexpensive for the user and the user does not need a professional skill to execute the present invention.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 61/890,342, filed on Oct. 14, 2013 and entitled “Stereo Camera Calibration,” the contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61890342 | Oct 2013 | US |