yashshah2609 / Emotion-Based-music-player

It's music player with chrome as face which has the capablity of detecting emotion from face with the help of machine learning.
26 stars 11 forks source link

i don't know why? #4

Open starnger opened 4 years ago

starnger commented 4 years ago

when i run capture.py

C:\Users\Mayank\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/Mayank/PycharmProjects/Emotion-Based-music-player-master/capture.py Traceback (most recent call last): File "C:/Users/Mayank/PycharmProjects/Emotion-Based-music-player-master/capture.py", line 12, in import Update_Model File "C:\Users\Mayank\PycharmProjects\Emotion-Based-music-player-master\Update_Model.py", line 6, in fishface=cv2.face.FisherFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

Process finished with exit code 1

starnger commented 4 years ago

Update_Model.py

C:\Users\Mayank\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/Mayank/PycharmProjects/Emotion-Based-music-player-master/Update_Model.py Traceback (most recent call last): File "C:/Users/Mayank/PycharmProjects/Emotion-Based-music-player-master/Update_Model.py", line 6, in fishface=cv2.face.FisherFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

Process finished with exit code 1

yashshah2609 commented 4 years ago

pip install opencv-contrib-python try this and then also check for the version of cv2 bcz sometimes in newer versions they change definations.