I actually working on a face recognition project but getting an error such as:
from _dlib_pybind11 import *
ModuleNotFoundError: No module named '_dlib_pybind11'
Please help I'll appreciate any bits of help.
- OS:windows 10
- Python 3.8
- dlib 19.18.0
- face_recognition 1.3.0
- NumPy 1.18.4
My code:
import cv2
import numpy as np
import face_recognitionimElon = face_recognition.load_image_file("ImageBasic/ElonMusk.jpg")
imElon = cv2.cvtColor(imElon.cv2.COLOR_BGR2RGB)imTest = face_recognition.load_image_file("ImageBasic/ElonTest.jpg")
imTest = cv2.cvtColor(imTest.cv2.COLOR_BGR2RGB)faceLoc = face_recognition.face_locations(imElon)[0]
encodeElon = face_recognition.face_encodings(imElon)[0]
print(faceLoc)cv2.imshow('Elon Musk', imElon)
cv2.imshow('Elon Test', imTest)
cv2.waitkey(0)