A foreign body detection system and method for electric vehicle wireless charging system based on thermal infrared image processing

Through thermal infrared image processing technology, combined with the improved Otsu method and morphological operations, the rapid and accurate detection of foreign objects in the wireless charging system is achieved, solving the problems of difficult detection and high cost in the existing technology, and providing an efficient and low-cost solution. Solutions for every type of vehicle and environment.

CN115366711BActive Publication Date: 2024-10-15HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210905617.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-10-15
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

It is difficult for existing wireless charging systems to quickly and accurately detect small-sized metal foreign objects in high-power electromagnetic environments, and methods based on coils and system parameters have safety hazards and insufficient applicability. Machine vision methods are costly and affected by changes in ambient light. Ultrasonic and Radar methods cannot distinguish metallic foreign objects and are more expensive.

Method used

An electric vehicle wireless charging system based on thermal infrared image processing is used to collect images through the infrared detection module, use the improved Otsu method and morphological operations to extract foreign object features, and combine Bluetooth transmission and alarm output to achieve non-contact foreign object detection and location determination.

Benefits of technology

It achieves efficient, low-cost, and highly applicable foreign object detection during the wireless charging process. It can detect small-sized foreign objects, is suitable for various types of vehicles, has a fast computing speed, is suitable for embedded device deployment, and hardly affects the charging system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115366711B_ABST
    Figure CN115366711B_ABST
Patent Text Reader

Abstract

The present invention provides a foreign body detection system and method for an electric vehicle wireless charging system based on thermal infrared image processing, and the present invention relates to the field of wireless power transmission technology. The controller extracts foreign body image features through an infrared detection module and an improved image processing algorithm, obtains information such as the temperature, area, perimeter and position of the foreign body, and sends it to the user's mobile phone or computer host computer with the help of a communication module, and sends an alarm signal. The user can input commands and modify parameters through the host computer, communication module and interaction module to improve system performance; the modification results can be viewed in real time through the display screen, which is convenient for debugging work in different environments. The present invention uses an improved method of thermal infrared image processing for detection, and the foreign body detection system can work stably during wireless charging, has strong environmental adaptability, simple structure and low cost. It can also realize non-contact detection of foreign bodies and their positions in a wireless charging system at any frequency, with almost no impact on the wireless charging system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless power transmission, and in particular to a foreign body detection system and method for a wireless charging system of an electric vehicle based on thermal infrared image processing. Background Art

[0002] The background technology of the present invention is foreign object detection (FOD) in the wireless power transmission system of electric vehicles. In the face of the increasingly prominent energy crisis and environmental problems, promoting the electrification of automobiles has become a global consensus. Wireless charging has gradually become the main way to charge electric vehicles due to its convenience, safety, strong interoperability and suitability for bad weather. In order to improve the charging power and efficiency and meet the ground clearance requirements of various types of vehicle chassis, the wireless charging system of electric vehicles usually adopts magnetically coupled resonant wireless power transmission (MCR-WPT, Magnetically-coupled Resonant Wireless Power Transfer). However, in actual application environments, foreign matter is easy to appear in the energy transmission space, especially metal foreign matter will affect the wireless charging system, destroy the resonant state, and the charging efficiency will drop sharply. Even high temperature will cause fire, which is very harmful. How to detect foreign matter quickly, accurately and efficiently is the bottleneck for promoting the industrialization of automobile wireless charging.

[0003] Prior art literature:

[0004] In 2010, Karanth Avinash et al. proposed to install multiple thermistors as temperature sensors on the transmitting coil to detect the temperature changes in various areas of the transmitting coil. When there is a metal foreign body in the charging system, the metal foreign body generates heat due to the eddy current thermal effect, causing the local temperature of the transmitting end to rise significantly. The presence and location of the metal foreign body can be detected by the temperature sensor.

[0005] In 2011, Katherine L. Hall et al. proposed using infrared temperature sensors to detect temperature changes in the charging area. The infrared temperature sensor is installed on the front wall of the car, and the temperature sensor only detects the temperature around the resonator. If the detected temperature is higher than the reference temperature, it is considered that there is a metal foreign body in the charging system.

