报错:Invoked with: 0.5
在调用 mediapipe 做手势追踪的时候,在封装的检测类中定义__init__函数进行属性初始化时
运行以下代码:
报错:
TypeError: create_int(): incompatible function arguments. The following argument types are supported:
1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
Invoked with: 0.5
需要添加一个参数 False 就能正常运行,改为:
即可