+86-18555129021
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)。