Python&OpenCv对象检测类型错误

2024-06-02 04:48:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在python&OpenCv上检测我的耳朵,但发生了以下错误:

Traceback (most recent call last):
File "C:/Users/asus/PycharmProjects/ImageProcessing/app.py", line 17, in <module>
cv2.rectangle(frame, obj, (15 ,15 ), (0, 0, 255),-5)
TypeError: function takes exactly 2 arguments (1 given)

代码在这里:

^{pr2}$

我该怎么更正代码?在


Tags: 代码appmost错误callopencvusersfile