直接在命令上用–source 0调用摄像头会报错
找到文件夹utils下的datasets.py
找到279行,把url加上str()
没改之前
改之后
至于退出要按ctrl +c,在prompt里输入。
然后执行命令
python detect.py --source 0 --weights runs/train/base3/weights/best.pt --conf 0.4
直接在命令上用–source 0调用摄像头会报错
找到文件夹utils下的datasets.py
找到279行,把url加上str()
没改之前
改之后
至于退出要按ctrl +c,在prompt里输入。
然后执行命令
python detect.py --source 0 --weights runs/train/base3/weights/best.pt --conf 0.4