马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
问题如下
Traceback (most recent call last):
File "D:/Python Charm/project/bishe/FaceDepthMeasurement.py", line 6, in <module>
detector = FaceMeshDetector(maxFaces=1)
File "D:\Python\lib\site-packages\cvzone\FaceMeshModule.py", line 32, in __init__
self.faceMesh = self.mpFaceMesh.FaceMesh(static_image_mode=self.staticMode,
File "C:\Users\戴尔\AppData\Roaming\Python\Python38\site-packages\mediapipe\python\solutions\face_mesh.py", line 94, in __init__
super().__init__(
File "C:\Users\戴尔\AppData\Roaming\Python\Python38\site-packages\mediapipe\python\solution_base.py", line 264, in __init__
validated_graph.initialize(
FileNotFoundError: The path does not exist.
代码如下import cv2
import cvzone
from cvzone.FaceMeshModule import FaceMeshDetector
cap = cv2.VideoCapture(0)
detector = FaceMeshDetector(maxFaces=1)
while True:
success, img = cap.read()
img, faces = detector.findFaceMesh(img, draw=False)
if faces:
face = faces[0]
piontLeft = face[145]
cv2.circle(img,piontLeft,5,(255,0,255),cv2.FILLED)
cv2.imshow("Image", img)
cv2.waitKey(1)
|