Abstract:
The motion shadow is conglutinous with the object, and has the consistency of motion. It is often misdetected as a part of the moving target. The existence of motion shadow changes the shape of the moving object and influences the further analysis of the foreground of the moving target. To solve this problem, a motion shadow removal algorithm based on improved firefly optimization algorithm is proposed. The optimal threshold is obtained by optimizing the 2-Otsu distance measure function based on the improved glowworm algorithm which is based on the influence of the best position in the population history, and then the image is segmented and the moving shadow is removed. Compared our method with the traditional 2-Otsu method, particle swarm optimization (PSO) optimize 2-Otsu method, firefly optimization algorithm (FA) optimize 2-Otsu method, the experimental results show that the algorithm are 2.69, 1.42 and 1.21 times faster than the other three methods in the presence of shadow. Besides, it is superior to the other three algorithms in terms of region consistency, shadow detection rate and recognition rate. The effectiveness of the method is verified.