python - AttributeError:模块“cv2”没有属性“dnn”
问题描述
我正在尝试检测图片中的对象。我正在使用我训练有素的权重和配置文件。该代码在我的笔记本电脑上运行完全正常,但它显示 AttributeError: module 'cv2' has no attribute 'dnn' 当我在我的 Raspberry Pi 4B 上运行它时。我有 python 3.7 和 Open CV 4.5.1 我无法解决这个问题。我应该怎么办。
解决方案
推荐阅读
- three.js - THREE.js - 合并/实例化相同 GLTF 模型的倍数,没有着色器材质..?
- css - CSS Grid - 无法让 grid-template-areas 工作
- python - 使用 matplotlib 绘制多个列表的问题
- android - Android - 无法更改操作栏文本颜色
- python - 有没有更简洁的方法来获取相应的字典值
- windows - 如何在 FFmpeg 中索引图像?
- sql - 如果只有一列不同,如何使数据库中的行重复。例如下面示例中的 DATE
- node.js - 将socket.io传递给节点js中的路由器模块
- javascript - 从 json 数组中删除元素
- javascript - 如何在 querySelectorAll 正则表达式中指定数字