首页 > 解决方案 > AttributeError:模块“cv2”没有属性“dnn”

问题描述

我正在尝试检测图片中的对象。我正在使用我训练有素的权重和配置文件。该代码在我的笔记本电脑上运行完全正常,但它显示 AttributeError: module 'cv2' has no attribute 'dnn' 当我在我的 Raspberry Pi 4B 上运行它时。我有 python 3.7 和 Open CV 4.5.1 我无法解决这个问题。我应该怎么办。

标签: pythonopencvraspberry-piraspberry-pi4yolov4

解决方案


推荐阅读