I get an attribute error if I use the function:
def faceDetection():
if results.detections:
for detection in results.detection:
print(id, detection)
AttributeError: type object 'SolutionOutputs' has no attribute 'detections'
is the error I get if I try running, specifically it calls it on the results.detections: line it works fine in this youtube tutorial at 1:43:56 I don't really know how to read the github code but here's the link I do have
mpFD = mp.solutions.face_detection # FD = face_detection
fD = mpFD.FaceDetection()
defined before the function already. Is this an issue with my code or is it something else?