Traditional Culture Encyclopedia - Photography and portraiture - How to identify the target from the gray image obtained by the difference between foreground and background?

How to identify the target from the gray image obtained by the difference between foreground and background?

How to determine the threshold of binarization? The threshold value determined by T = graythreshold () in matlab is the effect determined by Otsu method. The interference factors beside the vehicle can be removed by morphological expansion and corrosion of the digital image and the opening and closing operation after binarization.

If you want to calculate the area of the vehicle in the image, you can combine edge detection and morphological processing of the image to do masking operation, and basically segment the target of the vehicle and the whole vehicle area.