报错device = depthai.Device(““, False) 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)。
在这里插入图片描述

其他常见报错:
请查看


OAK中国
| OpenCV AI Kit在中国区的官方代理商和技术服务商
| 追踪AI技术和产品新动态

戳「+关注」获取最新资讯↗↗

猜你喜欢

转载自blog.csdn.net/oakchina/article/details/124967631