1 Star 0 Fork 0

1991wangliang / Python-Motion-Detector

加入 Gitee
与超过 800 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

Python-Motion-Detector

A Python program that can detects moving objects with webcam and log their entry and exit time to/from the camera

How it works

The script "motion_detector.py" utilizes the openCV library to capture video from the default webcam of the loacal machine. and we basically store the first frame, which ideally would capture the static background, and then check every coming frame captured from the camera to see if the difference (delta) in all pixels surpasses the set threshold. If it does, we draw rectangular contours on the frame to indicate where the detected objects are.

After we are able to successfully detect the moving objects, the next step is to record the entry and exit points in time and plot a time series with my second script- "plotting.py". The time series chart is plotted with the bokeh library and we also enable hovering effect to show the time stamps. The only thing left to do is to fine tune the parameters such as the threshold in order to make the detection more accurate. Pretty fun, right ?

Screen Shot

screen shot 2018-01-09 at 3 07 17 am screen shot 2018-01-12 at 11 57 25 pm

Author

@Daniel Huang

仓库评论 ( 0 )

你可以在登录后,发表评论

简介

暂无描述 展开 收起
Python 等 5 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wangliang1991/Python-Motion-Detector.git
git@gitee.com:wangliang1991/Python-Motion-Detector.git
wangliang1991
Python-Motion-Detector
Python-Motion-Detector
master

搜索帮助