Moving Object Detection Using Unsupervised And Weakly Supervised Neural Networks In Videos With Illumination Changes And Dynamic Background