Methods, apparatus, equipment and storage media for locating heat sources
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-28
- Publication Date
- 2026-08-14
AI Technical Summary
[0003]当前,用户需要从大量的温度数据中人工查找最高温度点,定位效率低下且容易出错
[0009]本申请实施例提供了一种热源点定位方法、装置、设备及存储介质,根据本申请提供的方案,获取待测车辆的温度分布图;温度分布图包括多个位置点中各个位置点在车辆坐标系下的物理坐标和各个位置点的温度值;根据各个位置点的温度值,在多个位置点中筛选出最大温度值对应的N个峰值位置点;在N=1时,根据峰值位置点的物理坐标,在多个位置点中筛选出峰值位置点的邻域内的多个邻近位置点;在多个邻近位置点的温度值中不存在邻近温度值的情况下,说明该峰值位置点是严格局部峰值,根据峰值位置点的物理坐标确定待测车辆的热源点;邻近温度值指示与最大温度值的差值绝对值小于或等于预设阈值的温度值。在多个邻近位置点的温度值中存在至少一个邻近温度值的情况下,根据至少一个邻近温度值对应位置点的物理坐标,确定待测车辆的热源点。本方案不仅考虑峰值位置点的温度值,还考虑到峰值位置点附近的温度值,自动定位待测车辆的热源点,提高了热源点的定位效率和定位精度。
Smart Images

