不会运行github上的一个项目 https://github.com/saimj7/People-Counting-in-Real-Time
帮助我成功运行这个项目,具体金额可商议
github上面写得挺清楚得啊
先安装依赖包
pip install -r requirements.txt
然后运行测试视频确认安装成功
python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
最后如果你要连接摄像头的画,编辑mylib/config.py
修改url连接摄像头,再运行下面命令
python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
通过opencv采集网络摄像机视频,实时统计人流量,这个需要有网络摄像机,或者录制的视频流做测试。
解决方法
可以尝试用Github上的README.md来尝试着实现运行
如有问题的话,可以描述下问题,联系我这边试一下
你是要在什么系统什么设备什么配置上运行呢, 就一句话, 想帮你也要知道什么情况好吧, 想要得到满意的答案先学会怎么提问好吧,
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
好的,滴滴我
首先本地电脑搭建python环境
搭建好python环境后安装对应的依赖包
最后修改配置IP等信息指向你的摄像头就可以了
我的步骤虽然看上去有点多,但是可以为未来的项目铺好路,并且也是最保守最安全的一种
1.下载vscode(依照个人喜好选择编辑器就行)
2.在vscode中安装Python扩展
3.下载anaconda
4.使用anaconda创建虚拟环境
5.根据github上的readme.md进行安装(不会的话可以私信)
6.打开vscode,切换Python解释器,运行run.py
看文档