A moving objects detection algorithm is proposed in order to improve the performance in presence of moving objects appearing close in a 2D image but with different distances from the observer. The method requires two distinct cameras with slight horizontal displacement, giving two video sequences. Frame difference is used to evidence the moving objects from the background in each video sequence. Then a disparity map is computed to measure the distance of each object. Finally, these data are merged by using a clustering algorithm giving the number, size and position of moving objects. Most of the processing can be implemented using cellular neural networks (CNN). We tested this method over several sequences, both indoor and outdoor. Experime...