A TOF camera calibration method and system
By constructing a multi-model combination method, the swing error and reflection error of the TOF camera are corrected, and the problem that the accuracy of the TOF camera is affected by distance and light intensity is solved, and high accuracy and accuracy calibration under different conditions is achieved.
Patent Information
- Application Number
- CN202210706447.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-06-21
AI Technical Summary
The accuracy of the TOF camera is easily affected by the distance between the subject and the camera and the intensity of reflected light, resulting in data errors and calibration is required to improve accuracy and accuracy.
By obtaining actual depth information, measuring depth information and measuring grayscale information, a fitted model is constructed to correct the depth error caused by swing error and reflection conditions, and calibration is performed using a multi-model combination method, which is suitable for different exposure times and object distances. .
The accuracy and accuracy of the calibration results of TOF cameras under different conditions are achieved, and the impact of exposure time and change in the position of the subject on the calibration results is reduced.
Smart Images

Figure CN114998450B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image technology, and in particular to a TOF camera calibration method and system. Background Art
[0002] Three-dimensional cameras based on TOF (Time-Of-Flight) theory are one of the research hotspots of current technology. TOF three-dimensional cameras (TOF cameras for short) have gradually appeared in system fields such as gesture control, 3D modeling, automotive radar, and robot vision.
[0003] The TOF camera uses the time-of-flight method for non-contact distance measurement, making the TOF camera technology one of the most prominent optical three-dimensional measurement technologies. The basic principle of TOF camera technology is that the light emitted by the active light source (such as modulated infrared light) is reflected by the object and captured by the TOF camera. The distance between the object and the TOF camera is further calculated by calculating the time difference or phase difference between the reflected light and the emitted light. While obtaining the measured depth information of the object, the TOF camera also captures the grayscale information, where the grayscale information is reflected by the amplitude of the reflected light (i.e., the measured amplitude). However, due to its own characteristics, imaging conditions, and interference from the external environment, for example, the accuracy of the TOF camera is easily affected by the distance between the object and the TOF camera and the intensity of the light reflected from the object to the sensor, so that the data obtained by the TOF camera usually has certain errors, so the TOF camera needs to be calibrated. Summary of the invention
[0004] The object of the present invention is to provide a TOF camera calibration method and system, which can ensure the accuracy and precision of the TOF camera calibration result.
[0005] In order to solve the above problems, the present invention provides a TOF camera calibration method, comprising the following steps:
[0006] Step S1: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first object and a TOF camera, and also obtaining a first exposure time of the TOF camera;
[0007] Step S2: constructing a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time;
[0008] Step S3: obtaining second actual depth information, second measured depth information, and second measured grayscale information between a second object and the TOF camera, and also obtaining a second exposure time of the TOF camera;
[0009] Step S4: taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second photographed object according to the first fitting model; and
[0010] Step S5: using the second measured depth information, the second exposure time and the second measured grayscale information, and correcting the depth error caused by different reflection conditions of the second object according to the second fitting model and the third fitting model, so as to obtain calibrated measured depth information.
[0011] Optionally, step S2 includes:
[0012] constructing the first fitting model according to the first actual depth information and the first measured depth information;
[0013] constructing the second fitting model according to the first exposure time and the first measured grayscale information; and
[0014] The third fitting model is constructed according to the second fitting model and the first measured depth information.
[0015] Further, the first measured depth information includes a first measured distance between the first object and the TOF camera, the first measured grayscale information includes a first measured amplitude, and the first actual depth information includes a first actual distance between the first object and the TOF camera.
[0016] Furthermore, the first fitting model is:
[0017] Correction1 = f(d);
[0018] Wherein, Correction1 is the correction value after the swing error correction; d is the measured distance.
[0019] Furthermore, the second fitting model is:
[0020] NA = Amplitude / e;
[0021] Among them, Amplitude is the measured amplitude; e is the exposure time.
[0022] Furthermore, the third fitting model is:
[0023] Correction2 = f'(d, NA);
[0024] Wherein, Correction2 is the correction value after the depth error caused by the reflection condition is corrected; NA is the fitting result of the second fitting model; and d is the measured distance.
[0025] Optionally, the second measured depth information includes a second measured distance between the second object and the TOF camera, the second measured grayscale information includes a second measured amplitude, and the second actual depth information includes a second actual distance between the second object and the TOF camera.
[0026] Furthermore, in step S4, taking the second actual distance as a reference, the collected second measured distance is brought into the first fitting model to correct the swing error caused by the different depths of the second photographed object, thereby obtaining the second measured depth information after preliminary calibration.
[0027] Furthermore, in step S5, the collected second exposure time and the second measurement amplitude are brought into the second fitting model, and then the second fitting model and the second measurement distance are brought into the third fitting model to correct the depth error caused by the different reflection conditions of the second subject, thereby obtaining the calibrated second measurement depth information.
[0028] On the other hand, the present invention also provides a TOF camera calibration system, including a setting unit, a measuring unit, a swing correction unit and a reflection correction unit.
[0029] The setting unit is used to set the exposure time parameters of the TOF camera;
[0030] The measuring unit is used to calculate and obtain first measured depth information and first measured grayscale information between a first object and the TOF camera at a first exposure time, and to calculate and obtain second measured depth information and second measured grayscale information between a second object and the TOF camera at a second exposure time;
[0031] The swing correction unit is used to set a first fitting model, and use the second measured depth information and the second actual depth information between the second object and the TOF camera to correct the swing error caused by the different depths of the second object through the first fitting model; and
[0032] The reflection correction unit is used to set a second fitting model and a third fitting model, and use the second measured depth information, the second exposure time and the second measured grayscale information to correct the depth error caused by different reflection conditions of the second object through the second fitting model and the third fitting model.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] The present invention provides a TOF camera calibration method and system. The TOF camera calibration method comprises the following steps: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first photographed object and a TOF camera, and also obtaining a first exposure time of the TOF camera; constructing a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time; obtaining second actual depth information, second measured depth information and second measured grayscale information between a second photographed object and the TOF camera, and also obtaining a second exposure time of the TOF camera; light time; taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second object according to the first fitting model; using the second measured depth information, the second exposure time and the second measured grayscale information, and correcting the depth error caused by the different reflection conditions of the second object according to the second fitting model and the third fitting model, so as to obtain the calibrated measured depth information, which can be applicable to the calibration of different exposure times, different objects and different distances between the object and the TOF camera, and ensure the accuracy and precision of the calibration result of the TOF camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a TOF camera calibration method;
[0036] Figure 2a This is a graph showing the relationship between the measured amplitude and the exposure time when a solid color paper with a grayscale of 250 is used as the photographed object;
[0037] Figure 2b It is a compensation curve diagram of the same object at different exposure times;
[0038] Figure 3 This is a flow chart of a TOF camera calibration method according to an embodiment of the present invention;
[0039] Figure 4 A compensation curve diagram of a plurality of solid color papers of different gray levels according to an embodiment of the present invention;
[0040] Figure 5a A graph showing the relationship between the measured amplitude and the exposure time when two solid-color papers with different grayscales are used as photographed objects according to an embodiment of the present invention;
[0041] Figure 5bThis is a relationship diagram between the measured amplitude and the test distance when two pure-color papers with different grayscales are used as the photographed objects according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] As described in the background technology, the accuracy of the TOF camera is easily affected by the different distances between the object and the TOF camera and the intensity of the light reflected from the object to the sensor, so the data obtained by the TOF camera usually has certain errors, so the TOF camera needs to be calibrated. Among them, the intensity of the light reflected from the object to the sensor is usually characterized by measuring the amplitude.
[0043] Figure 1 This is a flow chart of a TOF camera calibration method. Figure 1 As shown, the current TOF calibration method is used to reduce the influence of different distances between the object and the TOF camera and the intensity of light reflected by the object to the sensor.
[0044] The current TOF calibration method is:
[0045] First, first initial real depth information, first initial measured depth information and first initial measured grayscale information between a first initial subject and a TOF camera are obtained, wherein the exposure time of the TOF camera is a preset exposure time, the first initial measured depth information includes a first initial measured distance between the first initial subject and the TOF camera, the first initial real depth information includes a first initial real distance between the first initial subject and the TOF camera, and the first initial measured grayscale information includes a first initial measured amplitude.
[0046] Next, with the first initial true depth information as a reference, model one is constructed according to the first initial measured depth information, and model two is constructed according to the exposure time, the first initial measured depth information, and the first initial measured grayscale information.
[0047] Specifically, model 1 is: Correction = f(d);
[0048] Model 2 is: Amplitude = g(e, v, d);
[0049] Wherein, Correction is the correction value after depth error correction; d is the measurement distance, amplitude is the measurement amplitude; e is the exposure time; and v is a variable related to the reflection of the object being photographed.
[0050] Next, the second initial measured depth information (i.e., the second initial measured distance) and the second initial measured grayscale information (i.e., the second initial measured amplitude) between the second initial object and the TOF camera are obtained through the TOF camera, and the second initial actual depth information between the second initial object and the TOF camera is also obtained.
[0051] Next, with the second initial actual depth information as a reference, a wiggling correction unit uses the second initial measured depth information and according to the model one to correct the wiggling error caused by the different depths between the object and the TOF camera (ie, performs wiggling correction).
[0052] Next, the reflection condition correction unit uses the exposure time, the second initial measured depth information and the second initial measured grayscale information, and corrects the depth error caused by the different light intensity (i.e., reflection condition) reflected from the object to the sensor according to model 2, thereby obtaining the calibrated second initial measured depth information.
[0053] Figure 2a The following is a graph showing the relationship between the measured amplitude and exposure time when a solid color paper with a grayscale of 250 is used as the subject. Figure 2a As shown, a1, a2 and a3 are the relationship between the measured amplitude and the exposure time of the same object. It can be seen that when the exposure time is different, the measured amplitude deviation is large, that is, the measured amplitude changes greatly with the exposure time.
[0054] Figure 2b This is a compensation curve diagram for the same object at different exposure times. Figure 2b As shown in , the compensation curves of the measured depth information of the same object at different exposure times almost overlap, that is, the depth error hardly changes with the exposure time, that is, the depth error remains almost unchanged with the exposure time. Figure 2a-2b It can be seen that due to the influence of exposure time, the same measured amplitude may correspond to significantly different compensation values.
[0055] At the same time, as shown in Table 1 and Table 2 below, the grayscale of object 1 itself is 60, the grayscale of object 2 itself is 90, the grayscale of object 3 itself is 150, the grayscale of object 4 itself is 195, and the grayscale of object 5 itself is 250. The distance between the object in Table 1 and the TOF camera is 1.43m, and the distance between the object in Table 2 and the TOF camera is 2.32m. Tables 1 and 2 use the fitting model constructed when the exposure time is 1900μs to compensate the measured depth information of the TOF camera with exposure time of 800μs and 500μs respectively, wherein the depth error of the calibrated measured depth information corresponding to the exposure time of 1900μs is very different from the depth error of the calibrated measured depth information corresponding to the exposure time of 800μs. Similarly, the depth error of the calibrated measured depth information corresponding to the exposure time of 1900μs is very different from the depth error of the calibrated measured depth information corresponding to the exposure time of 500μs.
[0056] Depth error of the measured depth after calibration (unit: mm)
[0057]
[0058] Table 1
[0059] Depth error of the measured depth after calibration (unit: mm)
[0060]
[0061] Table 2
[0062] This means that the fitting model constructed in the prior art cannot be applied to applications with different exposure times.
[0063] Based on the above analysis, the present invention provides a TOF camera calibration method and system, a TOF camera calibration method, comprising the following steps: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first subject and a TOF camera, and also obtaining a first exposure time of the TOF camera; constructing a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time; obtaining second actual depth information, second measured depth information and second measured grayscale information between a second subject and the TOF camera, and also obtaining the first exposure time of the TOF camera a second exposure time of the second actual depth information; taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second photographed object according to the first fitting model; using the second measured depth information, the second exposure time and the second measured grayscale information, and correcting the depth error caused by the different reflection conditions of the second photographed object according to the second fitting model and the third fitting model, so as to obtain the calibrated measured depth information, which can be applicable to the calibration of different exposure times, different photographed objects and different distances between the photographed object and the TOF camera, and ensure the accuracy and precision of the calibration result of the TOF camera.
[0064] A TOF camera calibration method and system of the present invention will be further described in detail below. The present invention will be described in more detail below with reference to the accompanying drawings, in which preferred embodiments of the present invention are shown. It should be understood that those skilled in the art can modify the present invention described herein and still achieve the beneficial effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation of the present invention.
[0065] For the sake of clarity, not all features of the actual embodiments are described. In the following description, well-known functions and structures are not described in detail because they would clutter the invention with unnecessary detail. It should be recognized that in the development of any actual embodiment, a large number of implementation details must be made to achieve the developer's specific goals, such as changing from one embodiment to another according to the limitations of the relevant system or the relevant business. In addition, it should be recognized that such development work may be complex and time-consuming, but it is just a routine task for those skilled in the art.
[0066] In order to make the purpose and features of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the accompanying drawings are all in a very simplified form and use inaccurate ratios, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0067] Figure 3FIG. 4 is a flow chart of a TOF camera calibration method of this embodiment. Figure 3 As shown, this embodiment provides a TOF camera calibration method, comprising the following steps:
[0068] Step S1: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first object and a TOF camera, and also obtaining a first exposure time of the TOF camera;
[0069] Step S2: constructing a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time;
[0070] Step S3: obtaining second actual depth information, second measured depth information, and second measured grayscale information between a second object and the TOF camera, and also obtaining a second exposure time of the TOF camera;
[0071] Step S4: taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second photographed object according to the first fitting model; and
[0072] Step S5: using the second measured depth information, the second exposure time and the second measured grayscale information, and correcting the depth error caused by different reflection conditions of the second object according to the second fitting model and the third fitting model, so as to obtain calibrated measured depth information.
[0073] The following combination Figure 3-4 as well as Figure 5a-5b The TOF camera calibration method of this embodiment is described in detail.
[0074] First, step S1 is performed to obtain first actual depth information, first measured depth information, and first measured grayscale information between a first object and a TOF camera, and also obtain a first exposure time of the TOF camera.
[0075] The first measured depth information includes a first measured distance between the first object and the TOF camera, the first measured grayscale information includes a first measured amplitude, and the first actual depth information includes a first actual distance between the first object and the TOF camera.
[0076] In this embodiment, the more data corresponding to the parameters of the TOF camera at the first exposure time (the first actual depth information, the first measured depth information, and the first measured grayscale information) are obtained, the more stable the first fitting model, the second fitting model, and the third fitting model constructed in step S2 are, and their robustness is better.
[0077] Then, step S2 is performed to construct a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time.
[0078] This step specifically includes the following steps:
[0079] Step S21: constructing a first fitting model according to the first actual depth information and the first measured depth information.
[0080] The first fitting model is: Correction1 = f(d);
[0081] Wherein, Correction1 is the correction value after the swing error correction; d is the measured distance.
[0082] Step S22: constructing a second fitting model according to the first exposure time and the first measured grayscale information.
[0083] Figure 4 is a compensation curve diagram of multiple pure color papers of different gray levels in this embodiment. Figure 4 As shown, the compensation curves of pure color papers of different gray levels are obviously different. It can be seen that the main source of the depth error is the depth error caused by the different reflection conditions of the second object.
[0084] Figure 5a 2 is a graph showing the relationship between the measured amplitude and the exposure time when two pure-color papers with different grayscales are used as the photographed objects. Figure 5a As shown, b1, b2, b3, b4 and b5 are the relationship between the measured amplitude and exposure time of five pure color papers with a gray scale of 150, and c1, c2, c3, c4 and b5 are the relationship between the measured amplitude and exposure time of five pure color papers with a gray scale of 250. At this time, the correlation coefficient between the measured amplitude and the exposure time R1>0.9999. It can be seen that in most cases, the measured amplitude is proportional to the exposure time.
[0085] Figure 5b 1 is a graph showing the relationship between the measured amplitude and the test distance when two solid-color papers with different grayscales are used as the photographed objects in this embodiment. Figure 5bAs shown, d1, d2, d3 and d4 are the relationship between the measured amplitude and exposure time of four pure color papers with a grayscale of 150, and e1, e2, e3 and e4 are the relationship between the measured amplitude and exposure time of four pure color papers with a grayscale of 250. At this time, the correlation coefficient R2 between the reciprocal of the measured distance (1 / d) and the square root of the measured amplitude is greater than 0.9985. It can be seen that the measured amplitude is inversely proportional to the square of the measured distance. Based on this, we can construct a second fitting model that is independent of the exposure time.
[0086] The second fitting model is: NA = Amplitude / e;
[0087] Among them, Amplitude is the measured amplitude; e is the exposure time.
[0088] In detail, the process of constructing the second fitting model includes:
[0089] Amplitude = g(e, v, d);
[0090] Amplitude=e*g"(v) / d 2 ;
[0091] g"(v)=Amplitude*d 2 / e;
[0092] NA = Amplitude / e;
[0093] Among them, Amplitude is the measured amplitude; e is the exposure time; d is the measurement distance; and v is a variable related to the reflection of the object being photographed.
[0094] Step S23: constructing a third fitting model according to the second fitting model and the first measured depth information.
[0095] The third fitting model is: Correction2 = f'(d, NA);
[0096] Wherein, Correction2 is the correction value after depth error correction; NA is the fitting result of the second fitting model; and d is the measured distance.
[0097] In detail, the process of constructing the third fitting model includes:
[0098] Correction2 = f(d, v);
[0099] Correction2=f'(d,g"(v));
[0100] NA = Amplitude / e;
[0101] Correction2 = f'(d, NA);
[0102] Wherein, Correction2 is the correction value after the reflection condition is corrected; NA is the fitting result of the second fitting model; d is the measured distance; and v is a variable related to the reflection condition of the object being photographed.
[0103] Then, step S3 is performed to obtain the second actual depth information, second measured depth information and second measured grayscale information between the second object and the TOF camera, and also obtain the second exposure time of the TOF camera. This step is used to collect data to perform depth error correction on the collected data.
[0104] The second measured depth information includes a second measured distance between the second object and the TOF camera, the second measured grayscale information includes a second measured amplitude, and the second actual depth information includes a second actual distance between the second object and the TOF camera.
[0105] Then, step S4 is performed to correct the swing error caused by the different depths of the second photographed object by using the second measurement information and the first fitting model with reference to the second actual depth information.
[0106] In this step, taking the second actual distance as a reference, the collected second measured distance is brought into the first fitting model to correct the swing error caused by the different depths of the second photographed object, thereby obtaining the second measured depth information after preliminary calibration, thereby preliminarily reducing the depth error of the second measured depth information.
[0107] Then, step S5 is executed to use the second measured depth information, the second exposure time and the second measured grayscale information, and to correct the depth error caused by the different reflection conditions of the second object according to the second fitting model and the third fitting model, so as to obtain calibrated measured depth information.
[0108] In this step, the collected second exposure time and second measurement amplitude are brought into the second fitting model, and then the second fitting model and the second measurement distance are brought into the third fitting model to correct the depth error caused by the different reflection conditions of the second photographed object, that is, the depth information after the swing correction is further corrected, so as to obtain the calibrated second measurement depth information with high accuracy and precision.
[0109] As shown in Tables 3 to 6 below, Tables 3 to 6 all construct the first fitting model, the second fitting model and the third fitting model when the exposure time is 1900 μs. Among them, the grayscale of object 1 itself is 60, the grayscale of object 2 itself is 90, the grayscale of object 3 itself is 150, the grayscale of object 4 itself is 195, and the grayscale of object 5 itself is 250. The distance between the object in Table 3 and Table 5 and the TOF camera is 1.43m, and the distance between the object in Table 4 and Table 6 and the TOF camera is 2.32m. Tables 4 and 6 are the depth errors of the measured depth (i.e., measured distance) after calibration of the mixed measurement data collected at different exposure times (i.e., mixed exposure times). Table 5 is the depth error of the calibrated measured depth corresponding to the exposure time of 1900μs and the depth error of the calibrated measured depth corresponding to the exposure time of 800μs. Table 7 is the depth error of the calibrated measured depth corresponding to the exposure time of 1900μs and the depth error of the calibrated measured depth corresponding to the exposure time of 500μs. It can be seen that the relative error after compensation of the depth error using the first fitting model, the second fitting model and the third fitting model constructed by the TOF camera calibration method of this embodiment is very small, for example, the relative error is less than 1%.
[0110]
[0111] Table 3
[0112]
[0113] Table 4
[0114]
[0115] Table 5
[0116]
[0117] Table 6
[0118] This embodiment also provides a TOF camera calibration system, including a setting unit, a measuring unit, a wiggling correction unit and a reflection correction unit, wherein the setting unit is used to set parameters such as the exposure time of the TOF camera. The measuring unit is used to calculate and obtain the measured depth information and the measured grayscale information between the subject and the TOF camera, for example, to calculate and obtain the first measured depth information and the first measured grayscale information between the first subject and the TOF camera, and to calculate and obtain the second measured depth information and the second measured grayscale information between the second subject and the TOF camera. The wiggling correction unit is used to set the first fitting model, and use the second actual depth information and the second measured depth information to correct the wiggling error caused by the different depths of the second subject through the first fitting model. The reflection correction unit is used to set the second fitting model and the third fitting model, and use the second measured depth information, the second exposure time and the second measured grayscale information to correct the depth error caused by the different reflection conditions of the second subject through the second fitting model and the third fitting model.
[0119] In summary, the present invention provides a TOF camera calibration method and system, the TOF camera calibration method, comprising the following steps: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first subject and a TOF camera, and also obtaining a first exposure time of the TOF camera; constructing a first fitting model, a second fitting model and a third fitting model according to the first actual depth information, the first measured depth information, the first measured grayscale information and the first exposure time; obtaining second actual depth information, second measured depth information and second measured grayscale information between a second subject and the TOF camera, and also obtaining the first exposure time of the TOF camera; a second exposure time; taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second photographed object according to the first fitting model; using the second measured depth information, the second exposure time and the second measured grayscale information, and correcting the depth error caused by the different reflection conditions of the second photographed object according to the second fitting model and the third fitting model, so as to obtain the calibrated measured depth information, which can be applicable to the calibration of different exposure times, different photographed objects and different distances between the photographed object and the TOF camera, and ensure the accuracy and precision of the calibration result of the TOF camera.
[0120] In addition, it should be noted that, unless otherwise specified or indicated, the terms "first" and "second" in the specification are only used to distinguish the various components, elements, steps, etc. in the specification, and are not used to indicate the logical relationship or sequential relationship between the various components, elements, steps, etc.
[0121] It is to be understood that, although the present invention has been disclosed as a preferred embodiment, the above embodiment is not intended to limit the present invention. For any person skilled in the art, without departing from the scope of the technical solution of the present invention, the technical content disclosed above can be used to make many possible changes and modifications to the technical solution of the present invention, or modified into equivalent embodiments of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A TOF camera calibration method, characterized in that: The following steps are involved: Step S1: obtaining first actual depth information, first measured depth information and first measured grayscale information between a first object and a TOF camera, and also obtaining a first exposure time of the TOF camera; Step S2: constructing a first fitting model according to the first actual depth information and the first measured depth information; constructing a second fitting model according to the first exposure time and the first measured grayscale information; and constructing a third fitting model according to the second fitting model and the first measured depth information; Step S3: obtaining second actual depth information, second measured depth information, and second measured grayscale information between a second object and the TOF camera, and also obtaining a second exposure time of the TOF camera; Step S4: taking the second actual depth information as a reference, using the second measured depth information, and correcting the swing error caused by the different depths of the second photographed object according to the first fitting model; as well as Step S5: using the second measured depth information, the second exposure time, and the second measured grayscale information, and correcting the depth error caused by the different reflection conditions of the second photographed object according to the second fitting model and the third fitting model, so as to obtain calibrated measured depth information; The first measured depth information includes a first measured distance between the first object and the TOF camera, the first measured grayscale information includes a first measured amplitude, and the first actual depth information includes a first actual distance between the first object and the TOF camera; The first fitting model is: Correction1 = f(d); The second fitting model is: NA = Amplitude / e; The third fitting model is: Correction2 = f ‘ (d, NA); Among them, Correction1 is the correction value after the swing error correction; d is the measured distance; NA is the fitting result of the second fitting model; Amplitude is the measured amplitude; e is the exposure time; Correction2 is the correction value after the depth error correction.
2. The TOF camera calibration method according to claim 1, characterized in that: The second measured depth information includes a second measured distance between the second object and the TOF camera, the second measured grayscale information includes a second measured amplitude, and the second actual depth information includes a second actual distance between the second object and the TOF camera.
3. The TOF camera calibration method according to claim 2, characterized in that: In step S4, taking the second actual distance as a reference, the collected second measured distance is brought into the first fitting model to correct the swing error caused by the different depths of the second photographed object, thereby obtaining the second measured depth information after preliminary calibration.
4. The TOF camera calibration method according to claim 2, characterized in that: In step S5, the collected second exposure time and the second measurement amplitude are brought into the second fitting model, and then the second fitting model and the second measurement distance are brought into the third fitting model to correct the depth error caused by the different reflection conditions of the second subject, thereby obtaining the calibrated second measurement depth information.
5. A TOF camera calibration system, characterized in that: It includes a setting unit, a measuring unit, a swing correction unit and a reflection correction unit. The setting unit is used to set the exposure time parameters of the TOF camera; The measuring unit is used to calculate and obtain first measured depth information and first measured grayscale information between a first object and the TOF camera at a first exposure time, and to calculate and obtain second measured depth information and second measured grayscale information between a second object and the TOF camera at a second exposure time; The swing correction unit is used to set a first fitting model according to the first actual depth information and the first measured depth information, and use the second measured depth information and the second actual depth information between the second object and the TOF camera to correct the swing error caused by the different depths of the second object through the first fitting model; and The reflection correction unit is used to set a second fitting model according to the first exposure time and the first measured grayscale information, and set a third fitting model according to the second fitting model and the first measured depth information, and use the second measured depth information, the second exposure time and the second measured grayscale information to correct the depth error caused by the different reflection conditions of the second object through the second fitting model and the third fitting model; The first measured depth information includes a first measured distance between the first object and the TOF camera, the first measured grayscale information includes a first measured amplitude, and the first actual depth information includes a first actual distance between the first object and the TOF camera; The first fitting model is: Correction1 = f(d); The second fitting model is: NA = Amplitude / e; The third fitting model is: Correction2 = f ‘ (d, NA); Among them, Correction1 is the correction value after the swing error correction; d is the measured distance; NA is the fitting result of the second fitting model; Amplitude is the measured amplitude; e is the exposure time; Correction2 is the correction value after the depth error correction.
Citation Information
Patent Citations
A rapid calibration and correction method and a TOF camera thereof
CN109816735A
A depth image calibration method and system of a TOF camera system
CN109903241A