[0006] In 2011, Nishio Takeshi et al. of Japan proposed a foreign object detection technology based on light intensity changes. A radiation light unit is installed near the receiving coil at the bottom of the car, and optical fiber is laid on the transmitting coil. If there is a foreign object in the primary and secondary charging areas, the light intensity detected by the optical sensor at the transmitting coil will be lower than when there is no foreign object.

[0007] In 2012, Inoue Junji et al. proposed to measure the distance between the transmitting coil and the receiving coil based on sonar or radar method, and compare the measured distance with the reference distance. If the measured distance is less than the reference distance, it is judged that there is a foreign object between the primary and secondary sides.

[0008] In 2015, Liu Xun, Luo Haoqin, Chen Yongguang and others proposed a single-turn circular detection coil array in their patent application, in which the sub-coils are closely arranged to achieve full coverage of the transmitting coil of the wireless power transmission system.

[0009] In 2015, American scholars studied a WPT foreign body detection method based on real-time thermal imaging, which uses neural networks to achieve thermal infrared foreign body detection for wireless charging of electric vehicles. This requires the processor to have strong computing power and is relatively costly.

[0010] In 2018, Jin Dengfeng and others from Harbin Institute of Technology used machine vision detection methods to establish a machine learning model and train a foreign object recognition network based on SVM, which can realize foreign object recognition, but at a relatively high cost.

[0011] In 2019, Jin Yao from Tianjin Polytechnic University proposed a multi-turn annular detection coil array with a hollow square structure. At the same time, the author designed an optimal detection coil model based on the influence of metal foreign matter on the eddy current loss of the wireless power transmission system.

[0012] In 2019, the KAIST and GIST teams in South Korea designed a symmetrical rectangular coil group with a variable number of turns to better offset the problem of differential coil induced voltage caused by the unequal transmitting coil magnetic field.

[0013] In 2020, the KAIST and GIST teams in South Korea designed a multi-turn symmetrical rectangular coil group.

[0014] The level of existing technology and existing problems (defects):

[0015] 1. Currently, the foreign body detection methods for wireless charging systems are mainly auxiliary coil method and system parameter method. However, in the face of high-power electromagnetic environment, the auxiliary coil is equivalent to a metal foreign body, which has a shielding effect on energy transfer, which will reduce the energy transfer efficiency of the system. The high voltage induced by itself during operation will also cause safety hazards.

[0016] Second, the method of detecting foreign objects based on system parameters does not require an external auxiliary coil, but when a small-sized foreign object with great harm invades, the system parameters change very slightly, making it difficult to detect it quickly. In addition, when the transceiver coils are misaligned or the height of the vehicle chassis changes, recalibration is required, and the actual working conditions are not universal.

[0017] 3. Although the accuracy of foreign body detection method based on machine vision is improved, the algorithm is complex and the cost of required equipment is high. In addition, the applicability of the visual system will be reduced in scenes with large changes in ambient light.

[0018] 4. The detection method based on ultrasound and radar has a long detection distance and a large detection area. It can detect non-metallic foreign matter and living foreign matter, but it cannot distinguish between metallic foreign matter, has a high cost, and is greatly affected by environmental factors. Summary of the invention

[0019] The purpose of the present invention is to detect foreign objects in wireless charging. The present invention provides a foreign object detection system and method for an electric vehicle wireless charging system based on thermal infrared image processing. The specific scheme is as follows:

[0020] A foreign body detection system for an electric vehicle wireless charging system based on thermal infrared image processing, the system comprising: a controller, an infrared detection module, a command input module and a signal output module;

[0021] The infrared detection module is connected to the controller via a communication bus. The infrared detection module collects infrared images of the wireless charging device. The controller processes the collected images and extracts foreign object image features. The command input module is connected to the controller and inputs corresponding image processing instructions to the controller. The other end of the controller is connected to a signal output module, which outputs foreign object detection information and alarm information.

[0022] Furthermore, the infrared detection module includes an optical system, a photoelectric conversion module, a signal amplification circuit, a filtering circuit and an analog-to-digital conversion module;

[0023] The optical system collects infrared radiation signals from the transmitting coil area in the wireless charging device, and the optical system outputs signals to the photoelectric conversion module. The photoelectric conversion module converts the radiation signals into electrical signals, amplifies the electrical signals through the signal amplification circuit, filters the amplified signals through the filtering circuit, and converts the filtered signals into digital signals through analog-to-digital conversion and transmits them to the controller.

