Python 如何检查级联和形状预测器是否在同一目录中?

Python 如何检查级联和形状预测器是否在同一目录中?,python,opencv,raspberry-pi3,Python,Opencv,Raspberry Pi3,我在opencv python环境中使用了Raspberry pi 3,但出现了这个错误。是否有一个应用程序可以在raspberry pi 3中打开.xml和.dat文件 :错误:需要以下参数:-c/--cascade,-p/--shape predictor ap = argparse.ArgumentParser() ap.add_argument("-c", "--cascade", required=True, help = "path to where the face cascade

我在opencv python环境中使用了Raspberry pi 3,但出现了这个错误。是否有一个应用程序可以在raspberry pi 3中打开.xml和.dat文件

:错误:需要以下参数:-c/--cascade,-p/--shape predictor

ap = argparse.ArgumentParser()
ap.add_argument("-c", "--cascade", required=True, help = "path to where the face cascade resides")
ap.add_argument("-p", "--shape-predictor", required=True, help="path to facial landmark predictor")
ap.add_argument("-a", "--alarm", type=int, default=0, help="boolean used to indicate if TrafficHat should be used")
args = vars(ap.parse_args())