Figure CN122574102A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for locating heat sources. Background Technology
[0002] In vehicle chassis monitoring, the highest temperature points typically correspond to the vehicle's main heat sources (such as the engine, exhaust pipe, and overheated brake pads). By locating these heat sources, we can determine the parking status and vehicle type, thereby improving vehicle safety.
[0003] Currently, users need to manually search for the highest temperature point from a large amount of temperature data, which is inefficient and prone to errors. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for locating heat sources, which can improve positioning efficiency and accuracy. The technical solution is as follows: In a first aspect, a method for locating a heat source is provided. The method includes: acquiring a temperature distribution map of a vehicle under test; the temperature distribution map includes the physical coordinates of each location point in a vehicle coordinate system and the temperature value of each location point; based on the temperature values of each location point, selecting N peak location points corresponding to the maximum temperature value from the plurality of location points, where N is a positive integer; when N=1, selecting a plurality of neighboring location points within the neighborhood of the peak location point from the plurality of location points based on the physical coordinates of the peak location points; if no neighboring temperature value exists among the temperature values of the plurality of neighboring location points, determining the heat source of the vehicle under test based on the physical coordinates of the peak location points; the neighboring temperature value refers to a temperature value whose absolute value of the difference from the maximum temperature value is less than or equal to a preset threshold; if at least one neighboring temperature value exists among the temperature values of the plurality of neighboring location points, determining the heat source of the vehicle under test based on the physical coordinates of the location point corresponding to the at least one neighboring temperature value.
[0005] Secondly, a heat source location device is provided, the device comprising: an acquisition module for acquiring a temperature distribution map of a vehicle under test; the temperature distribution map including the physical coordinates of each location point in a vehicle coordinate system and the temperature value of each location point; a filtering module for filtering N peak location points corresponding to the maximum temperature value from the plurality of location points based on the temperature values of each location point, where N is a positive integer; when N=1, filtering multiple neighboring location points within the neighborhood of the peak location point from the plurality of location points based on the physical coordinates of the peak location points; and a location module for determining the heat source point of the vehicle under test based on the physical coordinates of the peak location points when no neighboring temperature value exists among the temperature values of the multiple neighboring location points; the neighboring temperature value refers to a temperature value whose absolute value of the difference from the maximum temperature value is less than or equal to a preset threshold; and determining the heat source point of the vehicle under test based on the physical coordinates of the location point corresponding to the at least one neighboring temperature value from the temperature values of the multiple neighboring location points.
[0006] Thirdly, a computer device is provided, the computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program implementing the method described in the first aspect when executed by the processor.
[0007] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect.
[0008] Fifthly, a computer program product containing instructions is provided that, when run on a computer, causes the computer to perform the method described in the first aspect.
[0009] This application provides a method, apparatus, device, and storage medium for locating heat sources. According to the solution provided, a temperature distribution map of the vehicle under test is obtained. The temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point. Based on the temperature values of each location point, N peak location points corresponding to the maximum temperature value are selected from the multiple location points. When N=1, multiple neighboring location points within the neighborhood of the peak location point are selected from the multiple location points based on the physical coordinates of the peak location points. If no neighboring temperature value exists among the multiple neighboring location points, it indicates that the peak location point is a strictly local peak, and the heat source point of the vehicle under test is determined based on the physical coordinates of the peak location point. The neighboring temperature value indicates the temperature value whose absolute difference from the maximum temperature value is less than or equal to a preset threshold. If at least one neighboring temperature value exists among the multiple neighboring location points, the heat source point of the vehicle under test is determined based on the physical coordinates of the location point corresponding to the at least one neighboring temperature value. This solution considers not only the temperature value of the peak location point but also the temperature values near the peak location point, automatically locating the heat source point of the vehicle under test, thus improving the efficiency and accuracy of heat source point location. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 This is a flowchart of a heat source location method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a rectangular grid cell provided in an embodiment of this application; Figure 3 This is a schematic diagram of the 8-neighborhood of a peak location point provided in an embodiment of this application; Figure 4 This is a flowchart of another heat source location method provided in the embodiments of this application; Figure 5 This is a flowchart of a multi-heat source location method provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a heat source location device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0012] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0013] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0014] Before providing a detailed explanation of the embodiments of this application, the application scenarios and related technologies of the embodiments of this application will be described first.
[0015] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant organizations and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0016] This application provides a method for locating heat sources, relating to the fields of intelligent security and the Internet of Things (IoT) technology. For example... Figure 1 As shown, Figure 1 This is a flowchart of a heat source location method provided in an embodiment of this application. The heat source location method includes: S101. Obtain the temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point.
[0017] The vehicle coordinate system can also be called the global physical coordinate system. The global physical coordinate system uses the vehicle's driving direction (or vehicle length direction) as the X-axis and the vehicle width direction as the Y-axis, covering the entire area of the vehicle chassis.
[0018] Obtain a unified temperature distribution map M_fusion generated by fusing temperature data collected from two sensors. M_fusion is a two-dimensional matrix with X rows and Y columns, and each element M_fusion[i][j] represents the temperature value at the physical coordinate (i, j).
[0019] Multiple elements (or multiple location points) divide the entire area of the vehicle chassis into several rectangular grid cells, such as... Figure 2 As shown, Figure 2 This is a schematic diagram of a rectangular grid cell provided in an embodiment of this application. Figure 2 The horizontal axis is the X-axis, which ranges from 0 to 500 cm to cover the full length of a standard vehicle; the vertical axis is the Y-axis, which ranges from 0 to 160 cm to cover the width of the vehicle chassis; the global physical coordinate system (i.e., the vehicle coordinate system) covering the entire area of the vehicle chassis is defined by the X-axis and Y-axis. Figure 2 Only a portion of the position points on the X and Y axes are shown. In practical applications, the intervals between the values of the X and Y axes can be smaller, meaning there can be more position points. Of course, these position points can also be consecutive.
[0020] S102. Based on the temperature values at each location point, select N peak location points corresponding to the maximum temperature value from multiple location points, where N is a positive integer.
[0021] For example, initialize T_max = -10℃, X_max = 0, Y_max = 0, and iterate through all valid elements in M_fusion. If M_fusion[i][j] > T_max, then update T_max = M_fusion[i][j], X_max = i, and Y_max = j. Through global maximum value search, the highest temperature point (i.e., the location point corresponding to the maximum temperature value) can be automatically detected and located.
[0022] S103. When N=1, based on the physical coordinates of the peak location point, select multiple neighboring location points within the neighborhood of the peak location point from among multiple location points.
[0023] When there is only one highest temperature point, the local peak is verified to determine whether the peak location is a strictly local peak or located in a flat region. Based on the physical coordinates of each location point, the distances between other locations and the peak location point are calculated, and neighboring locations that are close to the peak location point are selected based on the distance.
[0024] In some embodiments, the physical coordinates of the peak location point include the peak horizontal coordinate and the peak vertical coordinate; the neighborhood of the peak location point refers to the area where the distance between the horizontal coordinate and the peak horizontal coordinate is less than or equal to a first preset distance, and the distance between the vertical coordinate and the peak vertical coordinate is less than or equal to a second preset distance.
[0025] For example, calculate the first distance between the x-coordinate of other location points and the x-coordinate of the peak, calculate the second distance between the y-coordinate of other location points and the y-coordinate of the peak, and take other location points whose first distance is less than or equal to the first preset distance and whose second distance is less than or equal to the second preset distance as neighboring location points.
[0026] Typically, multiple location points are distributed in a grid pattern. The first preset distance can be the horizontal coordinate distance of one grid, or slightly larger than the horizontal coordinate distance, such as the distance between two adjacent location points on the horizontal axis. The second preset distance can be the vertical coordinate distance of one grid, or slightly larger than the vertical coordinate distance, such as the distance between two adjacent location points on the vertical axis. If the grid is uniformly distributed, the first and second preset distances can be set to be the same; if the grid is not uniformly distributed, the first and second preset distances can be set to be different. This application embodiment does not impose any restrictions on this.
[0027] Typically, multiple location points are distributed in a grid pattern, and the neighborhood of the peak location point can refer to the eight neighboring areas surrounding the peak location point. Based on the above... Figure 2 ,like Figure 3 As shown, Figure 3 This is a schematic diagram of the 8-neighborhood of a peak location point provided in an embodiment of this application. The multiple neighboring location points within the 8-neighborhood of the peak location point refer to the 8 location points distributed around the peak location point. If the peak location point is located on the boundary, the multiple neighboring location points refer to the 5 location points distributed around the peak location point; if the peak location point is located at the vertex, the multiple neighboring location points refer to the 3 location points distributed around the peak location point.
[0028] Of course, the neighborhood of the peak location point can also be a circular region centered on the physical coordinates (X_max, Y_max) of the peak location point, with the square root of the sum of the squares of the horizontal and vertical distances of a grid as the radius. Alternatively, the neighborhood of the peak location point can be a square region centered on the physical coordinates (X_max, Y_max) of the peak location point, with the horizontal and vertical distances of a grid as the radius. This application does not impose any restrictions on this, as long as it can represent a relatively close proximity to the peak location point.
[0029] In this embodiment, a neighborhood of the peak location point is predefined to filter out all temperature values of multiple neighboring locations within the neighborhood of the peak location point for subsequent heat source location, thereby improving the location accuracy of the heat source point.
[0030] S104. Determine whether there is a neighboring temperature value among multiple neighboring location temperature values.
[0031] If not, proceed to S105; if yes, proceed to S106.
[0032] The adjacent temperature value refers to a temperature value whose absolute difference from the maximum temperature value is less than or equal to a preset threshold, or the adjacent temperature value refers to a temperature value that is greater than or equal to the difference between the maximum temperature value and the preset threshold.
[0033] The difference between the maximum temperature value and the temperature values at each neighboring location is calculated, and it is determined whether the difference is less than or equal to a preset threshold. The preset threshold can be a preset tolerance threshold δ that can be appropriately set by those skilled in the art according to the actual situation, such as 0.5°C, 1°C, or 0.3°C, as long as it can represent a value close to the maximum temperature value. This application embodiment does not impose any restrictions on this.
[0034] S105. Determine the heat source point of the vehicle under test based on the physical coordinates of the peak position point.
[0035] If no neighboring temperature value exists among multiple nearby temperature points, it indicates that the peak location is a strictly local peak. In this case, the physical coordinates of the peak location are taken as the center coordinates of the heat source of the vehicle under test. That is, (X_max, Y_max) are directly output as the center of the heat source.
[0036] S106. Determine the heat source point of the vehicle under test based on the physical coordinates of at least one location point corresponding to a nearby temperature value.
[0037] If at least one of the temperature values at multiple neighboring locations exists, it indicates that there are multiple locations close to the maximum temperature (the heat source is located in an approximately flat area). Based on the physical coordinates of these multiple locations close to the maximum temperature, the center coordinates of the heat source of the vehicle under test are determined.
[0038] In this embodiment, the highest temperature point (i.e., the location point corresponding to the maximum temperature) can be automatically identified from the fused temperature distribution map, and combined with the temperature values of the location points near the highest temperature point, the temperature value and physical coordinates of the heat source point are finally output. Compared with the technical solution that only considers the highest temperature point, the positioning efficiency and positioning accuracy of the heat source point are improved.
[0039] According to the solution provided in this application, a temperature distribution map of the vehicle under test is obtained. The temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point. Based on the temperature values of each location point, N peak location points corresponding to the maximum temperature value are selected from the multiple location points. When N=1, multiple neighboring location points within the neighborhood of the peak location point are selected from the multiple location points based on the physical coordinates of the peak location points. If no neighboring temperature value exists among the multiple neighboring location points, it indicates that the peak location point is a strictly local peak, and the heat source point of the vehicle under test is determined based on the physical coordinates of the peak location point. The neighboring temperature value indicates the temperature value whose absolute value of the difference from the maximum temperature value is less than or equal to a preset threshold. If at least one neighboring temperature value exists among the multiple neighboring location points, the heat source point of the vehicle under test is determined based on the physical coordinates of the location point corresponding to at least one neighboring temperature value. This solution not only considers the temperature value of the peak location point but also the temperature value near the peak location point, automatically locating the heat source point of the vehicle under test, thus improving the positioning efficiency and accuracy of the heat source point.
[0040] In some embodiments, the step of determining the heat source point of the vehicle under test based on the physical coordinates of the location points corresponding to at least one neighboring temperature value in S106 can also be implemented in the following way: The sum of at least one neighboring temperature value is used as a weight; the sum of the peak abscissa of each location point corresponding to a neighboring temperature value and the cumulative sum of each neighboring temperature value is divided by the weight to obtain the abscissa of the heat source point; the sum of the peak ordinate of each location point corresponding to a neighboring temperature value and the cumulative sum of each neighboring temperature value is divided by the weight to obtain the ordinate of the heat source point.
[0041] The step described above—calculating the difference between the maximum temperature value and the temperature values of each neighboring location point, and determining whether the difference is less than or equal to a preset threshold—can also be achieved by finding the set of location points (or pixel points) whose temperature values are ≥ T_max - δ among multiple neighboring location points. This set can be denoted as S_near. The set S_near = {(i,j) | M[i][j]≥T_max - δ}. The weight W is calculated as ∑ M[i][j], which is the sum of the temperature values of all location points (or pixel points).
[0042] Calculate x_c = (∑ i × M[i][j]) / W, which is the sum of the row coordinates of each location point (or pixel) multiplied by its temperature value, divided by the weight. Calculate y_c = (∑ j × M[i][j]) / W, which is the sum of the column coordinates of each location point (or pixel) multiplied by its temperature value, divided by the weight. Output (x_c, y_c) as the center coordinates of the heat source point.
[0043] In this embodiment of the application, when there are multiple locations close to the maximum temperature (the heat source is located in an approximately flat area), the neighboring temperature values in the neighborhood of the highest temperature point are weighted and centrally calculated to obtain the center coordinates of the heat source, thereby improving the positioning accuracy of the heat source.
[0044] Normally, there is only one point of maximum temperature, but there can also be multiple points of maximum temperature. Based on this, in the above... Figure 1 Based on this, embodiments of this application also provide a method for locating heat source points, such as... Figure 4 As shown, Figure 4 This is a flowchart of another heat source location method provided in the embodiments of this application.
[0045] S201. Obtain the temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point.
[0046] S202. Based on the temperature values at each location point, select the N peak location points corresponding to the maximum temperature value from among multiple location points.
[0047] S201-S202 are the same as S101-S102 above. Their implementation process and the technical effects that can be achieved can be found in the above description, and will not be repeated here.
[0048] S203. When N is greater than 1, determine whether the area formed by the N peak position points exceeds the preset range.
[0049] If not, execute S204; if yes, execute S205.
[0050] A peak region is constructed based on the physical coordinates of N peak locations. If the N peak locations are widely distributed, the peak region will exceed a preset range, indicating that these highest temperature points may be caused by multiple heat sources. If the N peak locations are relatively concentrated, the peak region will not exceed the preset range, indicating that these highest temperature points may be caused by the same heat source.
[0051] It should be noted that the preset range can be appropriately set by those skilled in the art based on the actual situation. For example, a clustering algorithm can be used to cluster the temperature value distribution generated by the same heat source point, and the range of the clustered area can be used as the preset range. As long as the preset range can distinguish different heat source points, it is acceptable.
[0052] S204. The geometric centroids of the N peak locations are taken as the heat source points of the vehicle under test.
[0053] If N is greater than 1 and the area formed by the N peak locations does not exceed a preset range, it indicates that these highest temperature points may be caused by the same heat source. Multiple identical highest temperature points indicate that the heat source is located in a flat region. Calculate the geometric centroid of the N peak locations and use the coordinates corresponding to the geometric centroid as the center coordinates of the heat source.
[0054] In some embodiments, the heat source point of the vehicle under test can be obtained by: taking the average of the N peak horizontal coordinates as the horizontal coordinate of the heat source point; and taking the average of the N peak vertical coordinates as the vertical coordinate of the heat source point.
[0055] For example, finding the set of all locations (or pixels) with a temperature value equal to T_max among multiple temperature values can be denoted as set S = {(i,j) | M[i][j]= T_max}. The geometric centroids of these locations are then calculated. x_c = (∑ i) / |S| is calculated, and y_c = (∑ j) / |S| is calculated. The output (x_c, y_c) is used as the center coordinates of the heat source.
[0056] In this embodiment of the application, when there are multiple identical highest temperature points (the heat source is located in a flat area), the centroid of the multiple identical highest temperature points is calculated to obtain the center coordinates of the heat source, thereby improving the positioning accuracy of the heat source.
[0057] S205. Based on the physical coordinates of the N peak locations, divide the N peak locations into at least two groups of peak locations; the area formed by the M peak locations included in each group of peak locations does not exceed a preset range; M is a positive integer less than N.
[0058] When N is greater than 1 and the area formed by the N peak locations exceeds a preset range, it indicates that these highest temperature points may be caused by multiple heat sources, which need to be located separately. A clustering algorithm is used to cluster the N peak locations according to their physical coordinates, dividing them into at least two groups of peak locations, ensuring that the area formed by the M peak locations in each group does not exceed a preset range.
[0059] S206. When M is greater than 1, the geometric centroids of the M peak positions are taken as the M heat source points of the vehicle under test.
[0060] If M is greater than 1 and the area formed by the M peak locations does not exceed a preset range, it indicates that these highest temperature points may be caused by the same heat source. Multiple identical highest temperature points indicate that the heat source is located in a flat area. Calculate the geometric centroid of the M peak locations and use the coordinates corresponding to the geometric centroid as the center coordinates of the heat source.
[0061] S207. When M=1, based on the physical coordinates of the peak location point, select multiple neighboring location points within the neighborhood of the peak location point from among multiple location points.
[0062] S208. Determine whether there is a neighboring temperature value among multiple neighboring location temperature values.
[0063] If not, execute S209; if yes, execute S210.
[0064] S209. Determine the heat source point of the vehicle under test based on the physical coordinates of the peak position point.
[0065] S210. Determine the heat source point of the vehicle under test based on the physical coordinates of at least one location point corresponding to a nearby temperature value.
[0066] S207-S210 are the same as S103-S106 above. Their implementation process and the technical effects that can be achieved can be found in the above description, and will not be repeated here.
[0067] In this embodiment, the case of multiple highest temperature points existing simultaneously is considered, and the size of the area formed by them is used to determine whether it is caused by one or multiple heat sources. One or more heat sources of the vehicle under test are then identified, thereby improving the positioning accuracy of the heat source points.
[0068] This application provides a method for automatically detecting and locating heat sources in a vehicle chassis based on a fused temperature distribution map. The above technical solution can also be described in another way: Using the peak location point (X_max, Y_max) as the center, check the temperature values of all locations within its 8-neighborhood. Count the number of locations within the 8-neighborhood whose temperature value is equal to T_max (N_equal), and count the number of locations within the 8-neighborhood whose temperature value is close to T_max (e.g., difference < δ) (N_near).
[0069] (1) For the case where N_equal = 0 and N_near = 0, it indicates that the peak position is a strictly local peak, and (X_max, Y_max) is directly output as the center coordinates of the heat source point.
[0070] (2) For the case where N_equal>0, it means that there are multiple locations with the same maximum temperature value (the heat source is located in a flat area). The centroid of the multiple points with the same maximum temperature is calculated to obtain the center coordinates of the heat source. That is, if there are other locations with a temperature value equal to the maximum temperature value in the 8-neighborhood of the peak location point, the geometric centroid of these points is taken as the center coordinates of the heat source.
[0071] (3) For the case where N_equal = 0 and N_near>0, it indicates that there are multiple locations close to the maximum temperature (the heat source is located in an approximately flat area). The center coordinates of the heat source are obtained by weighting the neighboring temperature values in the neighborhood of the highest temperature point.
[0072] Different branch positioning methods are used for different situations, which improves the positioning accuracy of heat source points.
[0073] The above Figure 1 The above describes a scheme for locating a heat source point with a single highest temperature. Figure 4 A scheme for locating heat sources with multiple highest temperature points is described. In some application scenarios, there is also a need to locate multiple heat sources. Therefore, embodiments of this application also provide a method for locating heat sources, such as... Figure 5 As shown, Figure 5 This is a flowchart of a multi-heat source location method provided in an embodiment of this application.
[0074] S301. Obtain the temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point.
[0075] S302. Arrange multiple location points according to their temperature values to obtain a temperature sequence.
[0076] Sort all valid temperature values in descending or ascending order to obtain a temperature sequence. The temperature sequence includes the sorted temperature values and their physical coordinates.
[0077] S303. Determine the first distance between the physical coordinates of the location points in the temperature sequence and the heat source point corresponding to the maximum temperature value, in descending order of temperature values.
[0078] The heat source point with the highest temperature (the location point corresponding to the maximum temperature value) is located using the heat source point location method described above. For a single heat source point, the first distance between the physical coordinates of the location point corresponding to the second largest temperature value and the center coordinates of the heat source point is calculated. If the first distance is less than or equal to a preset distance, it means that the location point and the previously located heat source point come from the same heat source. Then, the first distance between the two is calculated again using the physical coordinates of the location point corresponding to the third largest temperature value and the center coordinates of the heat source point, until a location point with a first distance greater than the preset distance is found.
[0079] In other words, for M heat source points, where M is an integer greater than 1, calculate the M first distances between the location point corresponding to the second largest temperature value and the M heat source points. If any of the first distances is less than or equal to a preset distance, calculate the M first distances between the location point corresponding to the second largest temperature value and the M heat source points, until a location point is found where all M first distances are greater than the preset distance.
[0080] It should be noted that the preset spacing can be appropriately set by those skilled in the art according to the actual situation. It can be set according to the two nearest heat source points in the actual vehicle chassis, for example, 20cm, as long as it can avoid repeatedly detecting multiple locations of the same heat source. This application embodiment does not limit this.
[0081] S304. If the first spacing is greater than the preset spacing, then the position point where the first spacing is greater than the preset spacing is taken as the first candidate position point.
[0082] When a location point with a first spacing greater than a preset spacing is detected in descending order of temperature value, it is taken as the first candidate location point.
[0083] S305. Based on the temperature value of the first candidate location point and the temperature values of multiple neighboring locations within the neighborhood of the first candidate location point, determine another heat source point of the vehicle under test.
[0084] Based on the physical coordinates of the first candidate location point, multiple neighboring location points within the neighborhood of the first candidate location point are selected from multiple location points; if there is no neighboring temperature value among the temperature values of multiple neighboring location points, the heat source point of the vehicle under test is determined based on the physical coordinates of the first candidate location point; the neighboring temperature value refers to the temperature value whose absolute value of the difference with the temperature value of the first candidate location point is less than or equal to a preset threshold; if there is at least one neighboring temperature value among the temperature values of multiple neighboring location points, another heat source point of the vehicle under test is determined based on the physical coordinates of the location point corresponding to at least one neighboring temperature value.
[0085] The implementation method of S305 can be found in the description of the peak position point in S103-S106 above. The implementation process and the technical effects that can be achieved will not be repeated here. It can be understood as using the first candidate position point as the second peak position point to locate the heat source point.
[0086] S306. Continue to determine the physical coordinates of the location points in the temperature sequence and the second distance between each heat source point in the multiple heat source points in descending order of temperature value; the multiple heat source points include one heat source point and another heat source point.
[0087] S307. Select multiple position points whose second spacing is greater than the preset spacing as second candidate position points.
[0088] S308. Based on the temperature value of the second candidate location point and the temperature values of multiple neighboring location points in the neighborhood of the second candidate location point, determine the next heat source point of the vehicle to be tested until a preset number of heat source points are obtained, or the remaining temperature values in the temperature sequence are all less than or equal to the preset temperature value.
[0089] The implementation methods of S306-S308 can be found in the descriptions of S303-S305 above. They can be understood as applying the same heat source location method to the second candidate location point, based on the heat source location method corresponding to the first candidate location point, to obtain the next heat source point. The implementation process and achievable technical effects will not be elaborated upon here.
[0090] For scenarios that detect a preset number of heat sources, the detection can end after detecting the preset number of heat sources, such as 3, 2, or 5. For scenarios that detect all heat sources, the detection can end when a temperature value less than or equal to a preset temperature value is detected.
[0091] It should be noted that the preset temperature value can be appropriately set by those skilled in the art according to the actual situation. It can be set according to the minimum temperature value caused by the actual heat source, such as 40°C, 35°C, or 30°C, or it can be set according to the normal temperature value when there is no heat source. The preset temperature value can be set slightly higher than the normal temperature value. This application does not limit this aspect.
[0092] For example, taking the detection of the top 3 highest heat source points as an example, according to the multi-heat source point positioning method provided above, the temperature values and position coordinates of the 3 heat source points are output: heat source point 1: 85.6°C, with its center coordinates (120cm, 35cm); heat source point 2: 72.3°C, with its center coordinates (380cm, 38cm); heat source point 3: 45.2°C, with its center coordinates (90cm, 45cm).
[0093] In this embodiment of the application, the above-mentioned Figure 4 S205-S206 show a technical solution for locating multiple heat sources, which is for scenarios with multiple highest temperature points and the area formed by the multiple highest temperature points exceeds a preset range. Figure 5 The technical solution for locating multiple heat sources shown is universal and applicable to any scenario. By comprehensively considering the distance between various location points, candidate location points are selected, and the temperature values near the candidate location points are also taken into account, multiple heat sources of the vehicle under test are automatically located, improving the efficiency and accuracy of locating multiple heat sources.
[0094] In some embodiments, Figure 1 After S105 or S106, Figure 4After S209 or S210, Figure 5 Following S308, the heat source location method further includes the following steps: identifying the parking space status and / or vehicle type of the vehicle under test based on the physical coordinates and temperature value of the heat source.
[0095] In this embodiment, the center coordinates of the heat source are the physical coordinates of the heat source on the vehicle chassis. The area where the heat source is located can be determined based on the physical coordinates of the heat source. For example, heat source 2: 72.3°C, its center coordinates (380cm, 38cm) belong to the exhaust pipe area; heat source 3: 45.2°C, its center coordinates (90cm, 45cm) belong to the front axle area.
[0096] The parking space status is identified based on the location of the heat source and its temperature value. For example, the parking space status can be identified based on the temperature range and the temperature distribution trend in the area (e.g., the exhaust pipe area, the front axle area) when a fault or abnormality occurs. The parking space status can be divided into different levels, such as Level 1 abnormal status (requiring immediate repair), Level 2 abnormal status (requiring immediate repair within a preset time period), and Level 3 abnormal status (requiring immediate repair).
[0097] Vehicle type can be identified based on the location of the heat source and its temperature value. For example, the locations of components that cause temperature changes, such as the exhaust pipe area and the front axle area, differ between vehicles. Based on this, the vehicle type can also be identified based on the location of the heat source.
[0098] In this embodiment of the application, based on the detected heat source, the parking space status (the status of the vehicle's location) and vehicle type can be further determined, thereby improving vehicle safety.
[0099] The heat source location method provided in the above embodiments Figure 6 This is a schematic diagram of a heat source location device provided in an embodiment of this application. This device can be implemented as part or all of a computer device by software, hardware, or a combination of both. See also... Figure 6The heat source location device 60 includes: an acquisition module 601, used to acquire a temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point; a filtering module 602, used to filter out N peak location points corresponding to the maximum temperature value from the multiple location points according to the temperature values of each location point, where N is a positive integer; when N=1, it filters out multiple neighboring location points in the neighborhood of the peak location point from the multiple location points according to the physical coordinates of the peak location points; and a location module 603, used to determine the heat source point of the vehicle under test according to the physical coordinates of the peak location points when there are no neighboring temperature values among the temperature values of the multiple neighboring location points; a neighboring temperature value refers to a temperature value whose absolute value of the difference from the maximum temperature value is less than or equal to a preset threshold; and when there is at least one neighboring temperature value among the temperature values of the multiple neighboring location points, it determines the heat source point of the vehicle under test according to the physical coordinates of the location point corresponding to the at least one neighboring temperature value.
[0100] Optionally, the physical coordinates of the peak location point include the peak horizontal coordinate and the peak vertical coordinate; the positioning module 603 is further configured to use the sum of at least one neighboring temperature value as a weight; to sum the peak horizontal coordinate of the location point corresponding to each neighboring temperature value with the sum of each neighboring temperature value, and divide by the weight to obtain the horizontal coordinate of the heat source point; and to sum the peak vertical coordinate of the location point corresponding to each neighboring temperature value with the sum of each neighboring temperature value, and divide by the weight to obtain the vertical coordinate of the heat source point.
[0101] Optionally, the neighborhood of the peak location point refers to the 8-neighborhood of the peak location point, or the region where the distance between the horizontal coordinate and the horizontal coordinate of the peak is less than or equal to a first preset distance, and the distance between the vertical coordinate and the vertical coordinate of the peak is less than or equal to a second preset distance.
[0102] Optionally, the positioning module 603 is further configured to: when N is greater than 1 and the area formed by the N peak position points does not exceed a preset range, use the geometric centroid of the N peak position points as the heat source points of the vehicle under test; when N is greater than 1 and the area formed by the N peak position points exceeds a preset range, divide the N peak position points into at least two groups of peak position points according to the physical coordinates of the N peak position points; the area formed by the M peak position points included in each group of peak position points does not exceed a preset range; M is a positive integer less than N; when M is greater than 1, use the geometric centroid of the M peak position points as the M heat source points of the vehicle under test; when M=1, execute the heat source point determination step when N=1.
[0103] Optionally, the positioning module 603 is also used to take the average of the N peak horizontal coordinates as the horizontal coordinate of the heat source point; and to take the average of the N peak vertical coordinates as the vertical coordinate of the heat source point.
[0104] Optionally, the positioning module 603 is further configured to arrange multiple location points according to temperature values to obtain a temperature sequence; determine the first distance between the physical coordinates of the location points in the temperature sequence and the heat source points in descending order of temperature values; if the first distance is greater than a preset distance, then the location points with the first distance greater than the preset distance are designated as first candidate location points; determine another heat source point of the vehicle under test based on the temperature value of the first candidate location point and the temperature values of multiple neighboring location points in the neighborhood of the first candidate location point; continue to determine the second distance between the physical coordinates of the location points in the temperature sequence and each of the multiple heat source points in descending order of temperature values; the multiple heat source points include the heat source point and another heat source point; designate multiple location points with second distances greater than the preset distance as second candidate location points; determine the next heat source point of the vehicle under test based on the temperature value of the second candidate location point and the temperature values of multiple neighboring location points in the neighborhood of the second candidate location point, until a preset number of heat source points are obtained, or the remaining temperature values in the temperature sequence are all less than or equal to the preset temperature value.
[0105] Optionally, the heat source location device 60 further includes an identification module 604, which is used to identify the parking space status and / or vehicle type of the vehicle under test based on the physical coordinates of the heat source and the temperature value of the heat source.
[0106] It should be noted that the heat source locating device provided in the above embodiments is only illustrated by the division of the above functional modules when locating heat sources. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0107] The functional units and modules in the above embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.
[0108] The heat source location device and the heat source location method provided in the above embodiments belong to the same concept. The specific working process and technical effects of the units and modules in the above embodiments can be found in the method embodiments section, and will not be repeated here.
[0109] The heat source location method provided in the above embodiments Figure 7 This application provides a schematic diagram of the structure of a computer device, as shown in the embodiment of the present application. Figure 7As shown, the computer device 70 includes: a processor 701, a memory 702, and a computer program 703 stored in the memory 702 and executable on the processor 701. When the processor 701 executes the computer program 703, it implements the steps in the heat source location method in the above embodiments.
[0110] The computer device 70 can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the computer device 70 can be a desktop computer, a portable computer, a network server, a handheld computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. This application embodiment does not limit the type of computer device 70. Those skilled in the art will understand that... Figure 7 The computer device 70 is merely an example and does not constitute a limitation on the computer device 70. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0111] Processor 701 can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0112] In some embodiments, memory 702 may be an internal storage unit of computer device 70, such as a hard disk or memory of computer device 70. In other embodiments, memory 702 may be an external storage device of computer device 70, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on computer device 70. Furthermore, memory 702 may include both internal and external storage units of computer device 70. Memory 702 is used to store operating system, application programs, boot loader, data, and other programs. Memory 702 may also be used to temporarily store data that has been output or will be output.
[0113] This application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above method embodiments.
[0114] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0115] This application provides a computer program product that, when run on a computer, causes the computer to perform the steps described in the various method embodiments above.
[0116] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above method embodiments of this application can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a photographing device / terminal device, a recording medium, a computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage devices. The computer-readable storage medium mentioned in this application can be a non-volatile storage medium; in other words, it can be a non-transient storage medium.
[0117] It should be understood that all or part of the steps of the above embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part as a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-described computer-readable storage medium.
[0118] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0119] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0120] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for locating a heat source, characterized in that, The method includes: Obtain a temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point; Based on the temperature values at each location point, N peak location points corresponding to the maximum temperature value are selected from the plurality of location points, where N is a positive integer; When N=1, based on the physical coordinates of the peak location point, multiple neighboring location points within the neighborhood of the peak location point are selected from the multiple location points; If no adjacent temperature value exists among the temperature values of the multiple adjacent location points, the heat source point of the vehicle under test is determined according to the physical coordinates of the peak location point; the adjacent temperature value refers to the temperature value whose absolute value of the difference from the maximum temperature value is less than or equal to a preset threshold. If at least one neighboring temperature value exists among the multiple neighboring temperature values, the heat source point of the vehicle under test is determined based on the physical coordinates of the location point corresponding to the at least one neighboring temperature value.
2. The method as described in claim 1, characterized in that, The physical coordinates of the peak location point include the peak horizontal coordinate and the peak vertical coordinate; Determining the heat source point of the vehicle under test based on the physical coordinates of the location points corresponding to the at least one adjacent temperature value includes: The sum of the at least one neighboring temperature value is used as the weight; The sum of the peak abscissa of each adjacent temperature value and the cumulative sum of each adjacent temperature value, divided by the weight, is used as the abscissa of the heat source point. The ordinate of the peak value of each adjacent temperature point is summed with the sum of the values of each adjacent temperature point, and then divided by the weight to obtain the ordinate of the heat source point.
3. The method as described in claim 1, characterized in that, The physical coordinates of the peak location point include the peak horizontal coordinate and the peak vertical coordinate; the neighborhood of the peak location point refers to the 8-neighborhood of the peak location point, or the area where the distance between the horizontal coordinate and the peak horizontal coordinate is less than or equal to a first preset distance, and the distance between the vertical coordinate and the peak vertical coordinate is less than or equal to a second preset distance.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: When N is greater than 1 and the area formed by the N peak locations does not exceed a preset range, the geometric centroid of the N peak locations is taken as the heat source point of the vehicle under test. When N is greater than 1 and the area formed by the N peak locations exceeds the preset range, the N peak locations are divided into at least two groups of peak locations based on their physical coordinates; the area formed by the M peak locations in each group does not exceed the preset range; M is a positive integer less than N. When M is greater than 1, the geometric centroids of the M peak locations are taken as the M heat source points of the vehicle under test; When M=1, the heat source point determination steps when N=1 are executed.
5. The method as described in claim 4, characterized in that, The physical coordinates of the peak location point include the peak horizontal coordinate and the peak vertical coordinate; The step of using the geometric centroids of the N peak locations as the heat source points of the vehicle under test includes: The average of the N peak abscissas is used as the abscissa of the heat source point; The average of the N peak ordinates is used as the ordinate of the heat source point.
6. The method according to any one of claims 1-3, characterized in that, The method further includes: The multiple location points are arranged according to their temperature values to obtain a temperature sequence; The physical coordinates of the location points in the temperature sequence and the first distance between the heat source points are determined sequentially according to the temperature values from largest to smallest. If the first spacing is greater than the preset spacing, then the position point where the first spacing is greater than the preset spacing is taken as the first candidate position point; Based on the temperature value of the first candidate location point and the temperature values of multiple neighboring locations within the neighborhood of the first candidate location point, another heat source point of the vehicle under test is determined. Continuing to determine the physical coordinates of the location points in the temperature sequence and the second distance between each of the multiple heat source points in the multiple heat source points, in descending order of temperature values; the multiple heat source points include the heat source point and the other heat source point. Multiple locations where the second spacing is greater than the preset spacing are selected as second candidate locations. Based on the temperature value of the second candidate location point and the temperature values of multiple neighboring locations within the neighborhood of the second candidate location point, the next heat source point of the vehicle under test is determined until a preset number of heat source points are obtained, or the remaining temperature values in the temperature sequence are all less than or equal to the preset temperature value.
7. The method according to any one of claims 1-3, characterized in that, The method further includes: Based on the physical coordinates of the heat source and the temperature value of the heat source, the parking status and / or vehicle type of the vehicle under test are identified.
8. A heat source location device, characterized in that, The device includes: The acquisition module is used to acquire a temperature distribution map of the vehicle under test; the temperature distribution map includes the physical coordinates of each location point in the vehicle coordinate system and the temperature value of each location point. The filtering module is used to filter out N peak location points corresponding to the maximum temperature value from the plurality of location points based on the temperature values of each location point, where N is a positive integer; when N=1, it filters out a plurality of neighboring location points in the neighborhood of the peak location point from the plurality of location points based on the physical coordinates of the peak location point. The positioning module is used to determine the heat source of the vehicle under test based on the physical coordinates of the peak location point when there is no adjacent temperature value among the temperature values of the multiple adjacent location points; the adjacent temperature value refers to the temperature value whose absolute value of the difference with the maximum temperature value is less than or equal to a preset threshold; when there is at least one adjacent temperature value among the temperature values of the multiple adjacent location points, the heat source of the vehicle under test is determined based on the physical coordinates of the location point corresponding to the at least one adjacent temperature value.
9. A computer device, characterized in that, The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-7.