Pycharm调用笔记本摄像头没反应

想用python弄个人脸识别,但调用摄像头时一直没反应,也没报错
User data input,Look at the camera and wait ...

可用cv2.VideoCapture(0, cv2.DSHOW) 试试,另外检查一下调用的摄像头索引是否正确.参考:
https://www.jianshu.com/p/f92aec26360e

在设置 -> 隐私 -> 相机 里面开启“允许应用访问你的相机”