In motion detection using contours.py,
It identifies the things which are change frame one to another frame and mark them with rectangular boxes using Contours concept.
Lucas_kanade.py,
the python code will finds the direction of the change in a frame from video or camera streaming. It implemented using Lucas Kanade method and shows arrows in output image.