[0024] Furthermore, multiple infrared detection modules are used to maximize the utilization of the detection space.

[0025] Furthermore, the command input module includes a key module and a WiFi module, and the user inputs commands and modifies parameters through the key module and the WiFi module to adapt to a specific test environment.

[0026] Furthermore, the signal output module includes a display module, a wireless transmission module, an alarm output module and a power-off signal module;

[0027] The display screen displays the image processing result, the alarm output module is used to send an alarm signal, the wireless sending module is used to send foreign object detection information to the user's host computer, mobile phone or computer, and the power-off module is used to power off the wireless charging device according to the foreign object detection signal.

[0028] A foreign body detection method for an electric vehicle wireless charging system based on thermal infrared image processing using an improved Otsu method comprises the following steps:

[0029] Step 1: The foreign body detection system starts the detection. The controller reads the temperature data and image data information of the infrared detection modules at different positions in sequence. The controller determines whether there are bad points based on the read information and marks the bad points.

[0030] Step 2: Load the system parameters saved in advance or receive the parameters entered by the user, initialize the system, select the ROI according to the preset parameters, and determine the transmitting coil area;

[0031] Step 3: The received image is subjected to data enhancement using bilinear interpolation, and some noise is filtered out using Gaussian filtering to obtain a true image; the filtered image is binarized using the improved Otsu method to preliminarily extract the image features of the foreign body;

[0032] Step 4: Filter out noise points through morphological operations to extract accurate foreign body images; determine the temperature, perimeter, area and center of gravity of the foreign body through connected domain algorithm traversal to determine the size and location of the foreign body;

[0033] Step 5: Display in real time on the display screen, and send the temperature, size and location information of the foreign object to the host computer via Bluetooth; determine the type of foreign object based on the temperature and area information of the foreign object, determine the degree of impact of the foreign object on the wireless charging system, identify foreign objects with temperatures higher than the background, and realize emergency alarm and power-off signal output.

[0034] Effect of the invention:

[0035] The detection system provided by the present invention adopts a thermal infrared detection module combined with a microcontroller, has strong environmental adaptability, low cost, simple structure, high integration, and small size, and can be applied to foreign object detection of various models of vehicles and other wireless charging equipment, and has a wide range of applications.

[0036] The present invention utilizes a thermal infrared image processing method for detection, which can realize non-contact detection and position determination of foreign objects in a wireless power supply system at any frequency, has almost no effect on the wireless charging system, and the detection can work stably during the wireless charging process.

[0037] The present invention uses an adaptive infrared image processing algorithm, which has a much higher accuracy and applicable power level than coil and system parameter detection, and can detect smaller foreign objects. Compared with machine vision methods and neural network algorithms, the operation rate is also faster, and it is suitable for deployment on embedded devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a schematic diagram of the specific composition of the foreign body detection system;

[0039] Figure 2 This is the working flow chart of infrared detection module;

[0040] Figure 3 This is the installation diagram of the infrared receiving module;

[0041] Figure 4 This is a flow chart for foreign body detection;

[0042] Figure 5 Testing location for foreign matter;

[0043] Figure 6 Improved OSTU binarization effect diagram for multiple foreign bodies;

[0044] Figure 7 This is the OSTU binarization improvement effect diagram without foreign matter;

[0045] Figure 8 The following are the image processing results of different foreign objects in different positions. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Combination Figures 1 to 8 , the present invention provides a foreign body detection system for an electric vehicle wireless charging system based on thermal infrared image processing, the system comprising: an infrared detection module, a controller, a command input module and a signal output module;

[0048] The infrared detection module is connected to the controller via an IIC bus. The infrared detection module collects infrared images of the wireless charging device. The controller processes the collected images and extracts foreign object images. The command input module controls the connected controller, and the user interactively controls the controller through the command input module. The data signal output end of the controller is connected to the signal output module, and the signal output module outputs foreign object detection information and alarm information.

[0049] The infrared detection module includes an optical system, a photoelectric conversion module, a signal amplification circuit, a filtering circuit and an analog-to-digital conversion module;

