PaddlePaddle/PaddleDetection

为啥识别不出来视频文件夹里的视频

primary-stu opened this issue · 0 comments

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

在运行pipeline.py时,我按照官方文档的启动命令填入视频地址,报错,
video_file: E:/bishe/bishejiankong.mp4
Traceback (most recent call last):
File "deploy/pipeline/pipeline.py", line 1323, in
main()
File "deploy/pipeline/pipeline.py", line 1308, in main
pipeline = Pipeline(FLAGS, cfg)
File "deploy/pipeline/pipeline.py", line 85, in init
self.input = self._parse_input(args.image_file, args.image_dir,
File "deploy/pipeline/pipeline.py", line 114, in _parse_input
assert os.path.exists(
AssertionError: video_file not exists and not an rtsp site.
第一行的输出是我在代码里加入了打印,结果显示和我输入的地址一摸一样,官方文档里说图片、视频、rtsp都可以,所以我的输入应该没问题,不懂该怎么办了。
这是我的启动命令:python deploy/pipeline/pipeline.py --config deploy/pipeline/config/examples/infer_cfg_illegal_parking.yml --video_file=E:/bishe/bishejiankong.mp4 --device=gpu --draw_center_traj --illegal_parking_time=5 --region_type=custom --region_polygon 1000 550 1200 570 800 730 1050 740
屏幕截图 2024-05-02 165954