人脸识别打卡程序import face recognition import cv2import numpy as np imgElon face recognition.load image file ImagesBasic Elon Musk.jpg imgElon cv2.cvtColor imgElon cv2.COLOR BGR2RGB imgTest face recognition.load image file ImagesBasic Elon Test.jpg imgTest cv2.cvtColor imgTest cv2.COLOR BGR2RGB faceLocface recognition.face locations imgElon0encodeElon face recognition.face encodings imgElon0cv2.rectangle imgElon faceLoc3faceLoc0faceLoc1faceLoc20