[0050] The optical system collects infrared radiation signals from the transmitting coil area in the wireless charging device, and the optical system outputs signals to the photoelectric conversion module. The photoelectric conversion module converts the radiation signals into electrical signals, amplifies the electrical signals through the signal amplification circuit, filters the amplified signals through the filtering circuit, and converts the filtered signals into digital signals through the analog-to-digital conversion module and transmits them to the controller.

[0051] The command input module includes a key module and a WiFi module, and the user inputs commands and modifies parameters through the key module and the WiFi module.

[0052] The signal output module includes an LCD display module, an LED indicator light, a speaker, a power-off signal module and a Bluetooth sending module;

[0053] The LCD display module displays the modification result, the LED indicator light and the speaker are used to send an alarm signal, the Bluetooth module is used to send foreign object detection information to the user's mobile phone or computer host computer, and the power-off module is used to power off the wireless charging device according to the foreign object detection signal.

[0054] The controller of the present invention extracts the image of the foreign object through an image processing algorithm, and obtains information such as the temperature, area, perimeter and position of the foreign object. Then, it is sent to the user's mobile phone or computer host computer via Bluetooth, and an alarm signal is issued by a speaker and an LED light. The user can input commands and modify parameters through the host computer, WiFi module and key interaction module to improve system performance, and can view the modification results in real time through the LCD screen, which is convenient for debugging work in different environments.

[0055] The controller adopts an STM32 microcontroller, and the infrared detection module adopts an MLX90640 module. The STM32 microcontroller has low cost, simple structure, high integration, and small size, and can be applied to foreign body detection of various types of vehicles and other wireless charging equipment, with a wide range of applications.

[0056] The thermal infrared sensor uses the MLX90640 module. When the height is about 12 cm, its detection range is smaller than the range of the car wireless charging transmitting coil (850mm×750mm). Therefore, four sensor modules are used. Figure 3 The method shown is installed at the four corners of the receiving end (the receiving coil size is less than 450mm×450mm). The main control and human-computer interaction modules are installed above the receiving end shielding plate of the charging device to prevent mutual influence with the electromagnetic field of the charging device.

[0057] The present invention provides a method for detecting foreign matter in an electric vehicle wireless charging system based on improved Otsu method thermal infrared image processing, comprising the following steps:

[0058] Step 1: The foreign body detection system starts the detection. The controller reads the temperature data and image data information of the infrared detection modules at different positions in sequence. The controller determines whether there are bad points based on the read information and marks the bad points.

[0059] Step 2: Load the system parameters saved in advance or receive the parameters entered by the user to initialize the system, select the ROI according to the preset parameters, and determine the transmitting coil area;

[0060] Step 3: The received image is subjected to data enhancement using bilinear interpolation, and some noise information is filtered out using Gaussian filtering to obtain a true image; the filtered image is binarized using the Otsu method to preliminarily extract the image of the foreign body;

[0061] Step 4: Filter out noise points through morphological operations to extract accurate foreign body images; traverse through the connected domain algorithm to determine the perimeter, area and center of gravity of the foreign body;

[0062] Step 5: Display in real time on the LCD screen, and send the temperature, size and location information of the foreign object to the host computer via Bluetooth; determine the type of foreign object based on the temperature and area information of the foreign object, determine the degree of impact of the foreign object on the wireless charging system, and control whether to directly cut off the charging system.

[0063] Since the size of the transmitting coil is centrally symmetrical, it is only necessary to verify the detection of one quarter of the entire system. The test position of the foreign body in the experimental test is as follows: Figure 5 shown.

[0064] In order to extract the foreign body information in the WPT energy transmission space image, it is necessary to binarize the image to distinguish the foreign body from the background information. This requires selecting a suitable binarization method to obtain the global threshold. This paper uses the maximum inter-class variance method (OSTU). This method is also called the Otsu method, which is an algorithm that can adaptively determine the image binarization segmentation threshold. The algorithm assumes that the image pixels can be divided into two parts, background and target, according to the global threshold. Then, the optimal threshold is calculated to distinguish the two types of pixels so that the distinction between the two types of pixels is maximized.

