juanmapf97 / Tello-Face-Recognition

An implementation of face detection and tracking on the dji Tello drone based on a HAAR Cascade using OpenCV and Python 3.6
MIT License
42 stars 23 forks source link

ModuleNotFoundError: No module named 'cv2' #3

Open SzoDavid opened 4 years ago

SzoDavid commented 4 years ago

I tried to run main.py but I got this error message: F:\Tello-Face-Recognition-master\face_recognition\main.py:20: SyntaxWarning: "is not" with a literal. Did you mean "!="? if not -90 <= offset_x <= 90 and offset_x is not 0: F:\Tello-Face-Recognition-master\face_recognition\main.py:26: SyntaxWarning: "is not" with a literal. Did you mean "!="? if not -70 <= offset_y <= 70 and offset_y is not -30: F:\Tello-Face-Recognition-master\face_recognition\main.py:32: SyntaxWarning: "is not" with a literal. Did you mean "!="? if not 15000 <= offset_z <= 30000 and offset_z is not 0: Traceback (most recent call last): File "F:\Tello-Face-Recognition-master\face_recognition\main.py", line 2, in <module> import cv2 as cv ModuleNotFoundError: No module named 'cv2'

FranciumUser commented 3 years ago

Do you have cv2 install? If not try in your terminal pip3 install opencv-python or sudo pip3 install opencv-python