How do I fix “RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat” while using google colab?
问题 I am writing the following Python code in Google Colaboratory and get an error: Code : import cv2 import dlib cap = cv2.VideoCapture(0) hog_face_detector = dlib.get_frontal_face_detector() dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") while True: _, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) faces = hog_face_detector(gray) for face in faces: face_landmarks = dlib_facelandmark(gray, face) for n in range(0, 16): x = face_landmarks.part