[0032] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings, but it is not a limitation to the method of the present invention.

[0033] Attached figure 1 It is the main flow chart of the method of the present invention. The overall scheme is infrared picture preprocessing, target detection of two-dimensional images, and conversion of two-dimensional coordinates to three-dimensional coordinates. The specific steps are as follows:

[0034] (1) Calibrate the ideal space center as the origin of the space coordinates, and rotate it by two angles, take an infrared picture at each of these two positions, and then extract the R channel values of the two infrared pictures to obtain a new picture. Then cut the new picture according to small squares of a certain size, and calculate the average value of the R channel of each small square, and sort the small squares according to the R value after the calculation is completed;

[0035] (2) Calculate the top, bottom, left, and right coordinates of the target heat source according to the proportional relationship of the small square corresponding to the maximum R value, and extract the center coordinate position;

[0036] (3) According to the center coordinates extracted from the infrared images of the two positions, the coordinate information in the three-dimensional space is calculated according to the geometric relationship.

[0037] Step (2) The specific method for extracting the coordinate information of the center is:

[0038] 1) From top to bottom, left to right, a preliminary judgment is made on whether each small square is within the range of the target heat source. The judgment method is mainly based on the relationship between the R value of each square and the maximum R value, as shown in the following formula Show:

[0039] R i k*R max

[0040] Where R max Is the square with the highest R channel value, and R i Is the R channel value of the small square that needs to be judged, and k is the scale factor, which needs to be adjusted according to the specific situation;

[0041] 2) Judge again the 8 small squares adjacent to each small square that meets the preliminary judgment. If there are n small squares that satisfy step (21), the current square is within the range of the target heat source by default ;

[0042] 3) Calculate the upper, lower, left, and right coordinates X of the target heat source according to the position of the small square left , X right ,Z top ,Z bottom And calculate the center coordinates:

[0043] X target =(X left +X right )/2

[0044] Z target =(Z top +Z bottom )/2

[0045] In the above formula, X target Is the horizontal coordinate position, Z target Is the height coordinate position. The test results on the two-dimensional plane are attached figure 2 Shown.

[0046] Step (3) The specific method for calculating the coordinate information in the three-dimensional space according to the geometric relationship is:

[0047] 1) According to step 2 to obtain the horizontal and vertical coordinates of the center of the heat source in the horizontal and vertical directions at the two positions, define front and z 1 Is the horizontal deviation and height deviation of the center of the heat source in the front view position, side and z 2 Is the horizontal deviation and height deviation of the center of the heat source in the side view position, depth is the depth distance information of the center of the heat source,;

[0048] 2) Taking the ideal space center as the origin of coordinates, define that the side view position is rotated by a certain angle relative to the front view position;

[0049] 3) The location of the target heat source is different, and the method of calculating the heat source is also different. It can be divided into six situations, as shown image 3 Shown is a case in which the actual heat source shooting points at the two positions are both left deviations. The calculation method is as follows:

[0050] x=front

[0051] z=(z 1 +z 2 )/2

[0052] light1=side/cosα

[0053] light2=light1-front

[0054] y=depth=light2/tanα

[0055] 4) The actual heat source is left deviation at the two shooting points. There is another situation, as attached Figure 4 As shown, the calculation method is as follows:

[0056] x=front

[0057] z=(z 1 +z 2 )/2

[0058] light1=side/cosα

[0059] light2=front-light1

[0060] y=depth=light2/tanα

[0061] 5) The actual heat source is offset to the right at the two shooting points. There are also two other cases, one of which is as attached Figure 5 As shown, the calculation method is as follows:

[0062] x=front

[0063] z=(z 1 +z 2 )/2

[0064] light1=side/cosα

[0065] light2=light1-front

[0066] y=depth=light2/tanα

[0067] 6) Another situation where the actual heat source at the two shooting points is right deviation is shown in Appendix 6. The calculation method is as follows:

[0068] x=front

[0069] z=(z 1 +z 2 )/2

[0070] light2=side/cosα

[0071] light1=front-light2

[0072] y=depth=light1/tanα

[0073] 7) The actual center deviation of the heat source is on the right side of the front-view camera and the left side of the side-view camera, as attached Figure 7 As shown, the calculation method is as follows:

[0074] x=front

[0075] z=(z 1 +z 2 )/2

[0076] light1=side/cosα

[0077] light2=light1+front

[0078] y=depth=light2/tanα

[0079] 8) The actual center deviation of the heat source is on the left side of the front-view camera and the right side of the side-view camera, as attached Figure 8 As shown, the calculation method is as follows:

[0080] x=front

[0081] z=(z 1 +z 2 )/2

[0082] light1=side/sinα

[0083] light2=front/tanα

[0084] y=depth=light1+light2

[0085] The above 6 situations include all actual situations, that is, the deviation of the three-dimensional space of the heat source center can be obtained.