I am facing some attribute error while running face recognizing the code. My face detects code run perfectly.But while I try to run the face recognizing code it shows some a
You might be running Python3 and therefore you are supposed to use pip3 to install the opencv-contrib package :
pip3 install opencv-contrib-python
This worked for me.