During face recognition learning, the following error was reported:
AttributeError: module 'cv2' has no attribute 'face'
After google, I found that the face
function is not included in the opencv
library and needs to be downloaded
pip install opencv-contrib-python
Then reported this error again
AttributeError: module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'
opencv
and contrib
and reinstall it, it is invalid after practice.