1.使用服务器mmdetection文件生成检测框文件,得到res.txt文件
服务器路径: /data6/cf/mmdetection/
本地路径:E:\CarPlateIdentity\MM\mmdetection\demo\mmdet\core\visualization\image.py
python demo/test_vedio.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --file demo/demo.mp4 --out demo/res.mp4
需要在代码中修改生成的txt文件名称,也可由参数获得
2.使用子建学长的代码,获取车流量统计结果,生成output.txt文件
服务器路径:/data6/lx/count/
本地路径:E:\CarPlateIdentity\MMDetection2\sort.py
3.对每一辆车停止时间进行统计,生成stoptime.txt
D:\achenf\project\python_test\car_test1\taxi\stopTime.py
4.对视频进行解帧
5.将车辆停止结果绘制到每帧