usage: detect_blinks.py [-h] -p SHAPE_PREDICTOR [-v VIDEO] detect_blinks.py: error: the following arguments are required: -p/--shape-predictor
时间: 2023-12-03 15:46:27 浏览: 196
这个错误提示是因为你在运行 detect_blinks.py 脚本时没有指定必需的参数 -p 或 --shape-predictor。你需要在命令行中指定形状预测器的路径,例如:
```
python detect_blinks.py -p shape_predictor_68_face_landmarks.dat
```
其中 `shape_predictor_68_face_landmarks.dat` 是形状预测器文件的路径。请确保你已经下载了形状预测器,并将其路径传递给脚本。如果你需要更多帮助,请参考脚本的文档或者使用 `python detect_blinks.py -h` 命令查看帮助信息。
阅读全文