导入CV2导入OS CAP = CV2.VIDEOCAPTURE(0)识别器= cv2.face.lbphfacerecognizer_create()cascadepath =" haarcascade_frontal
我试图运行该程序,但是它显示出上述错误结果,以前有人经历过此错误吗?这是我的代码:
import cv2
import os
cap = cv2.VideoCapture(0)
recognizer = cv2.face.LBPHFaceRecognizer_create()
cascadePath = "haarcascade_frontalface_default.xml"
font = cv2.FONT_HERSHEY_SIMPLEX
I tried to run the program, but it displays the error result as above, Has anyone experienced this error before? here is my code :
import cv2
import os
cap = cv2.VideoCapture(0)
recognizer = cv2.face.LBPHFaceRecognizer_create()
cascadePath = "haarcascade_frontalface_default.xml"
font = cv2.FONT_HERSHEY_SIMPLEX
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望这能为您提供帮助
看起来您忘了添加此命令:
I hope this one can help you
looks like you forgot to add this command :