当前位置:网站首页>AttributeError: module ‘cv2‘ has no attribute ‘gapi_ wip_ gst_ GStreamerPipeline‘

AttributeError: module ‘cv2‘ has no attribute ‘gapi_ wip_ gst_ GStreamerPipeline‘

2022-06-21 17:52:00 Elite cadre flaw light

When learning face recognition , The following error was reported :

AttributeError: module 'cv2' has no attribute 'face'

Baidu after discovery face This function is not opencv It's in the library , Need to download

pip install opencv-contrib-python

Then he reported the error again

AttributeError: module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'

Baidu search again found two solutions :

1. uninstall opencv and contrib reinstall , Invalid after practice .

2. Keep only one of the two , I kept the latter , No longer an error , The code works .

原网站

版权声明
本文为[Elite cadre flaw light]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211457166053.html