在此行中,出现以下错误:
cv2.putText(image,"Unknown" + str(conf), (J.left(), J.bottom()),font, 200)
Error
Traceback (most recent call last):
File "C:\Users\ACER\Desktop\PROJECT ALL RESOURCE\PROJECT ALL RESOURCE\Implementation\PYTHON FILES\facerecognition.py", line 73, in <module>
(J.left(), J.bottom()),font, 200) # Writing the name of the face recognized
TypeError: Required argument 'color' (pos 6) not found
您能向我描述此错误消息是关于什么的吗?
请参见https://www.geeksforgeeks.org/python-opencv-cv2-puttext-method/。cv2.putText()需要图像,文本,组织,字体,fontScale和第六个参数颜色。您仅用五个参数调用它。