中国 · 南京 · 栖霞区紫东路2号紫东国际创意园B3-2幢5F
+86-18994094214 (仅工作日:8:30~17:30)
contact@oakchina.cn

【9】TypeError: _init_(): incompatible constructor arguments.

【9】TypeError: _init_(): incompatible constructor arguments.

报错提示:

Traceback (most recent call last):
File "main.py", line 17, in 〈module)
device = depthai.Device("", False)
TypeError: _init_(): incompatible constructor arguments. The following argument types are supported:

解决方法:

如果你运行的是官方的一代demo,可能会出现这种错误。目前,一代demo已被淘汰,建议使用二代demo(即 depthai-experiments里文件名前带gen2的那些demo)。