A kind of background extraction method and target discrimination method
A technology of background extraction and discrimination method, which is applied in the field of image processing, can solve problems such as poor applicability, inability to apply to all scenes, and inability to extract the initial background, etc., to achieve high accuracy, good applicability, and improved accuracy.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] like figure 1 As shown, this embodiment provides a background extraction method, including:
[0050] S1: collect several frames of images to obtain a first temperature matrix;
[0051] S2: set the first threshold T1 according to the first temperature matrix;
[0052] S3: determine whether there is an element value greater than the first threshold T1 in the first temperature matrix, if so, proceed to the next step, otherwise the obtained first temperature matrix is the background temperature matrix;
[0053] S4: Calculate the average value of all element values in the first temperature matrix that are less than the first threshold value T1;
[0054] S5: Update the element values of the first temperature matrix greater than the first threshold T1 to the average value to obtain a background temperature matrix;
[0055] Among them, one temperature matrix corresponds to one frame of image, and the element values in the temperature matrix are the temperature values...
Embodiment 2
[0070] like image 3 As shown, a target discrimination method that can use the background extraction method provided in Embodiment 1 to obtain the initial background temperature matrix in the target discrimination process, including:
[0071] P1: Extract the initial background temperature matrix;
[0072] P2: Collect real-time images and obtain real-time image temperature matrix;
[0073] P3: Calculate the difference between the real-time image temperature matrix and the initial background temperature matrix to obtain the foreground temperature matrix;
[0074] P4: Compare the element values in the foreground temperature matrix with the second threshold value T2 respectively, and determine the pixel point corresponding to the element value greater than the second threshold value T2 as the target point, otherwise it is determined as the background point, and then continue to carry out the real-time acquisition image, obtain a real-time image temperature matrix for this step...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