[0065] The threshold obtained by this method has the largest variance between the foreground and background classes of the image after binary segmentation. It is simple to calculate and is not affected by image contrast and brightness, so it is very suitable for application in foreign body detection systems. Since variance is a measure of the uniformity of image grayscale distribution, the larger the variance between the background and foreground classes, the greater the difference between the two parts of the image, because once the two are distinguished incorrectly, the difference between the two parts will become smaller. Therefore, the segmentation method that can maximize the variance between classes means the minimum probability of misclassification.

[0066] The specific steps of binarizing the image by Otsu's method are as follows:

[0067] Suppose the number of pixels with gray level i in the image is m i , the overall grayscale value range is [0, N-1], and the total number of pixels at each grayscale level is expressed by the following formula:

[0068]

[0069] Determine the proportion of each gray value in the image:

[0070]

[0071] Assume that the threshold of the image is T, and divide the image into two parts: foreground C1 and background C2. The proportion of each part is expressed by the following formula:

[0072]

[0073]

[0074] Assume that the average grayscale of the global image is μ, and the average grayscales of the two regions are μ1 and μ2, respectively, which are expressed as follows:

[0075]

[0076]

[0077] The average grayscale of the global image is determined by the following formula:

[0078]

[0079] The inter-class variance of the two regions is expressed as follows:

[0080] g=P1(μ1-μ) 2 +P2(μ2-μ) 2 =P1P2(μ1-μ2) 2 (8)

[0081] Let the segmentation grayscale threshold traverse the grayscale range of the entire image so that the calculated inter-class variance g is the largest, which is the optimal threshold for the global image.

[0082] Of course, simply using OSTU cannot guarantee the robustness of the foreign body detection system, because OSTU binarization assumes that the image has a global threshold, that is, there are foreign objects in the field of view, and it will select the one with the largest difference as the foreign object and the background. But in actual working conditions, foreign objects do not always appear in the field of view, and there may not be only one foreign object. Therefore, it is necessary to make reasonable adjustments based on OSTU when binarizing the foreign body image. For the case of multiple foreign objects, select the first two thresholds with large inter-class variance, and then select the final threshold with a smaller value and a smaller difference with other thresholds to ensure that the selected information in the state of multiple foreign objects is more comprehensive. The effect before and after the improvement is compared. Figure 6 As shown in the figure, it can be seen that the traditional OSTU algorithm can only extract the most obvious foreign matter, while the improved algorithm has a better effect on the situation of multiple foreign matter and can extract smaller foreign matter.

[0083] In the case where there is no foreign object, it is necessary to set a minimum threshold limit to prevent misidentification. In the case where there is no foreign object, manual calibration can be performed and the maximum value of the image pixel is used as the minimum threshold. The minimum threshold can also be manually input and the program will automatically save it as the minimum threshold for the next startup. Figure 7 As shown, it can be seen that the traditional OSTU algorithm, by default, can segment the image, resulting in misidentification, while the improved OSTU algorithm can process images without foreign objects, and is more suitable for foreign object detection scenarios.

[0084] Figure 8 shows the image processing results of the experiment with two foreign objects (5-cent coins and M4 nuts) at the corner, edge and center of the transmitter under a 30kW wireless charging device. From left to right, each column in the figure is still the result after interpolation filtering and the result after binarization and opening and closing operations for display.

[0085] From the image processing results, we can see that as the size of the foreign body decreases, the extracted foreign body image contour will also decrease. Therefore, the approximate position of the foreign body in the transmitting coil can be determined by the position of the extracted foreign body contour in the image. Since the magnetic induction intensity at the corner point is greater, the temperature rise of the foreign body at the corner point is relatively obvious, and the processing result is more ideal. The magnetic field intensity of the edge line is second to that of the corner point, and the foreign body contour is slightly smaller. The magnetic field intensity at the center is the lowest, and the contour is also the smallest. By comparing the image processing results, it can be seen that the smallest foreign body that can be accurately detected by this system at the lowest point of the magnetic field is the M4 nut, and the detection success rate can reach more than 90%, and relatively accurate positioning can be achieved.

