尝试运行我的代码时出现“指令非法错误”

尝试运行我的代码时出现“指令非法错误”

当我尝试运行代码时,出现“指令非法错误”,有人可以帮帮我吗?

import cv2
import face_recognition

img = cv2.imread("messi1.jpeg")
rgb_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img_encoding = face_recognition.face_encodings(rgb_img)[0]



img2 = cv2.imread("messi2.webp")
rgb_img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)
img_encoding2 = face_recognition.face_encodings(rgb_img2)[0]


result = face_recognition.compare_faces([img_encoding], img_encoding2)
print("Result: ", result)

相关内容