Uploaded October 2017 | Updated September 2026, 2 weeks ago
In this video I demonstrate of of my newest Python project. This app is Python Motion detector that automatically detects any motion, save time stamps of detected motions into CSV file and finally plot in into HTML file on interactive graph with representing all the data on infobars.
I do not have too much time to explain code fully but I made some notes inside the video. I hope it helps to understand how file system of this project is working.
Following Python modules were used in Motion detector and motion graph project:
- cv2 (opencv) - for capturing video directly from the webcam:
- pandas - for storing time stamp data into easy readable data frames
- time - for getting real values of time stamps
- bokeh - for plotting data into chart in HTML file.
Motion tracking is one of classical type of Python applications in Computer Vision science. I think this this Python project can be used and applied in CCTV, Security cameras, Webcams, Baby cameras, and even for haunting ghosts.
If you want to get full code of this project, just contact me in LinkedIn here: linkedin.com/in/bielinskas
And do not forget to SUBSCRIBE to get more interesting Python and Data Science videos.
My Youtube channel: youtube.com/c/VytautasBielinskas
Best regards
Vytautas
In this video I demonstrate of of my newest Python project. This app is Python Motion detector that automatically detects any motion, save time stamps of detected motions into CSV file and finally plot in into HTML file on interactive graph with representing all the data on infobars.
I do not have too much time to explain code fully but I made some notes inside the video. I hope it helps to understand how file system of this project is working.
Following Python modules were used in Motion detector and motion graph project:
- cv2 (opencv) - for capturing video directly from the webcam:
- pandas - for storing time stamp data into easy readable data frames
- time - for getting real values of time stamps
- bokeh - for plotting data into chart in HTML file.
Motion tracking is one of classical type of Python applications in Computer Vision science. I think this this Python project can be used and applied in CCTV, Security cameras, Webcams, Baby cameras, and even for haunting ghosts.
If you want to get full code of this project, just contact me in LinkedIn here: linkedin.com/in/bielinskas
And do not forget to SUBSCRIBE to get more interesting Python and Data Science videos.
My Youtube channel: youtube.com/c/VytautasBielinskas
Best regards
Vytautas







![Stop using range() for loops in Python. Use enumerate()
With this video I explain why in many cases we should use enumerate() instead of range() function in Python for loops.
The way of using range() is ugly: You either need a separate variable assignment to get the element or use a[i] all the time which could theoretically be an expensive operation. The point is that you generally dont want to use range(len(l)) when you want to iterate the elements of a list (although there may still be cases where it makes sense).
I think than enumerate is much more flexible and readable Python coding option than len(l) with range().
Thank you for watching. See you on other tutorials.
Vytautas.
#pythonfunctions
#pythonloops
#pythonbegineers Stop using range() for loops in Python. Use enumerate()](https://i.ytimg.com/vi/XUtAy9K0JSE/mqdefault.jpg)