[0086] The above is a detailed introduction to the foreign body detection system and method for electric vehicle wireless charging system based on thermal infrared image processing provided by the present invention. The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A foreign body detection system for electric vehicle wireless charging system based on thermal infrared image processing, characterized in that: The system comprises: a controller, an infrared detection module, a command input module and a signal output module; The infrared detection module is connected to the controller via a communication bus. The infrared detection module collects infrared images of the wireless charging device. The controller processes the collected images and extracts foreign body image features. The command input module is connected to the controller and inputs corresponding image processing instructions to the controller. The other end of the controller is connected to the signal output module, which outputs foreign body detection information and alarm information. The infrared detection module includes an optical system, a photoelectric conversion module, a signal amplification circuit, a filtering circuit and an analog-to-digital conversion module; The optical system collects infrared radiation signals from the transmitting coil area of ​​the wireless charging device, and the optical system outputs signals to the photoelectric conversion module, which converts the radiation signals into electrical signals, amplifies the electrical signals through the signal amplification circuit, filters the amplified signals through the filtering circuit, and converts the filtered signals into digital signals through analog-to-digital conversion and transmits them to the controller; A plurality of the infrared detection modules are used to maximize the use of the detection space. The infrared detection module uses the MLX90640 module, and the thermal infrared sensor uses the MLX90640 module. Four sensor modules are installed at the four corners of the receiving end. The command input module includes a key module and a WiFi module, and the user inputs commands and modifies parameters through the key module and the WiFi module to adapt to a specific test environment.

2. According to the foreign body detection system of electric vehicle wireless charging system based on thermal infrared image processing according to claim 1, it is characterized in that: The signal output module includes a display module, a wireless transmission module, an alarm module and a power-off signal output.

3. A foreign body detection method for electric vehicle wireless charging system based on thermal infrared image processing, characterized in that: The foreign body detection system of the electric vehicle wireless charging system based on thermal infrared image processing as described in any one of claims 1-2 is used to sense the presence of foreign bodies based on thermal infrared image processing and temperature changes; comprising the following steps: Step 1: The foreign body detection system starts detection. The controller reads the temperature data and image data information of the infrared detection modules at different positions in sequence to determine whether there are bad pixels and mark the bad pixels. Step 2: Load the system parameters saved in advance or receive the parameters entered by the user, initialize the system, select the ROI according to the preset parameters, and determine the transmitting coil area; Step 3: The received image is subjected to data enhancement using bilinear interpolation, and some noise is filtered out using Gaussian filtering to obtain a true image; the filtered image is binarized using the improved Otsu method to preliminarily extract the image features of the foreign body; Step 4: Filter out noise points through morphological operations to extract accurate foreign body images; determine the perimeter, area, and center of gravity of the foreign body through connected domain algorithm traversal to determine the size and location of the foreign body; Step 5: Display the processing results in real time on the display screen, and send the temperature, size and location information of the foreign object to the host computer via wireless; judge the type of foreign object based on the temperature and area information of the foreign object, determine the degree of impact of the foreign object on the wireless charging system, and control whether to directly cut off the charging system.

4. According to the method of foreign body detection in electric vehicle wireless charging system based on thermal infrared image processing in claim 3, it is characterized in that: The specific steps of binarizing the image by using the improved Otsu method are as follows: Suppose the number of pixels with gray level i in the image is m i , the overall grayscale value range is [0, N-1], and the total number of pixels at each grayscale level is expressed by the following formula: Determine the proportion of each gray value in the image: Assume that the threshold of the image is T, and divide the image into two parts: foreground C1 and background C2. The proportion of each part is expressed by the following formula: Assume that the average grayscale of the global image is μ, and the average grayscales of the two regions are μ1 and μ2, respectively, which are expressed as follows: The average grayscale of the global image is determined by the following formula: The inter-class variance of the two regions is expressed as follows: g=P1(μ1-μ) 2 +P2(μ2-μ) 2 =P1P2(μ1-μ2) 2 (8) Let the segmentation grayscale threshold traverse the grayscale range of the entire image so that the calculated inter-class variance g is the largest, which is the optimal threshold for the global image.

5. The method for detecting foreign matter in an electric vehicle wireless charging system based on thermal infrared image processing according to claim 4 is characterized in that: For the case of multiple foreign objects, select the first two thresholds with larger inter-class variances, and then select the final threshold with a smaller value and a smaller gap with other thresholds to ensure that the selected information in the case of multiple foreign objects is more comprehensive; for the case of no foreign objects, set the minimum threshold limit to prevent misidentification.